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M,KAAK,GAAM,EAAI,QAAQ,EAAM,KAAK,GAAM,GAAK,OAAO,EAAM,KAAK,GAAM,GAAK,OAAO,EAAM,KAAU,IAAL,KAAY,EAAM,KAAK,GAAM,EAAI,OAAO,EAAM,KAAK,GAAM,GAAK,OAAO,EAAM,KAAK,GAAM,GAAK,OAC9b,aAChB,CACE,eAAO,CAAS,GACd,IAAK,EAAM,SAAS,KAAK,GACvB,MAAM,IAAI,MACR,GAAG,uNAMX,GAEA,GAAc,GAAO,WAAY,0FAEjC,GAAc,GAAO,OAAQ,CAC3B,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,K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,GACpB,MAAM,EAAM,GAAU,GAChB,EAAM,GAAW,EAAc,GACrC,GAA+B,EAAM,EAAe,IACpD,GAA+B,EAAM,EAAe,IACpD,MAAM,EAAe,EAAO,cAAc,IACpC,EAAe,EAAO,cAAc,IAC1C,EAAS,GAAgB,GACvB,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EAAS,EACT,GACC,IACE,GAAgB,GACnB,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EAAS,EACT,GACC,GAEH,GAAS,iBAAiB,EAC9B,KAAS,CACL,MAAM,EAAM,GAAU,GAChB,EAAM,GAAW,EAAc,GACrC,GAA+B,EAAM,EAAe,IACpD,GAA+B,EAAM,EAAe,IACpD,MAAM,EAAiB,EAAQ,cAAc,IACvC,EAAkB,EAAQ,cAAc,IAC9C,GAAI,GAAkB,EACpB,EAAS,GACP,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EAAS,EACT,EACA,IACG,GACH,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EAAS,EACT,EACA,QAEG,GAAI,EACT,GAAI,EACF,EAAS,GACP,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EAAS,EACT,EACA,OAEG,CACL,MAAM,EAAS,GAAS,eACxB,EAAO,KAAK,IAAW,aAAa,GACpC,MAAM,EAAM,GAAU,GAChB,EAAM,GAAW,EAAc,GACrC,GAA+B,EAAM,EAAe,IACpD,GAA+B,EAAM,EAAe,IACpD,MAAM,EAAe,EAAO,cAAc,IACpC,EAAe,EAAO,cAAc,IAC1C,EAAS,GAAgB,GACvB,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EAAS,EACT,GACC,IACE,GAAgB,GACnB,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EAAS,EACT,GACC,GAEH,GAAS,iBAAiB,EAClC,MACW,GAAI,EACT,GAAI,EACF,EAAS,GACP,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EAAS,EACT,EACA,OAEG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AM,CAAuB,GAI3B,OAHA,QAAQ,KACN,qEAEK,KAAK,eAAe,EAC/B,CAME,oBAAM,CAAe,GACnB,IAAI,EAAS,EACb,MAAM,EAAY,KAAK,WAAW,IAAI,IACtC,IAAK,MAAO,EAAS,KAAa,OAAO,QAAQ,GAAa,CAC5D,MAAM,EAAQ,EAAU,KAAK,IAAI,GAC5B,IAEL,SAAgB,EAAM,eAAe,IAAI,IAC/C,CACI,OAAO,CACX,CAmEE,mBAAO,CAAa,EAAO,EAAU,EAAQ,EAAY,GACvD,MAAM,EAAc,CAElB,EAAG,EACH,GAAI,IACJ,GAAI,KACJ,GAAI,IAEJ,GAAI,EACJ,IAAK,KACL,IAAK,KACL,IAAK,IAEL,GAAI,EACJ,IAAK,KACL,IAAK,KACL,IAAK,KAEP,IAAK,EAAY,KAAc,EAAY,GACzC,MAAM,IAAI,MAAM,0CAElB,IAAK,OAAO,UAAU,IAAc,EAAY,GAAK,EAAY,EAC/D,MAAM,IAAI,MAAM,iDAGlB,MAAM,EAAiB,GADV,EAAY,GAAY,EAAY,IAE3C,EAAiB,IAAM,EAC7B,OAAO,KAAK,MAAM,EAAiB,GAAkB,CACzD,GAMA,GAAc,GAAmB,OAAQ,wCACtC,IAAC,GAAmB,U","file":"/npm/@thatopen/components@3.3.3/dist/index.mjs/+esm","sourceRoot":"","sourcesContent":["/**\n * Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.\n * Original file: /npm/@thatopen/components@3.3.3/dist/index.mjs\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","var __defProp = Object.defineProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField = (obj, key, value) => {\n  __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n  return value;\n};\nimport * as FRAGS from \"@thatopen/fragments\";\nimport { DataMap as DataMap$1, FragmentsModels, DataSet as DataSet$1 } from \"@thatopen/fragments\";\nimport * as THREE from \"three\";\nimport { BufferAttribute, Vector3, Plane, Line3, Vector2, Triangle, Sphere, Matrix4, Box3, BackSide, DoubleSide, FrontSide, Ray, Mesh, Controls, Quaternion, Raycaster, Object3D, MeshBasicMaterial, LineBasicMaterial, CylinderGeometry, BoxGeometry, BufferGeometry, Float32BufferAttribute, OctahedronGeometry, Line, TorusGeometry, SphereGeometry, Euler, PlaneGeometry } from \"three\";\nimport * as WEBIFC from \"web-ifc\";\nimport CameraControls from \"camera-controls\";\nclass Event {\n  constructor() {\n    /**\n     * Whether this event is active or not. If not, it won't trigger.\n     */\n    __publicField(this, \"enabled\", true);\n    /** Triggers all the callbacks assigned to this event. */\n    __publicField(this, \"trigger\", (data) => {\n      if (!this.enabled) {\n        return;\n      }\n      const handlers = this.handlers.slice(0);\n      for (const handler of handlers) {\n        handler(data);\n      }\n    });\n    __publicField(this, \"handlers\", []);\n  }\n  /**\n   * Add a callback to this event instance.\n   * @param handler - the callback to be added to this event.\n   */\n  add(handler) {\n    this.handlers.push(handler);\n  }\n  /**\n   * Removes a callback from this event instance.\n   * @param handler - the callback to be removed from this event.\n   */\n  remove(handler) {\n    this.handlers = this.handlers.filter((h) => h !== handler);\n  }\n  /** Gets rid of all the suscribed events. */\n  reset() {\n    this.handlers.length = 0;\n  }\n}\nclass AsyncEvent {\n  constructor() {\n    /**\n     * Whether this event is active or not. If not, it won't trigger.\n     */\n    __publicField(this, \"enabled\", true);\n    /** Triggers all the callbacks assigned to this event. */\n    __publicField(this, \"trigger\", async (data) => {\n      if (!this.enabled) {\n        return;\n      }\n      const handlers = this.handlers.slice(0);\n      for (const handler of handlers) {\n        await handler(data);\n      }\n    });\n    __publicField(this, \"handlers\", []);\n  }\n  /**\n   * Add a callback to this event instance.\n   * @param handler - the callback to be added to this event.\n   */\n  add(handler) {\n    this.handlers.push(handler);\n  }\n  /**\n   * Removes a callback from this event instance.\n   * @param handler - the callback to be removed from this event.\n   */\n  remove(handler) {\n    this.handlers = this.handlers.filter((h) => h !== handler);\n  }\n  /** Gets rid of all the suscribed events. */\n  reset() {\n    this.handlers.length = 0;\n  }\n}\nclass Base {\n  constructor(components) {\n    /** Whether is component is {@link Disposable}. */\n    __publicField(this, \"isDisposeable\", () => {\n      return \"dispose\" in this && \"onDisposed\" in this;\n    });\n    /** Whether is component is {@link Resizeable}. */\n    __publicField(this, \"isResizeable\", () => {\n      return \"resize\" in this && \"getSize\" in this;\n    });\n    /** Whether is component is {@link Updateable}. */\n    __publicField(this, \"isUpdateable\", () => {\n      return \"onAfterUpdate\" in this && \"onBeforeUpdate\" in this && \"update\" in this;\n    });\n    /** Whether is component is {@link Hideable}. */\n    __publicField(this, \"isHideable\", () => {\n      return \"visible\" in this;\n    });\n    /** Whether is component is {@link Configurable}. */\n    __publicField(this, \"isConfigurable\", () => {\n      return \"setup\" in this && \"config\" in this && \"onSetup\" in this;\n    });\n    /** Whether is component is {@link Serializable}. */\n    __publicField(this, \"isSerializable\", () => {\n      return \"import\" in this && \"export\" in this;\n    });\n    this.components = components;\n  }\n}\nclass Component extends Base {\n}\nclass BaseWorldItem extends Base {\n  constructor(components) {\n    super(components);\n    __publicField(this, \"worlds\", new DataMap$1());\n    /**\n     * Event that is triggered when a world is added or removed from the `worlds` map.\n     * The event payload contains the world instance and the action (\"added\" or \"removed\").\n     */\n    __publicField(this, \"onWorldChanged\", new Event());\n    __publicField(this, \"_currentWorld\", null);\n    this.onWorldChanged.add(({ world, action }) => {\n      if (action === \"removed\") {\n        this.worlds.delete(world.uuid);\n      }\n    });\n  }\n  /**\n   * The current world this item is associated with. It can be null if no world is currently active.\n   */\n  set currentWorld(value) {\n    this._currentWorld = value;\n  }\n  get currentWorld() {\n    return this._currentWorld;\n  }\n}\nclass BaseCamera extends BaseWorldItem {\n  constructor() {\n    super(...arguments);\n    /**\n     * Checks whether the instance is {@link CameraControllable}.\n     *\n     * @returns True if the instance is controllable, false otherwise.\n     */\n    __publicField(this, \"hasCameraControls\", () => {\n      return \"controls\" in this;\n    });\n  }\n}\nclass BaseRenderer extends BaseWorldItem {\n  constructor() {\n    super(...arguments);\n    /** {@link Updateable.onBeforeUpdate} */\n    __publicField(this, \"onAfterUpdate\", new Event());\n    /** {@link Updateable.onAfterUpdate} */\n    __publicField(this, \"onBeforeUpdate\", new Event());\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    /** {@link Resizeable.onResize} */\n    __publicField(this, \"onResize\", new Event());\n    /**\n     * Event that fires when there has been a change to the list of clipping\n     * planes used by the active renderer.\n     */\n    __publicField(this, \"onClippingPlanesUpdated\", new Event());\n    /**\n     * The list of [clipping planes](https://threejs.org/docs/#api/en/renderers/WebGLRenderer.clippingPlanes) used by this instance of the renderer.\n     */\n    __publicField(this, \"clippingPlanes\", []);\n  }\n  /**\n   * Updates the clipping planes and triggers the `onClippingPlanesUpdated` event.\n   *\n   * @remarks\n   * This method is typically called when there is a change to the list of clipping planes\n   * used by the active renderer.\n   */\n  updateClippingPlanes() {\n    this.onClippingPlanesUpdated.trigger();\n  }\n  /**\n   * Sets or removes a clipping plane from the renderer.\n   *\n   * @param active - A boolean indicating whether the clipping plane should be active or not.\n   * @param plane - The clipping plane to be added or removed.\n   * @param isLocal - An optional boolean indicating whether the clipping plane is local to the object. If not provided, it defaults to `false`.\n   *\n   * @remarks\n   * This method adds or removes a clipping plane from the `clippingPlanes` array.\n   * If `active` is `true` and the plane is not already in the array, it is added.\n   * If `active` is `false` and the plane is in the array, it is removed.\n   * The `three.clippingPlanes` property is then updated to reflect the current state of the `clippingPlanes` array,\n   * excluding any planes marked as local.\n   */\n  setPlane(active, plane, isLocal) {\n    plane.isLocal = isLocal;\n    const index = this.clippingPlanes.indexOf(plane);\n    if (active && index === -1) {\n      this.clippingPlanes.push(plane);\n    } else if (!active && index > -1) {\n      this.clippingPlanes.splice(index, 1);\n    }\n    this.three.clippingPlanes = this.clippingPlanes.filter(\n      (plane2) => !plane2.isLocal\n    );\n  }\n}\nconst _Disposer = class _Disposer extends Component {\n  constructor(components) {\n    super(components);\n    __publicField(this, \"_disposedComponents\", /* @__PURE__ */ new Set());\n    /** {@link Component.enabled} */\n    __publicField(this, \"enabled\", true);\n    components.add(_Disposer.uuid, this);\n  }\n  // TODO: Remove this?\n  /**\n   * Return the UUIDs of all disposed components.\n   */\n  get() {\n    return this._disposedComponents;\n  }\n  /**\n   * Removes a mesh, its geometry and its materials from memory. If you are\n   * using any of these in other parts of the application, make sure that you\n   * remove them from the mesh before disposing it.\n   *\n   * @param object - the [object](https://threejs.org/docs/#api/en/core/Object3D)\n   * to remove.\n   *\n   * @param materials - whether to dispose the materials of the mesh.\n   *\n   * @param recursive - whether to recursively dispose the children of the mesh.\n   */\n  destroy(object, materials = true, recursive = true) {\n    object.removeFromParent();\n    const item = object;\n    if (item.dispose) {\n      item.dispose();\n    }\n    this.disposeGeometryAndMaterials(object, materials);\n    if (recursive && item.children && item.children.length) {\n      this.disposeChildren(item);\n    }\n    object.children.length = 0;\n  }\n  /**\n   * Disposes a geometry from memory.\n   *\n   * @param geometry - the\n   * [geometry](https://threejs.org/docs/#api/en/core/BufferGeometry)\n   * to remove.\n   */\n  disposeGeometry(geometry) {\n    if (geometry.boundsTree && geometry.disposeBoundsTree) {\n      geometry.disposeBoundsTree();\n    }\n    geometry.dispose();\n  }\n  disposeGeometryAndMaterials(mesh, materials) {\n    const item = mesh;\n    if (item.geometry) {\n      this.disposeGeometry(item.geometry);\n    }\n    if (materials && item.material) {\n      _Disposer.disposeMaterial(item);\n    }\n    item.material = [];\n    item.geometry = null;\n  }\n  disposeChildren(mesh) {\n    for (const child of mesh.children) {\n      this.destroy(child);\n    }\n  }\n  static disposeMaterial(mesh) {\n    if (mesh.material) {\n      if (Array.isArray(mesh.material)) {\n        for (const mat of mesh.material) {\n          mat.dispose();\n        }\n      } else {\n        mesh.material.dispose();\n      }\n    }\n  }\n};\n/**\n * A unique identifier for the component.\n * This UUID is used to register the component within the Components system.\n */\n__publicField(_Disposer, \"uuid\", \"76e9cd8e-ad8f-4753-9ef6-cbc60f7247fe\");\nlet Disposer = _Disposer;\nclass BaseScene extends BaseWorldItem {\n  constructor(components) {\n    super(components);\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    /** The set of directional lights managed by this scene component. */\n    __publicField(this, \"directionalLights\", /* @__PURE__ */ new Map());\n    /** The set of ambient lights managed by this scene component. */\n    __publicField(this, \"ambientLights\", /* @__PURE__ */ new Map());\n  }\n  /** {@link Disposable.dispose} */\n  dispose() {\n    const disposer = this.components.get(Disposer);\n    for (const child of this.three.children) {\n      const mesh = child;\n      if (mesh.geometry) {\n        disposer.destroy(mesh);\n      }\n    }\n    this.deleteAllLights();\n    this.three.children = [];\n    this.onDisposed.trigger();\n    this.onDisposed.reset();\n  }\n  deleteAllLights() {\n    for (const [, light] of this.directionalLights) {\n      light.removeFromParent();\n      light.target.removeFromParent();\n      light.dispose();\n    }\n    this.directionalLights.clear();\n    for (const [, light] of this.ambientLights) {\n      light.removeFromParent();\n      light.dispose();\n    }\n    this.ambientLights.clear();\n  }\n}\nclass DataSet extends Set {\n  /**\n   * Constructs a new instance of the DataSet class.\n   *\n   * @param iterable - An optional iterable object to initialize the set with.\n   */\n  constructor(iterable) {\n    super(iterable);\n    /**\n     * An event that is triggered when a new item is added to the set.\n     */\n    __publicField(this, \"onItemAdded\", new Event());\n    /**\n     * An event that is triggered when an item is deleted from the set.\n     */\n    __publicField(this, \"onItemDeleted\", new Event());\n    /**\n     * An event that is triggered when the set is cleared.\n     */\n    __publicField(this, \"onCleared\", new Event());\n    /**\n     * A function that acts as a guard for adding items to the set.\n     * It determines whether a given value should be allowed to be added to the set.\n     *\n     * @param value - The value to be checked against the guard.\n     * @returns A boolean indicating whether the value should be allowed to be added to the set.\n     *          By default, this function always returns true, allowing all values to be added.\n     *          You can override this behavior by providing a custom implementation.\n     */\n    __publicField(this, \"guard\", () => true);\n  }\n  /**\n   * Clears the set and triggers the onCleared event.\n   */\n  clear() {\n    super.clear();\n    this.onCleared.trigger();\n  }\n  /**\n   * Adds one or multiple values to the set and triggers the onItemAdded event per each.\n   *\n   * @param value - The value to add to the set.\n   * @returns - The set instance.\n   */\n  add(...value) {\n    for (const item of value) {\n      const existing = this.has(item);\n      if (existing)\n        continue;\n      const isValid = this.guard(item);\n      if (!isValid)\n        continue;\n      super.add(item);\n      if (!this.onItemAdded)\n        this.onItemAdded = new Event();\n      this.onItemAdded.trigger(item);\n    }\n    return this;\n  }\n  /**\n   * Deletes a value from the set and triggers the onItemDeleted event.\n   *\n   * @param value - The value to delete from the set.\n   * @returns - True if the value was successfully deleted, false otherwise.\n   */\n  delete(value) {\n    const deleted = super.delete(value);\n    if (deleted)\n      this.onItemDeleted.trigger();\n    return deleted;\n  }\n  /**\n   * Clears the set and resets the onItemAdded, onItemDeleted, and onCleared events.\n   */\n  dispose() {\n    this.clear();\n    this.onItemAdded.reset();\n    this.onItemDeleted.reset();\n    this.onCleared.reset();\n  }\n}\nconst _UUID = class _UUID {\n  // Copied from three.js source\n  // Original source: http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/21963136#21963136\n  static create() {\n    const d0 = Math.random() * 4294967295 | 0;\n    const d1 = Math.random() * 4294967295 | 0;\n    const d2 = Math.random() * 4294967295 | 0;\n    const d3 = Math.random() * 4294967295 | 0;\n    const uuid = `${_UUID._lut[d0 & 255] + _UUID._lut[d0 >> 8 & 255] + _UUID._lut[d0 >> 16 & 255] + _UUID._lut[d0 >> 24 & 255]}-${_UUID._lut[d1 & 255]}${_UUID._lut[d1 >> 8 & 255]}-${_UUID._lut[d1 >> 16 & 15 | 64]}${_UUID._lut[d1 >> 24 & 255]}-${_UUID._lut[d2 & 63 | 128]}${_UUID._lut[d2 >> 8 & 255]}-${_UUID._lut[d2 >> 16 & 255]}${_UUID._lut[d2 >> 24 & 255]}${_UUID._lut[d3 & 255]}${_UUID._lut[d3 >> 8 & 255]}${_UUID._lut[d3 >> 16 & 255]}${_UUID._lut[d3 >> 24 & 255]}`;\n    return uuid.toLowerCase();\n  }\n  static validate(uuid) {\n    if (!_UUID._pattern.test(uuid))\n      throw new Error(\n        `${uuid} is not a valid UUID v4.\n\n- If you're the tool creator, you can take one from https://www.uuidgenerator.net/.\n\n- If you're using a platform tool, verify the uuid isn't misspelled or contact the tool creator.`\n      );\n  }\n};\n__publicField(_UUID, \"_pattern\", /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/);\n// prettier-ignore\n__publicField(_UUID, \"_lut\", [\n  \"00\",\n  \"01\",\n  \"02\",\n  \"03\",\n  \"04\",\n  \"05\",\n  \"06\",\n  \"07\",\n  \"08\",\n  \"09\",\n  \"0a\",\n  \"0b\",\n  \"0c\",\n  \"0d\",\n  \"0e\",\n  \"0f\",\n  \"10\",\n  \"11\",\n  \"12\",\n  \"13\",\n  \"14\",\n  \"15\",\n  \"16\",\n  \"17\",\n  \"18\",\n  \"19\",\n  \"1a\",\n  \"1b\",\n  \"1c\",\n  \"1d\",\n  \"1e\",\n  \"1f\",\n  \"20\",\n  \"21\",\n  \"22\",\n  \"23\",\n  \"24\",\n  \"25\",\n  \"26\",\n  \"27\",\n  \"28\",\n  \"29\",\n  \"2a\",\n  \"2b\",\n  \"2c\",\n  \"2d\",\n  \"2e\",\n  \"2f\",\n  \"30\",\n  \"31\",\n  \"32\",\n  \"33\",\n  \"34\",\n  \"35\",\n  \"36\",\n  \"37\",\n  \"38\",\n  \"39\",\n  \"3a\",\n  \"3b\",\n  \"3c\",\n  \"3d\",\n  \"3e\",\n  \"3f\",\n  \"40\",\n  \"41\",\n  \"42\",\n  \"43\",\n  \"44\",\n  \"45\",\n  \"46\",\n  \"47\",\n  \"48\",\n  \"49\",\n  \"4a\",\n  \"4b\",\n  \"4c\",\n  \"4d\",\n  \"4e\",\n  \"4f\",\n  \"50\",\n  \"51\",\n  \"52\",\n  \"53\",\n  \"54\",\n  \"55\",\n  \"56\",\n  \"57\",\n  \"58\",\n  \"59\",\n  \"5a\",\n  \"5b\",\n  \"5c\",\n  \"5d\",\n  \"5e\",\n  \"5f\",\n  \"60\",\n  \"61\",\n  \"62\",\n  \"63\",\n  \"64\",\n  \"65\",\n  \"66\",\n  \"67\",\n  \"68\",\n  \"69\",\n  \"6a\",\n  \"6b\",\n  \"6c\",\n  \"6d\",\n  \"6e\",\n  \"6f\",\n  \"70\",\n  \"71\",\n  \"72\",\n  \"73\",\n  \"74\",\n  \"75\",\n  \"76\",\n  \"77\",\n  \"78\",\n  \"79\",\n  \"7a\",\n  \"7b\",\n  \"7c\",\n  \"7d\",\n  \"7e\",\n  \"7f\",\n  \"80\",\n  \"81\",\n  \"82\",\n  \"83\",\n  \"84\",\n  \"85\",\n  \"86\",\n  \"87\",\n  \"88\",\n  \"89\",\n  \"8a\",\n  \"8b\",\n  \"8c\",\n  \"8d\",\n  \"8e\",\n  \"8f\",\n  \"90\",\n  \"91\",\n  \"92\",\n  \"93\",\n  \"94\",\n  \"95\",\n  \"96\",\n  \"97\",\n  \"98\",\n  \"99\",\n  \"9a\",\n  \"9b\",\n  \"9c\",\n  \"9d\",\n  \"9e\",\n  \"9f\",\n  \"a0\",\n  \"a1\",\n  \"a2\",\n  \"a3\",\n  \"a4\",\n  \"a5\",\n  \"a6\",\n  \"a7\",\n  \"a8\",\n  \"a9\",\n  \"aa\",\n  \"ab\",\n  \"ac\",\n  \"ad\",\n  \"ae\",\n  \"af\",\n  \"b0\",\n  \"b1\",\n  \"b2\",\n  \"b3\",\n  \"b4\",\n  \"b5\",\n  \"b6\",\n  \"b7\",\n  \"b8\",\n  \"b9\",\n  \"ba\",\n  \"bb\",\n  \"bc\",\n  \"bd\",\n  \"be\",\n  \"bf\",\n  \"c0\",\n  \"c1\",\n  \"c2\",\n  \"c3\",\n  \"c4\",\n  \"c5\",\n  \"c6\",\n  \"c7\",\n  \"c8\",\n  \"c9\",\n  \"ca\",\n  \"cb\",\n  \"cc\",\n  \"cd\",\n  \"ce\",\n  \"cf\",\n  \"d0\",\n  \"d1\",\n  \"d2\",\n  \"d3\",\n  \"d4\",\n  \"d5\",\n  \"d6\",\n  \"d7\",\n  \"d8\",\n  \"d9\",\n  \"da\",\n  \"db\",\n  \"dc\",\n  \"dd\",\n  \"de\",\n  \"df\",\n  \"e0\",\n  \"e1\",\n  \"e2\",\n  \"e3\",\n  \"e4\",\n  \"e5\",\n  \"e6\",\n  \"e7\",\n  \"e8\",\n  \"e9\",\n  \"ea\",\n  \"eb\",\n  \"ec\",\n  \"ed\",\n  \"ee\",\n  \"ef\",\n  \"f0\",\n  \"f1\",\n  \"f2\",\n  \"f3\",\n  \"f4\",\n  \"f5\",\n  \"f6\",\n  \"f7\",\n  \"f8\",\n  \"f9\",\n  \"fa\",\n  \"fb\",\n  \"fc\",\n  \"fd\",\n  \"fe\",\n  \"ff\"\n]);\nlet UUID = _UUID;\nconst nameStartChar = \":A-Za-z_\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\";\nconst nameChar = nameStartChar + \"\\\\-.\\\\d\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040\";\nconst nameRegexp = \"[\" + nameStartChar + \"][\" + nameChar + \"]*\";\nconst regexName = new RegExp(\"^\" + nameRegexp + \"$\");\nfunction getAllMatches(string, regex) {\n  const matches = [];\n  let match = regex.exec(string);\n  while (match) {\n    const allmatches = [];\n    allmatches.startIndex = regex.lastIndex - match[0].length;\n    const len = match.length;\n    for (let index = 0; index < len; index++) {\n      allmatches.push(match[index]);\n    }\n    matches.push(allmatches);\n    match = regex.exec(string);\n  }\n  return matches;\n}\nconst isName = function(string) {\n  const match = regexName.exec(string);\n  return !(match === null || typeof match === \"undefined\");\n};\nfunction isExist(v) {\n  return typeof v !== \"undefined\";\n}\nconst defaultOptions$2 = {\n  allowBooleanAttributes: false,\n  //A tag can have attributes without any value\n  unpairedTags: []\n};\nfunction validate(xmlData, options) {\n  options = Object.assign({}, defaultOptions$2, options);\n  const tags = [];\n  let tagFound = false;\n  let reachedRoot = false;\n  if (xmlData[0] === \"\\uFEFF\") {\n    xmlData = xmlData.substr(1);\n  }\n  for (let i = 0; i < xmlData.length; i++) {\n    if (xmlData[i] === \"<\" && xmlData[i + 1] === \"?\") {\n      i += 2;\n      i = readPI(xmlData, i);\n      if (i.err)\n        return i;\n    } else if (xmlData[i] === \"<\") {\n      let tagStartPos = i;\n      i++;\n      if (xmlData[i] === \"!\") {\n        i = readCommentAndCDATA(xmlData, i);\n        continue;\n      } else {\n        let closingTag = false;\n        if (xmlData[i] === \"/\") {\n          closingTag = true;\n          i++;\n        }\n        let tagName = \"\";\n        for (; i < xmlData.length && xmlData[i] !== \">\" && xmlData[i] !== \" \" && xmlData[i] !== \"\t\" && xmlData[i] !== \"\\n\" && xmlData[i] !== \"\\r\"; i++) {\n          tagName += xmlData[i];\n        }\n        tagName = tagName.trim();\n        if (tagName[tagName.length - 1] === \"/\") {\n          tagName = tagName.substring(0, tagName.length - 1);\n          i--;\n        }\n        if (!validateTagName(tagName)) {\n          let msg;\n          if (tagName.trim().length === 0) {\n            msg = \"Invalid space after '<'.\";\n          } else {\n            msg = \"Tag '\" + tagName + \"' is an invalid name.\";\n          }\n          return getErrorObject(\"InvalidTag\", msg, getLineNumberForPosition(xmlData, i));\n        }\n        const result = readAttributeStr(xmlData, i);\n        if (result === false) {\n          return getErrorObject(\"InvalidAttr\", \"Attributes for '\" + tagName + \"' have open quote.\", getLineNumberForPosition(xmlData, i));\n        }\n        let attrStr = result.value;\n        i = result.index;\n        if (attrStr[attrStr.length - 1] === \"/\") {\n          const attrStrStart = i - attrStr.length;\n          attrStr = attrStr.substring(0, attrStr.length - 1);\n          const isValid = validateAttributeString(attrStr, options);\n          if (isValid === true) {\n            tagFound = true;\n          } else {\n            return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, attrStrStart + isValid.err.line));\n          }\n        } else if (closingTag) {\n          if (!result.tagClosed) {\n            return getErrorObject(\"InvalidTag\", \"Closing tag '\" + tagName + \"' doesn't have proper closing.\", getLineNumberForPosition(xmlData, i));\n          } else if (attrStr.trim().length > 0) {\n            return getErrorObject(\"InvalidTag\", \"Closing tag '\" + tagName + \"' can't have attributes or invalid starting.\", getLineNumberForPosition(xmlData, tagStartPos));\n          } else if (tags.length === 0) {\n            return getErrorObject(\"InvalidTag\", \"Closing tag '\" + tagName + \"' has not been opened.\", getLineNumberForPosition(xmlData, tagStartPos));\n          } else {\n            const otg = tags.pop();\n            if (tagName !== otg.tagName) {\n              let openPos = getLineNumberForPosition(xmlData, otg.tagStartPos);\n              return getErrorObject(\n                \"InvalidTag\",\n                \"Expected closing tag '\" + otg.tagName + \"' (opened in line \" + openPos.line + \", col \" + openPos.col + \") instead of closing tag '\" + tagName + \"'.\",\n                getLineNumberForPosition(xmlData, tagStartPos)\n              );\n            }\n            if (tags.length == 0) {\n              reachedRoot = true;\n            }\n          }\n        } else {\n          const isValid = validateAttributeString(attrStr, options);\n          if (isValid !== true) {\n            return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line));\n          }\n          if (reachedRoot === true) {\n            return getErrorObject(\"InvalidXml\", \"Multiple possible root nodes found.\", getLineNumberForPosition(xmlData, i));\n          } else if (options.unpairedTags.indexOf(tagName) !== -1)\n            ;\n          else {\n            tags.push({ tagName, tagStartPos });\n          }\n          tagFound = true;\n        }\n        for (i++; i < xmlData.length; i++) {\n          if (xmlData[i] === \"<\") {\n            if (xmlData[i + 1] === \"!\") {\n              i++;\n              i = readCommentAndCDATA(xmlData, i);\n              continue;\n            } else if (xmlData[i + 1] === \"?\") {\n              i = readPI(xmlData, ++i);\n              if (i.err)\n                return i;\n            } else {\n              break;\n            }\n          } else if (xmlData[i] === \"&\") {\n            const afterAmp = validateAmpersand(xmlData, i);\n            if (afterAmp == -1)\n              return getErrorObject(\"InvalidChar\", \"char '&' is not expected.\", getLineNumberForPosition(xmlData, i));\n            i = afterAmp;\n          } else {\n            if (reachedRoot === true && !isWhiteSpace(xmlData[i])) {\n              return getErrorObject(\"InvalidXml\", \"Extra text at the end\", getLineNumberForPosition(xmlData, i));\n            }\n          }\n        }\n        if (xmlData[i] === \"<\") {\n          i--;\n        }\n      }\n    } else {\n      if (isWhiteSpace(xmlData[i])) {\n        continue;\n      }\n      return getErrorObject(\"InvalidChar\", \"char '\" + xmlData[i] + \"' is not expected.\", getLineNumberForPosition(xmlData, i));\n    }\n  }\n  if (!tagFound) {\n    return getErrorObject(\"InvalidXml\", \"Start tag expected.\", 1);\n  } else if (tags.length == 1) {\n    return getErrorObject(\"InvalidTag\", \"Unclosed tag '\" + tags[0].tagName + \"'.\", getLineNumberForPosition(xmlData, tags[0].tagStartPos));\n  } else if (tags.length > 0) {\n    return getErrorObject(\"InvalidXml\", \"Invalid '\" + JSON.stringify(tags.map((t) => t.tagName), null, 4).replace(/\\r?\\n/g, \"\") + \"' found.\", { line: 1, col: 1 });\n  }\n  return true;\n}\nfunction isWhiteSpace(char) {\n  return char === \" \" || char === \"\t\" || char === \"\\n\" || char === \"\\r\";\n}\nfunction readPI(xmlData, i) {\n  const start = i;\n  for (; i < xmlData.length; i++) {\n    if (xmlData[i] == \"?\" || xmlData[i] == \" \") {\n      const tagname = xmlData.substr(start, i - start);\n      if (i > 5 && tagname === \"xml\") {\n        return getErrorObject(\"InvalidXml\", \"XML declaration allowed only at the start of the document.\", getLineNumberForPosition(xmlData, i));\n      } else if (xmlData[i] == \"?\" && xmlData[i + 1] == \">\") {\n        i++;\n        break;\n      } else {\n        continue;\n      }\n    }\n  }\n  return i;\n}\nfunction readCommentAndCDATA(xmlData, i) {\n  if (xmlData.length > i + 5 && xmlData[i + 1] === \"-\" && xmlData[i + 2] === \"-\") {\n    for (i += 3; i < xmlData.length; i++) {\n      if (xmlData[i] === \"-\" && xmlData[i + 1] === \"-\" && xmlData[i + 2] === \">\") {\n        i += 2;\n        break;\n      }\n    }\n  } else if (xmlData.length > i + 8 && xmlData[i + 1] === \"D\" && xmlData[i + 2] === \"O\" && xmlData[i + 3] === \"C\" && xmlData[i + 4] === \"T\" && xmlData[i + 5] === \"Y\" && xmlData[i + 6] === \"P\" && xmlData[i + 7] === \"E\") {\n    let angleBracketsCount = 1;\n    for (i += 8; i < xmlData.length; i++) {\n      if (xmlData[i] === \"<\") {\n        angleBracketsCount++;\n      } else if (xmlData[i] === \">\") {\n        angleBracketsCount--;\n        if (angleBracketsCount === 0) {\n          break;\n        }\n      }\n    }\n  } else if (xmlData.length > i + 9 && xmlData[i + 1] === \"[\" && xmlData[i + 2] === \"C\" && xmlData[i + 3] === \"D\" && xmlData[i + 4] === \"A\" && xmlData[i + 5] === \"T\" && xmlData[i + 6] === \"A\" && xmlData[i + 7] === \"[\") {\n    for (i += 8; i < xmlData.length; i++) {\n      if (xmlData[i] === \"]\" && xmlData[i + 1] === \"]\" && xmlData[i + 2] === \">\") {\n        i += 2;\n        break;\n      }\n    }\n  }\n  return i;\n}\nconst doubleQuote = '\"';\nconst singleQuote = \"'\";\nfunction readAttributeStr(xmlData, i) {\n  let attrStr = \"\";\n  let startChar = \"\";\n  let tagClosed = false;\n  for (; i < xmlData.length; i++) {\n    if (xmlData[i] === doubleQuote || xmlData[i] === singleQuote) {\n      if (startChar === \"\") {\n        startChar = xmlData[i];\n      } else if (startChar !== xmlData[i])\n        ;\n      else {\n        startChar = \"\";\n      }\n    } else if (xmlData[i] === \">\") {\n      if (startChar === \"\") {\n        tagClosed = true;\n        break;\n      }\n    }\n    attrStr += xmlData[i];\n  }\n  if (startChar !== \"\") {\n    return false;\n  }\n  return {\n    value: attrStr,\n    index: i,\n    tagClosed\n  };\n}\nconst validAttrStrRegxp = new RegExp(`(\\\\s*)([^\\\\s=]+)(\\\\s*=)?(\\\\s*(['\"])(([\\\\s\\\\S])*?)\\\\5)?`, \"g\");\nfunction validateAttributeString(attrStr, options) {\n  const matches = getAllMatches(attrStr, validAttrStrRegxp);\n  const attrNames = {};\n  for (let i = 0; i < matches.length; i++) {\n    if (matches[i][1].length === 0) {\n      return getErrorObject(\"InvalidAttr\", \"Attribute '\" + matches[i][2] + \"' has no space in starting.\", getPositionFromMatch(matches[i]));\n    } else if (matches[i][3] !== void 0 && matches[i][4] === void 0) {\n      return getErrorObject(\"InvalidAttr\", \"Attribute '\" + matches[i][2] + \"' is without value.\", getPositionFromMatch(matches[i]));\n    } else if (matches[i][3] === void 0 && !options.allowBooleanAttributes) {\n      return getErrorObject(\"InvalidAttr\", \"boolean attribute '\" + matches[i][2] + \"' is not allowed.\", getPositionFromMatch(matches[i]));\n    }\n    const attrName = matches[i][2];\n    if (!validateAttrName(attrName)) {\n      return getErrorObject(\"InvalidAttr\", \"Attribute '\" + attrName + \"' is an invalid name.\", getPositionFromMatch(matches[i]));\n    }\n    if (!attrNames.hasOwnProperty(attrName)) {\n      attrNames[attrName] = 1;\n    } else {\n      return getErrorObject(\"InvalidAttr\", \"Attribute '\" + attrName + \"' is repeated.\", getPositionFromMatch(matches[i]));\n    }\n  }\n  return true;\n}\nfunction validateNumberAmpersand(xmlData, i) {\n  let re = /\\d/;\n  if (xmlData[i] === \"x\") {\n    i++;\n    re = /[\\da-fA-F]/;\n  }\n  for (; i < xmlData.length; i++) {\n    if (xmlData[i] === \";\")\n      return i;\n    if (!xmlData[i].match(re))\n      break;\n  }\n  return -1;\n}\nfunction validateAmpersand(xmlData, i) {\n  i++;\n  if (xmlData[i] === \";\")\n    return -1;\n  if (xmlData[i] === \"#\") {\n    i++;\n    return validateNumberAmpersand(xmlData, i);\n  }\n  let count = 0;\n  for (; i < xmlData.length; i++, count++) {\n    if (xmlData[i].match(/\\w/) && count < 20)\n      continue;\n    if (xmlData[i] === \";\")\n      break;\n    return -1;\n  }\n  return i;\n}\nfunction getErrorObject(code, message, lineNumber) {\n  return {\n    err: {\n      code,\n      msg: message,\n      line: lineNumber.line || lineNumber,\n      col: lineNumber.col\n    }\n  };\n}\nfunction validateAttrName(attrName) {\n  return isName(attrName);\n}\nfunction validateTagName(tagname) {\n  return isName(tagname);\n}\nfunction getLineNumberForPosition(xmlData, index) {\n  const lines = xmlData.substring(0, index).split(/\\r?\\n/);\n  return {\n    line: lines.length,\n    // column number is last line's length + 1, because column numbering starts at 1:\n    col: lines[lines.length - 1].length + 1\n  };\n}\nfunction getPositionFromMatch(match) {\n  return match.startIndex + match[1].length;\n}\nconst defaultOptions$1 = {\n  preserveOrder: false,\n  attributeNamePrefix: \"@_\",\n  attributesGroupName: false,\n  textNodeName: \"#text\",\n  ignoreAttributes: true,\n  removeNSPrefix: false,\n  // remove NS from tag name or attribute name if true\n  allowBooleanAttributes: false,\n  //a tag can have attributes without any value\n  //ignoreRootElement : false,\n  parseTagValue: true,\n  parseAttributeValue: false,\n  trimValues: true,\n  //Trim string values of tag and attributes\n  cdataPropName: false,\n  numberParseOptions: {\n    hex: true,\n    leadingZeros: true,\n    eNotation: true\n  },\n  tagValueProcessor: function(tagName, val) {\n    return val;\n  },\n  attributeValueProcessor: function(attrName, val) {\n    return val;\n  },\n  stopNodes: [],\n  //nested tags will not be parsed even for errors\n  alwaysCreateTextNode: false,\n  isArray: () => false,\n  commentPropName: false,\n  unpairedTags: [],\n  processEntities: true,\n  htmlEntities: false,\n  ignoreDeclaration: false,\n  ignorePiTags: false,\n  transformTagName: false,\n  transformAttributeName: false,\n  updateTag: function(tagName, jPath, attrs) {\n    return tagName;\n  },\n  // skipEmptyListItem: false\n  captureMetaData: false\n};\nfunction normalizeProcessEntities(value) {\n  if (typeof value === \"boolean\") {\n    return {\n      enabled: value,\n      // true or false\n      maxEntitySize: 1e4,\n      maxExpansionDepth: 10,\n      maxTotalExpansions: 1e3,\n      maxExpandedLength: 1e5,\n      allowedTags: null,\n      tagFilter: null\n    };\n  }\n  if (typeof value === \"object\" && value !== null) {\n    return {\n      enabled: value.enabled !== false,\n      // default true if not specified\n      maxEntitySize: value.maxEntitySize ?? 1e4,\n      maxExpansionDepth: value.maxExpansionDepth ?? 10,\n      maxTotalExpansions: value.maxTotalExpansions ?? 1e3,\n      maxExpandedLength: value.maxExpandedLength ?? 1e5,\n      allowedTags: value.allowedTags ?? null,\n      tagFilter: value.tagFilter ?? null\n    };\n  }\n  return normalizeProcessEntities(true);\n}\nconst buildOptions = function(options) {\n  const built = Object.assign({}, defaultOptions$1, options);\n  built.processEntities = normalizeProcessEntities(built.processEntities);\n  return built;\n};\nlet METADATA_SYMBOL$1;\nif (typeof Symbol !== \"function\") {\n  METADATA_SYMBOL$1 = \"@@xmlMetadata\";\n} else {\n  METADATA_SYMBOL$1 = Symbol(\"XML Node Metadata\");\n}\nclass XmlNode {\n  constructor(tagname) {\n    this.tagname = tagname;\n    this.child = [];\n    this[\":@\"] = {};\n  }\n  add(key, val) {\n    if (key === \"__proto__\")\n      key = \"#__proto__\";\n    this.child.push({ [key]: val });\n  }\n  addChild(node, startIndex) {\n    if (node.tagname === \"__proto__\")\n      node.tagname = \"#__proto__\";\n    if (node[\":@\"] && Object.keys(node[\":@\"]).length > 0) {\n      this.child.push({ [node.tagname]: node.child, [\":@\"]: node[\":@\"] });\n    } else {\n      this.child.push({ [node.tagname]: node.child });\n    }\n    if (startIndex !== void 0) {\n      this.child[this.child.length - 1][METADATA_SYMBOL$1] = { startIndex };\n    }\n  }\n  /** symbol used for metadata */\n  static getMetaDataSymbol() {\n    return METADATA_SYMBOL$1;\n  }\n}\nclass DocTypeReader {\n  constructor(options) {\n    this.suppressValidationErr = !options;\n    this.options = options;\n  }\n  readDocType(xmlData, i) {\n    const entities = {};\n    if (xmlData[i + 3] === \"O\" && xmlData[i + 4] === \"C\" && xmlData[i + 5] === \"T\" && xmlData[i + 6] === \"Y\" && xmlData[i + 7] === \"P\" && xmlData[i + 8] === \"E\") {\n      i = i + 9;\n      let angleBracketsCount = 1;\n      let hasBody = false, comment = false;\n      let exp = \"\";\n      for (; i < xmlData.length; i++) {\n        if (xmlData[i] === \"<\" && !comment) {\n          if (hasBody && hasSeq(xmlData, \"!ENTITY\", i)) {\n            i += 7;\n            let entityName, val;\n            [entityName, val, i] = this.readEntityExp(xmlData, i + 1, this.suppressValidationErr);\n            if (val.indexOf(\"&\") === -1) {\n              const escaped = entityName.replace(/[.\\-+*:]/g, \"\\\\.\");\n              entities[entityName] = {\n                regx: RegExp(`&${escaped};`, \"g\"),\n                val\n              };\n            }\n          } else if (hasBody && hasSeq(xmlData, \"!ELEMENT\", i)) {\n            i += 8;\n            const { index } = this.readElementExp(xmlData, i + 1);\n            i = index;\n          } else if (hasBody && hasSeq(xmlData, \"!ATTLIST\", i)) {\n            i += 8;\n          } else if (hasBody && hasSeq(xmlData, \"!NOTATION\", i)) {\n            i += 9;\n            const { index } = this.readNotationExp(xmlData, i + 1, this.suppressValidationErr);\n            i = index;\n          } else if (hasSeq(xmlData, \"!--\", i))\n            comment = true;\n          else\n            throw new Error(`Invalid DOCTYPE`);\n          angleBracketsCount++;\n          exp = \"\";\n        } else if (xmlData[i] === \">\") {\n          if (comment) {\n            if (xmlData[i - 1] === \"-\" && xmlData[i - 2] === \"-\") {\n              comment = false;\n              angleBracketsCount--;\n            }\n          } else {\n            angleBracketsCount--;\n          }\n          if (angleBracketsCount === 0) {\n            break;\n          }\n        } else if (xmlData[i] === \"[\") {\n          hasBody = true;\n        } else {\n          exp += xmlData[i];\n        }\n      }\n      if (angleBracketsCount !== 0) {\n        throw new Error(`Unclosed DOCTYPE`);\n      }\n    } else {\n      throw new Error(`Invalid Tag instead of DOCTYPE`);\n    }\n    return { entities, i };\n  }\n  readEntityExp(xmlData, i) {\n    i = skipWhitespace(xmlData, i);\n    let entityName = \"\";\n    while (i < xmlData.length && !/\\s/.test(xmlData[i]) && xmlData[i] !== '\"' && xmlData[i] !== \"'\") {\n      entityName += xmlData[i];\n      i++;\n    }\n    validateEntityName(entityName);\n    i = skipWhitespace(xmlData, i);\n    if (!this.suppressValidationErr) {\n      if (xmlData.substring(i, i + 6).toUpperCase() === \"SYSTEM\") {\n        throw new Error(\"External entities are not supported\");\n      } else if (xmlData[i] === \"%\") {\n        throw new Error(\"Parameter entities are not supported\");\n      }\n    }\n    let entityValue = \"\";\n    [i, entityValue] = this.readIdentifierVal(xmlData, i, \"entity\");\n    if (this.options.enabled !== false && this.options.maxEntitySize && entityValue.length > this.options.maxEntitySize) {\n      throw new Error(\n        `Entity \"${entityName}\" size (${entityValue.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`\n      );\n    }\n    i--;\n    return [entityName, entityValue, i];\n  }\n  readNotationExp(xmlData, i) {\n    i = skipWhitespace(xmlData, i);\n    let notationName = \"\";\n    while (i < xmlData.length && !/\\s/.test(xmlData[i])) {\n      notationName += xmlData[i];\n      i++;\n    }\n    !this.suppressValidationErr && validateEntityName(notationName);\n    i = skipWhitespace(xmlData, i);\n    const identifierType = xmlData.substring(i, i + 6).toUpperCase();\n    if (!this.suppressValidationErr && identifierType !== \"SYSTEM\" && identifierType !== \"PUBLIC\") {\n      throw new Error(`Expected SYSTEM or PUBLIC, found \"${identifierType}\"`);\n    }\n    i += identifierType.length;\n    i = skipWhitespace(xmlData, i);\n    let publicIdentifier = null;\n    let systemIdentifier = null;\n    if (identifierType === \"PUBLIC\") {\n      [i, publicIdentifier] = this.readIdentifierVal(xmlData, i, \"publicIdentifier\");\n      i = skipWhitespace(xmlData, i);\n      if (xmlData[i] === '\"' || xmlData[i] === \"'\") {\n        [i, systemIdentifier] = this.readIdentifierVal(xmlData, i, \"systemIdentifier\");\n      }\n    } else if (identifierType === \"SYSTEM\") {\n      [i, systemIdentifier] = this.readIdentifierVal(xmlData, i, \"systemIdentifier\");\n      if (!this.suppressValidationErr && !systemIdentifier) {\n        throw new Error(\"Missing mandatory system identifier for SYSTEM notation\");\n      }\n    }\n    return { notationName, publicIdentifier, systemIdentifier, index: --i };\n  }\n  readIdentifierVal(xmlData, i, type) {\n    let identifierVal = \"\";\n    const startChar = xmlData[i];\n    if (startChar !== '\"' && startChar !== \"'\") {\n      throw new Error(`Expected quoted string, found \"${startChar}\"`);\n    }\n    i++;\n    while (i < xmlData.length && xmlData[i] !== startChar) {\n      identifierVal += xmlData[i];\n      i++;\n    }\n    if (xmlData[i] !== startChar) {\n      throw new Error(`Unterminated ${type} value`);\n    }\n    i++;\n    return [i, identifierVal];\n  }\n  readElementExp(xmlData, i) {\n    i = skipWhitespace(xmlData, i);\n    let elementName = \"\";\n    while (i < xmlData.length && !/\\s/.test(xmlData[i])) {\n      elementName += xmlData[i];\n      i++;\n    }\n    if (!this.suppressValidationErr && !isName(elementName)) {\n      throw new Error(`Invalid element name: \"${elementName}\"`);\n    }\n    i = skipWhitespace(xmlData, i);\n    let contentModel = \"\";\n    if (xmlData[i] === \"E\" && hasSeq(xmlData, \"MPTY\", i))\n      i += 4;\n    else if (xmlData[i] === \"A\" && hasSeq(xmlData, \"NY\", i))\n      i += 2;\n    else if (xmlData[i] === \"(\") {\n      i++;\n      while (i < xmlData.length && xmlData[i] !== \")\") {\n        contentModel += xmlData[i];\n        i++;\n      }\n      if (xmlData[i] !== \")\") {\n        throw new Error(\"Unterminated content model\");\n      }\n    } else if (!this.suppressValidationErr) {\n      throw new Error(`Invalid Element Expression, found \"${xmlData[i]}\"`);\n    }\n    return {\n      elementName,\n      contentModel: contentModel.trim(),\n      index: i\n    };\n  }\n  readAttlistExp(xmlData, i) {\n    i = skipWhitespace(xmlData, i);\n    let elementName = \"\";\n    while (i < xmlData.length && !/\\s/.test(xmlData[i])) {\n      elementName += xmlData[i];\n      i++;\n    }\n    validateEntityName(elementName);\n    i = skipWhitespace(xmlData, i);\n    let attributeName = \"\";\n    while (i < xmlData.length && !/\\s/.test(xmlData[i])) {\n      attributeName += xmlData[i];\n      i++;\n    }\n    if (!validateEntityName(attributeName)) {\n      throw new Error(`Invalid attribute name: \"${attributeName}\"`);\n    }\n    i = skipWhitespace(xmlData, i);\n    let attributeType = \"\";\n    if (xmlData.substring(i, i + 8).toUpperCase() === \"NOTATION\") {\n      attributeType = \"NOTATION\";\n      i += 8;\n      i = skipWhitespace(xmlData, i);\n      if (xmlData[i] !== \"(\") {\n        throw new Error(`Expected '(', found \"${xmlData[i]}\"`);\n      }\n      i++;\n      let allowedNotations = [];\n      while (i < xmlData.length && xmlData[i] !== \")\") {\n        let notation = \"\";\n        while (i < xmlData.length && xmlData[i] !== \"|\" && xmlData[i] !== \")\") {\n          notation += xmlData[i];\n          i++;\n        }\n        notation = notation.trim();\n        if (!validateEntityName(notation)) {\n          throw new Error(`Invalid notation name: \"${notation}\"`);\n        }\n        allowedNotations.push(notation);\n        if (xmlData[i] === \"|\") {\n          i++;\n          i = skipWhitespace(xmlData, i);\n        }\n      }\n      if (xmlData[i] !== \")\") {\n        throw new Error(\"Unterminated list of notations\");\n      }\n      i++;\n      attributeType += \" (\" + allowedNotations.join(\"|\") + \")\";\n    } else {\n      while (i < xmlData.length && !/\\s/.test(xmlData[i])) {\n        attributeType += xmlData[i];\n        i++;\n      }\n      const validTypes = [\"CDATA\", \"ID\", \"IDREF\", \"IDREFS\", \"ENTITY\", \"ENTITIES\", \"NMTOKEN\", \"NMTOKENS\"];\n      if (!this.suppressValidationErr && !validTypes.includes(attributeType.toUpperCase())) {\n        throw new Error(`Invalid attribute type: \"${attributeType}\"`);\n      }\n    }\n    i = skipWhitespace(xmlData, i);\n    let defaultValue = \"\";\n    if (xmlData.substring(i, i + 8).toUpperCase() === \"#REQUIRED\") {\n      defaultValue = \"#REQUIRED\";\n      i += 8;\n    } else if (xmlData.substring(i, i + 7).toUpperCase() === \"#IMPLIED\") {\n      defaultValue = \"#IMPLIED\";\n      i += 7;\n    } else {\n      [i, defaultValue] = this.readIdentifierVal(xmlData, i, \"ATTLIST\");\n    }\n    return {\n      elementName,\n      attributeName,\n      attributeType,\n      defaultValue,\n      index: i\n    };\n  }\n}\nconst skipWhitespace = (data, index) => {\n  while (index < data.length && /\\s/.test(data[index])) {\n    index++;\n  }\n  return index;\n};\nfunction hasSeq(data, seq, i) {\n  for (let j = 0; j < seq.length; j++) {\n    if (seq[j] !== data[i + j + 1])\n      return false;\n  }\n  return true;\n}\nfunction validateEntityName(name) {\n  if (isName(name))\n    return name;\n  else\n    throw new Error(`Invalid entity name ${name}`);\n}\nconst hexRegex = /^[-+]?0x[a-fA-F0-9]+$/;\nconst numRegex = /^([\\-\\+])?(0*)([0-9]*(\\.[0-9]*)?)$/;\nconst consider = {\n  hex: true,\n  // oct: false,\n  leadingZeros: true,\n  decimalPoint: \".\",\n  eNotation: true\n  //skipLike: /regex/\n};\nfunction toNumber(str, options = {}) {\n  options = Object.assign({}, consider, options);\n  if (!str || typeof str !== \"string\")\n    return str;\n  let trimmedStr = str.trim();\n  if (options.skipLike !== void 0 && options.skipLike.test(trimmedStr))\n    return str;\n  else if (str === \"0\")\n    return 0;\n  else if (options.hex && hexRegex.test(trimmedStr)) {\n    return parse_int(trimmedStr, 16);\n  } else if (trimmedStr.includes(\"e\") || trimmedStr.includes(\"E\")) {\n    return resolveEnotation(str, trimmedStr, options);\n  } else {\n    const match = numRegex.exec(trimmedStr);\n    if (match) {\n      const sign = match[1] || \"\";\n      const leadingZeros = match[2];\n      let numTrimmedByZeros = trimZeros(match[3]);\n      const decimalAdjacentToLeadingZeros = sign ? (\n        // 0., -00., 000.\n        str[leadingZeros.length + 1] === \".\"\n      ) : str[leadingZeros.length] === \".\";\n      if (!options.leadingZeros && (leadingZeros.length > 1 || leadingZeros.length === 1 && !decimalAdjacentToLeadingZeros)) {\n        return str;\n      } else {\n        const num = Number(trimmedStr);\n        const parsedStr = String(num);\n        if (num === 0)\n          return num;\n        if (parsedStr.search(/[eE]/) !== -1) {\n          if (options.eNotation)\n            return num;\n          else\n            return str;\n        } else if (trimmedStr.indexOf(\".\") !== -1) {\n          if (parsedStr === \"0\")\n            return num;\n          else if (parsedStr === numTrimmedByZeros)\n            return num;\n          else if (parsedStr === `${sign}${numTrimmedByZeros}`)\n            return num;\n          else\n            return str;\n        }\n        let n = leadingZeros ? numTrimmedByZeros : trimmedStr;\n        if (leadingZeros) {\n          return n === parsedStr || sign + n === parsedStr ? num : str;\n        } else {\n          return n === parsedStr || n === sign + parsedStr ? num : str;\n        }\n      }\n    } else {\n      return str;\n    }\n  }\n}\nconst eNotationRegx = /^([-+])?(0*)(\\d*(\\.\\d*)?[eE][-\\+]?\\d+)$/;\nfunction resolveEnotation(str, trimmedStr, options) {\n  if (!options.eNotation)\n    return str;\n  const notation = trimmedStr.match(eNotationRegx);\n  if (notation) {\n    let sign = notation[1] || \"\";\n    const eChar = notation[3].indexOf(\"e\") === -1 ? \"E\" : \"e\";\n    const leadingZeros = notation[2];\n    const eAdjacentToLeadingZeros = sign ? (\n      // 0E.\n      str[leadingZeros.length + 1] === eChar\n    ) : str[leadingZeros.length] === eChar;\n    if (leadingZeros.length > 1 && eAdjacentToLeadingZeros)\n      return str;\n    else if (leadingZeros.length === 1 && (notation[3].startsWith(`.${eChar}`) || notation[3][0] === eChar)) {\n      return Number(trimmedStr);\n    } else if (options.leadingZeros && !eAdjacentToLeadingZeros) {\n      trimmedStr = (notation[1] || \"\") + notation[3];\n      return Number(trimmedStr);\n    } else\n      return str;\n  } else {\n    return str;\n  }\n}\nfunction trimZeros(numStr) {\n  if (numStr && numStr.indexOf(\".\") !== -1) {\n    numStr = numStr.replace(/0+$/, \"\");\n    if (numStr === \".\")\n      numStr = \"0\";\n    else if (numStr[0] === \".\")\n      numStr = \"0\" + numStr;\n    else if (numStr[numStr.length - 1] === \".\")\n      numStr = numStr.substring(0, numStr.length - 1);\n    return numStr;\n  }\n  return numStr;\n}\nfunction parse_int(numStr, base) {\n  if (parseInt)\n    return parseInt(numStr, base);\n  else if (Number.parseInt)\n    return Number.parseInt(numStr, base);\n  else if (window && window.parseInt)\n    return window.parseInt(numStr, base);\n  else\n    throw new Error(\"parseInt, Number.parseInt, window.parseInt are not supported\");\n}\nfunction getIgnoreAttributesFn(ignoreAttributes) {\n  if (typeof ignoreAttributes === \"function\") {\n    return ignoreAttributes;\n  }\n  if (Array.isArray(ignoreAttributes)) {\n    return (attrName) => {\n      for (const pattern of ignoreAttributes) {\n        if (typeof pattern === \"string\" && attrName === pattern) {\n          return true;\n        }\n        if (pattern instanceof RegExp && pattern.test(attrName)) {\n          return true;\n        }\n      }\n    };\n  }\n  return () => false;\n}\nclass OrderedObjParser {\n  constructor(options) {\n    this.options = options;\n    this.currentNode = null;\n    this.tagsNodeStack = [];\n    this.docTypeEntities = {};\n    this.lastEntities = {\n      \"apos\": { regex: /&(apos|#39|#x27);/g, val: \"'\" },\n      \"gt\": { regex: /&(gt|#62|#x3E);/g, val: \">\" },\n      \"lt\": { regex: /&(lt|#60|#x3C);/g, val: \"<\" },\n      \"quot\": { regex: /&(quot|#34|#x22);/g, val: '\"' }\n    };\n    this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: \"&\" };\n    this.htmlEntities = {\n      \"space\": { regex: /&(nbsp|#160);/g, val: \" \" },\n      // \"lt\" : { regex: /&(lt|#60);/g, val: \"<\" },\n      // \"gt\" : { regex: /&(gt|#62);/g, val: \">\" },\n      // \"amp\" : { regex: /&(amp|#38);/g, val: \"&\" },\n      // \"quot\" : { regex: /&(quot|#34);/g, val: \"\\\"\" },\n      // \"apos\" : { regex: /&(apos|#39);/g, val: \"'\" },\n      \"cent\": { regex: /&(cent|#162);/g, val: \"¢\" },\n      \"pound\": { regex: /&(pound|#163);/g, val: \"£\" },\n      \"yen\": { regex: /&(yen|#165);/g, val: \"¥\" },\n      \"euro\": { regex: /&(euro|#8364);/g, val: \"€\" },\n      \"copyright\": { regex: /&(copy|#169);/g, val: \"©\" },\n      \"reg\": { regex: /&(reg|#174);/g, val: \"®\" },\n      \"inr\": { regex: /&(inr|#8377);/g, val: \"₹\" },\n      \"num_dec\": { regex: /&#([0-9]{1,7});/g, val: (_, str) => fromCodePoint(str, 10, \"&#\") },\n      \"num_hex\": { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (_, str) => fromCodePoint(str, 16, \"&#x\") }\n    };\n    this.addExternalEntities = addExternalEntities;\n    this.parseXml = parseXml;\n    this.parseTextData = parseTextData;\n    this.resolveNameSpace = resolveNameSpace;\n    this.buildAttributesMap = buildAttributesMap;\n    this.isItStopNode = isItStopNode;\n    this.replaceEntitiesValue = replaceEntitiesValue$1;\n    this.readStopNodeData = readStopNodeData;\n    this.saveTextToParentTag = saveTextToParentTag;\n    this.addChild = addChild;\n    this.ignoreAttributesFn = getIgnoreAttributesFn(this.options.ignoreAttributes);\n    this.entityExpansionCount = 0;\n    this.currentExpandedLength = 0;\n    if (this.options.stopNodes && this.options.stopNodes.length > 0) {\n      this.stopNodesExact = /* @__PURE__ */ new Set();\n      this.stopNodesWildcard = /* @__PURE__ */ new Set();\n      for (let i = 0; i < this.options.stopNodes.length; i++) {\n        const stopNodeExp = this.options.stopNodes[i];\n        if (typeof stopNodeExp !== \"string\")\n          continue;\n        if (stopNodeExp.startsWith(\"*.\")) {\n          this.stopNodesWildcard.add(stopNodeExp.substring(2));\n        } else {\n          this.stopNodesExact.add(stopNodeExp);\n        }\n      }\n    }\n  }\n}\nfunction addExternalEntities(externalEntities) {\n  const entKeys = Object.keys(externalEntities);\n  for (let i = 0; i < entKeys.length; i++) {\n    const ent = entKeys[i];\n    const escaped = ent.replace(/[.\\-+*:]/g, \"\\\\.\");\n    this.lastEntities[ent] = {\n      regex: new RegExp(\"&\" + escaped + \";\", \"g\"),\n      val: externalEntities[ent]\n    };\n  }\n}\nfunction parseTextData(val, tagName, jPath, dontTrim, hasAttributes, isLeafNode, escapeEntities) {\n  if (val !== void 0) {\n    if (this.options.trimValues && !dontTrim) {\n      val = val.trim();\n    }\n    if (val.length > 0) {\n      if (!escapeEntities)\n        val = this.replaceEntitiesValue(val, tagName, jPath);\n      const newval = this.options.tagValueProcessor(tagName, val, jPath, hasAttributes, isLeafNode);\n      if (newval === null || newval === void 0) {\n        return val;\n      } else if (typeof newval !== typeof val || newval !== val) {\n        return newval;\n      } else if (this.options.trimValues) {\n        return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);\n      } else {\n        const trimmedVal = val.trim();\n        if (trimmedVal === val) {\n          return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);\n        } else {\n          return val;\n        }\n      }\n    }\n  }\n}\nfunction resolveNameSpace(tagname) {\n  if (this.options.removeNSPrefix) {\n    const tags = tagname.split(\":\");\n    const prefix = tagname.charAt(0) === \"/\" ? \"/\" : \"\";\n    if (tags[0] === \"xmlns\") {\n      return \"\";\n    }\n    if (tags.length === 2) {\n      tagname = prefix + tags[1];\n    }\n  }\n  return tagname;\n}\nconst attrsRegx = new RegExp(`([^\\\\s=]+)\\\\s*(=\\\\s*(['\"])([\\\\s\\\\S]*?)\\\\3)?`, \"gm\");\nfunction buildAttributesMap(attrStr, jPath, tagName) {\n  if (this.options.ignoreAttributes !== true && typeof attrStr === \"string\") {\n    const matches = getAllMatches(attrStr, attrsRegx);\n    const len = matches.length;\n    const attrs = {};\n    for (let i = 0; i < len; i++) {\n      const attrName = this.resolveNameSpace(matches[i][1]);\n      if (this.ignoreAttributesFn(attrName, jPath)) {\n        continue;\n      }\n      let oldVal = matches[i][4];\n      let aName = this.options.attributeNamePrefix + attrName;\n      if (attrName.length) {\n        if (this.options.transformAttributeName) {\n          aName = this.options.transformAttributeName(aName);\n        }\n        if (aName === \"__proto__\")\n          aName = \"#__proto__\";\n        if (oldVal !== void 0) {\n          if (this.options.trimValues) {\n            oldVal = oldVal.trim();\n          }\n          oldVal = this.replaceEntitiesValue(oldVal, tagName, jPath);\n          const newVal = this.options.attributeValueProcessor(attrName, oldVal, jPath);\n          if (newVal === null || newVal === void 0) {\n            attrs[aName] = oldVal;\n          } else if (typeof newVal !== typeof oldVal || newVal !== oldVal) {\n            attrs[aName] = newVal;\n          } else {\n            attrs[aName] = parseValue(\n              oldVal,\n              this.options.parseAttributeValue,\n              this.options.numberParseOptions\n            );\n          }\n        } else if (this.options.allowBooleanAttributes) {\n          attrs[aName] = true;\n        }\n      }\n    }\n    if (!Object.keys(attrs).length) {\n      return;\n    }\n    if (this.options.attributesGroupName) {\n      const attrCollection = {};\n      attrCollection[this.options.attributesGroupName] = attrs;\n      return attrCollection;\n    }\n    return attrs;\n  }\n}\nconst parseXml = function(xmlData) {\n  xmlData = xmlData.replace(/\\r\\n?/g, \"\\n\");\n  const xmlObj = new XmlNode(\"!xml\");\n  let currentNode = xmlObj;\n  let textData = \"\";\n  let jPath = \"\";\n  this.entityExpansionCount = 0;\n  this.currentExpandedLength = 0;\n  const docTypeReader = new DocTypeReader(this.options.processEntities);\n  for (let i = 0; i < xmlData.length; i++) {\n    const ch = xmlData[i];\n    if (ch === \"<\") {\n      if (xmlData[i + 1] === \"/\") {\n        const closeIndex = findClosingIndex(xmlData, \">\", i, \"Closing Tag is not closed.\");\n        let tagName = xmlData.substring(i + 2, closeIndex).trim();\n        if (this.options.removeNSPrefix) {\n          const colonIndex = tagName.indexOf(\":\");\n          if (colonIndex !== -1) {\n            tagName = tagName.substr(colonIndex + 1);\n          }\n        }\n        if (this.options.transformTagName) {\n          tagName = this.options.transformTagName(tagName);\n        }\n        if (currentNode) {\n          textData = this.saveTextToParentTag(textData, currentNode, jPath);\n        }\n        const lastTagName = jPath.substring(jPath.lastIndexOf(\".\") + 1);\n        if (tagName && this.options.unpairedTags.indexOf(tagName) !== -1) {\n          throw new Error(`Unpaired tag can not be used as closing tag: </${tagName}>`);\n        }\n        let propIndex = 0;\n        if (lastTagName && this.options.unpairedTags.indexOf(lastTagName) !== -1) {\n          propIndex = jPath.lastIndexOf(\".\", jPath.lastIndexOf(\".\") - 1);\n          this.tagsNodeStack.pop();\n        } else {\n          propIndex = jPath.lastIndexOf(\".\");\n        }\n        jPath = jPath.substring(0, propIndex);\n        currentNode = this.tagsNodeStack.pop();\n        textData = \"\";\n        i = closeIndex;\n      } else if (xmlData[i + 1] === \"?\") {\n        let tagData = readTagExp(xmlData, i, false, \"?>\");\n        if (!tagData)\n          throw new Error(\"Pi Tag is not closed.\");\n        textData = this.saveTextToParentTag(textData, currentNode, jPath);\n        if (this.options.ignoreDeclaration && tagData.tagName === \"?xml\" || this.options.ignorePiTags)\n          ;\n        else {\n          const childNode = new XmlNode(tagData.tagName);\n          childNode.add(this.options.textNodeName, \"\");\n          if (tagData.tagName !== tagData.tagExp && tagData.attrExpPresent) {\n            childNode[\":@\"] = this.buildAttributesMap(tagData.tagExp, jPath, tagData.tagName);\n          }\n          this.addChild(currentNode, childNode, jPath, i);\n        }\n        i = tagData.closeIndex + 1;\n      } else if (xmlData.substr(i + 1, 3) === \"!--\") {\n        const endIndex = findClosingIndex(xmlData, \"-->\", i + 4, \"Comment is not closed.\");\n        if (this.options.commentPropName) {\n          const comment = xmlData.substring(i + 4, endIndex - 2);\n          textData = this.saveTextToParentTag(textData, currentNode, jPath);\n          currentNode.add(this.options.commentPropName, [{ [this.options.textNodeName]: comment }]);\n        }\n        i = endIndex;\n      } else if (xmlData.substr(i + 1, 2) === \"!D\") {\n        const result = docTypeReader.readDocType(xmlData, i);\n        this.docTypeEntities = result.entities;\n        i = result.i;\n      } else if (xmlData.substr(i + 1, 2) === \"![\") {\n        const closeIndex = findClosingIndex(xmlData, \"]]>\", i, \"CDATA is not closed.\") - 2;\n        const tagExp = xmlData.substring(i + 9, closeIndex);\n        textData = this.saveTextToParentTag(textData, currentNode, jPath);\n        let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true);\n        if (val == void 0)\n          val = \"\";\n        if (this.options.cdataPropName) {\n          currentNode.add(this.options.cdataPropName, [{ [this.options.textNodeName]: tagExp }]);\n        } else {\n          currentNode.add(this.options.textNodeName, val);\n        }\n        i = closeIndex + 2;\n      } else {\n        let result = readTagExp(xmlData, i, this.options.removeNSPrefix);\n        let tagName = result.tagName;\n        const rawTagName = result.rawTagName;\n        let tagExp = result.tagExp;\n        let attrExpPresent = result.attrExpPresent;\n        let closeIndex = result.closeIndex;\n        if (this.options.transformTagName) {\n          const newTagName = this.options.transformTagName(tagName);\n          if (tagExp === tagName) {\n            tagExp = newTagName;\n          }\n          tagName = newTagName;\n        }\n        if (currentNode && textData) {\n          if (currentNode.tagname !== \"!xml\") {\n            textData = this.saveTextToParentTag(textData, currentNode, jPath, false);\n          }\n        }\n        const lastTag = currentNode;\n        if (lastTag && this.options.unpairedTags.indexOf(lastTag.tagname) !== -1) {\n          currentNode = this.tagsNodeStack.pop();\n          jPath = jPath.substring(0, jPath.lastIndexOf(\".\"));\n        }\n        if (tagName !== xmlObj.tagname) {\n          jPath += jPath ? \".\" + tagName : tagName;\n        }\n        const startIndex = i;\n        if (this.isItStopNode(this.stopNodesExact, this.stopNodesWildcard, jPath, tagName)) {\n          let tagContent = \"\";\n          if (tagExp.length > 0 && tagExp.lastIndexOf(\"/\") === tagExp.length - 1) {\n            if (tagName[tagName.length - 1] === \"/\") {\n              tagName = tagName.substr(0, tagName.length - 1);\n              jPath = jPath.substr(0, jPath.length - 1);\n              tagExp = tagName;\n            } else {\n              tagExp = tagExp.substr(0, tagExp.length - 1);\n            }\n            i = result.closeIndex;\n          } else if (this.options.unpairedTags.indexOf(tagName) !== -1) {\n            i = result.closeIndex;\n          } else {\n            const result2 = this.readStopNodeData(xmlData, rawTagName, closeIndex + 1);\n            if (!result2)\n              throw new Error(`Unexpected end of ${rawTagName}`);\n            i = result2.i;\n            tagContent = result2.tagContent;\n          }\n          const childNode = new XmlNode(tagName);\n          if (tagName !== tagExp && attrExpPresent) {\n            childNode[\":@\"] = this.buildAttributesMap(tagExp, jPath, tagName);\n          }\n          if (tagContent) {\n            tagContent = this.parseTextData(tagContent, tagName, jPath, true, attrExpPresent, true, true);\n          }\n          jPath = jPath.substr(0, jPath.lastIndexOf(\".\"));\n          childNode.add(this.options.textNodeName, tagContent);\n          this.addChild(currentNode, childNode, jPath, startIndex);\n        } else {\n          if (tagExp.length > 0 && tagExp.lastIndexOf(\"/\") === tagExp.length - 1) {\n            if (tagName[tagName.length - 1] === \"/\") {\n              tagName = tagName.substr(0, tagName.length - 1);\n              jPath = jPath.substr(0, jPath.length - 1);\n              tagExp = tagName;\n            } else {\n              tagExp = tagExp.substr(0, tagExp.length - 1);\n            }\n            if (this.options.transformTagName) {\n              const newTagName = this.options.transformTagName(tagName);\n              if (tagExp === tagName) {\n                tagExp = newTagName;\n              }\n              tagName = newTagName;\n            }\n            const childNode = new XmlNode(tagName);\n            if (tagName !== tagExp && attrExpPresent) {\n              childNode[\":@\"] = this.buildAttributesMap(tagExp, jPath, tagName);\n            }\n            this.addChild(currentNode, childNode, jPath, startIndex);\n            jPath = jPath.substr(0, jPath.lastIndexOf(\".\"));\n          } else {\n            const childNode = new XmlNode(tagName);\n            this.tagsNodeStack.push(currentNode);\n            if (tagName !== tagExp && attrExpPresent) {\n              childNode[\":@\"] = this.buildAttributesMap(tagExp, jPath, tagName);\n            }\n            this.addChild(currentNode, childNode, jPath, startIndex);\n            currentNode = childNode;\n          }\n          textData = \"\";\n          i = closeIndex;\n        }\n      }\n    } else {\n      textData += xmlData[i];\n    }\n  }\n  return xmlObj.child;\n};\nfunction addChild(currentNode, childNode, jPath, startIndex) {\n  if (!this.options.captureMetaData)\n    startIndex = void 0;\n  const result = this.options.updateTag(childNode.tagname, jPath, childNode[\":@\"]);\n  if (result === false)\n    ;\n  else if (typeof result === \"string\") {\n    childNode.tagname = result;\n    currentNode.addChild(childNode, startIndex);\n  } else {\n    currentNode.addChild(childNode, startIndex);\n  }\n}\nconst replaceEntitiesValue$1 = function(val, tagName, jPath) {\n  if (val.indexOf(\"&\") === -1) {\n    return val;\n  }\n  const entityConfig = this.options.processEntities;\n  if (!entityConfig.enabled) {\n    return val;\n  }\n  if (entityConfig.allowedTags) {\n    if (!entityConfig.allowedTags.includes(tagName)) {\n      return val;\n    }\n  }\n  if (entityConfig.tagFilter) {\n    if (!entityConfig.tagFilter(tagName, jPath)) {\n      return val;\n    }\n  }\n  for (let entityName in this.docTypeEntities) {\n    const entity = this.docTypeEntities[entityName];\n    const matches = val.match(entity.regx);\n    if (matches) {\n      this.entityExpansionCount += matches.length;\n      if (entityConfig.maxTotalExpansions && this.entityExpansionCount > entityConfig.maxTotalExpansions) {\n        throw new Error(\n          `Entity expansion limit exceeded: ${this.entityExpansionCount} > ${entityConfig.maxTotalExpansions}`\n        );\n      }\n      const lengthBefore = val.length;\n      val = val.replace(entity.regx, entity.val);\n      if (entityConfig.maxExpandedLength) {\n        this.currentExpandedLength += val.length - lengthBefore;\n        if (this.currentExpandedLength > entityConfig.maxExpandedLength) {\n          throw new Error(\n            `Total expanded content size exceeded: ${this.currentExpandedLength} > ${entityConfig.maxExpandedLength}`\n          );\n        }\n      }\n    }\n  }\n  if (val.indexOf(\"&\") === -1)\n    return val;\n  for (let entityName in this.lastEntities) {\n    const entity = this.lastEntities[entityName];\n    val = val.replace(entity.regex, entity.val);\n  }\n  if (val.indexOf(\"&\") === -1)\n    return val;\n  if (this.options.htmlEntities) {\n    for (let entityName in this.htmlEntities) {\n      const entity = this.htmlEntities[entityName];\n      val = val.replace(entity.regex, entity.val);\n    }\n  }\n  val = val.replace(this.ampEntity.regex, this.ampEntity.val);\n  return val;\n};\nfunction saveTextToParentTag(textData, currentNode, jPath, isLeafNode) {\n  if (textData) {\n    if (isLeafNode === void 0)\n      isLeafNode = currentNode.child.length === 0;\n    textData = this.parseTextData(\n      textData,\n      currentNode.tagname,\n      jPath,\n      false,\n      currentNode[\":@\"] ? Object.keys(currentNode[\":@\"]).length !== 0 : false,\n      isLeafNode\n    );\n    if (textData !== void 0 && textData !== \"\")\n      currentNode.add(this.options.textNodeName, textData);\n    textData = \"\";\n  }\n  return textData;\n}\nfunction isItStopNode(stopNodesExact, stopNodesWildcard, jPath, currentTagName) {\n  if (stopNodesWildcard && stopNodesWildcard.has(currentTagName))\n    return true;\n  if (stopNodesExact && stopNodesExact.has(jPath))\n    return true;\n  return false;\n}\nfunction tagExpWithClosingIndex(xmlData, i, closingChar = \">\") {\n  let attrBoundary;\n  let tagExp = \"\";\n  for (let index = i; index < xmlData.length; index++) {\n    let ch = xmlData[index];\n    if (attrBoundary) {\n      if (ch === attrBoundary)\n        attrBoundary = \"\";\n    } else if (ch === '\"' || ch === \"'\") {\n      attrBoundary = ch;\n    } else if (ch === closingChar[0]) {\n      if (closingChar[1]) {\n        if (xmlData[index + 1] === closingChar[1]) {\n          return {\n            data: tagExp,\n            index\n          };\n        }\n      } else {\n        return {\n          data: tagExp,\n          index\n        };\n      }\n    } else if (ch === \"\t\") {\n      ch = \" \";\n    }\n    tagExp += ch;\n  }\n}\nfunction findClosingIndex(xmlData, str, i, errMsg) {\n  const closingIndex = xmlData.indexOf(str, i);\n  if (closingIndex === -1) {\n    throw new Error(errMsg);\n  } else {\n    return closingIndex + str.length - 1;\n  }\n}\nfunction readTagExp(xmlData, i, removeNSPrefix, closingChar = \">\") {\n  const result = tagExpWithClosingIndex(xmlData, i + 1, closingChar);\n  if (!result)\n    return;\n  let tagExp = result.data;\n  const closeIndex = result.index;\n  const separatorIndex = tagExp.search(/\\s/);\n  let tagName = tagExp;\n  let attrExpPresent = true;\n  if (separatorIndex !== -1) {\n    tagName = tagExp.substring(0, separatorIndex);\n    tagExp = tagExp.substring(separatorIndex + 1).trimStart();\n  }\n  const rawTagName = tagName;\n  if (removeNSPrefix) {\n    const colonIndex = tagName.indexOf(\":\");\n    if (colonIndex !== -1) {\n      tagName = tagName.substr(colonIndex + 1);\n      attrExpPresent = tagName !== result.data.substr(colonIndex + 1);\n    }\n  }\n  return {\n    tagName,\n    tagExp,\n    closeIndex,\n    attrExpPresent,\n    rawTagName\n  };\n}\nfunction readStopNodeData(xmlData, tagName, i) {\n  const startIndex = i;\n  let openTagCount = 1;\n  for (; i < xmlData.length; i++) {\n    if (xmlData[i] === \"<\") {\n      if (xmlData[i + 1] === \"/\") {\n        const closeIndex = findClosingIndex(xmlData, \">\", i, `${tagName} is not closed`);\n        let closeTagName = xmlData.substring(i + 2, closeIndex).trim();\n        if (closeTagName === tagName) {\n          openTagCount--;\n          if (openTagCount === 0) {\n            return {\n              tagContent: xmlData.substring(startIndex, i),\n              i: closeIndex\n            };\n          }\n        }\n        i = closeIndex;\n      } else if (xmlData[i + 1] === \"?\") {\n        const closeIndex = findClosingIndex(xmlData, \"?>\", i + 1, \"StopNode is not closed.\");\n        i = closeIndex;\n      } else if (xmlData.substr(i + 1, 3) === \"!--\") {\n        const closeIndex = findClosingIndex(xmlData, \"-->\", i + 3, \"StopNode is not closed.\");\n        i = closeIndex;\n      } else if (xmlData.substr(i + 1, 2) === \"![\") {\n        const closeIndex = findClosingIndex(xmlData, \"]]>\", i, \"StopNode is not closed.\") - 2;\n        i = closeIndex;\n      } else {\n        const tagData = readTagExp(xmlData, i, \">\");\n        if (tagData) {\n          const openTagName = tagData && tagData.tagName;\n          if (openTagName === tagName && tagData.tagExp[tagData.tagExp.length - 1] !== \"/\") {\n            openTagCount++;\n          }\n          i = tagData.closeIndex;\n        }\n      }\n    }\n  }\n}\nfunction parseValue(val, shouldParse, options) {\n  if (shouldParse && typeof val === \"string\") {\n    const newval = val.trim();\n    if (newval === \"true\")\n      return true;\n    else if (newval === \"false\")\n      return false;\n    else\n      return toNumber(val, options);\n  } else {\n    if (isExist(val)) {\n      return val;\n    } else {\n      return \"\";\n    }\n  }\n}\nfunction fromCodePoint(str, base, prefix) {\n  const codePoint = Number.parseInt(str, base);\n  if (codePoint >= 0 && codePoint <= 1114111) {\n    return String.fromCodePoint(codePoint);\n  } else {\n    return prefix + str + \";\";\n  }\n}\nconst METADATA_SYMBOL = XmlNode.getMetaDataSymbol();\nfunction prettify(node, options) {\n  return compress(node, options);\n}\nfunction compress(arr, options, jPath) {\n  let text;\n  const compressedObj = {};\n  for (let i = 0; i < arr.length; i++) {\n    const tagObj = arr[i];\n    const property = propName$1(tagObj);\n    let newJpath = \"\";\n    if (jPath === void 0)\n      newJpath = property;\n    else\n      newJpath = jPath + \".\" + property;\n    if (property === options.textNodeName) {\n      if (text === void 0)\n        text = tagObj[property];\n      else\n        text += \"\" + tagObj[property];\n    } else if (property === void 0) {\n      continue;\n    } else if (tagObj[property]) {\n      let val = compress(tagObj[property], options, newJpath);\n      const isLeaf = isLeafTag(val, options);\n      if (tagObj[METADATA_SYMBOL] !== void 0) {\n        val[METADATA_SYMBOL] = tagObj[METADATA_SYMBOL];\n      }\n      if (tagObj[\":@\"]) {\n        assignAttributes(val, tagObj[\":@\"], newJpath, options);\n      } else if (Object.keys(val).length === 1 && val[options.textNodeName] !== void 0 && !options.alwaysCreateTextNode) {\n        val = val[options.textNodeName];\n      } else if (Object.keys(val).length === 0) {\n        if (options.alwaysCreateTextNode)\n          val[options.textNodeName] = \"\";\n        else\n          val = \"\";\n      }\n      if (compressedObj[property] !== void 0 && compressedObj.hasOwnProperty(property)) {\n        if (!Array.isArray(compressedObj[property])) {\n          compressedObj[property] = [compressedObj[property]];\n        }\n        compressedObj[property].push(val);\n      } else {\n        if (options.isArray(property, newJpath, isLeaf)) {\n          compressedObj[property] = [val];\n        } else {\n          compressedObj[property] = val;\n        }\n      }\n    }\n  }\n  if (typeof text === \"string\") {\n    if (text.length > 0)\n      compressedObj[options.textNodeName] = text;\n  } else if (text !== void 0)\n    compressedObj[options.textNodeName] = text;\n  return compressedObj;\n}\nfunction propName$1(obj) {\n  const keys = Object.keys(obj);\n  for (let i = 0; i < keys.length; i++) {\n    const key = keys[i];\n    if (key !== \":@\")\n      return key;\n  }\n}\nfunction assignAttributes(obj, attrMap, jpath, options) {\n  if (attrMap) {\n    const keys = Object.keys(attrMap);\n    const len = keys.length;\n    for (let i = 0; i < len; i++) {\n      const atrrName = keys[i];\n      if (options.isArray(atrrName, jpath + \".\" + atrrName, true, true)) {\n        obj[atrrName] = [attrMap[atrrName]];\n      } else {\n        obj[atrrName] = attrMap[atrrName];\n      }\n    }\n  }\n}\nfunction isLeafTag(obj, options) {\n  const { textNodeName } = options;\n  const propCount = Object.keys(obj).length;\n  if (propCount === 0) {\n    return true;\n  }\n  if (propCount === 1 && (obj[textNodeName] || typeof obj[textNodeName] === \"boolean\" || obj[textNodeName] === 0)) {\n    return true;\n  }\n  return false;\n}\nclass XMLParser {\n  constructor(options) {\n    this.externalEntities = {};\n    this.options = buildOptions(options);\n  }\n  /**\n   * Parse XML dats to JS object \n   * @param {string|Uint8Array} xmlData \n   * @param {boolean|Object} validationOption \n   */\n  parse(xmlData, validationOption) {\n    if (typeof xmlData !== \"string\" && xmlData.toString) {\n      xmlData = xmlData.toString();\n    } else if (typeof xmlData !== \"string\") {\n      throw new Error(\"XML data is accepted in String or Bytes[] form.\");\n    }\n    if (validationOption) {\n      if (validationOption === true)\n        validationOption = {};\n      const result = validate(xmlData, validationOption);\n      if (result !== true) {\n        throw Error(`${result.err.msg}:${result.err.line}:${result.err.col}`);\n      }\n    }\n    const orderedObjParser = new OrderedObjParser(this.options);\n    orderedObjParser.addExternalEntities(this.externalEntities);\n    const orderedResult = orderedObjParser.parseXml(xmlData);\n    if (this.options.preserveOrder || orderedResult === void 0)\n      return orderedResult;\n    else\n      return prettify(orderedResult, this.options);\n  }\n  /**\n   * Add Entity which is not by default supported by this library\n   * @param {string} key \n   * @param {string} value \n   */\n  addEntity(key, value) {\n    if (value.indexOf(\"&\") !== -1) {\n      throw new Error(\"Entity value can't have '&'\");\n    } else if (key.indexOf(\"&\") !== -1 || key.indexOf(\";\") !== -1) {\n      throw new Error(\"An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'\");\n    } else if (value === \"&\") {\n      throw new Error(\"An entity with value '&' is not permitted\");\n    } else {\n      this.externalEntities[key] = value;\n    }\n  }\n  /**\n   * Returns a Symbol that can be used to access the metadata\n   * property on a node.\n   * \n   * If Symbol is not available in the environment, an ordinary property is used\n   * and the name of the property is here returned.\n   * \n   * The XMLMetaData property is only present when `captureMetaData`\n   * is true in the options.\n   */\n  static getMetaDataSymbol() {\n    return XmlNode.getMetaDataSymbol();\n  }\n}\nconst EOL = \"\\n\";\nfunction toXml(jArray, options) {\n  let indentation = \"\";\n  if (options.format && options.indentBy.length > 0) {\n    indentation = EOL;\n  }\n  return arrToStr(jArray, options, \"\", indentation);\n}\nfunction arrToStr(arr, options, jPath, indentation) {\n  let xmlStr = \"\";\n  let isPreviousElementTag = false;\n  for (let i = 0; i < arr.length; i++) {\n    const tagObj = arr[i];\n    const tagName = propName(tagObj);\n    if (tagName === void 0)\n      continue;\n    let newJPath = \"\";\n    if (jPath.length === 0)\n      newJPath = tagName;\n    else\n      newJPath = `${jPath}.${tagName}`;\n    if (tagName === options.textNodeName) {\n      let tagText = tagObj[tagName];\n      if (!isStopNode(newJPath, options)) {\n        tagText = options.tagValueProcessor(tagName, tagText);\n        tagText = replaceEntitiesValue(tagText, options);\n      }\n      if (isPreviousElementTag) {\n        xmlStr += indentation;\n      }\n      xmlStr += tagText;\n      isPreviousElementTag = false;\n      continue;\n    } else if (tagName === options.cdataPropName) {\n      if (isPreviousElementTag) {\n        xmlStr += indentation;\n      }\n      xmlStr += `<![CDATA[${tagObj[tagName][0][options.textNodeName]}]]>`;\n      isPreviousElementTag = false;\n      continue;\n    } else if (tagName === options.commentPropName) {\n      xmlStr += indentation + `<!--${tagObj[tagName][0][options.textNodeName]}-->`;\n      isPreviousElementTag = true;\n      continue;\n    } else if (tagName[0] === \"?\") {\n      const attStr2 = attr_to_str(tagObj[\":@\"], options);\n      const tempInd = tagName === \"?xml\" ? \"\" : indentation;\n      let piTextNodeName = tagObj[tagName][0][options.textNodeName];\n      piTextNodeName = piTextNodeName.length !== 0 ? \" \" + piTextNodeName : \"\";\n      xmlStr += tempInd + `<${tagName}${piTextNodeName}${attStr2}?>`;\n      isPreviousElementTag = true;\n      continue;\n    }\n    let newIdentation = indentation;\n    if (newIdentation !== \"\") {\n      newIdentation += options.indentBy;\n    }\n    const attStr = attr_to_str(tagObj[\":@\"], options);\n    const tagStart = indentation + `<${tagName}${attStr}`;\n    const tagValue = arrToStr(tagObj[tagName], options, newJPath, newIdentation);\n    if (options.unpairedTags.indexOf(tagName) !== -1) {\n      if (options.suppressUnpairedNode)\n        xmlStr += tagStart + \">\";\n      else\n        xmlStr += tagStart + \"/>\";\n    } else if ((!tagValue || tagValue.length === 0) && options.suppressEmptyNode) {\n      xmlStr += tagStart + \"/>\";\n    } else if (tagValue && tagValue.endsWith(\">\")) {\n      xmlStr += tagStart + `>${tagValue}${indentation}</${tagName}>`;\n    } else {\n      xmlStr += tagStart + \">\";\n      if (tagValue && indentation !== \"\" && (tagValue.includes(\"/>\") || tagValue.includes(\"</\"))) {\n        xmlStr += indentation + options.indentBy + tagValue + indentation;\n      } else {\n        xmlStr += tagValue;\n      }\n      xmlStr += `</${tagName}>`;\n    }\n    isPreviousElementTag = true;\n  }\n  return xmlStr;\n}\nfunction propName(obj) {\n  const keys = Object.keys(obj);\n  for (let i = 0; i < keys.length; i++) {\n    const key = keys[i];\n    if (!obj.hasOwnProperty(key))\n      continue;\n    if (key !== \":@\")\n      return key;\n  }\n}\nfunction attr_to_str(attrMap, options) {\n  let attrStr = \"\";\n  if (attrMap && !options.ignoreAttributes) {\n    for (let attr in attrMap) {\n      if (!attrMap.hasOwnProperty(attr))\n        continue;\n      let attrVal = options.attributeValueProcessor(attr, attrMap[attr]);\n      attrVal = replaceEntitiesValue(attrVal, options);\n      if (attrVal === true && options.suppressBooleanAttributes) {\n        attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}`;\n      } else {\n        attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}=\"${attrVal}\"`;\n      }\n    }\n  }\n  return attrStr;\n}\nfunction isStopNode(jPath, options) {\n  jPath = jPath.substr(0, jPath.length - options.textNodeName.length - 1);\n  let tagName = jPath.substr(jPath.lastIndexOf(\".\") + 1);\n  for (let index in options.stopNodes) {\n    if (options.stopNodes[index] === jPath || options.stopNodes[index] === \"*.\" + tagName)\n      return true;\n  }\n  return false;\n}\nfunction replaceEntitiesValue(textValue, options) {\n  if (textValue && textValue.length > 0 && options.processEntities) {\n    for (let i = 0; i < options.entities.length; i++) {\n      const entity = options.entities[i];\n      textValue = textValue.replace(entity.regex, entity.val);\n    }\n  }\n  return textValue;\n}\nconst defaultOptions = {\n  attributeNamePrefix: \"@_\",\n  attributesGroupName: false,\n  textNodeName: \"#text\",\n  ignoreAttributes: true,\n  cdataPropName: false,\n  format: false,\n  indentBy: \"  \",\n  suppressEmptyNode: false,\n  suppressUnpairedNode: true,\n  suppressBooleanAttributes: true,\n  tagValueProcessor: function(key, a) {\n    return a;\n  },\n  attributeValueProcessor: function(attrName, a) {\n    return a;\n  },\n  preserveOrder: false,\n  commentPropName: false,\n  unpairedTags: [],\n  entities: [\n    { regex: new RegExp(\"&\", \"g\"), val: \"&amp;\" },\n    //it must be on top\n    { regex: new RegExp(\">\", \"g\"), val: \"&gt;\" },\n    { regex: new RegExp(\"<\", \"g\"), val: \"&lt;\" },\n    { regex: new RegExp(\"'\", \"g\"), val: \"&apos;\" },\n    { regex: new RegExp('\"', \"g\"), val: \"&quot;\" }\n  ],\n  processEntities: true,\n  stopNodes: [],\n  // transformTagName: false,\n  // transformAttributeName: false,\n  oneListGroup: false\n};\nfunction Builder(options) {\n  this.options = Object.assign({}, defaultOptions, options);\n  if (this.options.ignoreAttributes === true || this.options.attributesGroupName) {\n    this.isAttribute = function() {\n      return false;\n    };\n  } else {\n    this.ignoreAttributesFn = getIgnoreAttributesFn(this.options.ignoreAttributes);\n    this.attrPrefixLen = this.options.attributeNamePrefix.length;\n    this.isAttribute = isAttribute;\n  }\n  this.processTextOrObjNode = processTextOrObjNode;\n  if (this.options.format) {\n    this.indentate = indentate;\n    this.tagEndChar = \">\\n\";\n    this.newLine = \"\\n\";\n  } else {\n    this.indentate = function() {\n      return \"\";\n    };\n    this.tagEndChar = \">\";\n    this.newLine = \"\";\n  }\n}\nBuilder.prototype.build = function(jObj) {\n  if (this.options.preserveOrder) {\n    return toXml(jObj, this.options);\n  } else {\n    if (Array.isArray(jObj) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1) {\n      jObj = {\n        [this.options.arrayNodeName]: jObj\n      };\n    }\n    return this.j2x(jObj, 0, []).val;\n  }\n};\nBuilder.prototype.j2x = function(jObj, level, ajPath) {\n  let attrStr = \"\";\n  let val = \"\";\n  const jPath = ajPath.join(\".\");\n  for (let key in jObj) {\n    if (!Object.prototype.hasOwnProperty.call(jObj, key))\n      continue;\n    if (typeof jObj[key] === \"undefined\") {\n      if (this.isAttribute(key)) {\n        val += \"\";\n      }\n    } else if (jObj[key] === null) {\n      if (this.isAttribute(key)) {\n        val += \"\";\n      } else if (key === this.options.cdataPropName) {\n        val += \"\";\n      } else if (key[0] === \"?\") {\n        val += this.indentate(level) + \"<\" + key + \"?\" + this.tagEndChar;\n      } else {\n        val += this.indentate(level) + \"<\" + key + \"/\" + this.tagEndChar;\n      }\n    } else if (jObj[key] instanceof Date) {\n      val += this.buildTextValNode(jObj[key], key, \"\", level);\n    } else if (typeof jObj[key] !== \"object\") {\n      const attr = this.isAttribute(key);\n      if (attr && !this.ignoreAttributesFn(attr, jPath)) {\n        attrStr += this.buildAttrPairStr(attr, \"\" + jObj[key]);\n      } else if (!attr) {\n        if (key === this.options.textNodeName) {\n          let newval = this.options.tagValueProcessor(key, \"\" + jObj[key]);\n          val += this.replaceEntitiesValue(newval);\n        } else {\n          val += this.buildTextValNode(jObj[key], key, \"\", level);\n        }\n      }\n    } else if (Array.isArray(jObj[key])) {\n      const arrLen = jObj[key].length;\n      let listTagVal = \"\";\n      let listTagAttr = \"\";\n      for (let j = 0; j < arrLen; j++) {\n        const item = jObj[key][j];\n        if (typeof item === \"undefined\")\n          ;\n        else if (item === null) {\n          if (key[0] === \"?\")\n            val += this.indentate(level) + \"<\" + key + \"?\" + this.tagEndChar;\n          else\n            val += this.indentate(level) + \"<\" + key + \"/\" + this.tagEndChar;\n        } else if (typeof item === \"object\") {\n          if (this.options.oneListGroup) {\n            const result = this.j2x(item, level + 1, ajPath.concat(key));\n            listTagVal += result.val;\n            if (this.options.attributesGroupName && item.hasOwnProperty(this.options.attributesGroupName)) {\n              listTagAttr += result.attrStr;\n            }\n          } else {\n            listTagVal += this.processTextOrObjNode(item, key, level, ajPath);\n          }\n        } else {\n          if (this.options.oneListGroup) {\n            let textValue = this.options.tagValueProcessor(key, item);\n            textValue = this.replaceEntitiesValue(textValue);\n            listTagVal += textValue;\n          } else {\n            listTagVal += this.buildTextValNode(item, key, \"\", level);\n          }\n        }\n      }\n      if (this.options.oneListGroup) {\n        listTagVal = this.buildObjectNode(listTagVal, key, listTagAttr, level);\n      }\n      val += listTagVal;\n    } else {\n      if (this.options.attributesGroupName && key === this.options.attributesGroupName) {\n        const Ks = Object.keys(jObj[key]);\n        const L = Ks.length;\n        for (let j = 0; j < L; j++) {\n          attrStr += this.buildAttrPairStr(Ks[j], \"\" + jObj[key][Ks[j]]);\n        }\n      } else {\n        val += this.processTextOrObjNode(jObj[key], key, level, ajPath);\n      }\n    }\n  }\n  return { attrStr, val };\n};\nBuilder.prototype.buildAttrPairStr = function(attrName, val) {\n  val = this.options.attributeValueProcessor(attrName, \"\" + val);\n  val = this.replaceEntitiesValue(val);\n  if (this.options.suppressBooleanAttributes && val === \"true\") {\n    return \" \" + attrName;\n  } else\n    return \" \" + attrName + '=\"' + val + '\"';\n};\nfunction processTextOrObjNode(object, key, level, ajPath) {\n  const result = this.j2x(object, level + 1, ajPath.concat(key));\n  if (object[this.options.textNodeName] !== void 0 && Object.keys(object).length === 1) {\n    return this.buildTextValNode(object[this.options.textNodeName], key, result.attrStr, level);\n  } else {\n    return this.buildObjectNode(result.val, key, result.attrStr, level);\n  }\n}\nBuilder.prototype.buildObjectNode = function(val, key, attrStr, level) {\n  if (val === \"\") {\n    if (key[0] === \"?\")\n      return this.indentate(level) + \"<\" + key + attrStr + \"?\" + this.tagEndChar;\n    else {\n      return this.indentate(level) + \"<\" + key + attrStr + this.closeTag(key) + this.tagEndChar;\n    }\n  } else {\n    let tagEndExp = \"</\" + key + this.tagEndChar;\n    let piClosingChar = \"\";\n    if (key[0] === \"?\") {\n      piClosingChar = \"?\";\n      tagEndExp = \"\";\n    }\n    if ((attrStr || attrStr === \"\") && val.indexOf(\"<\") === -1) {\n      return this.indentate(level) + \"<\" + key + attrStr + piClosingChar + \">\" + val + tagEndExp;\n    } else if (this.options.commentPropName !== false && key === this.options.commentPropName && piClosingChar.length === 0) {\n      return this.indentate(level) + `<!--${val}-->` + this.newLine;\n    } else {\n      return this.indentate(level) + \"<\" + key + attrStr + piClosingChar + this.tagEndChar + val + this.indentate(level) + tagEndExp;\n    }\n  }\n};\nBuilder.prototype.closeTag = function(key) {\n  let closeTag = \"\";\n  if (this.options.unpairedTags.indexOf(key) !== -1) {\n    if (!this.options.suppressUnpairedNode)\n      closeTag = \"/\";\n  } else if (this.options.suppressEmptyNode) {\n    closeTag = \"/\";\n  } else {\n    closeTag = `></${key}`;\n  }\n  return closeTag;\n};\nBuilder.prototype.buildTextValNode = function(val, key, attrStr, level) {\n  if (this.options.cdataPropName !== false && key === this.options.cdataPropName) {\n    return this.indentate(level) + `<![CDATA[${val}]]>` + this.newLine;\n  } else if (this.options.commentPropName !== false && key === this.options.commentPropName) {\n    return this.indentate(level) + `<!--${val}-->` + this.newLine;\n  } else if (key[0] === \"?\") {\n    return this.indentate(level) + \"<\" + key + attrStr + \"?\" + this.tagEndChar;\n  } else {\n    let textValue = this.options.tagValueProcessor(key, val);\n    textValue = this.replaceEntitiesValue(textValue);\n    if (textValue === \"\") {\n      return this.indentate(level) + \"<\" + key + attrStr + this.closeTag(key) + this.tagEndChar;\n    } else {\n      return this.indentate(level) + \"<\" + key + attrStr + \">\" + textValue + \"</\" + key + this.tagEndChar;\n    }\n  }\n};\nBuilder.prototype.replaceEntitiesValue = function(textValue) {\n  if (textValue && textValue.length > 0 && this.options.processEntities) {\n    for (let i = 0; i < this.options.entities.length; i++) {\n      const entity = this.options.entities[i];\n      textValue = textValue.replace(entity.regex, entity.val);\n    }\n  }\n  return textValue;\n};\nfunction indentate(level) {\n  return this.options.indentBy.repeat(level);\n}\nfunction isAttribute(name) {\n  if (name.startsWith(this.options.attributeNamePrefix) && name !== this.options.textNodeName) {\n    return name.substr(this.attrPrefixLen);\n  } else {\n    return false;\n  }\n}\nclass XML {\n}\n__publicField(XML, \"parser\", new XMLParser({\n  allowBooleanAttributes: true,\n  attributeNamePrefix: \"\",\n  ignoreAttributes: false,\n  ignoreDeclaration: true,\n  ignorePiTags: true,\n  numberParseOptions: { leadingZeros: true, hex: true },\n  parseAttributeValue: true,\n  preserveOrder: false,\n  processEntities: false,\n  removeNSPrefix: true,\n  trimValues: true\n}));\n__publicField(XML, \"builder\", new Builder({\n  attributeNamePrefix: \"$\",\n  ignoreAttributes: false,\n  suppressBooleanAttributes: false\n}));\nclass VertexPicker extends Component {\n  constructor(components, config) {\n    super(components);\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    /**\n     * An event that is triggered when a vertex is found.\n     * The event passes a THREE.Vector3 representing the position of the found vertex.\n     */\n    __publicField(this, \"onVertexFound\", new Event());\n    /**\n     * An event that is triggered when a vertex is lost.\n     * The event passes a THREE.Vector3 representing the position of the lost vertex.\n     */\n    __publicField(this, \"onVertexLost\", new Event());\n    /**\n     * An event that is triggered when the picker is enabled or disabled\n     */\n    __publicField(this, \"onEnabled\", new Event());\n    /**\n     * A reference to the Components instance associated with this VertexPicker.\n     */\n    __publicField(this, \"components\");\n    /**\n     * A reference to the working plane used for vertex picking.\n     * This plane is used to determine which vertices are considered valid for picking.\n     * If this value is null, all vertices are considered valid.\n     */\n    __publicField(this, \"workingPlane\", null);\n    __publicField(this, \"_pickedPoint\", null);\n    __publicField(this, \"_config\");\n    __publicField(this, \"_enabled\", false);\n    this.components = components;\n    this.config = {\n      snapDistance: 0.25,\n      showOnlyVertex: false,\n      ...config\n    };\n    this.enabled = false;\n  }\n  /**\n   * Sets the enabled state of the VertexPicker.\n   * When enabled, the VertexPicker will actively search for vertices in the 3D scene.\n   * When disabled, the VertexPicker will stop searching for vertices and reset the picked point.\n   *\n   * @param value - The new enabled state.\n   */\n  set enabled(value) {\n    this._enabled = value;\n    if (!value) {\n      this._pickedPoint = null;\n    }\n    this.onEnabled.trigger(value);\n  }\n  /**\n   * Gets the current enabled state of the VertexPicker.\n   *\n   * @returns The current enabled state.\n   */\n  get enabled() {\n    return this._enabled;\n  }\n  /**\n   * Sets the configuration for the VertexPicker component.\n   *\n   * @param value - A Partial object containing the configuration properties to update.\n   * The properties not provided in the value object will retain their current values.\n   *\n   * @example\n   * ```typescript\n   * vertexPicker.config = {\n   *   snapDistance: 0.5,\n   *   showOnlyVertex: true,\n   * };\n   * ```\n   */\n  set config(value) {\n    this._config = { ...this._config, ...value };\n  }\n  /**\n   * Gets the current configuration for the VertexPicker component.\n   *\n   * @returns A copy of the current VertexPickerConfig object.\n   *\n   * @example\n   * ```typescript\n   * const currentConfig = vertexPicker.config;\n   * console.log(currentConfig.snapDistance); // Output: 0.25\n   * ```\n   */\n  get config() {\n    return this._config;\n  }\n  /** {@link Disposable.dispose} */\n  dispose() {\n    this.onVertexFound.reset();\n    this.onVertexLost.reset();\n    this.components = null;\n    this.onDisposed.trigger();\n    this.onDisposed.reset();\n  }\n  /**\n   * Performs the vertex picking operation based on the current state of the VertexPicker.\n   *\n   * @param world - The World instance to use for raycasting.\n   *\n   * @returns The current picked point, or null if no point is picked.\n   *\n   * @remarks\n   * This method checks if the VertexPicker is enabled. If not, it returns the current picked point.\n   * If enabled, it performs raycasting to find the closest intersecting object.\n   * It then determines the closest vertex or point on the face, based on the configuration settings.\n   * If the picked point is on the working plane (if defined), it triggers the `onVertexFound` event and updates the `pickedPoint`.\n   * If the picked point is not on the working plane, it resets the `pickedPoint`.\n   * If no intersecting object is found, it triggers the `onVertexLost` event and resets the `pickedPoint`.\n   */\n  async get(world) {\n    if (!this.enabled)\n      return this._pickedPoint;\n    const casters = this.components.get(Raycasters);\n    const caster = casters.get(world);\n    const intersects = await caster.castRay();\n    if (!intersects) {\n      if (this._pickedPoint !== null) {\n        this.onVertexLost.trigger();\n        this._pickedPoint = null;\n      }\n      return this._pickedPoint;\n    }\n    const point = intersects.point;\n    if (this._pickedPoint === null || !this._pickedPoint.equals(point)) {\n      this._pickedPoint = point.clone();\n      this.onVertexFound.trigger(this._pickedPoint);\n    }\n    return this._pickedPoint;\n  }\n  // private getClosestVertex(intersects: THREE.Intersection) {\n  //   let closestVertex = new THREE.Vector3();\n  //   let vertexFound = false;\n  //   let closestDistance = Number.MAX_SAFE_INTEGER;\n  //   const vertices = this.getVertices(intersects);\n  //   if (vertices === null) {\n  //     return null;\n  //   }\n  //   for (const vertex of vertices) {\n  //     if (!vertex) {\n  //       continue;\n  //     }\n  //     const distance = intersects.point.distanceTo(vertex);\n  //     if (distance > closestDistance || distance > this._config.snapDistance) {\n  //       continue;\n  //     }\n  //     vertexFound = true;\n  //     closestVertex = vertex;\n  //     closestDistance = intersects.point.distanceTo(vertex);\n  //   }\n  //   if (vertexFound) {\n  //     return closestVertex;\n  //   }\n  //   return this.config.showOnlyVertex ? null : intersects.point;\n  // }\n  // private getVertices(intersects: THREE.Intersection) {\n  //   const mesh = intersects.object as THREE.Mesh | THREE.InstancedMesh;\n  //   if (!intersects.face || !mesh) return null;\n  //   const geom = mesh.geometry;\n  //   const instanceTransform = new THREE.Matrix4();\n  //   const { instanceId } = intersects;\n  //   const instanceFound = instanceId !== undefined;\n  //   const isInstance = mesh instanceof THREE.InstancedMesh;\n  //   if (isInstance && instanceFound) {\n  //     mesh.getMatrixAt(instanceId, instanceTransform);\n  //   }\n  //   return [\n  //     this.getVertex(intersects.face.a, geom),\n  //     this.getVertex(intersects.face.b, geom),\n  //     this.getVertex(intersects.face.c, geom),\n  //   ].map((vertex) => {\n  //     if (vertex) {\n  //       if (isInstance && instanceFound) {\n  //         vertex.applyMatrix4(instanceTransform);\n  //       }\n  //       vertex.applyMatrix4(mesh.matrixWorld);\n  //     }\n  //     return vertex;\n  //   });\n  // }\n  // private getVertex(index: number, geom: THREE.BufferGeometry) {\n  //   if (index === undefined) return null;\n  //   const vertices = geom.attributes.position as THREE.BufferAttribute;\n  //   return new THREE.Vector3(\n  //     vertices.getX(index),\n  //     vertices.getY(index),\n  //     vertices.getZ(index),\n  //   );\n  // }\n}\nclass ModelIdMapUtils {\n  /**\n   * Creates a new ModelIdMap from the union of multiple ModelIdMaps.\n   * @param maps - An array of ModelIdMaps to join.\n   * @returns A new ModelIdMap containing all model identifiers and localIds from all input maps.\n   */\n  static join(maps) {\n    const result = {};\n    for (const map of maps) {\n      for (const modelID in map) {\n        if (!result[modelID]) {\n          result[modelID] = new Set(map[modelID]);\n        } else {\n          for (const id of map[modelID]) {\n            result[modelID].add(id);\n          }\n        }\n      }\n    }\n    return result;\n  }\n  /**\n   * Creates a new ModelIdMap from the intersection of multiple ModelIdMaps.\n   * @param maps - An array of ModelIdMaps.\n   * @returns A new ModelIdMap containing only model identifiers and localIds present in all input maps.\n   */\n  static intersect(maps) {\n    if (maps.length === 0) {\n      return {};\n    }\n    let result = ModelIdMapUtils.clone(maps[0]);\n    for (let i = 1; i < maps.length; i++) {\n      const currentMap = maps[i];\n      const newResult = {};\n      for (const modelID in result) {\n        if (currentMap[modelID]) {\n          const intersection = /* @__PURE__ */ new Set();\n          for (const id of result[modelID]) {\n            if (currentMap[modelID].has(id)) {\n              intersection.add(id);\n            }\n          }\n          if (intersection.size > 0) {\n            newResult[modelID] = intersection;\n          }\n        }\n      }\n      result = newResult;\n    }\n    return result;\n  }\n  /**\n   * Creates a deep clone of a ModelIdMap.\n   * @param source - The ModelIdMap to clone.\n   * @returns A new ModelIdMap with the same model identifiers and localIds as the original.\n   */\n  static clone(source) {\n    const clone = {};\n    for (const modelID in source) {\n      clone[modelID] = new Set(source[modelID]);\n    }\n    return clone;\n  }\n  /**\n   * Remove all entries from one ModelIdMap to another.\n   * @param target - The ModelIdMap to subtract from.\n   * @param source - The ModelIdMap to subtract.\n   */\n  static remove(target, source, clone = false) {\n    if (clone)\n      target = ModelIdMapUtils.clone(target);\n    for (const modelID in source) {\n      if (target[modelID]) {\n        for (const id of source[modelID]) {\n          target[modelID].delete(id);\n        }\n        if (target[modelID].size === 0) {\n          delete target[modelID];\n        }\n      }\n    }\n  }\n  /**\n   * Adds all entries from one ModelIdMap to another.\n   * @param target - The ModelIdMap to add to.\n   * @param source - The ModelIdMap to add from.\n   */\n  static add(target, source, clone = false) {\n    if (clone)\n      target = ModelIdMapUtils.clone(target);\n    for (const modelID in source) {\n      if (!target[modelID]) {\n        target[modelID] = new Set(source[modelID]);\n      } else {\n        for (const id of source[modelID]) {\n          target[modelID].add(id);\n        }\n      }\n    }\n  }\n  static append(target, modelId, ...localIds) {\n    let values = target[modelId];\n    if (!values) {\n      values = /* @__PURE__ */ new Set();\n      target[modelId] = values;\n    }\n    for (const localId of localIds) {\n      values.add(localId);\n    }\n  }\n  /**\n   * Checks if two ModelIdMaps are equal.\n   * @param a - The first ModelIdMap.\n   * @param b - The second ModelIdMap.\n   * @returns True if the ModelIdMaps are equal, false otherwise.\n   */\n  static isEqual(a, b) {\n    const aKeys = Object.keys(a);\n    const bKeys = Object.keys(b);\n    if (aKeys.length !== bKeys.length) {\n      return false;\n    }\n    for (const modelID of aKeys) {\n      if (!b[modelID]) {\n        return false;\n      }\n      if (a[modelID].size !== b[modelID].size) {\n        return false;\n      }\n      for (const id of a[modelID]) {\n        if (!b[modelID].has(id)) {\n          return false;\n        }\n      }\n    }\n    return true;\n  }\n  /**\n   * Checks if a ModelIdMap is empty.\n   * @param map - The ModelIdMap to check.\n   * @returns True if the ModelIdMap is empty, false otherwise.\n   */\n  static isEmpty(map) {\n    const totalItems = Object.values(map).reduce(\n      (sum, set) => sum + set.size,\n      0\n    );\n    return totalItems === 0;\n  }\n  /**\n   * Converts a ModelIdMap into a plain JavaScript object with array values.\n   * @param map - The ModelIdMap to convert.\n   * @returns A plain JavaScript object where each key (model ID) maps to an array of local IDs.\n   */\n  static toRaw(map) {\n    const result = {};\n    for (const modelID in map) {\n      result[modelID] = Array.from(map[modelID]);\n    }\n    return result;\n  }\n  /**\n   * Creates a ModelIdMap from a plain JavaScript object with array values.\n   * @param raw - A plain JavaScript object where each key (model ID) maps to an array of local IDs.\n   * @returns A ModelIdMap.\n   */\n  static fromRaw(raw) {\n    const result = {};\n    for (const modelID in raw) {\n      result[modelID] = new Set(raw[modelID]);\n    }\n    return result;\n  }\n}\nclass DataMap extends Map {\n  /**\n   * Constructs a new DataMap instance.\n   *\n   * @param iterable - An iterable object containing key-value pairs to populate the map.\n   */\n  constructor(iterable) {\n    super(iterable);\n    /**\n     * An event triggered when a new item is set in the map.\n     */\n    __publicField(this, \"onItemSet\", new Event());\n    /**\n     * An event triggered when an existing item in the map is updated.\n     */\n    __publicField(this, \"onItemUpdated\", new Event());\n    /**\n     * An event triggered when an item is deleted from the map.\n     */\n    __publicField(this, \"onItemDeleted\", new Event());\n    /**\n     * An event triggered when the map is cleared.\n     */\n    __publicField(this, \"onCleared\", new Event());\n    /**\n     * A function that acts as a guard for adding items to the set.\n     * It determines whether a given value should be allowed to be added to the set.\n     *\n     * @param key - The key of the entry to be checked against the guard.\n     * @param value - The value of the entry to be checked against the guard.\n     * @returns A boolean indicating whether the value should be allowed to be added to the set.\n     *          By default, this function always returns true, allowing all values to be added.\n     *          You can override this behavior by providing a custom implementation.\n     */\n    __publicField(this, \"guard\", () => true);\n  }\n  /**\n   * Clears the map and triggers the onCleared event.\n   */\n  clear() {\n    super.clear();\n    this.onCleared.trigger();\n  }\n  /**\n   * Sets the value for the specified key in the map.\n   * If the item is new, then onItemSet is triggered.\n   * If the item is already in the map, then onItemUpdated is triggered.\n   *\n   * @param key - The key of the item to set.\n   * @param value - The value of the item to set.\n   * @returns The DataMap instance.\n   */\n  set(key, value) {\n    const triggerUpdate = this.has(key);\n    const guard = this.guard ?? (() => true);\n    const isValid = guard(key, value);\n    if (!isValid)\n      return this;\n    const result = super.set(key, value);\n    if (triggerUpdate) {\n      if (!this.onItemUpdated) {\n        this.onItemUpdated = new Event();\n      }\n      this.onItemUpdated.trigger({ key, value });\n    } else {\n      if (!this.onItemSet) {\n        this.onItemSet = new Event();\n      }\n      this.onItemSet.trigger({ key, value });\n    }\n    return result;\n  }\n  /**\n   * Sets the value in the map with a randomly generated uuidv4 key.\n   * Only use this if your keys are strings\n   *\n   * @param value - The value of the item to set.\n   * @returns The key used.\n   */\n  add(value) {\n    const key = UUID.create();\n    this.set(key, value);\n    return key;\n  }\n  /**\n   * Deletes the specified key from the map and triggers the onItemDeleted event if the key was found.\n   *\n   * @param key - The key of the item to delete.\n   * @returns True if the key was found and deleted; otherwise, false.\n   */\n  delete(key) {\n    const deleted = super.delete(key);\n    if (deleted)\n      this.onItemDeleted.trigger(key);\n    return deleted;\n  }\n  /**\n   * Clears the map and resets the events.\n   */\n  dispose() {\n    this.clear();\n    this.onItemSet.reset();\n    this.onItemDeleted.reset();\n    this.onCleared.reset();\n  }\n}\nclass ControlsUtils {\n  static isEntry(item) {\n    const types = /* @__PURE__ */ new Set([\n      \"Boolean\",\n      \"Color\",\n      \"Text\",\n      \"Number\",\n      \"Select\",\n      \"Vector3\",\n      \"TextSet\",\n      \"None\"\n    ]);\n    return types.has(item.type);\n  }\n  static copySchema(schema, copy = {}) {\n    for (const name in schema) {\n      const entry = schema[name];\n      if (this.isEntry(entry)) {\n        copy[name] = this.copyEntry(entry);\n      } else {\n        copy[name] = {};\n        this.copySchema(entry, copy[name]);\n      }\n    }\n    return copy;\n  }\n  static copyEntry(controlEntry) {\n    if (controlEntry.type === \"Boolean\") {\n      const entry = controlEntry;\n      return {\n        type: entry.type,\n        value: entry.value\n      };\n    }\n    if (controlEntry.type === \"Color\") {\n      const entry = controlEntry;\n      return {\n        type: entry.type,\n        value: entry.value.clone()\n      };\n    }\n    if (controlEntry.type === \"Text\") {\n      const entry = controlEntry;\n      return {\n        type: entry.type,\n        value: entry.value\n      };\n    }\n    if (controlEntry.type === \"Number\") {\n      const entry = controlEntry;\n      return {\n        type: entry.type,\n        value: entry.value,\n        min: entry.min,\n        max: entry.max,\n        interpolable: entry.interpolable\n      };\n    }\n    if (controlEntry.type === \"Select\") {\n      const entry = controlEntry;\n      return {\n        type: entry.type,\n        value: entry.value,\n        multiple: entry.multiple,\n        options: new Set(entry.options)\n      };\n    }\n    if (controlEntry.type === \"Vector3\") {\n      const entry = controlEntry;\n      return {\n        type: entry.type,\n        value: entry.value.clone()\n      };\n    }\n    if (controlEntry.type === \"TextSet\") {\n      const entry = controlEntry;\n      return {\n        type: entry.type,\n        value: new Set(entry.value)\n      };\n    }\n    if (controlEntry.type === \"None\") {\n      const entry = controlEntry;\n      return {\n        type: entry.type,\n        value: entry.value\n      };\n    }\n    throw new Error(\"Invalid entry!\");\n  }\n}\nclass EventManager {\n  constructor() {\n    /**\n     * The list of events managed by this instance.\n     */\n    __publicField(this, \"list\", /* @__PURE__ */ new Set());\n  }\n  /**\n   * Adds events to this manager.\n   * @param events the events to add.\n   */\n  add(events) {\n    for (const event of events) {\n      this.list.add(event);\n    }\n  }\n  /**\n   * Removes events from this manager.\n   * @param events the events to remove.\n   */\n  remove(events) {\n    for (const event of events) {\n      this.list.delete(event);\n    }\n  }\n  /**\n   * Sets all the events managed by this instance as enabled or disabled.\n   * @param active whether to turn on or off the events.\n   */\n  set(active) {\n    for (const event of this.list) {\n      event.enabled = active;\n    }\n  }\n  /**\n   * Resets all the events managed by this instance.\n   */\n  reset() {\n    for (const event of this.list) {\n      event.reset();\n    }\n  }\n}\nclass Configurator {\n  constructor(component, components, name, uuid) {\n    __publicField(this, \"_component\");\n    __publicField(this, \"name\");\n    __publicField(this, \"uuid\");\n    this._component = component;\n    this.name = name;\n    this.uuid = uuid ?? UUID.create();\n    const configManager = components.get(ConfigManager);\n    configManager.list.set(this.uuid, this);\n  }\n  get controls() {\n    return ControlsUtils.copySchema(this._config);\n  }\n  set(data) {\n    for (const name in data) {\n      if (name in this) {\n        const key = name;\n        this[key] = data[name].value;\n      }\n    }\n  }\n  export(controls = this._config, exported = {}) {\n    for (const id in controls) {\n      const control = controls[id];\n      const isControl = ControlsUtils.isEntry(control);\n      if (isControl) {\n        if (control.type === \"Color\") {\n          const { r, g, b } = control.value;\n          exported[id] = { ...control, value: { r, g, b } };\n        } else if (control.type === \"Vector3\") {\n          const { x, y, z } = control.value;\n          exported[id] = { ...control, value: { x, y, z } };\n        } else if (control.type === \"TextSet\") {\n          const value = Array.from(control.value);\n          exported[id] = { ...control, value };\n        } else if (control.type === \"Select\") {\n          const options = Array.from(control.options);\n          exported[id] = { ...control, options };\n        } else {\n          exported[id] = { ...control };\n        }\n      } else {\n        exported[id] = {};\n        this.export(control, exported[id]);\n      }\n    }\n    return exported;\n  }\n  import(exported, imported = {}, first = true) {\n    for (const id in exported) {\n      const control = exported[id];\n      const isControl = ControlsUtils.isEntry(control);\n      if (isControl) {\n        if (control.type === \"Color\") {\n          const { r, g, b } = control.value;\n          imported[id] = { ...control, value: new THREE.Color(r, g, b) };\n        } else if (control.type === \"Vector3\") {\n          const { x, y, z } = control.value;\n          imported[id] = { ...control, value: new THREE.Vector3(x, y, z) };\n        } else if (control.type === \"TextSet\") {\n          imported[id] = { ...control, value: new Set(control.value) };\n        } else if (control.type === \"Select\") {\n          imported[id] = { ...control, options: new Set(control.options) };\n        } else {\n          imported[id] = { ...control };\n        }\n      } else {\n        imported[id] = {};\n        this.import(control, imported[id], false);\n      }\n    }\n    if (first) {\n      this.set(imported);\n    }\n  }\n}\nconst _ConfigManager = class _ConfigManager extends Component {\n  constructor(components) {\n    super(components);\n    /**\n     * The list of all configurations of this app.\n     */\n    __publicField(this, \"list\", new DataMap$1());\n    /** {@link Component.enabled} */\n    __publicField(this, \"enabled\", true);\n    components.add(_ConfigManager.uuid, this);\n  }\n};\n/**\n * A unique identifier for the component.\n * This UUID is used to register the component within the Components system.\n */\n__publicField(_ConfigManager, \"uuid\", \"b8c764e0-6b24-4e77-9a32-35fa728ee5b4\");\nlet ConfigManager = _ConfigManager;\nclass Mouse {\n  constructor(dom) {\n    __publicField(this, \"_event\");\n    __publicField(this, \"_position\", new THREE.Vector2());\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    __publicField(this, \"updateMouseInfo\", (event) => {\n      this._event = event;\n    });\n    this.dom = dom;\n    this.setupEvents(true);\n  }\n  /**\n   * The real position of the mouse or touch of the Three.js canvas.\n   */\n  get position() {\n    this.updatePosition(false);\n    return this._position.clone();\n  }\n  /**\n   * The raw position of the mouse or touch of the Three.js canvas.\n   */\n  get rawPosition() {\n    this.updatePosition(true);\n    return this._position.clone();\n  }\n  /** {@link Disposable.dispose} */\n  dispose() {\n    this.setupEvents(false);\n    this.onDisposed.trigger();\n    this.onDisposed.reset();\n  }\n  updatePosition(raw) {\n    if (this._event) {\n      const bounds = this.dom.getBoundingClientRect();\n      this._position.x = this.getPositionX(bounds, this._event, raw);\n      this._position.y = this.getPositionY(bounds, this._event, raw);\n    }\n  }\n  getPositionY(bound, event, raw) {\n    const data = this.getDataObject(event);\n    if (raw) {\n      return data.clientY;\n    }\n    return -((data.clientY - bound.top) / (bound.bottom - bound.top)) * 2 + 1;\n  }\n  getPositionX(bound, event, raw) {\n    const data = this.getDataObject(event);\n    if (raw) {\n      return data.clientX;\n    }\n    return (data.clientX - bound.left) / (bound.right - bound.left) * 2 - 1;\n  }\n  getDataObject(event) {\n    return event instanceof MouseEvent ? event : event.touches[0];\n  }\n  setupEvents(active) {\n    if (active) {\n      this.dom.addEventListener(\"pointermove\", this.updateMouseInfo);\n      this.dom.addEventListener(\"touchstart\", this.updateMouseInfo);\n    } else {\n      this.dom.removeEventListener(\"pointermove\", this.updateMouseInfo);\n      this.dom.removeEventListener(\"touchstart\", this.updateMouseInfo);\n    }\n  }\n}\nconst _FragmentsManager = class _FragmentsManager extends Component {\n  constructor(components) {\n    super(components);\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    __publicField(this, \"onBeforeDispose\", new Event());\n    /**\n     * Event triggered when fragments are loaded.\n     */\n    __publicField(this, \"onFragmentsLoaded\", new Event());\n    __publicField(this, \"baseCoordinationModel\", \"\");\n    __publicField(this, \"baseCoordinationMatrix\", new THREE.Matrix4());\n    /** {@link Component.enabled} */\n    __publicField(this, \"enabled\", true);\n    __publicField(this, \"_core\");\n    this.components.add(_FragmentsManager.uuid, this);\n  }\n  get initialized() {\n    return !!this._core;\n  }\n  /**\n   * Map containing all loaded fragment models.\n   * The key is the group's unique identifier, and the value is the model itself.\n   */\n  get list() {\n    return this.core.models.list;\n  }\n  get core() {\n    if (!this._core) {\n      throw new Error(\"FragmentsManager not initialized. Call init() first.\");\n    }\n    return this._core;\n  }\n  get _hasCoordinationModel() {\n    return this.baseCoordinationModel !== \"\";\n  }\n  /** {@link Disposable.dispose} */\n  dispose() {\n    this.onBeforeDispose.trigger();\n    if (this._core) {\n      this.core.dispose();\n      this._core = void 0;\n    }\n    this.baseCoordinationModel = \"\";\n    this.onFragmentsLoaded.reset();\n    this.onDisposed.trigger();\n    this.onDisposed.reset();\n  }\n  init(workerURL, options) {\n    this._core = new FragmentsModels(workerURL, options);\n    this.core.onModelLoaded.add(async () => {\n      if (this._hasCoordinationModel)\n        return;\n      const firstModel = [...this.list.values()][0];\n      if (!firstModel)\n        return;\n      this.baseCoordinationModel = firstModel.modelId;\n      this.baseCoordinationMatrix = await firstModel.getCoordinationMatrix();\n    });\n    this.list.onItemDeleted.add(() => {\n      if (this.list.size > 0)\n        return;\n      this.baseCoordinationModel = \"\";\n      this.baseCoordinationMatrix = new THREE.Matrix4();\n    });\n  }\n  async raycast(data) {\n    const results = [];\n    for (const model of this.core.models.list.values()) {\n      if (data.snappingClasses && data.snappingClasses.length > 0) {\n        const snappingRaycast = await model.raycastWithSnapping(\n          data\n        );\n        if (snappingRaycast && snappingRaycast.length > 0) {\n          results.push(snappingRaycast[0]);\n        } else {\n          const simpleRaycast = await model.raycast(data);\n          if (simpleRaycast)\n            results.push(simpleRaycast);\n        }\n      } else {\n        const simpleRaycast = await model.raycast(data);\n        if (simpleRaycast)\n          results.push(simpleRaycast);\n      }\n    }\n    await Promise.all(results);\n    if (results.length === 0)\n      return void 0;\n    let closestResult = results[0];\n    let minDistance = closestResult.distance;\n    for (let i = 1; i < results.length; i++) {\n      if (results[i].distance < minDistance) {\n        minDistance = results[i].distance;\n        closestResult = results[i];\n      }\n    }\n    return closestResult;\n  }\n  async getPositions(items) {\n    const results = [];\n    const getModelPositions = async (model, localIds) => {\n      const positions = await model.getPositions(localIds);\n      for (const position of positions) {\n        results.push(position);\n      }\n    };\n    const promises = [];\n    for (const modelId in items) {\n      const model = this.core.models.list.get(modelId);\n      if (model) {\n        promises.push(getModelPositions(model, Array.from(items[modelId])));\n      }\n    }\n    await Promise.all(promises);\n    return results;\n  }\n  async getBBoxes(items) {\n    const results = [];\n    const getBoxes = async (model, localIds) => {\n      const boxes = await model.getBoxes(localIds);\n      if (boxes) {\n        for (const box of boxes) {\n          results.push(box);\n        }\n      }\n    };\n    const promises = [];\n    for (const itemID in items) {\n      const model = this.core.models.list.get(itemID);\n      if (model) {\n        promises.push(getBoxes(model, Array.from(items[itemID])));\n      }\n    }\n    await Promise.all(promises);\n    return results;\n  }\n  async highlight(style, items) {\n    await this.forEachModel(items, \"highlight\", style);\n  }\n  /**\n   * Retrieves data for specified items from multiple models.\n   *\n   * @param items A map of model IDs to an array of local IDs, specifying which items to retrieve data for.\n   * @param config Optional configuration for data retrieval.\n   * @returns A record mapping model IDs to an array of item data.\n   */\n  async getData(items, config) {\n    const result = {};\n    for (const [modelId, localIds] of Object.entries(items)) {\n      const model = this.list.get(modelId);\n      if (!model)\n        continue;\n      if (localIds.size === 0) {\n        result[modelId] = [];\n        continue;\n      }\n      const data = await model.getItemsData([...localIds], config);\n      result[modelId] = data;\n    }\n    return result;\n  }\n  async resetHighlight(items) {\n    await this.forEachModel(items, \"resetHighlight\");\n  }\n  async forEachModel(items, method, ...args) {\n    const _items = {};\n    if (items) {\n      for (const modelId in items) {\n        const ids = items[modelId];\n        _items[modelId] = Array.from(ids);\n      }\n    } else {\n      for (const name of this.core.models.list.keys()) {\n        _items[name] = void 0;\n      }\n    }\n    const promises = [];\n    for (const modelId in _items) {\n      const model = this.core.models.list.get(modelId);\n      if (model) {\n        const ids = _items[modelId];\n        const promise = model[method](ids, ...args);\n        promises.push(promise);\n      }\n    }\n    await Promise.all(promises);\n  }\n  /**\n   * Converts a collection of IFC GUIDs to a fragmentIdMap.\n   *\n   * @param guids - An iterable collection of global IDs to be converted to a fragment ID map.\n   *\n   * @returns A fragment ID map, where the keys are fragment IDs and the values are the corresponding express IDs.\n   */\n  async guidsToModelIdMap(guids) {\n    const modelIdMap = {};\n    for (const [id, model] of this.list) {\n      const localIds = (await model.getLocalIdsByGuids([...guids])).filter(\n        (localId) => localId !== null\n      );\n      modelIdMap[id] = new Set(localIds);\n    }\n    return modelIdMap;\n  }\n  /**\n   * Converts a fragment ID map to a collection of GUIDs.\n   *\n   * @param modelIdMap - A ModelIdMap to be converted to a collection of GUIDs.\n   *\n   * @returns An array of GUIDs.\n   */\n  async modelIdMapToGuids(modelIdMap) {\n    const guids = [];\n    for (const [modelId, localIds] of Object.entries(modelIdMap)) {\n      const model = this.list.get(modelId);\n      if (!model)\n        continue;\n      const modelGuids = (await model.getGuidsByLocalIds([...localIds])).filter(\n        (guid) => guid !== null\n      );\n      guids.push(...modelGuids);\n    }\n    return guids;\n  }\n  // /**\n  //  * Applies coordinate transformation to the provided models.\n  //  * If no models are provided, all groups are used.\n  //  * The first model in the list becomes the base model for coordinate transformation.\n  //  * All other models are then transformed to match the base model's coordinate system.\n  //  *\n  //  * @param models - The models to apply coordinate transformation to.\n  //  * If not provided, all models are used.\n  //  */\n  // coordinate(models = Array.from(this.groups.values())) {\n  //   const isFirstModel = this.baseCoordinationModel.length === 0;\n  //   if (isFirstModel) {\n  //     const first = models.pop();\n  //     if (!first) {\n  //       return;\n  //     }\n  //     this.baseCoordinationModel = first.uuid;\n  //     this.baseCoordinationMatrix = first.coordinationMatrix.clone();\n  //   }\n  //   if (!models.length) {\n  //     return;\n  //   }\n  //   for (const model of models) {\n  //     if (model.coordinationMatrix.equals(this.baseCoordinationMatrix)) {\n  //       continue;\n  //     }\n  //     model.position.set(0, 0, 0);\n  //     model.rotation.set(0, 0, 0);\n  //     model.scale.set(1, 1, 1);\n  //     model.updateMatrix();\n  //     this.applyBaseCoordinateSystem(model, model.coordinationMatrix);\n  //   }\n  // }\n  /**\n   * Applies the base coordinate system to the provided object.\n   *\n   * This function takes an object and its original coordinate system as input.\n   * It then inverts the original coordinate system and applies the base coordinate system\n   * to the object. This ensures that the object's position, rotation, and scale are\n   * transformed to match the base coordinate system (which is taken from the first model loaded).\n   *\n   * @param object - The object to which the base coordinate system will be applied.\n   * This should be an instance of THREE.Object3D.\n   *\n   * @param originalCoordinateSystem - The original coordinate system of the object.\n   * This should be a THREE.Matrix4 representing the object's transformation matrix.\n   */\n  applyBaseCoordinateSystem(object, originalCoordinateSystem) {\n    const transformMatrix = new THREE.Matrix4();\n    if (originalCoordinateSystem) {\n      transformMatrix.copy(originalCoordinateSystem.clone()).invert();\n    }\n    transformMatrix.multiply(this.baseCoordinationMatrix);\n    object.applyMatrix4(transformMatrix);\n    return transformMatrix;\n  }\n};\n/**\n * A unique identifier for the component.\n * This UUID is used to register the component within the Components system.\n */\n__publicField(_FragmentsManager, \"uuid\", \"fef46874-46a3-461b-8c44-2922ab77c806\");\nlet FragmentsManager = _FragmentsManager;\nclass IfcFragmentSettings {\n  constructor() {\n    /** Path of the WASM for [web-ifc](https://github.com/ThatOpen/engine_web-ifc). */\n    __publicField(this, \"wasm\", {\n      path: \"\",\n      absolute: false,\n      logLevel: WEBIFC.LogLevel.LOG_LEVEL_OFF\n    });\n    /** Loader settings for [web-ifc](https://github.com/ThatOpen/engine_web-ifc). */\n    __publicField(this, \"webIfc\", {\n      COORDINATE_TO_ORIGIN: true\n      // OPTIMIZE_PROFILES: true,\n    });\n    /**\n     * Whether to automatically set the path to the WASM file for [web-ifc](https://github.com/ThatOpen/engine_web-ifc).\n     * If set to true, the path will be set to the default path of the WASM file.\n     * If set to false, the path must be provided manually in the `wasm.path` property.\n     * Default value is true.\n     */\n    __publicField(this, \"autoSetWasm\", true);\n    /**\n     * Custom function to handle the file location for [web-ifc](https://github.com/ThatOpen/engine_web-ifc).\n     * This function will be called when [web-ifc](https://github.com/ThatOpen/engine_web-ifc) needs to locate a file.\n     * If set to null, the default file location handler will be used.\n     *\n     * @param url - The URL of the file to locate.\n     * @returns The absolute path of the file.\n     */\n    __publicField(this, \"customLocateFileHandler\", null);\n  }\n}\nconst _IfcLoader = class _IfcLoader extends Component {\n  constructor(components) {\n    super(components);\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    /**\n     * An event triggered when the IFC file starts loading.\n     */\n    __publicField(this, \"onIfcStartedLoading\", new Event());\n    /**\n     * An event triggered when the IFC importer is initialized.\n     */\n    __publicField(this, \"onIfcImporterInitialized\", new Event());\n    /**\n     * An event triggered when the setup process is completed.\n     */\n    __publicField(this, \"onSetup\", new Event());\n    /**\n     * The settings for the IfcLoader.\n     * It includes options for excluding categories, setting WASM paths, and more.\n     */\n    __publicField(this, \"settings\", new IfcFragmentSettings());\n    /**\n     * The instance of the Web-IFC library used for handling IFC data.\n     */\n    __publicField(this, \"webIfc\", new WEBIFC.IfcAPI());\n    /** {@link Component.enabled} */\n    __publicField(this, \"enabled\", true);\n    this.components.add(_IfcLoader.uuid, this);\n  }\n  /** {@link Disposable.dispose} */\n  dispose() {\n    this.webIfc = null;\n    this.onDisposed.trigger(_IfcLoader.uuid);\n    this.onDisposed.reset();\n  }\n  /**\n   * Sets up the IfcLoader component with the provided configuration.\n   *\n   * @param config - Optional configuration settings for the IfcLoader.\n   * If not provided, the existing settings will be used.\n   *\n   * @returns A Promise that resolves when the setup process is completed.\n   *\n   * @remarks\n   * If the `autoSetWasm` option is enabled in the configuration,\n   * the method will automatically set the WASM paths for the Web-IFC library.\n   *\n   * @example\n   * ```typescript\n   * const ifcLoader = new IfcLoader(components);\n   * await ifcLoader.setup({ autoSetWasm: true });\n   * ```\n   */\n  async setup(config) {\n    this.settings = { ...this.settings, ...config };\n    if (this.settings.autoSetWasm) {\n      await this.autoSetWasm();\n    }\n    this.onSetup.trigger();\n  }\n  /**\n   * Loads an IFC file and processes it for 3D visualization.\n   *\n   * By default, the loader imports a minimal set of attributes and relations\n   * needed for typical visualization workflows.\n   *\n   * **Default attributes**\n   * - Base entities: Project, Site, Building, BuildingStorey\n   * - Materials: IFC material definitions and layers\n   * - Properties: Property Sets, quantities (area, volume, length, etc.)\n   *\n   * **Default relations**\n   * - DefinesByProperties (IsDefinedBy / DefinesOccurrence)\n   * - AssociatesMaterial (HasAssociations / AssociatedTo)\n   * - Aggregates (IsDecomposedBy / Decomposes)\n   * - ContainedInSpatialStructure (ContainsElements / ContainedInStructure)\n   *\n   * If you need *all* attributes or relations to be loaded, you can enable them\n   * via the `instanceCallback`.\n   *\n   * The callback provides direct access to the underlying `IfcImporter`,\n   * allowing advanced configuration before processing begins.\n   *\n   * @param data - The Uint8Array containing the IFC file data.\n   * @param coordinate - Boolean indicating whether to coordinate the loaded IFC data. Default is true.\n   * @param name - Name for the fragments model.\n   * @param config - Optional extra data for loading the IFC.\n   *\n   * @returns A Promise that resolves to the FragmentsModel containing the loaded and processed IFC data.\n   *\n   * @example\n   * // Load all attributes and relations using the instanceCallback\n   * ```ts\n   * const model = await ifcLoader.load(ifcData, true, \"modelName\", {\n   *   instanceCallback: (importer) => {\n   *     importer.addAllAttributes();\n   *     importer.addAllRelations();\n   *   },\n   * });\n   * ```\n   * @example\n   * // Default loading (built-in attributes and relations only)\n   * ```typescript\n   * const ifcLoader = components.get(IfcLoader);\n   * const model = await ifcLoader.load(ifcData);\n   * ```\n   */\n  async load(data, coordinate, name, config) {\n    const fragments = this.components.get(FragmentsManager);\n    if (!fragments.initialized) {\n      throw new Error(\"You need to initialize fragments first.\");\n    }\n    if (this.settings.autoSetWasm) {\n      await this.autoSetWasm();\n    }\n    fragments.core.settings.autoCoordinate = coordinate;\n    const serializer = new FRAGS.IfcImporter();\n    serializer.wasm.path = this.settings.wasm.path;\n    serializer.wasm.absolute = this.settings.wasm.absolute;\n    serializer.webIfcSettings = this.settings.webIfc;\n    this.onIfcImporterInitialized.trigger(serializer);\n    if (config == null ? void 0 : config.instanceCallback)\n      config.instanceCallback(serializer);\n    const bytes = await serializer.process({\n      ...config == null ? void 0 : config.processData,\n      bytes: data\n    });\n    const model = await fragments.core.load(bytes, {\n      modelId: name,\n      userData: config == null ? void 0 : config.userData\n    });\n    return model;\n  }\n  /**\n   * Reads an IFC file and initializes the Web-IFC library.\n   *\n   * @param data - The Uint8Array containing the IFC file data.\n   *\n   * @returns A Promise that resolves when the IFC file is opened and initialized.\n   *\n   * @remarks\n   * This method sets the WASM path and initializes the Web-IFC library based on the provided settings.\n   * It also opens the IFC model using the provided data and settings.\n   *\n   * @example\n   * ```typescript\n   * const ifcLoader = components.get(IfcLoader);\n   * await ifcLoader.readIfcFile(ifcData);\n   * ```\n   */\n  async readIfcFile(data) {\n    const { path, absolute, logLevel } = this.settings.wasm;\n    this.webIfc.SetWasmPath(path, absolute);\n    await this.webIfc.Init(this.settings.customLocateFileHandler || void 0);\n    if (logLevel) {\n      this.webIfc.SetLogLevel(logLevel);\n    }\n    return this.webIfc.OpenModel(data, this.settings.webIfc);\n  }\n  /**\n   * Cleans up the IfcLoader component by resetting the Web-IFC library,\n   * clearing the visited fragments and fragment instances maps, and creating a new instance of the Web-IFC library.\n   *\n   * @remarks\n   * This method is called automatically after using the .load() method, so usually you don't need to use it manually.\n   *\n   * @example\n   * ```typescript\n   * const ifcLoader = components.get(IfcLoader);\n   * ifcLoader.cleanUp();\n   * ```\n   */\n  cleanUp() {\n    try {\n      this.webIfc.Dispose();\n    } catch (e) {\n      console.log(\"Web-ifc wasn't disposed.\");\n    }\n    this.webIfc = null;\n    this.webIfc = new WEBIFC.IfcAPI();\n  }\n  async autoSetWasm() {\n    const componentsPackage = await fetch(\n      `https://unpkg.com/@thatopen/components@${Components.release}/package.json`\n    );\n    if (!componentsPackage.ok) {\n      console.warn(\n        \"Couldn't get openbim-components package.json. Set wasm settings manually.\"\n      );\n      return;\n    }\n    const componentsPackageJSON = await componentsPackage.json();\n    if (!(\"web-ifc\" in componentsPackageJSON.peerDependencies)) {\n      console.warn(\n        \"Couldn't get web-ifc from peer dependencies in openbim-components. Set wasm settings manually.\"\n      );\n    } else {\n      const webIfcVer = componentsPackageJSON.peerDependencies[\"web-ifc\"];\n      this.settings.wasm.path = `https://unpkg.com/web-ifc@${webIfcVer}/`;\n      this.settings.wasm.absolute = true;\n    }\n  }\n};\n/**\n * A unique identifier for the component.\n * This UUID is used to register the component within the Components system.\n */\n__publicField(_IfcLoader, \"uuid\", \"a659add7-1418-4771-a0d6-7d4d438e4624\");\nlet IfcLoader = _IfcLoader;\nconst _Hider = class _Hider extends Component {\n  constructor(components) {\n    super(components);\n    /** {@link Component.enabled} */\n    __publicField(this, \"enabled\", true);\n    this.components.add(_Hider.uuid, this);\n  }\n  /**\n   * Sets the visibility of fragment items within the 3D scene.\n   * If no `modelIdMap` parameter is provided, all fragments will be set to the specified visibility.\n   * If it is provided, only the specified fragment items will be affected.\n   *\n   * @param visible - The visibility state to set for the items.\n   * @param modelIdMap - An optional map of modelIds and their corresponding itemIds to be affected.\n   * If not provided, all fragment items will be affected.\n   */\n  async set(visible, modelIdMap) {\n    const fragments = this.components.get(FragmentsManager);\n    const promises = [];\n    if (modelIdMap) {\n      for (const [modelId, localIds] of Object.entries(modelIdMap)) {\n        const model = fragments.list.get(modelId);\n        if (!model)\n          continue;\n        promises.push(model.setVisible([...localIds], visible));\n      }\n    } else {\n      for (const model of fragments.list.values()) {\n        promises.push(model.setVisible(void 0, visible));\n      }\n    }\n    await Promise.all(promises);\n    await fragments.core.update(true);\n  }\n  /**\n   * Isolates fragments within the 3D scene by hiding all other fragments and showing only the specified ones.\n   * It calls the `set` method twice: first to hide all fragments, and then to show only the specified ones.\n   *\n   * @param modelIdMap - A map of model IDs and their corresponding itemIds to be isolated.\n   */\n  async isolate(modelIdMap) {\n    await Promise.all([\n      this.set(false),\n      // Hides all fragments\n      this.set(true, modelIdMap)\n      // Shows only the specified fragments\n    ]);\n  }\n  /**\n   * Toggles the visibility of specified items in the fragments.\n   *\n   * @param modelIdMap - An object where the keys are model IDs and the values are arrays of local IDs representing the fragments to be toggled.\n   * @returns A promise that resolves when all visibility toggles and the core update are complete.\n   */\n  async toggle(modelIdMap) {\n    const promises = [];\n    const fragments = this.components.get(FragmentsManager);\n    for (const [modelId, localIds] of Object.entries(modelIdMap)) {\n      const model = fragments.list.get(modelId);\n      if (!model)\n        continue;\n      promises.push(model.toggleVisible([...localIds]));\n    }\n    await Promise.all(promises);\n    await fragments.core.update(true);\n  }\n  /**\n   * Asynchronously retrieves a map of model IDs to their corresponding item IDs based on visibility state.\n   *\n   * @param state - The visibility state to filter items by.\n   * @param modelIds - Optional array of model IDs to filter the items. If not provided, all models will be considered.\n   * @returns A promise that resolves to a ModelIdMap record where the keys are model IDs and the values are arrays of item IDs that match the visibility state.\n   */\n  async getVisibilityMap(state, modelIds) {\n    const models = [];\n    const promises = [];\n    const fragments = this.components.get(FragmentsManager);\n    if (modelIds) {\n      for (const modelId of modelIds) {\n        const model = fragments.list.get(modelId);\n        if (!model)\n          continue;\n        models.push(model.modelId);\n        promises.push(model.getItemsByVisibility(state));\n      }\n    } else {\n      for (const model of fragments.list.values()) {\n        models.push(model.modelId);\n        promises.push(model.getItemsByVisibility(state));\n      }\n    }\n    const localIds = await Promise.all(promises);\n    const modelIdMap = {};\n    for (const [index, modelId] of models.entries()) {\n      modelIdMap[modelId] = localIds[index];\n    }\n    return modelIdMap;\n  }\n};\n/**\n * A unique identifier for the component.\n * This UUID is used to register the component within the Components system.\n */\n__publicField(_Hider, \"uuid\", \"dd9ccf2d-8a21-4821-b7f6-2949add16a29\");\nlet Hider = _Hider;\nconst _BoundingBoxer = class _BoundingBoxer extends Component {\n  constructor(components) {\n    super(components);\n    /** {@link Component.enabled} */\n    __publicField(this, \"enabled\", true);\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    /**\n     * A readonly dataset containing instances of THREE.Box3.\n     */\n    __publicField(this, \"list\", new FRAGS.DataSet());\n    this.components.add(_BoundingBoxer.uuid, this);\n  }\n  /** {@link Disposable.dispose} */\n  dispose(full = true) {\n    this.list.clear();\n    this.onDisposed.trigger(_BoundingBoxer.uuid);\n    if (full) {\n      this.onDisposed.reset();\n      this.list.eventsEnabled = false;\n      this.list.dispose();\n    }\n  }\n  /**\n   * Combines all bounding boxes in the `list` property into a single bounding box.\n   *\n   * @returns A `THREE.Box3` instance representing the union of all bounding boxes in the `list`.\n   */\n  get() {\n    const fullBox = new THREE.Box3();\n    for (const box of this.list) {\n      fullBox.union(box);\n    }\n    return fullBox;\n  }\n  /**\n   * Asynchronously adds bounding boxes to the list by merging boxes from models\n   * specified in the provided `ModelIdMap`.\n   *\n   * @param items - A map where keys are model IDs and values are arrays of local IDs\n   *                representing specific parts of the models to include in the bounding box.\n   */\n  async addFromModelIdMap(items) {\n    const fragments = this.components.get(FragmentsManager);\n    const box = new THREE.Box3();\n    for (const [modelId, localIds] of Object.entries(items)) {\n      const model = fragments.list.get(modelId);\n      if (!model)\n        continue;\n      const itemsBox = await model.getMergedBox([...localIds]);\n      box.union(itemsBox);\n    }\n    this.list.add(box);\n  }\n  /**\n   * Adds bounding boxes from models to the current list based on optional filtering criteria.\n   *\n   * @param modelIds - An optional array of regular expressions used to filter models by their IDs.\n   *                   If provided, only models whose IDs match at least one of the regular expressions\n   *                   will have their bounding boxes added to the list. If not, all models will be used.\n   */\n  addFromModels(modelIds) {\n    const fragments = this.components.get(FragmentsManager);\n    for (const [modelId, model] of fragments.list) {\n      if (modelIds && !modelIds.some((regex) => regex.test(modelId)))\n        continue;\n      this.list.add(model.box);\n    }\n  }\n  /**\n   * Calculates and returns the center point of the bounding box derived from the provided model ID map.\n   *\n   * @param modelIdMap - A mapping of model IDs and localIds used to generate the bounding box.\n   * @returns A `THREE.Vector3` object representing the center point of the bounding box.\n   */\n  async getCenter(modelIdMap) {\n    this.list.clear();\n    await this.addFromModelIdMap(modelIdMap);\n    const box = this.get();\n    this.list.clear();\n    const center = new THREE.Vector3();\n    box.getCenter(center);\n    return center;\n  }\n  /**\n   * Calculates the camera orientation and position based on the specified orientation\n   * and an optional offset factor.\n   *\n   * @param orientation - Specifies the direction of the camera relative to the bounding box.\n   * @param offsetFactor - A multiplier applied to the distance between the camera and the bounding box.\n   *                       Defaults to `1`.\n   * @returns An object containing:\n   *          - `position`: A `THREE.Vector3` representing the calculated camera position.\n   *          - `target`: A `THREE.Vector3` representing the center of the bounding box, which the camera should target.\n   */\n  async getCameraOrientation(orientation, offsetFactor = 1) {\n    const fragments = this.components.get(FragmentsManager);\n    this.list.clear();\n    for (const [_, model] of fragments.list) {\n      this.list.add(model.box);\n    }\n    const box = this.get();\n    this.list.clear();\n    const center = new THREE.Vector3();\n    box.getCenter(center);\n    const size = new THREE.Vector3();\n    box.getSize(size);\n    const cameraDistance = Math.max(size.x, size.y, size.z) * offsetFactor;\n    const position = new THREE.Vector3();\n    switch (orientation) {\n      case \"front\":\n        position.set(center.x, center.y, center.z + cameraDistance);\n        break;\n      case \"back\":\n        position.set(center.x, center.y, center.z - cameraDistance);\n        break;\n      case \"left\":\n        position.set(center.x - cameraDistance, center.y, center.z);\n        break;\n      case \"right\":\n        position.set(center.x + cameraDistance, center.y, center.z);\n        break;\n      case \"top\":\n        position.set(center.x, center.y + cameraDistance, center.z);\n        break;\n      case \"bottom\":\n        position.set(center.x, center.y - cameraDistance, center.z);\n        break;\n      default:\n        position.set(center.x, center.y, center.z + cameraDistance);\n    }\n    return { position, target: center };\n  }\n};\n__publicField(_BoundingBoxer, \"uuid\", \"d1444724-dba6-4cdd-a0c7-68ee1450d166\");\nlet BoundingBoxer = _BoundingBoxer;\nclass FinderQuery {\n  constructor(components, queries) {\n    __publicField(this, \"name\", \"Query\");\n    __publicField(this, \"customData\", {});\n    __publicField(this, \"_components\");\n    __publicField(this, \"_queries\", []);\n    __publicField(this, \"_aggregation\", \"exclusive\");\n    /**\n     * The result of the query, a map of modelIds to localIds.\n     * Null if the query has not been executed or has not been cached.\n     */\n    __publicField(this, \"result\", null);\n    /**\n     * Determines whether the query results should be cached.\n     */\n    __publicField(this, \"cache\", true);\n    __publicField(this, \"serializeQueryParameters\", (params) => {\n      var _a;\n      const result = {\n        categories: (_a = params.categories) == null ? void 0 : _a.map((regex) => regex.source),\n        attributes: params.attributes ? {\n          aggregation: params.attributes.aggregation,\n          queries: params.attributes.queries.map(\n            this.serializeAttributeQuery\n          )\n        } : void 0,\n        relation: params.relation ? {\n          name: params.relation.name,\n          query: params.relation.query ? this.serializeQueryParameters(params.relation.query) : void 0\n        } : void 0\n      };\n      return result;\n    });\n    __publicField(this, \"deserializeQueryParameters\", (params) => {\n      var _a;\n      const result = {\n        categories: (_a = params.categories) == null ? void 0 : _a.map((value) => new RegExp(value)),\n        attributes: params.attributes ? {\n          aggregation: params.attributes.aggregation,\n          queries: params.attributes.queries.map(\n            this.deserializeAttributeQuery\n          )\n        } : void 0,\n        relation: params.relation ? {\n          name: params.relation.name,\n          query: params.relation.query ? this.deserializeQueryParameters(params.relation.query) : void 0\n        } : void 0\n      };\n      return result;\n    });\n    this._components = components;\n    this.queries = queries;\n  }\n  /**\n   * The query parameters used to find items.\n   */\n  set queries(value) {\n    this._queries = value;\n    this.clearCache();\n  }\n  get queries() {\n    return this._queries;\n  }\n  /**\n   * Sets the aggregation value (AND/OR) for the query and resets the cache if the new value differs.\n   */\n  set aggregation(value) {\n    if (value !== this._aggregation)\n      this.clearCache();\n    this._aggregation = value;\n  }\n  get aggregation() {\n    return this._aggregation;\n  }\n  /**\n   * Executes the finder query to retrieve items based on the configured query and optional model IDs.\n   *\n   * @param config - Optional configuration object.\n   * @param config.modelIds - Optional array of model IDs to filter the search.\n   * @param config.force - Optional boolean to force a new search, bypassing the cache. Defaults to `false`.\n   * @returns A promise that resolves to a `ModelIdMap` containing the search results.\n   */\n  async test(config) {\n    const { modelIds, force } = { force: false, ...config };\n    if (this.result && !force)\n      return this.result;\n    const finder = this._components.get(ItemsFinder);\n    const result = await finder.getItems(this.queries, {\n      modelIds,\n      aggregation: this.aggregation\n    });\n    if (this.cache)\n      this.result = result;\n    return result;\n  }\n  /**\n   * Clears the cached result of the query, forcing a re-evaluation on the next access.\n   */\n  clearCache() {\n    this.result = null;\n  }\n  serializeAttributeQuery(query) {\n    let value;\n    if (Array.isArray(query.value)) {\n      value = query.value.map((regex) => regex.source);\n    } else if (query.value instanceof RegExp) {\n      value = query.value.source;\n    } else {\n      value = query.value;\n    }\n    const result = {\n      name: query.name.source,\n      value,\n      type: query.type instanceof RegExp ? query.type.source : query.type,\n      negate: query.negate,\n      itemIds: query.itemIds\n    };\n    return result;\n  }\n  /**\n   * Serializes the finder query into a JSON-compatible format.\n   * Converts regular expressions to strings.\n   *\n   * @returns A `SerializedFinderQuery` object representing the serialized query.\n   */\n  toJSON() {\n    const manager = this._components.get(ItemsFinder);\n    const guid = manager.list.getKey(this) ?? UUID.create();\n    const result = {\n      guid,\n      name: this.name,\n      customData: this.customData,\n      queries: this.queries.map(this.serializeQueryParameters),\n      aggregation: this.aggregation,\n      cache: this.cache\n    };\n    return result;\n  }\n  deserializeAttributeQuery(query) {\n    let value;\n    if (Array.isArray(query.value)) {\n      value = query.value.map((val) => new RegExp(val));\n    } else if (typeof query.value === \"string\") {\n      value = new RegExp(query.value);\n    } else {\n      value = query.value;\n    }\n    const result = {\n      name: new RegExp(query.name),\n      value,\n      type: query.type ? new RegExp(query.type) : void 0,\n      negate: query.negate,\n      itemIds: query.itemIds\n    };\n    return result;\n  }\n  /**\n   * Deserializes a JSON object into a `FinderQuery` instance.\n   *\n   * @param data - A `SerializedFinderQuery` object representing the serialized query.\n   * @returns A `FinderQuery` instance.\n   */\n  fromJSON(data) {\n    this.name = data.name;\n    this.customData = data.customData;\n    this.aggregation = data.aggregation;\n    this.cache = data.cache;\n    this.queries = data.queries.map(this.deserializeQueryParameters);\n    return this;\n  }\n}\nconst _ItemsFinder = class _ItemsFinder extends Component {\n  constructor(components) {\n    super(components);\n    /** {@link Component.enabled} */\n    __publicField(this, \"enabled\", true);\n    /**\n     * A map of FinderQuery objects, indexed by a string key.\n     */\n    __publicField(this, \"list\", new FRAGS.DataMap());\n    components.add(_ItemsFinder.uuid, this);\n  }\n  // private clearCache() {\n  //   for (const [, finderQuery] of this.list) {\n  //     finderQuery.clearCache();\n  //   }\n  // }\n  /**\n   * Retrieves items from specified models based on a query.\n   *\n   * @param queries - The query parameters to filter items.\n   * @param modelIds - Optional array of model IDs to include in the search. If not provided, all models are searched.\n   * @returns A map of model IDs to sets of item IDs that match the query.\n   */\n  async getItems(queries, config) {\n    let modelsToCheck;\n    if (config) {\n      const { modelIds, items } = config;\n      if (items) {\n        const itemsModels = Object.keys(items);\n        if (itemsModels.length > 0)\n          modelsToCheck = itemsModels.map((entry) => new RegExp(`^${entry}$`));\n      } else if (modelIds) {\n        modelsToCheck = modelIds;\n      }\n    }\n    const aggregation = (config == null ? void 0 : config.aggregation) ?? \"exclusive\";\n    const fragments = this.components.get(FragmentsManager);\n    const results = await Promise.all(\n      queries.map(async (query) => {\n        const result = {};\n        await Promise.all(\n          Array.from(fragments.list).map(async ([id, model]) => {\n            var _a;\n            if (modelsToCheck && !modelsToCheck.some((regex) => regex.test(id)))\n              return;\n            const localIds = (_a = config == null ? void 0 : config.items) == null ? void 0 : _a[id];\n            const items = await model.getItemsByQuery(query, { localIds: localIds ? [...localIds] : void 0 });\n            result[id] = new Set(items);\n          })\n        );\n        return result;\n      })\n    );\n    const finalResult = aggregation === \"inclusive\" ? ModelIdMapUtils.join(results) : ModelIdMapUtils.intersect(results);\n    return finalResult;\n  }\n  /**\n   * Creates a new FinderQuery instance and adds it to the list of queries.\n   *\n   * @param name - The name of the query.\n   * @param queries - The queries to use.\n   * @returns The newly created FinderQuery instance.\n   */\n  create(name, queries) {\n    const instance = new FinderQuery(this.components, queries);\n    this.list.set(name, instance);\n    return instance;\n  }\n  /**\n   * Adds queries based on categories from items that have geometry.\n   *\n   * @param modelIds - An optional array of model IDs to filter fragments. If not provided, all fragments are processed.\n   * @returns An array with the categories used to create the queries\n   */\n  async addFromCategories(modelIds) {\n    const result = /* @__PURE__ */ new Set();\n    const fragments = this.components.get(FragmentsManager);\n    for (const [id, model] of fragments.list) {\n      if (modelIds && !modelIds.some((regex) => regex.test(id)))\n        continue;\n      const categories = (await model.getItemsWithGeometryCategories()).filter(\n        (category) => category !== null\n      );\n      const set = new Set(categories);\n      for (const category of set) {\n        if (this.list.has(category))\n          continue;\n        this.create(category, [{ categories: [new RegExp(`^${category}$`)] }]);\n        result.add(category);\n      }\n    }\n    return [...result];\n  }\n  /**\n   * Imports a list of `FinderQuery` instances from a `SerializationResult` containing serialized finder query data.\n   *\n   * @param result - The `SerializationResult` containing the serialized `SerializedFinderQuery` data.\n   * @returns An array of `FinderQuery` instances created from the serialized data. Returns an empty array if the input data is null or undefined.\n   */\n  import(result) {\n    const { data } = result;\n    const instances = [];\n    if (!data)\n      return instances;\n    for (const value of data) {\n      const finderQuery = this.create(value.guid, []);\n      finderQuery.fromJSON(value);\n      instances.push(finderQuery);\n    }\n    return instances;\n  }\n  /**\n   * Serializes the ItemsFinder's data into a format suitable for export.\n   *\n   * @returns An object containing an array of serialized finder queries.\n   */\n  export() {\n    const data = [];\n    for (const [name, finderQuery] of this.list.entries()) {\n      const partial = finderQuery.toJSON();\n      const result = {\n        ...partial,\n        name\n      };\n      data.push(result);\n    }\n    return { data };\n  }\n};\n/**\n * A unique identifier for the component.\n * This UUID is used to register the component within the Components system.\n */\n__publicField(_ItemsFinder, \"uuid\", \"0da7ad77-f734-42ca-942f-a074adfd1e3a\");\nlet ItemsFinder = _ItemsFinder;\nconst _Classifier = class _Classifier extends Component {\n  constructor(components) {\n    super(components);\n    /** {@link Component.enabled} */\n    __publicField(this, \"enabled\", true);\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    /**\n     * A nested data map that organizes classification groups.\n     * The outer map uses strings as keys, and the inner map contains ClassificationGroupData, also keyed by strings.\n     */\n    __publicField(this, \"list\", new FRAGS.DataMap());\n    /**\n     * The default save function used by the classifier.\n     * It extracts the 'value' property from the item's Name and returns it as a string.\n     * If the 'value' property does not exist, it returns null.\n     *\n     * @param item - The item data to extract the value from.\n     * @returns The extracted value as a string, or null if the value does not exist.\n     */\n    __publicField(this, \"defaultSaveFunction\", (item) => {\n      if (!(\"value\" in item.Name))\n        return null;\n      return item.Name.value;\n    });\n    __publicField(this, \"onBeforeFragmentsDispose\", async (data) => {\n      const { key: modelId, value: model } = data;\n      const localIds = await model.getLocalIds();\n      const modelIdMap = { [modelId]: new Set(localIds) };\n      this.removeItems(modelIdMap);\n    });\n    components.add(_Classifier.uuid, this);\n    this.setupEvents();\n    const fragmentsManager = components.get(FragmentsManager);\n    fragmentsManager.list.onBeforeDelete.add(this.onBeforeFragmentsDispose);\n  }\n  setupEvents() {\n    this.list.onBeforeDelete.add(({ value: groups }) => groups.dispose());\n  }\n  getClassificationGroups(classification) {\n    let groups = this.list.get(classification);\n    if (!groups) {\n      groups = new FRAGS.DataMap();\n      this.list.set(classification, groups);\n    }\n    return groups;\n  }\n  getModelItems(classification, group, modelId) {\n    const { map } = this.getGroupData(classification, group);\n    let items = map[modelId];\n    if (!items) {\n      items = /* @__PURE__ */ new Set();\n      map[modelId] = items;\n    }\n    return items;\n  }\n  /**\n   * Retrieves data associated with a specific group within a classification.\n   * If the group data does not exist, it creates a new entry.\n   *\n   * @param classification - The classification string.\n   * @param group - The group string within the classification.\n   * @returns The data object associated with the group, containing a map and a `get` method.\n   */\n  getGroupData(classification, group) {\n    const finder = this.components.get(ItemsFinder);\n    const groups = this.getClassificationGroups(classification);\n    let data = groups.get(group);\n    if (!data) {\n      data = {\n        map: {},\n        // TODO: Evaluate if this is the best option for this\n        get() {\n          return new Promise((resolve) => {\n            if (!data) {\n              resolve({});\n              return;\n            }\n            if (data.query) {\n              const { name, config } = data.query;\n              const instance = finder.list.get(name);\n              if (!instance) {\n                throw new Error(\n                  \"Classifier: the query name associated with the group doesn't exist in the ItemsFinder component\"\n                );\n              }\n              instance.test(config).then((queryMap) => {\n                if (!data) {\n                  resolve({});\n                  return;\n                }\n                const result = ModelIdMapUtils.join([queryMap, data.map]);\n                resolve(result);\n              });\n            } else {\n              resolve(data.map);\n            }\n          });\n        }\n      };\n      groups.set(group, data);\n    }\n    return data;\n  }\n  /**\n   * Aggregates items based on a classification and query, applying a provided function to each item.\n   *\n   * @param classification - The classification string used to categorize the items.\n   * @param query - The query parameters used to find items.\n   * @param config - Optional configuration for data and item processing.\n   * @param config.data - Optional data configuration to pass to the item retrieval.\n   * @param config.aggregationCallback - Optional function to apply to each item; defaults to `this.defaultSaveFunction` if not provided.\n   *                       This function receives the item data and a register function to associate item local IDs with names.\n   *                       If no function is provided, the default save function is used.\n   *\n   * @remarks\n   * The `register` function within the `config.func` allows associating item local IDs with a given name under the specified classification.\n   * It is used to keep track of which items belong to which classification.\n   */\n  async aggregateItems(classification, query, config) {\n    const data = (config == null ? void 0 : config.data) ?? void 0;\n    const callback = (config == null ? void 0 : config.aggregationCallback) ?? this.defaultSaveFunction;\n    const fragments = this.components.get(FragmentsManager);\n    const finder = this.components.get(ItemsFinder);\n    const resultMap = await finder.getItems([query], {\n      modelIds: config == null ? void 0 : config.modelIds\n    });\n    for (const [modelId, localIds] of Object.entries(resultMap)) {\n      const model = fragments.list.get(modelId);\n      if (!model)\n        continue;\n      const register = (name, ...localIds2) => {\n        const items2 = this.getModelItems(classification, name, modelId);\n        for (const localId of localIds2) {\n          items2.add(localId);\n        }\n      };\n      const items = await model.getItemsData([...localIds], data);\n      for (const item of items) {\n        callback(item, register);\n      }\n    }\n  }\n  /**\n   * Adds items to a specific group within a classification.\n   *\n   * @param classification - The classification to which the group belongs.\n   * @param group - The group to which the items will be added.\n   * @param items - A map of model IDs to add to the group.\n   */\n  addGroupItems(classification, group, items) {\n    const { map } = this.getGroupData(classification, group);\n    ModelIdMapUtils.add(map, items);\n  }\n  /**\n   * Sets the query for a specific group within a classification.\n   *\n   * @param classification - The classification to target.\n   * @param group - The group within the classification to target.\n   * @param query - The query to set for the group.\n   */\n  setGroupQuery(classification, group, query) {\n    const groupData = this.getGroupData(classification, group);\n    groupData.query = query;\n  }\n  /**\n   * Asynchronously finds a set of ModelIdMaps based on the provided classification data.\n   * @param data An object with classifications as keys and an array of groups as values.\n   * @returns A promise that resolves to a ModelIdMap representing the intersection of all ModelIdMaps found.\n   */\n  async find(data) {\n    const modelIdMaps = [];\n    for (const [classification, groups] of Object.entries(data)) {\n      const maps = [];\n      const classificationData = this.list.get(classification);\n      if (!classificationData)\n        continue;\n      for (const group of groups) {\n        const groupData = classificationData.get(group);\n        if (!groupData)\n          continue;\n        const map = await groupData.get();\n        maps.push(map);\n      }\n      const result2 = ModelIdMapUtils.join(maps);\n      modelIdMaps.push(result2);\n    }\n    const result = ModelIdMapUtils.intersect(modelIdMaps);\n    return result;\n  }\n  /**\n   * From the items passing the query, use the specified relation to create groupings\n   * This method retrieves and processes related items, applying a custom aggregation callback to register\n   * relations between items based on their attributes and local IDs.\n   *\n   * @param classification - The classification type used to filter items.\n   * @param query - Query parameters for filtering items, defined by `FRAGS.ItemsQueryParams`.\n   * @param relation - The type of relation to aggregate (e.g., \"ContainedInStructure\", \"HasAssociations\").\n   * @param config - Optional configuration for the aggregation process.\n   * @returns A promise that resolves when the aggregation process is complete.\n   * @remarks\n   * - The `aggregationCallback` function processes each item and registers relations based on the item's\n   *   attribute value and the local ID of its relations.\n   * - Items without the specified attribute or relations are ignored during aggregation.\n   */\n  async aggregateItemRelations(classification, query, relation, config) {\n    const attribute = (config == null ? void 0 : config.attribute) ?? \"Name\";\n    const data = {\n      relations: {\n        [relation]: { attributes: true, relations: false }\n      }\n    };\n    await this.aggregateItems(classification, query, {\n      modelIds: config == null ? void 0 : config.modelIds,\n      data,\n      aggregationCallback: (item, register) => {\n        if (!(item == null ? void 0 : item[attribute]))\n          return;\n        const attr = item[attribute];\n        if (!(\"value\" in attr))\n          return;\n        const relations = item[relation];\n        if (!Array.isArray(relations))\n          return;\n        for (const relation2 of relations) {\n          if (!(\"value\" in relation2._localId))\n            continue;\n          register(attr.value, relation2._localId.value);\n        }\n      }\n    });\n  }\n  /**\n   * Asynchronously processes and adds classifications by IfcBuildingStorey.\n   * @param config - Optional configuration for adding classifications.\n   * @returns A promise that resolves once the storeys have been processed and added.\n   */\n  async byIfcBuildingStorey(config) {\n    await this.aggregateItemRelations(\n      (config == null ? void 0 : config.classificationName) ?? \"Storeys\",\n      { categories: [/BUILDINGSTOREY/] },\n      \"ContainsElements\",\n      { modelIds: config == null ? void 0 : config.modelIds }\n    );\n  }\n  /**\n   * Asynchronously processes and adds classifications by category.\n   * @param config - Optional configuration for adding classifications.\n   * @returns A promise that resolves once the categories have been processed and added.\n   */\n  async byCategory(config) {\n    const finder = this.components.get(ItemsFinder);\n    const categories = await finder.addFromCategories(config == null ? void 0 : config.modelIds);\n    for (const category of categories) {\n      this.setGroupQuery((config == null ? void 0 : config.classificationName) ?? \"Categories\", category, {\n        name: category\n      });\n    }\n  }\n  /** {@link Disposable.dispose} */\n  dispose() {\n    this.list.clear();\n    const fragmentsManager = this.components.get(FragmentsManager);\n    fragmentsManager.list.onBeforeDelete.remove(this.onBeforeFragmentsDispose);\n    this.onDisposed.trigger();\n  }\n  /**\n   * Removes items from the classifier based on the provided model ID map and configuration.\n   *\n   * @param modelIdMap - A map containing model IDs to be removed.\n   * @param config - Optional configuration for removing items.s.\n   * @remarks If no configuration is provided, items will be removed from all classifications\n   */\n  removeItems(modelIdMap, config) {\n    if (config && config.classificationName) {\n      const groups = this.list.get(config.classificationName);\n      if (!groups)\n        return;\n      if (config.groupName) {\n        const groupData = groups.get(config.groupName);\n        if (!groupData)\n          return;\n      }\n      for (const [, data] of groups) {\n        ModelIdMapUtils.remove(data.map, modelIdMap);\n      }\n      return;\n    }\n    for (const [, group] of this.list.entries()) {\n      for (const [, data] of group) {\n        ModelIdMapUtils.remove(data.map, modelIdMap);\n      }\n    }\n  }\n  /**\n   * Asynchronously processes models based on the provided configuration and updates classification groups.\n   *\n   * @param config - Optional configuration for adding classifications. Contains the following properties.\n   * @returns A promise that resolves when the processing is complete.\n   */\n  async byModel(config) {\n    const fragments = this.components.get(FragmentsManager);\n    const classification = (config == null ? void 0 : config.classificationName) ?? \"Models\";\n    for (const [modelId, model] of fragments.list) {\n      if (config && config.modelIds && !config.modelIds.some((regex) => regex.test(modelId))) {\n        continue;\n      }\n      const localIds = await model.getItemsIdsWithGeometry();\n      const modelIdMap = { [modelId]: new Set(localIds) };\n      this.getGroupData(classification, modelId);\n      this.addGroupItems(classification, modelId, modelIdMap);\n    }\n  }\n  // /**\n  //  * Exports the computed classification to persists them and import them back\n  //  * later for faster loading.\n  //  */\n  // export() {\n  //   const exported: ExportedClassification = {};\n  //   for (const systemName in this.list) {\n  //     exported[systemName] = {};\n  //     const system = this.list[systemName];\n  //     for (const groupName in system) {\n  //       const group = system[groupName];\n  //       exported[systemName][groupName] = {\n  //         map: FRAGS.FragmentUtils.export(group.map),\n  //         name: group.name,\n  //         id: group.id,\n  //       };\n  //     }\n  //   }\n  //   return exported;\n  // }\n  // /**\n  //  * Imports a classification previously exported with .export().\n  //  * @param data the serialized classification to import.\n  //  */\n  // import(data: ExportedClassification) {\n  //   for (const systemName in data) {\n  //     if (!this.list[systemName]) {\n  //       this.list[systemName] = {};\n  //     }\n  //     const system = data[systemName];\n  //     for (const groupName in system) {\n  //       const group = system[groupName];\n  //       this.list[systemName][groupName] = {\n  //         map: FRAGS.FragmentUtils.import(group.map),\n  //         name: group.name,\n  //         id: group.id,\n  //       };\n  //     }\n  //   }\n  //\n};\n/**\n * A unique identifier for the component.\n * This UUID is used to register the component within the Components system.\n */\n__publicField(_Classifier, \"uuid\", \"e25a7f3c-46c4-4a14-9d3d-5115f24ebeb7\");\nlet Classifier = _Classifier;\nclass FastModelPicker {\n  constructor(components, world) {\n    /** {@link Component.enabled} */\n    __publicField(this, \"enabled\", true);\n    /** The components instance to which this FastModelPicker belongs. */\n    __publicField(this, \"components\");\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    /** The position of the mouse in the screen. */\n    __publicField(this, \"mouse\");\n    /**\n     * A reference to the world instance to which this FastModelPicker belongs.\n     * This is used to access the camera and scene.\n     */\n    __publicField(this, \"world\");\n    /**\n     * Whether debug mode is enabled. When enabled, shows the color-coded canvas.\n     */\n    __publicField(this, \"debugMode\", false);\n    /**\n     * Map from color (as RGB number) to model ID.\n     * Color is encoded as: (r << 16) | (g << 8) | b\n     */\n    __publicField(this, \"colorToModelId\", /* @__PURE__ */ new Map());\n    /**\n     * Map from model ID to color.\n     */\n    __publicField(this, \"modelIdToColor\", /* @__PURE__ */ new Map());\n    /**\n     * Render target for the color-coded scene.\n     */\n    __publicField(this, \"renderTarget\");\n    /**\n     * Size of the render target (stored separately since getSize doesn't exist).\n     */\n    __publicField(this, \"renderTargetSize\", new THREE.Vector2());\n    /**\n     * Debug canvas element (shown when debugMode is true).\n     */\n    __publicField(this, \"debugCanvas\");\n    /**\n     * Debug container element.\n     */\n    __publicField(this, \"debugContainer\");\n    /**\n     * Material used for color-coding models.\n     */\n    __publicField(this, \"colorMaterials\", /* @__PURE__ */ new Map());\n    /**\n     * Original materials cache (to restore after picking).\n     */\n    __publicField(this, \"originalMaterials\", /* @__PURE__ */ new Map());\n    __publicField(this, \"originalLodColors\", /* @__PURE__ */ new Map());\n    /**\n     * Whether colors need to be reassigned (when models change).\n     */\n    __publicField(this, \"colorsNeedUpdate\", true);\n    const renderer = world.renderer;\n    if (!renderer) {\n      throw new Error(\"A renderer is needed for the FastModelPicker to work!\");\n    }\n    this.world = world;\n    this.mouse = new Mouse(renderer.three.domElement);\n    this.components = components;\n    this.setupRenderTarget();\n    this.setupFragmentListeners();\n  }\n  /**\n   * Sets up listeners for fragment model changes.\n   */\n  setupFragmentListeners() {\n    const fragments = this.components.get(FragmentsManager);\n    fragments.list.onItemSet.add(() => {\n      this.colorsNeedUpdate = true;\n    });\n    fragments.list.onItemDeleted.add(() => {\n      this.colorsNeedUpdate = true;\n    });\n  }\n  /**\n   * Sets up the render target for color-coded picking.\n   */\n  setupRenderTarget() {\n    const renderer = this.world.renderer.three;\n    const size = renderer.getSize(new THREE.Vector2());\n    this.renderTargetSize.copy(size);\n    this.renderTarget = new THREE.WebGLRenderTarget(size.x, size.y);\n    this.renderTarget.texture.format = THREE.RGBAFormat;\n    this.renderTarget.texture.type = THREE.UnsignedByteType;\n    if (this.debugMode) {\n      this.setupDebugCanvas();\n    }\n    this.world.renderer.onResize.add((size2) => {\n      this.renderTargetSize.copy(size2);\n      this.renderTarget.setSize(size2.x, size2.y);\n      if (this.debugCanvas) {\n        this.debugCanvas.width = size2.x;\n        this.debugCanvas.height = size2.y;\n      }\n    });\n  }\n  /**\n   * Sets up the debug canvas for visualization.\n   */\n  setupDebugCanvas() {\n    if (this.debugCanvas)\n      return;\n    const size = this.world.renderer.three.getSize(new THREE.Vector2());\n    this.debugContainer = document.createElement(\"div\");\n    this.debugContainer.style.position = \"fixed\";\n    this.debugContainer.style.top = \"10px\";\n    this.debugContainer.style.right = \"10px\";\n    this.debugContainer.style.width = \"300px\";\n    this.debugContainer.style.height = \"300px\";\n    this.debugContainer.style.border = \"2px solid #fff\";\n    this.debugContainer.style.backgroundColor = \"#000\";\n    this.debugContainer.style.zIndex = \"10000\";\n    this.debugContainer.style.pointerEvents = \"none\";\n    this.debugCanvas = document.createElement(\"canvas\");\n    this.debugCanvas.width = size.x;\n    this.debugCanvas.height = size.y;\n    this.debugCanvas.style.width = \"100%\";\n    this.debugCanvas.style.height = \"100%\";\n    this.debugCanvas.style.imageRendering = \"pixelated\";\n    this.debugContainer.appendChild(this.debugCanvas);\n    document.body.appendChild(this.debugContainer);\n  }\n  /**\n   * Generates a deterministic color for a model based on its ID.\n   * This ensures the same model always gets the same color.\n   */\n  generateColorForModel(modelId) {\n    let hash = 0;\n    for (let i = 0; i < modelId.length; i++) {\n      hash = (hash << 5) - hash + modelId.charCodeAt(i);\n      hash &= hash;\n    }\n    let colorId = Math.abs(hash) % 16777215;\n    if (colorId === 0) {\n      colorId = 1;\n    }\n    const r = colorId >> 16 & 255 || 1;\n    const g = colorId >> 8 & 255 || 1;\n    const b = colorId & 255 || 1;\n    return new THREE.Color(r / 255, g / 255, b / 255);\n  }\n  /**\n   * Converts a color to a numeric ID.\n   */\n  colorToId(color) {\n    const r = Math.round(color.r * 255);\n    const g = Math.round(color.g * 255);\n    const b = Math.round(color.b * 255);\n    return r << 16 | g << 8 | b;\n  }\n  /**\n   * Assigns unique colors to all fragment models.\n   * Colors are deterministic based on model ID, so the same model always gets the same color.\n   */\n  assignColors() {\n    const fragments = this.components.get(FragmentsManager);\n    if (!fragments.initialized) {\n      return;\n    }\n    if (!this.colorsNeedUpdate) {\n      const currentModelIds = new Set(fragments.list.keys());\n      const cachedModelIds = new Set(this.modelIdToColor.keys());\n      if (currentModelIds.size !== cachedModelIds.size || [...currentModelIds].some((id) => !cachedModelIds.has(id))) {\n        this.colorsNeedUpdate = true;\n      }\n    }\n    if (!this.colorsNeedUpdate) {\n      return;\n    }\n    this.colorToModelId.clear();\n    this.modelIdToColor.clear();\n    for (const material of this.colorMaterials.values()) {\n      material.dispose();\n    }\n    this.colorMaterials.clear();\n    for (const [modelId] of fragments.list) {\n      const color = this.generateColorForModel(modelId);\n      const colorId = this.colorToId(color);\n      this.colorToModelId.set(colorId, modelId);\n      this.modelIdToColor.set(modelId, color);\n      const material = new THREE.MeshBasicMaterial({\n        color,\n        depthTest: true,\n        depthWrite: true\n      });\n      this.colorMaterials.set(modelId, material);\n    }\n    this.colorsNeedUpdate = false;\n  }\n  /**\n   * Applies color materials to fragment models.\n   */\n  applyColorMaterials() {\n    const fragments = this.components.get(FragmentsManager);\n    if (!fragments.initialized) {\n      return;\n    }\n    for (const [modelId, model] of fragments.list) {\n      const modelMaterial = this.colorMaterials.get(modelId);\n      if (!modelMaterial)\n        continue;\n      model.object.traverse((child) => {\n        if (child instanceof THREE.Mesh) {\n          if (\"isLODGeometry\" in child.geometry) {\n            const originalLodMaterial = child.material[0];\n            const lodColor = originalLodMaterial.uniforms.lodColor;\n            if (!this.originalLodColors.has(lodColor)) {\n              this.originalLodColors.set(lodColor, lodColor.value);\n            }\n            lodColor.value = modelMaterial.color;\n            return;\n          }\n          if (!this.originalMaterials.has(child)) {\n            this.originalMaterials.set(child, child.material);\n          }\n          child.material = modelMaterial;\n        }\n      });\n    }\n  }\n  /**\n   * Restores original materials to fragment models.\n   */\n  restoreOriginalMaterials() {\n    for (const [object, material] of this.originalMaterials) {\n      object.material = material;\n    }\n    for (const [lodColor, color] of this.originalLodColors) {\n      lodColor.value = color;\n    }\n    this.originalMaterials.clear();\n  }\n  /**\n   * Renders the scene with color-coded models.\n   */\n  renderColorCoded() {\n    if (!this.renderTarget || !this.world.renderer) {\n      throw new Error(\"Render target not initialized!\");\n    }\n    const renderer = this.world.renderer.three;\n    const scene = this.world.scene.three;\n    const camera = this.world.camera.three;\n    const currentRenderTarget = renderer.getRenderTarget();\n    const currentAutoClear = renderer.autoClear;\n    const currentClearColor = new THREE.Color();\n    const currentClearAlpha = renderer.getClearAlpha();\n    renderer.getClearColor(currentClearColor);\n    this.applyColorMaterials();\n    renderer.setRenderTarget(this.renderTarget);\n    renderer.autoClear = true;\n    renderer.setClearColor(0, 1);\n    renderer.clear(true, true, false);\n    renderer.render(scene, camera);\n    renderer.setRenderTarget(currentRenderTarget);\n    renderer.autoClear = currentAutoClear;\n    renderer.setClearColor(currentClearColor, currentClearAlpha);\n    this.restoreOriginalMaterials();\n    if (this.debugMode && this.debugCanvas) {\n      this.updateDebugCanvas();\n    }\n  }\n  /**\n   * Updates the debug canvas with the color-coded render.\n   */\n  updateDebugCanvas() {\n    if (!this.debugCanvas || !this.renderTarget || !this.world.renderer)\n      return;\n    const renderer = this.world.renderer.three;\n    const size = this.renderTargetSize;\n    const pixels = new Uint8Array(size.x * size.y * 4);\n    renderer.readRenderTargetPixels(\n      this.renderTarget,\n      0,\n      0,\n      size.x,\n      size.y,\n      pixels\n    );\n    const ctx = this.debugCanvas.getContext(\"2d\");\n    if (!ctx)\n      return;\n    const imageData = ctx.createImageData(size.x, size.y);\n    const rowSize = size.x * 4;\n    for (let y = 0; y < size.y; y++) {\n      const srcRow = y;\n      const dstRow = size.y - 1 - y;\n      const srcOffset = srcRow * rowSize;\n      const dstOffset = dstRow * rowSize;\n      imageData.data.set(\n        pixels.subarray(srcOffset, srcOffset + rowSize),\n        dstOffset\n      );\n    }\n    ctx.putImageData(imageData, 0, 0);\n  }\n  /**\n   * Gets the model ID at the given screen position.\n   *\n   * @param position - Optional screen position. If not provided, uses current mouse position.\n   * @returns The model ID at the position, or null if no model is found.\n   */\n  async getModelAt(position) {\n    if (!this.renderTarget || !this.world.renderer) {\n      throw new Error(\"Render target not initialized!\");\n    }\n    const fragments = this.components.get(FragmentsManager);\n    if (!fragments.initialized || fragments.list.size === 0) {\n      return null;\n    }\n    this.assignColors();\n    this.renderColorCoded();\n    const pos = position || this.mouse.position;\n    const size = this.renderTargetSize;\n    const x = Math.floor((pos.x + 1) * 0.5 * size.x);\n    const y = Math.floor((pos.y + 1) * 0.5 * (size.y - 1));\n    const clampedX = Math.max(0, Math.min(size.x - 1, x));\n    const clampedY = Math.max(0, Math.min(size.y - 1, y));\n    const renderer = this.world.renderer.three;\n    const pixels = new Uint8Array(4);\n    renderer.readRenderTargetPixels(\n      this.renderTarget,\n      clampedX,\n      clampedY,\n      1,\n      1,\n      pixels\n    );\n    const r = pixels[0];\n    const g = pixels[1];\n    const b = pixels[2];\n    const colorId = r << 16 | g << 8 | b;\n    const modelId = this.colorToModelId.get(colorId);\n    return modelId || null;\n  }\n  /**\n   * Enables or disables debug mode.\n   * When enabled, shows a canvas with the color-coded render.\n   */\n  setDebugMode(enabled) {\n    this.debugMode = enabled;\n    if (enabled) {\n      this.setupDebugCanvas();\n    } else {\n      this.removeDebugCanvas();\n    }\n  }\n  /**\n   * Removes the debug canvas.\n   */\n  removeDebugCanvas() {\n    if (this.debugContainer) {\n      this.debugContainer.remove();\n      this.debugContainer = void 0;\n      this.debugCanvas = void 0;\n    }\n  }\n  /** {@link Disposable.dispose} */\n  dispose() {\n    this.mouse.dispose();\n    this.removeDebugCanvas();\n    for (const material of this.colorMaterials.values()) {\n      material.dispose();\n    }\n    this.colorMaterials.clear();\n    if (this.renderTarget) {\n      this.renderTarget.dispose();\n    }\n    this.colorToModelId.clear();\n    this.modelIdToColor.clear();\n    this.originalMaterials.clear();\n    this.originalLodColors.clear();\n    this.onDisposed.trigger();\n    this.onDisposed.reset();\n  }\n}\nconst _FastModelPickers = class _FastModelPickers extends Component {\n  constructor(components) {\n    super(components);\n    /** {@link Component.enabled} */\n    __publicField(this, \"enabled\", true);\n    /**\n     * A Map that stores FastModelPicker instances for each world.\n     * The key is the world's UUID, and the value is the corresponding FastModelPicker instance.\n     */\n    __publicField(this, \"list\", /* @__PURE__ */ new Map());\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    components.add(_FastModelPickers.uuid, this);\n  }\n  /**\n   * Retrieves a FastModelPicker instance for the given world.\n   * If a FastModelPicker instance already exists for the world, it will be returned.\n   * Otherwise, a new FastModelPicker instance will be created and added to the list.\n   *\n   * @param world - The world for which to retrieve or create a FastModelPicker instance.\n   * @returns The FastModelPicker instance for the given world.\n   */\n  get(world) {\n    if (this.list.has(world.uuid)) {\n      return this.list.get(world.uuid);\n    }\n    const picker = new FastModelPicker(this.components, world);\n    this.list.set(world.uuid, picker);\n    world.onDisposed.add(() => {\n      this.delete(world);\n    });\n    return picker;\n  }\n  /**\n   * Deletes the FastModelPicker instance associated with the given world.\n   * If a FastModelPicker instance exists for the given world, it will be disposed and removed from the list.\n   *\n   * @param world - The world for which to delete the FastModelPicker instance.\n   * @returns {void}\n   */\n  delete(world) {\n    const picker = this.list.get(world.uuid);\n    if (picker) {\n      picker.dispose();\n    }\n    this.list.delete(world.uuid);\n  }\n  /** {@link Disposable.dispose} */\n  dispose() {\n    for (const [_id, picker] of this.list) {\n      picker.dispose();\n    }\n    this.list.clear();\n    this.onDisposed.trigger();\n  }\n};\n/**\n * A unique identifier for the component.\n * This UUID is used to register the component within the Components system.\n */\n__publicField(_FastModelPickers, \"uuid\", \"4a82430c-7ff2-49ea-9401-60807502dad6\");\nlet FastModelPickers = _FastModelPickers;\nclass SimpleRaycaster {\n  constructor(components, world) {\n    /** {@link Component.enabled} */\n    __publicField(this, \"enabled\", true);\n    /** The components instance to which this Raycaster belongs. */\n    __publicField(this, \"components\");\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    /** The position of the mouse in the screen. */\n    __publicField(this, \"mouse\");\n    /**\n     * A reference to the Three.js Raycaster instance.\n     * This is used for raycasting operations.\n     */\n    __publicField(this, \"three\", new THREE.Raycaster());\n    /**\n     * A reference to the world instance to which this Raycaster belongs.\n     * This is used to access the camera and meshes.\n     */\n    __publicField(this, \"world\");\n    /**\n     * Whether to use fast model picking to optimize raycasting.\n     * When enabled, the raycaster will first use FastModelPicker to identify\n     * which model is under the mouse, then only raycast that specific model.\n     * This can significantly improve performance when there are many models.\n     */\n    __publicField(this, \"useFastModelPicking\", false);\n    const renderer = world.renderer;\n    if (!renderer) {\n      throw new Error(\"A renderer is needed for the raycaster to work!\");\n    }\n    this.world = world;\n    this.mouse = new Mouse(renderer.three.domElement);\n    this.components = components;\n  }\n  /** {@link Disposable.dispose} */\n  dispose() {\n    this.mouse.dispose();\n    this.onDisposed.trigger();\n    this.onDisposed.reset();\n  }\n  castRayToObjects(items = Array.from(this.world.meshes), position = this.mouse.position) {\n    if (!this.world) {\n      throw new Error(\"A world is needed to cast rays!\");\n    }\n    const camera = this.world.camera.three;\n    this.three.setFromCamera(position, camera);\n    return this.intersect(items);\n  }\n  /**\n   * Throws a ray from the camera to the mouse or touch event point and returns\n   * the first item found. This also takes into account the clipping planes\n   * used by the renderer.\n   *\n   * @param items - the [meshes](https://threejs.org/docs/#api/en/objects/Mesh)\n   * to query. If not provided, it will query all the meshes stored in\n   * {@link Components.meshes}.\n   * @param position - the screen position to use for raycasting. If not provided,\n   * the last pointer (mouse/touch) position will be used.\n   */\n  async castRay(data) {\n    const snappingClasses = data == null ? void 0 : data.snappingClasses;\n    const items = (data == null ? void 0 : data.items) ?? Array.from(this.world.meshes);\n    const position = (data == null ? void 0 : data.position) ?? this.mouse.position;\n    if (!this.world) {\n      throw new Error(\"A world is needed to cast rays!\");\n    }\n    const camera = this.world.camera.three;\n    const fragments = this.components.get(FragmentsManager);\n    const dom = this.world.renderer.three.domElement;\n    const mouse = this.mouse.rawPosition;\n    let fragResult = null;\n    if (fragments.initialized) {\n      if (this.useFastModelPicking) {\n        const fastPickers = this.components.get(FastModelPickers);\n        const fastPicker = fastPickers.get(this.world);\n        const modelId = await fastPicker.getModelAt(position);\n        if (modelId) {\n          const model = fragments.list.get(modelId);\n          if (model) {\n            if (snappingClasses && snappingClasses.length > 0) {\n              const snappingRaycast = await model.raycastWithSnapping({\n                camera,\n                dom,\n                mouse,\n                snappingClasses\n              });\n              if (snappingRaycast && snappingRaycast.length > 0) {\n                fragResult = snappingRaycast[0];\n              } else {\n                fragResult = await model.raycast({\n                  camera,\n                  dom,\n                  mouse\n                });\n              }\n            } else {\n              fragResult = await model.raycast({\n                camera,\n                dom,\n                mouse\n              });\n            }\n          }\n        }\n      } else {\n        fragResult = await fragments.raycast({\n          camera,\n          dom,\n          mouse,\n          snappingClasses\n        });\n      }\n      if (items.length === 0) {\n        return fragResult;\n      }\n    }\n    this.three.setFromCamera(position, camera);\n    const itemsResult = this.intersect(items);\n    if (!fragResult) {\n      return itemsResult;\n    }\n    if (!itemsResult) {\n      return fragResult;\n    }\n    if (itemsResult.distance < fragResult.distance) {\n      return itemsResult;\n    }\n    return fragResult;\n  }\n  /**\n   * Casts a ray from a given origin in a given direction and returns the first item found.\n   * This method also takes into account the clipping planes used by the renderer.\n   *\n   * @param origin - The origin of the ray.\n   * @param direction - The direction of the ray.\n   * @param items - The meshes to query. If not provided, it will query all the meshes stored in {@link World.meshes}.\n   * @returns The first intersection found or `null` if no intersection was found.\n   */\n  castRayFromVector(origin, direction, items = Array.from(this.world.meshes)) {\n    this.three.set(origin, direction);\n    return this.intersect(items);\n  }\n  intersect(items = Array.from(this.world.meshes)) {\n    const result = this.three.intersectObjects(items);\n    const filtered = this.filterClippingPlanes(result);\n    return filtered.length > 0 ? filtered[0] : null;\n  }\n  filterClippingPlanes(objs) {\n    if (!this.world.renderer) {\n      throw new Error(\"Renderer not found!\");\n    }\n    const renderer = this.world.renderer.three;\n    if (!renderer.clippingPlanes) {\n      return objs;\n    }\n    const planes = renderer.clippingPlanes;\n    if (objs.length <= 0 || !planes || (planes == null ? void 0 : planes.length) <= 0)\n      return objs;\n    return objs.filter(\n      (elem) => planes.every((elem2) => elem2.distanceToPoint(elem.point) > 0)\n    );\n  }\n}\nconst _Raycasters = class _Raycasters extends Component {\n  constructor(components) {\n    super(components);\n    /** {@link Component.enabled} */\n    __publicField(this, \"enabled\", true);\n    /**\n     * A Map that stores raycasters for each world.\n     * The key is the world's UUID, and the value is the corresponding SimpleRaycaster instance.\n     */\n    __publicField(this, \"list\", /* @__PURE__ */ new Map());\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    components.add(_Raycasters.uuid, this);\n  }\n  /**\n   * Retrieves a SimpleRaycaster instance for the given world.\n   * If a SimpleRaycaster instance already exists for the world, it will be returned.\n   * Otherwise, a new SimpleRaycaster instance will be created and added to the list.\n   *\n   * @param world - The world for which to retrieve or create a SimpleRaycaster instance.\n   * @returns The SimpleRaycaster instance for the given world.\n   */\n  get(world) {\n    if (this.list.has(world.uuid)) {\n      return this.list.get(world.uuid);\n    }\n    const raycaster = new SimpleRaycaster(this.components, world);\n    this.list.set(world.uuid, raycaster);\n    world.onDisposed.add(() => {\n      this.delete(world);\n    });\n    return raycaster;\n  }\n  /**\n   * Deletes the SimpleRaycaster instance associated with the given world.\n   * If a SimpleRaycaster instance exists for the given world, it will be disposed and removed from the list.\n   *\n   * @param world - The world for which to delete the SimpleRaycaster instance.\n   * @returns {void}\n   */\n  delete(world) {\n    const raycaster = this.list.get(world.uuid);\n    if (raycaster) {\n      raycaster.dispose();\n    }\n    this.list.delete(world.uuid);\n  }\n  /** {@link Disposable.dispose} */\n  dispose() {\n    for (const [_id, raycaster] of this.list) {\n      raycaster.dispose();\n    }\n    this.list.clear();\n    this.onDisposed.trigger();\n  }\n};\n/**\n * A unique identifier for the component.\n * This UUID is used to register the component within the Components system.\n */\n__publicField(_Raycasters, \"uuid\", \"d5d8bdf0-db25-4952-b951-b643af207ace\");\nlet Raycasters = _Raycasters;\nclass SimpleWorld extends Base {\n  constructor() {\n    super(...arguments);\n    __publicField(this, \"onCameraChanged\", new Event());\n    /**\n     * All the loaded [meshes](https://threejs.org/docs/#api/en/objects/Mesh). These meshes will be taken into account in operations like raycasting.\n     */\n    __publicField(this, \"meshes\", /* @__PURE__ */ new Set());\n    /** {@link Updateable.onAfterUpdate} */\n    __publicField(this, \"onAfterUpdate\", new Event());\n    /** {@link Updateable.onBeforeUpdate} */\n    __publicField(this, \"onBeforeUpdate\", new Event());\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    /**\n     * Indicates whether the world is currently being disposed. This is useful to prevent trying to access world's elements when it's being disposed, which could cause errors when you dispose a world.\n     */\n    __publicField(this, \"isDisposing\", false);\n    /**\n     * Indicates whether the world is currently enabled.\n     * When disabled, the world will not be updated.\n     */\n    __publicField(this, \"enabled\", true);\n    __publicField(this, \"_dynamicAnchor\", false);\n    /**\n     * A unique identifier for the world. Is not meant to be changed at any moment.\n     */\n    __publicField(this, \"uuid\", UUID.create());\n    /**\n     * An optional name for the world.\n     */\n    __publicField(this, \"name\");\n    __publicField(this, \"_scene\");\n    __publicField(this, \"_camera\");\n    __publicField(this, \"_renderer\", null);\n    __publicField(this, \"onPointerDown\", async (event) => {\n      if (!this.camera.hasCameraControls()) {\n        throw new Error(\n          \"World: can't set dynamic anchor if the camera doesn't have controls.\"\n        );\n      }\n      const caster = this.components.get(Raycasters).get(this);\n      const result = await caster.castRay();\n      if (result && result.point && event.button === 0) {\n        this.camera.controls.setOrbitPoint(\n          result.point.x,\n          result.point.y,\n          result.point.z\n        );\n      }\n    });\n    __publicField(this, \"_defaultCamera\");\n  }\n  set dynamicAnchor(value) {\n    var _a;\n    const container = (_a = this.renderer) == null ? void 0 : _a.three.domElement.parentElement;\n    if (!container) {\n      throw new Error(\n        \"World: the renderer must have a parentElement to set dynamic anchoring.\"\n      );\n    }\n    if (value) {\n      if (this.camera.controls)\n        this.camera.controls.minDistance = 0.01;\n      container.addEventListener(\"pointerdown\", this.onPointerDown);\n    } else {\n      container.removeEventListener(\"pointerdown\", this.onPointerDown);\n    }\n  }\n  get dynamicAnchor() {\n    return this._dynamicAnchor;\n  }\n  get defaultCamera() {\n    if (!this._defaultCamera) {\n      throw new Error(\"World: there is no default camera defined.\");\n    }\n    return this._defaultCamera;\n  }\n  set defaultCamera(value) {\n    this._defaultCamera = value;\n  }\n  /**\n   * Getter for the scene. If no scene is initialized, it throws an error.\n   * @returns The current scene.\n   */\n  get scene() {\n    if (!this._scene) {\n      throw new Error(\"No scene initialized!\");\n    }\n    return this._scene;\n  }\n  /**\n   * Setter for the scene. It sets the current scene, adds the world to the scene's worlds set,\n   * sets the current world in the scene, and triggers the scene's onWorldChanged event with the added action.\n   * @param scene - The new scene to be set.\n   */\n  set scene(scene) {\n    this._scene = scene;\n    scene.worlds.set(this.uuid, this);\n    scene.currentWorld = this;\n    scene.onWorldChanged.trigger({ world: this, action: \"added\" });\n  }\n  /**\n   * Getter for the camera. If no camera is initialized, it throws an error.\n   * @returns The current camera.\n   */\n  get camera() {\n    if (!this._camera) {\n      throw new Error(\"No camera initialized!\");\n    }\n    return this._camera;\n  }\n  /**\n   * Setter for the camera. It sets the current camera, adds the world to the camera's worlds set,\n   * sets the current world in the camera, and triggers the camera's onWorldChanged event with the added action.\n   * @param camera - The new camera to be set.\n   */\n  set camera(camera) {\n    if (!this._camera)\n      this.defaultCamera = camera;\n    this._camera = camera;\n    camera.currentWorld = this;\n    this.onCameraChanged.trigger(camera);\n  }\n  /**\n   * Getter for the renderer.\n   * @returns The current renderer or null if no renderer is set. Some worlds don't need a renderer to work (when your mail goal is not to display a 3D viewport to the user).\n   */\n  get renderer() {\n    return this._renderer;\n  }\n  /**\n   * Setter for the renderer. It sets the current renderer, adds the world to the renderer's worlds set,\n   * sets the current world in the renderer, and triggers the renderer's onWorldChanged event with the added action.\n   * If a new renderer is set, it also triggers the onWorldChanged event with the removed action for the old renderer.\n   * @param renderer - The new renderer to be set or null to remove the current renderer.\n   */\n  set renderer(renderer) {\n    this._renderer = renderer;\n    if (renderer) {\n      renderer.worlds.set(this.uuid, this);\n      renderer.currentWorld = this;\n      renderer.onWorldChanged.trigger({ world: this, action: \"added\" });\n    }\n  }\n  useDefaultCamera() {\n    this.camera = this.defaultCamera;\n  }\n  /** {@link Updateable.update} */\n  update(delta) {\n    if (!this.enabled)\n      return;\n    if (!this._scene || !this._camera) {\n      return;\n    }\n    this.scene.currentWorld = this;\n    this.camera.currentWorld = this;\n    if (this.renderer) {\n      this.renderer.currentWorld = this;\n    }\n    this.onBeforeUpdate.trigger();\n    if (this.scene.isUpdateable()) {\n      this.scene.update(delta);\n    }\n    if (this.camera.isUpdateable()) {\n      this.camera.update(delta);\n    }\n    if (this.renderer) {\n      this.renderer.update(delta);\n    }\n    this.onAfterUpdate.trigger();\n  }\n  /** {@link Disposable.dispose} */\n  dispose(disposeResources = true) {\n    this.enabled = false;\n    this.isDisposing = true;\n    this.scene.onWorldChanged.trigger({ world: this, action: \"removed\" });\n    this.camera.onWorldChanged.trigger({ world: this, action: \"removed\" });\n    if (this.renderer) {\n      this.renderer.onWorldChanged.trigger({ world: this, action: \"removed\" });\n    }\n    if (disposeResources) {\n      const disposer = this.components.get(Disposer);\n      this.scene.dispose();\n      if (this.camera.isDisposeable()) {\n        this.camera.dispose();\n      }\n      if (this.renderer) {\n        this.renderer.dispose();\n      }\n      for (const mesh of this.meshes) {\n        disposer.destroy(mesh);\n      }\n      this.meshes.clear();\n    }\n    this._scene = null;\n    this._camera = null;\n    this._renderer = null;\n    const worlds = this.components.get(Worlds);\n    worlds.list.delete(this.uuid);\n    this.onDisposed.trigger();\n    this.onDisposed.reset();\n  }\n}\nclass DirectionalLightConfig {\n  constructor(list, scene) {\n    __publicField(this, \"_list\");\n    __publicField(this, \"_scene\");\n    this._list = list;\n    this._scene = scene;\n  }\n  get color() {\n    return this._list.directionalLight.color.value;\n  }\n  set color(value) {\n    this._list.directionalLight.color.value = value;\n    for (const [, light] of this._scene.directionalLights) {\n      light.color.copy(value);\n    }\n  }\n  get intensity() {\n    return this._list.directionalLight.intensity.value;\n  }\n  set intensity(value) {\n    this._list.directionalLight.intensity.value = value;\n    for (const [, light] of this._scene.directionalLights) {\n      light.intensity = value;\n    }\n  }\n  get position() {\n    return this._list.directionalLight.position.value.clone();\n  }\n  set position(value) {\n    this._list.directionalLight.position.value = value;\n    for (const [, light] of this._scene.directionalLights) {\n      light.position.copy(value);\n    }\n  }\n}\nclass AmbientLightConfig {\n  constructor(list, scene) {\n    __publicField(this, \"_list\");\n    __publicField(this, \"_scene\");\n    this._list = list;\n    this._scene = scene;\n  }\n  get color() {\n    return this._list.ambientLight.color.value;\n  }\n  set color(value) {\n    this._list.ambientLight.color.value = value;\n    for (const [, light] of this._scene.ambientLights) {\n      light.color.copy(value);\n    }\n  }\n  get intensity() {\n    return this._list.ambientLight.intensity.value;\n  }\n  set intensity(value) {\n    this._list.ambientLight.intensity.value = value;\n    for (const [, light] of this._scene.ambientLights) {\n      light.intensity = value;\n    }\n  }\n}\nclass SimpleSceneConfigManager extends Configurator {\n  constructor() {\n    super(...arguments);\n    __publicField(this, \"_config\", {\n      backgroundColor: {\n        value: new THREE.Color(),\n        type: \"Color\"\n      },\n      ambientLight: {\n        color: {\n          type: \"Color\",\n          value: new THREE.Color()\n        },\n        intensity: {\n          type: \"Number\",\n          interpolable: true,\n          min: 0,\n          max: 10,\n          value: 2\n        }\n      },\n      directionalLight: {\n        color: {\n          type: \"Color\",\n          value: new THREE.Color()\n        },\n        intensity: {\n          type: \"Number\",\n          interpolable: true,\n          min: 0,\n          max: 10,\n          value: 2\n        },\n        position: {\n          type: \"Vector3\",\n          value: new THREE.Vector3()\n        }\n      }\n    });\n    __publicField(this, \"ambientLight\", new AmbientLightConfig(this._config, this._component));\n    __publicField(this, \"directionalLight\", new DirectionalLightConfig(this._config, this._component));\n  }\n  get backgroundColor() {\n    return this._config.backgroundColor.value;\n  }\n  set backgroundColor(value) {\n    this._config.backgroundColor.value = value;\n    this._component.three.background = value;\n  }\n}\nclass SimpleScene extends BaseScene {\n  constructor(components) {\n    super(components);\n    /** {@link Configurable.onSetup} */\n    __publicField(this, \"onSetup\", new Event());\n    /** {@link Configurable.isSetup} */\n    __publicField(this, \"isSetup\", false);\n    /**\n     * The underlying Three.js scene object.\n     * It is used to define the 3D space containing objects, lights, and cameras.\n     */\n    __publicField(this, \"three\");\n    /** {@link Configurable.config} */\n    __publicField(this, \"config\", new SimpleSceneConfigManager(this, this.components, \"Scene\"));\n    __publicField(this, \"_defaultConfig\", {\n      backgroundColor: new THREE.Color(2107698),\n      directionalLight: {\n        color: new THREE.Color(\"white\"),\n        intensity: 1.5,\n        position: new THREE.Vector3(5, 10, 3)\n      },\n      ambientLight: {\n        color: new THREE.Color(\"white\"),\n        intensity: 1\n      }\n    });\n    this.three = new THREE.Scene();\n    this.three.background = new THREE.Color(2107698);\n  }\n  /** {@link Configurable.setup} */\n  setup(config) {\n    const fullConfig = { ...this._defaultConfig, ...config };\n    this.config.backgroundColor = fullConfig.backgroundColor;\n    const ambLightData = fullConfig.ambientLight;\n    this.config.ambientLight.color = ambLightData.color;\n    this.config.ambientLight.intensity = ambLightData.intensity;\n    const dirLightData = fullConfig.directionalLight;\n    this.config.directionalLight.color = dirLightData.color;\n    this.config.directionalLight.intensity = dirLightData.intensity;\n    this.config.directionalLight.position = dirLightData.position;\n    this.deleteAllLights();\n    const { color: dc, intensity: di } = this.config.directionalLight;\n    const directionalLight = new THREE.DirectionalLight(dc, di);\n    directionalLight.position.copy(dirLightData.position);\n    const { color: ac, intensity: ai } = this.config.directionalLight;\n    const ambientLight = new THREE.AmbientLight(ac, ai);\n    this.three.add(directionalLight, ambientLight);\n    this.directionalLights.set(directionalLight.uuid, directionalLight);\n    this.ambientLights.set(ambientLight.uuid, ambientLight);\n    this.isSetup = true;\n    this.onSetup.trigger();\n  }\n  dispose() {\n    super.dispose();\n    const configs = this.components.get(ConfigManager);\n    configs.list.delete(this.config.uuid);\n  }\n}\nvar RendererMode = /* @__PURE__ */ ((RendererMode2) => {\n  RendererMode2[RendererMode2[\"MANUAL\"] = 0] = \"MANUAL\";\n  RendererMode2[RendererMode2[\"AUTO\"] = 1] = \"AUTO\";\n  return RendererMode2;\n})(RendererMode || {});\nclass SimpleRenderer extends BaseRenderer {\n  /**\n   * Constructor for the SimpleRenderer class.\n   *\n   * @param components - The components instance.\n   * @param container - The HTML container where the THREE.js canvas will be rendered.\n   * @param parameters - Optional parameters for the THREE.js WebGLRenderer.\n   */\n  constructor(components, container, parameters) {\n    super(components);\n    /**\n     * Indicates whether the renderer is enabled. If it's not, it won't be updated.\n     * Default is `true`.\n     */\n    __publicField(this, \"enabled\", true);\n    /**\n     * The HTML container of the THREE.js canvas where the scene is rendered.\n     */\n    __publicField(this, \"container\");\n    /**\n     * The THREE.js WebGLRenderer instance.\n     */\n    __publicField(this, \"three\");\n    /**\n     * The mode of the renderer. If MANUAL, the renderer will be updated manually. If AUTO, the renderer will render on every update tick.\n     */\n    __publicField(this, \"mode\", 1);\n    /**\n     * Whether the renderer needs to be updated. If true, the renderer will be updated on the next frame.\n     */\n    __publicField(this, \"needsUpdate\", false);\n    __publicField(this, \"_canvas\");\n    __publicField(this, \"_parameters\");\n    __publicField(this, \"_resizeObserver\", null);\n    __publicField(this, \"onContainerUpdated\", new Event());\n    __publicField(this, \"_resizing\", false);\n    /** {@link Resizeable.resize} */\n    __publicField(this, \"resize\", (size) => {\n      if (this._resizing)\n        return;\n      this._resizing = true;\n      this.onContainerUpdated.trigger();\n      const width = size ? size.x : this.container.clientWidth;\n      const height = size ? size.y : this.container.clientHeight;\n      this.three.setSize(width, height);\n      this.onResize.trigger(new THREE.Vector2(width, height));\n      this._resizing = false;\n    });\n    __publicField(this, \"resizeEvent\", () => {\n      this.resize();\n    });\n    __publicField(this, \"onContextLost\", (event) => {\n      event.preventDefault();\n      this.enabled = false;\n    });\n    __publicField(this, \"onContextBack\", () => {\n      this.three.setRenderTarget(null);\n      this.three.dispose();\n      this.three = new THREE.WebGLRenderer({\n        canvas: this._canvas,\n        antialias: true,\n        alpha: true,\n        ...this._parameters\n      });\n      this.enabled = true;\n    });\n    this.container = container;\n    this._parameters = parameters;\n    this.three = new THREE.WebGLRenderer({\n      antialias: true,\n      alpha: true,\n      ...parameters\n    });\n    this.three.setPixelRatio(Math.min(window.devicePixelRatio, 2));\n    this.setupRenderer();\n    this.setupEvents(true);\n    this.resize();\n    this._canvas = this.three.domElement;\n    const context = this.three.getContext();\n    const { canvas } = context;\n    canvas.addEventListener(\"webglcontextlost\", this.onContextLost, false);\n    canvas.addEventListener(\"webglcontextrestored\", this.onContextBack, false);\n  }\n  /** {@link Updateable.update} */\n  update() {\n    if (!this.enabled || !this.currentWorld)\n      return;\n    if (this.mode === 0 && !this.needsUpdate) {\n      return;\n    }\n    this.needsUpdate = false;\n    this.onBeforeUpdate.trigger(this);\n    const scene = this.currentWorld.scene.three;\n    const camera = this.currentWorld.camera.three;\n    this.three.render(scene, camera);\n    this.onAfterUpdate.trigger(this);\n  }\n  /** {@link Disposable.dispose} */\n  dispose() {\n    this.enabled = false;\n    this.setupEvents(false);\n    this.three.domElement.remove();\n    this.three.forceContextLoss();\n    this.three.dispose();\n    this.onResize.reset();\n    this.onAfterUpdate.reset();\n    this.onBeforeUpdate.reset();\n    this.onDisposed.trigger();\n    this.onDisposed.reset();\n  }\n  /** {@link Resizeable.getSize}. */\n  getSize() {\n    return new THREE.Vector2(\n      this.three.domElement.clientWidth,\n      this.three.domElement.clientHeight\n    );\n  }\n  /**\n   * Sets up and manages the event listeners for the renderer.\n   *\n   * @param active - A boolean indicating whether to activate or deactivate the event listeners.\n   *\n   * @throws Will throw an error if the renderer does not have an HTML container.\n   */\n  setupEvents(active) {\n    const dom = this.three.domElement.parentElement;\n    if (!dom) {\n      throw new Error(\"This renderer needs to have an HTML container!\");\n    }\n    if (this._resizeObserver) {\n      this._resizeObserver.disconnect();\n      this._resizeObserver = null;\n    }\n    window.removeEventListener(\"resize\", this.resizeEvent);\n    if (active) {\n      this._resizeObserver = new ResizeObserver(this.resizeEvent);\n      this._resizeObserver.observe(dom);\n      window.addEventListener(\"resize\", this.resizeEvent);\n    }\n  }\n  setupRenderer() {\n    this.three.localClippingEnabled = true;\n    if (this.container) {\n      this.container.appendChild(this.three.domElement);\n    }\n    this.onContainerUpdated.trigger();\n  }\n}\nclass SimpleCamera extends BaseCamera {\n  constructor(components) {\n    super(components);\n    /** {@link Updateable.onBeforeUpdate} */\n    __publicField(this, \"onBeforeUpdate\", new Event());\n    /** {@link Updateable.onAfterUpdate} */\n    __publicField(this, \"onAfterUpdate\", new Event());\n    /**\n     * Event that is triggered when the aspect of the camera has been updated.\n     * This event is useful when you need to perform actions after the aspect of the camera has been changed.\n     */\n    __publicField(this, \"onAspectUpdated\", new Event());\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    /**\n     * A three.js PerspectiveCamera or OrthographicCamera instance.\n     * This camera is used for rendering the scene.\n     */\n    __publicField(this, \"three\");\n    __publicField(this, \"_resizeObserver\", null);\n    __publicField(this, \"_allControls\", /* @__PURE__ */ new Map());\n    /**\n     * Updates the aspect of the camera to match the size of the\n     * {@link Components.renderer}.\n     */\n    __publicField(this, \"updateAspect\", () => {\n      var _a;\n      if (!this.currentWorld || !this.currentWorld.renderer)\n        return;\n      if (this.three instanceof THREE.OrthographicCamera) {\n        this.onAspectUpdated.trigger();\n        return;\n      }\n      if ((_a = this.currentWorld.renderer) == null ? void 0 : _a.isResizeable()) {\n        const size = this.currentWorld.renderer.getSize();\n        this.three.aspect = size.width / size.height;\n        this.three.updateProjectionMatrix();\n        this.onAspectUpdated.trigger();\n      }\n    });\n    this.three = this.setupCamera();\n    this.worlds.onItemSet.add(({ value: world }) => {\n      const controls = this.newCameraControls();\n      this.setupEvents(true);\n      this._allControls.set(world.uuid, controls);\n    });\n    this.worlds.onBeforeDelete.add(({ value: world }) => {\n      var _a;\n      const controls = this._allControls.get(world.uuid);\n      if (controls) {\n        controls.dispose();\n        this._allControls.delete(world.uuid);\n      }\n      (_a = this._resizeObserver) == null ? void 0 : _a.disconnect();\n    });\n  }\n  /**\n   * The object that controls the camera. An instance of\n   * [yomotsu's cameracontrols](https://github.com/yomotsu/camera-controls).\n   * Transforming the camera directly will have no effect: you need to use this\n   * object to move, rotate, look at objects, etc.\n   */\n  get controls() {\n    if (!this.currentWorld) {\n      throw new Error(\"This camera needs a world to work!\");\n    }\n    const controls = this._allControls.get(this.currentWorld.uuid);\n    if (!controls) {\n      throw new Error(\"Controls not found!\");\n    }\n    return controls;\n  }\n  /**\n   * Getter for the enabled state of the camera controls.\n   * If the current world is null, it returns false.\n   * Otherwise, it returns the enabled state of the camera controls.\n   *\n   * @returns {boolean} The enabled state of the camera controls.\n   */\n  get enabled() {\n    if (this.currentWorld === null) {\n      return false;\n    }\n    return this.controls.enabled;\n  }\n  /**\n   * Setter for the enabled state of the camera controls.\n   * If the current world is not null, it sets the enabled state of the camera controls to the provided value.\n   *\n   * @param {boolean} enabled - The new enabled state of the camera controls.\n   */\n  set enabled(enabled) {\n    if (this.currentWorld !== null) {\n      this.controls.enabled = enabled;\n    }\n  }\n  set currentWorld(value) {\n    super.currentWorld = value;\n    if (!value)\n      return;\n    const existingWorld = this.worlds.get(value.uuid);\n    if (!existingWorld)\n      this.worlds.set(value.uuid, value);\n  }\n  get currentWorld() {\n    return this._currentWorld;\n  }\n  /** {@link Disposable.dispose} */\n  dispose() {\n    this.setupEvents(false);\n    this.onAspectUpdated.reset();\n    this.onBeforeUpdate.reset();\n    this.onAfterUpdate.reset();\n    this.three.removeFromParent();\n    this.onDisposed.trigger();\n    this.onDisposed.reset();\n    for (const [_id, controls] of this._allControls) {\n      controls.dispose();\n    }\n    this.worlds.clear();\n  }\n  async fitToItems(items) {\n    const sphere = await this.getItemsBounding(items);\n    await this.controls.fitToSphere(sphere, true);\n  }\n  async setOrbitToItems(items) {\n    const sphere = await this.getItemsBounding(items);\n    this.controls.setOrbitPoint(\n      sphere.center.x,\n      sphere.center.y,\n      sphere.center.z\n    );\n  }\n  /** {@link Updateable.update} */\n  update(_delta) {\n    if (this.enabled) {\n      this.onBeforeUpdate.trigger(this);\n      this.controls.update(_delta);\n      this.onAfterUpdate.trigger(this);\n    }\n  }\n  async getItemsBounding(items) {\n    const fragments = this.components.get(FragmentsManager);\n    const boxer = this.components.get(BoundingBoxer);\n    boxer.list.clear();\n    const sphere = new THREE.Sphere();\n    if (items) {\n      await boxer.addFromModelIdMap(items);\n    } else {\n      for (const [, model] of fragments.list) {\n        boxer.list.add(model.box);\n      }\n    }\n    boxer.get().getBoundingSphere(sphere);\n    boxer.list.clear();\n    return sphere;\n  }\n  setupCamera() {\n    const aspect = window.innerWidth / window.innerHeight;\n    const camera = new THREE.PerspectiveCamera(60, aspect, 1, 1e3);\n    camera.position.set(50, 50, 50);\n    camera.lookAt(new THREE.Vector3(0, 0, 0));\n    return camera;\n  }\n  newCameraControls() {\n    if (!this.currentWorld) {\n      throw new Error(\"This camera needs a world to work!\");\n    }\n    if (!this.currentWorld.renderer) {\n      throw new Error(\"This camera needs a renderer to work!\");\n    }\n    CameraControls.install({ THREE: SimpleCamera.getSubsetOfThree() });\n    const { domElement } = this.currentWorld.renderer.three;\n    const controls = new CameraControls(this.three, domElement);\n    controls.smoothTime = 0.2;\n    controls.dollyToCursor = true;\n    controls.infinityDolly = true;\n    controls.minDistance = 6;\n    return controls;\n  }\n  setupEvents(active) {\n    if (this._resizeObserver) {\n      this._resizeObserver.disconnect();\n      this._resizeObserver = null;\n    }\n    if (active) {\n      if (!this.currentWorld) {\n        throw new Error(\"This camera needs a world to work!\");\n      }\n      if (!this.currentWorld.renderer) {\n        throw new Error(\"This camera needs a renderer to work!\");\n      }\n      const { domElement } = this.currentWorld.renderer.three;\n      this._resizeObserver = new ResizeObserver(this.updateAspect);\n      this._resizeObserver.observe(domElement);\n    }\n  }\n  static getSubsetOfThree() {\n    return {\n      MOUSE: THREE.MOUSE,\n      Vector2: THREE.Vector2,\n      Vector3: THREE.Vector3,\n      Vector4: THREE.Vector4,\n      Quaternion: THREE.Quaternion,\n      Matrix4: THREE.Matrix4,\n      Spherical: THREE.Spherical,\n      Box3: THREE.Box3,\n      Sphere: THREE.Sphere,\n      Raycaster: THREE.Raycaster,\n      MathUtils: THREE.MathUtils\n    };\n  }\n}\nconst _Worlds = class _Worlds extends Component {\n  constructor(components) {\n    super(components);\n    /** {@link Updateable.onAfterUpdate} */\n    __publicField(this, \"onAfterUpdate\", new Event());\n    /** {@link Updateable.onBeforeUpdate} */\n    __publicField(this, \"onBeforeUpdate\", new Event());\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    /**\n     * A collection of worlds managed by this component.\n     * The key is the unique identifier (UUID) of the world, and the value is the World instance.\n     */\n    __publicField(this, \"list\", new DataMap$1());\n    /** {@link Component.enabled} */\n    __publicField(this, \"enabled\", true);\n    components.add(_Worlds.uuid, this);\n  }\n  /**\n   * Creates a new instance of a SimpleWorld and adds it to the list of worlds.\n   *\n   * @template T - The type of the scene, extending from BaseScene. Defaults to BaseScene.\n   * @template U - The type of the camera, extending from BaseCamera. Defaults to BaseCamera.\n   * @template S - The type of the renderer, extending from BaseRenderer. Defaults to BaseRenderer.\n   *\n   * @throws {Error} - Throws an error if a world with the same UUID already exists in the list.\n   */\n  create() {\n    const world = new SimpleWorld(this.components);\n    const id = world.uuid;\n    if (this.list.has(id)) {\n      throw new Error(\"There is already a world with this name!\");\n    }\n    this.list.set(id, world);\n    return world;\n  }\n  /**\n   * Deletes a world from the list of worlds.\n   *\n   * @param {World} world - The world to be deleted.\n   *\n   * @throws {Error} - Throws an error if the provided world is not found in the list.\n   */\n  delete(world) {\n    if (!this.list.has(world.uuid)) {\n      throw new Error(\"The provided world is not found in the list!\");\n    }\n    this.list.delete(world.uuid);\n    world.dispose();\n  }\n  /**\n   * Disposes of the Worlds component and all its managed worlds.\n   * This method sets the enabled flag to false, disposes of all worlds, clears the list,\n   * and triggers the onDisposed event.\n   */\n  dispose() {\n    this.enabled = false;\n    for (const [_id, world] of this.list) {\n      world.dispose();\n    }\n    this.list.clear();\n    this.onDisposed.trigger();\n  }\n  /** {@link Updateable.update} */\n  update(delta) {\n    if (!this.enabled)\n      return;\n    for (const [_id, world] of this.list) {\n      world.update(delta);\n    }\n  }\n};\n/**\n * A unique identifier for the component.\n * This UUID is used to register the component within the Components system.\n */\n__publicField(_Worlds, \"uuid\", \"fdb61dc4-2ec1-4966-b83d-54ea795fad4a\");\nlet Worlds = _Worlds;\nclass SimpleGridConfigManager extends Configurator {\n  constructor() {\n    super(...arguments);\n    __publicField(this, \"_config\", {\n      visible: {\n        value: true,\n        type: \"Boolean\"\n      },\n      color: {\n        value: new THREE.Color(),\n        type: \"Color\"\n      },\n      primarySize: {\n        type: \"Number\",\n        interpolable: true,\n        value: 1,\n        min: 0,\n        max: 1e3\n      },\n      secondarySize: {\n        type: \"Number\",\n        interpolable: true,\n        value: 10,\n        min: 0,\n        max: 1e3\n      },\n      distance: {\n        type: \"Number\",\n        interpolable: true,\n        value: 500,\n        min: 0,\n        max: 500\n      }\n    });\n  }\n  /**\n   * Whether the grid is visible or not.\n   */\n  get visible() {\n    return this._config.visible.value;\n  }\n  /**\n   * Whether the grid is visible or not.\n   */\n  set visible(value) {\n    this._config.visible.value = value;\n    this._component.visible = value;\n  }\n  /**\n   * The color of the grid lines.\n   */\n  get color() {\n    return this._config.color.value;\n  }\n  /**\n   * The color of the grid lines.\n   */\n  set color(value) {\n    this._config.color.value = value;\n    this._component.material.uniforms.uColor.value = value;\n    this._component.material.uniformsNeedUpdate = true;\n  }\n  /**\n   * The size of the primary grid lines.\n   */\n  get primarySize() {\n    return this._config.primarySize.value;\n  }\n  /**\n   * The size of the primary grid lines.\n   */\n  set primarySize(value) {\n    this._config.primarySize.value = value;\n    this._component.material.uniforms.uSize1.value = value;\n    this._component.material.uniformsNeedUpdate = true;\n  }\n  /**\n   * The size of the secondary grid lines.\n   */\n  get secondarySize() {\n    return this._config.secondarySize.value;\n  }\n  /**\n   * The size of the secondary grid lines.\n   */\n  set secondarySize(value) {\n    this._config.secondarySize.value = value;\n    this._component.material.uniforms.uSize2.value = value;\n    this._component.material.uniformsNeedUpdate = true;\n  }\n  /**\n   * The distance at which the grid lines start to fade away.\n   */\n  get distance() {\n    return this._config.distance.value;\n  }\n  /**\n   * The distance at which the grid lines start to fade away.\n   */\n  set distance(value) {\n    this._config.distance.value = value;\n    this._component.material.uniforms.uDistance.value = value;\n    this._component.material.uniformsNeedUpdate = true;\n  }\n}\nclass SimpleGrid {\n  constructor(components, world) {\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    /** {@link Configurable.onSetup} */\n    __publicField(this, \"onSetup\", new Event());\n    /** {@link Configurable.isSetup} */\n    __publicField(this, \"isSetup\", false);\n    /** The world instance to which this Raycaster belongs. */\n    __publicField(this, \"world\");\n    /** The components instance to which this grid belongs. */\n    __publicField(this, \"components\");\n    /** {@link Configurable.config} */\n    __publicField(this, \"config\");\n    __publicField(this, \"_defaultConfig\", {\n      visible: true,\n      color: new THREE.Color(12303291),\n      primarySize: 1,\n      secondarySize: 10,\n      distance: 500\n    });\n    /** The Three.js mesh that contains the infinite grid. */\n    __publicField(this, \"three\");\n    __publicField(this, \"_fade\", 3);\n    __publicField(this, \"updateZoom\", () => {\n      if (!(this.world.camera instanceof SimpleCamera)) {\n        return;\n      }\n      this.material.uniforms.uZoom.value = this.world.camera.three.zoom;\n    });\n    this.world = world;\n    const { color, primarySize, secondarySize, distance } = this._defaultConfig;\n    this.components = components;\n    this.config = new SimpleGridConfigManager(this, this.components, \"Grid\");\n    const geometry = new THREE.PlaneGeometry(2, 2, 1, 1);\n    const material = new THREE.ShaderMaterial({\n      side: THREE.DoubleSide,\n      uniforms: {\n        uSize1: {\n          value: primarySize\n        },\n        uSize2: {\n          value: secondarySize\n        },\n        uColor: {\n          value: color\n        },\n        uDistance: {\n          value: distance\n        },\n        uFade: {\n          value: this._fade\n        },\n        uZoom: {\n          value: 1\n        }\n      },\n      transparent: true,\n      vertexShader: `\n            \n            varying vec3 worldPosition;\n            \n            uniform float uDistance;\n            \n            void main() {\n            \n                    vec3 pos = position.xzy * uDistance;\n                    pos.xz += cameraPosition.xz;\n                    \n                    worldPosition = pos;\n                    \n                    gl_Position = projectionMatrix * modelViewMatrix * vec4(pos, 1.0);\n            \n            }\n            `,\n      fragmentShader: `\n            \n            varying vec3 worldPosition;\n            \n            uniform float uZoom;\n            uniform float uFade;\n            uniform float uSize1;\n            uniform float uSize2;\n            uniform vec3 uColor;\n            uniform float uDistance;\n                \n                \n                \n                float getGrid(float size) {\n                \n                    vec2 r = worldPosition.xz / size;\n                    \n                    \n                    vec2 grid = abs(fract(r - 0.5) - 0.5) / fwidth(r);\n                    float line = min(grid.x, grid.y);\n                    \n                \n                    return 1.0 - min(line, 1.0);\n                }\n                \n            void main() {\n            \n                    \n                    float d = 1.0 - min(distance(cameraPosition.xz, worldPosition.xz) / uDistance, 1.0);\n                    \n                    float g1 = getGrid(uSize1);\n                    float g2 = getGrid(uSize2);\n                    \n                    // Ortho camera fades the grid away when zooming out\n                    float minZoom = step(0.2, uZoom);\n                    float zoomFactor = pow(min(uZoom, 1.), 2.) * minZoom;\n                    \n                    gl_FragColor = vec4(uColor.rgb, mix(g2, g1, g1) * pow(d, uFade));\n                    gl_FragColor.a = mix(0.5 * gl_FragColor.a, gl_FragColor.a, g2) * zoomFactor;\n                    \n                    if ( gl_FragColor.a <= 0.0 ) discard;\n                    \n            \n            }\n            \n            `,\n      extensions: {\n        derivatives: true\n      }\n    });\n    this.three = new THREE.Mesh(geometry, material);\n    this.three.frustumCulled = false;\n    world.scene.three.add(this.three);\n    this.setupEvents(true);\n  }\n  /** {@link Hideable.visible} */\n  get visible() {\n    return this.three.visible;\n  }\n  /** {@link Hideable.visible} */\n  set visible(visible) {\n    this.three.visible = visible;\n    if (visible) {\n      const scene = this.world.scene.three;\n      scene.add(this.three);\n    } else {\n      this.three.removeFromParent();\n    }\n  }\n  /** The material of the grid. */\n  get material() {\n    return this.three.material;\n  }\n  /**\n   * Whether the grid should fade away with distance. Recommended to be true for\n   * perspective cameras and false for orthographic cameras.\n   */\n  get fade() {\n    return this._fade === 3;\n  }\n  /**\n   * Whether the grid should fade away with distance. Recommended to be true for\n   * perspective cameras and false for orthographic cameras.\n   */\n  set fade(active) {\n    this._fade = active ? 3 : 0;\n    this.material.uniforms.uFade.value = this._fade;\n  }\n  /** {@link Configurable.setup} */\n  setup(config) {\n    const fullConfig = { ...this._defaultConfig, ...config };\n    this.config.visible = true;\n    this.config.color = fullConfig.color;\n    this.config.primarySize = fullConfig.primarySize;\n    this.config.secondarySize = fullConfig.secondarySize;\n    this.config.distance = fullConfig.distance;\n    this.isSetup = true;\n    this.onSetup.trigger();\n  }\n  /** {@link Disposable.dispose} */\n  dispose() {\n    this.setupEvents(false);\n    const configs = this.components.get(ConfigManager);\n    configs.list.delete(this.config.uuid);\n    const disposer = this.components.get(Disposer);\n    disposer.destroy(this.three);\n    this.onDisposed.trigger();\n    this.onDisposed.reset();\n    this.world = null;\n    this.components = null;\n  }\n  setupEvents(active) {\n    if (this.world.isDisposing) {\n      return;\n    }\n    if (!(this.world.camera instanceof SimpleCamera)) {\n      return;\n    }\n    const controls = this.world.camera.controls;\n    if (active) {\n      controls.addEventListener(\"update\", this.updateZoom);\n    } else {\n      controls.removeEventListener(\"update\", this.updateZoom);\n    }\n  }\n}\nconst _Grids = class _Grids extends Component {\n  constructor(components) {\n    super(components);\n    /**\n     * A map of world UUIDs to their corresponding grid instances.\n     */\n    __publicField(this, \"list\", /* @__PURE__ */ new Map());\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    /** {@link Component.enabled} */\n    __publicField(this, \"enabled\", true);\n    components.add(_Grids.uuid, this);\n  }\n  /**\n   * Creates a new grid for the given world.\n   * Throws an error if a grid already exists for the world.\n   *\n   * @param world - The world to create the grid for.\n   * @returns The newly created grid.\n   *\n   * @throws Will throw an error if a grid already exists for the given world.\n   */\n  create(world) {\n    if (this.list.has(world.uuid)) {\n      throw new Error(\"This world already has a grid!\");\n    }\n    const grid = new SimpleGrid(this.components, world);\n    this.list.set(world.uuid, grid);\n    world.onDisposed.add(() => {\n      this.delete(world);\n    });\n    return grid;\n  }\n  /**\n   * Deletes the grid associated with the given world.\n   * If a grid does not exist for the given world, this method does nothing.\n   *\n   * @param world - The world for which to delete the grid.\n   *\n   * @remarks\n   * This method will dispose of the grid and remove it from the internal list.\n   * If the world is disposed before calling this method, the grid will be automatically deleted.\n   */\n  delete(world) {\n    const grid = this.list.get(world.uuid);\n    if (grid) {\n      grid.dispose();\n    }\n    this.list.delete(world.uuid);\n  }\n  /** {@link Disposable.dispose} */\n  dispose() {\n    for (const [_id, grid] of this.list) {\n      grid.dispose();\n    }\n    this.list.clear();\n    this.onDisposed.trigger();\n    this.onDisposed.reset();\n  }\n};\n/**\n * A unique identifier for the component.\n * This UUID is used to register the component within the Components system.\n */\n__publicField(_Grids, \"uuid\", \"d1e814d5-b81c-4452-87a2-f039375e0489\");\nlet Grids = _Grids;\nconst CENTER = 0;\nconst AVERAGE = 1;\nconst SAH = 2;\nconst CONTAINED = 2;\nconst TRIANGLE_INTERSECT_COST = 1.25;\nconst TRAVERSAL_COST = 1;\nconst BYTES_PER_NODE = 6 * 4 + 4 + 4;\nconst IS_LEAFNODE_FLAG = 65535;\nconst FLOAT32_EPSILON = Math.pow(2, -24);\nconst SKIP_GENERATION = Symbol(\"SKIP_GENERATION\");\nfunction getVertexCount(geo) {\n  return geo.index ? geo.index.count : geo.attributes.position.count;\n}\nfunction getTriCount(geo) {\n  return getVertexCount(geo) / 3;\n}\nfunction getIndexArray(vertexCount, BufferConstructor = ArrayBuffer) {\n  if (vertexCount > 65535) {\n    return new Uint32Array(new BufferConstructor(4 * vertexCount));\n  } else {\n    return new Uint16Array(new BufferConstructor(2 * vertexCount));\n  }\n}\nfunction ensureIndex(geo, options) {\n  if (!geo.index) {\n    const vertexCount = geo.attributes.position.count;\n    const BufferConstructor = options.useSharedArrayBuffer ? SharedArrayBuffer : ArrayBuffer;\n    const index = getIndexArray(vertexCount, BufferConstructor);\n    geo.setIndex(new BufferAttribute(index, 1));\n    for (let i = 0; i < vertexCount; i++) {\n      index[i] = i;\n    }\n  }\n}\nfunction getFullGeometryRange(geo) {\n  const triCount = getTriCount(geo);\n  const drawRange = geo.drawRange;\n  const start = drawRange.start / 3;\n  const end = (drawRange.start + drawRange.count) / 3;\n  const offset = Math.max(0, start);\n  const count = Math.min(triCount, end) - offset;\n  return [{\n    offset: Math.floor(offset),\n    count: Math.floor(count)\n  }];\n}\nfunction getRootIndexRanges(geo) {\n  if (!geo.groups || !geo.groups.length) {\n    return getFullGeometryRange(geo);\n  }\n  const ranges = [];\n  const rangeBoundaries = /* @__PURE__ */ new Set();\n  const drawRange = geo.drawRange;\n  const drawRangeStart = drawRange.start / 3;\n  const drawRangeEnd = (drawRange.start + drawRange.count) / 3;\n  for (const group of geo.groups) {\n    const groupStart = group.start / 3;\n    const groupEnd = (group.start + group.count) / 3;\n    rangeBoundaries.add(Math.max(drawRangeStart, groupStart));\n    rangeBoundaries.add(Math.min(drawRangeEnd, groupEnd));\n  }\n  const sortedBoundaries = Array.from(rangeBoundaries.values()).sort((a, b) => a - b);\n  for (let i = 0; i < sortedBoundaries.length - 1; i++) {\n    const start = sortedBoundaries[i];\n    const end = sortedBoundaries[i + 1];\n    ranges.push({\n      offset: Math.floor(start),\n      count: Math.floor(end - start)\n    });\n  }\n  return ranges;\n}\nfunction hasGroupGaps(geometry) {\n  if (geometry.groups.length === 0) {\n    return false;\n  }\n  const vertexCount = getTriCount(geometry);\n  const groups = getRootIndexRanges(geometry).sort((a, b) => a.offset - b.offset);\n  const finalGroup = groups[groups.length - 1];\n  finalGroup.count = Math.min(vertexCount - finalGroup.offset, finalGroup.count);\n  let total = 0;\n  groups.forEach(({ count }) => total += count);\n  return vertexCount !== total;\n}\nfunction arrayToBox(nodeIndex32, array, target) {\n  target.min.x = array[nodeIndex32];\n  target.min.y = array[nodeIndex32 + 1];\n  target.min.z = array[nodeIndex32 + 2];\n  target.max.x = array[nodeIndex32 + 3];\n  target.max.y = array[nodeIndex32 + 4];\n  target.max.z = array[nodeIndex32 + 5];\n  return target;\n}\nfunction makeEmptyBounds(target) {\n  target[0] = target[1] = target[2] = Infinity;\n  target[3] = target[4] = target[5] = -Infinity;\n}\nfunction getLongestEdgeIndex(bounds) {\n  let splitDimIdx = -1;\n  let splitDist = -Infinity;\n  for (let i = 0; i < 3; i++) {\n    const dist = bounds[i + 3] - bounds[i];\n    if (dist > splitDist) {\n      splitDist = dist;\n      splitDimIdx = i;\n    }\n  }\n  return splitDimIdx;\n}\nfunction copyBounds(source, target) {\n  target.set(source);\n}\nfunction unionBounds(a, b, target) {\n  let aVal, bVal;\n  for (let d = 0; d < 3; d++) {\n    const d3 = d + 3;\n    aVal = a[d];\n    bVal = b[d];\n    target[d] = aVal < bVal ? aVal : bVal;\n    aVal = a[d3];\n    bVal = b[d3];\n    target[d3] = aVal > bVal ? aVal : bVal;\n  }\n}\nfunction expandByTriangleBounds(startIndex, triangleBounds, bounds) {\n  for (let d = 0; d < 3; d++) {\n    const tCenter = triangleBounds[startIndex + 2 * d];\n    const tHalf = triangleBounds[startIndex + 2 * d + 1];\n    const tMin = tCenter - tHalf;\n    const tMax = tCenter + tHalf;\n    if (tMin < bounds[d]) {\n      bounds[d] = tMin;\n    }\n    if (tMax > bounds[d + 3]) {\n      bounds[d + 3] = tMax;\n    }\n  }\n}\nfunction computeSurfaceArea(bounds) {\n  const d0 = bounds[3] - bounds[0];\n  const d1 = bounds[4] - bounds[1];\n  const d2 = bounds[5] - bounds[2];\n  return 2 * (d0 * d1 + d1 * d2 + d2 * d0);\n}\nfunction getBounds(triangleBounds, offset, count, target, centroidTarget = null) {\n  let minx = Infinity;\n  let miny = Infinity;\n  let minz = Infinity;\n  let maxx = -Infinity;\n  let maxy = -Infinity;\n  let maxz = -Infinity;\n  let cminx = Infinity;\n  let cminy = Infinity;\n  let cminz = Infinity;\n  let cmaxx = -Infinity;\n  let cmaxy = -Infinity;\n  let cmaxz = -Infinity;\n  const includeCentroid = centroidTarget !== null;\n  for (let i = offset * 6, end = (offset + count) * 6; i < end; i += 6) {\n    const cx = triangleBounds[i + 0];\n    const hx = triangleBounds[i + 1];\n    const lx = cx - hx;\n    const rx = cx + hx;\n    if (lx < minx)\n      minx = lx;\n    if (rx > maxx)\n      maxx = rx;\n    if (includeCentroid && cx < cminx)\n      cminx = cx;\n    if (includeCentroid && cx > cmaxx)\n      cmaxx = cx;\n    const cy = triangleBounds[i + 2];\n    const hy = triangleBounds[i + 3];\n    const ly = cy - hy;\n    const ry = cy + hy;\n    if (ly < miny)\n      miny = ly;\n    if (ry > maxy)\n      maxy = ry;\n    if (includeCentroid && cy < cminy)\n      cminy = cy;\n    if (includeCentroid && cy > cmaxy)\n      cmaxy = cy;\n    const cz = triangleBounds[i + 4];\n    const hz = triangleBounds[i + 5];\n    const lz = cz - hz;\n    const rz = cz + hz;\n    if (lz < minz)\n      minz = lz;\n    if (rz > maxz)\n      maxz = rz;\n    if (includeCentroid && cz < cminz)\n      cminz = cz;\n    if (includeCentroid && cz > cmaxz)\n      cmaxz = cz;\n  }\n  target[0] = minx;\n  target[1] = miny;\n  target[2] = minz;\n  target[3] = maxx;\n  target[4] = maxy;\n  target[5] = maxz;\n  if (includeCentroid) {\n    centroidTarget[0] = cminx;\n    centroidTarget[1] = cminy;\n    centroidTarget[2] = cminz;\n    centroidTarget[3] = cmaxx;\n    centroidTarget[4] = cmaxy;\n    centroidTarget[5] = cmaxz;\n  }\n}\nfunction getCentroidBounds(triangleBounds, offset, count, centroidTarget) {\n  let cminx = Infinity;\n  let cminy = Infinity;\n  let cminz = Infinity;\n  let cmaxx = -Infinity;\n  let cmaxy = -Infinity;\n  let cmaxz = -Infinity;\n  for (let i = offset * 6, end = (offset + count) * 6; i < end; i += 6) {\n    const cx = triangleBounds[i + 0];\n    if (cx < cminx)\n      cminx = cx;\n    if (cx > cmaxx)\n      cmaxx = cx;\n    const cy = triangleBounds[i + 2];\n    if (cy < cminy)\n      cminy = cy;\n    if (cy > cmaxy)\n      cmaxy = cy;\n    const cz = triangleBounds[i + 4];\n    if (cz < cminz)\n      cminz = cz;\n    if (cz > cmaxz)\n      cmaxz = cz;\n  }\n  centroidTarget[0] = cminx;\n  centroidTarget[1] = cminy;\n  centroidTarget[2] = cminz;\n  centroidTarget[3] = cmaxx;\n  centroidTarget[4] = cmaxy;\n  centroidTarget[5] = cmaxz;\n}\nfunction computeTriangleBounds(geo, fullBounds) {\n  makeEmptyBounds(fullBounds);\n  const posAttr = geo.attributes.position;\n  const index = geo.index ? geo.index.array : null;\n  const triCount = getTriCount(geo);\n  const triangleBounds = new Float32Array(triCount * 6);\n  const normalized = posAttr.normalized;\n  const posArr = posAttr.array;\n  const bufferOffset = posAttr.offset || 0;\n  let stride = 3;\n  if (posAttr.isInterleavedBufferAttribute) {\n    stride = posAttr.data.stride;\n  }\n  const getters = [\"getX\", \"getY\", \"getZ\"];\n  for (let tri = 0; tri < triCount; tri++) {\n    const tri3 = tri * 3;\n    const tri6 = tri * 6;\n    let ai = tri3 + 0;\n    let bi = tri3 + 1;\n    let ci = tri3 + 2;\n    if (index) {\n      ai = index[ai];\n      bi = index[bi];\n      ci = index[ci];\n    }\n    if (!normalized) {\n      ai = ai * stride + bufferOffset;\n      bi = bi * stride + bufferOffset;\n      ci = ci * stride + bufferOffset;\n    }\n    for (let el = 0; el < 3; el++) {\n      let a, b, c;\n      if (normalized) {\n        a = posAttr[getters[el]](ai);\n        b = posAttr[getters[el]](bi);\n        c = posAttr[getters[el]](ci);\n      } else {\n        a = posArr[ai + el];\n        b = posArr[bi + el];\n        c = posArr[ci + el];\n      }\n      let min = a;\n      if (b < min)\n        min = b;\n      if (c < min)\n        min = c;\n      let max = a;\n      if (b > max)\n        max = b;\n      if (c > max)\n        max = c;\n      const halfExtents = (max - min) / 2;\n      const el2 = el * 2;\n      triangleBounds[tri6 + el2 + 0] = min + halfExtents;\n      triangleBounds[tri6 + el2 + 1] = halfExtents + (Math.abs(min) + halfExtents) * FLOAT32_EPSILON;\n      if (min < fullBounds[el])\n        fullBounds[el] = min;\n      if (max > fullBounds[el + 3])\n        fullBounds[el + 3] = max;\n    }\n  }\n  return triangleBounds;\n}\nconst BIN_COUNT = 32;\nconst binsSort = (a, b) => a.candidate - b.candidate;\nconst sahBins = new Array(BIN_COUNT).fill().map(() => {\n  return {\n    count: 0,\n    bounds: new Float32Array(6),\n    rightCacheBounds: new Float32Array(6),\n    leftCacheBounds: new Float32Array(6),\n    candidate: 0\n  };\n});\nconst leftBounds = new Float32Array(6);\nfunction getOptimalSplit(nodeBoundingData, centroidBoundingData, triangleBounds, offset, count, strategy) {\n  let axis = -1;\n  let pos = 0;\n  if (strategy === CENTER) {\n    axis = getLongestEdgeIndex(centroidBoundingData);\n    if (axis !== -1) {\n      pos = (centroidBoundingData[axis] + centroidBoundingData[axis + 3]) / 2;\n    }\n  } else if (strategy === AVERAGE) {\n    axis = getLongestEdgeIndex(nodeBoundingData);\n    if (axis !== -1) {\n      pos = getAverage(triangleBounds, offset, count, axis);\n    }\n  } else if (strategy === SAH) {\n    const rootSurfaceArea = computeSurfaceArea(nodeBoundingData);\n    let bestCost = TRIANGLE_INTERSECT_COST * count;\n    const cStart = offset * 6;\n    const cEnd = (offset + count) * 6;\n    for (let a = 0; a < 3; a++) {\n      const axisLeft = centroidBoundingData[a];\n      const axisRight = centroidBoundingData[a + 3];\n      const axisLength = axisRight - axisLeft;\n      const binWidth = axisLength / BIN_COUNT;\n      if (count < BIN_COUNT / 4) {\n        const truncatedBins = [...sahBins];\n        truncatedBins.length = count;\n        let b = 0;\n        for (let c = cStart; c < cEnd; c += 6, b++) {\n          const bin = truncatedBins[b];\n          bin.candidate = triangleBounds[c + 2 * a];\n          bin.count = 0;\n          const {\n            bounds,\n            leftCacheBounds,\n            rightCacheBounds\n          } = bin;\n          for (let d = 0; d < 3; d++) {\n            rightCacheBounds[d] = Infinity;\n            rightCacheBounds[d + 3] = -Infinity;\n            leftCacheBounds[d] = Infinity;\n            leftCacheBounds[d + 3] = -Infinity;\n            bounds[d] = Infinity;\n            bounds[d + 3] = -Infinity;\n          }\n          expandByTriangleBounds(c, triangleBounds, bounds);\n        }\n        truncatedBins.sort(binsSort);\n        let splitCount = count;\n        for (let bi = 0; bi < splitCount; bi++) {\n          const bin = truncatedBins[bi];\n          while (bi + 1 < splitCount && truncatedBins[bi + 1].candidate === bin.candidate) {\n            truncatedBins.splice(bi + 1, 1);\n            splitCount--;\n          }\n        }\n        for (let c = cStart; c < cEnd; c += 6) {\n          const center = triangleBounds[c + 2 * a];\n          for (let bi = 0; bi < splitCount; bi++) {\n            const bin = truncatedBins[bi];\n            if (center >= bin.candidate) {\n              expandByTriangleBounds(c, triangleBounds, bin.rightCacheBounds);\n            } else {\n              expandByTriangleBounds(c, triangleBounds, bin.leftCacheBounds);\n              bin.count++;\n            }\n          }\n        }\n        for (let bi = 0; bi < splitCount; bi++) {\n          const bin = truncatedBins[bi];\n          const leftCount = bin.count;\n          const rightCount = count - bin.count;\n          const leftBounds2 = bin.leftCacheBounds;\n          const rightBounds = bin.rightCacheBounds;\n          let leftProb = 0;\n          if (leftCount !== 0) {\n            leftProb = computeSurfaceArea(leftBounds2) / rootSurfaceArea;\n          }\n          let rightProb = 0;\n          if (rightCount !== 0) {\n            rightProb = computeSurfaceArea(rightBounds) / rootSurfaceArea;\n          }\n          const cost = TRAVERSAL_COST + TRIANGLE_INTERSECT_COST * (leftProb * leftCount + rightProb * rightCount);\n          if (cost < bestCost) {\n            axis = a;\n            bestCost = cost;\n            pos = bin.candidate;\n          }\n        }\n      } else {\n        for (let i = 0; i < BIN_COUNT; i++) {\n          const bin = sahBins[i];\n          bin.count = 0;\n          bin.candidate = axisLeft + binWidth + i * binWidth;\n          const bounds = bin.bounds;\n          for (let d = 0; d < 3; d++) {\n            bounds[d] = Infinity;\n            bounds[d + 3] = -Infinity;\n          }\n        }\n        for (let c = cStart; c < cEnd; c += 6) {\n          const triCenter = triangleBounds[c + 2 * a];\n          const relativeCenter = triCenter - axisLeft;\n          let binIndex = ~~(relativeCenter / binWidth);\n          if (binIndex >= BIN_COUNT)\n            binIndex = BIN_COUNT - 1;\n          const bin = sahBins[binIndex];\n          bin.count++;\n          expandByTriangleBounds(c, triangleBounds, bin.bounds);\n        }\n        const lastBin = sahBins[BIN_COUNT - 1];\n        copyBounds(lastBin.bounds, lastBin.rightCacheBounds);\n        for (let i = BIN_COUNT - 2; i >= 0; i--) {\n          const bin = sahBins[i];\n          const nextBin = sahBins[i + 1];\n          unionBounds(bin.bounds, nextBin.rightCacheBounds, bin.rightCacheBounds);\n        }\n        let leftCount = 0;\n        for (let i = 0; i < BIN_COUNT - 1; i++) {\n          const bin = sahBins[i];\n          const binCount = bin.count;\n          const bounds = bin.bounds;\n          const nextBin = sahBins[i + 1];\n          const rightBounds = nextBin.rightCacheBounds;\n          if (binCount !== 0) {\n            if (leftCount === 0) {\n              copyBounds(bounds, leftBounds);\n            } else {\n              unionBounds(bounds, leftBounds, leftBounds);\n            }\n          }\n          leftCount += binCount;\n          let leftProb = 0;\n          let rightProb = 0;\n          if (leftCount !== 0) {\n            leftProb = computeSurfaceArea(leftBounds) / rootSurfaceArea;\n          }\n          const rightCount = count - leftCount;\n          if (rightCount !== 0) {\n            rightProb = computeSurfaceArea(rightBounds) / rootSurfaceArea;\n          }\n          const cost = TRAVERSAL_COST + TRIANGLE_INTERSECT_COST * (leftProb * leftCount + rightProb * rightCount);\n          if (cost < bestCost) {\n            axis = a;\n            bestCost = cost;\n            pos = bin.candidate;\n          }\n        }\n      }\n    }\n  } else {\n    console.warn(`MeshBVH: Invalid build strategy value ${strategy} used.`);\n  }\n  return { axis, pos };\n}\nfunction getAverage(triangleBounds, offset, count, axis) {\n  let avg = 0;\n  for (let i = offset, end = offset + count; i < end; i++) {\n    avg += triangleBounds[i * 6 + axis * 2];\n  }\n  return avg / count;\n}\nclass MeshBVHNode {\n  constructor() {\n  }\n}\nfunction partition(indirectBuffer, index, triangleBounds, offset, count, split) {\n  let left = offset;\n  let right = offset + count - 1;\n  const pos = split.pos;\n  const axisOffset = split.axis * 2;\n  while (true) {\n    while (left <= right && triangleBounds[left * 6 + axisOffset] < pos) {\n      left++;\n    }\n    while (left <= right && triangleBounds[right * 6 + axisOffset] >= pos) {\n      right--;\n    }\n    if (left < right) {\n      for (let i = 0; i < 3; i++) {\n        let t0 = index[left * 3 + i];\n        index[left * 3 + i] = index[right * 3 + i];\n        index[right * 3 + i] = t0;\n      }\n      for (let i = 0; i < 6; i++) {\n        let tb = triangleBounds[left * 6 + i];\n        triangleBounds[left * 6 + i] = triangleBounds[right * 6 + i];\n        triangleBounds[right * 6 + i] = tb;\n      }\n      left++;\n      right--;\n    } else {\n      return left;\n    }\n  }\n}\nfunction partition_indirect(indirectBuffer, index, triangleBounds, offset, count, split) {\n  let left = offset;\n  let right = offset + count - 1;\n  const pos = split.pos;\n  const axisOffset = split.axis * 2;\n  while (true) {\n    while (left <= right && triangleBounds[left * 6 + axisOffset] < pos) {\n      left++;\n    }\n    while (left <= right && triangleBounds[right * 6 + axisOffset] >= pos) {\n      right--;\n    }\n    if (left < right) {\n      let t = indirectBuffer[left];\n      indirectBuffer[left] = indirectBuffer[right];\n      indirectBuffer[right] = t;\n      for (let i = 0; i < 6; i++) {\n        let tb = triangleBounds[left * 6 + i];\n        triangleBounds[left * 6 + i] = triangleBounds[right * 6 + i];\n        triangleBounds[right * 6 + i] = tb;\n      }\n      left++;\n      right--;\n    } else {\n      return left;\n    }\n  }\n}\nfunction generateIndirectBuffer(geometry, useSharedArrayBuffer) {\n  const triCount = (geometry.index ? geometry.index.count : geometry.attributes.position.count) / 3;\n  const useUint32 = triCount > 2 ** 16;\n  const byteCount = useUint32 ? 4 : 2;\n  const buffer = useSharedArrayBuffer ? new SharedArrayBuffer(triCount * byteCount) : new ArrayBuffer(triCount * byteCount);\n  const indirectBuffer = useUint32 ? new Uint32Array(buffer) : new Uint16Array(buffer);\n  for (let i = 0, l = indirectBuffer.length; i < l; i++) {\n    indirectBuffer[i] = i;\n  }\n  return indirectBuffer;\n}\nfunction buildTree(bvh, options) {\n  const geometry = bvh.geometry;\n  const indexArray = geometry.index ? geometry.index.array : null;\n  const maxDepth = options.maxDepth;\n  const verbose = options.verbose;\n  const maxLeafTris = options.maxLeafTris;\n  const strategy = options.strategy;\n  const onProgress = options.onProgress;\n  const totalTriangles = getTriCount(geometry);\n  const indirectBuffer = bvh._indirectBuffer;\n  let reachedMaxDepth = false;\n  const fullBounds = new Float32Array(6);\n  const cacheCentroidBoundingData = new Float32Array(6);\n  const triangleBounds = computeTriangleBounds(geometry, fullBounds);\n  const partionFunc = options.indirect ? partition_indirect : partition;\n  const roots = [];\n  const ranges = options.indirect ? getFullGeometryRange(geometry) : getRootIndexRanges(geometry);\n  if (ranges.length === 1) {\n    const range = ranges[0];\n    const root = new MeshBVHNode();\n    root.boundingData = fullBounds;\n    getCentroidBounds(triangleBounds, range.offset, range.count, cacheCentroidBoundingData);\n    splitNode(root, range.offset, range.count, cacheCentroidBoundingData);\n    roots.push(root);\n  } else {\n    for (let range of ranges) {\n      const root = new MeshBVHNode();\n      root.boundingData = new Float32Array(6);\n      getBounds(triangleBounds, range.offset, range.count, root.boundingData, cacheCentroidBoundingData);\n      splitNode(root, range.offset, range.count, cacheCentroidBoundingData);\n      roots.push(root);\n    }\n  }\n  return roots;\n  function triggerProgress(trianglesProcessed) {\n    if (onProgress) {\n      onProgress(trianglesProcessed / totalTriangles);\n    }\n  }\n  function splitNode(node, offset, count, centroidBoundingData = null, depth = 0) {\n    if (!reachedMaxDepth && depth >= maxDepth) {\n      reachedMaxDepth = true;\n      if (verbose) {\n        console.warn(`MeshBVH: Max depth of ${maxDepth} reached when generating BVH. Consider increasing maxDepth.`);\n        console.warn(geometry);\n      }\n    }\n    if (count <= maxLeafTris || depth >= maxDepth) {\n      triggerProgress(offset + count);\n      node.offset = offset;\n      node.count = count;\n      return node;\n    }\n    const split = getOptimalSplit(node.boundingData, centroidBoundingData, triangleBounds, offset, count, strategy);\n    if (split.axis === -1) {\n      triggerProgress(offset + count);\n      node.offset = offset;\n      node.count = count;\n      return node;\n    }\n    const splitOffset = partionFunc(indirectBuffer, indexArray, triangleBounds, offset, count, split);\n    if (splitOffset === offset || splitOffset === offset + count) {\n      triggerProgress(offset + count);\n      node.offset = offset;\n      node.count = count;\n    } else {\n      node.splitAxis = split.axis;\n      const left = new MeshBVHNode();\n      const lstart = offset;\n      const lcount = splitOffset - offset;\n      node.left = left;\n      left.boundingData = new Float32Array(6);\n      getBounds(triangleBounds, lstart, lcount, left.boundingData, cacheCentroidBoundingData);\n      splitNode(left, lstart, lcount, cacheCentroidBoundingData, depth + 1);\n      const right = new MeshBVHNode();\n      const rstart = splitOffset;\n      const rcount = count - lcount;\n      node.right = right;\n      right.boundingData = new Float32Array(6);\n      getBounds(triangleBounds, rstart, rcount, right.boundingData, cacheCentroidBoundingData);\n      splitNode(right, rstart, rcount, cacheCentroidBoundingData, depth + 1);\n    }\n    return node;\n  }\n}\nfunction buildPackedTree(bvh, options) {\n  const geometry = bvh.geometry;\n  if (options.indirect) {\n    bvh._indirectBuffer = generateIndirectBuffer(geometry, options.useSharedArrayBuffer);\n    if (hasGroupGaps(geometry) && !options.verbose) {\n      console.warn(\n        'MeshBVH: Provided geometry contains groups that do not fully span the vertex contents while using the \"indirect\" option. BVH may incorrectly report intersections on unrendered portions of the geometry.'\n      );\n    }\n  }\n  if (!bvh._indirectBuffer) {\n    ensureIndex(geometry, options);\n  }\n  const roots = buildTree(bvh, options);\n  let float32Array;\n  let uint32Array;\n  let uint16Array;\n  const packedRoots = [];\n  const BufferConstructor = options.useSharedArrayBuffer ? SharedArrayBuffer : ArrayBuffer;\n  for (let i = 0; i < roots.length; i++) {\n    const root = roots[i];\n    let nodeCount = countNodes(root);\n    const buffer = new BufferConstructor(BYTES_PER_NODE * nodeCount);\n    float32Array = new Float32Array(buffer);\n    uint32Array = new Uint32Array(buffer);\n    uint16Array = new Uint16Array(buffer);\n    populateBuffer(0, root);\n    packedRoots.push(buffer);\n  }\n  bvh._roots = packedRoots;\n  return;\n  function countNodes(node) {\n    if (node.count) {\n      return 1;\n    } else {\n      return 1 + countNodes(node.left) + countNodes(node.right);\n    }\n  }\n  function populateBuffer(byteOffset, node) {\n    const stride4Offset = byteOffset / 4;\n    const stride2Offset = byteOffset / 2;\n    const isLeaf = !!node.count;\n    const boundingData = node.boundingData;\n    for (let i = 0; i < 6; i++) {\n      float32Array[stride4Offset + i] = boundingData[i];\n    }\n    if (isLeaf) {\n      const offset = node.offset;\n      const count = node.count;\n      uint32Array[stride4Offset + 6] = offset;\n      uint16Array[stride2Offset + 14] = count;\n      uint16Array[stride2Offset + 15] = IS_LEAFNODE_FLAG;\n      return byteOffset + BYTES_PER_NODE;\n    } else {\n      const left = node.left;\n      const right = node.right;\n      const splitAxis = node.splitAxis;\n      let nextUnusedPointer;\n      nextUnusedPointer = populateBuffer(byteOffset + BYTES_PER_NODE, left);\n      if (nextUnusedPointer / 4 > Math.pow(2, 32)) {\n        throw new Error(\"MeshBVH: Cannot store child pointer greater than 32 bits.\");\n      }\n      uint32Array[stride4Offset + 6] = nextUnusedPointer / 4;\n      nextUnusedPointer = populateBuffer(nextUnusedPointer, right);\n      uint32Array[stride4Offset + 7] = splitAxis;\n      return nextUnusedPointer;\n    }\n  }\n}\nclass SeparatingAxisBounds {\n  constructor() {\n    this.min = Infinity;\n    this.max = -Infinity;\n  }\n  setFromPointsField(points, field) {\n    let min = Infinity;\n    let max = -Infinity;\n    for (let i = 0, l = points.length; i < l; i++) {\n      const p = points[i];\n      const val = p[field];\n      min = val < min ? val : min;\n      max = val > max ? val : max;\n    }\n    this.min = min;\n    this.max = max;\n  }\n  setFromPoints(axis, points) {\n    let min = Infinity;\n    let max = -Infinity;\n    for (let i = 0, l = points.length; i < l; i++) {\n      const p = points[i];\n      const val = axis.dot(p);\n      min = val < min ? val : min;\n      max = val > max ? val : max;\n    }\n    this.min = min;\n    this.max = max;\n  }\n  isSeparated(other) {\n    return this.min > other.max || other.min > this.max;\n  }\n}\nSeparatingAxisBounds.prototype.setFromBox = function() {\n  const p = new Vector3();\n  return function setFromBox(axis, box) {\n    const boxMin = box.min;\n    const boxMax = box.max;\n    let min = Infinity;\n    let max = -Infinity;\n    for (let x = 0; x <= 1; x++) {\n      for (let y = 0; y <= 1; y++) {\n        for (let z = 0; z <= 1; z++) {\n          p.x = boxMin.x * x + boxMax.x * (1 - x);\n          p.y = boxMin.y * y + boxMax.y * (1 - y);\n          p.z = boxMin.z * z + boxMax.z * (1 - z);\n          const val = axis.dot(p);\n          min = Math.min(val, min);\n          max = Math.max(val, max);\n        }\n      }\n    }\n    this.min = min;\n    this.max = max;\n  };\n}();\nconst closestPointLineToLine = function() {\n  const dir1 = new Vector3();\n  const dir2 = new Vector3();\n  const v02 = new Vector3();\n  return function closestPointLineToLine2(l1, l2, result) {\n    const v0 = l1.start;\n    const v10 = dir1;\n    const v2 = l2.start;\n    const v32 = dir2;\n    v02.subVectors(v0, v2);\n    dir1.subVectors(l1.end, l1.start);\n    dir2.subVectors(l2.end, l2.start);\n    const d0232 = v02.dot(v32);\n    const d3210 = v32.dot(v10);\n    const d3232 = v32.dot(v32);\n    const d0210 = v02.dot(v10);\n    const d1010 = v10.dot(v10);\n    const denom = d1010 * d3232 - d3210 * d3210;\n    let d, d2;\n    if (denom !== 0) {\n      d = (d0232 * d3210 - d0210 * d3232) / denom;\n    } else {\n      d = 0;\n    }\n    d2 = (d0232 + d * d3210) / d3232;\n    result.x = d;\n    result.y = d2;\n  };\n}();\nconst closestPointsSegmentToSegment = function() {\n  const paramResult = new Vector2();\n  const temp12 = new Vector3();\n  const temp22 = new Vector3();\n  return function closestPointsSegmentToSegment2(l1, l2, target1, target2) {\n    closestPointLineToLine(l1, l2, paramResult);\n    let d = paramResult.x;\n    let d2 = paramResult.y;\n    if (d >= 0 && d <= 1 && d2 >= 0 && d2 <= 1) {\n      l1.at(d, target1);\n      l2.at(d2, target2);\n      return;\n    } else if (d >= 0 && d <= 1) {\n      if (d2 < 0) {\n        l2.at(0, target2);\n      } else {\n        l2.at(1, target2);\n      }\n      l1.closestPointToPoint(target2, true, target1);\n      return;\n    } else if (d2 >= 0 && d2 <= 1) {\n      if (d < 0) {\n        l1.at(0, target1);\n      } else {\n        l1.at(1, target1);\n      }\n      l2.closestPointToPoint(target1, true, target2);\n      return;\n    } else {\n      let p;\n      if (d < 0) {\n        p = l1.start;\n      } else {\n        p = l1.end;\n      }\n      let p2;\n      if (d2 < 0) {\n        p2 = l2.start;\n      } else {\n        p2 = l2.end;\n      }\n      const closestPoint = temp12;\n      const closestPoint2 = temp22;\n      l1.closestPointToPoint(p2, true, temp12);\n      l2.closestPointToPoint(p, true, temp22);\n      if (closestPoint.distanceToSquared(p2) <= closestPoint2.distanceToSquared(p)) {\n        target1.copy(closestPoint);\n        target2.copy(p2);\n        return;\n      } else {\n        target1.copy(p);\n        target2.copy(closestPoint2);\n        return;\n      }\n    }\n  };\n}();\nconst sphereIntersectTriangle = function() {\n  const closestPointTemp = new Vector3();\n  const projectedPointTemp = new Vector3();\n  const planeTemp = new Plane();\n  const lineTemp = new Line3();\n  return function sphereIntersectTriangle2(sphere, triangle3) {\n    const { radius, center } = sphere;\n    const { a, b, c } = triangle3;\n    lineTemp.start = a;\n    lineTemp.end = b;\n    const closestPoint1 = lineTemp.closestPointToPoint(center, true, closestPointTemp);\n    if (closestPoint1.distanceTo(center) <= radius)\n      return true;\n    lineTemp.start = a;\n    lineTemp.end = c;\n    const closestPoint2 = lineTemp.closestPointToPoint(center, true, closestPointTemp);\n    if (closestPoint2.distanceTo(center) <= radius)\n      return true;\n    lineTemp.start = b;\n    lineTemp.end = c;\n    const closestPoint3 = lineTemp.closestPointToPoint(center, true, closestPointTemp);\n    if (closestPoint3.distanceTo(center) <= radius)\n      return true;\n    const plane = triangle3.getPlane(planeTemp);\n    const dp = Math.abs(plane.distanceToPoint(center));\n    if (dp <= radius) {\n      const pp = plane.projectPoint(center, projectedPointTemp);\n      const cp = triangle3.containsPoint(pp);\n      if (cp)\n        return true;\n    }\n    return false;\n  };\n}();\nconst ZERO_EPSILON = 1e-15;\nfunction isNearZero(value) {\n  return Math.abs(value) < ZERO_EPSILON;\n}\nclass ExtendedTriangle extends Triangle {\n  constructor(...args) {\n    super(...args);\n    this.isExtendedTriangle = true;\n    this.satAxes = new Array(4).fill().map(() => new Vector3());\n    this.satBounds = new Array(4).fill().map(() => new SeparatingAxisBounds());\n    this.points = [this.a, this.b, this.c];\n    this.sphere = new Sphere();\n    this.plane = new Plane();\n    this.needsUpdate = true;\n  }\n  intersectsSphere(sphere) {\n    return sphereIntersectTriangle(sphere, this);\n  }\n  update() {\n    const a = this.a;\n    const b = this.b;\n    const c = this.c;\n    const points = this.points;\n    const satAxes = this.satAxes;\n    const satBounds = this.satBounds;\n    const axis0 = satAxes[0];\n    const sab0 = satBounds[0];\n    this.getNormal(axis0);\n    sab0.setFromPoints(axis0, points);\n    const axis1 = satAxes[1];\n    const sab1 = satBounds[1];\n    axis1.subVectors(a, b);\n    sab1.setFromPoints(axis1, points);\n    const axis2 = satAxes[2];\n    const sab2 = satBounds[2];\n    axis2.subVectors(b, c);\n    sab2.setFromPoints(axis2, points);\n    const axis3 = satAxes[3];\n    const sab3 = satBounds[3];\n    axis3.subVectors(c, a);\n    sab3.setFromPoints(axis3, points);\n    this.sphere.setFromPoints(this.points);\n    this.plane.setFromNormalAndCoplanarPoint(axis0, a);\n    this.needsUpdate = false;\n  }\n}\nExtendedTriangle.prototype.closestPointToSegment = function() {\n  const point1 = new Vector3();\n  const point2 = new Vector3();\n  const edge = new Line3();\n  return function distanceToSegment(segment, target1 = null, target2 = null) {\n    const { start, end } = segment;\n    const points = this.points;\n    let distSq;\n    let closestDistanceSq = Infinity;\n    for (let i = 0; i < 3; i++) {\n      const nexti = (i + 1) % 3;\n      edge.start.copy(points[i]);\n      edge.end.copy(points[nexti]);\n      closestPointsSegmentToSegment(edge, segment, point1, point2);\n      distSq = point1.distanceToSquared(point2);\n      if (distSq < closestDistanceSq) {\n        closestDistanceSq = distSq;\n        if (target1)\n          target1.copy(point1);\n        if (target2)\n          target2.copy(point2);\n      }\n    }\n    this.closestPointToPoint(start, point1);\n    distSq = start.distanceToSquared(point1);\n    if (distSq < closestDistanceSq) {\n      closestDistanceSq = distSq;\n      if (target1)\n        target1.copy(point1);\n      if (target2)\n        target2.copy(start);\n    }\n    this.closestPointToPoint(end, point1);\n    distSq = end.distanceToSquared(point1);\n    if (distSq < closestDistanceSq) {\n      closestDistanceSq = distSq;\n      if (target1)\n        target1.copy(point1);\n      if (target2)\n        target2.copy(end);\n    }\n    return Math.sqrt(closestDistanceSq);\n  };\n}();\nExtendedTriangle.prototype.intersectsTriangle = function() {\n  const saTri2 = new ExtendedTriangle();\n  const arr1 = new Array(3);\n  const arr2 = new Array(3);\n  const cachedSatBounds = new SeparatingAxisBounds();\n  const cachedSatBounds2 = new SeparatingAxisBounds();\n  const cachedAxis = new Vector3();\n  const dir = new Vector3();\n  const dir1 = new Vector3();\n  const dir2 = new Vector3();\n  const tempDir = new Vector3();\n  const edge = new Line3();\n  const edge1 = new Line3();\n  const edge2 = new Line3();\n  const tempPoint = new Vector3();\n  function triIntersectPlane(tri, plane, targetEdge) {\n    const points = tri.points;\n    let count = 0;\n    let startPointIntersection = -1;\n    for (let i = 0; i < 3; i++) {\n      const { start, end } = edge;\n      start.copy(points[i]);\n      end.copy(points[(i + 1) % 3]);\n      edge.delta(dir);\n      const startIntersects = isNearZero(plane.distanceToPoint(start));\n      if (isNearZero(plane.normal.dot(dir)) && startIntersects) {\n        targetEdge.copy(edge);\n        count = 2;\n        break;\n      }\n      const doesIntersect = plane.intersectLine(edge, tempPoint);\n      if (!doesIntersect && startIntersects) {\n        tempPoint.copy(start);\n      }\n      if ((doesIntersect || startIntersects) && !isNearZero(tempPoint.distanceTo(end))) {\n        if (count <= 1) {\n          const point = count === 1 ? targetEdge.start : targetEdge.end;\n          point.copy(tempPoint);\n          if (startIntersects) {\n            startPointIntersection = count;\n          }\n        } else if (count >= 2) {\n          const point = startPointIntersection === 1 ? targetEdge.start : targetEdge.end;\n          point.copy(tempPoint);\n          count = 2;\n          break;\n        }\n        count++;\n        if (count === 2 && startPointIntersection === -1) {\n          break;\n        }\n      }\n    }\n    return count;\n  }\n  return function intersectsTriangle(other, target = null, suppressLog = false) {\n    if (this.needsUpdate) {\n      this.update();\n    }\n    if (!other.isExtendedTriangle) {\n      saTri2.copy(other);\n      saTri2.update();\n      other = saTri2;\n    } else if (other.needsUpdate) {\n      other.update();\n    }\n    const plane1 = this.plane;\n    const plane2 = other.plane;\n    if (Math.abs(plane1.normal.dot(plane2.normal)) > 1 - 1e-10) {\n      const satBounds1 = this.satBounds;\n      const satAxes1 = this.satAxes;\n      arr2[0] = other.a;\n      arr2[1] = other.b;\n      arr2[2] = other.c;\n      for (let i = 0; i < 4; i++) {\n        const sb = satBounds1[i];\n        const sa = satAxes1[i];\n        cachedSatBounds.setFromPoints(sa, arr2);\n        if (sb.isSeparated(cachedSatBounds))\n          return false;\n      }\n      const satBounds2 = other.satBounds;\n      const satAxes2 = other.satAxes;\n      arr1[0] = this.a;\n      arr1[1] = this.b;\n      arr1[2] = this.c;\n      for (let i = 0; i < 4; i++) {\n        const sb = satBounds2[i];\n        const sa = satAxes2[i];\n        cachedSatBounds.setFromPoints(sa, arr1);\n        if (sb.isSeparated(cachedSatBounds))\n          return false;\n      }\n      for (let i = 0; i < 4; i++) {\n        const sa1 = satAxes1[i];\n        for (let i2 = 0; i2 < 4; i2++) {\n          const sa2 = satAxes2[i2];\n          cachedAxis.crossVectors(sa1, sa2);\n          cachedSatBounds.setFromPoints(cachedAxis, arr1);\n          cachedSatBounds2.setFromPoints(cachedAxis, arr2);\n          if (cachedSatBounds.isSeparated(cachedSatBounds2))\n            return false;\n        }\n      }\n      if (target) {\n        if (!suppressLog) {\n          console.warn(\"ExtendedTriangle.intersectsTriangle: Triangles are coplanar which does not support an output edge. Setting edge to 0, 0, 0.\");\n        }\n        target.start.set(0, 0, 0);\n        target.end.set(0, 0, 0);\n      }\n      return true;\n    } else {\n      const count1 = triIntersectPlane(this, plane2, edge1);\n      if (count1 === 1 && other.containsPoint(edge1.end)) {\n        if (target) {\n          target.start.copy(edge1.end);\n          target.end.copy(edge1.end);\n        }\n        return true;\n      } else if (count1 !== 2) {\n        return false;\n      }\n      const count2 = triIntersectPlane(other, plane1, edge2);\n      if (count2 === 1 && this.containsPoint(edge2.end)) {\n        if (target) {\n          target.start.copy(edge2.end);\n          target.end.copy(edge2.end);\n        }\n        return true;\n      } else if (count2 !== 2) {\n        return false;\n      }\n      edge1.delta(dir1);\n      edge2.delta(dir2);\n      if (dir1.dot(dir2) < 0) {\n        let tmp = edge2.start;\n        edge2.start = edge2.end;\n        edge2.end = tmp;\n      }\n      const s1 = edge1.start.dot(dir1);\n      const e1 = edge1.end.dot(dir1);\n      const s2 = edge2.start.dot(dir1);\n      const e2 = edge2.end.dot(dir1);\n      const separated1 = e1 < s2;\n      const separated2 = s1 < e2;\n      if (s1 !== e2 && s2 !== e1 && separated1 === separated2) {\n        return false;\n      }\n      if (target) {\n        tempDir.subVectors(edge1.start, edge2.start);\n        if (tempDir.dot(dir1) > 0) {\n          target.start.copy(edge1.start);\n        } else {\n          target.start.copy(edge2.start);\n        }\n        tempDir.subVectors(edge1.end, edge2.end);\n        if (tempDir.dot(dir1) < 0) {\n          target.end.copy(edge1.end);\n        } else {\n          target.end.copy(edge2.end);\n        }\n      }\n      return true;\n    }\n  };\n}();\nExtendedTriangle.prototype.distanceToPoint = function() {\n  const target = new Vector3();\n  return function distanceToPoint(point) {\n    this.closestPointToPoint(point, target);\n    return point.distanceTo(target);\n  };\n}();\nExtendedTriangle.prototype.distanceToTriangle = function() {\n  const point = new Vector3();\n  const point2 = new Vector3();\n  const cornerFields = [\"a\", \"b\", \"c\"];\n  const line1 = new Line3();\n  const line2 = new Line3();\n  return function distanceToTriangle(other, target1 = null, target2 = null) {\n    const lineTarget = target1 || target2 ? line1 : null;\n    if (this.intersectsTriangle(other, lineTarget)) {\n      if (target1 || target2) {\n        if (target1)\n          lineTarget.getCenter(target1);\n        if (target2)\n          lineTarget.getCenter(target2);\n      }\n      return 0;\n    }\n    let closestDistanceSq = Infinity;\n    for (let i = 0; i < 3; i++) {\n      let dist;\n      const field = cornerFields[i];\n      const otherVec = other[field];\n      this.closestPointToPoint(otherVec, point);\n      dist = otherVec.distanceToSquared(point);\n      if (dist < closestDistanceSq) {\n        closestDistanceSq = dist;\n        if (target1)\n          target1.copy(point);\n        if (target2)\n          target2.copy(otherVec);\n      }\n      const thisVec = this[field];\n      other.closestPointToPoint(thisVec, point);\n      dist = thisVec.distanceToSquared(point);\n      if (dist < closestDistanceSq) {\n        closestDistanceSq = dist;\n        if (target1)\n          target1.copy(thisVec);\n        if (target2)\n          target2.copy(point);\n      }\n    }\n    for (let i = 0; i < 3; i++) {\n      const f11 = cornerFields[i];\n      const f12 = cornerFields[(i + 1) % 3];\n      line1.set(this[f11], this[f12]);\n      for (let i2 = 0; i2 < 3; i2++) {\n        const f21 = cornerFields[i2];\n        const f22 = cornerFields[(i2 + 1) % 3];\n        line2.set(other[f21], other[f22]);\n        closestPointsSegmentToSegment(line1, line2, point, point2);\n        const dist = point.distanceToSquared(point2);\n        if (dist < closestDistanceSq) {\n          closestDistanceSq = dist;\n          if (target1)\n            target1.copy(point);\n          if (target2)\n            target2.copy(point2);\n        }\n      }\n    }\n    return Math.sqrt(closestDistanceSq);\n  };\n}();\nclass OrientedBox {\n  constructor(min, max, matrix) {\n    this.isOrientedBox = true;\n    this.min = new Vector3();\n    this.max = new Vector3();\n    this.matrix = new Matrix4();\n    this.invMatrix = new Matrix4();\n    this.points = new Array(8).fill().map(() => new Vector3());\n    this.satAxes = new Array(3).fill().map(() => new Vector3());\n    this.satBounds = new Array(3).fill().map(() => new SeparatingAxisBounds());\n    this.alignedSatBounds = new Array(3).fill().map(() => new SeparatingAxisBounds());\n    this.needsUpdate = false;\n    if (min)\n      this.min.copy(min);\n    if (max)\n      this.max.copy(max);\n    if (matrix)\n      this.matrix.copy(matrix);\n  }\n  set(min, max, matrix) {\n    this.min.copy(min);\n    this.max.copy(max);\n    this.matrix.copy(matrix);\n    this.needsUpdate = true;\n  }\n  copy(other) {\n    this.min.copy(other.min);\n    this.max.copy(other.max);\n    this.matrix.copy(other.matrix);\n    this.needsUpdate = true;\n  }\n}\nOrientedBox.prototype.update = /* @__PURE__ */ function() {\n  return function update() {\n    const matrix = this.matrix;\n    const min = this.min;\n    const max = this.max;\n    const points = this.points;\n    for (let x = 0; x <= 1; x++) {\n      for (let y = 0; y <= 1; y++) {\n        for (let z = 0; z <= 1; z++) {\n          const i = (1 << 0) * x | (1 << 1) * y | (1 << 2) * z;\n          const v = points[i];\n          v.x = x ? max.x : min.x;\n          v.y = y ? max.y : min.y;\n          v.z = z ? max.z : min.z;\n          v.applyMatrix4(matrix);\n        }\n      }\n    }\n    const satBounds = this.satBounds;\n    const satAxes = this.satAxes;\n    const minVec = points[0];\n    for (let i = 0; i < 3; i++) {\n      const axis = satAxes[i];\n      const sb = satBounds[i];\n      const index = 1 << i;\n      const pi = points[index];\n      axis.subVectors(minVec, pi);\n      sb.setFromPoints(axis, points);\n    }\n    const alignedSatBounds = this.alignedSatBounds;\n    alignedSatBounds[0].setFromPointsField(points, \"x\");\n    alignedSatBounds[1].setFromPointsField(points, \"y\");\n    alignedSatBounds[2].setFromPointsField(points, \"z\");\n    this.invMatrix.copy(this.matrix).invert();\n    this.needsUpdate = false;\n  };\n}();\nOrientedBox.prototype.intersectsBox = function() {\n  const aabbBounds = new SeparatingAxisBounds();\n  return function intersectsBox(box) {\n    if (this.needsUpdate) {\n      this.update();\n    }\n    const min = box.min;\n    const max = box.max;\n    const satBounds = this.satBounds;\n    const satAxes = this.satAxes;\n    const alignedSatBounds = this.alignedSatBounds;\n    aabbBounds.min = min.x;\n    aabbBounds.max = max.x;\n    if (alignedSatBounds[0].isSeparated(aabbBounds))\n      return false;\n    aabbBounds.min = min.y;\n    aabbBounds.max = max.y;\n    if (alignedSatBounds[1].isSeparated(aabbBounds))\n      return false;\n    aabbBounds.min = min.z;\n    aabbBounds.max = max.z;\n    if (alignedSatBounds[2].isSeparated(aabbBounds))\n      return false;\n    for (let i = 0; i < 3; i++) {\n      const axis = satAxes[i];\n      const sb = satBounds[i];\n      aabbBounds.setFromBox(axis, box);\n      if (sb.isSeparated(aabbBounds))\n        return false;\n    }\n    return true;\n  };\n}();\nOrientedBox.prototype.intersectsTriangle = function() {\n  const saTri = new ExtendedTriangle();\n  const pointsArr = new Array(3);\n  const cachedSatBounds = new SeparatingAxisBounds();\n  const cachedSatBounds2 = new SeparatingAxisBounds();\n  const cachedAxis = new Vector3();\n  return function intersectsTriangle(triangle3) {\n    if (this.needsUpdate) {\n      this.update();\n    }\n    if (!triangle3.isExtendedTriangle) {\n      saTri.copy(triangle3);\n      saTri.update();\n      triangle3 = saTri;\n    } else if (triangle3.needsUpdate) {\n      triangle3.update();\n    }\n    const satBounds = this.satBounds;\n    const satAxes = this.satAxes;\n    pointsArr[0] = triangle3.a;\n    pointsArr[1] = triangle3.b;\n    pointsArr[2] = triangle3.c;\n    for (let i = 0; i < 3; i++) {\n      const sb = satBounds[i];\n      const sa = satAxes[i];\n      cachedSatBounds.setFromPoints(sa, pointsArr);\n      if (sb.isSeparated(cachedSatBounds))\n        return false;\n    }\n    const triSatBounds = triangle3.satBounds;\n    const triSatAxes = triangle3.satAxes;\n    const points = this.points;\n    for (let i = 0; i < 3; i++) {\n      const sb = triSatBounds[i];\n      const sa = triSatAxes[i];\n      cachedSatBounds.setFromPoints(sa, points);\n      if (sb.isSeparated(cachedSatBounds))\n        return false;\n    }\n    for (let i = 0; i < 3; i++) {\n      const sa1 = satAxes[i];\n      for (let i2 = 0; i2 < 4; i2++) {\n        const sa2 = triSatAxes[i2];\n        cachedAxis.crossVectors(sa1, sa2);\n        cachedSatBounds.setFromPoints(cachedAxis, pointsArr);\n        cachedSatBounds2.setFromPoints(cachedAxis, points);\n        if (cachedSatBounds.isSeparated(cachedSatBounds2))\n          return false;\n      }\n    }\n    return true;\n  };\n}();\nOrientedBox.prototype.closestPointToPoint = /* @__PURE__ */ function() {\n  return function closestPointToPoint2(point, target1) {\n    if (this.needsUpdate) {\n      this.update();\n    }\n    target1.copy(point).applyMatrix4(this.invMatrix).clamp(this.min, this.max).applyMatrix4(this.matrix);\n    return target1;\n  };\n}();\nOrientedBox.prototype.distanceToPoint = function() {\n  const target = new Vector3();\n  return function distanceToPoint(point) {\n    this.closestPointToPoint(point, target);\n    return point.distanceTo(target);\n  };\n}();\nOrientedBox.prototype.distanceToBox = function() {\n  const xyzFields = [\"x\", \"y\", \"z\"];\n  const segments1 = new Array(12).fill().map(() => new Line3());\n  const segments2 = new Array(12).fill().map(() => new Line3());\n  const point1 = new Vector3();\n  const point2 = new Vector3();\n  return function distanceToBox(box, threshold = 0, target1 = null, target2 = null) {\n    if (this.needsUpdate) {\n      this.update();\n    }\n    if (this.intersectsBox(box)) {\n      if (target1 || target2) {\n        box.getCenter(point2);\n        this.closestPointToPoint(point2, point1);\n        box.closestPointToPoint(point1, point2);\n        if (target1)\n          target1.copy(point1);\n        if (target2)\n          target2.copy(point2);\n      }\n      return 0;\n    }\n    const threshold2 = threshold * threshold;\n    const min = box.min;\n    const max = box.max;\n    const points = this.points;\n    let closestDistanceSq = Infinity;\n    for (let i = 0; i < 8; i++) {\n      const p = points[i];\n      point2.copy(p).clamp(min, max);\n      const dist = p.distanceToSquared(point2);\n      if (dist < closestDistanceSq) {\n        closestDistanceSq = dist;\n        if (target1)\n          target1.copy(p);\n        if (target2)\n          target2.copy(point2);\n        if (dist < threshold2)\n          return Math.sqrt(dist);\n      }\n    }\n    let count = 0;\n    for (let i = 0; i < 3; i++) {\n      for (let i1 = 0; i1 <= 1; i1++) {\n        for (let i2 = 0; i2 <= 1; i2++) {\n          const nextIndex = (i + 1) % 3;\n          const nextIndex2 = (i + 2) % 3;\n          const index = i1 << nextIndex | i2 << nextIndex2;\n          const index2 = 1 << i | i1 << nextIndex | i2 << nextIndex2;\n          const p1 = points[index];\n          const p2 = points[index2];\n          const line1 = segments1[count];\n          line1.set(p1, p2);\n          const f1 = xyzFields[i];\n          const f2 = xyzFields[nextIndex];\n          const f3 = xyzFields[nextIndex2];\n          const line2 = segments2[count];\n          const start = line2.start;\n          const end = line2.end;\n          start[f1] = min[f1];\n          start[f2] = i1 ? min[f2] : max[f2];\n          start[f3] = i2 ? min[f3] : max[f2];\n          end[f1] = max[f1];\n          end[f2] = i1 ? min[f2] : max[f2];\n          end[f3] = i2 ? min[f3] : max[f2];\n          count++;\n        }\n      }\n    }\n    for (let x = 0; x <= 1; x++) {\n      for (let y = 0; y <= 1; y++) {\n        for (let z = 0; z <= 1; z++) {\n          point2.x = x ? max.x : min.x;\n          point2.y = y ? max.y : min.y;\n          point2.z = z ? max.z : min.z;\n          this.closestPointToPoint(point2, point1);\n          const dist = point2.distanceToSquared(point1);\n          if (dist < closestDistanceSq) {\n            closestDistanceSq = dist;\n            if (target1)\n              target1.copy(point1);\n            if (target2)\n              target2.copy(point2);\n            if (dist < threshold2)\n              return Math.sqrt(dist);\n          }\n        }\n      }\n    }\n    for (let i = 0; i < 12; i++) {\n      const l1 = segments1[i];\n      for (let i2 = 0; i2 < 12; i2++) {\n        const l2 = segments2[i2];\n        closestPointsSegmentToSegment(l1, l2, point1, point2);\n        const dist = point1.distanceToSquared(point2);\n        if (dist < closestDistanceSq) {\n          closestDistanceSq = dist;\n          if (target1)\n            target1.copy(point1);\n          if (target2)\n            target2.copy(point2);\n          if (dist < threshold2)\n            return Math.sqrt(dist);\n        }\n      }\n    }\n    return Math.sqrt(closestDistanceSq);\n  };\n}();\nclass PrimitivePool {\n  constructor(getNewPrimitive) {\n    this._getNewPrimitive = getNewPrimitive;\n    this._primitives = [];\n  }\n  getPrimitive() {\n    const primitives = this._primitives;\n    if (primitives.length === 0) {\n      return this._getNewPrimitive();\n    } else {\n      return primitives.pop();\n    }\n  }\n  releasePrimitive(primitive) {\n    this._primitives.push(primitive);\n  }\n}\nclass ExtendedTrianglePoolBase extends PrimitivePool {\n  constructor() {\n    super(() => new ExtendedTriangle());\n  }\n}\nconst ExtendedTrianglePool = /* @__PURE__ */ new ExtendedTrianglePoolBase();\nfunction IS_LEAF(n16, uint16Array) {\n  return uint16Array[n16 + 15] === 65535;\n}\nfunction OFFSET(n32, uint32Array) {\n  return uint32Array[n32 + 6];\n}\nfunction COUNT(n16, uint16Array) {\n  return uint16Array[n16 + 14];\n}\nfunction LEFT_NODE(n32) {\n  return n32 + 8;\n}\nfunction RIGHT_NODE(n32, uint32Array) {\n  return uint32Array[n32 + 6];\n}\nfunction SPLIT_AXIS(n32, uint32Array) {\n  return uint32Array[n32 + 7];\n}\nfunction BOUNDING_DATA_INDEX(n32) {\n  return n32;\n}\nclass _BufferStack {\n  constructor() {\n    this.float32Array = null;\n    this.uint16Array = null;\n    this.uint32Array = null;\n    const stack = [];\n    let prevBuffer = null;\n    this.setBuffer = (buffer) => {\n      if (prevBuffer) {\n        stack.push(prevBuffer);\n      }\n      prevBuffer = buffer;\n      this.float32Array = new Float32Array(buffer);\n      this.uint16Array = new Uint16Array(buffer);\n      this.uint32Array = new Uint32Array(buffer);\n    };\n    this.clearBuffer = () => {\n      prevBuffer = null;\n      this.float32Array = null;\n      this.uint16Array = null;\n      this.uint32Array = null;\n      if (stack.length !== 0) {\n        this.setBuffer(stack.pop());\n      }\n    };\n  }\n}\nconst BufferStack = new _BufferStack();\nlet _box1, _box2;\nconst boxStack = [];\nconst boxPool = /* @__PURE__ */ new PrimitivePool(() => new Box3());\nfunction shapecast(bvh, root, intersectsBounds, intersectsRange, boundsTraverseOrder, byteOffset) {\n  _box1 = boxPool.getPrimitive();\n  _box2 = boxPool.getPrimitive();\n  boxStack.push(_box1, _box2);\n  BufferStack.setBuffer(bvh._roots[root]);\n  const result = shapecastTraverse(0, bvh.geometry, intersectsBounds, intersectsRange, boundsTraverseOrder, byteOffset);\n  BufferStack.clearBuffer();\n  boxPool.releasePrimitive(_box1);\n  boxPool.releasePrimitive(_box2);\n  boxStack.pop();\n  boxStack.pop();\n  const length = boxStack.length;\n  if (length > 0) {\n    _box2 = boxStack[length - 1];\n    _box1 = boxStack[length - 2];\n  }\n  return result;\n}\nfunction shapecastTraverse(nodeIndex32, geometry, intersectsBoundsFunc, intersectsRangeFunc, nodeScoreFunc = null, nodeIndexByteOffset = 0, depth = 0) {\n  const { float32Array, uint16Array, uint32Array } = BufferStack;\n  let nodeIndex16 = nodeIndex32 * 2;\n  const isLeaf = IS_LEAF(nodeIndex16, uint16Array);\n  if (isLeaf) {\n    const offset = OFFSET(nodeIndex32, uint32Array);\n    const count = COUNT(nodeIndex16, uint16Array);\n    arrayToBox(BOUNDING_DATA_INDEX(nodeIndex32), float32Array, _box1);\n    return intersectsRangeFunc(offset, count, false, depth, nodeIndexByteOffset + nodeIndex32, _box1);\n  } else {\n    let getLeftOffset = function(nodeIndex322) {\n      const { uint16Array: uint16Array2, uint32Array: uint32Array2 } = BufferStack;\n      let nodeIndex162 = nodeIndex322 * 2;\n      while (!IS_LEAF(nodeIndex162, uint16Array2)) {\n        nodeIndex322 = LEFT_NODE(nodeIndex322);\n        nodeIndex162 = nodeIndex322 * 2;\n      }\n      return OFFSET(nodeIndex322, uint32Array2);\n    }, getRightEndOffset = function(nodeIndex322) {\n      const { uint16Array: uint16Array2, uint32Array: uint32Array2 } = BufferStack;\n      let nodeIndex162 = nodeIndex322 * 2;\n      while (!IS_LEAF(nodeIndex162, uint16Array2)) {\n        nodeIndex322 = RIGHT_NODE(nodeIndex322, uint32Array2);\n        nodeIndex162 = nodeIndex322 * 2;\n      }\n      return OFFSET(nodeIndex322, uint32Array2) + COUNT(nodeIndex162, uint16Array2);\n    };\n    const left = LEFT_NODE(nodeIndex32);\n    const right = RIGHT_NODE(nodeIndex32, uint32Array);\n    let c1 = left;\n    let c2 = right;\n    let score1, score2;\n    let box1, box2;\n    if (nodeScoreFunc) {\n      box1 = _box1;\n      box2 = _box2;\n      arrayToBox(BOUNDING_DATA_INDEX(c1), float32Array, box1);\n      arrayToBox(BOUNDING_DATA_INDEX(c2), float32Array, box2);\n      score1 = nodeScoreFunc(box1);\n      score2 = nodeScoreFunc(box2);\n      if (score2 < score1) {\n        c1 = right;\n        c2 = left;\n        const temp5 = score1;\n        score1 = score2;\n        score2 = temp5;\n        box1 = box2;\n      }\n    }\n    if (!box1) {\n      box1 = _box1;\n      arrayToBox(BOUNDING_DATA_INDEX(c1), float32Array, box1);\n    }\n    const isC1Leaf = IS_LEAF(c1 * 2, uint16Array);\n    const c1Intersection = intersectsBoundsFunc(box1, isC1Leaf, score1, depth + 1, nodeIndexByteOffset + c1);\n    let c1StopTraversal;\n    if (c1Intersection === CONTAINED) {\n      const offset = getLeftOffset(c1);\n      const end = getRightEndOffset(c1);\n      const count = end - offset;\n      c1StopTraversal = intersectsRangeFunc(offset, count, true, depth + 1, nodeIndexByteOffset + c1, box1);\n    } else {\n      c1StopTraversal = c1Intersection && shapecastTraverse(\n        c1,\n        geometry,\n        intersectsBoundsFunc,\n        intersectsRangeFunc,\n        nodeScoreFunc,\n        nodeIndexByteOffset,\n        depth + 1\n      );\n    }\n    if (c1StopTraversal)\n      return true;\n    box2 = _box2;\n    arrayToBox(BOUNDING_DATA_INDEX(c2), float32Array, box2);\n    const isC2Leaf = IS_LEAF(c2 * 2, uint16Array);\n    const c2Intersection = intersectsBoundsFunc(box2, isC2Leaf, score2, depth + 1, nodeIndexByteOffset + c2);\n    let c2StopTraversal;\n    if (c2Intersection === CONTAINED) {\n      const offset = getLeftOffset(c2);\n      const end = getRightEndOffset(c2);\n      const count = end - offset;\n      c2StopTraversal = intersectsRangeFunc(offset, count, true, depth + 1, nodeIndexByteOffset + c2, box2);\n    } else {\n      c2StopTraversal = c2Intersection && shapecastTraverse(\n        c2,\n        geometry,\n        intersectsBoundsFunc,\n        intersectsRangeFunc,\n        nodeScoreFunc,\n        nodeIndexByteOffset,\n        depth + 1\n      );\n    }\n    if (c2StopTraversal)\n      return true;\n    return false;\n  }\n}\nconst temp = /* @__PURE__ */ new Vector3();\nconst temp1$2 = /* @__PURE__ */ new Vector3();\nfunction closestPointToPoint(bvh, point, target = {}, minThreshold = 0, maxThreshold = Infinity) {\n  const minThresholdSq = minThreshold * minThreshold;\n  const maxThresholdSq = maxThreshold * maxThreshold;\n  let closestDistanceSq = Infinity;\n  let closestDistanceTriIndex = null;\n  bvh.shapecast(\n    {\n      boundsTraverseOrder: (box) => {\n        temp.copy(point).clamp(box.min, box.max);\n        return temp.distanceToSquared(point);\n      },\n      intersectsBounds: (box, isLeaf, score) => {\n        return score < closestDistanceSq && score < maxThresholdSq;\n      },\n      intersectsTriangle: (tri, triIndex) => {\n        tri.closestPointToPoint(point, temp);\n        const distSq = point.distanceToSquared(temp);\n        if (distSq < closestDistanceSq) {\n          temp1$2.copy(temp);\n          closestDistanceSq = distSq;\n          closestDistanceTriIndex = triIndex;\n        }\n        if (distSq < minThresholdSq) {\n          return true;\n        } else {\n          return false;\n        }\n      }\n    }\n  );\n  if (closestDistanceSq === Infinity)\n    return null;\n  const closestDistance = Math.sqrt(closestDistanceSq);\n  if (!target.point)\n    target.point = temp1$2.clone();\n  else\n    target.point.copy(temp1$2);\n  target.distance = closestDistance, target.faceIndex = closestDistanceTriIndex;\n  return target;\n}\nconst _vA = /* @__PURE__ */ new Vector3();\nconst _vB = /* @__PURE__ */ new Vector3();\nconst _vC = /* @__PURE__ */ new Vector3();\nconst _uvA = /* @__PURE__ */ new Vector2();\nconst _uvB = /* @__PURE__ */ new Vector2();\nconst _uvC = /* @__PURE__ */ new Vector2();\nconst _normalA = /* @__PURE__ */ new Vector3();\nconst _normalB = /* @__PURE__ */ new Vector3();\nconst _normalC = /* @__PURE__ */ new Vector3();\nconst _intersectionPoint = /* @__PURE__ */ new Vector3();\nfunction checkIntersection(ray2, pA, pB, pC, point, side) {\n  let intersect;\n  if (side === BackSide) {\n    intersect = ray2.intersectTriangle(pC, pB, pA, true, point);\n  } else {\n    intersect = ray2.intersectTriangle(pA, pB, pC, side !== DoubleSide, point);\n  }\n  if (intersect === null)\n    return null;\n  const distance = ray2.origin.distanceTo(point);\n  return {\n    distance,\n    point: point.clone()\n  };\n}\nfunction checkBufferGeometryIntersection(ray2, position, normal, uv, uv1, a, b, c, side) {\n  _vA.fromBufferAttribute(position, a);\n  _vB.fromBufferAttribute(position, b);\n  _vC.fromBufferAttribute(position, c);\n  const intersection = checkIntersection(ray2, _vA, _vB, _vC, _intersectionPoint, side);\n  if (intersection) {\n    if (uv) {\n      _uvA.fromBufferAttribute(uv, a);\n      _uvB.fromBufferAttribute(uv, b);\n      _uvC.fromBufferAttribute(uv, c);\n      intersection.uv = Triangle.getInterpolation(_intersectionPoint, _vA, _vB, _vC, _uvA, _uvB, _uvC, new Vector2());\n    }\n    if (uv1) {\n      _uvA.fromBufferAttribute(uv1, a);\n      _uvB.fromBufferAttribute(uv1, b);\n      _uvC.fromBufferAttribute(uv1, c);\n      intersection.uv1 = Triangle.getInterpolation(_intersectionPoint, _vA, _vB, _vC, _uvA, _uvB, _uvC, new Vector2());\n    }\n    if (normal) {\n      _normalA.fromBufferAttribute(normal, a);\n      _normalB.fromBufferAttribute(normal, b);\n      _normalC.fromBufferAttribute(normal, c);\n      intersection.normal = Triangle.getInterpolation(_intersectionPoint, _vA, _vB, _vC, _normalA, _normalB, _normalC, new Vector3());\n      if (intersection.normal.dot(ray2.direction) > 0) {\n        intersection.normal.multiplyScalar(-1);\n      }\n    }\n    const face = {\n      a,\n      b,\n      c,\n      normal: new Vector3(),\n      materialIndex: 0\n    };\n    Triangle.getNormal(_vA, _vB, _vC, face.normal);\n    intersection.face = face;\n    intersection.faceIndex = a;\n  }\n  return intersection;\n}\nfunction intersectTri(geo, side, ray2, tri, intersections) {\n  const triOffset = tri * 3;\n  let a = triOffset + 0;\n  let b = triOffset + 1;\n  let c = triOffset + 2;\n  const index = geo.index;\n  if (geo.index) {\n    a = index.getX(a);\n    b = index.getX(b);\n    c = index.getX(c);\n  }\n  const { position, normal, uv, uv1 } = geo.attributes;\n  const intersection = checkBufferGeometryIntersection(ray2, position, normal, uv, uv1, a, b, c, side);\n  if (intersection) {\n    intersection.faceIndex = tri;\n    if (intersections)\n      intersections.push(intersection);\n    return intersection;\n  }\n  return null;\n}\nfunction setTriangle(tri, i, index, pos) {\n  const ta = tri.a;\n  const tb = tri.b;\n  const tc = tri.c;\n  let i0 = i;\n  let i1 = i + 1;\n  let i2 = i + 2;\n  if (index) {\n    i0 = index.getX(i0);\n    i1 = index.getX(i1);\n    i2 = index.getX(i2);\n  }\n  ta.x = pos.getX(i0);\n  ta.y = pos.getY(i0);\n  ta.z = pos.getZ(i0);\n  tb.x = pos.getX(i1);\n  tb.y = pos.getY(i1);\n  tb.z = pos.getZ(i1);\n  tc.x = pos.getX(i2);\n  tc.y = pos.getY(i2);\n  tc.z = pos.getZ(i2);\n}\nfunction intersectTris(bvh, side, ray2, offset, count, intersections) {\n  const { geometry, _indirectBuffer } = bvh;\n  for (let i = offset, end = offset + count; i < end; i++) {\n    intersectTri(geometry, side, ray2, i, intersections);\n  }\n}\nfunction intersectClosestTri(bvh, side, ray2, offset, count) {\n  const { geometry, _indirectBuffer } = bvh;\n  let dist = Infinity;\n  let res = null;\n  for (let i = offset, end = offset + count; i < end; i++) {\n    let intersection;\n    intersection = intersectTri(geometry, side, ray2, i);\n    if (intersection && intersection.distance < dist) {\n      res = intersection;\n      dist = intersection.distance;\n    }\n  }\n  return res;\n}\nfunction iterateOverTriangles(offset, count, bvh, intersectsTriangleFunc, contained, depth, triangle3) {\n  const { geometry } = bvh;\n  const { index } = geometry;\n  const pos = geometry.attributes.position;\n  for (let i = offset, l = count + offset; i < l; i++) {\n    let tri;\n    tri = i;\n    setTriangle(triangle3, tri * 3, index, pos);\n    triangle3.needsUpdate = true;\n    if (intersectsTriangleFunc(triangle3, tri, contained, depth)) {\n      return true;\n    }\n  }\n  return false;\n}\nfunction refit(bvh, nodeIndices = null) {\n  if (nodeIndices && Array.isArray(nodeIndices)) {\n    nodeIndices = new Set(nodeIndices);\n  }\n  const geometry = bvh.geometry;\n  const indexArr = geometry.index ? geometry.index.array : null;\n  const posAttr = geometry.attributes.position;\n  let buffer, uint32Array, uint16Array, float32Array;\n  let byteOffset = 0;\n  const roots = bvh._roots;\n  for (let i = 0, l = roots.length; i < l; i++) {\n    buffer = roots[i];\n    uint32Array = new Uint32Array(buffer);\n    uint16Array = new Uint16Array(buffer);\n    float32Array = new Float32Array(buffer);\n    _traverse2(0, byteOffset);\n    byteOffset += buffer.byteLength;\n  }\n  function _traverse2(node32Index, byteOffset2, force = false) {\n    const node16Index = node32Index * 2;\n    const isLeaf = uint16Array[node16Index + 15] === IS_LEAFNODE_FLAG;\n    if (isLeaf) {\n      const offset = uint32Array[node32Index + 6];\n      const count = uint16Array[node16Index + 14];\n      let minx = Infinity;\n      let miny = Infinity;\n      let minz = Infinity;\n      let maxx = -Infinity;\n      let maxy = -Infinity;\n      let maxz = -Infinity;\n      for (let i = 3 * offset, l = 3 * (offset + count); i < l; i++) {\n        let index = indexArr[i];\n        const x = posAttr.getX(index);\n        const y = posAttr.getY(index);\n        const z = posAttr.getZ(index);\n        if (x < minx)\n          minx = x;\n        if (x > maxx)\n          maxx = x;\n        if (y < miny)\n          miny = y;\n        if (y > maxy)\n          maxy = y;\n        if (z < minz)\n          minz = z;\n        if (z > maxz)\n          maxz = z;\n      }\n      if (float32Array[node32Index + 0] !== minx || float32Array[node32Index + 1] !== miny || float32Array[node32Index + 2] !== minz || float32Array[node32Index + 3] !== maxx || float32Array[node32Index + 4] !== maxy || float32Array[node32Index + 5] !== maxz) {\n        float32Array[node32Index + 0] = minx;\n        float32Array[node32Index + 1] = miny;\n        float32Array[node32Index + 2] = minz;\n        float32Array[node32Index + 3] = maxx;\n        float32Array[node32Index + 4] = maxy;\n        float32Array[node32Index + 5] = maxz;\n        return true;\n      } else {\n        return false;\n      }\n    } else {\n      const left = node32Index + 8;\n      const right = uint32Array[node32Index + 6];\n      const offsetLeft = left + byteOffset2;\n      const offsetRight = right + byteOffset2;\n      let forceChildren = force;\n      let includesLeft = false;\n      let includesRight = false;\n      if (nodeIndices) {\n        if (!forceChildren) {\n          includesLeft = nodeIndices.has(offsetLeft);\n          includesRight = nodeIndices.has(offsetRight);\n          forceChildren = !includesLeft && !includesRight;\n        }\n      } else {\n        includesLeft = true;\n        includesRight = true;\n      }\n      const traverseLeft = forceChildren || includesLeft;\n      const traverseRight = forceChildren || includesRight;\n      let leftChange = false;\n      if (traverseLeft) {\n        leftChange = _traverse2(left, byteOffset2, forceChildren);\n      }\n      let rightChange = false;\n      if (traverseRight) {\n        rightChange = _traverse2(right, byteOffset2, forceChildren);\n      }\n      const didChange = leftChange || rightChange;\n      if (didChange) {\n        for (let i = 0; i < 3; i++) {\n          const lefti = left + i;\n          const righti = right + i;\n          const minLeftValue = float32Array[lefti];\n          const maxLeftValue = float32Array[lefti + 3];\n          const minRightValue = float32Array[righti];\n          const maxRightValue = float32Array[righti + 3];\n          float32Array[node32Index + i] = minLeftValue < minRightValue ? minLeftValue : minRightValue;\n          float32Array[node32Index + i + 3] = maxLeftValue > maxRightValue ? maxLeftValue : maxRightValue;\n        }\n      }\n      return didChange;\n    }\n  }\n}\nconst _boundingBox = /* @__PURE__ */ new Box3();\nfunction intersectRay(nodeIndex32, array, ray2, target) {\n  arrayToBox(nodeIndex32, array, _boundingBox);\n  return ray2.intersectBox(_boundingBox, target);\n}\nfunction intersectTris_indirect(bvh, side, ray2, offset, count, intersections) {\n  const { geometry, _indirectBuffer } = bvh;\n  for (let i = offset, end = offset + count; i < end; i++) {\n    let vi = _indirectBuffer ? _indirectBuffer[i] : i;\n    intersectTri(geometry, side, ray2, vi, intersections);\n  }\n}\nfunction intersectClosestTri_indirect(bvh, side, ray2, offset, count) {\n  const { geometry, _indirectBuffer } = bvh;\n  let dist = Infinity;\n  let res = null;\n  for (let i = offset, end = offset + count; i < end; i++) {\n    let intersection;\n    intersection = intersectTri(geometry, side, ray2, _indirectBuffer ? _indirectBuffer[i] : i);\n    if (intersection && intersection.distance < dist) {\n      res = intersection;\n      dist = intersection.distance;\n    }\n  }\n  return res;\n}\nfunction iterateOverTriangles_indirect(offset, count, bvh, intersectsTriangleFunc, contained, depth, triangle3) {\n  const { geometry } = bvh;\n  const { index } = geometry;\n  const pos = geometry.attributes.position;\n  for (let i = offset, l = count + offset; i < l; i++) {\n    let tri;\n    tri = bvh.resolveTriangleIndex(i);\n    setTriangle(triangle3, tri * 3, index, pos);\n    triangle3.needsUpdate = true;\n    if (intersectsTriangleFunc(triangle3, tri, contained, depth)) {\n      return true;\n    }\n  }\n  return false;\n}\nconst _boxIntersection$3 = /* @__PURE__ */ new Vector3();\nfunction raycast(bvh, root, side, ray2, intersects) {\n  BufferStack.setBuffer(bvh._roots[root]);\n  _raycast$1(0, bvh, side, ray2, intersects);\n  BufferStack.clearBuffer();\n}\nfunction _raycast$1(nodeIndex32, bvh, side, ray2, intersects) {\n  const { float32Array, uint16Array, uint32Array } = BufferStack;\n  const nodeIndex16 = nodeIndex32 * 2;\n  const isLeaf = IS_LEAF(nodeIndex16, uint16Array);\n  if (isLeaf) {\n    const offset = OFFSET(nodeIndex32, uint32Array);\n    const count = COUNT(nodeIndex16, uint16Array);\n    intersectTris(bvh, side, ray2, offset, count, intersects);\n  } else {\n    const leftIndex = LEFT_NODE(nodeIndex32);\n    if (intersectRay(leftIndex, float32Array, ray2, _boxIntersection$3)) {\n      _raycast$1(leftIndex, bvh, side, ray2, intersects);\n    }\n    const rightIndex = RIGHT_NODE(nodeIndex32, uint32Array);\n    if (intersectRay(rightIndex, float32Array, ray2, _boxIntersection$3)) {\n      _raycast$1(rightIndex, bvh, side, ray2, intersects);\n    }\n  }\n}\nconst _boxIntersection$2 = /* @__PURE__ */ new Vector3();\nconst _xyzFields$1 = [\"x\", \"y\", \"z\"];\nfunction raycastFirst(bvh, root, side, ray2) {\n  BufferStack.setBuffer(bvh._roots[root]);\n  const result = _raycastFirst$1(0, bvh, side, ray2);\n  BufferStack.clearBuffer();\n  return result;\n}\nfunction _raycastFirst$1(nodeIndex32, bvh, side, ray2) {\n  const { float32Array, uint16Array, uint32Array } = BufferStack;\n  let nodeIndex16 = nodeIndex32 * 2;\n  const isLeaf = IS_LEAF(nodeIndex16, uint16Array);\n  if (isLeaf) {\n    const offset = OFFSET(nodeIndex32, uint32Array);\n    const count = COUNT(nodeIndex16, uint16Array);\n    return intersectClosestTri(bvh, side, ray2, offset, count);\n  } else {\n    const splitAxis = SPLIT_AXIS(nodeIndex32, uint32Array);\n    const xyzAxis = _xyzFields$1[splitAxis];\n    const rayDir = ray2.direction[xyzAxis];\n    const leftToRight = rayDir >= 0;\n    let c1, c2;\n    if (leftToRight) {\n      c1 = LEFT_NODE(nodeIndex32);\n      c2 = RIGHT_NODE(nodeIndex32, uint32Array);\n    } else {\n      c1 = RIGHT_NODE(nodeIndex32, uint32Array);\n      c2 = LEFT_NODE(nodeIndex32);\n    }\n    const c1Intersection = intersectRay(c1, float32Array, ray2, _boxIntersection$2);\n    const c1Result = c1Intersection ? _raycastFirst$1(c1, bvh, side, ray2) : null;\n    if (c1Result) {\n      const point = c1Result.point[xyzAxis];\n      const isOutside = leftToRight ? point <= float32Array[c2 + splitAxis] : (\n        // min bounding data\n        point >= float32Array[c2 + splitAxis + 3]\n      );\n      if (isOutside) {\n        return c1Result;\n      }\n    }\n    const c2Intersection = intersectRay(c2, float32Array, ray2, _boxIntersection$2);\n    const c2Result = c2Intersection ? _raycastFirst$1(c2, bvh, side, ray2) : null;\n    if (c1Result && c2Result) {\n      return c1Result.distance <= c2Result.distance ? c1Result : c2Result;\n    } else {\n      return c1Result || c2Result || null;\n    }\n  }\n}\nconst boundingBox$1 = /* @__PURE__ */ new Box3();\nconst triangle$1 = /* @__PURE__ */ new ExtendedTriangle();\nconst triangle2$1 = /* @__PURE__ */ new ExtendedTriangle();\nconst invertedMat$1 = /* @__PURE__ */ new Matrix4();\nconst obb$4 = /* @__PURE__ */ new OrientedBox();\nconst obb2$3 = /* @__PURE__ */ new OrientedBox();\nfunction intersectsGeometry(bvh, root, otherGeometry, geometryToBvh) {\n  BufferStack.setBuffer(bvh._roots[root]);\n  const result = _intersectsGeometry$1(0, bvh, otherGeometry, geometryToBvh);\n  BufferStack.clearBuffer();\n  return result;\n}\nfunction _intersectsGeometry$1(nodeIndex32, bvh, otherGeometry, geometryToBvh, cachedObb = null) {\n  const { float32Array, uint16Array, uint32Array } = BufferStack;\n  let nodeIndex16 = nodeIndex32 * 2;\n  if (cachedObb === null) {\n    if (!otherGeometry.boundingBox) {\n      otherGeometry.computeBoundingBox();\n    }\n    obb$4.set(otherGeometry.boundingBox.min, otherGeometry.boundingBox.max, geometryToBvh);\n    cachedObb = obb$4;\n  }\n  const isLeaf = IS_LEAF(nodeIndex16, uint16Array);\n  if (isLeaf) {\n    const thisGeometry = bvh.geometry;\n    const thisIndex = thisGeometry.index;\n    const thisPos = thisGeometry.attributes.position;\n    const index = otherGeometry.index;\n    const pos = otherGeometry.attributes.position;\n    const offset = OFFSET(nodeIndex32, uint32Array);\n    const count = COUNT(nodeIndex16, uint16Array);\n    invertedMat$1.copy(geometryToBvh).invert();\n    if (otherGeometry.boundsTree) {\n      arrayToBox(BOUNDING_DATA_INDEX(nodeIndex32), float32Array, obb2$3);\n      obb2$3.matrix.copy(invertedMat$1);\n      obb2$3.needsUpdate = true;\n      const res = otherGeometry.boundsTree.shapecast({\n        intersectsBounds: (box) => obb2$3.intersectsBox(box),\n        intersectsTriangle: (tri) => {\n          tri.a.applyMatrix4(geometryToBvh);\n          tri.b.applyMatrix4(geometryToBvh);\n          tri.c.applyMatrix4(geometryToBvh);\n          tri.needsUpdate = true;\n          for (let i = offset * 3, l = (count + offset) * 3; i < l; i += 3) {\n            setTriangle(triangle2$1, i, thisIndex, thisPos);\n            triangle2$1.needsUpdate = true;\n            if (tri.intersectsTriangle(triangle2$1)) {\n              return true;\n            }\n          }\n          return false;\n        }\n      });\n      return res;\n    } else {\n      for (let i = offset * 3, l = (count + offset) * 3; i < l; i += 3) {\n        setTriangle(triangle$1, i, thisIndex, thisPos);\n        triangle$1.a.applyMatrix4(invertedMat$1);\n        triangle$1.b.applyMatrix4(invertedMat$1);\n        triangle$1.c.applyMatrix4(invertedMat$1);\n        triangle$1.needsUpdate = true;\n        for (let i2 = 0, l2 = index.count; i2 < l2; i2 += 3) {\n          setTriangle(triangle2$1, i2, index, pos);\n          triangle2$1.needsUpdate = true;\n          if (triangle$1.intersectsTriangle(triangle2$1)) {\n            return true;\n          }\n        }\n      }\n    }\n  } else {\n    const left = nodeIndex32 + 8;\n    const right = uint32Array[nodeIndex32 + 6];\n    arrayToBox(BOUNDING_DATA_INDEX(left), float32Array, boundingBox$1);\n    const leftIntersection = cachedObb.intersectsBox(boundingBox$1) && _intersectsGeometry$1(left, bvh, otherGeometry, geometryToBvh, cachedObb);\n    if (leftIntersection)\n      return true;\n    arrayToBox(BOUNDING_DATA_INDEX(right), float32Array, boundingBox$1);\n    const rightIntersection = cachedObb.intersectsBox(boundingBox$1) && _intersectsGeometry$1(right, bvh, otherGeometry, geometryToBvh, cachedObb);\n    if (rightIntersection)\n      return true;\n    return false;\n  }\n}\nconst tempMatrix$1 = /* @__PURE__ */ new Matrix4();\nconst obb$3 = /* @__PURE__ */ new OrientedBox();\nconst obb2$2 = /* @__PURE__ */ new OrientedBox();\nconst temp1$1 = /* @__PURE__ */ new Vector3();\nconst temp2$1 = /* @__PURE__ */ new Vector3();\nconst temp3$1 = /* @__PURE__ */ new Vector3();\nconst temp4$1 = /* @__PURE__ */ new Vector3();\nfunction closestPointToGeometry(bvh, otherGeometry, geometryToBvh, target1 = {}, target2 = {}, minThreshold = 0, maxThreshold = Infinity) {\n  if (!otherGeometry.boundingBox) {\n    otherGeometry.computeBoundingBox();\n  }\n  obb$3.set(otherGeometry.boundingBox.min, otherGeometry.boundingBox.max, geometryToBvh);\n  obb$3.needsUpdate = true;\n  const geometry = bvh.geometry;\n  const pos = geometry.attributes.position;\n  const index = geometry.index;\n  const otherPos = otherGeometry.attributes.position;\n  const otherIndex = otherGeometry.index;\n  const triangle3 = ExtendedTrianglePool.getPrimitive();\n  const triangle22 = ExtendedTrianglePool.getPrimitive();\n  let tempTarget1 = temp1$1;\n  let tempTargetDest1 = temp2$1;\n  let tempTarget2 = null;\n  let tempTargetDest2 = null;\n  if (target2) {\n    tempTarget2 = temp3$1;\n    tempTargetDest2 = temp4$1;\n  }\n  let closestDistance = Infinity;\n  let closestDistanceTriIndex = null;\n  let closestDistanceOtherTriIndex = null;\n  tempMatrix$1.copy(geometryToBvh).invert();\n  obb2$2.matrix.copy(tempMatrix$1);\n  bvh.shapecast(\n    {\n      boundsTraverseOrder: (box) => {\n        return obb$3.distanceToBox(box);\n      },\n      intersectsBounds: (box, isLeaf, score) => {\n        if (score < closestDistance && score < maxThreshold) {\n          if (isLeaf) {\n            obb2$2.min.copy(box.min);\n            obb2$2.max.copy(box.max);\n            obb2$2.needsUpdate = true;\n          }\n          return true;\n        }\n        return false;\n      },\n      intersectsRange: (offset, count) => {\n        if (otherGeometry.boundsTree) {\n          const otherBvh = otherGeometry.boundsTree;\n          return otherBvh.shapecast({\n            boundsTraverseOrder: (box) => {\n              return obb2$2.distanceToBox(box);\n            },\n            intersectsBounds: (box, isLeaf, score) => {\n              return score < closestDistance && score < maxThreshold;\n            },\n            intersectsRange: (otherOffset, otherCount) => {\n              for (let i2 = otherOffset, l2 = otherOffset + otherCount; i2 < l2; i2++) {\n                setTriangle(triangle22, 3 * i2, otherIndex, otherPos);\n                triangle22.a.applyMatrix4(geometryToBvh);\n                triangle22.b.applyMatrix4(geometryToBvh);\n                triangle22.c.applyMatrix4(geometryToBvh);\n                triangle22.needsUpdate = true;\n                for (let i = offset, l = offset + count; i < l; i++) {\n                  setTriangle(triangle3, 3 * i, index, pos);\n                  triangle3.needsUpdate = true;\n                  const dist = triangle3.distanceToTriangle(triangle22, tempTarget1, tempTarget2);\n                  if (dist < closestDistance) {\n                    tempTargetDest1.copy(tempTarget1);\n                    if (tempTargetDest2) {\n                      tempTargetDest2.copy(tempTarget2);\n                    }\n                    closestDistance = dist;\n                    closestDistanceTriIndex = i;\n                    closestDistanceOtherTriIndex = i2;\n                  }\n                  if (dist < minThreshold) {\n                    return true;\n                  }\n                }\n              }\n            }\n          });\n        } else {\n          const triCount = getTriCount(otherGeometry);\n          for (let i2 = 0, l2 = triCount; i2 < l2; i2++) {\n            setTriangle(triangle22, 3 * i2, otherIndex, otherPos);\n            triangle22.a.applyMatrix4(geometryToBvh);\n            triangle22.b.applyMatrix4(geometryToBvh);\n            triangle22.c.applyMatrix4(geometryToBvh);\n            triangle22.needsUpdate = true;\n            for (let i = offset, l = offset + count; i < l; i++) {\n              setTriangle(triangle3, 3 * i, index, pos);\n              triangle3.needsUpdate = true;\n              const dist = triangle3.distanceToTriangle(triangle22, tempTarget1, tempTarget2);\n              if (dist < closestDistance) {\n                tempTargetDest1.copy(tempTarget1);\n                if (tempTargetDest2) {\n                  tempTargetDest2.copy(tempTarget2);\n                }\n                closestDistance = dist;\n                closestDistanceTriIndex = i;\n                closestDistanceOtherTriIndex = i2;\n              }\n              if (dist < minThreshold) {\n                return true;\n              }\n            }\n          }\n        }\n      }\n    }\n  );\n  ExtendedTrianglePool.releasePrimitive(triangle3);\n  ExtendedTrianglePool.releasePrimitive(triangle22);\n  if (closestDistance === Infinity) {\n    return null;\n  }\n  if (!target1.point) {\n    target1.point = tempTargetDest1.clone();\n  } else {\n    target1.point.copy(tempTargetDest1);\n  }\n  target1.distance = closestDistance, target1.faceIndex = closestDistanceTriIndex;\n  if (target2) {\n    if (!target2.point)\n      target2.point = tempTargetDest2.clone();\n    else\n      target2.point.copy(tempTargetDest2);\n    target2.point.applyMatrix4(tempMatrix$1);\n    tempTargetDest1.applyMatrix4(tempMatrix$1);\n    target2.distance = tempTargetDest1.sub(target2.point).length();\n    target2.faceIndex = closestDistanceOtherTriIndex;\n  }\n  return target1;\n}\nfunction refit_indirect(bvh, nodeIndices = null) {\n  if (nodeIndices && Array.isArray(nodeIndices)) {\n    nodeIndices = new Set(nodeIndices);\n  }\n  const geometry = bvh.geometry;\n  const indexArr = geometry.index ? geometry.index.array : null;\n  const posAttr = geometry.attributes.position;\n  let buffer, uint32Array, uint16Array, float32Array;\n  let byteOffset = 0;\n  const roots = bvh._roots;\n  for (let i = 0, l = roots.length; i < l; i++) {\n    buffer = roots[i];\n    uint32Array = new Uint32Array(buffer);\n    uint16Array = new Uint16Array(buffer);\n    float32Array = new Float32Array(buffer);\n    _traverse2(0, byteOffset);\n    byteOffset += buffer.byteLength;\n  }\n  function _traverse2(node32Index, byteOffset2, force = false) {\n    const node16Index = node32Index * 2;\n    const isLeaf = uint16Array[node16Index + 15] === IS_LEAFNODE_FLAG;\n    if (isLeaf) {\n      const offset = uint32Array[node32Index + 6];\n      const count = uint16Array[node16Index + 14];\n      let minx = Infinity;\n      let miny = Infinity;\n      let minz = Infinity;\n      let maxx = -Infinity;\n      let maxy = -Infinity;\n      let maxz = -Infinity;\n      for (let i = offset, l = offset + count; i < l; i++) {\n        const t = 3 * bvh.resolveTriangleIndex(i);\n        for (let j = 0; j < 3; j++) {\n          let index = t + j;\n          index = indexArr ? indexArr[index] : index;\n          const x = posAttr.getX(index);\n          const y = posAttr.getY(index);\n          const z = posAttr.getZ(index);\n          if (x < minx)\n            minx = x;\n          if (x > maxx)\n            maxx = x;\n          if (y < miny)\n            miny = y;\n          if (y > maxy)\n            maxy = y;\n          if (z < minz)\n            minz = z;\n          if (z > maxz)\n            maxz = z;\n        }\n      }\n      if (float32Array[node32Index + 0] !== minx || float32Array[node32Index + 1] !== miny || float32Array[node32Index + 2] !== minz || float32Array[node32Index + 3] !== maxx || float32Array[node32Index + 4] !== maxy || float32Array[node32Index + 5] !== maxz) {\n        float32Array[node32Index + 0] = minx;\n        float32Array[node32Index + 1] = miny;\n        float32Array[node32Index + 2] = minz;\n        float32Array[node32Index + 3] = maxx;\n        float32Array[node32Index + 4] = maxy;\n        float32Array[node32Index + 5] = maxz;\n        return true;\n      } else {\n        return false;\n      }\n    } else {\n      const left = node32Index + 8;\n      const right = uint32Array[node32Index + 6];\n      const offsetLeft = left + byteOffset2;\n      const offsetRight = right + byteOffset2;\n      let forceChildren = force;\n      let includesLeft = false;\n      let includesRight = false;\n      if (nodeIndices) {\n        if (!forceChildren) {\n          includesLeft = nodeIndices.has(offsetLeft);\n          includesRight = nodeIndices.has(offsetRight);\n          forceChildren = !includesLeft && !includesRight;\n        }\n      } else {\n        includesLeft = true;\n        includesRight = true;\n      }\n      const traverseLeft = forceChildren || includesLeft;\n      const traverseRight = forceChildren || includesRight;\n      let leftChange = false;\n      if (traverseLeft) {\n        leftChange = _traverse2(left, byteOffset2, forceChildren);\n      }\n      let rightChange = false;\n      if (traverseRight) {\n        rightChange = _traverse2(right, byteOffset2, forceChildren);\n      }\n      const didChange = leftChange || rightChange;\n      if (didChange) {\n        for (let i = 0; i < 3; i++) {\n          const lefti = left + i;\n          const righti = right + i;\n          const minLeftValue = float32Array[lefti];\n          const maxLeftValue = float32Array[lefti + 3];\n          const minRightValue = float32Array[righti];\n          const maxRightValue = float32Array[righti + 3];\n          float32Array[node32Index + i] = minLeftValue < minRightValue ? minLeftValue : minRightValue;\n          float32Array[node32Index + i + 3] = maxLeftValue > maxRightValue ? maxLeftValue : maxRightValue;\n        }\n      }\n      return didChange;\n    }\n  }\n}\nconst _boxIntersection$1 = /* @__PURE__ */ new Vector3();\nfunction raycast_indirect(bvh, root, side, ray2, intersects) {\n  BufferStack.setBuffer(bvh._roots[root]);\n  _raycast(0, bvh, side, ray2, intersects);\n  BufferStack.clearBuffer();\n}\nfunction _raycast(nodeIndex32, bvh, side, ray2, intersects) {\n  const { float32Array, uint16Array, uint32Array } = BufferStack;\n  const nodeIndex16 = nodeIndex32 * 2;\n  const isLeaf = IS_LEAF(nodeIndex16, uint16Array);\n  if (isLeaf) {\n    const offset = OFFSET(nodeIndex32, uint32Array);\n    const count = COUNT(nodeIndex16, uint16Array);\n    intersectTris_indirect(bvh, side, ray2, offset, count, intersects);\n  } else {\n    const leftIndex = LEFT_NODE(nodeIndex32);\n    if (intersectRay(leftIndex, float32Array, ray2, _boxIntersection$1)) {\n      _raycast(leftIndex, bvh, side, ray2, intersects);\n    }\n    const rightIndex = RIGHT_NODE(nodeIndex32, uint32Array);\n    if (intersectRay(rightIndex, float32Array, ray2, _boxIntersection$1)) {\n      _raycast(rightIndex, bvh, side, ray2, intersects);\n    }\n  }\n}\nconst _boxIntersection = /* @__PURE__ */ new Vector3();\nconst _xyzFields = [\"x\", \"y\", \"z\"];\nfunction raycastFirst_indirect(bvh, root, side, ray2) {\n  BufferStack.setBuffer(bvh._roots[root]);\n  const result = _raycastFirst(0, bvh, side, ray2);\n  BufferStack.clearBuffer();\n  return result;\n}\nfunction _raycastFirst(nodeIndex32, bvh, side, ray2) {\n  const { float32Array, uint16Array, uint32Array } = BufferStack;\n  let nodeIndex16 = nodeIndex32 * 2;\n  const isLeaf = IS_LEAF(nodeIndex16, uint16Array);\n  if (isLeaf) {\n    const offset = OFFSET(nodeIndex32, uint32Array);\n    const count = COUNT(nodeIndex16, uint16Array);\n    return intersectClosestTri_indirect(bvh, side, ray2, offset, count);\n  } else {\n    const splitAxis = SPLIT_AXIS(nodeIndex32, uint32Array);\n    const xyzAxis = _xyzFields[splitAxis];\n    const rayDir = ray2.direction[xyzAxis];\n    const leftToRight = rayDir >= 0;\n    let c1, c2;\n    if (leftToRight) {\n      c1 = LEFT_NODE(nodeIndex32);\n      c2 = RIGHT_NODE(nodeIndex32, uint32Array);\n    } else {\n      c1 = RIGHT_NODE(nodeIndex32, uint32Array);\n      c2 = LEFT_NODE(nodeIndex32);\n    }\n    const c1Intersection = intersectRay(c1, float32Array, ray2, _boxIntersection);\n    const c1Result = c1Intersection ? _raycastFirst(c1, bvh, side, ray2) : null;\n    if (c1Result) {\n      const point = c1Result.point[xyzAxis];\n      const isOutside = leftToRight ? point <= float32Array[c2 + splitAxis] : (\n        // min bounding data\n        point >= float32Array[c2 + splitAxis + 3]\n      );\n      if (isOutside) {\n        return c1Result;\n      }\n    }\n    const c2Intersection = intersectRay(c2, float32Array, ray2, _boxIntersection);\n    const c2Result = c2Intersection ? _raycastFirst(c2, bvh, side, ray2) : null;\n    if (c1Result && c2Result) {\n      return c1Result.distance <= c2Result.distance ? c1Result : c2Result;\n    } else {\n      return c1Result || c2Result || null;\n    }\n  }\n}\nconst boundingBox = /* @__PURE__ */ new Box3();\nconst triangle = /* @__PURE__ */ new ExtendedTriangle();\nconst triangle2 = /* @__PURE__ */ new ExtendedTriangle();\nconst invertedMat = /* @__PURE__ */ new Matrix4();\nconst obb$2 = /* @__PURE__ */ new OrientedBox();\nconst obb2$1 = /* @__PURE__ */ new OrientedBox();\nfunction intersectsGeometry_indirect(bvh, root, otherGeometry, geometryToBvh) {\n  BufferStack.setBuffer(bvh._roots[root]);\n  const result = _intersectsGeometry(0, bvh, otherGeometry, geometryToBvh);\n  BufferStack.clearBuffer();\n  return result;\n}\nfunction _intersectsGeometry(nodeIndex32, bvh, otherGeometry, geometryToBvh, cachedObb = null) {\n  const { float32Array, uint16Array, uint32Array } = BufferStack;\n  let nodeIndex16 = nodeIndex32 * 2;\n  if (cachedObb === null) {\n    if (!otherGeometry.boundingBox) {\n      otherGeometry.computeBoundingBox();\n    }\n    obb$2.set(otherGeometry.boundingBox.min, otherGeometry.boundingBox.max, geometryToBvh);\n    cachedObb = obb$2;\n  }\n  const isLeaf = IS_LEAF(nodeIndex16, uint16Array);\n  if (isLeaf) {\n    const thisGeometry = bvh.geometry;\n    const thisIndex = thisGeometry.index;\n    const thisPos = thisGeometry.attributes.position;\n    const index = otherGeometry.index;\n    const pos = otherGeometry.attributes.position;\n    const offset = OFFSET(nodeIndex32, uint32Array);\n    const count = COUNT(nodeIndex16, uint16Array);\n    invertedMat.copy(geometryToBvh).invert();\n    if (otherGeometry.boundsTree) {\n      arrayToBox(BOUNDING_DATA_INDEX(nodeIndex32), float32Array, obb2$1);\n      obb2$1.matrix.copy(invertedMat);\n      obb2$1.needsUpdate = true;\n      const res = otherGeometry.boundsTree.shapecast({\n        intersectsBounds: (box) => obb2$1.intersectsBox(box),\n        intersectsTriangle: (tri) => {\n          tri.a.applyMatrix4(geometryToBvh);\n          tri.b.applyMatrix4(geometryToBvh);\n          tri.c.applyMatrix4(geometryToBvh);\n          tri.needsUpdate = true;\n          for (let i = offset, l = count + offset; i < l; i++) {\n            setTriangle(triangle2, 3 * bvh.resolveTriangleIndex(i), thisIndex, thisPos);\n            triangle2.needsUpdate = true;\n            if (tri.intersectsTriangle(triangle2)) {\n              return true;\n            }\n          }\n          return false;\n        }\n      });\n      return res;\n    } else {\n      for (let i = offset, l = count + offset; i < l; i++) {\n        const ti = bvh.resolveTriangleIndex(i);\n        setTriangle(triangle, 3 * ti, thisIndex, thisPos);\n        triangle.a.applyMatrix4(invertedMat);\n        triangle.b.applyMatrix4(invertedMat);\n        triangle.c.applyMatrix4(invertedMat);\n        triangle.needsUpdate = true;\n        for (let i2 = 0, l2 = index.count; i2 < l2; i2 += 3) {\n          setTriangle(triangle2, i2, index, pos);\n          triangle2.needsUpdate = true;\n          if (triangle.intersectsTriangle(triangle2)) {\n            return true;\n          }\n        }\n      }\n    }\n  } else {\n    const left = nodeIndex32 + 8;\n    const right = uint32Array[nodeIndex32 + 6];\n    arrayToBox(BOUNDING_DATA_INDEX(left), float32Array, boundingBox);\n    const leftIntersection = cachedObb.intersectsBox(boundingBox) && _intersectsGeometry(left, bvh, otherGeometry, geometryToBvh, cachedObb);\n    if (leftIntersection)\n      return true;\n    arrayToBox(BOUNDING_DATA_INDEX(right), float32Array, boundingBox);\n    const rightIntersection = cachedObb.intersectsBox(boundingBox) && _intersectsGeometry(right, bvh, otherGeometry, geometryToBvh, cachedObb);\n    if (rightIntersection)\n      return true;\n    return false;\n  }\n}\nconst tempMatrix = /* @__PURE__ */ new Matrix4();\nconst obb$1 = /* @__PURE__ */ new OrientedBox();\nconst obb2 = /* @__PURE__ */ new OrientedBox();\nconst temp1 = /* @__PURE__ */ new Vector3();\nconst temp2 = /* @__PURE__ */ new Vector3();\nconst temp3 = /* @__PURE__ */ new Vector3();\nconst temp4 = /* @__PURE__ */ new Vector3();\nfunction closestPointToGeometry_indirect(bvh, otherGeometry, geometryToBvh, target1 = {}, target2 = {}, minThreshold = 0, maxThreshold = Infinity) {\n  if (!otherGeometry.boundingBox) {\n    otherGeometry.computeBoundingBox();\n  }\n  obb$1.set(otherGeometry.boundingBox.min, otherGeometry.boundingBox.max, geometryToBvh);\n  obb$1.needsUpdate = true;\n  const geometry = bvh.geometry;\n  const pos = geometry.attributes.position;\n  const index = geometry.index;\n  const otherPos = otherGeometry.attributes.position;\n  const otherIndex = otherGeometry.index;\n  const triangle3 = ExtendedTrianglePool.getPrimitive();\n  const triangle22 = ExtendedTrianglePool.getPrimitive();\n  let tempTarget1 = temp1;\n  let tempTargetDest1 = temp2;\n  let tempTarget2 = null;\n  let tempTargetDest2 = null;\n  if (target2) {\n    tempTarget2 = temp3;\n    tempTargetDest2 = temp4;\n  }\n  let closestDistance = Infinity;\n  let closestDistanceTriIndex = null;\n  let closestDistanceOtherTriIndex = null;\n  tempMatrix.copy(geometryToBvh).invert();\n  obb2.matrix.copy(tempMatrix);\n  bvh.shapecast(\n    {\n      boundsTraverseOrder: (box) => {\n        return obb$1.distanceToBox(box);\n      },\n      intersectsBounds: (box, isLeaf, score) => {\n        if (score < closestDistance && score < maxThreshold) {\n          if (isLeaf) {\n            obb2.min.copy(box.min);\n            obb2.max.copy(box.max);\n            obb2.needsUpdate = true;\n          }\n          return true;\n        }\n        return false;\n      },\n      intersectsRange: (offset, count) => {\n        if (otherGeometry.boundsTree) {\n          const otherBvh = otherGeometry.boundsTree;\n          return otherBvh.shapecast({\n            boundsTraverseOrder: (box) => {\n              return obb2.distanceToBox(box);\n            },\n            intersectsBounds: (box, isLeaf, score) => {\n              return score < closestDistance && score < maxThreshold;\n            },\n            intersectsRange: (otherOffset, otherCount) => {\n              for (let i2 = otherOffset, l2 = otherOffset + otherCount; i2 < l2; i2++) {\n                const ti2 = otherBvh.resolveTriangleIndex(i2);\n                setTriangle(triangle22, 3 * ti2, otherIndex, otherPos);\n                triangle22.a.applyMatrix4(geometryToBvh);\n                triangle22.b.applyMatrix4(geometryToBvh);\n                triangle22.c.applyMatrix4(geometryToBvh);\n                triangle22.needsUpdate = true;\n                for (let i = offset, l = offset + count; i < l; i++) {\n                  const ti = bvh.resolveTriangleIndex(i);\n                  setTriangle(triangle3, 3 * ti, index, pos);\n                  triangle3.needsUpdate = true;\n                  const dist = triangle3.distanceToTriangle(triangle22, tempTarget1, tempTarget2);\n                  if (dist < closestDistance) {\n                    tempTargetDest1.copy(tempTarget1);\n                    if (tempTargetDest2) {\n                      tempTargetDest2.copy(tempTarget2);\n                    }\n                    closestDistance = dist;\n                    closestDistanceTriIndex = i;\n                    closestDistanceOtherTriIndex = i2;\n                  }\n                  if (dist < minThreshold) {\n                    return true;\n                  }\n                }\n              }\n            }\n          });\n        } else {\n          const triCount = getTriCount(otherGeometry);\n          for (let i2 = 0, l2 = triCount; i2 < l2; i2++) {\n            setTriangle(triangle22, 3 * i2, otherIndex, otherPos);\n            triangle22.a.applyMatrix4(geometryToBvh);\n            triangle22.b.applyMatrix4(geometryToBvh);\n            triangle22.c.applyMatrix4(geometryToBvh);\n            triangle22.needsUpdate = true;\n            for (let i = offset, l = offset + count; i < l; i++) {\n              const ti = bvh.resolveTriangleIndex(i);\n              setTriangle(triangle3, 3 * ti, index, pos);\n              triangle3.needsUpdate = true;\n              const dist = triangle3.distanceToTriangle(triangle22, tempTarget1, tempTarget2);\n              if (dist < closestDistance) {\n                tempTargetDest1.copy(tempTarget1);\n                if (tempTargetDest2) {\n                  tempTargetDest2.copy(tempTarget2);\n                }\n                closestDistance = dist;\n                closestDistanceTriIndex = i;\n                closestDistanceOtherTriIndex = i2;\n              }\n              if (dist < minThreshold) {\n                return true;\n              }\n            }\n          }\n        }\n      }\n    }\n  );\n  ExtendedTrianglePool.releasePrimitive(triangle3);\n  ExtendedTrianglePool.releasePrimitive(triangle22);\n  if (closestDistance === Infinity) {\n    return null;\n  }\n  if (!target1.point) {\n    target1.point = tempTargetDest1.clone();\n  } else {\n    target1.point.copy(tempTargetDest1);\n  }\n  target1.distance = closestDistance, target1.faceIndex = closestDistanceTriIndex;\n  if (target2) {\n    if (!target2.point)\n      target2.point = tempTargetDest2.clone();\n    else\n      target2.point.copy(tempTargetDest2);\n    target2.point.applyMatrix4(tempMatrix);\n    tempTargetDest1.applyMatrix4(tempMatrix);\n    target2.distance = tempTargetDest1.sub(target2.point).length();\n    target2.faceIndex = closestDistanceOtherTriIndex;\n  }\n  return target1;\n}\nfunction isSharedArrayBufferSupported() {\n  return typeof SharedArrayBuffer !== \"undefined\";\n}\nconst _bufferStack1 = new BufferStack.constructor();\nconst _bufferStack2 = new BufferStack.constructor();\nconst _boxPool = new PrimitivePool(() => new Box3());\nconst _leftBox1 = new Box3();\nconst _rightBox1 = new Box3();\nconst _leftBox2 = new Box3();\nconst _rightBox2 = new Box3();\nlet _active = false;\nfunction bvhcast(bvh, otherBvh, matrixToLocal, intersectsRanges) {\n  if (_active) {\n    throw new Error(\"MeshBVH: Recursive calls to bvhcast not supported.\");\n  }\n  _active = true;\n  const roots = bvh._roots;\n  const otherRoots = otherBvh._roots;\n  let result;\n  let offset1 = 0;\n  let offset2 = 0;\n  const invMat = new Matrix4().copy(matrixToLocal).invert();\n  for (let i = 0, il = roots.length; i < il; i++) {\n    _bufferStack1.setBuffer(roots[i]);\n    offset2 = 0;\n    const localBox = _boxPool.getPrimitive();\n    arrayToBox(BOUNDING_DATA_INDEX(0), _bufferStack1.float32Array, localBox);\n    localBox.applyMatrix4(invMat);\n    for (let j = 0, jl = otherRoots.length; j < jl; j++) {\n      _bufferStack2.setBuffer(otherRoots[i]);\n      result = _traverse(\n        0,\n        0,\n        matrixToLocal,\n        invMat,\n        intersectsRanges,\n        offset1,\n        offset2,\n        0,\n        0,\n        localBox\n      );\n      _bufferStack2.clearBuffer();\n      offset2 += otherRoots[j].length;\n      if (result) {\n        break;\n      }\n    }\n    _boxPool.releasePrimitive(localBox);\n    _bufferStack1.clearBuffer();\n    offset1 += roots[i].length;\n    if (result) {\n      break;\n    }\n  }\n  _active = false;\n  return result;\n}\nfunction _traverse(node1Index32, node2Index32, matrix2to1, matrix1to2, intersectsRangesFunc, node1IndexByteOffset = 0, node2IndexByteOffset = 0, depth1 = 0, depth2 = 0, currBox = null, reversed = false) {\n  let bufferStack1, bufferStack2;\n  if (reversed) {\n    bufferStack1 = _bufferStack2;\n    bufferStack2 = _bufferStack1;\n  } else {\n    bufferStack1 = _bufferStack1;\n    bufferStack2 = _bufferStack2;\n  }\n  const float32Array1 = bufferStack1.float32Array, uint32Array1 = bufferStack1.uint32Array, uint16Array1 = bufferStack1.uint16Array, float32Array2 = bufferStack2.float32Array, uint32Array2 = bufferStack2.uint32Array, uint16Array2 = bufferStack2.uint16Array;\n  const node1Index16 = node1Index32 * 2;\n  const node2Index16 = node2Index32 * 2;\n  const isLeaf1 = IS_LEAF(node1Index16, uint16Array1);\n  const isLeaf2 = IS_LEAF(node2Index16, uint16Array2);\n  let result = false;\n  if (isLeaf2 && isLeaf1) {\n    if (reversed) {\n      result = intersectsRangesFunc(\n        OFFSET(node2Index32, uint32Array2),\n        COUNT(node2Index32 * 2, uint16Array2),\n        OFFSET(node1Index32, uint32Array1),\n        COUNT(node1Index32 * 2, uint16Array1),\n        depth2,\n        node2IndexByteOffset + node2Index32,\n        depth1,\n        node1IndexByteOffset + node1Index32\n      );\n    } else {\n      result = intersectsRangesFunc(\n        OFFSET(node1Index32, uint32Array1),\n        COUNT(node1Index32 * 2, uint16Array1),\n        OFFSET(node2Index32, uint32Array2),\n        COUNT(node2Index32 * 2, uint16Array2),\n        depth1,\n        node1IndexByteOffset + node1Index32,\n        depth2,\n        node2IndexByteOffset + node2Index32\n      );\n    }\n  } else if (isLeaf2) {\n    const newBox = _boxPool.getPrimitive();\n    arrayToBox(BOUNDING_DATA_INDEX(node2Index32), float32Array2, newBox);\n    newBox.applyMatrix4(matrix2to1);\n    const cl1 = LEFT_NODE(node1Index32);\n    const cr1 = RIGHT_NODE(node1Index32, uint32Array1);\n    arrayToBox(BOUNDING_DATA_INDEX(cl1), float32Array1, _leftBox1);\n    arrayToBox(BOUNDING_DATA_INDEX(cr1), float32Array1, _rightBox1);\n    const intersectCl1 = newBox.intersectsBox(_leftBox1);\n    const intersectCr1 = newBox.intersectsBox(_rightBox1);\n    result = intersectCl1 && _traverse(\n      node2Index32,\n      cl1,\n      matrix1to2,\n      matrix2to1,\n      intersectsRangesFunc,\n      node2IndexByteOffset,\n      node1IndexByteOffset,\n      depth2,\n      depth1 + 1,\n      newBox,\n      !reversed\n    ) || intersectCr1 && _traverse(\n      node2Index32,\n      cr1,\n      matrix1to2,\n      matrix2to1,\n      intersectsRangesFunc,\n      node2IndexByteOffset,\n      node1IndexByteOffset,\n      depth2,\n      depth1 + 1,\n      newBox,\n      !reversed\n    );\n    _boxPool.releasePrimitive(newBox);\n  } else {\n    const cl2 = LEFT_NODE(node2Index32);\n    const cr2 = RIGHT_NODE(node2Index32, uint32Array2);\n    arrayToBox(BOUNDING_DATA_INDEX(cl2), float32Array2, _leftBox2);\n    arrayToBox(BOUNDING_DATA_INDEX(cr2), float32Array2, _rightBox2);\n    const leftIntersects = currBox.intersectsBox(_leftBox2);\n    const rightIntersects = currBox.intersectsBox(_rightBox2);\n    if (leftIntersects && rightIntersects) {\n      result = _traverse(\n        node1Index32,\n        cl2,\n        matrix2to1,\n        matrix1to2,\n        intersectsRangesFunc,\n        node1IndexByteOffset,\n        node2IndexByteOffset,\n        depth1,\n        depth2 + 1,\n        currBox,\n        reversed\n      ) || _traverse(\n        node1Index32,\n        cr2,\n        matrix2to1,\n        matrix1to2,\n        intersectsRangesFunc,\n        node1IndexByteOffset,\n        node2IndexByteOffset,\n        depth1,\n        depth2 + 1,\n        currBox,\n        reversed\n      );\n    } else if (leftIntersects) {\n      if (isLeaf1) {\n        result = _traverse(\n          node1Index32,\n          cl2,\n          matrix2to1,\n          matrix1to2,\n          intersectsRangesFunc,\n          node1IndexByteOffset,\n          node2IndexByteOffset,\n          depth1,\n          depth2 + 1,\n          currBox,\n          reversed\n        );\n      } else {\n        const newBox = _boxPool.getPrimitive();\n        newBox.copy(_leftBox2).applyMatrix4(matrix2to1);\n        const cl1 = LEFT_NODE(node1Index32);\n        const cr1 = RIGHT_NODE(node1Index32, uint32Array1);\n        arrayToBox(BOUNDING_DATA_INDEX(cl1), float32Array1, _leftBox1);\n        arrayToBox(BOUNDING_DATA_INDEX(cr1), float32Array1, _rightBox1);\n        const intersectCl1 = newBox.intersectsBox(_leftBox1);\n        const intersectCr1 = newBox.intersectsBox(_rightBox1);\n        result = intersectCl1 && _traverse(\n          cl2,\n          cl1,\n          matrix1to2,\n          matrix2to1,\n          intersectsRangesFunc,\n          node2IndexByteOffset,\n          node1IndexByteOffset,\n          depth2,\n          depth1 + 1,\n          newBox,\n          !reversed\n        ) || intersectCr1 && _traverse(\n          cl2,\n          cr1,\n          matrix1to2,\n          matrix2to1,\n          intersectsRangesFunc,\n          node2IndexByteOffset,\n          node1IndexByteOffset,\n          depth2,\n          depth1 + 1,\n          newBox,\n          !reversed\n        );\n        _boxPool.releasePrimitive(newBox);\n      }\n    } else if (rightIntersects) {\n      if (isLeaf1) {\n        result = _traverse(\n          node1Index32,\n          cr2,\n          matrix2to1,\n          matrix1to2,\n          intersectsRangesFunc,\n          node1IndexByteOffset,\n          node2IndexByteOffset,\n          depth1,\n          depth2 + 1,\n          currBox,\n          reversed\n        );\n      } else {\n        const newBox = _boxPool.getPrimitive();\n        newBox.copy(_rightBox2).applyMatrix4(matrix2to1);\n        const cl1 = LEFT_NODE(node1Index32);\n        const cr1 = RIGHT_NODE(node1Index32, uint32Array1);\n        arrayToBox(BOUNDING_DATA_INDEX(cl1), float32Array1, _leftBox1);\n        arrayToBox(BOUNDING_DATA_INDEX(cr1), float32Array1, _rightBox1);\n        const intersectCl1 = newBox.intersectsBox(_leftBox1);\n        const intersectCr1 = newBox.intersectsBox(_rightBox1);\n        result = intersectCl1 && _traverse(\n          cr2,\n          cl1,\n          matrix1to2,\n          matrix2to1,\n          intersectsRangesFunc,\n          node2IndexByteOffset,\n          node1IndexByteOffset,\n          depth2,\n          depth1 + 1,\n          newBox,\n          !reversed\n        ) || intersectCr1 && _traverse(\n          cr2,\n          cr1,\n          matrix1to2,\n          matrix2to1,\n          intersectsRangesFunc,\n          node2IndexByteOffset,\n          node1IndexByteOffset,\n          depth2,\n          depth1 + 1,\n          newBox,\n          !reversed\n        );\n        _boxPool.releasePrimitive(newBox);\n      }\n    }\n  }\n  return result;\n}\nconst obb = /* @__PURE__ */ new OrientedBox();\nconst tempBox = /* @__PURE__ */ new Box3();\nclass MeshBVH {\n  static serialize(bvh, options = {}) {\n    options = {\n      cloneBuffers: true,\n      ...options\n    };\n    const geometry = bvh.geometry;\n    const rootData = bvh._roots;\n    const indirectBuffer = bvh._indirectBuffer;\n    const indexAttribute = geometry.getIndex();\n    let result;\n    if (options.cloneBuffers) {\n      result = {\n        roots: rootData.map((root) => root.slice()),\n        index: indexAttribute.array.slice(),\n        indirectBuffer: indirectBuffer ? indirectBuffer.slice() : null\n      };\n    } else {\n      result = {\n        roots: rootData,\n        index: indexAttribute.array,\n        indirectBuffer\n      };\n    }\n    return result;\n  }\n  static deserialize(data, geometry, options = {}) {\n    options = {\n      setIndex: true,\n      indirect: Boolean(data.indirectBuffer),\n      ...options\n    };\n    const { index, roots, indirectBuffer } = data;\n    const bvh = new MeshBVH(geometry, { ...options, [SKIP_GENERATION]: true });\n    bvh._roots = roots;\n    bvh._indirectBuffer = indirectBuffer || null;\n    if (options.setIndex) {\n      const indexAttribute = geometry.getIndex();\n      if (indexAttribute === null) {\n        const newIndex = new BufferAttribute(data.index, 1, false);\n        geometry.setIndex(newIndex);\n      } else if (indexAttribute.array !== index) {\n        indexAttribute.array.set(index);\n        indexAttribute.needsUpdate = true;\n      }\n    }\n    return bvh;\n  }\n  get indirect() {\n    return !!this._indirectBuffer;\n  }\n  constructor(geometry, options = {}) {\n    if (!geometry.isBufferGeometry) {\n      throw new Error(\"MeshBVH: Only BufferGeometries are supported.\");\n    } else if (geometry.index && geometry.index.isInterleavedBufferAttribute) {\n      throw new Error(\"MeshBVH: InterleavedBufferAttribute is not supported for the index attribute.\");\n    }\n    options = Object.assign({\n      strategy: CENTER,\n      maxDepth: 40,\n      maxLeafTris: 10,\n      verbose: true,\n      useSharedArrayBuffer: false,\n      setBoundingBox: true,\n      onProgress: null,\n      indirect: false,\n      // undocumented options\n      // Whether to skip generating the tree. Used for deserialization.\n      [SKIP_GENERATION]: false\n    }, options);\n    if (options.useSharedArrayBuffer && !isSharedArrayBufferSupported()) {\n      throw new Error(\"MeshBVH: SharedArrayBuffer is not available.\");\n    }\n    this.geometry = geometry;\n    this._roots = null;\n    this._indirectBuffer = null;\n    if (!options[SKIP_GENERATION]) {\n      buildPackedTree(this, options);\n      if (!geometry.boundingBox && options.setBoundingBox) {\n        geometry.boundingBox = this.getBoundingBox(new Box3());\n      }\n    }\n    const { _indirectBuffer } = this;\n    this.resolveTriangleIndex = options.indirect ? (i) => _indirectBuffer[i] : (i) => i;\n  }\n  refit(nodeIndices = null) {\n    const refitFunc = this.indirect ? refit_indirect : refit;\n    return refitFunc(this, nodeIndices);\n  }\n  traverse(callback, rootIndex = 0) {\n    const buffer = this._roots[rootIndex];\n    const uint32Array = new Uint32Array(buffer);\n    const uint16Array = new Uint16Array(buffer);\n    _traverse2(0);\n    function _traverse2(node32Index, depth = 0) {\n      const node16Index = node32Index * 2;\n      const isLeaf = uint16Array[node16Index + 15] === IS_LEAFNODE_FLAG;\n      if (isLeaf) {\n        const offset = uint32Array[node32Index + 6];\n        const count = uint16Array[node16Index + 14];\n        callback(depth, isLeaf, new Float32Array(buffer, node32Index * 4, 6), offset, count);\n      } else {\n        const left = node32Index + BYTES_PER_NODE / 4;\n        const right = uint32Array[node32Index + 6];\n        const splitAxis = uint32Array[node32Index + 7];\n        const stopTraversal = callback(depth, isLeaf, new Float32Array(buffer, node32Index * 4, 6), splitAxis);\n        if (!stopTraversal) {\n          _traverse2(left, depth + 1);\n          _traverse2(right, depth + 1);\n        }\n      }\n    }\n  }\n  /* Core Cast Functions */\n  raycast(ray2, materialOrSide = FrontSide) {\n    const roots = this._roots;\n    const geometry = this.geometry;\n    const intersects = [];\n    const isMaterial = materialOrSide.isMaterial;\n    const isArrayMaterial = Array.isArray(materialOrSide);\n    const groups = geometry.groups;\n    const side = isMaterial ? materialOrSide.side : materialOrSide;\n    const raycastFunc = this.indirect ? raycast_indirect : raycast;\n    for (let i = 0, l = roots.length; i < l; i++) {\n      const materialSide = isArrayMaterial ? materialOrSide[groups[i].materialIndex].side : side;\n      const startCount = intersects.length;\n      raycastFunc(this, i, materialSide, ray2, intersects);\n      if (isArrayMaterial) {\n        const materialIndex = groups[i].materialIndex;\n        for (let j = startCount, jl = intersects.length; j < jl; j++) {\n          intersects[j].face.materialIndex = materialIndex;\n        }\n      }\n    }\n    return intersects;\n  }\n  raycastFirst(ray2, materialOrSide = FrontSide) {\n    const roots = this._roots;\n    const geometry = this.geometry;\n    const isMaterial = materialOrSide.isMaterial;\n    const isArrayMaterial = Array.isArray(materialOrSide);\n    let closestResult = null;\n    const groups = geometry.groups;\n    const side = isMaterial ? materialOrSide.side : materialOrSide;\n    const raycastFirstFunc = this.indirect ? raycastFirst_indirect : raycastFirst;\n    for (let i = 0, l = roots.length; i < l; i++) {\n      const materialSide = isArrayMaterial ? materialOrSide[groups[i].materialIndex].side : side;\n      const result = raycastFirstFunc(this, i, materialSide, ray2);\n      if (result != null && (closestResult == null || result.distance < closestResult.distance)) {\n        closestResult = result;\n        if (isArrayMaterial) {\n          result.face.materialIndex = groups[i].materialIndex;\n        }\n      }\n    }\n    return closestResult;\n  }\n  intersectsGeometry(otherGeometry, geomToMesh) {\n    let result = false;\n    const roots = this._roots;\n    const intersectsGeometryFunc = this.indirect ? intersectsGeometry_indirect : intersectsGeometry;\n    for (let i = 0, l = roots.length; i < l; i++) {\n      result = intersectsGeometryFunc(this, i, otherGeometry, geomToMesh);\n      if (result) {\n        break;\n      }\n    }\n    return result;\n  }\n  shapecast(callbacks) {\n    const triangle3 = ExtendedTrianglePool.getPrimitive();\n    const iterateFunc = this.indirect ? iterateOverTriangles_indirect : iterateOverTriangles;\n    let {\n      boundsTraverseOrder,\n      intersectsBounds,\n      intersectsRange,\n      intersectsTriangle\n    } = callbacks;\n    if (intersectsRange && intersectsTriangle) {\n      const originalIntersectsRange = intersectsRange;\n      intersectsRange = (offset, count, contained, depth, nodeIndex) => {\n        if (!originalIntersectsRange(offset, count, contained, depth, nodeIndex)) {\n          return iterateFunc(offset, count, this, intersectsTriangle, contained, depth, triangle3);\n        }\n        return true;\n      };\n    } else if (!intersectsRange) {\n      if (intersectsTriangle) {\n        intersectsRange = (offset, count, contained, depth) => {\n          return iterateFunc(offset, count, this, intersectsTriangle, contained, depth, triangle3);\n        };\n      } else {\n        intersectsRange = (offset, count, contained) => {\n          return contained;\n        };\n      }\n    }\n    let result = false;\n    let byteOffset = 0;\n    const roots = this._roots;\n    for (let i = 0, l = roots.length; i < l; i++) {\n      const root = roots[i];\n      result = shapecast(this, i, intersectsBounds, intersectsRange, boundsTraverseOrder, byteOffset);\n      if (result) {\n        break;\n      }\n      byteOffset += root.byteLength;\n    }\n    ExtendedTrianglePool.releasePrimitive(triangle3);\n    return result;\n  }\n  bvhcast(otherBvh, matrixToLocal, callbacks) {\n    let {\n      intersectsRanges,\n      intersectsTriangles\n    } = callbacks;\n    const triangle1 = ExtendedTrianglePool.getPrimitive();\n    const indexAttr1 = this.geometry.index;\n    const positionAttr1 = this.geometry.attributes.position;\n    const assignTriangle1 = this.indirect ? (i1) => {\n      const ti = this.resolveTriangleIndex(i1);\n      setTriangle(triangle1, ti * 3, indexAttr1, positionAttr1);\n    } : (i1) => {\n      setTriangle(triangle1, i1 * 3, indexAttr1, positionAttr1);\n    };\n    const triangle22 = ExtendedTrianglePool.getPrimitive();\n    const indexAttr2 = otherBvh.geometry.index;\n    const positionAttr2 = otherBvh.geometry.attributes.position;\n    const assignTriangle2 = otherBvh.indirect ? (i2) => {\n      const ti2 = otherBvh.resolveTriangleIndex(i2);\n      setTriangle(triangle22, ti2 * 3, indexAttr2, positionAttr2);\n    } : (i2) => {\n      setTriangle(triangle22, i2 * 3, indexAttr2, positionAttr2);\n    };\n    if (intersectsTriangles) {\n      const iterateOverDoubleTriangles = (offset1, count1, offset2, count2, depth1, index1, depth2, index2) => {\n        for (let i2 = offset2, l2 = offset2 + count2; i2 < l2; i2++) {\n          assignTriangle2(i2);\n          triangle22.a.applyMatrix4(matrixToLocal);\n          triangle22.b.applyMatrix4(matrixToLocal);\n          triangle22.c.applyMatrix4(matrixToLocal);\n          triangle22.needsUpdate = true;\n          for (let i1 = offset1, l1 = offset1 + count1; i1 < l1; i1++) {\n            assignTriangle1(i1);\n            triangle1.needsUpdate = true;\n            if (intersectsTriangles(triangle1, triangle22, i1, i2, depth1, index1, depth2, index2)) {\n              return true;\n            }\n          }\n        }\n        return false;\n      };\n      if (intersectsRanges) {\n        const originalIntersectsRanges = intersectsRanges;\n        intersectsRanges = function(offset1, count1, offset2, count2, depth1, index1, depth2, index2) {\n          if (!originalIntersectsRanges(offset1, count1, offset2, count2, depth1, index1, depth2, index2)) {\n            return iterateOverDoubleTriangles(offset1, count1, offset2, count2, depth1, index1, depth2, index2);\n          }\n          return true;\n        };\n      } else {\n        intersectsRanges = iterateOverDoubleTriangles;\n      }\n    }\n    return bvhcast(this, otherBvh, matrixToLocal, intersectsRanges);\n  }\n  /* Derived Cast Functions */\n  intersectsBox(box, boxToMesh) {\n    obb.set(box.min, box.max, boxToMesh);\n    obb.needsUpdate = true;\n    return this.shapecast(\n      {\n        intersectsBounds: (box2) => obb.intersectsBox(box2),\n        intersectsTriangle: (tri) => obb.intersectsTriangle(tri)\n      }\n    );\n  }\n  intersectsSphere(sphere) {\n    return this.shapecast(\n      {\n        intersectsBounds: (box) => sphere.intersectsBox(box),\n        intersectsTriangle: (tri) => tri.intersectsSphere(sphere)\n      }\n    );\n  }\n  closestPointToGeometry(otherGeometry, geometryToBvh, target1 = {}, target2 = {}, minThreshold = 0, maxThreshold = Infinity) {\n    const closestPointToGeometryFunc = this.indirect ? closestPointToGeometry_indirect : closestPointToGeometry;\n    return closestPointToGeometryFunc(\n      this,\n      otherGeometry,\n      geometryToBvh,\n      target1,\n      target2,\n      minThreshold,\n      maxThreshold\n    );\n  }\n  closestPointToPoint(point, target = {}, minThreshold = 0, maxThreshold = Infinity) {\n    return closestPointToPoint(\n      this,\n      point,\n      target,\n      minThreshold,\n      maxThreshold\n    );\n  }\n  getBoundingBox(target) {\n    target.makeEmpty();\n    const roots = this._roots;\n    roots.forEach((buffer) => {\n      arrayToBox(0, new Float32Array(buffer), tempBox);\n      target.union(tempBox);\n    });\n    return target;\n  }\n}\nfunction convertRaycastIntersect(hit, object, raycaster) {\n  if (hit === null) {\n    return null;\n  }\n  hit.point.applyMatrix4(object.matrixWorld);\n  hit.distance = hit.point.distanceTo(raycaster.ray.origin);\n  hit.object = object;\n  if (hit.distance < raycaster.near || hit.distance > raycaster.far) {\n    return null;\n  } else {\n    return hit;\n  }\n}\nconst ray = /* @__PURE__ */ new Ray();\nconst tmpInverseMatrix = /* @__PURE__ */ new Matrix4();\nconst origMeshRaycastFunc = Mesh.prototype.raycast;\nfunction acceleratedRaycast(raycaster, intersects) {\n  if (this.geometry.boundsTree) {\n    if (this.material === void 0)\n      return;\n    tmpInverseMatrix.copy(this.matrixWorld).invert();\n    ray.copy(raycaster.ray).applyMatrix4(tmpInverseMatrix);\n    const bvh = this.geometry.boundsTree;\n    if (raycaster.firstHitOnly === true) {\n      const hit = convertRaycastIntersect(bvh.raycastFirst(ray, this.material), this, raycaster);\n      if (hit) {\n        intersects.push(hit);\n      }\n    } else {\n      const hits = bvh.raycast(ray, this.material);\n      for (let i = 0, l = hits.length; i < l; i++) {\n        const hit = convertRaycastIntersect(hits[i], this, raycaster);\n        if (hit) {\n          intersects.push(hit);\n        }\n      }\n    }\n  } else {\n    origMeshRaycastFunc.call(this, raycaster, intersects);\n  }\n}\nfunction computeBoundsTree(options) {\n  this.boundsTree = new MeshBVH(this, options);\n  return this.boundsTree;\n}\nfunction disposeBoundsTree() {\n  this.boundsTree = null;\n}\nconst _Components = class _Components {\n  constructor() {\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    /**\n     * The list of components created in this app.\n     * The keys are UUIDs and the values are instances of the components.\n     */\n    __publicField(this, \"list\", new DataMap$1());\n    /**\n     * If disabled, the animation loop will be stopped.\n     * Default value is false.\n     */\n    __publicField(this, \"enabled\", false);\n    __publicField(this, \"_clock\");\n    /**\n     * Event that triggers the Components instance is initialized.\n     *\n     * @remarks\n     * This event is triggered once when the {@link Components.init} method has been called and finish processing.\n     * This is useful to set configuration placeholders that need to be executed when the components instance is initialized.\n     * For example, enabling and configuring custom effects in a post-production renderer.\n     *\n     * @example\n     * ```typescript\n     * const components = new Components();\n     * components.onInit.add(() => {\n     *   // Enable custom effects in the post-production renderer\n     *   // or any other operation dependant on the component initialization\n     * });\n     * components.init();\n     * ```\n     */\n    __publicField(this, \"onInit\", new Event());\n    __publicField(this, \"update\", () => {\n      if (!this.enabled)\n        return;\n      const delta = this._clock.getDelta();\n      for (const [_id, component] of this.list) {\n        if (component.enabled && component.isUpdateable()) {\n          component.update(delta);\n        }\n      }\n      requestAnimationFrame(this.update);\n    });\n    this._clock = new THREE.Clock();\n    _Components.setupBVH();\n  }\n  /**\n   * Adds a component to the list of components.\n   * Throws an error if a component with the same UUID already exists.\n   *\n   * @param uuid - The unique identifier of the component.\n   * @param instance - The instance of the component to be added.\n   *\n   * @throws Will throw an error if a component with the same UUID already exists.\n   */\n  add(uuid, instance) {\n    if (this.list.has(uuid))\n      throw new Error(\n        `You're trying to add a component that already exists in the components instance. Use Components.get() instead.`\n      );\n    UUID.validate(uuid);\n    this.list.set(uuid, instance);\n  }\n  /**\n   * Retrieves a component instance by its constructor function.\n   * If the component does not exist in the list, it will be created and added.\n   *\n   * @template U - The type of the component to retrieve.\n   * @param Component - The constructor function of the component to retrieve.\n   *\n   * @returns The instance of the requested component.\n   *\n   * @throws Will throw an error if a component with the same UUID already exists.\n   */\n  get(Component2) {\n    var _a;\n    const uuid = Component2.uuid;\n    if (!this.list.has(uuid)) {\n      const toolInstance = new Component2(this);\n      if ((_a = toolInstance.isDisposeable) == null ? void 0 : _a.call(toolInstance)) {\n        toolInstance.onDisposed.add(() => this.list.delete(uuid));\n      }\n      if (!this.list.has(uuid)) {\n        this.add(uuid, toolInstance);\n      }\n      return toolInstance;\n    }\n    return this.list.get(uuid);\n  }\n  /**\n   * Initializes the Components instance.\n   * This method starts the animation loop, sets the enabled flag to true,\n   * and calls the update method.\n   */\n  init() {\n    this.enabled = true;\n    for (const [_, component] of this.list.entries()) {\n      component.enabled = true;\n    }\n    this._clock.start();\n    this.update();\n    this.onInit.trigger();\n  }\n  /**\n   * Disposes the memory of all the components and tools of this instance of\n   * the library. A memory leak will be created if:\n   *\n   * - An instance of the library ends up out of scope and this function isn't\n   * called. This is especially relevant in Single Page Applications (React,\n   * Angular, Vue, etc).\n   *\n   * - Any of the objects of this instance (meshes, geometries,materials, etc) is\n   * referenced by a reference type (object or array).\n   *\n   * You can learn more about how Three.js handles memory leaks\n   * [here](https://threejs.org/docs/#manual/en/introduction/How-to-dispose-of-objects).\n   *\n   */\n  dispose() {\n    this.enabled = false;\n    let fragments;\n    for (const [_id, component] of this.list) {\n      component.enabled = false;\n      if (_id === FragmentsManager.uuid) {\n        fragments = component;\n        continue;\n      }\n      if (component.isDisposeable()) {\n        component.dispose();\n      }\n    }\n    fragments == null ? void 0 : fragments.dispose();\n    this._clock.stop();\n    this.onDisposed.trigger();\n  }\n  static setupBVH() {\n    THREE.BufferGeometry.prototype.computeBoundsTree = computeBoundsTree;\n    THREE.BufferGeometry.prototype.disposeBoundsTree = disposeBoundsTree;\n    THREE.Mesh.prototype.raycast = acceleratedRaycast;\n  }\n};\n/**\n * The version of the @thatopen/components library.\n */\n__publicField(_Components, \"release\", \"2.4.3\");\nlet Components = _Components;\nclass FirstPersonMode {\n  constructor(camera) {\n    /** {@link NavigationMode.enabled} */\n    __publicField(this, \"enabled\", false);\n    /** {@link NavigationMode.id} */\n    __publicField(this, \"id\", \"FirstPerson\");\n    this.camera = camera;\n  }\n  /** {@link NavigationMode.set} */\n  set(active) {\n    this.enabled = active;\n    if (active) {\n      const projection = this.camera.projection.current;\n      if (projection !== \"Perspective\") {\n        this.camera.set(\"Orbit\");\n        return;\n      }\n      this.setupFirstPersonCamera();\n    }\n  }\n  setupFirstPersonCamera() {\n    const controls = this.camera.controls;\n    const newTargetPosition = new THREE.Vector3();\n    controls.distance--;\n    controls.getPosition(newTargetPosition);\n    controls.minDistance = 1;\n    controls.maxDistance = 1;\n    controls.distance = 1;\n    controls.moveTo(\n      newTargetPosition.x,\n      newTargetPosition.y,\n      newTargetPosition.z\n    );\n    controls.truckSpeed = 50;\n    controls.mouseButtons.wheel = CameraControls.ACTION.DOLLY;\n    controls.touches.two = CameraControls.ACTION.TOUCH_ZOOM_TRUCK;\n  }\n}\nclass OrbitMode {\n  constructor(camera) {\n    /** {@link NavigationMode.enabled} */\n    __publicField(this, \"enabled\", true);\n    /** {@link NavigationMode.id} */\n    __publicField(this, \"id\", \"Orbit\");\n    this.camera = camera;\n    this.activateOrbitControls();\n  }\n  /** {@link NavigationMode.set} */\n  set(active) {\n    this.enabled = active;\n    if (active) {\n      this.activateOrbitControls();\n    }\n  }\n  activateOrbitControls() {\n    const controls = this.camera.controls;\n    controls.minDistance = 1;\n    controls.maxDistance = 300;\n    const position = new THREE.Vector3();\n    controls.getPosition(position);\n    const distance = position.length();\n    controls.distance = distance;\n    controls.truckSpeed = 2;\n    const { rotation } = this.camera.three;\n    const direction = new THREE.Vector3(0, 0, -1).applyEuler(rotation);\n    const target = position.addScaledVector(direction, distance);\n    controls.moveTo(target.x, target.y, target.z);\n  }\n}\nclass PlanMode {\n  constructor(camera) {\n    /** {@link NavigationMode.enabled} */\n    __publicField(this, \"enabled\", false);\n    /** {@link NavigationMode.id} */\n    __publicField(this, \"id\", \"Plan\");\n    __publicField(this, \"mouseAction1\");\n    __publicField(this, \"mouseAction2\");\n    __publicField(this, \"mouseInitialized\", false);\n    __publicField(this, \"defaultAzimuthSpeed\");\n    __publicField(this, \"defaultPolarSpeed\");\n    this.camera = camera;\n    this.defaultAzimuthSpeed = camera.controls.azimuthRotateSpeed;\n    this.defaultPolarSpeed = camera.controls.polarRotateSpeed;\n  }\n  /** {@link NavigationMode.set} */\n  set(active) {\n    this.enabled = active;\n    const controls = this.camera.controls;\n    controls.azimuthRotateSpeed = active ? 0 : this.defaultAzimuthSpeed;\n    controls.polarRotateSpeed = active ? 0 : this.defaultPolarSpeed;\n    if (!this.mouseInitialized) {\n      this.mouseAction1 = controls.touches.one;\n      this.mouseAction2 = controls.touches.two;\n      this.mouseInitialized = true;\n    }\n    if (active) {\n      controls.mouseButtons.left = CameraControls.ACTION.TRUCK;\n      controls.touches.one = CameraControls.ACTION.TOUCH_TRUCK;\n      controls.touches.two = CameraControls.ACTION.TOUCH_ZOOM;\n    } else {\n      controls.mouseButtons.left = CameraControls.ACTION.ROTATE;\n      controls.touches.one = this.mouseAction1;\n      controls.touches.two = this.mouseAction2;\n    }\n  }\n}\nclass ProjectionManager {\n  constructor(camera) {\n    /**\n     * Event that fires when the {@link CameraProjection} changes.\n     */\n    __publicField(this, \"onChanged\", new Event());\n    /**\n     * Current projection mode of the camera.\n     * Default is \"Perspective\".\n     */\n    __publicField(this, \"current\", \"Perspective\");\n    /**\n     * The camera controlled by this ProjectionManager.\n     * It can be either a PerspectiveCamera or an OrthographicCamera.\n     */\n    __publicField(this, \"camera\");\n    /** Match Ortho zoom with Perspective distance when changing projection mode */\n    __publicField(this, \"matchOrthoDistanceEnabled\", false);\n    __publicField(this, \"_component\");\n    __publicField(this, \"_previousDistance\", -1);\n    this._component = camera;\n    this.camera = camera.three;\n  }\n  /**\n   * Sets the {@link CameraProjection} of the {@link OrthoPerspectiveCamera}.\n   *\n   * @param projection - the new projection to set. If it is the current projection,\n   * it will have no effect.\n   */\n  async set(projection) {\n    if (this.current === projection)\n      return;\n    if (projection === \"Orthographic\") {\n      this.setOrthoCamera();\n    } else {\n      await this.setPerspectiveCamera();\n    }\n    this.onChanged.trigger(this.camera);\n  }\n  /**\n   * Changes the current {@link CameraProjection} from Ortographic to Perspective\n   * and vice versa.\n   */\n  async toggle() {\n    const isPerspective = this.current === \"Perspective\";\n    const target = isPerspective ? \"Orthographic\" : \"Perspective\";\n    await this.set(target);\n  }\n  setOrthoCamera() {\n    if (this._component.mode === null)\n      return;\n    if (this._component.mode.id === \"FirstPerson\") {\n      return;\n    }\n    this._previousDistance = this._component.controls.distance;\n    this._component.controls.distance = 200;\n    const dims = this.getPerspectiveDims();\n    if (!dims) {\n      return;\n    }\n    const { width, height } = dims;\n    this.setupOrthoCamera(height, width);\n    this.camera = this._component.threeOrtho;\n    this.current = \"Orthographic\";\n  }\n  getPerspectiveDims() {\n    const world = this._component.currentWorld;\n    if (!world || !world.renderer) {\n      return null;\n    }\n    const lineOfSight = new THREE.Vector3();\n    this._component.threePersp.getWorldDirection(lineOfSight);\n    const target = new THREE.Vector3();\n    this._component.controls.getTarget(target);\n    const distance = target.clone().sub(this._component.threePersp.position);\n    const depth = distance.dot(lineOfSight);\n    const dims = world.renderer.getSize();\n    const aspect = dims.x / dims.y;\n    const camera = this._component.threePersp;\n    const height = depth * 2 * Math.atan(camera.fov * (Math.PI / 180) / 2);\n    const width = height * aspect;\n    return { width, height };\n  }\n  setupOrthoCamera(height, width) {\n    this._component.controls.mouseButtons.wheel = CameraControls.ACTION.ZOOM;\n    this._component.controls.mouseButtons.middle = CameraControls.ACTION.ZOOM;\n    const pCamera = this._component.threePersp;\n    const oCamera = this._component.threeOrtho;\n    oCamera.zoom = 1;\n    oCamera.left = width / -2;\n    oCamera.right = width / 2;\n    oCamera.top = height / 2;\n    oCamera.bottom = height / -2;\n    oCamera.updateProjectionMatrix();\n    oCamera.position.copy(pCamera.position);\n    oCamera.quaternion.copy(pCamera.quaternion);\n    this._component.controls.camera = oCamera;\n  }\n  getDistance() {\n    const pCamera = this._component.threePersp;\n    const oCamera = this._component.threeOrtho;\n    const depth = (oCamera.top - oCamera.bottom) / oCamera.zoom / (2 * Math.atan(pCamera.fov * (Math.PI / 180) / 2));\n    return depth;\n  }\n  async setPerspectiveCamera() {\n    this._component.controls.mouseButtons.wheel = CameraControls.ACTION.DOLLY;\n    this._component.controls.mouseButtons.middle = CameraControls.ACTION.DOLLY;\n    const pCamera = this._component.threePersp;\n    const oCamera = this._component.threeOrtho;\n    pCamera.position.copy(oCamera.position);\n    pCamera.quaternion.copy(oCamera.quaternion);\n    this._component.controls.mouseButtons.wheel = CameraControls.ACTION.DOLLY;\n    if (this.matchOrthoDistanceEnabled) {\n      this._component.controls.distance = this.getDistance();\n    } else {\n      this._component.controls.distance = this._previousDistance;\n    }\n    await this._component.controls.zoomTo(1);\n    pCamera.updateProjectionMatrix();\n    this._component.controls.camera = pCamera;\n    this.camera = pCamera;\n    this.current = \"Perspective\";\n  }\n}\nclass OrthoPerspectiveCamera extends SimpleCamera {\n  constructor(components) {\n    super(components);\n    /**\n     * A ProjectionManager instance that manages the projection modes of the camera.\n     */\n    __publicField(this, \"projection\");\n    /**\n     * A THREE.OrthographicCamera instance that represents the orthographic camera.\n     * This camera is used when the projection mode is set to orthographic.\n     */\n    __publicField(this, \"threeOrtho\");\n    /**\n     * A THREE.PerspectiveCamera instance that represents the perspective camera.\n     * This camera is used when the projection mode is set to perspective.\n     */\n    __publicField(this, \"threePersp\");\n    __publicField(this, \"_userInputButtons\", {});\n    __publicField(this, \"_frustumSize\", 50);\n    __publicField(this, \"_navigationModes\", /* @__PURE__ */ new Map());\n    __publicField(this, \"_mode\", null);\n    __publicField(this, \"previousSize\", null);\n    this.threePersp = this.three;\n    this.threeOrtho = this.newOrthoCamera();\n    this.projection = new ProjectionManager(this);\n    this.onAspectUpdated.add(() => {\n      this.setOrthoPerspCameraAspect();\n    });\n    this.projection.onChanged.add(\n      (camera) => {\n        this.three = camera;\n        this.updateAspect();\n      }\n    );\n    this.worlds.onItemSet.add(() => {\n      this._navigationModes.clear();\n      this._navigationModes.set(\"Orbit\", new OrbitMode(this));\n      this._navigationModes.set(\"FirstPerson\", new FirstPersonMode(this));\n      this._navigationModes.set(\"Plan\", new PlanMode(this));\n      this._mode = this._navigationModes.get(\"Orbit\");\n      this.mode.set(true, { preventTargetAdjustment: true });\n      if (this.currentWorld && this.currentWorld.renderer) {\n        this.previousSize = this.currentWorld.renderer.getSize().clone();\n      }\n    });\n    this.worlds.onItemDeleted.add(() => {\n      this._navigationModes.clear();\n    });\n  }\n  /**\n   * Getter for the current navigation mode.\n   * Throws an error if the mode is not found or the camera is not initialized.\n   *\n   * @returns {NavigationMode} The current navigation mode.\n   *\n   * @throws {Error} Throws an error if the mode is not found or the camera is not initialized.\n   */\n  get mode() {\n    if (!this._mode) {\n      throw new Error(\"Mode not found, camera not initialized\");\n    }\n    return this._mode;\n  }\n  /** {@link Disposable.dispose} */\n  dispose() {\n    super.dispose();\n    this.threeOrtho.removeFromParent();\n  }\n  /**\n   * Sets a new {@link NavigationMode} and disables the previous one.\n   *\n   * @param mode - The {@link NavigationMode} to set.\n   */\n  set(mode) {\n    if (this.mode === null)\n      return;\n    if (this.mode.id === mode)\n      return;\n    this.mode.set(false);\n    if (!this._navigationModes.has(mode)) {\n      throw new Error(\"The specified mode does not exist!\");\n    }\n    this._mode = this._navigationModes.get(mode);\n    this.mode.set(true);\n  }\n  /**\n   * Make the camera view fit all the specified meshes.\n   *\n   * @param meshes the meshes to fit. If it is not defined, it will\n   * evaluate {@link Components.meshes}.\n   * @param offset the distance to the fit object\n   */\n  async fit(meshes, offset = 1.5) {\n    if (!this.enabled)\n      return;\n    const maxNum = Number.MAX_VALUE;\n    const minNum = Number.MIN_VALUE;\n    const min = new THREE.Vector3(maxNum, maxNum, maxNum);\n    const max = new THREE.Vector3(minNum, minNum, minNum);\n    for (const mesh of meshes) {\n      const box2 = new THREE.Box3().setFromObject(mesh);\n      if (box2.min.x < min.x)\n        min.x = box2.min.x;\n      if (box2.min.y < min.y)\n        min.y = box2.min.y;\n      if (box2.min.z < min.z)\n        min.z = box2.min.z;\n      if (box2.max.x > max.x)\n        max.x = box2.max.x;\n      if (box2.max.y > max.y)\n        max.y = box2.max.y;\n      if (box2.max.z > max.z)\n        max.z = box2.max.z;\n    }\n    const box = new THREE.Box3(min, max);\n    const fragments = this.components.get(FragmentsManager);\n    if (fragments.initialized) {\n      for (const [, model] of fragments.list) {\n        const aabb = model.box;\n        if (aabb.min.x < min.x)\n          min.x = aabb.min.x;\n        if (aabb.min.y < min.y)\n          min.y = aabb.min.y;\n        if (aabb.min.z < min.z)\n          min.z = aabb.min.z;\n        if (aabb.max.x > max.x)\n          max.x = aabb.max.x;\n        if (aabb.max.y > max.y)\n          max.y = aabb.max.y;\n        if (aabb.max.z > max.z)\n          max.z = aabb.max.z;\n      }\n    }\n    const sceneSize = new THREE.Vector3();\n    box.getSize(sceneSize);\n    const sceneCenter = new THREE.Vector3();\n    box.getCenter(sceneCenter);\n    const radius = Math.max(sceneSize.x, sceneSize.y, sceneSize.z) * offset;\n    const sphere = new THREE.Sphere(sceneCenter, radius);\n    await this.controls.fitToSphere(sphere, true);\n  }\n  /**\n   * Allows or prevents all user input.\n   *\n   * @param active - whether to enable or disable user inputs.\n   */\n  setUserInput(active) {\n    if (active) {\n      this.enableUserInput();\n    } else {\n      this.disableUserInput();\n    }\n  }\n  /**\n   * Adds a custom {@link NavigationMode} to the camera that can be used using the {@link OrthoPerspectiveCamera.set} method.\n   *\n   * @param mode - The custom {@link NavigationMode} to add.\n   */\n  addCustomNavigationMode(mode) {\n    this._navigationModes.set(mode.id, mode);\n  }\n  disableUserInput() {\n    this._userInputButtons.left = this.controls.mouseButtons.left;\n    this._userInputButtons.right = this.controls.mouseButtons.right;\n    this._userInputButtons.middle = this.controls.mouseButtons.middle;\n    this._userInputButtons.wheel = this.controls.mouseButtons.wheel;\n    this.controls.mouseButtons.left = 0;\n    this.controls.mouseButtons.right = 0;\n    this.controls.mouseButtons.middle = 0;\n    this.controls.mouseButtons.wheel = 0;\n  }\n  enableUserInput() {\n    if (Object.keys(this._userInputButtons).length === 0)\n      return;\n    this.controls.mouseButtons.left = this._userInputButtons.left;\n    this.controls.mouseButtons.right = this._userInputButtons.right;\n    this.controls.mouseButtons.middle = this._userInputButtons.middle;\n    this.controls.mouseButtons.wheel = this._userInputButtons.wheel;\n  }\n  newOrthoCamera() {\n    const aspect = window.innerWidth / window.innerHeight;\n    return new THREE.OrthographicCamera(\n      this._frustumSize * aspect / -2,\n      this._frustumSize * aspect / 2,\n      this._frustumSize / 2,\n      this._frustumSize / -2,\n      0.1,\n      1e3\n    );\n  }\n  setOrthoPerspCameraAspect() {\n    if (!this.currentWorld || !this.currentWorld.renderer) {\n      return;\n    }\n    if (!this.previousSize)\n      return;\n    const size = this.currentWorld.renderer.getSize();\n    const previousHeight = this.threeOrtho.top;\n    const previousWidth = this.threeOrtho.right;\n    const heightSizeFactor = size.y / this.previousSize.y;\n    const widthSizeFactor = size.x / this.previousSize.x;\n    const newHeight = previousHeight * heightSizeFactor;\n    const newWidth = previousWidth * widthSizeFactor;\n    this.threeOrtho.left = -newWidth;\n    this.threeOrtho.right = newWidth;\n    this.threeOrtho.top = newHeight;\n    this.threeOrtho.bottom = -newHeight;\n    this.threeOrtho.updateProjectionMatrix();\n    this.previousSize.copy(size);\n  }\n}\nvar commonjsGlobal = typeof globalThis !== \"undefined\" ? globalThis : typeof window !== \"undefined\" ? window : typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : {};\nfunction getDefaultExportFromCjs(x) {\n  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, \"default\") ? x[\"default\"] : x;\n}\nfunction commonjsRequire(path) {\n  throw new Error('Could not dynamically require \"' + path + '\". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');\n}\nvar jszip_min = { exports: {} };\n/*!\n\nJSZip v3.10.1 - A JavaScript class for generating and reading zip files\n<http://stuartk.com/jszip>\n\n(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>\nDual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.\n\nJSZip uses the library pako released under the MIT license :\nhttps://github.com/nodeca/pako/blob/main/LICENSE\n*/\n(function(module, exports) {\n  !function(e) {\n    module.exports = e();\n  }(function() {\n    return function s(a, o, h) {\n      function u(r, e2) {\n        if (!o[r]) {\n          if (!a[r]) {\n            var t = \"function\" == typeof commonjsRequire && commonjsRequire;\n            if (!e2 && t)\n              return t(r, true);\n            if (l)\n              return l(r, true);\n            var n = new Error(\"Cannot find module '\" + r + \"'\");\n            throw n.code = \"MODULE_NOT_FOUND\", n;\n          }\n          var i = o[r] = { exports: {} };\n          a[r][0].call(i.exports, function(e3) {\n            var t2 = a[r][1][e3];\n            return u(t2 || e3);\n          }, i, i.exports, s, a, o, h);\n        }\n        return o[r].exports;\n      }\n      for (var l = \"function\" == typeof commonjsRequire && commonjsRequire, e = 0; e < h.length; e++)\n        u(h[e]);\n      return u;\n    }({ 1: [function(e, t, r) {\n      var d = e(\"./utils\"), c = e(\"./support\"), p = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n      r.encode = function(e2) {\n        for (var t2, r2, n, i, s, a, o, h = [], u = 0, l = e2.length, f = l, c2 = \"string\" !== d.getTypeOf(e2); u < e2.length; )\n          f = l - u, n = c2 ? (t2 = e2[u++], r2 = u < l ? e2[u++] : 0, u < l ? e2[u++] : 0) : (t2 = e2.charCodeAt(u++), r2 = u < l ? e2.charCodeAt(u++) : 0, u < l ? e2.charCodeAt(u++) : 0), i = t2 >> 2, s = (3 & t2) << 4 | r2 >> 4, a = 1 < f ? (15 & r2) << 2 | n >> 6 : 64, o = 2 < f ? 63 & n : 64, h.push(p.charAt(i) + p.charAt(s) + p.charAt(a) + p.charAt(o));\n        return h.join(\"\");\n      }, r.decode = function(e2) {\n        var t2, r2, n, i, s, a, o = 0, h = 0, u = \"data:\";\n        if (e2.substr(0, u.length) === u)\n          throw new Error(\"Invalid base64 input, it looks like a data url.\");\n        var l, f = 3 * (e2 = e2.replace(/[^A-Za-z0-9+/=]/g, \"\")).length / 4;\n        if (e2.charAt(e2.length - 1) === p.charAt(64) && f--, e2.charAt(e2.length - 2) === p.charAt(64) && f--, f % 1 != 0)\n          throw new Error(\"Invalid base64 input, bad content length.\");\n        for (l = c.uint8array ? new Uint8Array(0 | f) : new Array(0 | f); o < e2.length; )\n          t2 = p.indexOf(e2.charAt(o++)) << 2 | (i = p.indexOf(e2.charAt(o++))) >> 4, r2 = (15 & i) << 4 | (s = p.indexOf(e2.charAt(o++))) >> 2, n = (3 & s) << 6 | (a = p.indexOf(e2.charAt(o++))), l[h++] = t2, 64 !== s && (l[h++] = r2), 64 !== a && (l[h++] = n);\n        return l;\n      };\n    }, { \"./support\": 30, \"./utils\": 32 }], 2: [function(e, t, r) {\n      var n = e(\"./external\"), i = e(\"./stream/DataWorker\"), s = e(\"./stream/Crc32Probe\"), a = e(\"./stream/DataLengthProbe\");\n      function o(e2, t2, r2, n2, i2) {\n        this.compressedSize = e2, this.uncompressedSize = t2, this.crc32 = r2, this.compression = n2, this.compressedContent = i2;\n      }\n      o.prototype = { getContentWorker: function() {\n        var e2 = new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a(\"data_length\")), t2 = this;\n        return e2.on(\"end\", function() {\n          if (this.streamInfo.data_length !== t2.uncompressedSize)\n            throw new Error(\"Bug : uncompressed data size mismatch\");\n        }), e2;\n      }, getCompressedWorker: function() {\n        return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo(\"compressedSize\", this.compressedSize).withStreamInfo(\"uncompressedSize\", this.uncompressedSize).withStreamInfo(\"crc32\", this.crc32).withStreamInfo(\"compression\", this.compression);\n      } }, o.createWorkerFrom = function(e2, t2, r2) {\n        return e2.pipe(new s()).pipe(new a(\"uncompressedSize\")).pipe(t2.compressWorker(r2)).pipe(new a(\"compressedSize\")).withStreamInfo(\"compression\", t2);\n      }, t.exports = o;\n    }, { \"./external\": 6, \"./stream/Crc32Probe\": 25, \"./stream/DataLengthProbe\": 26, \"./stream/DataWorker\": 27 }], 3: [function(e, t, r) {\n      var n = e(\"./stream/GenericWorker\");\n      r.STORE = { magic: \"\\0\\0\", compressWorker: function() {\n        return new n(\"STORE compression\");\n      }, uncompressWorker: function() {\n        return new n(\"STORE decompression\");\n      } }, r.DEFLATE = e(\"./flate\");\n    }, { \"./flate\": 7, \"./stream/GenericWorker\": 28 }], 4: [function(e, t, r) {\n      var n = e(\"./utils\");\n      var o = function() {\n        for (var e2, t2 = [], r2 = 0; r2 < 256; r2++) {\n          e2 = r2;\n          for (var n2 = 0; n2 < 8; n2++)\n            e2 = 1 & e2 ? 3988292384 ^ e2 >>> 1 : e2 >>> 1;\n          t2[r2] = e2;\n        }\n        return t2;\n      }();\n      t.exports = function(e2, t2) {\n        return void 0 !== e2 && e2.length ? \"string\" !== n.getTypeOf(e2) ? function(e3, t3, r2, n2) {\n          var i = o, s = n2 + r2;\n          e3 ^= -1;\n          for (var a = n2; a < s; a++)\n            e3 = e3 >>> 8 ^ i[255 & (e3 ^ t3[a])];\n          return -1 ^ e3;\n        }(0 | t2, e2, e2.length, 0) : function(e3, t3, r2, n2) {\n          var i = o, s = n2 + r2;\n          e3 ^= -1;\n          for (var a = n2; a < s; a++)\n            e3 = e3 >>> 8 ^ i[255 & (e3 ^ t3.charCodeAt(a))];\n          return -1 ^ e3;\n        }(0 | t2, e2, e2.length, 0) : 0;\n      };\n    }, { \"./utils\": 32 }], 5: [function(e, t, r) {\n      r.base64 = false, r.binary = false, r.dir = false, r.createFolders = true, r.date = null, r.compression = null, r.compressionOptions = null, r.comment = null, r.unixPermissions = null, r.dosPermissions = null;\n    }, {}], 6: [function(e, t, r) {\n      var n = null;\n      n = \"undefined\" != typeof Promise ? Promise : e(\"lie\"), t.exports = { Promise: n };\n    }, { lie: 37 }], 7: [function(e, t, r) {\n      var n = \"undefined\" != typeof Uint8Array && \"undefined\" != typeof Uint16Array && \"undefined\" != typeof Uint32Array, i = e(\"pako\"), s = e(\"./utils\"), a = e(\"./stream/GenericWorker\"), o = n ? \"uint8array\" : \"array\";\n      function h(e2, t2) {\n        a.call(this, \"FlateWorker/\" + e2), this._pako = null, this._pakoAction = e2, this._pakoOptions = t2, this.meta = {};\n      }\n      r.magic = \"\\b\\0\", s.inherits(h, a), h.prototype.processChunk = function(e2) {\n        this.meta = e2.meta, null === this._pako && this._createPako(), this._pako.push(s.transformTo(o, e2.data), false);\n      }, h.prototype.flush = function() {\n        a.prototype.flush.call(this), null === this._pako && this._createPako(), this._pako.push([], true);\n      }, h.prototype.cleanUp = function() {\n        a.prototype.cleanUp.call(this), this._pako = null;\n      }, h.prototype._createPako = function() {\n        this._pako = new i[this._pakoAction]({ raw: true, level: this._pakoOptions.level || -1 });\n        var t2 = this;\n        this._pako.onData = function(e2) {\n          t2.push({ data: e2, meta: t2.meta });\n        };\n      }, r.compressWorker = function(e2) {\n        return new h(\"Deflate\", e2);\n      }, r.uncompressWorker = function() {\n        return new h(\"Inflate\", {});\n      };\n    }, { \"./stream/GenericWorker\": 28, \"./utils\": 32, pako: 38 }], 8: [function(e, t, r) {\n      function A(e2, t2) {\n        var r2, n2 = \"\";\n        for (r2 = 0; r2 < t2; r2++)\n          n2 += String.fromCharCode(255 & e2), e2 >>>= 8;\n        return n2;\n      }\n      function n(e2, t2, r2, n2, i2, s2) {\n        var a, o, h = e2.file, u = e2.compression, l = s2 !== O.utf8encode, f = I.transformTo(\"string\", s2(h.name)), c = I.transformTo(\"string\", O.utf8encode(h.name)), d = h.comment, p = I.transformTo(\"string\", s2(d)), m = I.transformTo(\"string\", O.utf8encode(d)), _ = c.length !== h.name.length, g = m.length !== d.length, b = \"\", v = \"\", y = \"\", w = h.dir, k = h.date, x = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };\n        t2 && !r2 || (x.crc32 = e2.crc32, x.compressedSize = e2.compressedSize, x.uncompressedSize = e2.uncompressedSize);\n        var S = 0;\n        t2 && (S |= 8), l || !_ && !g || (S |= 2048);\n        var z = 0, C = 0;\n        w && (z |= 16), \"UNIX\" === i2 ? (C = 798, z |= function(e3, t3) {\n          var r3 = e3;\n          return e3 || (r3 = t3 ? 16893 : 33204), (65535 & r3) << 16;\n        }(h.unixPermissions, w)) : (C = 20, z |= function(e3) {\n          return 63 & (e3 || 0);\n        }(h.dosPermissions)), a = k.getUTCHours(), a <<= 6, a |= k.getUTCMinutes(), a <<= 5, a |= k.getUTCSeconds() / 2, o = k.getUTCFullYear() - 1980, o <<= 4, o |= k.getUTCMonth() + 1, o <<= 5, o |= k.getUTCDate(), _ && (v = A(1, 1) + A(B(f), 4) + c, b += \"up\" + A(v.length, 2) + v), g && (y = A(1, 1) + A(B(p), 4) + m, b += \"uc\" + A(y.length, 2) + y);\n        var E = \"\";\n        return E += \"\\n\\0\", E += A(S, 2), E += u.magic, E += A(a, 2), E += A(o, 2), E += A(x.crc32, 4), E += A(x.compressedSize, 4), E += A(x.uncompressedSize, 4), E += A(f.length, 2), E += A(b.length, 2), { fileRecord: R.LOCAL_FILE_HEADER + E + f + b, dirRecord: R.CENTRAL_FILE_HEADER + A(C, 2) + E + A(p.length, 2) + \"\\0\\0\\0\\0\" + A(z, 4) + A(n2, 4) + f + b + p };\n      }\n      var I = e(\"../utils\"), i = e(\"../stream/GenericWorker\"), O = e(\"../utf8\"), B = e(\"../crc32\"), R = e(\"../signature\");\n      function s(e2, t2, r2, n2) {\n        i.call(this, \"ZipFileWorker\"), this.bytesWritten = 0, this.zipComment = t2, this.zipPlatform = r2, this.encodeFileName = n2, this.streamFiles = e2, this.accumulate = false, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];\n      }\n      I.inherits(s, i), s.prototype.push = function(e2) {\n        var t2 = e2.meta.percent || 0, r2 = this.entriesCount, n2 = this._sources.length;\n        this.accumulate ? this.contentBuffer.push(e2) : (this.bytesWritten += e2.data.length, i.prototype.push.call(this, { data: e2.data, meta: { currentFile: this.currentFile, percent: r2 ? (t2 + 100 * (r2 - n2 - 1)) / r2 : 100 } }));\n      }, s.prototype.openedSource = function(e2) {\n        this.currentSourceOffset = this.bytesWritten, this.currentFile = e2.file.name;\n        var t2 = this.streamFiles && !e2.file.dir;\n        if (t2) {\n          var r2 = n(e2, t2, false, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);\n          this.push({ data: r2.fileRecord, meta: { percent: 0 } });\n        } else\n          this.accumulate = true;\n      }, s.prototype.closedSource = function(e2) {\n        this.accumulate = false;\n        var t2 = this.streamFiles && !e2.file.dir, r2 = n(e2, t2, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);\n        if (this.dirRecords.push(r2.dirRecord), t2)\n          this.push({ data: function(e3) {\n            return R.DATA_DESCRIPTOR + A(e3.crc32, 4) + A(e3.compressedSize, 4) + A(e3.uncompressedSize, 4);\n          }(e2), meta: { percent: 100 } });\n        else\n          for (this.push({ data: r2.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; )\n            this.push(this.contentBuffer.shift());\n        this.currentFile = null;\n      }, s.prototype.flush = function() {\n        for (var e2 = this.bytesWritten, t2 = 0; t2 < this.dirRecords.length; t2++)\n          this.push({ data: this.dirRecords[t2], meta: { percent: 100 } });\n        var r2 = this.bytesWritten - e2, n2 = function(e3, t3, r3, n3, i2) {\n          var s2 = I.transformTo(\"string\", i2(n3));\n          return R.CENTRAL_DIRECTORY_END + \"\\0\\0\\0\\0\" + A(e3, 2) + A(e3, 2) + A(t3, 4) + A(r3, 4) + A(s2.length, 2) + s2;\n        }(this.dirRecords.length, r2, e2, this.zipComment, this.encodeFileName);\n        this.push({ data: n2, meta: { percent: 100 } });\n      }, s.prototype.prepareNextSource = function() {\n        this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();\n      }, s.prototype.registerPrevious = function(e2) {\n        this._sources.push(e2);\n        var t2 = this;\n        return e2.on(\"data\", function(e3) {\n          t2.processChunk(e3);\n        }), e2.on(\"end\", function() {\n          t2.closedSource(t2.previous.streamInfo), t2._sources.length ? t2.prepareNextSource() : t2.end();\n        }), e2.on(\"error\", function(e3) {\n          t2.error(e3);\n        }), this;\n      }, s.prototype.resume = function() {\n        return !!i.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), true) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), true));\n      }, s.prototype.error = function(e2) {\n        var t2 = this._sources;\n        if (!i.prototype.error.call(this, e2))\n          return false;\n        for (var r2 = 0; r2 < t2.length; r2++)\n          try {\n            t2[r2].error(e2);\n          } catch (e3) {\n          }\n        return true;\n      }, s.prototype.lock = function() {\n        i.prototype.lock.call(this);\n        for (var e2 = this._sources, t2 = 0; t2 < e2.length; t2++)\n          e2[t2].lock();\n      }, t.exports = s;\n    }, { \"../crc32\": 4, \"../signature\": 23, \"../stream/GenericWorker\": 28, \"../utf8\": 31, \"../utils\": 32 }], 9: [function(e, t, r) {\n      var u = e(\"../compressions\"), n = e(\"./ZipFileWorker\");\n      r.generateWorker = function(e2, a, t2) {\n        var o = new n(a.streamFiles, t2, a.platform, a.encodeFileName), h = 0;\n        try {\n          e2.forEach(function(e3, t3) {\n            h++;\n            var r2 = function(e4, t4) {\n              var r3 = e4 || t4, n3 = u[r3];\n              if (!n3)\n                throw new Error(r3 + \" is not a valid compression method !\");\n              return n3;\n            }(t3.options.compression, a.compression), n2 = t3.options.compressionOptions || a.compressionOptions || {}, i = t3.dir, s = t3.date;\n            t3._compressWorker(r2, n2).withStreamInfo(\"file\", { name: e3, dir: i, date: s, comment: t3.comment || \"\", unixPermissions: t3.unixPermissions, dosPermissions: t3.dosPermissions }).pipe(o);\n          }), o.entriesCount = h;\n        } catch (e3) {\n          o.error(e3);\n        }\n        return o;\n      };\n    }, { \"../compressions\": 3, \"./ZipFileWorker\": 8 }], 10: [function(e, t, r) {\n      function n() {\n        if (!(this instanceof n))\n          return new n();\n        if (arguments.length)\n          throw new Error(\"The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.\");\n        this.files = /* @__PURE__ */ Object.create(null), this.comment = null, this.root = \"\", this.clone = function() {\n          var e2 = new n();\n          for (var t2 in this)\n            \"function\" != typeof this[t2] && (e2[t2] = this[t2]);\n          return e2;\n        };\n      }\n      (n.prototype = e(\"./object\")).loadAsync = e(\"./load\"), n.support = e(\"./support\"), n.defaults = e(\"./defaults\"), n.version = \"3.10.1\", n.loadAsync = function(e2, t2) {\n        return new n().loadAsync(e2, t2);\n      }, n.external = e(\"./external\"), t.exports = n;\n    }, { \"./defaults\": 5, \"./external\": 6, \"./load\": 11, \"./object\": 15, \"./support\": 30 }], 11: [function(e, t, r) {\n      var u = e(\"./utils\"), i = e(\"./external\"), n = e(\"./utf8\"), s = e(\"./zipEntries\"), a = e(\"./stream/Crc32Probe\"), l = e(\"./nodejsUtils\");\n      function f(n2) {\n        return new i.Promise(function(e2, t2) {\n          var r2 = n2.decompressed.getContentWorker().pipe(new a());\n          r2.on(\"error\", function(e3) {\n            t2(e3);\n          }).on(\"end\", function() {\n            r2.streamInfo.crc32 !== n2.decompressed.crc32 ? t2(new Error(\"Corrupted zip : CRC32 mismatch\")) : e2();\n          }).resume();\n        });\n      }\n      t.exports = function(e2, o) {\n        var h = this;\n        return o = u.extend(o || {}, { base64: false, checkCRC32: false, optimizedBinaryString: false, createFolders: false, decodeFileName: n.utf8decode }), l.isNode && l.isStream(e2) ? i.Promise.reject(new Error(\"JSZip can't accept a stream when loading a zip file.\")) : u.prepareContent(\"the loaded zip file\", e2, true, o.optimizedBinaryString, o.base64).then(function(e3) {\n          var t2 = new s(o);\n          return t2.load(e3), t2;\n        }).then(function(e3) {\n          var t2 = [i.Promise.resolve(e3)], r2 = e3.files;\n          if (o.checkCRC32)\n            for (var n2 = 0; n2 < r2.length; n2++)\n              t2.push(f(r2[n2]));\n          return i.Promise.all(t2);\n        }).then(function(e3) {\n          for (var t2 = e3.shift(), r2 = t2.files, n2 = 0; n2 < r2.length; n2++) {\n            var i2 = r2[n2], s2 = i2.fileNameStr, a2 = u.resolve(i2.fileNameStr);\n            h.file(a2, i2.decompressed, { binary: true, optimizedBinaryString: true, date: i2.date, dir: i2.dir, comment: i2.fileCommentStr.length ? i2.fileCommentStr : null, unixPermissions: i2.unixPermissions, dosPermissions: i2.dosPermissions, createFolders: o.createFolders }), i2.dir || (h.file(a2).unsafeOriginalName = s2);\n          }\n          return t2.zipComment.length && (h.comment = t2.zipComment), h;\n        });\n      };\n    }, { \"./external\": 6, \"./nodejsUtils\": 14, \"./stream/Crc32Probe\": 25, \"./utf8\": 31, \"./utils\": 32, \"./zipEntries\": 33 }], 12: [function(e, t, r) {\n      var n = e(\"../utils\"), i = e(\"../stream/GenericWorker\");\n      function s(e2, t2) {\n        i.call(this, \"Nodejs stream input adapter for \" + e2), this._upstreamEnded = false, this._bindStream(t2);\n      }\n      n.inherits(s, i), s.prototype._bindStream = function(e2) {\n        var t2 = this;\n        (this._stream = e2).pause(), e2.on(\"data\", function(e3) {\n          t2.push({ data: e3, meta: { percent: 0 } });\n        }).on(\"error\", function(e3) {\n          t2.isPaused ? this.generatedError = e3 : t2.error(e3);\n        }).on(\"end\", function() {\n          t2.isPaused ? t2._upstreamEnded = true : t2.end();\n        });\n      }, s.prototype.pause = function() {\n        return !!i.prototype.pause.call(this) && (this._stream.pause(), true);\n      }, s.prototype.resume = function() {\n        return !!i.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), true);\n      }, t.exports = s;\n    }, { \"../stream/GenericWorker\": 28, \"../utils\": 32 }], 13: [function(e, t, r) {\n      var i = e(\"readable-stream\").Readable;\n      function n(e2, t2, r2) {\n        i.call(this, t2), this._helper = e2;\n        var n2 = this;\n        e2.on(\"data\", function(e3, t3) {\n          n2.push(e3) || n2._helper.pause(), r2 && r2(t3);\n        }).on(\"error\", function(e3) {\n          n2.emit(\"error\", e3);\n        }).on(\"end\", function() {\n          n2.push(null);\n        });\n      }\n      e(\"../utils\").inherits(n, i), n.prototype._read = function() {\n        this._helper.resume();\n      }, t.exports = n;\n    }, { \"../utils\": 32, \"readable-stream\": 16 }], 14: [function(e, t, r) {\n      t.exports = { isNode: \"undefined\" != typeof Buffer, newBufferFrom: function(e2, t2) {\n        if (Buffer.from && Buffer.from !== Uint8Array.from)\n          return Buffer.from(e2, t2);\n        if (\"number\" == typeof e2)\n          throw new Error('The \"data\" argument must not be a number');\n        return new Buffer(e2, t2);\n      }, allocBuffer: function(e2) {\n        if (Buffer.alloc)\n          return Buffer.alloc(e2);\n        var t2 = new Buffer(e2);\n        return t2.fill(0), t2;\n      }, isBuffer: function(e2) {\n        return Buffer.isBuffer(e2);\n      }, isStream: function(e2) {\n        return e2 && \"function\" == typeof e2.on && \"function\" == typeof e2.pause && \"function\" == typeof e2.resume;\n      } };\n    }, {}], 15: [function(e, t, r) {\n      function s(e2, t2, r2) {\n        var n2, i2 = u.getTypeOf(t2), s2 = u.extend(r2 || {}, f);\n        s2.date = s2.date || /* @__PURE__ */ new Date(), null !== s2.compression && (s2.compression = s2.compression.toUpperCase()), \"string\" == typeof s2.unixPermissions && (s2.unixPermissions = parseInt(s2.unixPermissions, 8)), s2.unixPermissions && 16384 & s2.unixPermissions && (s2.dir = true), s2.dosPermissions && 16 & s2.dosPermissions && (s2.dir = true), s2.dir && (e2 = g(e2)), s2.createFolders && (n2 = _(e2)) && b.call(this, n2, true);\n        var a2 = \"string\" === i2 && false === s2.binary && false === s2.base64;\n        r2 && void 0 !== r2.binary || (s2.binary = !a2), (t2 instanceof c && 0 === t2.uncompressedSize || s2.dir || !t2 || 0 === t2.length) && (s2.base64 = false, s2.binary = true, t2 = \"\", s2.compression = \"STORE\", i2 = \"string\");\n        var o2 = null;\n        o2 = t2 instanceof c || t2 instanceof l ? t2 : p.isNode && p.isStream(t2) ? new m(e2, t2) : u.prepareContent(e2, t2, s2.binary, s2.optimizedBinaryString, s2.base64);\n        var h2 = new d(e2, o2, s2);\n        this.files[e2] = h2;\n      }\n      var i = e(\"./utf8\"), u = e(\"./utils\"), l = e(\"./stream/GenericWorker\"), a = e(\"./stream/StreamHelper\"), f = e(\"./defaults\"), c = e(\"./compressedObject\"), d = e(\"./zipObject\"), o = e(\"./generate\"), p = e(\"./nodejsUtils\"), m = e(\"./nodejs/NodejsStreamInputAdapter\"), _ = function(e2) {\n        \"/\" === e2.slice(-1) && (e2 = e2.substring(0, e2.length - 1));\n        var t2 = e2.lastIndexOf(\"/\");\n        return 0 < t2 ? e2.substring(0, t2) : \"\";\n      }, g = function(e2) {\n        return \"/\" !== e2.slice(-1) && (e2 += \"/\"), e2;\n      }, b = function(e2, t2) {\n        return t2 = void 0 !== t2 ? t2 : f.createFolders, e2 = g(e2), this.files[e2] || s.call(this, e2, null, { dir: true, createFolders: t2 }), this.files[e2];\n      };\n      function h(e2) {\n        return \"[object RegExp]\" === Object.prototype.toString.call(e2);\n      }\n      var n = { load: function() {\n        throw new Error(\"This method has been removed in JSZip 3.0, please check the upgrade guide.\");\n      }, forEach: function(e2) {\n        var t2, r2, n2;\n        for (t2 in this.files)\n          n2 = this.files[t2], (r2 = t2.slice(this.root.length, t2.length)) && t2.slice(0, this.root.length) === this.root && e2(r2, n2);\n      }, filter: function(r2) {\n        var n2 = [];\n        return this.forEach(function(e2, t2) {\n          r2(e2, t2) && n2.push(t2);\n        }), n2;\n      }, file: function(e2, t2, r2) {\n        if (1 !== arguments.length)\n          return e2 = this.root + e2, s.call(this, e2, t2, r2), this;\n        if (h(e2)) {\n          var n2 = e2;\n          return this.filter(function(e3, t3) {\n            return !t3.dir && n2.test(e3);\n          });\n        }\n        var i2 = this.files[this.root + e2];\n        return i2 && !i2.dir ? i2 : null;\n      }, folder: function(r2) {\n        if (!r2)\n          return this;\n        if (h(r2))\n          return this.filter(function(e3, t3) {\n            return t3.dir && r2.test(e3);\n          });\n        var e2 = this.root + r2, t2 = b.call(this, e2), n2 = this.clone();\n        return n2.root = t2.name, n2;\n      }, remove: function(r2) {\n        r2 = this.root + r2;\n        var e2 = this.files[r2];\n        if (e2 || (\"/\" !== r2.slice(-1) && (r2 += \"/\"), e2 = this.files[r2]), e2 && !e2.dir)\n          delete this.files[r2];\n        else\n          for (var t2 = this.filter(function(e3, t3) {\n            return t3.name.slice(0, r2.length) === r2;\n          }), n2 = 0; n2 < t2.length; n2++)\n            delete this.files[t2[n2].name];\n        return this;\n      }, generate: function() {\n        throw new Error(\"This method has been removed in JSZip 3.0, please check the upgrade guide.\");\n      }, generateInternalStream: function(e2) {\n        var t2, r2 = {};\n        try {\n          if ((r2 = u.extend(e2 || {}, { streamFiles: false, compression: \"STORE\", compressionOptions: null, type: \"\", platform: \"DOS\", comment: null, mimeType: \"application/zip\", encodeFileName: i.utf8encode })).type = r2.type.toLowerCase(), r2.compression = r2.compression.toUpperCase(), \"binarystring\" === r2.type && (r2.type = \"string\"), !r2.type)\n            throw new Error(\"No output type specified.\");\n          u.checkSupport(r2.type), \"darwin\" !== r2.platform && \"freebsd\" !== r2.platform && \"linux\" !== r2.platform && \"sunos\" !== r2.platform || (r2.platform = \"UNIX\"), \"win32\" === r2.platform && (r2.platform = \"DOS\");\n          var n2 = r2.comment || this.comment || \"\";\n          t2 = o.generateWorker(this, r2, n2);\n        } catch (e3) {\n          (t2 = new l(\"error\")).error(e3);\n        }\n        return new a(t2, r2.type || \"string\", r2.mimeType);\n      }, generateAsync: function(e2, t2) {\n        return this.generateInternalStream(e2).accumulate(t2);\n      }, generateNodeStream: function(e2, t2) {\n        return (e2 = e2 || {}).type || (e2.type = \"nodebuffer\"), this.generateInternalStream(e2).toNodejsStream(t2);\n      } };\n      t.exports = n;\n    }, { \"./compressedObject\": 2, \"./defaults\": 5, \"./generate\": 9, \"./nodejs/NodejsStreamInputAdapter\": 12, \"./nodejsUtils\": 14, \"./stream/GenericWorker\": 28, \"./stream/StreamHelper\": 29, \"./utf8\": 31, \"./utils\": 32, \"./zipObject\": 35 }], 16: [function(e, t, r) {\n      t.exports = e(\"stream\");\n    }, { stream: void 0 }], 17: [function(e, t, r) {\n      var n = e(\"./DataReader\");\n      function i(e2) {\n        n.call(this, e2);\n        for (var t2 = 0; t2 < this.data.length; t2++)\n          e2[t2] = 255 & e2[t2];\n      }\n      e(\"../utils\").inherits(i, n), i.prototype.byteAt = function(e2) {\n        return this.data[this.zero + e2];\n      }, i.prototype.lastIndexOfSignature = function(e2) {\n        for (var t2 = e2.charCodeAt(0), r2 = e2.charCodeAt(1), n2 = e2.charCodeAt(2), i2 = e2.charCodeAt(3), s = this.length - 4; 0 <= s; --s)\n          if (this.data[s] === t2 && this.data[s + 1] === r2 && this.data[s + 2] === n2 && this.data[s + 3] === i2)\n            return s - this.zero;\n        return -1;\n      }, i.prototype.readAndCheckSignature = function(e2) {\n        var t2 = e2.charCodeAt(0), r2 = e2.charCodeAt(1), n2 = e2.charCodeAt(2), i2 = e2.charCodeAt(3), s = this.readData(4);\n        return t2 === s[0] && r2 === s[1] && n2 === s[2] && i2 === s[3];\n      }, i.prototype.readData = function(e2) {\n        if (this.checkOffset(e2), 0 === e2)\n          return [];\n        var t2 = this.data.slice(this.zero + this.index, this.zero + this.index + e2);\n        return this.index += e2, t2;\n      }, t.exports = i;\n    }, { \"../utils\": 32, \"./DataReader\": 18 }], 18: [function(e, t, r) {\n      var n = e(\"../utils\");\n      function i(e2) {\n        this.data = e2, this.length = e2.length, this.index = 0, this.zero = 0;\n      }\n      i.prototype = { checkOffset: function(e2) {\n        this.checkIndex(this.index + e2);\n      }, checkIndex: function(e2) {\n        if (this.length < this.zero + e2 || e2 < 0)\n          throw new Error(\"End of data reached (data length = \" + this.length + \", asked index = \" + e2 + \"). Corrupted zip ?\");\n      }, setIndex: function(e2) {\n        this.checkIndex(e2), this.index = e2;\n      }, skip: function(e2) {\n        this.setIndex(this.index + e2);\n      }, byteAt: function() {\n      }, readInt: function(e2) {\n        var t2, r2 = 0;\n        for (this.checkOffset(e2), t2 = this.index + e2 - 1; t2 >= this.index; t2--)\n          r2 = (r2 << 8) + this.byteAt(t2);\n        return this.index += e2, r2;\n      }, readString: function(e2) {\n        return n.transformTo(\"string\", this.readData(e2));\n      }, readData: function() {\n      }, lastIndexOfSignature: function() {\n      }, readAndCheckSignature: function() {\n      }, readDate: function() {\n        var e2 = this.readInt(4);\n        return new Date(Date.UTC(1980 + (e2 >> 25 & 127), (e2 >> 21 & 15) - 1, e2 >> 16 & 31, e2 >> 11 & 31, e2 >> 5 & 63, (31 & e2) << 1));\n      } }, t.exports = i;\n    }, { \"../utils\": 32 }], 19: [function(e, t, r) {\n      var n = e(\"./Uint8ArrayReader\");\n      function i(e2) {\n        n.call(this, e2);\n      }\n      e(\"../utils\").inherits(i, n), i.prototype.readData = function(e2) {\n        this.checkOffset(e2);\n        var t2 = this.data.slice(this.zero + this.index, this.zero + this.index + e2);\n        return this.index += e2, t2;\n      }, t.exports = i;\n    }, { \"../utils\": 32, \"./Uint8ArrayReader\": 21 }], 20: [function(e, t, r) {\n      var n = e(\"./DataReader\");\n      function i(e2) {\n        n.call(this, e2);\n      }\n      e(\"../utils\").inherits(i, n), i.prototype.byteAt = function(e2) {\n        return this.data.charCodeAt(this.zero + e2);\n      }, i.prototype.lastIndexOfSignature = function(e2) {\n        return this.data.lastIndexOf(e2) - this.zero;\n      }, i.prototype.readAndCheckSignature = function(e2) {\n        return e2 === this.readData(4);\n      }, i.prototype.readData = function(e2) {\n        this.checkOffset(e2);\n        var t2 = this.data.slice(this.zero + this.index, this.zero + this.index + e2);\n        return this.index += e2, t2;\n      }, t.exports = i;\n    }, { \"../utils\": 32, \"./DataReader\": 18 }], 21: [function(e, t, r) {\n      var n = e(\"./ArrayReader\");\n      function i(e2) {\n        n.call(this, e2);\n      }\n      e(\"../utils\").inherits(i, n), i.prototype.readData = function(e2) {\n        if (this.checkOffset(e2), 0 === e2)\n          return new Uint8Array(0);\n        var t2 = this.data.subarray(this.zero + this.index, this.zero + this.index + e2);\n        return this.index += e2, t2;\n      }, t.exports = i;\n    }, { \"../utils\": 32, \"./ArrayReader\": 17 }], 22: [function(e, t, r) {\n      var n = e(\"../utils\"), i = e(\"../support\"), s = e(\"./ArrayReader\"), a = e(\"./StringReader\"), o = e(\"./NodeBufferReader\"), h = e(\"./Uint8ArrayReader\");\n      t.exports = function(e2) {\n        var t2 = n.getTypeOf(e2);\n        return n.checkSupport(t2), \"string\" !== t2 || i.uint8array ? \"nodebuffer\" === t2 ? new o(e2) : i.uint8array ? new h(n.transformTo(\"uint8array\", e2)) : new s(n.transformTo(\"array\", e2)) : new a(e2);\n      };\n    }, { \"../support\": 30, \"../utils\": 32, \"./ArrayReader\": 17, \"./NodeBufferReader\": 19, \"./StringReader\": 20, \"./Uint8ArrayReader\": 21 }], 23: [function(e, t, r) {\n      r.LOCAL_FILE_HEADER = \"PK\u0003\u0004\", r.CENTRAL_FILE_HEADER = \"PK\u0001\u0002\", r.CENTRAL_DIRECTORY_END = \"PK\u0005\u0006\", r.ZIP64_CENTRAL_DIRECTORY_LOCATOR = \"PK\u0006\\x07\", r.ZIP64_CENTRAL_DIRECTORY_END = \"PK\u0006\u0006\", r.DATA_DESCRIPTOR = \"PK\\x07\\b\";\n    }, {}], 24: [function(e, t, r) {\n      var n = e(\"./GenericWorker\"), i = e(\"../utils\");\n      function s(e2) {\n        n.call(this, \"ConvertWorker to \" + e2), this.destType = e2;\n      }\n      i.inherits(s, n), s.prototype.processChunk = function(e2) {\n        this.push({ data: i.transformTo(this.destType, e2.data), meta: e2.meta });\n      }, t.exports = s;\n    }, { \"../utils\": 32, \"./GenericWorker\": 28 }], 25: [function(e, t, r) {\n      var n = e(\"./GenericWorker\"), i = e(\"../crc32\");\n      function s() {\n        n.call(this, \"Crc32Probe\"), this.withStreamInfo(\"crc32\", 0);\n      }\n      e(\"../utils\").inherits(s, n), s.prototype.processChunk = function(e2) {\n        this.streamInfo.crc32 = i(e2.data, this.streamInfo.crc32 || 0), this.push(e2);\n      }, t.exports = s;\n    }, { \"../crc32\": 4, \"../utils\": 32, \"./GenericWorker\": 28 }], 26: [function(e, t, r) {\n      var n = e(\"../utils\"), i = e(\"./GenericWorker\");\n      function s(e2) {\n        i.call(this, \"DataLengthProbe for \" + e2), this.propName = e2, this.withStreamInfo(e2, 0);\n      }\n      n.inherits(s, i), s.prototype.processChunk = function(e2) {\n        if (e2) {\n          var t2 = this.streamInfo[this.propName] || 0;\n          this.streamInfo[this.propName] = t2 + e2.data.length;\n        }\n        i.prototype.processChunk.call(this, e2);\n      }, t.exports = s;\n    }, { \"../utils\": 32, \"./GenericWorker\": 28 }], 27: [function(e, t, r) {\n      var n = e(\"../utils\"), i = e(\"./GenericWorker\");\n      function s(e2) {\n        i.call(this, \"DataWorker\");\n        var t2 = this;\n        this.dataIsReady = false, this.index = 0, this.max = 0, this.data = null, this.type = \"\", this._tickScheduled = false, e2.then(function(e3) {\n          t2.dataIsReady = true, t2.data = e3, t2.max = e3 && e3.length || 0, t2.type = n.getTypeOf(e3), t2.isPaused || t2._tickAndRepeat();\n        }, function(e3) {\n          t2.error(e3);\n        });\n      }\n      n.inherits(s, i), s.prototype.cleanUp = function() {\n        i.prototype.cleanUp.call(this), this.data = null;\n      }, s.prototype.resume = function() {\n        return !!i.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = true, n.delay(this._tickAndRepeat, [], this)), true);\n      }, s.prototype._tickAndRepeat = function() {\n        this._tickScheduled = false, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (n.delay(this._tickAndRepeat, [], this), this._tickScheduled = true));\n      }, s.prototype._tick = function() {\n        if (this.isPaused || this.isFinished)\n          return false;\n        var e2 = null, t2 = Math.min(this.max, this.index + 16384);\n        if (this.index >= this.max)\n          return this.end();\n        switch (this.type) {\n          case \"string\":\n            e2 = this.data.substring(this.index, t2);\n            break;\n          case \"uint8array\":\n            e2 = this.data.subarray(this.index, t2);\n            break;\n          case \"array\":\n          case \"nodebuffer\":\n            e2 = this.data.slice(this.index, t2);\n        }\n        return this.index = t2, this.push({ data: e2, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });\n      }, t.exports = s;\n    }, { \"../utils\": 32, \"./GenericWorker\": 28 }], 28: [function(e, t, r) {\n      function n(e2) {\n        this.name = e2 || \"default\", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = true, this.isFinished = false, this.isLocked = false, this._listeners = { data: [], end: [], error: [] }, this.previous = null;\n      }\n      n.prototype = { push: function(e2) {\n        this.emit(\"data\", e2);\n      }, end: function() {\n        if (this.isFinished)\n          return false;\n        this.flush();\n        try {\n          this.emit(\"end\"), this.cleanUp(), this.isFinished = true;\n        } catch (e2) {\n          this.emit(\"error\", e2);\n        }\n        return true;\n      }, error: function(e2) {\n        return !this.isFinished && (this.isPaused ? this.generatedError = e2 : (this.isFinished = true, this.emit(\"error\", e2), this.previous && this.previous.error(e2), this.cleanUp()), true);\n      }, on: function(e2, t2) {\n        return this._listeners[e2].push(t2), this;\n      }, cleanUp: function() {\n        this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];\n      }, emit: function(e2, t2) {\n        if (this._listeners[e2])\n          for (var r2 = 0; r2 < this._listeners[e2].length; r2++)\n            this._listeners[e2][r2].call(this, t2);\n      }, pipe: function(e2) {\n        return e2.registerPrevious(this);\n      }, registerPrevious: function(e2) {\n        if (this.isLocked)\n          throw new Error(\"The stream '\" + this + \"' has already been used.\");\n        this.streamInfo = e2.streamInfo, this.mergeStreamInfo(), this.previous = e2;\n        var t2 = this;\n        return e2.on(\"data\", function(e3) {\n          t2.processChunk(e3);\n        }), e2.on(\"end\", function() {\n          t2.end();\n        }), e2.on(\"error\", function(e3) {\n          t2.error(e3);\n        }), this;\n      }, pause: function() {\n        return !this.isPaused && !this.isFinished && (this.isPaused = true, this.previous && this.previous.pause(), true);\n      }, resume: function() {\n        if (!this.isPaused || this.isFinished)\n          return false;\n        var e2 = this.isPaused = false;\n        return this.generatedError && (this.error(this.generatedError), e2 = true), this.previous && this.previous.resume(), !e2;\n      }, flush: function() {\n      }, processChunk: function(e2) {\n        this.push(e2);\n      }, withStreamInfo: function(e2, t2) {\n        return this.extraStreamInfo[e2] = t2, this.mergeStreamInfo(), this;\n      }, mergeStreamInfo: function() {\n        for (var e2 in this.extraStreamInfo)\n          Object.prototype.hasOwnProperty.call(this.extraStreamInfo, e2) && (this.streamInfo[e2] = this.extraStreamInfo[e2]);\n      }, lock: function() {\n        if (this.isLocked)\n          throw new Error(\"The stream '\" + this + \"' has already been used.\");\n        this.isLocked = true, this.previous && this.previous.lock();\n      }, toString: function() {\n        var e2 = \"Worker \" + this.name;\n        return this.previous ? this.previous + \" -> \" + e2 : e2;\n      } }, t.exports = n;\n    }, {}], 29: [function(e, t, r) {\n      var h = e(\"../utils\"), i = e(\"./ConvertWorker\"), s = e(\"./GenericWorker\"), u = e(\"../base64\"), n = e(\"../support\"), a = e(\"../external\"), o = null;\n      if (n.nodestream)\n        try {\n          o = e(\"../nodejs/NodejsStreamOutputAdapter\");\n        } catch (e2) {\n        }\n      function l(e2, o2) {\n        return new a.Promise(function(t2, r2) {\n          var n2 = [], i2 = e2._internalType, s2 = e2._outputType, a2 = e2._mimeType;\n          e2.on(\"data\", function(e3, t3) {\n            n2.push(e3), o2 && o2(t3);\n          }).on(\"error\", function(e3) {\n            n2 = [], r2(e3);\n          }).on(\"end\", function() {\n            try {\n              var e3 = function(e4, t3, r3) {\n                switch (e4) {\n                  case \"blob\":\n                    return h.newBlob(h.transformTo(\"arraybuffer\", t3), r3);\n                  case \"base64\":\n                    return u.encode(t3);\n                  default:\n                    return h.transformTo(e4, t3);\n                }\n              }(s2, function(e4, t3) {\n                var r3, n3 = 0, i3 = null, s3 = 0;\n                for (r3 = 0; r3 < t3.length; r3++)\n                  s3 += t3[r3].length;\n                switch (e4) {\n                  case \"string\":\n                    return t3.join(\"\");\n                  case \"array\":\n                    return Array.prototype.concat.apply([], t3);\n                  case \"uint8array\":\n                    for (i3 = new Uint8Array(s3), r3 = 0; r3 < t3.length; r3++)\n                      i3.set(t3[r3], n3), n3 += t3[r3].length;\n                    return i3;\n                  case \"nodebuffer\":\n                    return Buffer.concat(t3);\n                  default:\n                    throw new Error(\"concat : unsupported type '\" + e4 + \"'\");\n                }\n              }(i2, n2), a2);\n              t2(e3);\n            } catch (e4) {\n              r2(e4);\n            }\n            n2 = [];\n          }).resume();\n        });\n      }\n      function f(e2, t2, r2) {\n        var n2 = t2;\n        switch (t2) {\n          case \"blob\":\n          case \"arraybuffer\":\n            n2 = \"uint8array\";\n            break;\n          case \"base64\":\n            n2 = \"string\";\n        }\n        try {\n          this._internalType = n2, this._outputType = t2, this._mimeType = r2, h.checkSupport(n2), this._worker = e2.pipe(new i(n2)), e2.lock();\n        } catch (e3) {\n          this._worker = new s(\"error\"), this._worker.error(e3);\n        }\n      }\n      f.prototype = { accumulate: function(e2) {\n        return l(this, e2);\n      }, on: function(e2, t2) {\n        var r2 = this;\n        return \"data\" === e2 ? this._worker.on(e2, function(e3) {\n          t2.call(r2, e3.data, e3.meta);\n        }) : this._worker.on(e2, function() {\n          h.delay(t2, arguments, r2);\n        }), this;\n      }, resume: function() {\n        return h.delay(this._worker.resume, [], this._worker), this;\n      }, pause: function() {\n        return this._worker.pause(), this;\n      }, toNodejsStream: function(e2) {\n        if (h.checkSupport(\"nodestream\"), \"nodebuffer\" !== this._outputType)\n          throw new Error(this._outputType + \" is not supported by this method\");\n        return new o(this, { objectMode: \"nodebuffer\" !== this._outputType }, e2);\n      } }, t.exports = f;\n    }, { \"../base64\": 1, \"../external\": 6, \"../nodejs/NodejsStreamOutputAdapter\": 13, \"../support\": 30, \"../utils\": 32, \"./ConvertWorker\": 24, \"./GenericWorker\": 28 }], 30: [function(e, t, r) {\n      if (r.base64 = true, r.array = true, r.string = true, r.arraybuffer = \"undefined\" != typeof ArrayBuffer && \"undefined\" != typeof Uint8Array, r.nodebuffer = \"undefined\" != typeof Buffer, r.uint8array = \"undefined\" != typeof Uint8Array, \"undefined\" == typeof ArrayBuffer)\n        r.blob = false;\n      else {\n        var n = new ArrayBuffer(0);\n        try {\n          r.blob = 0 === new Blob([n], { type: \"application/zip\" }).size;\n        } catch (e2) {\n          try {\n            var i = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();\n            i.append(n), r.blob = 0 === i.getBlob(\"application/zip\").size;\n          } catch (e3) {\n            r.blob = false;\n          }\n        }\n      }\n      try {\n        r.nodestream = !!e(\"readable-stream\").Readable;\n      } catch (e2) {\n        r.nodestream = false;\n      }\n    }, { \"readable-stream\": 16 }], 31: [function(e, t, s) {\n      for (var o = e(\"./utils\"), h = e(\"./support\"), r = e(\"./nodejsUtils\"), n = e(\"./stream/GenericWorker\"), u = new Array(256), i = 0; i < 256; i++)\n        u[i] = 252 <= i ? 6 : 248 <= i ? 5 : 240 <= i ? 4 : 224 <= i ? 3 : 192 <= i ? 2 : 1;\n      u[254] = u[254] = 1;\n      function a() {\n        n.call(this, \"utf-8 decode\"), this.leftOver = null;\n      }\n      function l() {\n        n.call(this, \"utf-8 encode\");\n      }\n      s.utf8encode = function(e2) {\n        return h.nodebuffer ? r.newBufferFrom(e2, \"utf-8\") : function(e3) {\n          var t2, r2, n2, i2, s2, a2 = e3.length, o2 = 0;\n          for (i2 = 0; i2 < a2; i2++)\n            55296 == (64512 & (r2 = e3.charCodeAt(i2))) && i2 + 1 < a2 && 56320 == (64512 & (n2 = e3.charCodeAt(i2 + 1))) && (r2 = 65536 + (r2 - 55296 << 10) + (n2 - 56320), i2++), o2 += r2 < 128 ? 1 : r2 < 2048 ? 2 : r2 < 65536 ? 3 : 4;\n          for (t2 = h.uint8array ? new Uint8Array(o2) : new Array(o2), i2 = s2 = 0; s2 < o2; i2++)\n            55296 == (64512 & (r2 = e3.charCodeAt(i2))) && i2 + 1 < a2 && 56320 == (64512 & (n2 = e3.charCodeAt(i2 + 1))) && (r2 = 65536 + (r2 - 55296 << 10) + (n2 - 56320), i2++), r2 < 128 ? t2[s2++] = r2 : (r2 < 2048 ? t2[s2++] = 192 | r2 >>> 6 : (r2 < 65536 ? t2[s2++] = 224 | r2 >>> 12 : (t2[s2++] = 240 | r2 >>> 18, t2[s2++] = 128 | r2 >>> 12 & 63), t2[s2++] = 128 | r2 >>> 6 & 63), t2[s2++] = 128 | 63 & r2);\n          return t2;\n        }(e2);\n      }, s.utf8decode = function(e2) {\n        return h.nodebuffer ? o.transformTo(\"nodebuffer\", e2).toString(\"utf-8\") : function(e3) {\n          var t2, r2, n2, i2, s2 = e3.length, a2 = new Array(2 * s2);\n          for (t2 = r2 = 0; t2 < s2; )\n            if ((n2 = e3[t2++]) < 128)\n              a2[r2++] = n2;\n            else if (4 < (i2 = u[n2]))\n              a2[r2++] = 65533, t2 += i2 - 1;\n            else {\n              for (n2 &= 2 === i2 ? 31 : 3 === i2 ? 15 : 7; 1 < i2 && t2 < s2; )\n                n2 = n2 << 6 | 63 & e3[t2++], i2--;\n              1 < i2 ? a2[r2++] = 65533 : n2 < 65536 ? a2[r2++] = n2 : (n2 -= 65536, a2[r2++] = 55296 | n2 >> 10 & 1023, a2[r2++] = 56320 | 1023 & n2);\n            }\n          return a2.length !== r2 && (a2.subarray ? a2 = a2.subarray(0, r2) : a2.length = r2), o.applyFromCharCode(a2);\n        }(e2 = o.transformTo(h.uint8array ? \"uint8array\" : \"array\", e2));\n      }, o.inherits(a, n), a.prototype.processChunk = function(e2) {\n        var t2 = o.transformTo(h.uint8array ? \"uint8array\" : \"array\", e2.data);\n        if (this.leftOver && this.leftOver.length) {\n          if (h.uint8array) {\n            var r2 = t2;\n            (t2 = new Uint8Array(r2.length + this.leftOver.length)).set(this.leftOver, 0), t2.set(r2, this.leftOver.length);\n          } else\n            t2 = this.leftOver.concat(t2);\n          this.leftOver = null;\n        }\n        var n2 = function(e3, t3) {\n          var r3;\n          for ((t3 = t3 || e3.length) > e3.length && (t3 = e3.length), r3 = t3 - 1; 0 <= r3 && 128 == (192 & e3[r3]); )\n            r3--;\n          return r3 < 0 ? t3 : 0 === r3 ? t3 : r3 + u[e3[r3]] > t3 ? r3 : t3;\n        }(t2), i2 = t2;\n        n2 !== t2.length && (h.uint8array ? (i2 = t2.subarray(0, n2), this.leftOver = t2.subarray(n2, t2.length)) : (i2 = t2.slice(0, n2), this.leftOver = t2.slice(n2, t2.length))), this.push({ data: s.utf8decode(i2), meta: e2.meta });\n      }, a.prototype.flush = function() {\n        this.leftOver && this.leftOver.length && (this.push({ data: s.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);\n      }, s.Utf8DecodeWorker = a, o.inherits(l, n), l.prototype.processChunk = function(e2) {\n        this.push({ data: s.utf8encode(e2.data), meta: e2.meta });\n      }, s.Utf8EncodeWorker = l;\n    }, { \"./nodejsUtils\": 14, \"./stream/GenericWorker\": 28, \"./support\": 30, \"./utils\": 32 }], 32: [function(e, t, a) {\n      var o = e(\"./support\"), h = e(\"./base64\"), r = e(\"./nodejsUtils\"), u = e(\"./external\");\n      function n(e2) {\n        return e2;\n      }\n      function l(e2, t2) {\n        for (var r2 = 0; r2 < e2.length; ++r2)\n          t2[r2] = 255 & e2.charCodeAt(r2);\n        return t2;\n      }\n      e(\"setimmediate\"), a.newBlob = function(t2, r2) {\n        a.checkSupport(\"blob\");\n        try {\n          return new Blob([t2], { type: r2 });\n        } catch (e2) {\n          try {\n            var n2 = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();\n            return n2.append(t2), n2.getBlob(r2);\n          } catch (e3) {\n            throw new Error(\"Bug : can't construct the Blob.\");\n          }\n        }\n      };\n      var i = { stringifyByChunk: function(e2, t2, r2) {\n        var n2 = [], i2 = 0, s2 = e2.length;\n        if (s2 <= r2)\n          return String.fromCharCode.apply(null, e2);\n        for (; i2 < s2; )\n          \"array\" === t2 || \"nodebuffer\" === t2 ? n2.push(String.fromCharCode.apply(null, e2.slice(i2, Math.min(i2 + r2, s2)))) : n2.push(String.fromCharCode.apply(null, e2.subarray(i2, Math.min(i2 + r2, s2)))), i2 += r2;\n        return n2.join(\"\");\n      }, stringifyByChar: function(e2) {\n        for (var t2 = \"\", r2 = 0; r2 < e2.length; r2++)\n          t2 += String.fromCharCode(e2[r2]);\n        return t2;\n      }, applyCanBeUsed: { uint8array: function() {\n        try {\n          return o.uint8array && 1 === String.fromCharCode.apply(null, new Uint8Array(1)).length;\n        } catch (e2) {\n          return false;\n        }\n      }(), nodebuffer: function() {\n        try {\n          return o.nodebuffer && 1 === String.fromCharCode.apply(null, r.allocBuffer(1)).length;\n        } catch (e2) {\n          return false;\n        }\n      }() } };\n      function s(e2) {\n        var t2 = 65536, r2 = a.getTypeOf(e2), n2 = true;\n        if (\"uint8array\" === r2 ? n2 = i.applyCanBeUsed.uint8array : \"nodebuffer\" === r2 && (n2 = i.applyCanBeUsed.nodebuffer), n2)\n          for (; 1 < t2; )\n            try {\n              return i.stringifyByChunk(e2, r2, t2);\n            } catch (e3) {\n              t2 = Math.floor(t2 / 2);\n            }\n        return i.stringifyByChar(e2);\n      }\n      function f(e2, t2) {\n        for (var r2 = 0; r2 < e2.length; r2++)\n          t2[r2] = e2[r2];\n        return t2;\n      }\n      a.applyFromCharCode = s;\n      var c = {};\n      c.string = { string: n, array: function(e2) {\n        return l(e2, new Array(e2.length));\n      }, arraybuffer: function(e2) {\n        return c.string.uint8array(e2).buffer;\n      }, uint8array: function(e2) {\n        return l(e2, new Uint8Array(e2.length));\n      }, nodebuffer: function(e2) {\n        return l(e2, r.allocBuffer(e2.length));\n      } }, c.array = { string: s, array: n, arraybuffer: function(e2) {\n        return new Uint8Array(e2).buffer;\n      }, uint8array: function(e2) {\n        return new Uint8Array(e2);\n      }, nodebuffer: function(e2) {\n        return r.newBufferFrom(e2);\n      } }, c.arraybuffer = { string: function(e2) {\n        return s(new Uint8Array(e2));\n      }, array: function(e2) {\n        return f(new Uint8Array(e2), new Array(e2.byteLength));\n      }, arraybuffer: n, uint8array: function(e2) {\n        return new Uint8Array(e2);\n      }, nodebuffer: function(e2) {\n        return r.newBufferFrom(new Uint8Array(e2));\n      } }, c.uint8array = { string: s, array: function(e2) {\n        return f(e2, new Array(e2.length));\n      }, arraybuffer: function(e2) {\n        return e2.buffer;\n      }, uint8array: n, nodebuffer: function(e2) {\n        return r.newBufferFrom(e2);\n      } }, c.nodebuffer = { string: s, array: function(e2) {\n        return f(e2, new Array(e2.length));\n      }, arraybuffer: function(e2) {\n        return c.nodebuffer.uint8array(e2).buffer;\n      }, uint8array: function(e2) {\n        return f(e2, new Uint8Array(e2.length));\n      }, nodebuffer: n }, a.transformTo = function(e2, t2) {\n        if (t2 = t2 || \"\", !e2)\n          return t2;\n        a.checkSupport(e2);\n        var r2 = a.getTypeOf(t2);\n        return c[r2][e2](t2);\n      }, a.resolve = function(e2) {\n        for (var t2 = e2.split(\"/\"), r2 = [], n2 = 0; n2 < t2.length; n2++) {\n          var i2 = t2[n2];\n          \".\" === i2 || \"\" === i2 && 0 !== n2 && n2 !== t2.length - 1 || (\"..\" === i2 ? r2.pop() : r2.push(i2));\n        }\n        return r2.join(\"/\");\n      }, a.getTypeOf = function(e2) {\n        return \"string\" == typeof e2 ? \"string\" : \"[object Array]\" === Object.prototype.toString.call(e2) ? \"array\" : o.nodebuffer && r.isBuffer(e2) ? \"nodebuffer\" : o.uint8array && e2 instanceof Uint8Array ? \"uint8array\" : o.arraybuffer && e2 instanceof ArrayBuffer ? \"arraybuffer\" : void 0;\n      }, a.checkSupport = function(e2) {\n        if (!o[e2.toLowerCase()])\n          throw new Error(e2 + \" is not supported by this platform\");\n      }, a.MAX_VALUE_16BITS = 65535, a.MAX_VALUE_32BITS = -1, a.pretty = function(e2) {\n        var t2, r2, n2 = \"\";\n        for (r2 = 0; r2 < (e2 || \"\").length; r2++)\n          n2 += \"\\\\x\" + ((t2 = e2.charCodeAt(r2)) < 16 ? \"0\" : \"\") + t2.toString(16).toUpperCase();\n        return n2;\n      }, a.delay = function(e2, t2, r2) {\n        setImmediate(function() {\n          e2.apply(r2 || null, t2 || []);\n        });\n      }, a.inherits = function(e2, t2) {\n        function r2() {\n        }\n        r2.prototype = t2.prototype, e2.prototype = new r2();\n      }, a.extend = function() {\n        var e2, t2, r2 = {};\n        for (e2 = 0; e2 < arguments.length; e2++)\n          for (t2 in arguments[e2])\n            Object.prototype.hasOwnProperty.call(arguments[e2], t2) && void 0 === r2[t2] && (r2[t2] = arguments[e2][t2]);\n        return r2;\n      }, a.prepareContent = function(r2, e2, n2, i2, s2) {\n        return u.Promise.resolve(e2).then(function(n3) {\n          return o.blob && (n3 instanceof Blob || -1 !== [\"[object File]\", \"[object Blob]\"].indexOf(Object.prototype.toString.call(n3))) && \"undefined\" != typeof FileReader ? new u.Promise(function(t2, r3) {\n            var e3 = new FileReader();\n            e3.onload = function(e4) {\n              t2(e4.target.result);\n            }, e3.onerror = function(e4) {\n              r3(e4.target.error);\n            }, e3.readAsArrayBuffer(n3);\n          }) : n3;\n        }).then(function(e3) {\n          var t2 = a.getTypeOf(e3);\n          return t2 ? (\"arraybuffer\" === t2 ? e3 = a.transformTo(\"uint8array\", e3) : \"string\" === t2 && (s2 ? e3 = h.decode(e3) : n2 && true !== i2 && (e3 = function(e4) {\n            return l(e4, o.uint8array ? new Uint8Array(e4.length) : new Array(e4.length));\n          }(e3))), e3) : u.Promise.reject(new Error(\"Can't read the data of '\" + r2 + \"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?\"));\n        });\n      };\n    }, { \"./base64\": 1, \"./external\": 6, \"./nodejsUtils\": 14, \"./support\": 30, setimmediate: 54 }], 33: [function(e, t, r) {\n      var n = e(\"./reader/readerFor\"), i = e(\"./utils\"), s = e(\"./signature\"), a = e(\"./zipEntry\"), o = e(\"./support\");\n      function h(e2) {\n        this.files = [], this.loadOptions = e2;\n      }\n      h.prototype = { checkSignature: function(e2) {\n        if (!this.reader.readAndCheckSignature(e2)) {\n          this.reader.index -= 4;\n          var t2 = this.reader.readString(4);\n          throw new Error(\"Corrupted zip or bug: unexpected signature (\" + i.pretty(t2) + \", expected \" + i.pretty(e2) + \")\");\n        }\n      }, isSignature: function(e2, t2) {\n        var r2 = this.reader.index;\n        this.reader.setIndex(e2);\n        var n2 = this.reader.readString(4) === t2;\n        return this.reader.setIndex(r2), n2;\n      }, readBlockEndOfCentral: function() {\n        this.diskNumber = this.reader.readInt(2), this.diskWithCentralDirStart = this.reader.readInt(2), this.centralDirRecordsOnThisDisk = this.reader.readInt(2), this.centralDirRecords = this.reader.readInt(2), this.centralDirSize = this.reader.readInt(4), this.centralDirOffset = this.reader.readInt(4), this.zipCommentLength = this.reader.readInt(2);\n        var e2 = this.reader.readData(this.zipCommentLength), t2 = o.uint8array ? \"uint8array\" : \"array\", r2 = i.transformTo(t2, e2);\n        this.zipComment = this.loadOptions.decodeFileName(r2);\n      }, readBlockZip64EndOfCentral: function() {\n        this.zip64EndOfCentralSize = this.reader.readInt(8), this.reader.skip(4), this.diskNumber = this.reader.readInt(4), this.diskWithCentralDirStart = this.reader.readInt(4), this.centralDirRecordsOnThisDisk = this.reader.readInt(8), this.centralDirRecords = this.reader.readInt(8), this.centralDirSize = this.reader.readInt(8), this.centralDirOffset = this.reader.readInt(8), this.zip64ExtensibleData = {};\n        for (var e2, t2, r2, n2 = this.zip64EndOfCentralSize - 44; 0 < n2; )\n          e2 = this.reader.readInt(2), t2 = this.reader.readInt(4), r2 = this.reader.readData(t2), this.zip64ExtensibleData[e2] = { id: e2, length: t2, value: r2 };\n      }, readBlockZip64EndOfCentralLocator: function() {\n        if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), 1 < this.disksCount)\n          throw new Error(\"Multi-volumes zip are not supported\");\n      }, readLocalFiles: function() {\n        var e2, t2;\n        for (e2 = 0; e2 < this.files.length; e2++)\n          t2 = this.files[e2], this.reader.setIndex(t2.localHeaderOffset), this.checkSignature(s.LOCAL_FILE_HEADER), t2.readLocalPart(this.reader), t2.handleUTF8(), t2.processAttributes();\n      }, readCentralDir: function() {\n        var e2;\n        for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER); )\n          (e2 = new a({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(e2);\n        if (this.centralDirRecords !== this.files.length && 0 !== this.centralDirRecords && 0 === this.files.length)\n          throw new Error(\"Corrupted zip or bug: expected \" + this.centralDirRecords + \" records in central dir, got \" + this.files.length);\n      }, readEndOfCentral: function() {\n        var e2 = this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);\n        if (e2 < 0)\n          throw !this.isSignature(0, s.LOCAL_FILE_HEADER) ? new Error(\"Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html\") : new Error(\"Corrupted zip: can't find end of central directory\");\n        this.reader.setIndex(e2);\n        var t2 = e2;\n        if (this.checkSignature(s.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === i.MAX_VALUE_16BITS || this.diskWithCentralDirStart === i.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === i.MAX_VALUE_16BITS || this.centralDirRecords === i.MAX_VALUE_16BITS || this.centralDirSize === i.MAX_VALUE_32BITS || this.centralDirOffset === i.MAX_VALUE_32BITS) {\n          if (this.zip64 = true, (e2 = this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0)\n            throw new Error(\"Corrupted zip: can't find the ZIP64 end of central directory locator\");\n          if (this.reader.setIndex(e2), this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, s.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0))\n            throw new Error(\"Corrupted zip: can't find the ZIP64 end of central directory\");\n          this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral();\n        }\n        var r2 = this.centralDirOffset + this.centralDirSize;\n        this.zip64 && (r2 += 20, r2 += 12 + this.zip64EndOfCentralSize);\n        var n2 = t2 - r2;\n        if (0 < n2)\n          this.isSignature(t2, s.CENTRAL_FILE_HEADER) || (this.reader.zero = n2);\n        else if (n2 < 0)\n          throw new Error(\"Corrupted zip: missing \" + Math.abs(n2) + \" bytes.\");\n      }, prepareReader: function(e2) {\n        this.reader = n(e2);\n      }, load: function(e2) {\n        this.prepareReader(e2), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();\n      } }, t.exports = h;\n    }, { \"./reader/readerFor\": 22, \"./signature\": 23, \"./support\": 30, \"./utils\": 32, \"./zipEntry\": 34 }], 34: [function(e, t, r) {\n      var n = e(\"./reader/readerFor\"), s = e(\"./utils\"), i = e(\"./compressedObject\"), a = e(\"./crc32\"), o = e(\"./utf8\"), h = e(\"./compressions\"), u = e(\"./support\");\n      function l(e2, t2) {\n        this.options = e2, this.loadOptions = t2;\n      }\n      l.prototype = { isEncrypted: function() {\n        return 1 == (1 & this.bitFlag);\n      }, useUTF8: function() {\n        return 2048 == (2048 & this.bitFlag);\n      }, readLocalPart: function(e2) {\n        var t2, r2;\n        if (e2.skip(22), this.fileNameLength = e2.readInt(2), r2 = e2.readInt(2), this.fileName = e2.readData(this.fileNameLength), e2.skip(r2), -1 === this.compressedSize || -1 === this.uncompressedSize)\n          throw new Error(\"Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)\");\n        if (null === (t2 = function(e3) {\n          for (var t3 in h)\n            if (Object.prototype.hasOwnProperty.call(h, t3) && h[t3].magic === e3)\n              return h[t3];\n          return null;\n        }(this.compressionMethod)))\n          throw new Error(\"Corrupted zip : compression \" + s.pretty(this.compressionMethod) + \" unknown (inner file : \" + s.transformTo(\"string\", this.fileName) + \")\");\n        this.decompressed = new i(this.compressedSize, this.uncompressedSize, this.crc32, t2, e2.readData(this.compressedSize));\n      }, readCentralPart: function(e2) {\n        this.versionMadeBy = e2.readInt(2), e2.skip(2), this.bitFlag = e2.readInt(2), this.compressionMethod = e2.readString(2), this.date = e2.readDate(), this.crc32 = e2.readInt(4), this.compressedSize = e2.readInt(4), this.uncompressedSize = e2.readInt(4);\n        var t2 = e2.readInt(2);\n        if (this.extraFieldsLength = e2.readInt(2), this.fileCommentLength = e2.readInt(2), this.diskNumberStart = e2.readInt(2), this.internalFileAttributes = e2.readInt(2), this.externalFileAttributes = e2.readInt(4), this.localHeaderOffset = e2.readInt(4), this.isEncrypted())\n          throw new Error(\"Encrypted zip are not supported\");\n        e2.skip(t2), this.readExtraFields(e2), this.parseZIP64ExtraField(e2), this.fileComment = e2.readData(this.fileCommentLength);\n      }, processAttributes: function() {\n        this.unixPermissions = null, this.dosPermissions = null;\n        var e2 = this.versionMadeBy >> 8;\n        this.dir = !!(16 & this.externalFileAttributes), 0 == e2 && (this.dosPermissions = 63 & this.externalFileAttributes), 3 == e2 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || \"/\" !== this.fileNameStr.slice(-1) || (this.dir = true);\n      }, parseZIP64ExtraField: function() {\n        if (this.extraFields[1]) {\n          var e2 = n(this.extraFields[1].value);\n          this.uncompressedSize === s.MAX_VALUE_32BITS && (this.uncompressedSize = e2.readInt(8)), this.compressedSize === s.MAX_VALUE_32BITS && (this.compressedSize = e2.readInt(8)), this.localHeaderOffset === s.MAX_VALUE_32BITS && (this.localHeaderOffset = e2.readInt(8)), this.diskNumberStart === s.MAX_VALUE_32BITS && (this.diskNumberStart = e2.readInt(4));\n        }\n      }, readExtraFields: function(e2) {\n        var t2, r2, n2, i2 = e2.index + this.extraFieldsLength;\n        for (this.extraFields || (this.extraFields = {}); e2.index + 4 < i2; )\n          t2 = e2.readInt(2), r2 = e2.readInt(2), n2 = e2.readData(r2), this.extraFields[t2] = { id: t2, length: r2, value: n2 };\n        e2.setIndex(i2);\n      }, handleUTF8: function() {\n        var e2 = u.uint8array ? \"uint8array\" : \"array\";\n        if (this.useUTF8())\n          this.fileNameStr = o.utf8decode(this.fileName), this.fileCommentStr = o.utf8decode(this.fileComment);\n        else {\n          var t2 = this.findExtraFieldUnicodePath();\n          if (null !== t2)\n            this.fileNameStr = t2;\n          else {\n            var r2 = s.transformTo(e2, this.fileName);\n            this.fileNameStr = this.loadOptions.decodeFileName(r2);\n          }\n          var n2 = this.findExtraFieldUnicodeComment();\n          if (null !== n2)\n            this.fileCommentStr = n2;\n          else {\n            var i2 = s.transformTo(e2, this.fileComment);\n            this.fileCommentStr = this.loadOptions.decodeFileName(i2);\n          }\n        }\n      }, findExtraFieldUnicodePath: function() {\n        var e2 = this.extraFields[28789];\n        if (e2) {\n          var t2 = n(e2.value);\n          return 1 !== t2.readInt(1) ? null : a(this.fileName) !== t2.readInt(4) ? null : o.utf8decode(t2.readData(e2.length - 5));\n        }\n        return null;\n      }, findExtraFieldUnicodeComment: function() {\n        var e2 = this.extraFields[25461];\n        if (e2) {\n          var t2 = n(e2.value);\n          return 1 !== t2.readInt(1) ? null : a(this.fileComment) !== t2.readInt(4) ? null : o.utf8decode(t2.readData(e2.length - 5));\n        }\n        return null;\n      } }, t.exports = l;\n    }, { \"./compressedObject\": 2, \"./compressions\": 3, \"./crc32\": 4, \"./reader/readerFor\": 22, \"./support\": 30, \"./utf8\": 31, \"./utils\": 32 }], 35: [function(e, t, r) {\n      function n(e2, t2, r2) {\n        this.name = e2, this.dir = r2.dir, this.date = r2.date, this.comment = r2.comment, this.unixPermissions = r2.unixPermissions, this.dosPermissions = r2.dosPermissions, this._data = t2, this._dataBinary = r2.binary, this.options = { compression: r2.compression, compressionOptions: r2.compressionOptions };\n      }\n      var s = e(\"./stream/StreamHelper\"), i = e(\"./stream/DataWorker\"), a = e(\"./utf8\"), o = e(\"./compressedObject\"), h = e(\"./stream/GenericWorker\");\n      n.prototype = { internalStream: function(e2) {\n        var t2 = null, r2 = \"string\";\n        try {\n          if (!e2)\n            throw new Error(\"No output type specified.\");\n          var n2 = \"string\" === (r2 = e2.toLowerCase()) || \"text\" === r2;\n          \"binarystring\" !== r2 && \"text\" !== r2 || (r2 = \"string\"), t2 = this._decompressWorker();\n          var i2 = !this._dataBinary;\n          i2 && !n2 && (t2 = t2.pipe(new a.Utf8EncodeWorker())), !i2 && n2 && (t2 = t2.pipe(new a.Utf8DecodeWorker()));\n        } catch (e3) {\n          (t2 = new h(\"error\")).error(e3);\n        }\n        return new s(t2, r2, \"\");\n      }, async: function(e2, t2) {\n        return this.internalStream(e2).accumulate(t2);\n      }, nodeStream: function(e2, t2) {\n        return this.internalStream(e2 || \"nodebuffer\").toNodejsStream(t2);\n      }, _compressWorker: function(e2, t2) {\n        if (this._data instanceof o && this._data.compression.magic === e2.magic)\n          return this._data.getCompressedWorker();\n        var r2 = this._decompressWorker();\n        return this._dataBinary || (r2 = r2.pipe(new a.Utf8EncodeWorker())), o.createWorkerFrom(r2, e2, t2);\n      }, _decompressWorker: function() {\n        return this._data instanceof o ? this._data.getContentWorker() : this._data instanceof h ? this._data : new i(this._data);\n      } };\n      for (var u = [\"asText\", \"asBinary\", \"asNodeBuffer\", \"asUint8Array\", \"asArrayBuffer\"], l = function() {\n        throw new Error(\"This method has been removed in JSZip 3.0, please check the upgrade guide.\");\n      }, f = 0; f < u.length; f++)\n        n.prototype[u[f]] = l;\n      t.exports = n;\n    }, { \"./compressedObject\": 2, \"./stream/DataWorker\": 27, \"./stream/GenericWorker\": 28, \"./stream/StreamHelper\": 29, \"./utf8\": 31 }], 36: [function(e, l, t) {\n      (function(t2) {\n        var r, n, e2 = t2.MutationObserver || t2.WebKitMutationObserver;\n        if (e2) {\n          var i = 0, s = new e2(u), a = t2.document.createTextNode(\"\");\n          s.observe(a, { characterData: true }), r = function() {\n            a.data = i = ++i % 2;\n          };\n        } else if (t2.setImmediate || void 0 === t2.MessageChannel)\n          r = \"document\" in t2 && \"onreadystatechange\" in t2.document.createElement(\"script\") ? function() {\n            var e3 = t2.document.createElement(\"script\");\n            e3.onreadystatechange = function() {\n              u(), e3.onreadystatechange = null, e3.parentNode.removeChild(e3), e3 = null;\n            }, t2.document.documentElement.appendChild(e3);\n          } : function() {\n            setTimeout(u, 0);\n          };\n        else {\n          var o = new t2.MessageChannel();\n          o.port1.onmessage = u, r = function() {\n            o.port2.postMessage(0);\n          };\n        }\n        var h = [];\n        function u() {\n          var e3, t3;\n          n = true;\n          for (var r2 = h.length; r2; ) {\n            for (t3 = h, h = [], e3 = -1; ++e3 < r2; )\n              t3[e3]();\n            r2 = h.length;\n          }\n          n = false;\n        }\n        l.exports = function(e3) {\n          1 !== h.push(e3) || n || r();\n        };\n      }).call(this, \"undefined\" != typeof commonjsGlobal ? commonjsGlobal : \"undefined\" != typeof self ? self : \"undefined\" != typeof window ? window : {});\n    }, {}], 37: [function(e, t, r) {\n      var i = e(\"immediate\");\n      function u() {\n      }\n      var l = {}, s = [\"REJECTED\"], a = [\"FULFILLED\"], n = [\"PENDING\"];\n      function o(e2) {\n        if (\"function\" != typeof e2)\n          throw new TypeError(\"resolver must be a function\");\n        this.state = n, this.queue = [], this.outcome = void 0, e2 !== u && d(this, e2);\n      }\n      function h(e2, t2, r2) {\n        this.promise = e2, \"function\" == typeof t2 && (this.onFulfilled = t2, this.callFulfilled = this.otherCallFulfilled), \"function\" == typeof r2 && (this.onRejected = r2, this.callRejected = this.otherCallRejected);\n      }\n      function f(t2, r2, n2) {\n        i(function() {\n          var e2;\n          try {\n            e2 = r2(n2);\n          } catch (e3) {\n            return l.reject(t2, e3);\n          }\n          e2 === t2 ? l.reject(t2, new TypeError(\"Cannot resolve promise with itself\")) : l.resolve(t2, e2);\n        });\n      }\n      function c(e2) {\n        var t2 = e2 && e2.then;\n        if (e2 && (\"object\" == typeof e2 || \"function\" == typeof e2) && \"function\" == typeof t2)\n          return function() {\n            t2.apply(e2, arguments);\n          };\n      }\n      function d(t2, e2) {\n        var r2 = false;\n        function n2(e3) {\n          r2 || (r2 = true, l.reject(t2, e3));\n        }\n        function i2(e3) {\n          r2 || (r2 = true, l.resolve(t2, e3));\n        }\n        var s2 = p(function() {\n          e2(i2, n2);\n        });\n        \"error\" === s2.status && n2(s2.value);\n      }\n      function p(e2, t2) {\n        var r2 = {};\n        try {\n          r2.value = e2(t2), r2.status = \"success\";\n        } catch (e3) {\n          r2.status = \"error\", r2.value = e3;\n        }\n        return r2;\n      }\n      (t.exports = o).prototype.finally = function(t2) {\n        if (\"function\" != typeof t2)\n          return this;\n        var r2 = this.constructor;\n        return this.then(function(e2) {\n          return r2.resolve(t2()).then(function() {\n            return e2;\n          });\n        }, function(e2) {\n          return r2.resolve(t2()).then(function() {\n            throw e2;\n          });\n        });\n      }, o.prototype.catch = function(e2) {\n        return this.then(null, e2);\n      }, o.prototype.then = function(e2, t2) {\n        if (\"function\" != typeof e2 && this.state === a || \"function\" != typeof t2 && this.state === s)\n          return this;\n        var r2 = new this.constructor(u);\n        this.state !== n ? f(r2, this.state === a ? e2 : t2, this.outcome) : this.queue.push(new h(r2, e2, t2));\n        return r2;\n      }, h.prototype.callFulfilled = function(e2) {\n        l.resolve(this.promise, e2);\n      }, h.prototype.otherCallFulfilled = function(e2) {\n        f(this.promise, this.onFulfilled, e2);\n      }, h.prototype.callRejected = function(e2) {\n        l.reject(this.promise, e2);\n      }, h.prototype.otherCallRejected = function(e2) {\n        f(this.promise, this.onRejected, e2);\n      }, l.resolve = function(e2, t2) {\n        var r2 = p(c, t2);\n        if (\"error\" === r2.status)\n          return l.reject(e2, r2.value);\n        var n2 = r2.value;\n        if (n2)\n          d(e2, n2);\n        else {\n          e2.state = a, e2.outcome = t2;\n          for (var i2 = -1, s2 = e2.queue.length; ++i2 < s2; )\n            e2.queue[i2].callFulfilled(t2);\n        }\n        return e2;\n      }, l.reject = function(e2, t2) {\n        e2.state = s, e2.outcome = t2;\n        for (var r2 = -1, n2 = e2.queue.length; ++r2 < n2; )\n          e2.queue[r2].callRejected(t2);\n        return e2;\n      }, o.resolve = function(e2) {\n        if (e2 instanceof this)\n          return e2;\n        return l.resolve(new this(u), e2);\n      }, o.reject = function(e2) {\n        var t2 = new this(u);\n        return l.reject(t2, e2);\n      }, o.all = function(e2) {\n        var r2 = this;\n        if (\"[object Array]\" !== Object.prototype.toString.call(e2))\n          return this.reject(new TypeError(\"must be an array\"));\n        var n2 = e2.length, i2 = false;\n        if (!n2)\n          return this.resolve([]);\n        var s2 = new Array(n2), a2 = 0, t2 = -1, o2 = new this(u);\n        for (; ++t2 < n2; )\n          h2(e2[t2], t2);\n        return o2;\n        function h2(e3, t3) {\n          r2.resolve(e3).then(function(e4) {\n            s2[t3] = e4, ++a2 !== n2 || i2 || (i2 = true, l.resolve(o2, s2));\n          }, function(e4) {\n            i2 || (i2 = true, l.reject(o2, e4));\n          });\n        }\n      }, o.race = function(e2) {\n        var t2 = this;\n        if (\"[object Array]\" !== Object.prototype.toString.call(e2))\n          return this.reject(new TypeError(\"must be an array\"));\n        var r2 = e2.length, n2 = false;\n        if (!r2)\n          return this.resolve([]);\n        var i2 = -1, s2 = new this(u);\n        for (; ++i2 < r2; )\n          a2 = e2[i2], t2.resolve(a2).then(function(e3) {\n            n2 || (n2 = true, l.resolve(s2, e3));\n          }, function(e3) {\n            n2 || (n2 = true, l.reject(s2, e3));\n          });\n        var a2;\n        return s2;\n      };\n    }, { immediate: 36 }], 38: [function(e, t, r) {\n      var n = {};\n      (0, e(\"./lib/utils/common\").assign)(n, e(\"./lib/deflate\"), e(\"./lib/inflate\"), e(\"./lib/zlib/constants\")), t.exports = n;\n    }, { \"./lib/deflate\": 39, \"./lib/inflate\": 40, \"./lib/utils/common\": 41, \"./lib/zlib/constants\": 44 }], 39: [function(e, t, r) {\n      var a = e(\"./zlib/deflate\"), o = e(\"./utils/common\"), h = e(\"./utils/strings\"), i = e(\"./zlib/messages\"), s = e(\"./zlib/zstream\"), u = Object.prototype.toString, l = 0, f = -1, c = 0, d = 8;\n      function p(e2) {\n        if (!(this instanceof p))\n          return new p(e2);\n        this.options = o.assign({ level: f, method: d, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: c, to: \"\" }, e2 || {});\n        var t2 = this.options;\n        t2.raw && 0 < t2.windowBits ? t2.windowBits = -t2.windowBits : t2.gzip && 0 < t2.windowBits && t2.windowBits < 16 && (t2.windowBits += 16), this.err = 0, this.msg = \"\", this.ended = false, this.chunks = [], this.strm = new s(), this.strm.avail_out = 0;\n        var r2 = a.deflateInit2(this.strm, t2.level, t2.method, t2.windowBits, t2.memLevel, t2.strategy);\n        if (r2 !== l)\n          throw new Error(i[r2]);\n        if (t2.header && a.deflateSetHeader(this.strm, t2.header), t2.dictionary) {\n          var n2;\n          if (n2 = \"string\" == typeof t2.dictionary ? h.string2buf(t2.dictionary) : \"[object ArrayBuffer]\" === u.call(t2.dictionary) ? new Uint8Array(t2.dictionary) : t2.dictionary, (r2 = a.deflateSetDictionary(this.strm, n2)) !== l)\n            throw new Error(i[r2]);\n          this._dict_set = true;\n        }\n      }\n      function n(e2, t2) {\n        var r2 = new p(t2);\n        if (r2.push(e2, true), r2.err)\n          throw r2.msg || i[r2.err];\n        return r2.result;\n      }\n      p.prototype.push = function(e2, t2) {\n        var r2, n2, i2 = this.strm, s2 = this.options.chunkSize;\n        if (this.ended)\n          return false;\n        n2 = t2 === ~~t2 ? t2 : true === t2 ? 4 : 0, \"string\" == typeof e2 ? i2.input = h.string2buf(e2) : \"[object ArrayBuffer]\" === u.call(e2) ? i2.input = new Uint8Array(e2) : i2.input = e2, i2.next_in = 0, i2.avail_in = i2.input.length;\n        do {\n          if (0 === i2.avail_out && (i2.output = new o.Buf8(s2), i2.next_out = 0, i2.avail_out = s2), 1 !== (r2 = a.deflate(i2, n2)) && r2 !== l)\n            return this.onEnd(r2), !(this.ended = true);\n          0 !== i2.avail_out && (0 !== i2.avail_in || 4 !== n2 && 2 !== n2) || (\"string\" === this.options.to ? this.onData(h.buf2binstring(o.shrinkBuf(i2.output, i2.next_out))) : this.onData(o.shrinkBuf(i2.output, i2.next_out)));\n        } while ((0 < i2.avail_in || 0 === i2.avail_out) && 1 !== r2);\n        return 4 === n2 ? (r2 = a.deflateEnd(this.strm), this.onEnd(r2), this.ended = true, r2 === l) : 2 !== n2 || (this.onEnd(l), !(i2.avail_out = 0));\n      }, p.prototype.onData = function(e2) {\n        this.chunks.push(e2);\n      }, p.prototype.onEnd = function(e2) {\n        e2 === l && (\"string\" === this.options.to ? this.result = this.chunks.join(\"\") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = e2, this.msg = this.strm.msg;\n      }, r.Deflate = p, r.deflate = n, r.deflateRaw = function(e2, t2) {\n        return (t2 = t2 || {}).raw = true, n(e2, t2);\n      }, r.gzip = function(e2, t2) {\n        return (t2 = t2 || {}).gzip = true, n(e2, t2);\n      };\n    }, { \"./utils/common\": 41, \"./utils/strings\": 42, \"./zlib/deflate\": 46, \"./zlib/messages\": 51, \"./zlib/zstream\": 53 }], 40: [function(e, t, r) {\n      var c = e(\"./zlib/inflate\"), d = e(\"./utils/common\"), p = e(\"./utils/strings\"), m = e(\"./zlib/constants\"), n = e(\"./zlib/messages\"), i = e(\"./zlib/zstream\"), s = e(\"./zlib/gzheader\"), _ = Object.prototype.toString;\n      function a(e2) {\n        if (!(this instanceof a))\n          return new a(e2);\n        this.options = d.assign({ chunkSize: 16384, windowBits: 0, to: \"\" }, e2 || {});\n        var t2 = this.options;\n        t2.raw && 0 <= t2.windowBits && t2.windowBits < 16 && (t2.windowBits = -t2.windowBits, 0 === t2.windowBits && (t2.windowBits = -15)), !(0 <= t2.windowBits && t2.windowBits < 16) || e2 && e2.windowBits || (t2.windowBits += 32), 15 < t2.windowBits && t2.windowBits < 48 && 0 == (15 & t2.windowBits) && (t2.windowBits |= 15), this.err = 0, this.msg = \"\", this.ended = false, this.chunks = [], this.strm = new i(), this.strm.avail_out = 0;\n        var r2 = c.inflateInit2(this.strm, t2.windowBits);\n        if (r2 !== m.Z_OK)\n          throw new Error(n[r2]);\n        this.header = new s(), c.inflateGetHeader(this.strm, this.header);\n      }\n      function o(e2, t2) {\n        var r2 = new a(t2);\n        if (r2.push(e2, true), r2.err)\n          throw r2.msg || n[r2.err];\n        return r2.result;\n      }\n      a.prototype.push = function(e2, t2) {\n        var r2, n2, i2, s2, a2, o2, h = this.strm, u = this.options.chunkSize, l = this.options.dictionary, f = false;\n        if (this.ended)\n          return false;\n        n2 = t2 === ~~t2 ? t2 : true === t2 ? m.Z_FINISH : m.Z_NO_FLUSH, \"string\" == typeof e2 ? h.input = p.binstring2buf(e2) : \"[object ArrayBuffer]\" === _.call(e2) ? h.input = new Uint8Array(e2) : h.input = e2, h.next_in = 0, h.avail_in = h.input.length;\n        do {\n          if (0 === h.avail_out && (h.output = new d.Buf8(u), h.next_out = 0, h.avail_out = u), (r2 = c.inflate(h, m.Z_NO_FLUSH)) === m.Z_NEED_DICT && l && (o2 = \"string\" == typeof l ? p.string2buf(l) : \"[object ArrayBuffer]\" === _.call(l) ? new Uint8Array(l) : l, r2 = c.inflateSetDictionary(this.strm, o2)), r2 === m.Z_BUF_ERROR && true === f && (r2 = m.Z_OK, f = false), r2 !== m.Z_STREAM_END && r2 !== m.Z_OK)\n            return this.onEnd(r2), !(this.ended = true);\n          h.next_out && (0 !== h.avail_out && r2 !== m.Z_STREAM_END && (0 !== h.avail_in || n2 !== m.Z_FINISH && n2 !== m.Z_SYNC_FLUSH) || (\"string\" === this.options.to ? (i2 = p.utf8border(h.output, h.next_out), s2 = h.next_out - i2, a2 = p.buf2string(h.output, i2), h.next_out = s2, h.avail_out = u - s2, s2 && d.arraySet(h.output, h.output, i2, s2, 0), this.onData(a2)) : this.onData(d.shrinkBuf(h.output, h.next_out)))), 0 === h.avail_in && 0 === h.avail_out && (f = true);\n        } while ((0 < h.avail_in || 0 === h.avail_out) && r2 !== m.Z_STREAM_END);\n        return r2 === m.Z_STREAM_END && (n2 = m.Z_FINISH), n2 === m.Z_FINISH ? (r2 = c.inflateEnd(this.strm), this.onEnd(r2), this.ended = true, r2 === m.Z_OK) : n2 !== m.Z_SYNC_FLUSH || (this.onEnd(m.Z_OK), !(h.avail_out = 0));\n      }, a.prototype.onData = function(e2) {\n        this.chunks.push(e2);\n      }, a.prototype.onEnd = function(e2) {\n        e2 === m.Z_OK && (\"string\" === this.options.to ? this.result = this.chunks.join(\"\") : this.result = d.flattenChunks(this.chunks)), this.chunks = [], this.err = e2, this.msg = this.strm.msg;\n      }, r.Inflate = a, r.inflate = o, r.inflateRaw = function(e2, t2) {\n        return (t2 = t2 || {}).raw = true, o(e2, t2);\n      }, r.ungzip = o;\n    }, { \"./utils/common\": 41, \"./utils/strings\": 42, \"./zlib/constants\": 44, \"./zlib/gzheader\": 47, \"./zlib/inflate\": 49, \"./zlib/messages\": 51, \"./zlib/zstream\": 53 }], 41: [function(e, t, r) {\n      var n = \"undefined\" != typeof Uint8Array && \"undefined\" != typeof Uint16Array && \"undefined\" != typeof Int32Array;\n      r.assign = function(e2) {\n        for (var t2 = Array.prototype.slice.call(arguments, 1); t2.length; ) {\n          var r2 = t2.shift();\n          if (r2) {\n            if (\"object\" != typeof r2)\n              throw new TypeError(r2 + \"must be non-object\");\n            for (var n2 in r2)\n              r2.hasOwnProperty(n2) && (e2[n2] = r2[n2]);\n          }\n        }\n        return e2;\n      }, r.shrinkBuf = function(e2, t2) {\n        return e2.length === t2 ? e2 : e2.subarray ? e2.subarray(0, t2) : (e2.length = t2, e2);\n      };\n      var i = { arraySet: function(e2, t2, r2, n2, i2) {\n        if (t2.subarray && e2.subarray)\n          e2.set(t2.subarray(r2, r2 + n2), i2);\n        else\n          for (var s2 = 0; s2 < n2; s2++)\n            e2[i2 + s2] = t2[r2 + s2];\n      }, flattenChunks: function(e2) {\n        var t2, r2, n2, i2, s2, a;\n        for (t2 = n2 = 0, r2 = e2.length; t2 < r2; t2++)\n          n2 += e2[t2].length;\n        for (a = new Uint8Array(n2), t2 = i2 = 0, r2 = e2.length; t2 < r2; t2++)\n          s2 = e2[t2], a.set(s2, i2), i2 += s2.length;\n        return a;\n      } }, s = { arraySet: function(e2, t2, r2, n2, i2) {\n        for (var s2 = 0; s2 < n2; s2++)\n          e2[i2 + s2] = t2[r2 + s2];\n      }, flattenChunks: function(e2) {\n        return [].concat.apply([], e2);\n      } };\n      r.setTyped = function(e2) {\n        e2 ? (r.Buf8 = Uint8Array, r.Buf16 = Uint16Array, r.Buf32 = Int32Array, r.assign(r, i)) : (r.Buf8 = Array, r.Buf16 = Array, r.Buf32 = Array, r.assign(r, s));\n      }, r.setTyped(n);\n    }, {}], 42: [function(e, t, r) {\n      var h = e(\"./common\"), i = true, s = true;\n      try {\n        String.fromCharCode.apply(null, [0]);\n      } catch (e2) {\n        i = false;\n      }\n      try {\n        String.fromCharCode.apply(null, new Uint8Array(1));\n      } catch (e2) {\n        s = false;\n      }\n      for (var u = new h.Buf8(256), n = 0; n < 256; n++)\n        u[n] = 252 <= n ? 6 : 248 <= n ? 5 : 240 <= n ? 4 : 224 <= n ? 3 : 192 <= n ? 2 : 1;\n      function l(e2, t2) {\n        if (t2 < 65537 && (e2.subarray && s || !e2.subarray && i))\n          return String.fromCharCode.apply(null, h.shrinkBuf(e2, t2));\n        for (var r2 = \"\", n2 = 0; n2 < t2; n2++)\n          r2 += String.fromCharCode(e2[n2]);\n        return r2;\n      }\n      u[254] = u[254] = 1, r.string2buf = function(e2) {\n        var t2, r2, n2, i2, s2, a = e2.length, o = 0;\n        for (i2 = 0; i2 < a; i2++)\n          55296 == (64512 & (r2 = e2.charCodeAt(i2))) && i2 + 1 < a && 56320 == (64512 & (n2 = e2.charCodeAt(i2 + 1))) && (r2 = 65536 + (r2 - 55296 << 10) + (n2 - 56320), i2++), o += r2 < 128 ? 1 : r2 < 2048 ? 2 : r2 < 65536 ? 3 : 4;\n        for (t2 = new h.Buf8(o), i2 = s2 = 0; s2 < o; i2++)\n          55296 == (64512 & (r2 = e2.charCodeAt(i2))) && i2 + 1 < a && 56320 == (64512 & (n2 = e2.charCodeAt(i2 + 1))) && (r2 = 65536 + (r2 - 55296 << 10) + (n2 - 56320), i2++), r2 < 128 ? t2[s2++] = r2 : (r2 < 2048 ? t2[s2++] = 192 | r2 >>> 6 : (r2 < 65536 ? t2[s2++] = 224 | r2 >>> 12 : (t2[s2++] = 240 | r2 >>> 18, t2[s2++] = 128 | r2 >>> 12 & 63), t2[s2++] = 128 | r2 >>> 6 & 63), t2[s2++] = 128 | 63 & r2);\n        return t2;\n      }, r.buf2binstring = function(e2) {\n        return l(e2, e2.length);\n      }, r.binstring2buf = function(e2) {\n        for (var t2 = new h.Buf8(e2.length), r2 = 0, n2 = t2.length; r2 < n2; r2++)\n          t2[r2] = e2.charCodeAt(r2);\n        return t2;\n      }, r.buf2string = function(e2, t2) {\n        var r2, n2, i2, s2, a = t2 || e2.length, o = new Array(2 * a);\n        for (r2 = n2 = 0; r2 < a; )\n          if ((i2 = e2[r2++]) < 128)\n            o[n2++] = i2;\n          else if (4 < (s2 = u[i2]))\n            o[n2++] = 65533, r2 += s2 - 1;\n          else {\n            for (i2 &= 2 === s2 ? 31 : 3 === s2 ? 15 : 7; 1 < s2 && r2 < a; )\n              i2 = i2 << 6 | 63 & e2[r2++], s2--;\n            1 < s2 ? o[n2++] = 65533 : i2 < 65536 ? o[n2++] = i2 : (i2 -= 65536, o[n2++] = 55296 | i2 >> 10 & 1023, o[n2++] = 56320 | 1023 & i2);\n          }\n        return l(o, n2);\n      }, r.utf8border = function(e2, t2) {\n        var r2;\n        for ((t2 = t2 || e2.length) > e2.length && (t2 = e2.length), r2 = t2 - 1; 0 <= r2 && 128 == (192 & e2[r2]); )\n          r2--;\n        return r2 < 0 ? t2 : 0 === r2 ? t2 : r2 + u[e2[r2]] > t2 ? r2 : t2;\n      };\n    }, { \"./common\": 41 }], 43: [function(e, t, r) {\n      t.exports = function(e2, t2, r2, n) {\n        for (var i = 65535 & e2 | 0, s = e2 >>> 16 & 65535 | 0, a = 0; 0 !== r2; ) {\n          for (r2 -= a = 2e3 < r2 ? 2e3 : r2; s = s + (i = i + t2[n++] | 0) | 0, --a; )\n            ;\n          i %= 65521, s %= 65521;\n        }\n        return i | s << 16 | 0;\n      };\n    }, {}], 44: [function(e, t, r) {\n      t.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };\n    }, {}], 45: [function(e, t, r) {\n      var o = function() {\n        for (var e2, t2 = [], r2 = 0; r2 < 256; r2++) {\n          e2 = r2;\n          for (var n = 0; n < 8; n++)\n            e2 = 1 & e2 ? 3988292384 ^ e2 >>> 1 : e2 >>> 1;\n          t2[r2] = e2;\n        }\n        return t2;\n      }();\n      t.exports = function(e2, t2, r2, n) {\n        var i = o, s = n + r2;\n        e2 ^= -1;\n        for (var a = n; a < s; a++)\n          e2 = e2 >>> 8 ^ i[255 & (e2 ^ t2[a])];\n        return -1 ^ e2;\n      };\n    }, {}], 46: [function(e, t, r) {\n      var h, c = e(\"../utils/common\"), u = e(\"./trees\"), d = e(\"./adler32\"), p = e(\"./crc32\"), n = e(\"./messages\"), l = 0, f = 4, m = 0, _ = -2, g = -1, b = 4, i = 2, v = 8, y = 9, s = 286, a = 30, o = 19, w = 2 * s + 1, k = 15, x = 3, S = 258, z = S + x + 1, C = 42, E = 113, A = 1, I = 2, O = 3, B = 4;\n      function R(e2, t2) {\n        return e2.msg = n[t2], t2;\n      }\n      function T(e2) {\n        return (e2 << 1) - (4 < e2 ? 9 : 0);\n      }\n      function D(e2) {\n        for (var t2 = e2.length; 0 <= --t2; )\n          e2[t2] = 0;\n      }\n      function F(e2) {\n        var t2 = e2.state, r2 = t2.pending;\n        r2 > e2.avail_out && (r2 = e2.avail_out), 0 !== r2 && (c.arraySet(e2.output, t2.pending_buf, t2.pending_out, r2, e2.next_out), e2.next_out += r2, t2.pending_out += r2, e2.total_out += r2, e2.avail_out -= r2, t2.pending -= r2, 0 === t2.pending && (t2.pending_out = 0));\n      }\n      function N(e2, t2) {\n        u._tr_flush_block(e2, 0 <= e2.block_start ? e2.block_start : -1, e2.strstart - e2.block_start, t2), e2.block_start = e2.strstart, F(e2.strm);\n      }\n      function U(e2, t2) {\n        e2.pending_buf[e2.pending++] = t2;\n      }\n      function P(e2, t2) {\n        e2.pending_buf[e2.pending++] = t2 >>> 8 & 255, e2.pending_buf[e2.pending++] = 255 & t2;\n      }\n      function L(e2, t2) {\n        var r2, n2, i2 = e2.max_chain_length, s2 = e2.strstart, a2 = e2.prev_length, o2 = e2.nice_match, h2 = e2.strstart > e2.w_size - z ? e2.strstart - (e2.w_size - z) : 0, u2 = e2.window, l2 = e2.w_mask, f2 = e2.prev, c2 = e2.strstart + S, d2 = u2[s2 + a2 - 1], p2 = u2[s2 + a2];\n        e2.prev_length >= e2.good_match && (i2 >>= 2), o2 > e2.lookahead && (o2 = e2.lookahead);\n        do {\n          if (u2[(r2 = t2) + a2] === p2 && u2[r2 + a2 - 1] === d2 && u2[r2] === u2[s2] && u2[++r2] === u2[s2 + 1]) {\n            s2 += 2, r2++;\n            do {\n            } while (u2[++s2] === u2[++r2] && u2[++s2] === u2[++r2] && u2[++s2] === u2[++r2] && u2[++s2] === u2[++r2] && u2[++s2] === u2[++r2] && u2[++s2] === u2[++r2] && u2[++s2] === u2[++r2] && u2[++s2] === u2[++r2] && s2 < c2);\n            if (n2 = S - (c2 - s2), s2 = c2 - S, a2 < n2) {\n              if (e2.match_start = t2, o2 <= (a2 = n2))\n                break;\n              d2 = u2[s2 + a2 - 1], p2 = u2[s2 + a2];\n            }\n          }\n        } while ((t2 = f2[t2 & l2]) > h2 && 0 != --i2);\n        return a2 <= e2.lookahead ? a2 : e2.lookahead;\n      }\n      function j(e2) {\n        var t2, r2, n2, i2, s2, a2, o2, h2, u2, l2, f2 = e2.w_size;\n        do {\n          if (i2 = e2.window_size - e2.lookahead - e2.strstart, e2.strstart >= f2 + (f2 - z)) {\n            for (c.arraySet(e2.window, e2.window, f2, f2, 0), e2.match_start -= f2, e2.strstart -= f2, e2.block_start -= f2, t2 = r2 = e2.hash_size; n2 = e2.head[--t2], e2.head[t2] = f2 <= n2 ? n2 - f2 : 0, --r2; )\n              ;\n            for (t2 = r2 = f2; n2 = e2.prev[--t2], e2.prev[t2] = f2 <= n2 ? n2 - f2 : 0, --r2; )\n              ;\n            i2 += f2;\n          }\n          if (0 === e2.strm.avail_in)\n            break;\n          if (a2 = e2.strm, o2 = e2.window, h2 = e2.strstart + e2.lookahead, u2 = i2, l2 = void 0, l2 = a2.avail_in, u2 < l2 && (l2 = u2), r2 = 0 === l2 ? 0 : (a2.avail_in -= l2, c.arraySet(o2, a2.input, a2.next_in, l2, h2), 1 === a2.state.wrap ? a2.adler = d(a2.adler, o2, l2, h2) : 2 === a2.state.wrap && (a2.adler = p(a2.adler, o2, l2, h2)), a2.next_in += l2, a2.total_in += l2, l2), e2.lookahead += r2, e2.lookahead + e2.insert >= x)\n            for (s2 = e2.strstart - e2.insert, e2.ins_h = e2.window[s2], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s2 + 1]) & e2.hash_mask; e2.insert && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s2 + x - 1]) & e2.hash_mask, e2.prev[s2 & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = s2, s2++, e2.insert--, !(e2.lookahead + e2.insert < x)); )\n              ;\n        } while (e2.lookahead < z && 0 !== e2.strm.avail_in);\n      }\n      function Z(e2, t2) {\n        for (var r2, n2; ; ) {\n          if (e2.lookahead < z) {\n            if (j(e2), e2.lookahead < z && t2 === l)\n              return A;\n            if (0 === e2.lookahead)\n              break;\n          }\n          if (r2 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 !== r2 && e2.strstart - r2 <= e2.w_size - z && (e2.match_length = L(e2, r2)), e2.match_length >= x)\n            if (n2 = u._tr_tally(e2, e2.strstart - e2.match_start, e2.match_length - x), e2.lookahead -= e2.match_length, e2.match_length <= e2.max_lazy_match && e2.lookahead >= x) {\n              for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart, 0 != --e2.match_length; )\n                ;\n              e2.strstart++;\n            } else\n              e2.strstart += e2.match_length, e2.match_length = 0, e2.ins_h = e2.window[e2.strstart], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + 1]) & e2.hash_mask;\n          else\n            n2 = u._tr_tally(e2, 0, e2.window[e2.strstart]), e2.lookahead--, e2.strstart++;\n          if (n2 && (N(e2, false), 0 === e2.strm.avail_out))\n            return A;\n        }\n        return e2.insert = e2.strstart < x - 1 ? e2.strstart : x - 1, t2 === f ? (N(e2, true), 0 === e2.strm.avail_out ? O : B) : e2.last_lit && (N(e2, false), 0 === e2.strm.avail_out) ? A : I;\n      }\n      function W(e2, t2) {\n        for (var r2, n2, i2; ; ) {\n          if (e2.lookahead < z) {\n            if (j(e2), e2.lookahead < z && t2 === l)\n              return A;\n            if (0 === e2.lookahead)\n              break;\n          }\n          if (r2 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), e2.prev_length = e2.match_length, e2.prev_match = e2.match_start, e2.match_length = x - 1, 0 !== r2 && e2.prev_length < e2.max_lazy_match && e2.strstart - r2 <= e2.w_size - z && (e2.match_length = L(e2, r2), e2.match_length <= 5 && (1 === e2.strategy || e2.match_length === x && 4096 < e2.strstart - e2.match_start) && (e2.match_length = x - 1)), e2.prev_length >= x && e2.match_length <= e2.prev_length) {\n            for (i2 = e2.strstart + e2.lookahead - x, n2 = u._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x), e2.lookahead -= e2.prev_length - 1, e2.prev_length -= 2; ++e2.strstart <= i2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 != --e2.prev_length; )\n              ;\n            if (e2.match_available = 0, e2.match_length = x - 1, e2.strstart++, n2 && (N(e2, false), 0 === e2.strm.avail_out))\n              return A;\n          } else if (e2.match_available) {\n            if ((n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1])) && N(e2, false), e2.strstart++, e2.lookahead--, 0 === e2.strm.avail_out)\n              return A;\n          } else\n            e2.match_available = 1, e2.strstart++, e2.lookahead--;\n        }\n        return e2.match_available && (n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart < x - 1 ? e2.strstart : x - 1, t2 === f ? (N(e2, true), 0 === e2.strm.avail_out ? O : B) : e2.last_lit && (N(e2, false), 0 === e2.strm.avail_out) ? A : I;\n      }\n      function M(e2, t2, r2, n2, i2) {\n        this.good_length = e2, this.max_lazy = t2, this.nice_length = r2, this.max_chain = n2, this.func = i2;\n      }\n      function H() {\n        this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = v, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new c.Buf16(2 * w), this.dyn_dtree = new c.Buf16(2 * (2 * a + 1)), this.bl_tree = new c.Buf16(2 * (2 * o + 1)), D(this.dyn_ltree), D(this.dyn_dtree), D(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new c.Buf16(k + 1), this.heap = new c.Buf16(2 * s + 1), D(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new c.Buf16(2 * s + 1), D(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;\n      }\n      function G(e2) {\n        var t2;\n        return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C : E, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l, u._tr_init(t2), m) : R(e2, _);\n      }\n      function K(e2) {\n        var t2 = G(e2);\n        return t2 === m && function(e3) {\n          e3.window_size = 2 * e3.w_size, D(e3.head), e3.max_lazy_match = h[e3.level].max_lazy, e3.good_match = h[e3.level].good_length, e3.nice_match = h[e3.level].nice_length, e3.max_chain_length = h[e3.level].max_chain, e3.strstart = 0, e3.block_start = 0, e3.lookahead = 0, e3.insert = 0, e3.match_length = e3.prev_length = x - 1, e3.match_available = 0, e3.ins_h = 0;\n        }(e2.state), t2;\n      }\n      function Y(e2, t2, r2, n2, i2, s2) {\n        if (!e2)\n          return _;\n        var a2 = 1;\n        if (t2 === g && (t2 = 6), n2 < 0 ? (a2 = 0, n2 = -n2) : 15 < n2 && (a2 = 2, n2 -= 16), i2 < 1 || y < i2 || r2 !== v || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s2 < 0 || b < s2)\n          return R(e2, _);\n        8 === n2 && (n2 = 9);\n        var o2 = new H();\n        return (e2.state = o2).strm = e2, o2.wrap = a2, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i2 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits + x - 1) / x), o2.window = new c.Buf8(2 * o2.w_size), o2.head = new c.Buf16(o2.hash_size), o2.prev = new c.Buf16(o2.w_size), o2.lit_bufsize = 1 << i2 + 6, o2.pending_buf_size = 4 * o2.lit_bufsize, o2.pending_buf = new c.Buf8(o2.pending_buf_size), o2.d_buf = 1 * o2.lit_bufsize, o2.l_buf = 3 * o2.lit_bufsize, o2.level = t2, o2.strategy = s2, o2.method = r2, K(e2);\n      }\n      h = [new M(0, 0, 0, 0, function(e2, t2) {\n        var r2 = 65535;\n        for (r2 > e2.pending_buf_size - 5 && (r2 = e2.pending_buf_size - 5); ; ) {\n          if (e2.lookahead <= 1) {\n            if (j(e2), 0 === e2.lookahead && t2 === l)\n              return A;\n            if (0 === e2.lookahead)\n              break;\n          }\n          e2.strstart += e2.lookahead, e2.lookahead = 0;\n          var n2 = e2.block_start + r2;\n          if ((0 === e2.strstart || e2.strstart >= n2) && (e2.lookahead = e2.strstart - n2, e2.strstart = n2, N(e2, false), 0 === e2.strm.avail_out))\n            return A;\n          if (e2.strstart - e2.block_start >= e2.w_size - z && (N(e2, false), 0 === e2.strm.avail_out))\n            return A;\n        }\n        return e2.insert = 0, t2 === f ? (N(e2, true), 0 === e2.strm.avail_out ? O : B) : (e2.strstart > e2.block_start && (N(e2, false), e2.strm.avail_out), A);\n      }), new M(4, 4, 8, 4, Z), new M(4, 5, 16, 8, Z), new M(4, 6, 32, 32, Z), new M(4, 4, 16, 16, W), new M(8, 16, 32, 32, W), new M(8, 16, 128, 128, W), new M(8, 32, 128, 256, W), new M(32, 128, 258, 1024, W), new M(32, 258, 258, 4096, W)], r.deflateInit = function(e2, t2) {\n        return Y(e2, t2, v, 15, 8, 0);\n      }, r.deflateInit2 = Y, r.deflateReset = K, r.deflateResetKeep = G, r.deflateSetHeader = function(e2, t2) {\n        return e2 && e2.state ? 2 !== e2.state.wrap ? _ : (e2.state.gzhead = t2, m) : _;\n      }, r.deflate = function(e2, t2) {\n        var r2, n2, i2, s2;\n        if (!e2 || !e2.state || 5 < t2 || t2 < 0)\n          return e2 ? R(e2, _) : _;\n        if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f)\n          return R(e2, 0 === e2.avail_out ? -5 : _);\n        if (n2.strm = e2, r2 = n2.last_flush, n2.last_flush = t2, n2.status === C)\n          if (2 === n2.wrap)\n            e2.adler = 0, U(n2, 31), U(n2, 139), U(n2, 8), n2.gzhead ? (U(n2, (n2.gzhead.text ? 1 : 0) + (n2.gzhead.hcrc ? 2 : 0) + (n2.gzhead.extra ? 4 : 0) + (n2.gzhead.name ? 8 : 0) + (n2.gzhead.comment ? 16 : 0)), U(n2, 255 & n2.gzhead.time), U(n2, n2.gzhead.time >> 8 & 255), U(n2, n2.gzhead.time >> 16 & 255), U(n2, n2.gzhead.time >> 24 & 255), U(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U(n2, 255 & n2.gzhead.os), n2.gzhead.extra && n2.gzhead.extra.length && (U(n2, 255 & n2.gzhead.extra.length), U(n2, n2.gzhead.extra.length >> 8 & 255)), n2.gzhead.hcrc && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending, 0)), n2.gzindex = 0, n2.status = 69) : (U(n2, 0), U(n2, 0), U(n2, 0), U(n2, 0), U(n2, 0), U(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U(n2, 3), n2.status = E);\n          else {\n            var a2 = v + (n2.w_bits - 8 << 4) << 8;\n            a2 |= (2 <= n2.strategy || n2.level < 2 ? 0 : n2.level < 6 ? 1 : 6 === n2.level ? 2 : 3) << 6, 0 !== n2.strstart && (a2 |= 32), a2 += 31 - a2 % 31, n2.status = E, P(n2, a2), 0 !== n2.strstart && (P(n2, e2.adler >>> 16), P(n2, 65535 & e2.adler)), e2.adler = 1;\n          }\n        if (69 === n2.status)\n          if (n2.gzhead.extra) {\n            for (i2 = n2.pending; n2.gzindex < (65535 & n2.gzhead.extra.length) && (n2.pending !== n2.pending_buf_size || (n2.gzhead.hcrc && n2.pending > i2 && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending - i2, i2)), F(e2), i2 = n2.pending, n2.pending !== n2.pending_buf_size)); )\n              U(n2, 255 & n2.gzhead.extra[n2.gzindex]), n2.gzindex++;\n            n2.gzhead.hcrc && n2.pending > i2 && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending - i2, i2)), n2.gzindex === n2.gzhead.extra.length && (n2.gzindex = 0, n2.status = 73);\n          } else\n            n2.status = 73;\n        if (73 === n2.status)\n          if (n2.gzhead.name) {\n            i2 = n2.pending;\n            do {\n              if (n2.pending === n2.pending_buf_size && (n2.gzhead.hcrc && n2.pending > i2 && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending - i2, i2)), F(e2), i2 = n2.pending, n2.pending === n2.pending_buf_size)) {\n                s2 = 1;\n                break;\n              }\n              s2 = n2.gzindex < n2.gzhead.name.length ? 255 & n2.gzhead.name.charCodeAt(n2.gzindex++) : 0, U(n2, s2);\n            } while (0 !== s2);\n            n2.gzhead.hcrc && n2.pending > i2 && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending - i2, i2)), 0 === s2 && (n2.gzindex = 0, n2.status = 91);\n          } else\n            n2.status = 91;\n        if (91 === n2.status)\n          if (n2.gzhead.comment) {\n            i2 = n2.pending;\n            do {\n              if (n2.pending === n2.pending_buf_size && (n2.gzhead.hcrc && n2.pending > i2 && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending - i2, i2)), F(e2), i2 = n2.pending, n2.pending === n2.pending_buf_size)) {\n                s2 = 1;\n                break;\n              }\n              s2 = n2.gzindex < n2.gzhead.comment.length ? 255 & n2.gzhead.comment.charCodeAt(n2.gzindex++) : 0, U(n2, s2);\n            } while (0 !== s2);\n            n2.gzhead.hcrc && n2.pending > i2 && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending - i2, i2)), 0 === s2 && (n2.status = 103);\n          } else\n            n2.status = 103;\n        if (103 === n2.status && (n2.gzhead.hcrc ? (n2.pending + 2 > n2.pending_buf_size && F(e2), n2.pending + 2 <= n2.pending_buf_size && (U(n2, 255 & e2.adler), U(n2, e2.adler >> 8 & 255), e2.adler = 0, n2.status = E)) : n2.status = E), 0 !== n2.pending) {\n          if (F(e2), 0 === e2.avail_out)\n            return n2.last_flush = -1, m;\n        } else if (0 === e2.avail_in && T(t2) <= T(r2) && t2 !== f)\n          return R(e2, -5);\n        if (666 === n2.status && 0 !== e2.avail_in)\n          return R(e2, -5);\n        if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !== l && 666 !== n2.status) {\n          var o2 = 2 === n2.strategy ? function(e3, t3) {\n            for (var r3; ; ) {\n              if (0 === e3.lookahead && (j(e3), 0 === e3.lookahead)) {\n                if (t3 === l)\n                  return A;\n                break;\n              }\n              if (e3.match_length = 0, r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++, r3 && (N(e3, false), 0 === e3.strm.avail_out))\n                return A;\n            }\n            return e3.insert = 0, t3 === f ? (N(e3, true), 0 === e3.strm.avail_out ? O : B) : e3.last_lit && (N(e3, false), 0 === e3.strm.avail_out) ? A : I;\n          }(n2, t2) : 3 === n2.strategy ? function(e3, t3) {\n            for (var r3, n3, i3, s3, a3 = e3.window; ; ) {\n              if (e3.lookahead <= S) {\n                if (j(e3), e3.lookahead <= S && t3 === l)\n                  return A;\n                if (0 === e3.lookahead)\n                  break;\n              }\n              if (e3.match_length = 0, e3.lookahead >= x && 0 < e3.strstart && (n3 = a3[i3 = e3.strstart - 1]) === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3]) {\n                s3 = e3.strstart + S;\n                do {\n                } while (n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && i3 < s3);\n                e3.match_length = S - (s3 - i3), e3.match_length > e3.lookahead && (e3.match_length = e3.lookahead);\n              }\n              if (e3.match_length >= x ? (r3 = u._tr_tally(e3, 1, e3.match_length - x), e3.lookahead -= e3.match_length, e3.strstart += e3.match_length, e3.match_length = 0) : (r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++), r3 && (N(e3, false), 0 === e3.strm.avail_out))\n                return A;\n            }\n            return e3.insert = 0, t3 === f ? (N(e3, true), 0 === e3.strm.avail_out ? O : B) : e3.last_lit && (N(e3, false), 0 === e3.strm.avail_out) ? A : I;\n          }(n2, t2) : h[n2.level].func(n2, t2);\n          if (o2 !== O && o2 !== B || (n2.status = 666), o2 === A || o2 === O)\n            return 0 === e2.avail_out && (n2.last_flush = -1), m;\n          if (o2 === I && (1 === t2 ? u._tr_align(n2) : 5 !== t2 && (u._tr_stored_block(n2, 0, 0, false), 3 === t2 && (D(n2.head), 0 === n2.lookahead && (n2.strstart = 0, n2.block_start = 0, n2.insert = 0))), F(e2), 0 === e2.avail_out))\n            return n2.last_flush = -1, m;\n        }\n        return t2 !== f ? m : n2.wrap <= 0 ? 1 : (2 === n2.wrap ? (U(n2, 255 & e2.adler), U(n2, e2.adler >> 8 & 255), U(n2, e2.adler >> 16 & 255), U(n2, e2.adler >> 24 & 255), U(n2, 255 & e2.total_in), U(n2, e2.total_in >> 8 & 255), U(n2, e2.total_in >> 16 & 255), U(n2, e2.total_in >> 24 & 255)) : (P(n2, e2.adler >>> 16), P(n2, 65535 & e2.adler)), F(e2), 0 < n2.wrap && (n2.wrap = -n2.wrap), 0 !== n2.pending ? m : 1);\n      }, r.deflateEnd = function(e2) {\n        var t2;\n        return e2 && e2.state ? (t2 = e2.state.status) !== C && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E && 666 !== t2 ? R(e2, _) : (e2.state = null, t2 === E ? R(e2, -3) : m) : _;\n      }, r.deflateSetDictionary = function(e2, t2) {\n        var r2, n2, i2, s2, a2, o2, h2, u2, l2 = t2.length;\n        if (!e2 || !e2.state)\n          return _;\n        if (2 === (s2 = (r2 = e2.state).wrap) || 1 === s2 && r2.status !== C || r2.lookahead)\n          return _;\n        for (1 === s2 && (e2.adler = d(e2.adler, t2, l2, 0)), r2.wrap = 0, l2 >= r2.w_size && (0 === s2 && (D(r2.head), r2.strstart = 0, r2.block_start = 0, r2.insert = 0), u2 = new c.Buf8(r2.w_size), c.arraySet(u2, t2, l2 - r2.w_size, r2.w_size, 0), t2 = u2, l2 = r2.w_size), a2 = e2.avail_in, o2 = e2.next_in, h2 = e2.input, e2.avail_in = l2, e2.next_in = 0, e2.input = t2, j(r2); r2.lookahead >= x; ) {\n          for (n2 = r2.strstart, i2 = r2.lookahead - (x - 1); r2.ins_h = (r2.ins_h << r2.hash_shift ^ r2.window[n2 + x - 1]) & r2.hash_mask, r2.prev[n2 & r2.w_mask] = r2.head[r2.ins_h], r2.head[r2.ins_h] = n2, n2++, --i2; )\n            ;\n          r2.strstart = n2, r2.lookahead = x - 1, j(r2);\n        }\n        return r2.strstart += r2.lookahead, r2.block_start = r2.strstart, r2.insert = r2.lookahead, r2.lookahead = 0, r2.match_length = r2.prev_length = x - 1, r2.match_available = 0, e2.next_in = o2, e2.input = h2, e2.avail_in = a2, r2.wrap = s2, m;\n      }, r.deflateInfo = \"pako deflate (from Nodeca project)\";\n    }, { \"../utils/common\": 41, \"./adler32\": 43, \"./crc32\": 45, \"./messages\": 51, \"./trees\": 52 }], 47: [function(e, t, r) {\n      t.exports = function() {\n        this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = \"\", this.comment = \"\", this.hcrc = 0, this.done = false;\n      };\n    }, {}], 48: [function(e, t, r) {\n      t.exports = function(e2, t2) {\n        var r2, n, i, s, a, o, h, u, l, f, c, d, p, m, _, g, b, v, y, w, k, x, S, z, C;\n        r2 = e2.state, n = e2.next_in, z = e2.input, i = n + (e2.avail_in - 5), s = e2.next_out, C = e2.output, a = s - (t2 - e2.avail_out), o = s + (e2.avail_out - 257), h = r2.dmax, u = r2.wsize, l = r2.whave, f = r2.wnext, c = r2.window, d = r2.hold, p = r2.bits, m = r2.lencode, _ = r2.distcode, g = (1 << r2.lenbits) - 1, b = (1 << r2.distbits) - 1;\n        e:\n          do {\n            p < 15 && (d += z[n++] << p, p += 8, d += z[n++] << p, p += 8), v = m[d & g];\n            t:\n              for (; ; ) {\n                if (d >>>= y = v >>> 24, p -= y, 0 === (y = v >>> 16 & 255))\n                  C[s++] = 65535 & v;\n                else {\n                  if (!(16 & y)) {\n                    if (0 == (64 & y)) {\n                      v = m[(65535 & v) + (d & (1 << y) - 1)];\n                      continue t;\n                    }\n                    if (32 & y) {\n                      r2.mode = 12;\n                      break e;\n                    }\n                    e2.msg = \"invalid literal/length code\", r2.mode = 30;\n                    break e;\n                  }\n                  w = 65535 & v, (y &= 15) && (p < y && (d += z[n++] << p, p += 8), w += d & (1 << y) - 1, d >>>= y, p -= y), p < 15 && (d += z[n++] << p, p += 8, d += z[n++] << p, p += 8), v = _[d & b];\n                  r:\n                    for (; ; ) {\n                      if (d >>>= y = v >>> 24, p -= y, !(16 & (y = v >>> 16 & 255))) {\n                        if (0 == (64 & y)) {\n                          v = _[(65535 & v) + (d & (1 << y) - 1)];\n                          continue r;\n                        }\n                        e2.msg = \"invalid distance code\", r2.mode = 30;\n                        break e;\n                      }\n                      if (k = 65535 & v, p < (y &= 15) && (d += z[n++] << p, (p += 8) < y && (d += z[n++] << p, p += 8)), h < (k += d & (1 << y) - 1)) {\n                        e2.msg = \"invalid distance too far back\", r2.mode = 30;\n                        break e;\n                      }\n                      if (d >>>= y, p -= y, (y = s - a) < k) {\n                        if (l < (y = k - y) && r2.sane) {\n                          e2.msg = \"invalid distance too far back\", r2.mode = 30;\n                          break e;\n                        }\n                        if (S = c, (x = 0) === f) {\n                          if (x += u - y, y < w) {\n                            for (w -= y; C[s++] = c[x++], --y; )\n                              ;\n                            x = s - k, S = C;\n                          }\n                        } else if (f < y) {\n                          if (x += u + f - y, (y -= f) < w) {\n                            for (w -= y; C[s++] = c[x++], --y; )\n                              ;\n                            if (x = 0, f < w) {\n                              for (w -= y = f; C[s++] = c[x++], --y; )\n                                ;\n                              x = s - k, S = C;\n                            }\n                          }\n                        } else if (x += f - y, y < w) {\n                          for (w -= y; C[s++] = c[x++], --y; )\n                            ;\n                          x = s - k, S = C;\n                        }\n                        for (; 2 < w; )\n                          C[s++] = S[x++], C[s++] = S[x++], C[s++] = S[x++], w -= 3;\n                        w && (C[s++] = S[x++], 1 < w && (C[s++] = S[x++]));\n                      } else {\n                        for (x = s - k; C[s++] = C[x++], C[s++] = C[x++], C[s++] = C[x++], 2 < (w -= 3); )\n                          ;\n                        w && (C[s++] = C[x++], 1 < w && (C[s++] = C[x++]));\n                      }\n                      break;\n                    }\n                }\n                break;\n              }\n          } while (n < i && s < o);\n        n -= w = p >> 3, d &= (1 << (p -= w << 3)) - 1, e2.next_in = n, e2.next_out = s, e2.avail_in = n < i ? i - n + 5 : 5 - (n - i), e2.avail_out = s < o ? o - s + 257 : 257 - (s - o), r2.hold = d, r2.bits = p;\n      };\n    }, {}], 49: [function(e, t, r) {\n      var I = e(\"../utils/common\"), O = e(\"./adler32\"), B = e(\"./crc32\"), R = e(\"./inffast\"), T = e(\"./inftrees\"), D = 1, F = 2, N = 0, U = -2, P = 1, n = 852, i = 592;\n      function L(e2) {\n        return (e2 >>> 24 & 255) + (e2 >>> 8 & 65280) + ((65280 & e2) << 8) + ((255 & e2) << 24);\n      }\n      function s() {\n        this.mode = 0, this.last = false, this.wrap = 0, this.havedict = false, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new I.Buf16(320), this.work = new I.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;\n      }\n      function a(e2) {\n        var t2;\n        return e2 && e2.state ? (t2 = e2.state, e2.total_in = e2.total_out = t2.total = 0, e2.msg = \"\", t2.wrap && (e2.adler = 1 & t2.wrap), t2.mode = P, t2.last = 0, t2.havedict = 0, t2.dmax = 32768, t2.head = null, t2.hold = 0, t2.bits = 0, t2.lencode = t2.lendyn = new I.Buf32(n), t2.distcode = t2.distdyn = new I.Buf32(i), t2.sane = 1, t2.back = -1, N) : U;\n      }\n      function o(e2) {\n        var t2;\n        return e2 && e2.state ? ((t2 = e2.state).wsize = 0, t2.whave = 0, t2.wnext = 0, a(e2)) : U;\n      }\n      function h(e2, t2) {\n        var r2, n2;\n        return e2 && e2.state ? (n2 = e2.state, t2 < 0 ? (r2 = 0, t2 = -t2) : (r2 = 1 + (t2 >> 4), t2 < 48 && (t2 &= 15)), t2 && (t2 < 8 || 15 < t2) ? U : (null !== n2.window && n2.wbits !== t2 && (n2.window = null), n2.wrap = r2, n2.wbits = t2, o(e2))) : U;\n      }\n      function u(e2, t2) {\n        var r2, n2;\n        return e2 ? (n2 = new s(), (e2.state = n2).window = null, (r2 = h(e2, t2)) !== N && (e2.state = null), r2) : U;\n      }\n      var l, f, c = true;\n      function j(e2) {\n        if (c) {\n          var t2;\n          for (l = new I.Buf32(512), f = new I.Buf32(32), t2 = 0; t2 < 144; )\n            e2.lens[t2++] = 8;\n          for (; t2 < 256; )\n            e2.lens[t2++] = 9;\n          for (; t2 < 280; )\n            e2.lens[t2++] = 7;\n          for (; t2 < 288; )\n            e2.lens[t2++] = 8;\n          for (T(D, e2.lens, 0, 288, l, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; )\n            e2.lens[t2++] = 5;\n          T(F, e2.lens, 0, 32, f, 0, e2.work, { bits: 5 }), c = false;\n        }\n        e2.lencode = l, e2.lenbits = 9, e2.distcode = f, e2.distbits = 5;\n      }\n      function Z(e2, t2, r2, n2) {\n        var i2, s2 = e2.state;\n        return null === s2.window && (s2.wsize = 1 << s2.wbits, s2.wnext = 0, s2.whave = 0, s2.window = new I.Buf8(s2.wsize)), n2 >= s2.wsize ? (I.arraySet(s2.window, t2, r2 - s2.wsize, s2.wsize, 0), s2.wnext = 0, s2.whave = s2.wsize) : (n2 < (i2 = s2.wsize - s2.wnext) && (i2 = n2), I.arraySet(s2.window, t2, r2 - n2, i2, s2.wnext), (n2 -= i2) ? (I.arraySet(s2.window, t2, r2 - n2, n2, 0), s2.wnext = n2, s2.whave = s2.wsize) : (s2.wnext += i2, s2.wnext === s2.wsize && (s2.wnext = 0), s2.whave < s2.wsize && (s2.whave += i2))), 0;\n      }\n      r.inflateReset = o, r.inflateReset2 = h, r.inflateResetKeep = a, r.inflateInit = function(e2) {\n        return u(e2, 15);\n      }, r.inflateInit2 = u, r.inflate = function(e2, t2) {\n        var r2, n2, i2, s2, a2, o2, h2, u2, l2, f2, c2, d, p, m, _, g, b, v, y, w, k, x, S, z, C = 0, E = new I.Buf8(4), A = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];\n        if (!e2 || !e2.state || !e2.output || !e2.input && 0 !== e2.avail_in)\n          return U;\n        12 === (r2 = e2.state).mode && (r2.mode = 13), a2 = e2.next_out, i2 = e2.output, h2 = e2.avail_out, s2 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r2.hold, l2 = r2.bits, f2 = o2, c2 = h2, x = N;\n        e:\n          for (; ; )\n            switch (r2.mode) {\n              case P:\n                if (0 === r2.wrap) {\n                  r2.mode = 13;\n                  break;\n                }\n                for (; l2 < 16; ) {\n                  if (0 === o2)\n                    break e;\n                  o2--, u2 += n2[s2++] << l2, l2 += 8;\n                }\n                if (2 & r2.wrap && 35615 === u2) {\n                  E[r2.check = 0] = 255 & u2, E[1] = u2 >>> 8 & 255, r2.check = B(r2.check, E, 2, 0), l2 = u2 = 0, r2.mode = 2;\n                  break;\n                }\n                if (r2.flags = 0, r2.head && (r2.head.done = false), !(1 & r2.wrap) || (((255 & u2) << 8) + (u2 >> 8)) % 31) {\n                  e2.msg = \"incorrect header check\", r2.mode = 30;\n                  break;\n                }\n                if (8 != (15 & u2)) {\n                  e2.msg = \"unknown compression method\", r2.mode = 30;\n                  break;\n                }\n                if (l2 -= 4, k = 8 + (15 & (u2 >>>= 4)), 0 === r2.wbits)\n                  r2.wbits = k;\n                else if (k > r2.wbits) {\n                  e2.msg = \"invalid window size\", r2.mode = 30;\n                  break;\n                }\n                r2.dmax = 1 << k, e2.adler = r2.check = 1, r2.mode = 512 & u2 ? 10 : 12, l2 = u2 = 0;\n                break;\n              case 2:\n                for (; l2 < 16; ) {\n                  if (0 === o2)\n                    break e;\n                  o2--, u2 += n2[s2++] << l2, l2 += 8;\n                }\n                if (r2.flags = u2, 8 != (255 & r2.flags)) {\n                  e2.msg = \"unknown compression method\", r2.mode = 30;\n                  break;\n                }\n                if (57344 & r2.flags) {\n                  e2.msg = \"unknown header flags set\", r2.mode = 30;\n                  break;\n                }\n                r2.head && (r2.head.text = u2 >> 8 & 1), 512 & r2.flags && (E[0] = 255 & u2, E[1] = u2 >>> 8 & 255, r2.check = B(r2.check, E, 2, 0)), l2 = u2 = 0, r2.mode = 3;\n              case 3:\n                for (; l2 < 32; ) {\n                  if (0 === o2)\n                    break e;\n                  o2--, u2 += n2[s2++] << l2, l2 += 8;\n                }\n                r2.head && (r2.head.time = u2), 512 & r2.flags && (E[0] = 255 & u2, E[1] = u2 >>> 8 & 255, E[2] = u2 >>> 16 & 255, E[3] = u2 >>> 24 & 255, r2.check = B(r2.check, E, 4, 0)), l2 = u2 = 0, r2.mode = 4;\n              case 4:\n                for (; l2 < 16; ) {\n                  if (0 === o2)\n                    break e;\n                  o2--, u2 += n2[s2++] << l2, l2 += 8;\n                }\n                r2.head && (r2.head.xflags = 255 & u2, r2.head.os = u2 >> 8), 512 & r2.flags && (E[0] = 255 & u2, E[1] = u2 >>> 8 & 255, r2.check = B(r2.check, E, 2, 0)), l2 = u2 = 0, r2.mode = 5;\n              case 5:\n                if (1024 & r2.flags) {\n                  for (; l2 < 16; ) {\n                    if (0 === o2)\n                      break e;\n                    o2--, u2 += n2[s2++] << l2, l2 += 8;\n                  }\n                  r2.length = u2, r2.head && (r2.head.extra_len = u2), 512 & r2.flags && (E[0] = 255 & u2, E[1] = u2 >>> 8 & 255, r2.check = B(r2.check, E, 2, 0)), l2 = u2 = 0;\n                } else\n                  r2.head && (r2.head.extra = null);\n                r2.mode = 6;\n              case 6:\n                if (1024 & r2.flags && (o2 < (d = r2.length) && (d = o2), d && (r2.head && (k = r2.head.extra_len - r2.length, r2.head.extra || (r2.head.extra = new Array(r2.head.extra_len)), I.arraySet(r2.head.extra, n2, s2, d, k)), 512 & r2.flags && (r2.check = B(r2.check, n2, d, s2)), o2 -= d, s2 += d, r2.length -= d), r2.length))\n                  break e;\n                r2.length = 0, r2.mode = 7;\n              case 7:\n                if (2048 & r2.flags) {\n                  if (0 === o2)\n                    break e;\n                  for (d = 0; k = n2[s2 + d++], r2.head && k && r2.length < 65536 && (r2.head.name += String.fromCharCode(k)), k && d < o2; )\n                    ;\n                  if (512 & r2.flags && (r2.check = B(r2.check, n2, d, s2)), o2 -= d, s2 += d, k)\n                    break e;\n                } else\n                  r2.head && (r2.head.name = null);\n                r2.length = 0, r2.mode = 8;\n              case 8:\n                if (4096 & r2.flags) {\n                  if (0 === o2)\n                    break e;\n                  for (d = 0; k = n2[s2 + d++], r2.head && k && r2.length < 65536 && (r2.head.comment += String.fromCharCode(k)), k && d < o2; )\n                    ;\n                  if (512 & r2.flags && (r2.check = B(r2.check, n2, d, s2)), o2 -= d, s2 += d, k)\n                    break e;\n                } else\n                  r2.head && (r2.head.comment = null);\n                r2.mode = 9;\n              case 9:\n                if (512 & r2.flags) {\n                  for (; l2 < 16; ) {\n                    if (0 === o2)\n                      break e;\n                    o2--, u2 += n2[s2++] << l2, l2 += 8;\n                  }\n                  if (u2 !== (65535 & r2.check)) {\n                    e2.msg = \"header crc mismatch\", r2.mode = 30;\n                    break;\n                  }\n                  l2 = u2 = 0;\n                }\n                r2.head && (r2.head.hcrc = r2.flags >> 9 & 1, r2.head.done = true), e2.adler = r2.check = 0, r2.mode = 12;\n                break;\n              case 10:\n                for (; l2 < 32; ) {\n                  if (0 === o2)\n                    break e;\n                  o2--, u2 += n2[s2++] << l2, l2 += 8;\n                }\n                e2.adler = r2.check = L(u2), l2 = u2 = 0, r2.mode = 11;\n              case 11:\n                if (0 === r2.havedict)\n                  return e2.next_out = a2, e2.avail_out = h2, e2.next_in = s2, e2.avail_in = o2, r2.hold = u2, r2.bits = l2, 2;\n                e2.adler = r2.check = 1, r2.mode = 12;\n              case 12:\n                if (5 === t2 || 6 === t2)\n                  break e;\n              case 13:\n                if (r2.last) {\n                  u2 >>>= 7 & l2, l2 -= 7 & l2, r2.mode = 27;\n                  break;\n                }\n                for (; l2 < 3; ) {\n                  if (0 === o2)\n                    break e;\n                  o2--, u2 += n2[s2++] << l2, l2 += 8;\n                }\n                switch (r2.last = 1 & u2, l2 -= 1, 3 & (u2 >>>= 1)) {\n                  case 0:\n                    r2.mode = 14;\n                    break;\n                  case 1:\n                    if (j(r2), r2.mode = 20, 6 !== t2)\n                      break;\n                    u2 >>>= 2, l2 -= 2;\n                    break e;\n                  case 2:\n                    r2.mode = 17;\n                    break;\n                  case 3:\n                    e2.msg = \"invalid block type\", r2.mode = 30;\n                }\n                u2 >>>= 2, l2 -= 2;\n                break;\n              case 14:\n                for (u2 >>>= 7 & l2, l2 -= 7 & l2; l2 < 32; ) {\n                  if (0 === o2)\n                    break e;\n                  o2--, u2 += n2[s2++] << l2, l2 += 8;\n                }\n                if ((65535 & u2) != (u2 >>> 16 ^ 65535)) {\n                  e2.msg = \"invalid stored block lengths\", r2.mode = 30;\n                  break;\n                }\n                if (r2.length = 65535 & u2, l2 = u2 = 0, r2.mode = 15, 6 === t2)\n                  break e;\n              case 15:\n                r2.mode = 16;\n              case 16:\n                if (d = r2.length) {\n                  if (o2 < d && (d = o2), h2 < d && (d = h2), 0 === d)\n                    break e;\n                  I.arraySet(i2, n2, s2, d, a2), o2 -= d, s2 += d, h2 -= d, a2 += d, r2.length -= d;\n                  break;\n                }\n                r2.mode = 12;\n                break;\n              case 17:\n                for (; l2 < 14; ) {\n                  if (0 === o2)\n                    break e;\n                  o2--, u2 += n2[s2++] << l2, l2 += 8;\n                }\n                if (r2.nlen = 257 + (31 & u2), u2 >>>= 5, l2 -= 5, r2.ndist = 1 + (31 & u2), u2 >>>= 5, l2 -= 5, r2.ncode = 4 + (15 & u2), u2 >>>= 4, l2 -= 4, 286 < r2.nlen || 30 < r2.ndist) {\n                  e2.msg = \"too many length or distance symbols\", r2.mode = 30;\n                  break;\n                }\n                r2.have = 0, r2.mode = 18;\n              case 18:\n                for (; r2.have < r2.ncode; ) {\n                  for (; l2 < 3; ) {\n                    if (0 === o2)\n                      break e;\n                    o2--, u2 += n2[s2++] << l2, l2 += 8;\n                  }\n                  r2.lens[A[r2.have++]] = 7 & u2, u2 >>>= 3, l2 -= 3;\n                }\n                for (; r2.have < 19; )\n                  r2.lens[A[r2.have++]] = 0;\n                if (r2.lencode = r2.lendyn, r2.lenbits = 7, S = { bits: r2.lenbits }, x = T(0, r2.lens, 0, 19, r2.lencode, 0, r2.work, S), r2.lenbits = S.bits, x) {\n                  e2.msg = \"invalid code lengths set\", r2.mode = 30;\n                  break;\n                }\n                r2.have = 0, r2.mode = 19;\n              case 19:\n                for (; r2.have < r2.nlen + r2.ndist; ) {\n                  for (; g = (C = r2.lencode[u2 & (1 << r2.lenbits) - 1]) >>> 16 & 255, b = 65535 & C, !((_ = C >>> 24) <= l2); ) {\n                    if (0 === o2)\n                      break e;\n                    o2--, u2 += n2[s2++] << l2, l2 += 8;\n                  }\n                  if (b < 16)\n                    u2 >>>= _, l2 -= _, r2.lens[r2.have++] = b;\n                  else {\n                    if (16 === b) {\n                      for (z = _ + 2; l2 < z; ) {\n                        if (0 === o2)\n                          break e;\n                        o2--, u2 += n2[s2++] << l2, l2 += 8;\n                      }\n                      if (u2 >>>= _, l2 -= _, 0 === r2.have) {\n                        e2.msg = \"invalid bit length repeat\", r2.mode = 30;\n                        break;\n                      }\n                      k = r2.lens[r2.have - 1], d = 3 + (3 & u2), u2 >>>= 2, l2 -= 2;\n                    } else if (17 === b) {\n                      for (z = _ + 3; l2 < z; ) {\n                        if (0 === o2)\n                          break e;\n                        o2--, u2 += n2[s2++] << l2, l2 += 8;\n                      }\n                      l2 -= _, k = 0, d = 3 + (7 & (u2 >>>= _)), u2 >>>= 3, l2 -= 3;\n                    } else {\n                      for (z = _ + 7; l2 < z; ) {\n                        if (0 === o2)\n                          break e;\n                        o2--, u2 += n2[s2++] << l2, l2 += 8;\n                      }\n                      l2 -= _, k = 0, d = 11 + (127 & (u2 >>>= _)), u2 >>>= 7, l2 -= 7;\n                    }\n                    if (r2.have + d > r2.nlen + r2.ndist) {\n                      e2.msg = \"invalid bit length repeat\", r2.mode = 30;\n                      break;\n                    }\n                    for (; d--; )\n                      r2.lens[r2.have++] = k;\n                  }\n                }\n                if (30 === r2.mode)\n                  break;\n                if (0 === r2.lens[256]) {\n                  e2.msg = \"invalid code -- missing end-of-block\", r2.mode = 30;\n                  break;\n                }\n                if (r2.lenbits = 9, S = { bits: r2.lenbits }, x = T(D, r2.lens, 0, r2.nlen, r2.lencode, 0, r2.work, S), r2.lenbits = S.bits, x) {\n                  e2.msg = \"invalid literal/lengths set\", r2.mode = 30;\n                  break;\n                }\n                if (r2.distbits = 6, r2.distcode = r2.distdyn, S = { bits: r2.distbits }, x = T(F, r2.lens, r2.nlen, r2.ndist, r2.distcode, 0, r2.work, S), r2.distbits = S.bits, x) {\n                  e2.msg = \"invalid distances set\", r2.mode = 30;\n                  break;\n                }\n                if (r2.mode = 20, 6 === t2)\n                  break e;\n              case 20:\n                r2.mode = 21;\n              case 21:\n                if (6 <= o2 && 258 <= h2) {\n                  e2.next_out = a2, e2.avail_out = h2, e2.next_in = s2, e2.avail_in = o2, r2.hold = u2, r2.bits = l2, R(e2, c2), a2 = e2.next_out, i2 = e2.output, h2 = e2.avail_out, s2 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r2.hold, l2 = r2.bits, 12 === r2.mode && (r2.back = -1);\n                  break;\n                }\n                for (r2.back = 0; g = (C = r2.lencode[u2 & (1 << r2.lenbits) - 1]) >>> 16 & 255, b = 65535 & C, !((_ = C >>> 24) <= l2); ) {\n                  if (0 === o2)\n                    break e;\n                  o2--, u2 += n2[s2++] << l2, l2 += 8;\n                }\n                if (g && 0 == (240 & g)) {\n                  for (v = _, y = g, w = b; g = (C = r2.lencode[w + ((u2 & (1 << v + y) - 1) >> v)]) >>> 16 & 255, b = 65535 & C, !(v + (_ = C >>> 24) <= l2); ) {\n                    if (0 === o2)\n                      break e;\n                    o2--, u2 += n2[s2++] << l2, l2 += 8;\n                  }\n                  u2 >>>= v, l2 -= v, r2.back += v;\n                }\n                if (u2 >>>= _, l2 -= _, r2.back += _, r2.length = b, 0 === g) {\n                  r2.mode = 26;\n                  break;\n                }\n                if (32 & g) {\n                  r2.back = -1, r2.mode = 12;\n                  break;\n                }\n                if (64 & g) {\n                  e2.msg = \"invalid literal/length code\", r2.mode = 30;\n                  break;\n                }\n                r2.extra = 15 & g, r2.mode = 22;\n              case 22:\n                if (r2.extra) {\n                  for (z = r2.extra; l2 < z; ) {\n                    if (0 === o2)\n                      break e;\n                    o2--, u2 += n2[s2++] << l2, l2 += 8;\n                  }\n                  r2.length += u2 & (1 << r2.extra) - 1, u2 >>>= r2.extra, l2 -= r2.extra, r2.back += r2.extra;\n                }\n                r2.was = r2.length, r2.mode = 23;\n              case 23:\n                for (; g = (C = r2.distcode[u2 & (1 << r2.distbits) - 1]) >>> 16 & 255, b = 65535 & C, !((_ = C >>> 24) <= l2); ) {\n                  if (0 === o2)\n                    break e;\n                  o2--, u2 += n2[s2++] << l2, l2 += 8;\n                }\n                if (0 == (240 & g)) {\n                  for (v = _, y = g, w = b; g = (C = r2.distcode[w + ((u2 & (1 << v + y) - 1) >> v)]) >>> 16 & 255, b = 65535 & C, !(v + (_ = C >>> 24) <= l2); ) {\n                    if (0 === o2)\n                      break e;\n                    o2--, u2 += n2[s2++] << l2, l2 += 8;\n                  }\n                  u2 >>>= v, l2 -= v, r2.back += v;\n                }\n                if (u2 >>>= _, l2 -= _, r2.back += _, 64 & g) {\n                  e2.msg = \"invalid distance code\", r2.mode = 30;\n                  break;\n                }\n                r2.offset = b, r2.extra = 15 & g, r2.mode = 24;\n              case 24:\n                if (r2.extra) {\n                  for (z = r2.extra; l2 < z; ) {\n                    if (0 === o2)\n                      break e;\n                    o2--, u2 += n2[s2++] << l2, l2 += 8;\n                  }\n                  r2.offset += u2 & (1 << r2.extra) - 1, u2 >>>= r2.extra, l2 -= r2.extra, r2.back += r2.extra;\n                }\n                if (r2.offset > r2.dmax) {\n                  e2.msg = \"invalid distance too far back\", r2.mode = 30;\n                  break;\n                }\n                r2.mode = 25;\n              case 25:\n                if (0 === h2)\n                  break e;\n                if (d = c2 - h2, r2.offset > d) {\n                  if ((d = r2.offset - d) > r2.whave && r2.sane) {\n                    e2.msg = \"invalid distance too far back\", r2.mode = 30;\n                    break;\n                  }\n                  p = d > r2.wnext ? (d -= r2.wnext, r2.wsize - d) : r2.wnext - d, d > r2.length && (d = r2.length), m = r2.window;\n                } else\n                  m = i2, p = a2 - r2.offset, d = r2.length;\n                for (h2 < d && (d = h2), h2 -= d, r2.length -= d; i2[a2++] = m[p++], --d; )\n                  ;\n                0 === r2.length && (r2.mode = 21);\n                break;\n              case 26:\n                if (0 === h2)\n                  break e;\n                i2[a2++] = r2.length, h2--, r2.mode = 21;\n                break;\n              case 27:\n                if (r2.wrap) {\n                  for (; l2 < 32; ) {\n                    if (0 === o2)\n                      break e;\n                    o2--, u2 |= n2[s2++] << l2, l2 += 8;\n                  }\n                  if (c2 -= h2, e2.total_out += c2, r2.total += c2, c2 && (e2.adler = r2.check = r2.flags ? B(r2.check, i2, c2, a2 - c2) : O(r2.check, i2, c2, a2 - c2)), c2 = h2, (r2.flags ? u2 : L(u2)) !== r2.check) {\n                    e2.msg = \"incorrect data check\", r2.mode = 30;\n                    break;\n                  }\n                  l2 = u2 = 0;\n                }\n                r2.mode = 28;\n              case 28:\n                if (r2.wrap && r2.flags) {\n                  for (; l2 < 32; ) {\n                    if (0 === o2)\n                      break e;\n                    o2--, u2 += n2[s2++] << l2, l2 += 8;\n                  }\n                  if (u2 !== (4294967295 & r2.total)) {\n                    e2.msg = \"incorrect length check\", r2.mode = 30;\n                    break;\n                  }\n                  l2 = u2 = 0;\n                }\n                r2.mode = 29;\n              case 29:\n                x = 1;\n                break e;\n              case 30:\n                x = -3;\n                break e;\n              case 31:\n                return -4;\n              case 32:\n              default:\n                return U;\n            }\n        return e2.next_out = a2, e2.avail_out = h2, e2.next_in = s2, e2.avail_in = o2, r2.hold = u2, r2.bits = l2, (r2.wsize || c2 !== e2.avail_out && r2.mode < 30 && (r2.mode < 27 || 4 !== t2)) && Z(e2, e2.output, e2.next_out, c2 - e2.avail_out) ? (r2.mode = 31, -4) : (f2 -= e2.avail_in, c2 -= e2.avail_out, e2.total_in += f2, e2.total_out += c2, r2.total += c2, r2.wrap && c2 && (e2.adler = r2.check = r2.flags ? B(r2.check, i2, c2, e2.next_out - c2) : O(r2.check, i2, c2, e2.next_out - c2)), e2.data_type = r2.bits + (r2.last ? 64 : 0) + (12 === r2.mode ? 128 : 0) + (20 === r2.mode || 15 === r2.mode ? 256 : 0), (0 == f2 && 0 === c2 || 4 === t2) && x === N && (x = -5), x);\n      }, r.inflateEnd = function(e2) {\n        if (!e2 || !e2.state)\n          return U;\n        var t2 = e2.state;\n        return t2.window && (t2.window = null), e2.state = null, N;\n      }, r.inflateGetHeader = function(e2, t2) {\n        var r2;\n        return e2 && e2.state ? 0 == (2 & (r2 = e2.state).wrap) ? U : ((r2.head = t2).done = false, N) : U;\n      }, r.inflateSetDictionary = function(e2, t2) {\n        var r2, n2 = t2.length;\n        return e2 && e2.state ? 0 !== (r2 = e2.state).wrap && 11 !== r2.mode ? U : 11 === r2.mode && O(1, t2, n2, 0) !== r2.check ? -3 : Z(e2, t2, n2, n2) ? (r2.mode = 31, -4) : (r2.havedict = 1, N) : U;\n      }, r.inflateInfo = \"pako inflate (from Nodeca project)\";\n    }, { \"../utils/common\": 41, \"./adler32\": 43, \"./crc32\": 45, \"./inffast\": 48, \"./inftrees\": 50 }], 50: [function(e, t, r) {\n      var D = e(\"../utils/common\"), F = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], N = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], U = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], P = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];\n      t.exports = function(e2, t2, r2, n, i, s, a, o) {\n        var h, u, l, f, c, d, p, m, _, g = o.bits, b = 0, v = 0, y = 0, w = 0, k = 0, x = 0, S = 0, z = 0, C = 0, E = 0, A = null, I = 0, O = new D.Buf16(16), B = new D.Buf16(16), R = null, T = 0;\n        for (b = 0; b <= 15; b++)\n          O[b] = 0;\n        for (v = 0; v < n; v++)\n          O[t2[r2 + v]]++;\n        for (k = g, w = 15; 1 <= w && 0 === O[w]; w--)\n          ;\n        if (w < k && (k = w), 0 === w)\n          return i[s++] = 20971520, i[s++] = 20971520, o.bits = 1, 0;\n        for (y = 1; y < w && 0 === O[y]; y++)\n          ;\n        for (k < y && (k = y), b = z = 1; b <= 15; b++)\n          if (z <<= 1, (z -= O[b]) < 0)\n            return -1;\n        if (0 < z && (0 === e2 || 1 !== w))\n          return -1;\n        for (B[1] = 0, b = 1; b < 15; b++)\n          B[b + 1] = B[b] + O[b];\n        for (v = 0; v < n; v++)\n          0 !== t2[r2 + v] && (a[B[t2[r2 + v]]++] = v);\n        if (d = 0 === e2 ? (A = R = a, 19) : 1 === e2 ? (A = F, I -= 257, R = N, T -= 257, 256) : (A = U, R = P, -1), b = y, c = s, S = v = E = 0, l = -1, f = (C = 1 << (x = k)) - 1, 1 === e2 && 852 < C || 2 === e2 && 592 < C)\n          return 1;\n        for (; ; ) {\n          for (p = b - S, _ = a[v] < d ? (m = 0, a[v]) : a[v] > d ? (m = R[T + a[v]], A[I + a[v]]) : (m = 96, 0), h = 1 << b - S, y = u = 1 << x; i[c + (E >> S) + (u -= h)] = p << 24 | m << 16 | _ | 0, 0 !== u; )\n            ;\n          for (h = 1 << b - 1; E & h; )\n            h >>= 1;\n          if (0 !== h ? (E &= h - 1, E += h) : E = 0, v++, 0 == --O[b]) {\n            if (b === w)\n              break;\n            b = t2[r2 + a[v]];\n          }\n          if (k < b && (E & f) !== l) {\n            for (0 === S && (S = k), c += y, z = 1 << (x = b - S); x + S < w && !((z -= O[x + S]) <= 0); )\n              x++, z <<= 1;\n            if (C += 1 << x, 1 === e2 && 852 < C || 2 === e2 && 592 < C)\n              return 1;\n            i[l = E & f] = k << 24 | x << 16 | c - s | 0;\n          }\n        }\n        return 0 !== E && (i[c + E] = b - S << 24 | 64 << 16 | 0), o.bits = k, 0;\n      };\n    }, { \"../utils/common\": 41 }], 51: [function(e, t, r) {\n      t.exports = { 2: \"need dictionary\", 1: \"stream end\", 0: \"\", \"-1\": \"file error\", \"-2\": \"stream error\", \"-3\": \"data error\", \"-4\": \"insufficient memory\", \"-5\": \"buffer error\", \"-6\": \"incompatible version\" };\n    }, {}], 52: [function(e, t, r) {\n      var i = e(\"../utils/common\"), o = 0, h = 1;\n      function n(e2) {\n        for (var t2 = e2.length; 0 <= --t2; )\n          e2[t2] = 0;\n      }\n      var s = 0, a = 29, u = 256, l = u + 1 + a, f = 30, c = 19, _ = 2 * l + 1, g = 15, d = 16, p = 7, m = 256, b = 16, v = 17, y = 18, w = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z = new Array(2 * (l + 2));\n      n(z);\n      var C = new Array(2 * f);\n      n(C);\n      var E = new Array(512);\n      n(E);\n      var A = new Array(256);\n      n(A);\n      var I = new Array(a);\n      n(I);\n      var O, B, R, T = new Array(f);\n      function D(e2, t2, r2, n2, i2) {\n        this.static_tree = e2, this.extra_bits = t2, this.extra_base = r2, this.elems = n2, this.max_length = i2, this.has_stree = e2 && e2.length;\n      }\n      function F(e2, t2) {\n        this.dyn_tree = e2, this.max_code = 0, this.stat_desc = t2;\n      }\n      function N(e2) {\n        return e2 < 256 ? E[e2] : E[256 + (e2 >>> 7)];\n      }\n      function U(e2, t2) {\n        e2.pending_buf[e2.pending++] = 255 & t2, e2.pending_buf[e2.pending++] = t2 >>> 8 & 255;\n      }\n      function P(e2, t2, r2) {\n        e2.bi_valid > d - r2 ? (e2.bi_buf |= t2 << e2.bi_valid & 65535, U(e2, e2.bi_buf), e2.bi_buf = t2 >> d - e2.bi_valid, e2.bi_valid += r2 - d) : (e2.bi_buf |= t2 << e2.bi_valid & 65535, e2.bi_valid += r2);\n      }\n      function L(e2, t2, r2) {\n        P(e2, r2[2 * t2], r2[2 * t2 + 1]);\n      }\n      function j(e2, t2) {\n        for (var r2 = 0; r2 |= 1 & e2, e2 >>>= 1, r2 <<= 1, 0 < --t2; )\n          ;\n        return r2 >>> 1;\n      }\n      function Z(e2, t2, r2) {\n        var n2, i2, s2 = new Array(g + 1), a2 = 0;\n        for (n2 = 1; n2 <= g; n2++)\n          s2[n2] = a2 = a2 + r2[n2 - 1] << 1;\n        for (i2 = 0; i2 <= t2; i2++) {\n          var o2 = e2[2 * i2 + 1];\n          0 !== o2 && (e2[2 * i2] = j(s2[o2]++, o2));\n        }\n      }\n      function W(e2) {\n        var t2;\n        for (t2 = 0; t2 < l; t2++)\n          e2.dyn_ltree[2 * t2] = 0;\n        for (t2 = 0; t2 < f; t2++)\n          e2.dyn_dtree[2 * t2] = 0;\n        for (t2 = 0; t2 < c; t2++)\n          e2.bl_tree[2 * t2] = 0;\n        e2.dyn_ltree[2 * m] = 1, e2.opt_len = e2.static_len = 0, e2.last_lit = e2.matches = 0;\n      }\n      function M(e2) {\n        8 < e2.bi_valid ? U(e2, e2.bi_buf) : 0 < e2.bi_valid && (e2.pending_buf[e2.pending++] = e2.bi_buf), e2.bi_buf = 0, e2.bi_valid = 0;\n      }\n      function H(e2, t2, r2, n2) {\n        var i2 = 2 * t2, s2 = 2 * r2;\n        return e2[i2] < e2[s2] || e2[i2] === e2[s2] && n2[t2] <= n2[r2];\n      }\n      function G(e2, t2, r2) {\n        for (var n2 = e2.heap[r2], i2 = r2 << 1; i2 <= e2.heap_len && (i2 < e2.heap_len && H(t2, e2.heap[i2 + 1], e2.heap[i2], e2.depth) && i2++, !H(t2, n2, e2.heap[i2], e2.depth)); )\n          e2.heap[r2] = e2.heap[i2], r2 = i2, i2 <<= 1;\n        e2.heap[r2] = n2;\n      }\n      function K(e2, t2, r2) {\n        var n2, i2, s2, a2, o2 = 0;\n        if (0 !== e2.last_lit)\n          for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i2 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L(e2, i2, t2) : (L(e2, (s2 = A[i2]) + u + 1, t2), 0 !== (a2 = w[s2]) && P(e2, i2 -= I[s2], a2), L(e2, s2 = N(--n2), r2), 0 !== (a2 = k[s2]) && P(e2, n2 -= T[s2], a2)), o2 < e2.last_lit; )\n            ;\n        L(e2, m, t2);\n      }\n      function Y(e2, t2) {\n        var r2, n2, i2, s2 = t2.dyn_tree, a2 = t2.stat_desc.static_tree, o2 = t2.stat_desc.has_stree, h2 = t2.stat_desc.elems, u2 = -1;\n        for (e2.heap_len = 0, e2.heap_max = _, r2 = 0; r2 < h2; r2++)\n          0 !== s2[2 * r2] ? (e2.heap[++e2.heap_len] = u2 = r2, e2.depth[r2] = 0) : s2[2 * r2 + 1] = 0;\n        for (; e2.heap_len < 2; )\n          s2[2 * (i2 = e2.heap[++e2.heap_len] = u2 < 2 ? ++u2 : 0)] = 1, e2.depth[i2] = 0, e2.opt_len--, o2 && (e2.static_len -= a2[2 * i2 + 1]);\n        for (t2.max_code = u2, r2 = e2.heap_len >> 1; 1 <= r2; r2--)\n          G(e2, s2, r2);\n        for (i2 = h2; r2 = e2.heap[1], e2.heap[1] = e2.heap[e2.heap_len--], G(e2, s2, 1), n2 = e2.heap[1], e2.heap[--e2.heap_max] = r2, e2.heap[--e2.heap_max] = n2, s2[2 * i2] = s2[2 * r2] + s2[2 * n2], e2.depth[i2] = (e2.depth[r2] >= e2.depth[n2] ? e2.depth[r2] : e2.depth[n2]) + 1, s2[2 * r2 + 1] = s2[2 * n2 + 1] = i2, e2.heap[1] = i2++, G(e2, s2, 1), 2 <= e2.heap_len; )\n          ;\n        e2.heap[--e2.heap_max] = e2.heap[1], function(e3, t3) {\n          var r3, n3, i3, s3, a3, o3, h3 = t3.dyn_tree, u3 = t3.max_code, l2 = t3.stat_desc.static_tree, f2 = t3.stat_desc.has_stree, c2 = t3.stat_desc.extra_bits, d2 = t3.stat_desc.extra_base, p2 = t3.stat_desc.max_length, m2 = 0;\n          for (s3 = 0; s3 <= g; s3++)\n            e3.bl_count[s3] = 0;\n          for (h3[2 * e3.heap[e3.heap_max] + 1] = 0, r3 = e3.heap_max + 1; r3 < _; r3++)\n            p2 < (s3 = h3[2 * h3[2 * (n3 = e3.heap[r3]) + 1] + 1] + 1) && (s3 = p2, m2++), h3[2 * n3 + 1] = s3, u3 < n3 || (e3.bl_count[s3]++, a3 = 0, d2 <= n3 && (a3 = c2[n3 - d2]), o3 = h3[2 * n3], e3.opt_len += o3 * (s3 + a3), f2 && (e3.static_len += o3 * (l2[2 * n3 + 1] + a3)));\n          if (0 !== m2) {\n            do {\n              for (s3 = p2 - 1; 0 === e3.bl_count[s3]; )\n                s3--;\n              e3.bl_count[s3]--, e3.bl_count[s3 + 1] += 2, e3.bl_count[p2]--, m2 -= 2;\n            } while (0 < m2);\n            for (s3 = p2; 0 !== s3; s3--)\n              for (n3 = e3.bl_count[s3]; 0 !== n3; )\n                u3 < (i3 = e3.heap[--r3]) || (h3[2 * i3 + 1] !== s3 && (e3.opt_len += (s3 - h3[2 * i3 + 1]) * h3[2 * i3], h3[2 * i3 + 1] = s3), n3--);\n          }\n        }(e2, t2), Z(s2, u2, e2.bl_count);\n      }\n      function X(e2, t2, r2) {\n        var n2, i2, s2 = -1, a2 = t2[1], o2 = 0, h2 = 7, u2 = 4;\n        for (0 === a2 && (h2 = 138, u2 = 3), t2[2 * (r2 + 1) + 1] = 65535, n2 = 0; n2 <= r2; n2++)\n          i2 = a2, a2 = t2[2 * (n2 + 1) + 1], ++o2 < h2 && i2 === a2 || (o2 < u2 ? e2.bl_tree[2 * i2] += o2 : 0 !== i2 ? (i2 !== s2 && e2.bl_tree[2 * i2]++, e2.bl_tree[2 * b]++) : o2 <= 10 ? e2.bl_tree[2 * v]++ : e2.bl_tree[2 * y]++, s2 = i2, u2 = (o2 = 0) === a2 ? (h2 = 138, 3) : i2 === a2 ? (h2 = 6, 3) : (h2 = 7, 4));\n      }\n      function V(e2, t2, r2) {\n        var n2, i2, s2 = -1, a2 = t2[1], o2 = 0, h2 = 7, u2 = 4;\n        for (0 === a2 && (h2 = 138, u2 = 3), n2 = 0; n2 <= r2; n2++)\n          if (i2 = a2, a2 = t2[2 * (n2 + 1) + 1], !(++o2 < h2 && i2 === a2)) {\n            if (o2 < u2)\n              for (; L(e2, i2, e2.bl_tree), 0 != --o2; )\n                ;\n            else\n              0 !== i2 ? (i2 !== s2 && (L(e2, i2, e2.bl_tree), o2--), L(e2, b, e2.bl_tree), P(e2, o2 - 3, 2)) : o2 <= 10 ? (L(e2, v, e2.bl_tree), P(e2, o2 - 3, 3)) : (L(e2, y, e2.bl_tree), P(e2, o2 - 11, 7));\n            s2 = i2, u2 = (o2 = 0) === a2 ? (h2 = 138, 3) : i2 === a2 ? (h2 = 6, 3) : (h2 = 7, 4);\n          }\n      }\n      n(T);\n      var q = false;\n      function J(e2, t2, r2, n2) {\n        P(e2, (s << 1) + (n2 ? 1 : 0), 3), function(e3, t3, r3, n3) {\n          M(e3), U(e3, r3), U(e3, ~r3), i.arraySet(e3.pending_buf, e3.window, t3, r3, e3.pending), e3.pending += r3;\n        }(e2, t2, r2);\n      }\n      r._tr_init = function(e2) {\n        q || (function() {\n          var e3, t2, r2, n2, i2, s2 = new Array(g + 1);\n          for (n2 = r2 = 0; n2 < a - 1; n2++)\n            for (I[n2] = r2, e3 = 0; e3 < 1 << w[n2]; e3++)\n              A[r2++] = n2;\n          for (A[r2 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++)\n            for (T[n2] = i2, e3 = 0; e3 < 1 << k[n2]; e3++)\n              E[i2++] = n2;\n          for (i2 >>= 7; n2 < f; n2++)\n            for (T[n2] = i2 << 7, e3 = 0; e3 < 1 << k[n2] - 7; e3++)\n              E[256 + i2++] = n2;\n          for (t2 = 0; t2 <= g; t2++)\n            s2[t2] = 0;\n          for (e3 = 0; e3 <= 143; )\n            z[2 * e3 + 1] = 8, e3++, s2[8]++;\n          for (; e3 <= 255; )\n            z[2 * e3 + 1] = 9, e3++, s2[9]++;\n          for (; e3 <= 279; )\n            z[2 * e3 + 1] = 7, e3++, s2[7]++;\n          for (; e3 <= 287; )\n            z[2 * e3 + 1] = 8, e3++, s2[8]++;\n          for (Z(z, l + 1, s2), e3 = 0; e3 < f; e3++)\n            C[2 * e3 + 1] = 5, C[2 * e3] = j(e3, 5);\n          O = new D(z, w, u + 1, l, g), B = new D(C, k, 0, f, g), R = new D(new Array(0), x, 0, c, p);\n        }(), q = true), e2.l_desc = new F(e2.dyn_ltree, O), e2.d_desc = new F(e2.dyn_dtree, B), e2.bl_desc = new F(e2.bl_tree, R), e2.bi_buf = 0, e2.bi_valid = 0, W(e2);\n      }, r._tr_stored_block = J, r._tr_flush_block = function(e2, t2, r2, n2) {\n        var i2, s2, a2 = 0;\n        0 < e2.level ? (2 === e2.strm.data_type && (e2.strm.data_type = function(e3) {\n          var t3, r3 = 4093624447;\n          for (t3 = 0; t3 <= 31; t3++, r3 >>>= 1)\n            if (1 & r3 && 0 !== e3.dyn_ltree[2 * t3])\n              return o;\n          if (0 !== e3.dyn_ltree[18] || 0 !== e3.dyn_ltree[20] || 0 !== e3.dyn_ltree[26])\n            return h;\n          for (t3 = 32; t3 < u; t3++)\n            if (0 !== e3.dyn_ltree[2 * t3])\n              return h;\n          return o;\n        }(e2)), Y(e2, e2.l_desc), Y(e2, e2.d_desc), a2 = function(e3) {\n          var t3;\n          for (X(e3, e3.dyn_ltree, e3.l_desc.max_code), X(e3, e3.dyn_dtree, e3.d_desc.max_code), Y(e3, e3.bl_desc), t3 = c - 1; 3 <= t3 && 0 === e3.bl_tree[2 * S[t3] + 1]; t3--)\n            ;\n          return e3.opt_len += 3 * (t3 + 1) + 5 + 5 + 4, t3;\n        }(e2), i2 = e2.opt_len + 3 + 7 >>> 3, (s2 = e2.static_len + 3 + 7 >>> 3) <= i2 && (i2 = s2)) : i2 = s2 = r2 + 5, r2 + 4 <= i2 && -1 !== t2 ? J(e2, t2, r2, n2) : 4 === e2.strategy || s2 === i2 ? (P(e2, 2 + (n2 ? 1 : 0), 3), K(e2, z, C)) : (P(e2, 4 + (n2 ? 1 : 0), 3), function(e3, t3, r3, n3) {\n          var i3;\n          for (P(e3, t3 - 257, 5), P(e3, r3 - 1, 5), P(e3, n3 - 4, 4), i3 = 0; i3 < n3; i3++)\n            P(e3, e3.bl_tree[2 * S[i3] + 1], 3);\n          V(e3, e3.dyn_ltree, t3 - 1), V(e3, e3.dyn_dtree, r3 - 1);\n        }(e2, e2.l_desc.max_code + 1, e2.d_desc.max_code + 1, a2 + 1), K(e2, e2.dyn_ltree, e2.dyn_dtree)), W(e2), n2 && M(e2);\n      }, r._tr_tally = function(e2, t2, r2) {\n        return e2.pending_buf[e2.d_buf + 2 * e2.last_lit] = t2 >>> 8 & 255, e2.pending_buf[e2.d_buf + 2 * e2.last_lit + 1] = 255 & t2, e2.pending_buf[e2.l_buf + e2.last_lit] = 255 & r2, e2.last_lit++, 0 === t2 ? e2.dyn_ltree[2 * r2]++ : (e2.matches++, t2--, e2.dyn_ltree[2 * (A[r2] + u + 1)]++, e2.dyn_dtree[2 * N(t2)]++), e2.last_lit === e2.lit_bufsize - 1;\n      }, r._tr_align = function(e2) {\n        P(e2, 2, 3), L(e2, m, z), function(e3) {\n          16 === e3.bi_valid ? (U(e3, e3.bi_buf), e3.bi_buf = 0, e3.bi_valid = 0) : 8 <= e3.bi_valid && (e3.pending_buf[e3.pending++] = 255 & e3.bi_buf, e3.bi_buf >>= 8, e3.bi_valid -= 8);\n        }(e2);\n      };\n    }, { \"../utils/common\": 41 }], 53: [function(e, t, r) {\n      t.exports = function() {\n        this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = \"\", this.state = null, this.data_type = 2, this.adler = 0;\n      };\n    }, {}], 54: [function(e, t, r) {\n      (function(e2) {\n        !function(r2, n) {\n          if (!r2.setImmediate) {\n            var i, s, t2, a, o = 1, h = {}, u = false, l = r2.document, e3 = Object.getPrototypeOf && Object.getPrototypeOf(r2);\n            e3 = e3 && e3.setTimeout ? e3 : r2, i = \"[object process]\" === {}.toString.call(r2.process) ? function(e4) {\n              process.nextTick(function() {\n                c(e4);\n              });\n            } : function() {\n              if (r2.postMessage && !r2.importScripts) {\n                var e4 = true, t3 = r2.onmessage;\n                return r2.onmessage = function() {\n                  e4 = false;\n                }, r2.postMessage(\"\", \"*\"), r2.onmessage = t3, e4;\n              }\n            }() ? (a = \"setImmediate$\" + Math.random() + \"$\", r2.addEventListener ? r2.addEventListener(\"message\", d, false) : r2.attachEvent(\"onmessage\", d), function(e4) {\n              r2.postMessage(a + e4, \"*\");\n            }) : r2.MessageChannel ? ((t2 = new MessageChannel()).port1.onmessage = function(e4) {\n              c(e4.data);\n            }, function(e4) {\n              t2.port2.postMessage(e4);\n            }) : l && \"onreadystatechange\" in l.createElement(\"script\") ? (s = l.documentElement, function(e4) {\n              var t3 = l.createElement(\"script\");\n              t3.onreadystatechange = function() {\n                c(e4), t3.onreadystatechange = null, s.removeChild(t3), t3 = null;\n              }, s.appendChild(t3);\n            }) : function(e4) {\n              setTimeout(c, 0, e4);\n            }, e3.setImmediate = function(e4) {\n              \"function\" != typeof e4 && (e4 = new Function(\"\" + e4));\n              for (var t3 = new Array(arguments.length - 1), r3 = 0; r3 < t3.length; r3++)\n                t3[r3] = arguments[r3 + 1];\n              var n2 = { callback: e4, args: t3 };\n              return h[o] = n2, i(o), o++;\n            }, e3.clearImmediate = f;\n          }\n          function f(e4) {\n            delete h[e4];\n          }\n          function c(e4) {\n            if (u)\n              setTimeout(c, 0, e4);\n            else {\n              var t3 = h[e4];\n              if (t3) {\n                u = true;\n                try {\n                  !function(e5) {\n                    var t4 = e5.callback, r3 = e5.args;\n                    switch (r3.length) {\n                      case 0:\n                        t4();\n                        break;\n                      case 1:\n                        t4(r3[0]);\n                        break;\n                      case 2:\n                        t4(r3[0], r3[1]);\n                        break;\n                      case 3:\n                        t4(r3[0], r3[1], r3[2]);\n                        break;\n                      default:\n                        t4.apply(n, r3);\n                    }\n                  }(t3);\n                } finally {\n                  f(e4), u = false;\n                }\n              }\n            }\n          }\n          function d(e4) {\n            e4.source === r2 && \"string\" == typeof e4.data && 0 === e4.data.indexOf(a) && c(+e4.data.slice(a.length));\n          }\n        }(\"undefined\" == typeof self ? void 0 === e2 ? this : e2 : self);\n      }).call(this, \"undefined\" != typeof commonjsGlobal ? commonjsGlobal : \"undefined\" != typeof self ? self : \"undefined\" != typeof window ? window : {});\n    }, {}] }, {}, [10])(10);\n  });\n})(jszip_min);\nvar jszip_minExports = jszip_min.exports;\nconst JSZip = /* @__PURE__ */ getDefaultExportFromCjs(jszip_minExports);\nclass Comment {\n  /**\n   * Constructs a new BCF Topic Comment instance.\n   * @param components - The Components instance.\n   * @param text - The initial comment text.\n   */\n  constructor(components, text) {\n    __publicField(this, \"date\", /* @__PURE__ */ new Date());\n    __publicField(this, \"author\");\n    __publicField(this, \"guid\", UUID.create());\n    __publicField(this, \"viewpoint\");\n    __publicField(this, \"modifiedAuthor\");\n    __publicField(this, \"modifiedDate\");\n    __publicField(this, \"topic\");\n    __publicField(this, \"_components\");\n    __publicField(this, \"_comment\", \"\");\n    this._components = components;\n    this._comment = text;\n    const manager = this._components.get(BCFTopics);\n    this.author = manager.config.author;\n  }\n  /**\n   * Sets the comment text and updates the modified date and author.\n   * The author will be the one defined in BCFTopics.config.author\n   * @param value - The new comment text.\n   */\n  set comment(value) {\n    var _a;\n    const manager = this._components.get(BCFTopics);\n    this._comment = value;\n    this.modifiedDate = /* @__PURE__ */ new Date();\n    this.modifiedAuthor = manager.config.author;\n    (_a = this.topic) == null ? void 0 : _a.comments.set(this.guid, this);\n  }\n  /**\n   * Gets the comment text.\n   * @returns The comment text.\n   */\n  get comment() {\n    return this._comment;\n  }\n  toJSON() {\n    var _a, _b;\n    const result = {\n      guid: this.guid,\n      date: this.date.toISOString(),\n      author: this.author,\n      comment: this.comment,\n      topic_guid: (_a = this.topic) == null ? void 0 : _a.guid,\n      viewpoint_guid: this.viewpoint,\n      modified_date: (_b = this.modifiedDate) == null ? void 0 : _b.toISOString(),\n      modified_author: this.modifiedAuthor\n    };\n    for (const [key, value] of Object.entries(result)) {\n      if (value === void 0)\n        delete result[key];\n    }\n    return result;\n  }\n}\nconst _Topic = class _Topic {\n  /**\n   * Initializes a new instance of the `Topic` class representing a BCF (BIM Collaboration Format) topic.\n   * It provides methods and properties to manage and serialize BCF topics.\n   *\n   * @remarks\n   * The default creationUser is the one set in BCFTopics.config.author\n   * It should not be created manually. Better use BCFTopics.create().\n   *\n   * @param components - The `Components` instance that provides access to other components and services.\n   */\n  constructor(components) {\n    /**\n     * A unique identifier for the topic.\n     *\n     * @remarks\n     * The `guid` is automatically generated upon topic creation and by no means it should change.\n     */\n    __publicField(this, \"guid\", UUID.create());\n    __publicField(this, \"title\", _Topic.default.title);\n    __publicField(this, \"creationDate\", /* @__PURE__ */ new Date());\n    __publicField(this, \"creationAuthor\", \"\");\n    // Store viewpoint guids instead of the actual Viewpoint to prevent a possible memory leak\n    __publicField(this, \"viewpoints\", new DataSet$1());\n    // Store topic guids instead of the actual Topic to prevent a possible memory leak\n    __publicField(this, \"relatedTopics\", new DataSet$1());\n    // There is no problem to store the comment it-self as it is not referenced anywhere else\n    __publicField(this, \"comments\", new DataMap$1());\n    // Store document reference guids instead of the actual thing to prevent a possible memory leak\n    __publicField(this, \"documentReferences\", new DataSet$1());\n    __publicField(this, \"customData\", {});\n    __publicField(this, \"description\");\n    __publicField(this, \"serverAssignedId\");\n    __publicField(this, \"dueDate\");\n    __publicField(this, \"modifiedAuthor\");\n    __publicField(this, \"modifiedDate\");\n    __publicField(this, \"index\");\n    // Based on the BCF API documentation, the files associated with a topic are the models that should be loaded when displaying the topic's viewpoints.\n    // files: any\n    __publicField(this, \"_type\", _Topic.default.type);\n    __publicField(this, \"_status\", _Topic.default.status);\n    __publicField(this, \"_priority\", _Topic.default.priority);\n    __publicField(this, \"_stage\", _Topic.default.stage);\n    __publicField(this, \"_assignedTo\", _Topic.default.assignedTo);\n    __publicField(this, \"_labels\", _Topic.default.labels ?? /* @__PURE__ */ new Set());\n    __publicField(this, \"_components\");\n    this._components = components;\n    const manager = components.get(BCFTopics);\n    this.creationAuthor = manager.config.author;\n    this.relatedTopics.guard = (guid) => guid !== this.guid;\n  }\n  set type(value) {\n    const manager = this._components.get(BCFTopics);\n    const { strict, types } = manager.config;\n    const valid = strict ? types.has(value) : true;\n    if (!valid)\n      return;\n    this._type = value;\n  }\n  get type() {\n    return this._type;\n  }\n  set status(value) {\n    const manager = this._components.get(BCFTopics);\n    const { strict, statuses } = manager.config;\n    const valid = strict ? statuses.has(value) : true;\n    if (!valid)\n      return;\n    this._status = value;\n  }\n  get status() {\n    return this._status;\n  }\n  set priority(value) {\n    const manager = this._components.get(BCFTopics);\n    if (value) {\n      const { strict, priorities } = manager.config;\n      const valid = strict ? priorities.has(value) : true;\n      if (!valid)\n        return;\n      this._priority = value;\n    } else {\n      this._priority = value;\n    }\n  }\n  get priority() {\n    return this._priority;\n  }\n  set stage(value) {\n    const manager = this._components.get(BCFTopics);\n    if (value) {\n      const { strict, stages } = manager.config;\n      const valid = strict ? stages.has(value) : true;\n      if (!valid)\n        return;\n      this._stage = value;\n    } else {\n      this._stage = value;\n    }\n  }\n  get stage() {\n    return this._stage;\n  }\n  set assignedTo(value) {\n    const manager = this._components.get(BCFTopics);\n    if (value) {\n      const { strict, users } = manager.config;\n      const valid = strict ? users.has(value) : true;\n      if (!valid)\n        return;\n      this._assignedTo = value;\n    } else {\n      this._assignedTo = value;\n    }\n  }\n  get assignedTo() {\n    return this._assignedTo;\n  }\n  set labels(value) {\n    const manager = this._components.get(BCFTopics);\n    const { strict, labels } = manager.config;\n    if (strict) {\n      const _value = /* @__PURE__ */ new Set();\n      for (const label of value) {\n        const valid = strict ? labels.has(label) : true;\n        if (!valid)\n          continue;\n        _value.add(label);\n      }\n      this._labels = _value;\n    } else {\n      this._labels = value;\n    }\n  }\n  get labels() {\n    return this._labels;\n  }\n  get _managerVersion() {\n    const manager = this._components.get(BCFTopics);\n    return manager.config.version;\n  }\n  /**\n   * Sets properties of the BCF Topic based on the provided data.\n   *\n   * @remarks\n   * This method iterates over the provided `data` object and updates the corresponding properties of the BCF Topic.\n   * It skips the `guid` property as it should not be modified.\n   *\n   * @param data - An object containing the properties to be updated.\n   * @returns The topic\n   *\n   * @example\n   * ```typescript\n   * const topic = new Topic(components);\n   * topic.set({\n   *   title: \"New BCF Topic Title\",\n   *   description: \"This is a new description.\",\n   *   status: \"Resolved\",\n   * });\n   * ```\n   */\n  set(data) {\n    const _data = data;\n    const _this = this;\n    for (const key in data) {\n      if (key === \"guid\")\n        continue;\n      const value = _data[key];\n      if (key in this)\n        _this[key] = value;\n    }\n    const manager = this._components.get(BCFTopics);\n    manager.list.set(this.guid, this);\n    return this;\n  }\n  /**\n   * Creates a new comment associated with the current topic.\n   *\n   * @param text - The text content of the comment.\n   * @param viewpoint - (Optional) The viewpoint associated with the comment.\n   *\n   * @returns The newly created comment.\n   *\n   * @example\n   * ```typescript\n   * const viewpoint = viewpoints.create(world); // Created with an instance of Viewpoints\n   * const topic = topics.create(); // Created with an instance of BCFTopics\n   * topic.viewpoints.add(viewpoint);\n   * const comment = topic.createComment(\"This is a new comment\", viewpoint);\n   * ```\n   */\n  createComment(text, viewpoint) {\n    const comment = new Comment(this._components, text);\n    comment.viewpoint = viewpoint;\n    comment.topic = this;\n    this.comments.set(comment.guid, comment);\n    return comment;\n  }\n  createLabelTags() {\n    const labels = [...this.labels];\n    const manager = this._components.get(BCFTopics);\n    if (manager.config.exportCustomDataAsLabels) {\n      for (const key in this.customData) {\n        const value = this.customData[key];\n        if (typeof value !== \"string\")\n          continue;\n        labels.push(value);\n      }\n    }\n    return labels;\n  }\n  createCommentTags() {\n    return [...this.comments.values()].map((comment) => {\n      var _a;\n      return {\n        $Guid: comment.guid,\n        Date: comment.date.toISOString(),\n        Author: comment.author,\n        Comment: comment.comment,\n        ModifiedAuthor: comment.modifiedAuthor,\n        ModifiedDate: (_a = comment.modifiedDate) == null ? void 0 : _a.toISOString(),\n        Viewpoint: comment.viewpoint ? { $Guid: comment.viewpoint } : void 0\n      };\n    });\n  }\n  createViewpointTags() {\n    const manager = this._components.get(Viewpoints);\n    const viewpoints = [...this.viewpoints].map((viewpointID) => manager.list.get(viewpointID)).filter((viewpoint) => viewpoint);\n    return viewpoints.map((viewpoint) => {\n      const xmlData = {\n        $Guid: viewpoint.guid,\n        Viewpoint: `${viewpoint.title ?? viewpoint.guid}.bcfv`\n      };\n      const snapshotData = manager.snapshots.get(viewpoint.snapshot);\n      if (snapshotData) {\n        const snapshotExtension = manager.getSnapshotExtension(\n          viewpoint.snapshot\n        );\n        xmlData.Snapshot = `${viewpoint.snapshot}.${snapshotExtension}`;\n      }\n      return xmlData;\n    });\n  }\n  createRelatedTopicTags() {\n    return [...this.relatedTopics].map((guid) => {\n      return { $Guid: guid };\n    });\n  }\n  createDocumentReferencesTag(version = this._managerVersion) {\n    const references = [];\n    if (!(version === \"3\" || version === \"2.1\"))\n      return references;\n    const manager = this._components.get(BCFTopics);\n    for (const guid of this.documentReferences) {\n      const doc = manager.documents.get(guid);\n      if (!doc)\n        continue;\n      let reference = {\n        $Guid: UUID.create(),\n        Description: doc.description\n      };\n      if (version === \"2.1\") {\n        reference = {\n          ...reference,\n          $isExternal: doc.type === \"external\" ? true : void 0,\n          ReferencedDocument: doc.type === \"external\" ? doc.url : `../${doc.fileName}`\n        };\n      }\n      if (version === \"3\") {\n        reference = {\n          ...reference,\n          DocumentGuid: doc.type === \"internal\" ? guid : void 0,\n          Url: doc.type === \"external\" ? doc.url : void 0\n        };\n      }\n      if (Object.keys(reference).length > 0)\n        references.push(reference);\n    }\n    return references;\n  }\n  toJSON() {\n    var _a, _b;\n    const result = {\n      guid: this.guid,\n      server_assigned_id: this.serverAssignedId,\n      topic_type: this.type,\n      topic_status: this.status,\n      title: this.title,\n      priority: this.priority,\n      index: this.index,\n      labels: [...this.labels],\n      creation_date: this.creationDate.toISOString(),\n      creation_author: this.creationAuthor,\n      modified_date: (_a = this.modifiedDate) == null ? void 0 : _a.toISOString(),\n      modified_author: this.modifiedAuthor,\n      assigned_to: this.assignedTo,\n      stage: this.stage,\n      description: this.description,\n      due_date: (_b = this.dueDate) == null ? void 0 : _b.toISOString(),\n      comments: [...this.comments].map(([_, comment]) => comment.toJSON()),\n      relatedTopics: [...this.relatedTopics].map((guid) => {\n        return { related_topic_guid: guid };\n      })\n    };\n    const viewpointsManager = this._components.get(Viewpoints);\n    for (const guid of this.viewpoints) {\n      const viewpoint = viewpointsManager.list.get(guid);\n      if (!viewpoint)\n        continue;\n      if (!result.viewpoints)\n        result.viewpoints = [];\n      result.viewpoints.push(viewpoint.toJSON());\n    }\n    const topicsManager = this._components.get(BCFTopics);\n    for (const guid of this.documentReferences) {\n      const reference = topicsManager.documents.get(guid);\n      if (!reference)\n        continue;\n      if (!result.document_references)\n        result.document_references = [];\n      if (reference.type === \"external\") {\n        result.document_references.push({\n          guid: UUID.create(),\n          // TODO: this is for sure incorrect!\n          description: reference.description,\n          url: reference.url\n        });\n      } else {\n        result.document_references.push({\n          guid: UUID.create(),\n          // TODO: this is for sure incorrect!\n          description: reference.description,\n          document_guid: guid\n        });\n      }\n    }\n    for (const [key, value] of Object.entries(result)) {\n      if (value === void 0 || Array.isArray(value) && value.length === 0) {\n        delete result[key];\n      }\n    }\n    return result;\n  }\n  /**\n   * Serializes the BCF Topic instance into an XML string representation based on the official schema.\n   *\n   * @remarks\n   * This method constructs an XML string based on the properties of the BCF Topic instance.\n   * It includes the topic's guid, type, status, creation date, creation author, priority, index,\n   * modified date, modified author, due date, assigned to, description, stage, labels, related topics,\n   * comments, and viewpoints.\n   *\n   * @returns A string representing the XML serialization of the BCF Topic.\n   *\n   * @example\n   * ```typescript\n   * const topic = bcfTopics.create(); // Created with an instance of BCFTopics\n   * const xml = topic.serialize();\n   * console.log(xml);\n   * ```\n   */\n  serialize() {\n    var _a, _b;\n    const version = this._managerVersion;\n    const topic = {\n      $Guid: this.guid,\n      $TopicType: this.type,\n      $TopicStatus: this.status,\n      $ServerAssignedId: this.serverAssignedId,\n      Title: this.title,\n      CreationAuthor: this.creationAuthor,\n      CreationDate: this.creationDate.toISOString(),\n      Priority: this.priority,\n      Index: version === \"2.1\" ? this.index : void 0,\n      ModifiedDate: (_a = this.modifiedDate) == null ? void 0 : _a.toISOString(),\n      ModifiedAuthor: this.modifiedAuthor,\n      DueDate: (_b = this.dueDate) == null ? void 0 : _b.toISOString(),\n      AssignedTo: this.assignedTo,\n      Description: this.description,\n      Stage: this.stage,\n      DocumentReferences: version === \"3\" ? { DocumentReference: this.createDocumentReferencesTag(version) } : void 0,\n      RelatedTopics: version === \"3\" ? { RelatedTopic: this.createRelatedTopicTags() } : void 0,\n      RelatedTopic: version === \"2.1\" ? this.createRelatedTopicTags() : void 0,\n      Labels: version === \"3\" ? { Label: this.createLabelTags() } : void 0,\n      Viewpoints: version === \"3\" ? { ViewPoint: this.createViewpointTags() } : void 0,\n      Comments: version === \"3\" ? { Comment: this.createCommentTags() } : void 0\n    };\n    if (version === \"2.1\") {\n      topic.Labels = this.createLabelTags();\n      topic.DocumentReference = this.createDocumentReferencesTag(version);\n    }\n    const markup = {\n      Markup: { Topic: topic }\n    };\n    if (version === \"2.1\") {\n      markup.Markup.Viewpoints = this.createViewpointTags();\n      markup.Markup.Comment = this.createCommentTags();\n    }\n    return `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n    ${XML.builder.build(markup)}`;\n  }\n};\n/**\n * Default values for a BCF Topic, excluding `guid`, `creationDate`, and `creationAuthor`.\n */\n__publicField(_Topic, \"default\", {\n  title: \"BCF Topic\",\n  type: \"Issue\",\n  status: \"Active\"\n});\nlet Topic = _Topic;\nconst extensionsImporter = (manager, extensionsXML) => {\n  if (extensionsXML.trim() === \"\")\n    return;\n  const extensions = BCFTopics.xmlParser.parse(extensionsXML).Extensions;\n  if (!extensions)\n    return;\n  const { Priorities, TopicStatuses, TopicTypes, Users } = extensions;\n  if (Priorities && Priorities.Priority) {\n    const priorities = Array.isArray(Priorities.Priority) ? Priorities.Priority : [Priorities.Priority];\n    for (const priority of priorities) {\n      manager.config.priorities.add(priority);\n    }\n  }\n  if (TopicStatuses && TopicStatuses.TopicStatus) {\n    const statuses = Array.isArray(TopicStatuses.TopicStatus) ? TopicStatuses.TopicStatus : [TopicStatuses.TopicStatus];\n    for (const status of statuses) {\n      manager.config.statuses.add(status);\n    }\n  }\n  if (TopicTypes && TopicTypes.TopicType) {\n    const types = Array.isArray(TopicTypes.TopicType) ? TopicTypes.TopicType : [TopicTypes.TopicType];\n    for (const type of types) {\n      manager.config.types.add(type);\n    }\n  }\n  if (Users && Users.User) {\n    const users = Array.isArray(Users.User) ? Users.User : [Users.User];\n    for (const user of users) {\n      manager.config.users.add(user);\n    }\n  }\n};\nclass BCFTopicsConfigManager extends Configurator {\n  constructor() {\n    super(...arguments);\n    __publicField(this, \"_config\", {\n      version: {\n        type: \"Select\",\n        options: /* @__PURE__ */ new Set([\"2.1\", \"3\"]),\n        multiple: false,\n        value: \"\"\n      },\n      author: {\n        type: \"Text\",\n        value: \"\"\n      },\n      types: {\n        type: \"TextSet\",\n        value: /* @__PURE__ */ new Set()\n      },\n      statuses: {\n        type: \"TextSet\",\n        value: /* @__PURE__ */ new Set()\n      },\n      priorities: {\n        type: \"TextSet\",\n        value: /* @__PURE__ */ new Set()\n      },\n      labels: {\n        type: \"TextSet\",\n        value: /* @__PURE__ */ new Set()\n      },\n      stages: {\n        type: \"TextSet\",\n        value: /* @__PURE__ */ new Set()\n      },\n      users: {\n        type: \"TextSet\",\n        value: /* @__PURE__ */ new Set()\n      },\n      includeSelectionTag: {\n        type: \"Boolean\",\n        value: false\n      },\n      updateExtensionsOnImport: {\n        type: \"Boolean\",\n        value: false\n      },\n      strict: {\n        type: \"Boolean\",\n        value: false\n      },\n      includeAllExtensionsOnExport: {\n        type: \"Boolean\",\n        value: false\n      },\n      fallbackVersionOnImport: {\n        type: \"Select\",\n        multiple: false,\n        options: /* @__PURE__ */ new Set([\"2.1\", \"3\"]),\n        value: \"\"\n      },\n      ignoreIncompleteTopicsOnImport: {\n        type: \"Boolean\",\n        value: false\n      },\n      exportCustomDataAsLabels: {\n        type: \"Boolean\",\n        value: false\n      }\n    });\n  }\n  get version() {\n    return this._config.version.value;\n  }\n  set version(value) {\n    this._config.version.value = value;\n  }\n  get author() {\n    return this._config.author.value;\n  }\n  set author(value) {\n    this._config.author.value = value;\n  }\n  get types() {\n    return this._config.types.value;\n  }\n  set types(value) {\n    this._config.types.value = value;\n  }\n  get statuses() {\n    return this._config.statuses.value;\n  }\n  set statuses(value) {\n    this._config.statuses.value = value;\n  }\n  get priorities() {\n    return this._config.priorities.value;\n  }\n  set priorities(value) {\n    this._config.priorities.value = value;\n  }\n  get labels() {\n    return this._config.labels.value;\n  }\n  set labels(value) {\n    this._config.labels.value = value;\n  }\n  get stages() {\n    return this._config.stages.value;\n  }\n  set stages(value) {\n    this._config.stages.value = value;\n  }\n  get users() {\n    return this._config.users.value;\n  }\n  set users(value) {\n    this._config.users.value = value;\n  }\n  get includeSelectionTag() {\n    return this._config.includeSelectionTag.value;\n  }\n  set includeSelectionTag(value) {\n    this._config.includeSelectionTag.value = value;\n  }\n  get updateExtensionsOnImport() {\n    return this._config.updateExtensionsOnImport.value;\n  }\n  set updateExtensionsOnImport(value) {\n    this._config.updateExtensionsOnImport.value = value;\n  }\n  get strict() {\n    return this._config.strict.value;\n  }\n  set strict(value) {\n    this._config.strict.value = value;\n  }\n  get includeAllExtensionsOnExport() {\n    return this._config.includeAllExtensionsOnExport.value;\n  }\n  set includeAllExtensionsOnExport(value) {\n    this._config.includeAllExtensionsOnExport.value = value;\n  }\n  get fallbackVersionOnImport() {\n    return this._config.fallbackVersionOnImport.value;\n  }\n  set fallbackVersionOnImport(value) {\n    this._config.fallbackVersionOnImport.value = value;\n  }\n  get ignoreIncompleteTopicsOnImport() {\n    return this._config.ignoreIncompleteTopicsOnImport.value;\n  }\n  set ignoreIncompleteTopicsOnImport(value) {\n    this._config.ignoreIncompleteTopicsOnImport.value = value;\n  }\n  get exportCustomDataAsLabels() {\n    return this._config.exportCustomDataAsLabels.value;\n  }\n  set exportCustomDataAsLabels(value) {\n    this._config.exportCustomDataAsLabels.value = value;\n  }\n}\nconst _BCFTopics = class _BCFTopics extends Component {\n  constructor() {\n    super(...arguments);\n    __publicField(this, \"enabled\", false);\n    __publicField(this, \"_defaultConfig\", {\n      author: \"jhon.doe@example.com\",\n      version: \"2.1\",\n      types: /* @__PURE__ */ new Set([\n        \"Clash\",\n        \"Failure\",\n        \"Fault\",\n        \"Inquiry\",\n        \"Issue\",\n        \"Remark\",\n        \"Request\"\n      ]),\n      statuses: /* @__PURE__ */ new Set([\"Active\", \"In Progress\", \"Done\", \"In Review\", \"Closed\"]),\n      priorities: /* @__PURE__ */ new Set([\"On hold\", \"Minor\", \"Normal\", \"Major\", \"Critical\"]),\n      labels: /* @__PURE__ */ new Set(),\n      stages: /* @__PURE__ */ new Set(),\n      users: /* @__PURE__ */ new Set(),\n      includeSelectionTag: false,\n      updateExtensionsOnImport: true,\n      strict: false,\n      includeAllExtensionsOnExport: true,\n      fallbackVersionOnImport: \"2.1\",\n      ignoreIncompleteTopicsOnImport: false,\n      exportCustomDataAsLabels: false\n    });\n    __publicField(this, \"config\", new BCFTopicsConfigManager(\n      this,\n      this.components,\n      \"BCF Topics\",\n      _BCFTopics.uuid\n    ));\n    __publicField(this, \"list\", new DataMap$1());\n    __publicField(this, \"documents\", new DataMap$1());\n    __publicField(this, \"onSetup\", new Event());\n    __publicField(this, \"isSetup\", false);\n    __publicField(this, \"onBCFImported\", new Event());\n    __publicField(this, \"onDisposed\", new Event());\n  }\n  setup(config) {\n    if (this.isSetup)\n      return;\n    const fullConfig = { ...this._defaultConfig, ...config };\n    this.config.version = fullConfig.version;\n    this.config.author = fullConfig.author;\n    this.config.types = fullConfig.types;\n    this.config.statuses = fullConfig.statuses;\n    this.config.priorities = fullConfig.priorities;\n    this.config.labels = fullConfig.labels;\n    this.config.stages = fullConfig.stages;\n    this.config.users = fullConfig.users;\n    this.config.includeSelectionTag = fullConfig.includeSelectionTag;\n    this.config.updateExtensionsOnImport = fullConfig.updateExtensionsOnImport;\n    this.config.strict = fullConfig.strict;\n    this.config.includeAllExtensionsOnExport = fullConfig.includeAllExtensionsOnExport;\n    this.config.fallbackVersionOnImport = fullConfig.fallbackVersionOnImport || \"\";\n    this.config.ignoreIncompleteTopicsOnImport = fullConfig.ignoreIncompleteTopicsOnImport;\n    this.isSetup = true;\n    this.enabled = true;\n    this.onSetup.trigger();\n  }\n  /**\n   * Creates a new BCFTopic instance and adds it to the list.\n   *\n   * @param data - Optional partial BCFTopic object to initialize the new topic with.\n   * If not provided, default values will be used.\n   * @returns The newly created BCFTopic instance.\n   */\n  create(data) {\n    const topic = new Topic(this.components);\n    if (data) {\n      topic.guid = data.guid ?? topic.guid;\n      topic.set(data);\n    } else {\n      this.list.set(topic.guid, topic);\n    }\n    return topic;\n  }\n  /**\n   * Disposes of the BCFTopics component and triggers the onDisposed event.\n   *\n   * @remarks\n   * This method clears the list of topics and triggers the onDisposed event.\n   * It also resets the onDisposed event listener.\n   */\n  dispose() {\n    this.list.dispose();\n    this.onDisposed.trigger();\n    this.onDisposed.reset();\n  }\n  /**\n   * Retrieves the unique set of topic types used across all topics.\n   *\n   * @returns A Set containing the unique topic types.\n   */\n  get usedTypes() {\n    const types = [...this.list].map(([_, topic]) => topic.type);\n    return new Set(types);\n  }\n  /**\n   * Retrieves the unique set of topic statuses used across all topics.\n   *\n   * @returns A Set containing the unique topic statuses.\n   */\n  get usedStatuses() {\n    const statuses = [...this.list].map(([_, topic]) => topic.status);\n    return new Set(statuses);\n  }\n  /**\n   * Retrieves the unique set of topic priorities used across all topics.\n   *\n   * @returns A Set containing the unique topic priorities.\n   * Note: This method filters out any null or undefined priorities.\n   */\n  get usedPriorities() {\n    const priorities = [...this.list].map(([_, topic]) => topic.priority).filter((priority) => priority);\n    return new Set(priorities);\n  }\n  /**\n   * Retrieves the unique set of topic stages used across all topics.\n   *\n   * @returns A Set containing the unique topic stages.\n   * Note: This method filters out any null or undefined stages.\n   */\n  get usedStages() {\n    const stages = [...this.list].map(([_, topic]) => topic.stage).filter((stage) => stage);\n    return new Set(stages);\n  }\n  /**\n   * Retrieves the unique set of users associated with topics.\n   *\n   * @returns A Set containing the unique users.\n   * Note: This method collects users from the creation author, assigned to, modified author, and comment authors.\n   */\n  get usedUsers() {\n    const users = [];\n    for (const [_, topic] of this.list) {\n      users.push(topic.creationAuthor);\n      if (topic.assignedTo)\n        users.push(topic.assignedTo);\n      if (topic.modifiedAuthor)\n        users.push(topic.modifiedAuthor);\n      for (const [_2, comment] of topic.comments) {\n        users.push(comment.author);\n        if (comment.modifiedAuthor)\n          users.push(comment.modifiedAuthor);\n      }\n    }\n    return new Set(users);\n  }\n  /**\n   * Retrieves the unique set of labels used across all topics.\n   *\n   * @returns A Set containing the unique labels.\n   */\n  get usedLabels() {\n    const labels = [];\n    for (const [_, topic] of this.list)\n      labels.push(...topic.labels);\n    return new Set(labels);\n  }\n  /**\n   * Updates the set of extensions (types, statuses, priorities, labels, stages, users) based on the current topics.\n   * This method iterates through each topic in the list and adds its properties to the corresponding sets in the config.\n   */\n  updateExtensions() {\n    for (const [_, topic] of this.list) {\n      for (const label of topic.labels)\n        this.config.labels.add(label);\n      this.config.types.add(topic.type);\n      if (topic.priority)\n        this.config.priorities.add(topic.priority);\n      if (topic.stage)\n        this.config.stages.add(topic.stage);\n      this.config.statuses.add(topic.status);\n      this.config.users.add(topic.creationAuthor);\n      if (topic.assignedTo)\n        this.config.users.add(topic.assignedTo);\n      if (topic.modifiedAuthor)\n        this.config.users.add(topic.modifiedAuthor);\n      for (const [_2, comment] of topic.comments) {\n        this.config.users.add(comment.author);\n        if (comment.modifiedAuthor)\n          this.config.users.add(comment.modifiedAuthor);\n      }\n    }\n  }\n  /**\n   * Updates the references to viewpoints in the topics.\n   * This function iterates through each topic and checks if the viewpoints exist in the viewpoints list.\n   * If a viewpoint does not exist, it is removed from the topic's viewpoints.\n   */\n  updateViewpointReferences() {\n    const viewpoints = this.components.get(Viewpoints);\n    for (const [_, topic] of this.list) {\n      for (const viewpointID of topic.viewpoints) {\n        const exists = viewpoints.list.has(viewpointID);\n        if (!exists)\n          topic.viewpoints.delete(viewpointID);\n      }\n    }\n  }\n  /**\n   * Exports the given topics to a BCF (Building Collaboration Format) zip file.\n   *\n   * @param topics - The topics to export. Defaults to all topics in the list.\n   * @returns A promise that resolves to a Blob containing the exported BCF zip file.\n   */\n  async export(topics = this.list.values()) {\n    const zip = new JSZip();\n    zip.file(\n      \"bcf.version\",\n      `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n    <Version VersionId=\"${this.config.version}\" xsi:noNamespaceSchemaLocation=\"https://raw.githubusercontent.com/buildingSMART/BCF-XML/release_3_0/Schemas/version.xsd\"\n    xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n    </Version>`\n    );\n    for (const [guid, doc] of this.documents.entries()) {\n      if (doc.type === \"external\")\n        continue;\n      zip.file(\n        this.config.version === \"2.1\" ? doc.fileName : `documents/${guid}`,\n        doc.data\n      );\n    }\n    if (this.config.version === \"3\") {\n      const docTags = [];\n      for (const [guid, doc] of this.documents.entries()) {\n        const { type, description } = doc;\n        if (type === \"external\")\n          continue;\n        docTags.push(`<Document Guid=\"${guid}\">\n        <Filename>${doc.fileName}</Filename>\n        ${description ? `<Description>${description}</Description>` : \"\"}\n      </Document>`);\n      }\n      if (docTags.length > 0) {\n        zip.file(\n          \"documents.xml\",\n          `<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n  <DocumentInfo xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"documents.xsd\">\n    <Documents>\n      ${docTags.join(\"\\n\")}\n    </Documents>\n  </DocumentInfo>`\n        );\n      }\n    }\n    zip.file(\"bcf.extensions\", this.serializeExtensions());\n    const viewpoints = this.components.get(Viewpoints);\n    for (const topic of topics) {\n      const topicFolder = zip.folder(topic.guid);\n      topicFolder.file(\"markup.bcf\", topic.serialize());\n      for (const viewpointID of topic.viewpoints) {\n        const viewpoint = viewpoints.list.get(viewpointID);\n        if (!viewpoint)\n          continue;\n        const viewpointFileName = viewpoint.title ?? viewpoint.guid;\n        topicFolder.file(\n          `${viewpointFileName}.bcfv`,\n          await viewpoint.serialize()\n        );\n        const snapshotData = viewpoints.snapshots.get(viewpoint.snapshot);\n        if (!snapshotData)\n          continue;\n        const snapshotFileName = snapshotData ? viewpoint.snapshot : viewpoint.guid;\n        const snapshotExtension = viewpoints.getSnapshotExtension(\n          viewpoint.snapshot\n        );\n        topicFolder.file(\n          `${snapshotFileName}.${snapshotExtension}`,\n          snapshotData,\n          {\n            binary: true\n          }\n        );\n      }\n    }\n    const content = await zip.generateAsync({ type: \"blob\" });\n    return content;\n  }\n  serializeExtensions() {\n    const types = [...this.config.types].map((type) => `<TopicType>${type}</TopicType>`).join(\"\\n\");\n    const statuses = [...this.config.statuses].map((status) => `<TopicStatus>${status}</TopicStatus>`).join(\"\\n\");\n    const priorities = [...this.config.priorities].map((priority) => `<Priority>${priority}</Priority>`).join(\"\\n\");\n    const labels = [...this.config.labels].map((label) => `<TopicLabel>${label}</TopicLabel>`).join(\"\\n\");\n    const stages = [...this.config.stages].map((stage) => `<Stage>${stage}</Stage>`).join(\"\\n\");\n    const users = [...this.config.users].map((user) => `<User>${user}</User>`).join(\"\\n\");\n    return `\n      <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n      <Extensions xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"your-schema-location.xsd\">\n        ${types.length !== 0 ? `<TopicTypes>\n${types}\n</TopicTypes>` : \"\"}\n        ${statuses.length !== 0 ? `<TopicStatuses>\n${statuses}\n</TopicStatuses>` : \"\"}\n        ${priorities.length !== 0 ? `<Priorities>\n${priorities}\n</Priorities>` : \"\"}\n        ${labels.length !== 0 ? `<TopicLabels>\n${labels}\n</TopicLabels>` : \"\"}\n        ${stages.length !== 0 ? `<Stages>\n${stages}\n</Stages>` : \"\"}\n        ${users.length !== 0 ? `<Users>\n${users}\n</Users>` : \"\"}\n      </Extensions>\n    `;\n  }\n  processMarkupComment(markupComment) {\n    const {\n      Guid,\n      Date: CommentDate,\n      Author,\n      Comment: CommentText,\n      Viewpoint: Viewpoint2\n    } = markupComment;\n    if (!(Guid && CommentDate && Author && (Comment || Viewpoint2)))\n      return null;\n    const comment = new Comment(this.components, CommentText ?? \"\");\n    comment.guid = Guid;\n    comment.date = new Date(CommentDate);\n    comment.author = Author;\n    comment.viewpoint = Viewpoint2 == null ? void 0 : Viewpoint2.Guid;\n    comment.modifiedAuthor = markupComment.ModifiedAuthor;\n    comment.modifiedDate = markupComment.ModifiedDate ? new Date(markupComment.ModifiedDate) : void 0;\n    return comment;\n  }\n  getMarkupComments(markup, version) {\n    var _a;\n    let data;\n    if (version === \"2.1\")\n      data = markup.Comment;\n    if (version === \"3\")\n      data = (_a = markup.Topic.Comments) == null ? void 0 : _a.Comment;\n    if (!data)\n      return [];\n    data = Array.isArray(data) ? data : [data];\n    const comments = data.map((comment) => this.processMarkupComment(comment)).filter((comment) => comment);\n    const array = Array.isArray(comments) ? comments : [comments];\n    return array;\n  }\n  getMarkupLabels(markup, version) {\n    var _a;\n    let data;\n    if (version === \"2.1\")\n      data = markup.Topic.Labels;\n    if (version === \"3\")\n      data = (_a = markup.Topic.Labels) == null ? void 0 : _a.Label;\n    if (!data)\n      return [];\n    const labels = Array.isArray(data) ? data : [data];\n    return labels;\n  }\n  getMarkupViewpoints(markup, version) {\n    var _a;\n    let data;\n    if (version === \"2.1\")\n      data = markup.Viewpoints;\n    if (version === \"3\")\n      data = (_a = markup.Topic.Viewpoints) == null ? void 0 : _a.ViewPoint;\n    if (!data)\n      return [];\n    data = Array.isArray(data) ? data : [data];\n    return data;\n  }\n  getMarkupRelatedTopics(markup, version) {\n    var _a;\n    let data;\n    if (version === \"2.1\")\n      data = markup.Topic.RelatedTopic;\n    if (version === \"3\")\n      data = (_a = markup.Topic.RelatedTopics) == null ? void 0 : _a.RelatedTopic;\n    if (!data)\n      return [];\n    const topics = Array.isArray(data) ? data : [data];\n    return topics.map((topic) => topic.Guid);\n  }\n  getMarkupDocumentReferences(markup, version) {\n    var _a;\n    let data;\n    if (version === \"2.1\")\n      data = markup.Topic.DocumentReference;\n    if (version === \"3\")\n      data = (_a = markup.Topic.DocumentReferences) == null ? void 0 : _a.DocumentReference;\n    if (!data)\n      return [];\n    const references = Array.isArray(data) ? data : [data];\n    return references;\n  }\n  /**\n   * Loads BCF (Building Collaboration Format) data into the engine.\n   *\n   * @param world - The default world where the viewpoints are going to be created.\n   * @param data - The BCF data to load.\n   *\n   * @returns A promise that resolves to an object containing the created viewpoints and topics.\n   *\n   * @throws An error if the BCF version is not supported.\n   */\n  async load(data) {\n    var _a, _b, _c;\n    const {\n      fallbackVersionOnImport,\n      ignoreIncompleteTopicsOnImport,\n      updateExtensionsOnImport\n    } = this.config;\n    const zip = new JSZip();\n    await zip.loadAsync(data);\n    const files = Object.values(zip.files);\n    let version = fallbackVersionOnImport;\n    const versionFile = files.find((file) => file.name.endsWith(\".version\"));\n    if (versionFile) {\n      const versionXML = await versionFile.async(\"string\");\n      const bcfVersion = _BCFTopics.xmlParser.parse(versionXML).Version.VersionId;\n      version = String(bcfVersion);\n    }\n    if (!(version && (version === \"2.1\" || version === \"3\"))) {\n      throw new Error(`BCFTopics: ${version} is not supported.`);\n    }\n    const extensionsFile = files.find(\n      (file) => file.name.endsWith(\".extensions\")\n    );\n    if (updateExtensionsOnImport && extensionsFile) {\n      const extensionsXML = await extensionsFile.async(\"string\");\n      extensionsImporter(this, extensionsXML);\n    }\n    const createdViewpoints = [];\n    const viewpoints = this.components.get(Viewpoints);\n    const viewpointFiles = files.filter((file) => file.name.endsWith(\".bcfv\"));\n    for (const viewpointFile of viewpointFiles) {\n      const xml = await viewpointFile.async(\"string\");\n      const visualizationInfo = _BCFTopics.xmlParser.parse(xml).VisualizationInfo;\n      if (!visualizationInfo) {\n        console.warn(\"Missing VisualizationInfo in Viewpoint\");\n        continue;\n      }\n      const bcfViewpoint = {};\n      const {\n        Guid,\n        ClippingPlanes,\n        Components: Components2,\n        OrthogonalCamera,\n        PerspectiveCamera\n      } = visualizationInfo;\n      if (Guid)\n        bcfViewpoint.guid = Guid;\n      if (Components2) {\n        const components = {\n          selection: [],\n          coloring: [],\n          visibility: {\n            default_visibility: false,\n            exceptions: [],\n            view_setup_hints: {\n              spaces_visible: false,\n              space_boundaries_visible: false,\n              openings_visible: false\n            }\n          }\n        };\n        bcfViewpoint.components = components;\n        const { Selection, Visibility } = Components2;\n        if (Selection && Selection.Component) {\n          const selectionComponents = Array.isArray(Selection.Component) ? Selection.Component : [Selection.Component];\n          components.selection = selectionComponents.map((component) => {\n            if (!component.IfcGuid)\n              return null;\n            return { ifc_guid: component.IfcGuid };\n          }).filter((data2) => data2 !== null);\n        }\n        if (Visibility && \"DefaultVisibility\" in Visibility) {\n          components.visibility.default_visibility = Visibility.DefaultVisibility;\n        }\n        if (Visibility && Visibility.Exceptions && \"Component\" in Visibility.Exceptions) {\n          const { Component: Component2 } = Visibility.Exceptions;\n          const exceptionComponents = Array.isArray(Component2) ? Component2 : [Component2];\n          components.visibility.exceptions = exceptionComponents.map((component) => {\n            if (!component.IfcGuid)\n              return null;\n            return { ifc_guid: component.IfcGuid };\n          }).filter((data2) => data2 !== null);\n        }\n        let ViewSetupHints;\n        if (version === \"2.1\") {\n          ViewSetupHints = Components2.ViewSetupHints;\n        }\n        if (version === \"3\") {\n          ViewSetupHints = (_a = Components2.Visibility) == null ? void 0 : _a.ViewSetupHints;\n        }\n        if (ViewSetupHints) {\n          if (\"OpeningsVisible\" in ViewSetupHints) {\n            components.visibility.view_setup_hints.openings_visible = ViewSetupHints.OpeningsVisible;\n          }\n          if (\"SpacesVisible\" in ViewSetupHints) {\n            components.visibility.view_setup_hints.spaces_visible = ViewSetupHints.SpacesVisible;\n          }\n          if (\"SpaceBoundariesVisible\" in ViewSetupHints) {\n            components.visibility.view_setup_hints.space_boundaries_visible = ViewSetupHints.SpaceBoundariesVisible;\n          }\n        }\n        const { Coloring } = Components2;\n        if (Coloring && Coloring.Color) {\n          const colors = Array.isArray(Coloring.Color) ? Coloring.Color : [Coloring.Color];\n          for (const colorData of colors) {\n            const { Color, Component: Component2 } = colorData;\n            if (!(Color.length === 6 || Color.length === 8))\n              continue;\n            const color = Color.length === 6 ? Color : Color.slice(2);\n            const colorComponents = Array.isArray(Component2) ? Component2 : [Component2];\n            const guids = colorComponents.map((component) => {\n              if (!component.IfcGuid)\n                return null;\n              return { ifc_guid: component.IfcGuid };\n            }).filter((data2) => data2 !== null);\n            components.coloring.push({\n              color,\n              components: guids\n            });\n          }\n        }\n      }\n      if (OrthogonalCamera || PerspectiveCamera) {\n        const camera = visualizationInfo.PerspectiveCamera ?? visualizationInfo.OrthogonalCamera;\n        const { CameraViewPoint, CameraDirection } = camera;\n        const position = new THREE.Vector3(\n          Number(CameraViewPoint.X),\n          Number(CameraViewPoint.Z),\n          Number(-CameraViewPoint.Y)\n        );\n        const direction = new THREE.Vector3(\n          Number(CameraDirection.X),\n          Number(CameraDirection.Z),\n          Number(-CameraDirection.Y)\n        );\n        const viewpointCamera = {\n          camera_view_point: { x: position.x, y: position.y, z: position.z },\n          camera_direction: { x: direction.x, y: direction.y, z: direction.z },\n          aspect_ratio: \"AspectRatio\" in camera ? camera.AspectRatio : 1,\n          // TODO: Better define camera_up_vector\n          camera_up_vector: {\n            x: 0,\n            y: 0,\n            z: 0\n          }\n        };\n        if (\"ViewToWorldScale\" in camera) {\n          bcfViewpoint.orthogonal_camera = {\n            ...viewpointCamera,\n            view_to_world_scale: camera.ViewToWorldScale\n          };\n        }\n        if (\"FieldOfView\" in camera) {\n          bcfViewpoint.perspective_camera = {\n            ...viewpointCamera,\n            field_of_view: camera.FieldOfView\n          };\n        }\n      }\n      if (ClippingPlanes) {\n        const planes = Array.isArray(ClippingPlanes.ClippingPlane) ? ClippingPlanes.ClippingPlane : [ClippingPlanes.ClippingPlane];\n        const clippingPlanes = planes.map(\n          ({ Location, Direction }) => {\n            return {\n              location: { x: Location.x, y: Location.y, z: Location.z },\n              direction: { x: Direction.x, y: Direction.y, z: Direction.z }\n            };\n          }\n        );\n        bcfViewpoint.clipping_planes = clippingPlanes;\n      }\n      const viewpoint = new Viewpoint(this.components, bcfViewpoint);\n      createdViewpoints.push(viewpoint);\n    }\n    const topicRelations = {};\n    const topics = [];\n    const markupFiles = files.filter((file) => file.name.endsWith(\".bcf\"));\n    for (const markupFile of markupFiles) {\n      const xml = await markupFile.async(\"string\");\n      const markup = _BCFTopics.xmlParser.parse(xml).Markup;\n      const markupTopic = markup.Topic;\n      const {\n        Guid,\n        TopicType,\n        TopicStatus,\n        Title,\n        CreationDate,\n        CreationAuthor\n      } = markupTopic;\n      if (ignoreIncompleteTopicsOnImport) {\n        if (!(Guid && TopicType && TopicStatus && Title && CreationDate && CreationAuthor))\n          continue;\n      }\n      const topic = new Topic(this.components);\n      topic.guid = Guid ?? topic.guid;\n      const relatedTopics = this.getMarkupRelatedTopics(markup, version);\n      topicRelations[topic.guid] = new Set(relatedTopics);\n      topic.type = TopicType ?? topic.type;\n      topic.status = TopicStatus ?? topic.status;\n      topic.title = Title ?? topic.title;\n      topic.creationDate = CreationDate ? new Date(CreationDate) : topic.creationDate;\n      topic.creationAuthor = CreationAuthor ?? topic.creationAuthor;\n      topic.serverAssignedId = markupTopic.ServerAssignedId;\n      topic.priority = markupTopic.Priority;\n      topic.index = markupTopic.Index;\n      topic.modifiedDate = markupTopic.ModifiedDate ? new Date(markupTopic.ModifiedDate) : void 0;\n      topic.modifiedAuthor = markupTopic.ModifiedAuthor;\n      topic.dueDate = markupTopic.DueDate ? new Date(markupTopic.DueDate) : void 0;\n      topic.assignedTo = markupTopic.AssignedTo;\n      topic.description = markupTopic.Description;\n      topic.stage = markupTopic.Stage;\n      const labels = this.getMarkupLabels(markup, version);\n      for (const label of labels)\n        topic.labels.add(label);\n      const comments = this.getMarkupComments(markup, version);\n      for (const comment of comments)\n        topic.comments.set(comment.guid, comment);\n      const markupViewpoints = this.getMarkupViewpoints(markup, version);\n      for (const markupViewpoint of markupViewpoints) {\n        if (!(markupViewpoint && markupViewpoint.Guid))\n          continue;\n        const viewpoint = viewpoints.list.get(markupViewpoint.Guid);\n        if (!viewpoint)\n          continue;\n        topic.viewpoints.add(viewpoint.guid);\n        const snapshotName = `${topic.guid}/${markupViewpoint.Snapshot}`;\n        const snapshotFile = files.find(({ name }) => name === snapshotName);\n        if (snapshotFile) {\n          const buffer = await snapshotFile.async(\"arraybuffer\");\n          const bytes = new Uint8Array(buffer);\n          viewpoints.snapshots.set(viewpoint.guid, bytes);\n          viewpoint.snapshot = viewpoint.guid ?? null;\n        }\n      }\n      const markupDocReferences = this.getMarkupDocumentReferences(\n        markup,\n        version\n      );\n      const documentsFile = files.find((file) => file.name === \"documents.xml\");\n      let documentsData = [];\n      const documentsListXML = await (documentsFile == null ? void 0 : documentsFile.async(\"string\"));\n      if (documentsListXML) {\n        const data2 = (_c = (_b = XML.parser.parse(documentsListXML).DocumentInfo) == null ? void 0 : _b.Documents) == null ? void 0 : _c.Document;\n        documentsData = Array.isArray(data2) ? data2 : [data2];\n      }\n      for (const reference of markupDocReferences) {\n        const {\n          Description: description,\n          // From 3.0\n          DocumentGuid,\n          Url: url,\n          // From 2.1\n          isExternal,\n          ReferencedDocument\n        } = reference;\n        if (DocumentGuid && documentsData.length > 0) {\n          const docInfo = documentsData.find(\n            ({ Guid: Guid2 }) => Guid2 === DocumentGuid\n          );\n          const docFile = files.find(\n            (file) => file.name.endsWith(DocumentGuid)\n          );\n          const data2 = await (docFile == null ? void 0 : docFile.async(\"uint8array\"));\n          if (!(docInfo && data2))\n            continue;\n          const { Description: description2, Filename: fileName } = docInfo;\n          this.documents.set(DocumentGuid, {\n            type: \"internal\",\n            fileName,\n            description: description2,\n            data: data2\n          });\n          topic.documentReferences.add(DocumentGuid);\n        }\n        if (url) {\n          const docGuid = this.documents.add({\n            type: \"external\",\n            url,\n            description\n          });\n          topic.documentReferences.add(docGuid);\n        }\n        if (ReferencedDocument) {\n          let docGuid = null;\n          if (isExternal) {\n            docGuid = this.documents.add({\n              type: \"external\",\n              url: ReferencedDocument,\n              description\n            });\n          } else {\n            const splitPath = ReferencedDocument.split(\"/\");\n            const fileName = splitPath[splitPath.length - 1];\n            const docFile = files.find((file) => file.name.endsWith(fileName));\n            const data2 = await (docFile == null ? void 0 : docFile.async(\"uint8array\"));\n            if (!data2)\n              continue;\n            docGuid = this.documents.add({\n              type: \"internal\",\n              fileName,\n              data: data2,\n              description\n            });\n          }\n          topic.documentReferences.add(docGuid);\n        }\n      }\n      this.list.set(topic.guid, topic);\n      topics.push(topic);\n    }\n    for (const topicID in topicRelations) {\n      const topic = this.list.get(topicID);\n      if (!topic)\n        continue;\n      const relations = topicRelations[topicID];\n      for (const guid of relations) {\n        topic.relatedTopics.add(guid);\n      }\n    }\n    this.onBCFImported.trigger(topics);\n    return { viewpoints: createdViewpoints, topics };\n  }\n};\n__publicField(_BCFTopics, \"uuid\", \"de977976-e4f6-4e4f-a01a-204727839802\");\n__publicField(_BCFTopics, \"xmlParser\", new XMLParser({\n  allowBooleanAttributes: true,\n  attributeNamePrefix: \"\",\n  ignoreAttributes: false,\n  ignoreDeclaration: true,\n  ignorePiTags: true,\n  numberParseOptions: { leadingZeros: true, hex: true },\n  parseAttributeValue: true,\n  preserveOrder: false,\n  processEntities: false,\n  removeNSPrefix: true,\n  trimValues: true\n}));\nlet BCFTopics = _BCFTopics;\nconst _raycaster = new Raycaster();\nconst _tempVector = new Vector3();\nconst _tempVector2 = new Vector3();\nconst _tempQuaternion = new Quaternion();\nconst _unit = {\n  X: new Vector3(1, 0, 0),\n  Y: new Vector3(0, 1, 0),\n  Z: new Vector3(0, 0, 1)\n};\nconst _changeEvent = { type: \"change\" };\nconst _mouseDownEvent = { type: \"mouseDown\", mode: null };\nconst _mouseUpEvent = { type: \"mouseUp\", mode: null };\nconst _objectChangeEvent = { type: \"objectChange\" };\nclass TransformControls extends Controls {\n  /**\n   * Constructs a new controls instance.\n   *\n   * @param {Camera} camera - The camera of the rendered scene.\n   * @param {?HTMLDOMElement} domElement - The HTML element used for event listeners.\n   */\n  constructor(camera, domElement = null) {\n    super(void 0, domElement);\n    const root = new TransformControlsRoot(this);\n    this._root = root;\n    const gizmo = new TransformControlsGizmo();\n    this._gizmo = gizmo;\n    root.add(gizmo);\n    const plane = new TransformControlsPlane();\n    this._plane = plane;\n    root.add(plane);\n    const scope = this;\n    function defineProperty(propName2, defaultValue) {\n      let propValue = defaultValue;\n      Object.defineProperty(scope, propName2, {\n        get: function() {\n          return propValue !== void 0 ? propValue : defaultValue;\n        },\n        set: function(value) {\n          if (propValue !== value) {\n            propValue = value;\n            plane[propName2] = value;\n            gizmo[propName2] = value;\n            scope.dispatchEvent({ type: propName2 + \"-changed\", value });\n            scope.dispatchEvent(_changeEvent);\n          }\n        }\n      });\n      scope[propName2] = defaultValue;\n      plane[propName2] = defaultValue;\n      gizmo[propName2] = defaultValue;\n    }\n    defineProperty(\"camera\", camera);\n    defineProperty(\"object\", void 0);\n    defineProperty(\"enabled\", true);\n    defineProperty(\"axis\", null);\n    defineProperty(\"mode\", \"translate\");\n    defineProperty(\"translationSnap\", null);\n    defineProperty(\"rotationSnap\", null);\n    defineProperty(\"scaleSnap\", null);\n    defineProperty(\"space\", \"world\");\n    defineProperty(\"size\", 1);\n    defineProperty(\"dragging\", false);\n    defineProperty(\"showX\", true);\n    defineProperty(\"showY\", true);\n    defineProperty(\"showZ\", true);\n    defineProperty(\"minX\", -Infinity);\n    defineProperty(\"maxX\", Infinity);\n    defineProperty(\"minY\", -Infinity);\n    defineProperty(\"maxY\", Infinity);\n    defineProperty(\"minZ\", -Infinity);\n    defineProperty(\"maxZ\", Infinity);\n    const worldPosition = new Vector3();\n    const worldPositionStart = new Vector3();\n    const worldQuaternion = new Quaternion();\n    const worldQuaternionStart = new Quaternion();\n    const cameraPosition = new Vector3();\n    const cameraQuaternion = new Quaternion();\n    const pointStart = new Vector3();\n    const pointEnd = new Vector3();\n    const rotationAxis = new Vector3();\n    const rotationAngle = 0;\n    const eye = new Vector3();\n    defineProperty(\"worldPosition\", worldPosition);\n    defineProperty(\"worldPositionStart\", worldPositionStart);\n    defineProperty(\"worldQuaternion\", worldQuaternion);\n    defineProperty(\"worldQuaternionStart\", worldQuaternionStart);\n    defineProperty(\"cameraPosition\", cameraPosition);\n    defineProperty(\"cameraQuaternion\", cameraQuaternion);\n    defineProperty(\"pointStart\", pointStart);\n    defineProperty(\"pointEnd\", pointEnd);\n    defineProperty(\"rotationAxis\", rotationAxis);\n    defineProperty(\"rotationAngle\", rotationAngle);\n    defineProperty(\"eye\", eye);\n    this._offset = new Vector3();\n    this._startNorm = new Vector3();\n    this._endNorm = new Vector3();\n    this._cameraScale = new Vector3();\n    this._parentPosition = new Vector3();\n    this._parentQuaternion = new Quaternion();\n    this._parentQuaternionInv = new Quaternion();\n    this._parentScale = new Vector3();\n    this._worldScaleStart = new Vector3();\n    this._worldQuaternionInv = new Quaternion();\n    this._worldScale = new Vector3();\n    this._positionStart = new Vector3();\n    this._quaternionStart = new Quaternion();\n    this._scaleStart = new Vector3();\n    this._getPointer = getPointer.bind(this);\n    this._onPointerDown = onPointerDown.bind(this);\n    this._onPointerHover = onPointerHover.bind(this);\n    this._onPointerMove = onPointerMove.bind(this);\n    this._onPointerUp = onPointerUp.bind(this);\n    if (domElement !== null) {\n      this.connect(domElement);\n    }\n  }\n  connect(element) {\n    super.connect(element);\n    this.domElement.addEventListener(\"pointerdown\", this._onPointerDown);\n    this.domElement.addEventListener(\"pointermove\", this._onPointerHover);\n    this.domElement.addEventListener(\"pointerup\", this._onPointerUp);\n    this.domElement.style.touchAction = \"none\";\n  }\n  disconnect() {\n    this.domElement.removeEventListener(\"pointerdown\", this._onPointerDown);\n    this.domElement.removeEventListener(\"pointermove\", this._onPointerHover);\n    this.domElement.removeEventListener(\"pointermove\", this._onPointerMove);\n    this.domElement.removeEventListener(\"pointerup\", this._onPointerUp);\n    this.domElement.style.touchAction = \"auto\";\n  }\n  /**\n   * Returns the visual representation of the controls. Add the helper to your scene to\n   * visually transform the attached  3D object.\n   *\n   * @return {TransformControlsRoot} The helper.\n   */\n  getHelper() {\n    return this._root;\n  }\n  pointerHover(pointer) {\n    if (this.object === void 0 || this.dragging === true)\n      return;\n    if (pointer !== null)\n      _raycaster.setFromCamera(pointer, this.camera);\n    const intersect = intersectObjectWithRay(this._gizmo.picker[this.mode], _raycaster);\n    if (intersect) {\n      this.axis = intersect.object.name;\n    } else {\n      this.axis = null;\n    }\n  }\n  pointerDown(pointer) {\n    if (this.object === void 0 || this.dragging === true || pointer != null && pointer.button !== 0)\n      return;\n    if (this.axis !== null) {\n      if (pointer !== null)\n        _raycaster.setFromCamera(pointer, this.camera);\n      const planeIntersect = intersectObjectWithRay(this._plane, _raycaster, true);\n      if (planeIntersect) {\n        this.object.updateMatrixWorld();\n        this.object.parent.updateMatrixWorld();\n        this._positionStart.copy(this.object.position);\n        this._quaternionStart.copy(this.object.quaternion);\n        this._scaleStart.copy(this.object.scale);\n        this.object.matrixWorld.decompose(this.worldPositionStart, this.worldQuaternionStart, this._worldScaleStart);\n        this.pointStart.copy(planeIntersect.point).sub(this.worldPositionStart);\n      }\n      this.dragging = true;\n      _mouseDownEvent.mode = this.mode;\n      this.dispatchEvent(_mouseDownEvent);\n    }\n  }\n  pointerMove(pointer) {\n    const axis = this.axis;\n    const mode = this.mode;\n    const object = this.object;\n    let space = this.space;\n    if (mode === \"scale\") {\n      space = \"local\";\n    } else if (axis === \"E\" || axis === \"XYZE\" || axis === \"XYZ\") {\n      space = \"world\";\n    }\n    if (object === void 0 || axis === null || this.dragging === false || pointer !== null && pointer.button !== -1)\n      return;\n    if (pointer !== null)\n      _raycaster.setFromCamera(pointer, this.camera);\n    const planeIntersect = intersectObjectWithRay(this._plane, _raycaster, true);\n    if (!planeIntersect)\n      return;\n    this.pointEnd.copy(planeIntersect.point).sub(this.worldPositionStart);\n    if (mode === \"translate\") {\n      this._offset.copy(this.pointEnd).sub(this.pointStart);\n      if (space === \"local\" && axis !== \"XYZ\") {\n        this._offset.applyQuaternion(this._worldQuaternionInv);\n      }\n      if (axis.indexOf(\"X\") === -1)\n        this._offset.x = 0;\n      if (axis.indexOf(\"Y\") === -1)\n        this._offset.y = 0;\n      if (axis.indexOf(\"Z\") === -1)\n        this._offset.z = 0;\n      if (space === \"local\" && axis !== \"XYZ\") {\n        this._offset.applyQuaternion(this._quaternionStart).divide(this._parentScale);\n      } else {\n        this._offset.applyQuaternion(this._parentQuaternionInv).divide(this._parentScale);\n      }\n      object.position.copy(this._offset).add(this._positionStart);\n      if (this.translationSnap) {\n        if (space === \"local\") {\n          object.position.applyQuaternion(_tempQuaternion.copy(this._quaternionStart).invert());\n          if (axis.search(\"X\") !== -1) {\n            object.position.x = Math.round(object.position.x / this.translationSnap) * this.translationSnap;\n          }\n          if (axis.search(\"Y\") !== -1) {\n            object.position.y = Math.round(object.position.y / this.translationSnap) * this.translationSnap;\n          }\n          if (axis.search(\"Z\") !== -1) {\n            object.position.z = Math.round(object.position.z / this.translationSnap) * this.translationSnap;\n          }\n          object.position.applyQuaternion(this._quaternionStart);\n        }\n        if (space === \"world\") {\n          if (object.parent) {\n            object.position.add(_tempVector.setFromMatrixPosition(object.parent.matrixWorld));\n          }\n          if (axis.search(\"X\") !== -1) {\n            object.position.x = Math.round(object.position.x / this.translationSnap) * this.translationSnap;\n          }\n          if (axis.search(\"Y\") !== -1) {\n            object.position.y = Math.round(object.position.y / this.translationSnap) * this.translationSnap;\n          }\n          if (axis.search(\"Z\") !== -1) {\n            object.position.z = Math.round(object.position.z / this.translationSnap) * this.translationSnap;\n          }\n          if (object.parent) {\n            object.position.sub(_tempVector.setFromMatrixPosition(object.parent.matrixWorld));\n          }\n        }\n      }\n      object.position.x = Math.max(this.minX, Math.min(this.maxX, object.position.x));\n      object.position.y = Math.max(this.minY, Math.min(this.maxY, object.position.y));\n      object.position.z = Math.max(this.minZ, Math.min(this.maxZ, object.position.z));\n    } else if (mode === \"scale\") {\n      if (axis.search(\"XYZ\") !== -1) {\n        let d = this.pointEnd.length() / this.pointStart.length();\n        if (this.pointEnd.dot(this.pointStart) < 0)\n          d *= -1;\n        _tempVector2.set(d, d, d);\n      } else {\n        _tempVector.copy(this.pointStart);\n        _tempVector2.copy(this.pointEnd);\n        _tempVector.applyQuaternion(this._worldQuaternionInv);\n        _tempVector2.applyQuaternion(this._worldQuaternionInv);\n        _tempVector2.divide(_tempVector);\n        if (axis.search(\"X\") === -1) {\n          _tempVector2.x = 1;\n        }\n        if (axis.search(\"Y\") === -1) {\n          _tempVector2.y = 1;\n        }\n        if (axis.search(\"Z\") === -1) {\n          _tempVector2.z = 1;\n        }\n      }\n      object.scale.copy(this._scaleStart).multiply(_tempVector2);\n      if (this.scaleSnap) {\n        if (axis.search(\"X\") !== -1) {\n          object.scale.x = Math.round(object.scale.x / this.scaleSnap) * this.scaleSnap || this.scaleSnap;\n        }\n        if (axis.search(\"Y\") !== -1) {\n          object.scale.y = Math.round(object.scale.y / this.scaleSnap) * this.scaleSnap || this.scaleSnap;\n        }\n        if (axis.search(\"Z\") !== -1) {\n          object.scale.z = Math.round(object.scale.z / this.scaleSnap) * this.scaleSnap || this.scaleSnap;\n        }\n      }\n    } else if (mode === \"rotate\") {\n      this._offset.copy(this.pointEnd).sub(this.pointStart);\n      const ROTATION_SPEED = 20 / this.worldPosition.distanceTo(_tempVector.setFromMatrixPosition(this.camera.matrixWorld));\n      let _inPlaneRotation = false;\n      if (axis === \"XYZE\") {\n        this.rotationAxis.copy(this._offset).cross(this.eye).normalize();\n        this.rotationAngle = this._offset.dot(_tempVector.copy(this.rotationAxis).cross(this.eye)) * ROTATION_SPEED;\n      } else if (axis === \"X\" || axis === \"Y\" || axis === \"Z\") {\n        this.rotationAxis.copy(_unit[axis]);\n        _tempVector.copy(_unit[axis]);\n        if (space === \"local\") {\n          _tempVector.applyQuaternion(this.worldQuaternion);\n        }\n        _tempVector.cross(this.eye);\n        if (_tempVector.length() === 0) {\n          _inPlaneRotation = true;\n        } else {\n          this.rotationAngle = this._offset.dot(_tempVector.normalize()) * ROTATION_SPEED;\n        }\n      }\n      if (axis === \"E\" || _inPlaneRotation) {\n        this.rotationAxis.copy(this.eye);\n        this.rotationAngle = this.pointEnd.angleTo(this.pointStart);\n        this._startNorm.copy(this.pointStart).normalize();\n        this._endNorm.copy(this.pointEnd).normalize();\n        this.rotationAngle *= this._endNorm.cross(this._startNorm).dot(this.eye) < 0 ? 1 : -1;\n      }\n      if (this.rotationSnap)\n        this.rotationAngle = Math.round(this.rotationAngle / this.rotationSnap) * this.rotationSnap;\n      if (space === \"local\" && axis !== \"E\" && axis !== \"XYZE\") {\n        object.quaternion.copy(this._quaternionStart);\n        object.quaternion.multiply(_tempQuaternion.setFromAxisAngle(this.rotationAxis, this.rotationAngle)).normalize();\n      } else {\n        this.rotationAxis.applyQuaternion(this._parentQuaternionInv);\n        object.quaternion.copy(_tempQuaternion.setFromAxisAngle(this.rotationAxis, this.rotationAngle));\n        object.quaternion.multiply(this._quaternionStart).normalize();\n      }\n    }\n    this.dispatchEvent(_changeEvent);\n    this.dispatchEvent(_objectChangeEvent);\n  }\n  pointerUp(pointer) {\n    if (pointer !== null && pointer.button !== 0)\n      return;\n    if (this.dragging && this.axis !== null) {\n      _mouseUpEvent.mode = this.mode;\n      this.dispatchEvent(_mouseUpEvent);\n    }\n    this.dragging = false;\n    this.axis = null;\n  }\n  dispose() {\n    this.disconnect();\n    this._root.dispose();\n  }\n  /**\n   * Sets the 3D object that should be transformed and ensures the controls UI is visible.\n   *\n   * @param {Object3D} object -  The 3D object that should be transformed.\n   * @return {TransformControls} A reference to this controls.\n   */\n  attach(object) {\n    this.object = object;\n    this._root.visible = true;\n    return this;\n  }\n  /**\n   * Removes the current 3D object from the controls and makes the helper UI invisible.\n   *\n   * @return {TransformControls} A reference to this controls.\n   */\n  detach() {\n    this.object = void 0;\n    this.axis = null;\n    this._root.visible = false;\n    return this;\n  }\n  /**\n   * Resets the object's position, rotation and scale to when the current transform began.\n   */\n  reset() {\n    if (!this.enabled)\n      return;\n    if (this.dragging) {\n      this.object.position.copy(this._positionStart);\n      this.object.quaternion.copy(this._quaternionStart);\n      this.object.scale.copy(this._scaleStart);\n      this.dispatchEvent(_changeEvent);\n      this.dispatchEvent(_objectChangeEvent);\n      this.pointStart.copy(this.pointEnd);\n    }\n  }\n  /**\n   * Returns the raycaster that is used for user interaction. This object is shared between all\n   * instances of `TransformControls`.\n   *\n   * @returns {Raycaster} The internal raycaster.\n   */\n  getRaycaster() {\n    return _raycaster;\n  }\n  /**\n   * Returns the transformation mode.\n   *\n   * @returns {'translate'|'rotate'|'scale'} The transformation mode.\n   */\n  getMode() {\n    return this.mode;\n  }\n  /**\n   * Sets the given transformation mode.\n   *\n   * @param {'translate'|'rotate'|'scale'} mode - The transformation mode to set.\n   */\n  setMode(mode) {\n    this.mode = mode;\n  }\n  /**\n   * Sets the translation snap.\n   *\n   * @param {?number} translationSnap - The translation snap to set.\n   */\n  setTranslationSnap(translationSnap) {\n    this.translationSnap = translationSnap;\n  }\n  /**\n   * Sets the rotation snap.\n   *\n   * @param {?number} rotationSnap - The rotation snap to set.\n   */\n  setRotationSnap(rotationSnap) {\n    this.rotationSnap = rotationSnap;\n  }\n  /**\n   * Sets the scale snap.\n   *\n   * @param {?number} scaleSnap - The scale snap to set.\n   */\n  setScaleSnap(scaleSnap) {\n    this.scaleSnap = scaleSnap;\n  }\n  /**\n   * Sets the size of the helper UI.\n   *\n   * @param {number} size - The size to set.\n   */\n  setSize(size) {\n    this.size = size;\n  }\n  /**\n   * Sets the coordinate space in which transformations are applied.\n   *\n   * @param {'world'|'local'} space - The space to set.\n   */\n  setSpace(space) {\n    this.space = space;\n  }\n}\nfunction getPointer(event) {\n  if (this.domElement.ownerDocument.pointerLockElement) {\n    return {\n      x: 0,\n      y: 0,\n      button: event.button\n    };\n  } else {\n    const rect = this.domElement.getBoundingClientRect();\n    return {\n      x: (event.clientX - rect.left) / rect.width * 2 - 1,\n      y: -(event.clientY - rect.top) / rect.height * 2 + 1,\n      button: event.button\n    };\n  }\n}\nfunction onPointerHover(event) {\n  if (!this.enabled)\n    return;\n  switch (event.pointerType) {\n    case \"mouse\":\n    case \"pen\":\n      this.pointerHover(this._getPointer(event));\n      break;\n  }\n}\nfunction onPointerDown(event) {\n  if (!this.enabled)\n    return;\n  if (!document.pointerLockElement) {\n    this.domElement.setPointerCapture(event.pointerId);\n  }\n  this.domElement.addEventListener(\"pointermove\", this._onPointerMove);\n  this.pointerHover(this._getPointer(event));\n  this.pointerDown(this._getPointer(event));\n}\nfunction onPointerMove(event) {\n  if (!this.enabled)\n    return;\n  this.pointerMove(this._getPointer(event));\n}\nfunction onPointerUp(event) {\n  if (!this.enabled)\n    return;\n  this.domElement.releasePointerCapture(event.pointerId);\n  this.domElement.removeEventListener(\"pointermove\", this._onPointerMove);\n  this.pointerUp(this._getPointer(event));\n}\nfunction intersectObjectWithRay(object, raycaster, includeInvisible) {\n  const allIntersections = raycaster.intersectObject(object, true);\n  for (let i = 0; i < allIntersections.length; i++) {\n    if (allIntersections[i].object.visible || includeInvisible) {\n      return allIntersections[i];\n    }\n  }\n  return false;\n}\nconst _tempEuler = new Euler();\nconst _alignVector = new Vector3(0, 1, 0);\nconst _zeroVector = new Vector3(0, 0, 0);\nconst _lookAtMatrix = new Matrix4();\nconst _tempQuaternion2 = new Quaternion();\nconst _identityQuaternion = new Quaternion();\nconst _dirVector = new Vector3();\nconst _tempMatrix = new Matrix4();\nconst _unitX = new Vector3(1, 0, 0);\nconst _unitY = new Vector3(0, 1, 0);\nconst _unitZ = new Vector3(0, 0, 1);\nconst _v1 = new Vector3();\nconst _v2 = new Vector3();\nconst _v3 = new Vector3();\nclass TransformControlsRoot extends Object3D {\n  constructor(controls) {\n    super();\n    this.isTransformControlsRoot = true;\n    this.controls = controls;\n    this.visible = false;\n  }\n  // updateMatrixWorld updates key transformation variables\n  updateMatrixWorld(force) {\n    const controls = this.controls;\n    if (controls.object !== void 0) {\n      controls.object.updateMatrixWorld();\n      if (controls.object.parent === null) {\n        console.error(\"TransformControls: The attached 3D object must be a part of the scene graph.\");\n      } else {\n        controls.object.parent.matrixWorld.decompose(controls._parentPosition, controls._parentQuaternion, controls._parentScale);\n      }\n      controls.object.matrixWorld.decompose(controls.worldPosition, controls.worldQuaternion, controls._worldScale);\n      controls._parentQuaternionInv.copy(controls._parentQuaternion).invert();\n      controls._worldQuaternionInv.copy(controls.worldQuaternion).invert();\n    }\n    controls.camera.updateMatrixWorld();\n    controls.camera.matrixWorld.decompose(controls.cameraPosition, controls.cameraQuaternion, controls._cameraScale);\n    if (controls.camera.isOrthographicCamera) {\n      controls.camera.getWorldDirection(controls.eye).negate();\n    } else {\n      controls.eye.copy(controls.cameraPosition).sub(controls.worldPosition).normalize();\n    }\n    super.updateMatrixWorld(force);\n  }\n  dispose() {\n    this.traverse(function(child) {\n      if (child.geometry)\n        child.geometry.dispose();\n      if (child.material)\n        child.material.dispose();\n    });\n  }\n}\nclass TransformControlsGizmo extends Object3D {\n  constructor() {\n    super();\n    this.isTransformControlsGizmo = true;\n    this.type = \"TransformControlsGizmo\";\n    const gizmoMaterial = new MeshBasicMaterial({\n      depthTest: false,\n      depthWrite: false,\n      fog: false,\n      toneMapped: false,\n      transparent: true\n    });\n    const gizmoLineMaterial = new LineBasicMaterial({\n      depthTest: false,\n      depthWrite: false,\n      fog: false,\n      toneMapped: false,\n      transparent: true\n    });\n    const matInvisible = gizmoMaterial.clone();\n    matInvisible.opacity = 0.15;\n    const matHelper = gizmoLineMaterial.clone();\n    matHelper.opacity = 0.5;\n    const matRed = gizmoMaterial.clone();\n    matRed.color.setHex(16711680);\n    const matGreen = gizmoMaterial.clone();\n    matGreen.color.setHex(65280);\n    const matBlue = gizmoMaterial.clone();\n    matBlue.color.setHex(255);\n    const matRedTransparent = gizmoMaterial.clone();\n    matRedTransparent.color.setHex(16711680);\n    matRedTransparent.opacity = 0.5;\n    const matGreenTransparent = gizmoMaterial.clone();\n    matGreenTransparent.color.setHex(65280);\n    matGreenTransparent.opacity = 0.5;\n    const matBlueTransparent = gizmoMaterial.clone();\n    matBlueTransparent.color.setHex(255);\n    matBlueTransparent.opacity = 0.5;\n    const matWhiteTransparent = gizmoMaterial.clone();\n    matWhiteTransparent.opacity = 0.25;\n    const matYellowTransparent = gizmoMaterial.clone();\n    matYellowTransparent.color.setHex(16776960);\n    matYellowTransparent.opacity = 0.25;\n    const matYellow = gizmoMaterial.clone();\n    matYellow.color.setHex(16776960);\n    const matGray = gizmoMaterial.clone();\n    matGray.color.setHex(7895160);\n    const arrowGeometry = new CylinderGeometry(0, 0.04, 0.1, 12);\n    arrowGeometry.translate(0, 0.05, 0);\n    const scaleHandleGeometry = new BoxGeometry(0.08, 0.08, 0.08);\n    scaleHandleGeometry.translate(0, 0.04, 0);\n    const lineGeometry = new BufferGeometry();\n    lineGeometry.setAttribute(\"position\", new Float32BufferAttribute([0, 0, 0, 1, 0, 0], 3));\n    const lineGeometry2 = new CylinderGeometry(75e-4, 75e-4, 0.5, 3);\n    lineGeometry2.translate(0, 0.25, 0);\n    function CircleGeometry(radius, arc) {\n      const geometry = new TorusGeometry(radius, 75e-4, 3, 64, arc * Math.PI * 2);\n      geometry.rotateY(Math.PI / 2);\n      geometry.rotateX(Math.PI / 2);\n      return geometry;\n    }\n    function TranslateHelperGeometry() {\n      const geometry = new BufferGeometry();\n      geometry.setAttribute(\"position\", new Float32BufferAttribute([0, 0, 0, 1, 1, 1], 3));\n      return geometry;\n    }\n    const gizmoTranslate = {\n      X: [\n        [new Mesh(arrowGeometry, matRed), [0.5, 0, 0], [0, 0, -Math.PI / 2]],\n        [new Mesh(arrowGeometry, matRed), [-0.5, 0, 0], [0, 0, Math.PI / 2]],\n        [new Mesh(lineGeometry2, matRed), [0, 0, 0], [0, 0, -Math.PI / 2]]\n      ],\n      Y: [\n        [new Mesh(arrowGeometry, matGreen), [0, 0.5, 0]],\n        [new Mesh(arrowGeometry, matGreen), [0, -0.5, 0], [Math.PI, 0, 0]],\n        [new Mesh(lineGeometry2, matGreen)]\n      ],\n      Z: [\n        [new Mesh(arrowGeometry, matBlue), [0, 0, 0.5], [Math.PI / 2, 0, 0]],\n        [new Mesh(arrowGeometry, matBlue), [0, 0, -0.5], [-Math.PI / 2, 0, 0]],\n        [new Mesh(lineGeometry2, matBlue), null, [Math.PI / 2, 0, 0]]\n      ],\n      XYZ: [\n        [new Mesh(new OctahedronGeometry(0.1, 0), matWhiteTransparent.clone()), [0, 0, 0]]\n      ],\n      XY: [\n        [new Mesh(new BoxGeometry(0.15, 0.15, 0.01), matBlueTransparent.clone()), [0.15, 0.15, 0]]\n      ],\n      YZ: [\n        [new Mesh(new BoxGeometry(0.15, 0.15, 0.01), matRedTransparent.clone()), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]\n      ],\n      XZ: [\n        [new Mesh(new BoxGeometry(0.15, 0.15, 0.01), matGreenTransparent.clone()), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]\n      ]\n    };\n    const pickerTranslate = {\n      X: [\n        [new Mesh(new CylinderGeometry(0.2, 0, 0.6, 4), matInvisible), [0.3, 0, 0], [0, 0, -Math.PI / 2]],\n        [new Mesh(new CylinderGeometry(0.2, 0, 0.6, 4), matInvisible), [-0.3, 0, 0], [0, 0, Math.PI / 2]]\n      ],\n      Y: [\n        [new Mesh(new CylinderGeometry(0.2, 0, 0.6, 4), matInvisible), [0, 0.3, 0]],\n        [new Mesh(new CylinderGeometry(0.2, 0, 0.6, 4), matInvisible), [0, -0.3, 0], [0, 0, Math.PI]]\n      ],\n      Z: [\n        [new Mesh(new CylinderGeometry(0.2, 0, 0.6, 4), matInvisible), [0, 0, 0.3], [Math.PI / 2, 0, 0]],\n        [new Mesh(new CylinderGeometry(0.2, 0, 0.6, 4), matInvisible), [0, 0, -0.3], [-Math.PI / 2, 0, 0]]\n      ],\n      XYZ: [\n        [new Mesh(new OctahedronGeometry(0.2, 0), matInvisible)]\n      ],\n      XY: [\n        [new Mesh(new BoxGeometry(0.2, 0.2, 0.01), matInvisible), [0.15, 0.15, 0]]\n      ],\n      YZ: [\n        [new Mesh(new BoxGeometry(0.2, 0.2, 0.01), matInvisible), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]\n      ],\n      XZ: [\n        [new Mesh(new BoxGeometry(0.2, 0.2, 0.01), matInvisible), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]\n      ]\n    };\n    const helperTranslate = {\n      START: [\n        [new Mesh(new OctahedronGeometry(0.01, 2), matHelper), null, null, null, \"helper\"]\n      ],\n      END: [\n        [new Mesh(new OctahedronGeometry(0.01, 2), matHelper), null, null, null, \"helper\"]\n      ],\n      DELTA: [\n        [new Line(TranslateHelperGeometry(), matHelper), null, null, null, \"helper\"]\n      ],\n      X: [\n        [new Line(lineGeometry, matHelper.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], \"helper\"]\n      ],\n      Y: [\n        [new Line(lineGeometry, matHelper.clone()), [0, -1e3, 0], [0, 0, Math.PI / 2], [1e6, 1, 1], \"helper\"]\n      ],\n      Z: [\n        [new Line(lineGeometry, matHelper.clone()), [0, 0, -1e3], [0, -Math.PI / 2, 0], [1e6, 1, 1], \"helper\"]\n      ]\n    };\n    const gizmoRotate = {\n      XYZE: [\n        [new Mesh(CircleGeometry(0.5, 1), matGray), null, [0, Math.PI / 2, 0]]\n      ],\n      X: [\n        [new Mesh(CircleGeometry(0.5, 0.5), matRed)]\n      ],\n      Y: [\n        [new Mesh(CircleGeometry(0.5, 0.5), matGreen), null, [0, 0, -Math.PI / 2]]\n      ],\n      Z: [\n        [new Mesh(CircleGeometry(0.5, 0.5), matBlue), null, [0, Math.PI / 2, 0]]\n      ],\n      E: [\n        [new Mesh(CircleGeometry(0.75, 1), matYellowTransparent), null, [0, Math.PI / 2, 0]]\n      ]\n    };\n    const helperRotate = {\n      AXIS: [\n        [new Line(lineGeometry, matHelper.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], \"helper\"]\n      ]\n    };\n    const pickerRotate = {\n      XYZE: [\n        [new Mesh(new SphereGeometry(0.25, 10, 8), matInvisible)]\n      ],\n      X: [\n        [new Mesh(new TorusGeometry(0.5, 0.1, 4, 24), matInvisible), [0, 0, 0], [0, -Math.PI / 2, -Math.PI / 2]]\n      ],\n      Y: [\n        [new Mesh(new TorusGeometry(0.5, 0.1, 4, 24), matInvisible), [0, 0, 0], [Math.PI / 2, 0, 0]]\n      ],\n      Z: [\n        [new Mesh(new TorusGeometry(0.5, 0.1, 4, 24), matInvisible), [0, 0, 0], [0, 0, -Math.PI / 2]]\n      ],\n      E: [\n        [new Mesh(new TorusGeometry(0.75, 0.1, 2, 24), matInvisible)]\n      ]\n    };\n    const gizmoScale = {\n      X: [\n        [new Mesh(scaleHandleGeometry, matRed), [0.5, 0, 0], [0, 0, -Math.PI / 2]],\n        [new Mesh(lineGeometry2, matRed), [0, 0, 0], [0, 0, -Math.PI / 2]],\n        [new Mesh(scaleHandleGeometry, matRed), [-0.5, 0, 0], [0, 0, Math.PI / 2]]\n      ],\n      Y: [\n        [new Mesh(scaleHandleGeometry, matGreen), [0, 0.5, 0]],\n        [new Mesh(lineGeometry2, matGreen)],\n        [new Mesh(scaleHandleGeometry, matGreen), [0, -0.5, 0], [0, 0, Math.PI]]\n      ],\n      Z: [\n        [new Mesh(scaleHandleGeometry, matBlue), [0, 0, 0.5], [Math.PI / 2, 0, 0]],\n        [new Mesh(lineGeometry2, matBlue), [0, 0, 0], [Math.PI / 2, 0, 0]],\n        [new Mesh(scaleHandleGeometry, matBlue), [0, 0, -0.5], [-Math.PI / 2, 0, 0]]\n      ],\n      XY: [\n        [new Mesh(new BoxGeometry(0.15, 0.15, 0.01), matBlueTransparent), [0.15, 0.15, 0]]\n      ],\n      YZ: [\n        [new Mesh(new BoxGeometry(0.15, 0.15, 0.01), matRedTransparent), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]\n      ],\n      XZ: [\n        [new Mesh(new BoxGeometry(0.15, 0.15, 0.01), matGreenTransparent), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]\n      ],\n      XYZ: [\n        [new Mesh(new BoxGeometry(0.1, 0.1, 0.1), matWhiteTransparent.clone())]\n      ]\n    };\n    const pickerScale = {\n      X: [\n        [new Mesh(new CylinderGeometry(0.2, 0, 0.6, 4), matInvisible), [0.3, 0, 0], [0, 0, -Math.PI / 2]],\n        [new Mesh(new CylinderGeometry(0.2, 0, 0.6, 4), matInvisible), [-0.3, 0, 0], [0, 0, Math.PI / 2]]\n      ],\n      Y: [\n        [new Mesh(new CylinderGeometry(0.2, 0, 0.6, 4), matInvisible), [0, 0.3, 0]],\n        [new Mesh(new CylinderGeometry(0.2, 0, 0.6, 4), matInvisible), [0, -0.3, 0], [0, 0, Math.PI]]\n      ],\n      Z: [\n        [new Mesh(new CylinderGeometry(0.2, 0, 0.6, 4), matInvisible), [0, 0, 0.3], [Math.PI / 2, 0, 0]],\n        [new Mesh(new CylinderGeometry(0.2, 0, 0.6, 4), matInvisible), [0, 0, -0.3], [-Math.PI / 2, 0, 0]]\n      ],\n      XY: [\n        [new Mesh(new BoxGeometry(0.2, 0.2, 0.01), matInvisible), [0.15, 0.15, 0]]\n      ],\n      YZ: [\n        [new Mesh(new BoxGeometry(0.2, 0.2, 0.01), matInvisible), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]\n      ],\n      XZ: [\n        [new Mesh(new BoxGeometry(0.2, 0.2, 0.01), matInvisible), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]\n      ],\n      XYZ: [\n        [new Mesh(new BoxGeometry(0.2, 0.2, 0.2), matInvisible), [0, 0, 0]]\n      ]\n    };\n    const helperScale = {\n      X: [\n        [new Line(lineGeometry, matHelper.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], \"helper\"]\n      ],\n      Y: [\n        [new Line(lineGeometry, matHelper.clone()), [0, -1e3, 0], [0, 0, Math.PI / 2], [1e6, 1, 1], \"helper\"]\n      ],\n      Z: [\n        [new Line(lineGeometry, matHelper.clone()), [0, 0, -1e3], [0, -Math.PI / 2, 0], [1e6, 1, 1], \"helper\"]\n      ]\n    };\n    function setupGizmo(gizmoMap) {\n      const gizmo = new Object3D();\n      for (const name in gizmoMap) {\n        for (let i = gizmoMap[name].length; i--; ) {\n          const object = gizmoMap[name][i][0].clone();\n          const position = gizmoMap[name][i][1];\n          const rotation = gizmoMap[name][i][2];\n          const scale = gizmoMap[name][i][3];\n          const tag = gizmoMap[name][i][4];\n          object.name = name;\n          object.tag = tag;\n          if (position) {\n            object.position.set(position[0], position[1], position[2]);\n          }\n          if (rotation) {\n            object.rotation.set(rotation[0], rotation[1], rotation[2]);\n          }\n          if (scale) {\n            object.scale.set(scale[0], scale[1], scale[2]);\n          }\n          object.updateMatrix();\n          const tempGeometry = object.geometry.clone();\n          tempGeometry.applyMatrix4(object.matrix);\n          object.geometry = tempGeometry;\n          object.renderOrder = Infinity;\n          object.position.set(0, 0, 0);\n          object.rotation.set(0, 0, 0);\n          object.scale.set(1, 1, 1);\n          gizmo.add(object);\n        }\n      }\n      return gizmo;\n    }\n    this.gizmo = {};\n    this.picker = {};\n    this.helper = {};\n    this.add(this.gizmo[\"translate\"] = setupGizmo(gizmoTranslate));\n    this.add(this.gizmo[\"rotate\"] = setupGizmo(gizmoRotate));\n    this.add(this.gizmo[\"scale\"] = setupGizmo(gizmoScale));\n    this.add(this.picker[\"translate\"] = setupGizmo(pickerTranslate));\n    this.add(this.picker[\"rotate\"] = setupGizmo(pickerRotate));\n    this.add(this.picker[\"scale\"] = setupGizmo(pickerScale));\n    this.add(this.helper[\"translate\"] = setupGizmo(helperTranslate));\n    this.add(this.helper[\"rotate\"] = setupGizmo(helperRotate));\n    this.add(this.helper[\"scale\"] = setupGizmo(helperScale));\n    this.picker[\"translate\"].visible = false;\n    this.picker[\"rotate\"].visible = false;\n    this.picker[\"scale\"].visible = false;\n  }\n  // updateMatrixWorld will update transformations and appearance of individual handles\n  updateMatrixWorld(force) {\n    const space = this.mode === \"scale\" ? \"local\" : this.space;\n    const quaternion = space === \"local\" ? this.worldQuaternion : _identityQuaternion;\n    this.gizmo[\"translate\"].visible = this.mode === \"translate\";\n    this.gizmo[\"rotate\"].visible = this.mode === \"rotate\";\n    this.gizmo[\"scale\"].visible = this.mode === \"scale\";\n    this.helper[\"translate\"].visible = this.mode === \"translate\";\n    this.helper[\"rotate\"].visible = this.mode === \"rotate\";\n    this.helper[\"scale\"].visible = this.mode === \"scale\";\n    let handles = [];\n    handles = handles.concat(this.picker[this.mode].children);\n    handles = handles.concat(this.gizmo[this.mode].children);\n    handles = handles.concat(this.helper[this.mode].children);\n    for (let i = 0; i < handles.length; i++) {\n      const handle = handles[i];\n      handle.visible = true;\n      handle.rotation.set(0, 0, 0);\n      handle.position.copy(this.worldPosition);\n      let factor;\n      if (this.camera.isOrthographicCamera) {\n        factor = (this.camera.top - this.camera.bottom) / this.camera.zoom;\n      } else {\n        factor = this.worldPosition.distanceTo(this.cameraPosition) * Math.min(1.9 * Math.tan(Math.PI * this.camera.fov / 360) / this.camera.zoom, 7);\n      }\n      handle.scale.set(1, 1, 1).multiplyScalar(factor * this.size / 4);\n      if (handle.tag === \"helper\") {\n        handle.visible = false;\n        if (handle.name === \"AXIS\") {\n          handle.visible = !!this.axis;\n          if (this.axis === \"X\") {\n            _tempQuaternion.setFromEuler(_tempEuler.set(0, 0, 0));\n            handle.quaternion.copy(quaternion).multiply(_tempQuaternion);\n            if (Math.abs(_alignVector.copy(_unitX).applyQuaternion(quaternion).dot(this.eye)) > 0.9) {\n              handle.visible = false;\n            }\n          }\n          if (this.axis === \"Y\") {\n            _tempQuaternion.setFromEuler(_tempEuler.set(0, 0, Math.PI / 2));\n            handle.quaternion.copy(quaternion).multiply(_tempQuaternion);\n            if (Math.abs(_alignVector.copy(_unitY).applyQuaternion(quaternion).dot(this.eye)) > 0.9) {\n              handle.visible = false;\n            }\n          }\n          if (this.axis === \"Z\") {\n            _tempQuaternion.setFromEuler(_tempEuler.set(0, Math.PI / 2, 0));\n            handle.quaternion.copy(quaternion).multiply(_tempQuaternion);\n            if (Math.abs(_alignVector.copy(_unitZ).applyQuaternion(quaternion).dot(this.eye)) > 0.9) {\n              handle.visible = false;\n            }\n          }\n          if (this.axis === \"XYZE\") {\n            _tempQuaternion.setFromEuler(_tempEuler.set(0, Math.PI / 2, 0));\n            _alignVector.copy(this.rotationAxis);\n            handle.quaternion.setFromRotationMatrix(_lookAtMatrix.lookAt(_zeroVector, _alignVector, _unitY));\n            handle.quaternion.multiply(_tempQuaternion);\n            handle.visible = this.dragging;\n          }\n          if (this.axis === \"E\") {\n            handle.visible = false;\n          }\n        } else if (handle.name === \"START\") {\n          handle.position.copy(this.worldPositionStart);\n          handle.visible = this.dragging;\n        } else if (handle.name === \"END\") {\n          handle.position.copy(this.worldPosition);\n          handle.visible = this.dragging;\n        } else if (handle.name === \"DELTA\") {\n          handle.position.copy(this.worldPositionStart);\n          handle.quaternion.copy(this.worldQuaternionStart);\n          _tempVector.set(1e-10, 1e-10, 1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1);\n          _tempVector.applyQuaternion(this.worldQuaternionStart.clone().invert());\n          handle.scale.copy(_tempVector);\n          handle.visible = this.dragging;\n        } else {\n          handle.quaternion.copy(quaternion);\n          if (this.dragging) {\n            handle.position.copy(this.worldPositionStart);\n          } else {\n            handle.position.copy(this.worldPosition);\n          }\n          if (this.axis) {\n            handle.visible = this.axis.search(handle.name) !== -1;\n          }\n        }\n        continue;\n      }\n      handle.quaternion.copy(quaternion);\n      if (this.mode === \"translate\" || this.mode === \"scale\") {\n        const AXIS_HIDE_THRESHOLD = 0.99;\n        const PLANE_HIDE_THRESHOLD = 0.2;\n        if (handle.name === \"X\") {\n          if (Math.abs(_alignVector.copy(_unitX).applyQuaternion(quaternion).dot(this.eye)) > AXIS_HIDE_THRESHOLD) {\n            handle.scale.set(1e-10, 1e-10, 1e-10);\n            handle.visible = false;\n          }\n        }\n        if (handle.name === \"Y\") {\n          if (Math.abs(_alignVector.copy(_unitY).applyQuaternion(quaternion).dot(this.eye)) > AXIS_HIDE_THRESHOLD) {\n            handle.scale.set(1e-10, 1e-10, 1e-10);\n            handle.visible = false;\n          }\n        }\n        if (handle.name === \"Z\") {\n          if (Math.abs(_alignVector.copy(_unitZ).applyQuaternion(quaternion).dot(this.eye)) > AXIS_HIDE_THRESHOLD) {\n            handle.scale.set(1e-10, 1e-10, 1e-10);\n            handle.visible = false;\n          }\n        }\n        if (handle.name === \"XY\") {\n          if (Math.abs(_alignVector.copy(_unitZ).applyQuaternion(quaternion).dot(this.eye)) < PLANE_HIDE_THRESHOLD) {\n            handle.scale.set(1e-10, 1e-10, 1e-10);\n            handle.visible = false;\n          }\n        }\n        if (handle.name === \"YZ\") {\n          if (Math.abs(_alignVector.copy(_unitX).applyQuaternion(quaternion).dot(this.eye)) < PLANE_HIDE_THRESHOLD) {\n            handle.scale.set(1e-10, 1e-10, 1e-10);\n            handle.visible = false;\n          }\n        }\n        if (handle.name === \"XZ\") {\n          if (Math.abs(_alignVector.copy(_unitY).applyQuaternion(quaternion).dot(this.eye)) < PLANE_HIDE_THRESHOLD) {\n            handle.scale.set(1e-10, 1e-10, 1e-10);\n            handle.visible = false;\n          }\n        }\n      } else if (this.mode === \"rotate\") {\n        _tempQuaternion2.copy(quaternion);\n        _alignVector.copy(this.eye).applyQuaternion(_tempQuaternion.copy(quaternion).invert());\n        if (handle.name.search(\"E\") !== -1) {\n          handle.quaternion.setFromRotationMatrix(_lookAtMatrix.lookAt(this.eye, _zeroVector, _unitY));\n        }\n        if (handle.name === \"X\") {\n          _tempQuaternion.setFromAxisAngle(_unitX, Math.atan2(-_alignVector.y, _alignVector.z));\n          _tempQuaternion.multiplyQuaternions(_tempQuaternion2, _tempQuaternion);\n          handle.quaternion.copy(_tempQuaternion);\n        }\n        if (handle.name === \"Y\") {\n          _tempQuaternion.setFromAxisAngle(_unitY, Math.atan2(_alignVector.x, _alignVector.z));\n          _tempQuaternion.multiplyQuaternions(_tempQuaternion2, _tempQuaternion);\n          handle.quaternion.copy(_tempQuaternion);\n        }\n        if (handle.name === \"Z\") {\n          _tempQuaternion.setFromAxisAngle(_unitZ, Math.atan2(_alignVector.y, _alignVector.x));\n          _tempQuaternion.multiplyQuaternions(_tempQuaternion2, _tempQuaternion);\n          handle.quaternion.copy(_tempQuaternion);\n        }\n      }\n      handle.visible = handle.visible && (handle.name.indexOf(\"X\") === -1 || this.showX);\n      handle.visible = handle.visible && (handle.name.indexOf(\"Y\") === -1 || this.showY);\n      handle.visible = handle.visible && (handle.name.indexOf(\"Z\") === -1 || this.showZ);\n      handle.visible = handle.visible && (handle.name.indexOf(\"E\") === -1 || this.showX && this.showY && this.showZ);\n      handle.material._color = handle.material._color || handle.material.color.clone();\n      handle.material._opacity = handle.material._opacity || handle.material.opacity;\n      handle.material.color.copy(handle.material._color);\n      handle.material.opacity = handle.material._opacity;\n      if (this.enabled && this.axis) {\n        if (handle.name === this.axis) {\n          handle.material.color.setHex(16776960);\n          handle.material.opacity = 1;\n        } else if (this.axis.split(\"\").some(function(a) {\n          return handle.name === a;\n        })) {\n          handle.material.color.setHex(16776960);\n          handle.material.opacity = 1;\n        }\n      }\n    }\n    super.updateMatrixWorld(force);\n  }\n}\nclass TransformControlsPlane extends Mesh {\n  constructor() {\n    super(\n      new PlaneGeometry(1e5, 1e5, 2, 2),\n      new MeshBasicMaterial({ visible: false, wireframe: true, side: DoubleSide, transparent: true, opacity: 0.1, toneMapped: false })\n    );\n    this.isTransformControlsPlane = true;\n    this.type = \"TransformControlsPlane\";\n  }\n  updateMatrixWorld(force) {\n    let space = this.space;\n    this.position.copy(this.worldPosition);\n    if (this.mode === \"scale\")\n      space = \"local\";\n    _v1.copy(_unitX).applyQuaternion(space === \"local\" ? this.worldQuaternion : _identityQuaternion);\n    _v2.copy(_unitY).applyQuaternion(space === \"local\" ? this.worldQuaternion : _identityQuaternion);\n    _v3.copy(_unitZ).applyQuaternion(space === \"local\" ? this.worldQuaternion : _identityQuaternion);\n    _alignVector.copy(_v2);\n    switch (this.mode) {\n      case \"translate\":\n      case \"scale\":\n        switch (this.axis) {\n          case \"X\":\n            _alignVector.copy(this.eye).cross(_v1);\n            _dirVector.copy(_v1).cross(_alignVector);\n            break;\n          case \"Y\":\n            _alignVector.copy(this.eye).cross(_v2);\n            _dirVector.copy(_v2).cross(_alignVector);\n            break;\n          case \"Z\":\n            _alignVector.copy(this.eye).cross(_v3);\n            _dirVector.copy(_v3).cross(_alignVector);\n            break;\n          case \"XY\":\n            _dirVector.copy(_v3);\n            break;\n          case \"YZ\":\n            _dirVector.copy(_v1);\n            break;\n          case \"XZ\":\n            _alignVector.copy(_v3);\n            _dirVector.copy(_v2);\n            break;\n          case \"XYZ\":\n          case \"E\":\n            _dirVector.set(0, 0, 0);\n            break;\n        }\n        break;\n      case \"rotate\":\n      default:\n        _dirVector.set(0, 0, 0);\n    }\n    if (_dirVector.length() === 0) {\n      this.quaternion.copy(this.cameraQuaternion);\n    } else {\n      _tempMatrix.lookAt(_tempVector.set(0, 0, 0), _dirVector, _alignVector);\n      this.quaternion.setFromRotationMatrix(_tempMatrix);\n    }\n    super.updateMatrixWorld(force);\n  }\n}\nclass SimplePlane {\n  constructor(components, world, origin, normal, material, size = 5, activateControls = true) {\n    /** Event that fires when the user starts dragging a clipping plane. */\n    __publicField(this, \"onDraggingStarted\", new Event());\n    /** Event that fires when the user stops dragging a clipping plane. */\n    __publicField(this, \"onDraggingEnded\", new Event());\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    /**\n     * The normal vector of the clipping plane.\n     */\n    __publicField(this, \"normal\");\n    /**\n     * The origin point of the clipping plane.\n     */\n    __publicField(this, \"origin\");\n    /**\n     * The THREE.js Plane object representing the clipping plane.\n     */\n    __publicField(this, \"three\", new THREE.Plane());\n    /** The components instance to which this plane belongs. */\n    __publicField(this, \"components\");\n    /** The world instance to which this plane belongs. */\n    __publicField(this, \"world\");\n    /** A custom string to identify what this plane is used for. */\n    __publicField(this, \"type\", \"default\");\n    __publicField(this, \"_title\", \"Clipping Plane\");\n    __publicField(this, \"_helper\");\n    __publicField(this, \"_visible\", true);\n    __publicField(this, \"_enabled\", true);\n    __publicField(this, \"_controlsActive\", false);\n    __publicField(this, \"_arrowBoundBox\", new THREE.Mesh());\n    __publicField(this, \"_planeMesh\");\n    __publicField(this, \"_controls\");\n    __publicField(this, \"_hiddenMaterial\", new THREE.MeshBasicMaterial({\n      visible: false\n    }));\n    __publicField(this, \"_sizeMultiplier\", 5);\n    __publicField(this, \"_autoScale\", true);\n    __publicField(this, \"_visibilityBeforeDisabled\", true);\n    __publicField(this, \"notifyManager\", () => {\n      const clipper = this.components.get(Clipper);\n      const id = clipper.list.getKey(this);\n      if (id)\n        clipper.list.set(id, this);\n    });\n    /** {@link Updateable.update} */\n    __publicField(this, \"update\", () => {\n      if (!this._enabled)\n        return;\n      this.three.setFromNormalAndCoplanarPoint(\n        this.normal,\n        this._helper.position\n      );\n      this.updateScale();\n    });\n    __publicField(this, \"updateScale\", () => {\n      var _a;\n      if (!this.autoScale)\n        return;\n      const camera = (_a = this.world.camera) == null ? void 0 : _a.three;\n      if (!camera)\n        return;\n      if (!(camera instanceof THREE.PerspectiveCamera))\n        return;\n      const cameraPosition = new THREE.Vector3();\n      camera.getWorldPosition(cameraPosition);\n      const distance = cameraPosition.distanceTo(this._helper.position);\n      const scale = distance / 7 * this._sizeMultiplier;\n      this._planeMesh.scale.set(scale, scale, scale);\n    });\n    __publicField(this, \"changeDrag\", (event) => {\n      this._visible = !event.value;\n      this.preventCameraMovement();\n      this.notifyDraggingChanged(event);\n    });\n    var _a;\n    this.components = components;\n    this.world = world;\n    if (!world.renderer) {\n      throw new Error(\"The given world must have a renderer!\");\n    }\n    this.normal = normal;\n    this.origin = origin;\n    this._sizeMultiplier = size;\n    world.renderer.setPlane(true, this.three);\n    this._planeMesh = SimplePlane.newPlaneMesh(size, material);\n    this._helper = this.newHelper();\n    this._controls = this.newTransformControls();\n    this.three.setFromNormalAndCoplanarPoint(normal, origin);\n    if (activateControls) {\n      this.toggleControls(true);\n    }\n    this.updateScale();\n    if ((_a = world.camera) == null ? void 0 : _a.controls) {\n      world.camera.controls.addEventListener(\"update\", this.updateScale);\n    }\n  }\n  set title(value) {\n    this._title = value;\n    this.notifyManager();\n  }\n  get title() {\n    return this._title;\n  }\n  get autoScale() {\n    return this._autoScale;\n  }\n  set autoScale(value) {\n    this._autoScale = value;\n    if (value) {\n      this.updateScale();\n    }\n  }\n  /**\n   * Getter for the enabled state of the clipping plane.\n   * @returns {boolean} The current enabled state.\n   */\n  get enabled() {\n    return this._enabled;\n  }\n  /**\n   * Setter for the enabled state of the clipping plane.\n   * Updates the clipping plane state in the renderer and throws an error if no renderer is found.\n   * @param {boolean} state - The new enabled state.\n   */\n  set enabled(state) {\n    if (this.world.isDisposing) {\n      return;\n    }\n    if (!this.world.renderer) {\n      throw new Error(\"No renderer found for clipping plane!\");\n    }\n    this._enabled = state;\n    if (state) {\n      this.visible = this._visibilityBeforeDisabled;\n    } else {\n      this._visibilityBeforeDisabled = this.visible;\n      this.visible = false;\n    }\n    this.world.renderer.setPlane(state, this.three);\n    this.notifyManager();\n  }\n  /** {@link Hideable.visible } */\n  get visible() {\n    return this._visible;\n  }\n  /** {@link Hideable.visible } */\n  set visible(state) {\n    this._visible = state;\n    this._controls.getHelper().visible = state;\n    this._helper.visible = state;\n    this.toggleControls(state);\n    this.notifyManager();\n  }\n  /** The meshes used for raycasting */\n  get meshes() {\n    return [this._planeMesh, this._arrowBoundBox];\n  }\n  /** The material of the clipping plane representation. */\n  get planeMaterial() {\n    return this._planeMesh.material;\n  }\n  /** The material of the clipping plane representation. */\n  set planeMaterial(material) {\n    this._planeMesh.material = material;\n  }\n  /** The size of the clipping plane representation. */\n  get size() {\n    return this._sizeMultiplier;\n  }\n  /** Sets the size of the clipping plane representation. */\n  set size(size) {\n    this._sizeMultiplier = size;\n    if (this.autoScale) {\n      this.updateScale();\n    } else {\n      this._planeMesh.scale.set(size, size, size);\n    }\n  }\n  /**\n   * Getter for the helper object of the clipping plane.\n   * The helper object is a THREE.Object3D that contains the clipping plane mesh and other related objects.\n   * It is used for positioning, rotating, and scaling the clipping plane in the 3D scene.\n   *\n   * @returns {THREE.Object3D} The helper object of the clipping plane.\n   */\n  get helper() {\n    return this._helper;\n  }\n  /**\n   * Getter for the transform controls of the clipping plane.\n   * The controls allow interactive manipulation (translation, rotation, etc.) of the clipping plane.\n   *\n   * @returns {TransformControls} The transform controls of the clipping plane.\n   */\n  get controls() {\n    return this._controls;\n  }\n  /**\n   * Sets the clipping plane's normal and origin from the given normal and point.\n   * This method resets the clipping plane's state, updates the normal and origin,\n   * and positions the helper object accordingly.\n   *\n   * @param normal - The new normal vector for the clipping plane.\n   * @param point - The new origin point for the clipping plane.\n   *\n   * @returns {void}\n   */\n  setFromNormalAndCoplanarPoint(normal, point) {\n    this.reset();\n    if (!this.normal.equals(normal)) {\n      this.normal.copy(normal);\n      this._helper.lookAt(normal);\n    }\n    this.origin.copy(point);\n    this._helper.position.copy(point);\n    this._helper.updateMatrix();\n    this.update();\n  }\n  /** {@link Disposable.dispose} */\n  dispose() {\n    var _a;\n    this._enabled = false;\n    if ((_a = this.world.camera) == null ? void 0 : _a.controls) {\n      this.world.camera.controls.removeEventListener(\n        \"update\",\n        this.updateScale\n      );\n    }\n    this.onDraggingStarted.reset();\n    this.onDraggingEnded.reset();\n    this._helper.removeFromParent();\n    if (this.world.renderer) {\n      this.world.renderer.setPlane(false, this.three);\n    }\n    this._arrowBoundBox.removeFromParent();\n    this._arrowBoundBox.geometry.dispose();\n    this._planeMesh.geometry.dispose();\n    this._controls.getHelper().removeFromParent();\n    this._controls.dispose();\n    this.onDisposed.trigger();\n    this.onDisposed.reset();\n  }\n  reset() {\n    const normal = new THREE.Vector3(1, 0, 0);\n    const point = new THREE.Vector3();\n    if (!this.normal.equals(normal)) {\n      this.normal.copy(normal);\n      this._helper.lookAt(normal);\n    }\n    this.origin.copy(point);\n    this._helper.position.copy(point);\n    this._helper.updateMatrix();\n  }\n  toggleControls(state) {\n    if (state) {\n      if (this._controlsActive)\n        return;\n      this._controls.addEventListener(\"change\", this.update);\n      this._controls.addEventListener(\"dragging-changed\", this.changeDrag);\n    } else {\n      this._controls.removeEventListener(\"change\", this.update);\n      this._controls.removeEventListener(\"dragging-changed\", this.changeDrag);\n    }\n    this._controlsActive = state;\n  }\n  newTransformControls() {\n    if (!this.world.renderer) {\n      throw new Error(\"No renderer found for clipping plane!\");\n    }\n    const camera = this.world.camera.three;\n    const container = this.world.renderer.three.domElement;\n    const controls = new TransformControls(camera, container);\n    this.initializeControls(controls);\n    this.world.scene.three.add(controls.getHelper());\n    return controls;\n  }\n  initializeControls(controls) {\n    controls.attach(this._helper);\n    controls.showX = false;\n    controls.showY = false;\n    controls.setSpace(\"local\");\n    this.createArrowBoundingBox();\n    controls.getHelper().children[0].children[0].add(this._arrowBoundBox);\n  }\n  createArrowBoundingBox() {\n    this._arrowBoundBox.geometry = new THREE.CylinderGeometry(0.18, 0.18, 1.2);\n    this._arrowBoundBox.material = this._hiddenMaterial;\n    this._arrowBoundBox.rotateX(Math.PI / 2);\n    this._arrowBoundBox.updateMatrix();\n    this._arrowBoundBox.geometry.applyMatrix4(this._arrowBoundBox.matrix);\n  }\n  notifyDraggingChanged(event) {\n    if (event.value) {\n      this.onDraggingStarted.trigger();\n    } else {\n      this.onDraggingEnded.trigger();\n    }\n  }\n  preventCameraMovement() {\n    this.world.camera.enabled = this._visible;\n  }\n  newHelper() {\n    const helper = new THREE.Object3D();\n    helper.lookAt(this.normal);\n    helper.position.copy(this.origin);\n    this._planeMesh.position.z += 0.01;\n    helper.add(this._planeMesh);\n    this.world.scene.three.add(helper);\n    return helper;\n  }\n  static newPlaneMesh(size, material) {\n    const planeGeom = new THREE.PlaneGeometry(1);\n    const mesh = new THREE.Mesh(planeGeom, material);\n    mesh.scale.set(size, size, size);\n    return mesh;\n  }\n}\nclass ClipperConfigManager extends Configurator {\n  constructor() {\n    super(...arguments);\n    __publicField(this, \"_config\", {\n      enabled: {\n        value: true,\n        type: \"Boolean\"\n      },\n      visible: {\n        value: true,\n        type: \"Boolean\"\n      },\n      color: {\n        value: new THREE.Color(),\n        type: \"Color\"\n      },\n      opacity: {\n        type: \"Number\",\n        interpolable: true,\n        value: 1,\n        min: 0,\n        max: 1\n      },\n      size: {\n        type: \"Number\",\n        interpolable: true,\n        value: 2,\n        min: 0,\n        max: 100\n      }\n    });\n  }\n  get enabled() {\n    return this._config.enabled.value;\n  }\n  set enabled(value) {\n    this._config.enabled.value = value;\n    this._component.enabled = value;\n  }\n  get visible() {\n    return this._config.visible.value;\n  }\n  set visible(value) {\n    this._config.visible.value = value;\n    this._component.visible = value;\n  }\n  get color() {\n    return this._config.color.value;\n  }\n  set color(value) {\n    this._config.color.value = value;\n    this._component.material.color.copy(value);\n  }\n  get opacity() {\n    return this._config.opacity.value;\n  }\n  set opacity(value) {\n    this._config.opacity.value = value;\n    this._component.material.opacity = value;\n  }\n  get size() {\n    return this._config.size.value;\n  }\n  set size(value) {\n    this._config.size.value = value;\n    this._component.size = value;\n  }\n}\nconst _Clipper = class _Clipper extends Component {\n  constructor(components) {\n    super(components);\n    /** {@link Configurable.onSetup} */\n    __publicField(this, \"onSetup\", new Event());\n    /** Event that fires when the user starts dragging a clipping plane. */\n    __publicField(this, \"onBeforeDrag\", new Event());\n    /** Event that fires when the user stops dragging a clipping plane. */\n    __publicField(this, \"onAfterDrag\", new Event());\n    /**\n     * Event that fires when the user starts creating a clipping plane.\n     */\n    __publicField(this, \"onBeforeCreate\", new Event());\n    /**\n     * Event that fires when the user cancels the creation of a clipping plane.\n     */\n    __publicField(this, \"onBeforeCancel\", new Event());\n    /**\n     * Event that fires after the user cancels the creation of a clipping plane.\n     */\n    __publicField(this, \"onAfterCancel\", new Event());\n    /**\n     * Event that fires when the user starts deleting a clipping plane.\n     */\n    __publicField(this, \"onBeforeDelete\", new Event());\n    /**\n     * Event that fires after a clipping plane has been created.\n     * @param plane - The newly created clipping plane.\n     */\n    __publicField(this, \"onAfterCreate\", new Event());\n    /**\n     * Event that fires after a clipping plane has been deleted.\n     * @param plane - The deleted clipping plane.\n     */\n    __publicField(this, \"onAfterDelete\", new Event());\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    /** {@link Configurable.isSetup} */\n    __publicField(this, \"isSetup\", false);\n    /**\n     * Whether to force the clipping plane to be orthogonal in the Y direction\n     * (up). This is desirable when clipping a building horizontally and a\n     * clipping plane is created in its roof, which might have a slight\n     * slope for draining purposes.\n     */\n    __publicField(this, \"orthogonalY\", false);\n    /**\n     * The tolerance that determines whether an almost-horizontal clipping plane\n     * will be forced to be orthogonal to the Y direction. {@link orthogonalY}\n     * has to be `true` for this to apply.\n     */\n    __publicField(this, \"toleranceOrthogonalY\", 0.7);\n    /**\n     * Whether clipping planes should automatically scale based on\n     * camera distance. When true, the plane surface stays proportional\n     * to the arrow gizmo as you zoom in/out. Default is true.\n     */\n    __publicField(this, \"autoScalePlanes\", true);\n    /**\n     * The type of clipping plane to be created.\n     * Default is {@link SimplePlane}.\n     */\n    __publicField(this, \"Type\", SimplePlane);\n    /**\n     * A list of all the clipping planes created by this component.\n     */\n    __publicField(this, \"list\", new FRAGS.DataMap());\n    /** {@link Configurable.config} */\n    __publicField(this, \"config\", new ClipperConfigManager(\n      this,\n      this.components,\n      \"Clipper\",\n      _Clipper.uuid\n    ));\n    __publicField(this, \"_defaultConfig\", {\n      color: new THREE.Color(12255487),\n      opacity: 0.2,\n      size: 2\n    });\n    /** The material used in all the clipping planes. */\n    __publicField(this, \"_material\", new THREE.MeshBasicMaterial({\n      color: 12255487,\n      side: THREE.DoubleSide,\n      transparent: true,\n      opacity: 0.2\n    }));\n    __publicField(this, \"_size\", 5);\n    __publicField(this, \"_enabled\", false);\n    __publicField(this, \"_visible\", true);\n    __publicField(this, \"onStateChanged\", new Event());\n    this.components.add(_Clipper.uuid, this);\n    this.setEvents();\n  }\n  /** {@link Component.enabled} */\n  get enabled() {\n    return this._enabled;\n  }\n  /** {@link Component.enabled} */\n  set enabled(state) {\n    this._enabled = state;\n    this.onStateChanged.trigger([\"enabled\"]);\n  }\n  /** {@link Hideable.visible } */\n  get visible() {\n    return this._visible;\n  }\n  /** {@link Hideable.visible } */\n  set visible(state) {\n    this._visible = state;\n    for (const [_, plane] of this.list) {\n      plane.visible = state;\n    }\n    this.onStateChanged.trigger([\"visibility\"]);\n  }\n  /** The material of the clipping plane representation. */\n  get material() {\n    return this._material;\n  }\n  /** The material of the clipping plane representation. */\n  set material(material) {\n    this._material = material;\n    for (const [_, plane] of this.list) {\n      plane.planeMaterial = material;\n    }\n    this.onStateChanged.trigger([\"material\"]);\n  }\n  /** The size of the geometric representation of the clippings planes. */\n  get size() {\n    return this._size;\n  }\n  /** The size of the geometric representation of the clippings planes. */\n  set size(size) {\n    this._size = size;\n    for (const [_, plane] of this.list) {\n      plane.size = size;\n    }\n    this.onStateChanged.trigger([\"size\"]);\n  }\n  setEvents() {\n    this.list.onBeforeDelete.add(({ value: plane }) => {\n      if (!plane.world.renderer) {\n        throw new Error(\"Renderer not found for this plane's world!\");\n      }\n      plane.world.renderer.setPlane(false, plane.three);\n      plane.dispose();\n      this.updateMaterialsAndPlanes();\n      this.onAfterDelete.trigger(plane);\n    });\n  }\n  /** {@link Disposable.dispose} */\n  dispose() {\n    this._enabled = false;\n    const configs = this.components.get(ConfigManager);\n    configs.list.delete(this.config.uuid);\n    this.list.clear();\n    this._material.dispose();\n    this.onBeforeCreate.reset();\n    this.onBeforeCancel.reset();\n    this.onBeforeDelete.reset();\n    this.onBeforeDrag.reset();\n    this.onAfterCreate.reset();\n    this.onAfterCancel.reset();\n    this.onAfterDelete.reset();\n    this.onAfterDrag.reset();\n    this.onDisposed.trigger(_Clipper.uuid);\n    this.onDisposed.reset();\n  }\n  /** {@link Createable.create} */\n  async create(world) {\n    const casters = this.components.get(Raycasters);\n    const caster = casters.get(world);\n    const intersects = await caster.castRay();\n    if (intersects) {\n      return this.createPlaneFromIntersection(world, intersects);\n    }\n    return null;\n  }\n  /**\n   * Creates a plane in a certain place and with a certain orientation,\n   * without the need of the mouse.\n   *\n   * @param world - the world where this plane should be created.\n   * @param normal - the orientation of the clipping plane.\n   * @param point - the position of the clipping plane.\n   * navigation.\n   */\n  createFromNormalAndCoplanarPoint(world, normal, point) {\n    const id = this.newPlane(world, point, normal);\n    this.updateMaterialsAndPlanes();\n    return id;\n  }\n  /**\n   * {@link Createable.delete}\n   *\n   * @param world - the world where the plane to delete is.\n   * @param planeId - the plane to delete. If undefined, the first plane\n   * found under the cursor will be deleted.\n   */\n  async delete(world, planeId) {\n    if (!planeId) {\n      const plane = await this.pickPlane(world);\n      if (!plane)\n        return;\n      planeId = this.list.getKey(plane);\n    }\n    if (!planeId) {\n      return;\n    }\n    this.list.delete(planeId);\n  }\n  /**\n   * Deletes all the existing clipping planes.\n   *\n   * @param types - the types of planes to be deleted. If not provided, all planes will be deleted.\n   */\n  deleteAll(types) {\n    for (const [id, plane] of this.list) {\n      if (!types || types.has(plane.type)) {\n        this.list.delete(id);\n      }\n    }\n  }\n  /** {@link Configurable.setup} */\n  setup(config) {\n    const fullConfig = { ...this._defaultConfig, ...config };\n    this.config.color = fullConfig.color;\n    this.config.opacity = fullConfig.opacity;\n    this.config.size = fullConfig.size;\n    this.isSetup = true;\n    this.onSetup.trigger();\n  }\n  // private deletePlane(plane: SimplePlane) {\n  //   const index = this.list.indexOf(plane);\n  //   if (index !== -1) {\n  //     this.list.splice(index, 1);\n  //     if (!plane.world.renderer) {\n  //       throw new Error(\"Renderer not found for this plane's world!\");\n  //     }\n  //     plane.world.renderer.setPlane(false, plane.three);\n  //     plane.dispose();\n  //     this.updateMaterialsAndPlanes();\n  //     this.onAfterDelete.trigger(plane);\n  //   }\n  // }\n  pickPlane(world) {\n    const casters = this.components.get(Raycasters);\n    const caster = casters.get(world);\n    const items = this.getAllPlaneMeshes();\n    const intersects = caster.castRayToObjects(items);\n    if (intersects) {\n      const found = intersects.object;\n      return [...this.list.values()].find((p) => p.meshes.includes(found));\n    }\n    return void 0;\n  }\n  getAllPlaneMeshes() {\n    const meshes = [];\n    for (const [_, plane] of this.list) {\n      meshes.push(...plane.meshes);\n    }\n    return meshes;\n  }\n  createPlaneFromIntersection(world, intersect) {\n    var _a;\n    if (!world.renderer) {\n      throw new Error(\"The given world must have a renderer!\");\n    }\n    const constant = intersect.point.distanceTo(new THREE.Vector3(0, 0, 0));\n    const normal = intersect.normal || ((_a = intersect.face) == null ? void 0 : _a.normal);\n    if (!constant || !normal) {\n      return null;\n    }\n    const worldNormal = this.getWorldNormal(intersect, normal);\n    const id = this.newPlane(world, intersect.point, worldNormal.negate());\n    const plane = this.list.get(id);\n    plane.visible = this._visible;\n    plane.size = this._size;\n    world.renderer.setPlane(true, plane.three);\n    this.updateMaterialsAndPlanes();\n    return plane;\n  }\n  getWorldNormal(intersect, normal) {\n    const object = intersect.object;\n    let transform = intersect.object.matrixWorld.clone();\n    const isInstance = object instanceof THREE.InstancedMesh;\n    if (isInstance && intersect.instanceId !== void 0) {\n      const temp5 = new THREE.Matrix4();\n      object.getMatrixAt(intersect.instanceId, temp5);\n      transform = temp5.multiply(transform);\n    }\n    const normalMatrix = new THREE.Matrix3().getNormalMatrix(transform);\n    const worldNormal = normal.clone().applyMatrix3(normalMatrix).normalize();\n    this.normalizePlaneDirectionY(worldNormal);\n    return worldNormal;\n  }\n  normalizePlaneDirectionY(normal) {\n    if (this.orthogonalY) {\n      if (normal.y > this.toleranceOrthogonalY) {\n        normal.x = 0;\n        normal.y = 1;\n        normal.z = 0;\n      }\n      if (normal.y < -this.toleranceOrthogonalY) {\n        normal.x = 0;\n        normal.y = -1;\n        normal.z = 0;\n      }\n    }\n  }\n  newPlane(world, point, normal) {\n    const plane = new this.Type(\n      this.components,\n      world,\n      point,\n      normal,\n      this._material\n    );\n    plane.autoScale = this.autoScalePlanes;\n    plane.onDraggingStarted.add(() => this.onBeforeDrag.trigger(plane));\n    plane.onDraggingEnded.add(() => this.onAfterDrag.trigger(plane));\n    const id = UUID.create();\n    this.list.set(id, plane);\n    this.onAfterCreate.trigger(plane);\n    return id;\n  }\n  updateMaterialsAndPlanes() {\n    const worlds = this.components.get(Worlds);\n    for (const [_id, world] of worlds.list) {\n      if (!world.renderer) {\n        continue;\n      }\n      world.renderer.updateClippingPlanes();\n      const { clippingPlanes } = world.renderer;\n      for (const model of world.meshes) {\n        if (!model.material) {\n          continue;\n        }\n        if (Array.isArray(model.material)) {\n          for (const mat of model.material) {\n            mat.clippingPlanes = clippingPlanes;\n          }\n        } else {\n          model.material.clippingPlanes = clippingPlanes;\n        }\n      }\n    }\n  }\n};\n/**\n * A unique identifier for the component.\n * This UUID is used to register the component within the Components system.\n */\n__publicField(_Clipper, \"uuid\", \"66290bc5-18c4-4cd1-9379-2e17a0617611\");\nlet Clipper = _Clipper;\nclass Viewpoint {\n  constructor(components, data) {\n    __publicField(this, \"title\");\n    __publicField(this, \"guid\", UUID.create());\n    /**\n     * ClippingPlanes can be used to define a subsection of a building model that is related to the topic.\n     * Each clipping plane is defined by Location and Direction.\n     * The Direction vector points in the invisible direction meaning the half-space that is clipped.\n     */\n    __publicField(this, \"clippingPlanes\", new FRAGS.DataSet());\n    __publicField(this, \"camera\", {\n      aspect_ratio: 1,\n      field_of_view: 60,\n      camera_direction: { x: 0, y: 0, z: 0 },\n      camera_view_point: { x: 0, y: 0, z: 0 },\n      camera_up_vector: { x: 0, y: 1, z: 0 }\n    });\n    __publicField(this, \"customData\", {});\n    /**\n     * A list of components GUIDs to hide when defaultVisibility = true or to show when defaultVisibility = false\n     */\n    __publicField(this, \"exceptionComponents\", new FRAGS.DataSet());\n    /**\n     * A list of components GUIDs that should be selected (highlighted) when displaying a viewpoint.\n     */\n    __publicField(this, \"selectionComponents\", new FRAGS.DataSet());\n    // this is not directly a ModelIdMap because a viewpoint should be able to reference elements from models that are not loaded, usually from information comming externally\n    /**\n     * A map of colors and components GUIDs that should be colorized when displaying a viewpoint.\n     * For this to work, call viewpoint.colorize()\n     */\n    __publicField(this, \"componentColors\", new FRAGS.DataMap());\n    /**\n     * Boolean flags to allow fine control over the visibility of spaces.\n     * A typical use of these flags is when DefaultVisibility=true but spaces should remain hidden.\n     * @default false\n     */\n    __publicField(this, \"spacesVisible\", false);\n    /**\n     * Boolean flags to allow fine control over the visibility of space boundaries.\n     * A typical use of these flags is when DefaultVisibility=true but space boundaries should remain hidden.\n     * @default false\n     */\n    __publicField(this, \"spaceBoundariesVisible\", false);\n    /**\n     * Boolean flags to allow fine control over the visibility of openings.\n     * A typical use of these flags is when DefaultVisibility=true but openings should remain hidden.\n     * @default false\n     */\n    __publicField(this, \"openingsVisible\", false);\n    /**\n     * When true, all components should be visible unless listed in the exceptions\n     * When false all components should be invisible unless listed in the exceptions\n     */\n    __publicField(this, \"defaultVisibility\", true);\n    /**\n     * The snapshotID that will be used for this viewpoint when exported.\n     */\n    __publicField(this, \"snapshot\", this.guid);\n    __publicField(this, \"_components\");\n    __publicField(this, \"_world\", null);\n    __publicField(this, \"notifyUpdate\", () => {\n      const manager = this._components.get(Viewpoints);\n      manager.list.set(this.guid, this);\n    });\n    this._components = components;\n    if (data) {\n      this.guid = data.guid ?? this.guid;\n      this.set(data);\n    }\n    this.setEvents();\n  }\n  async getSelectionMap() {\n    const fragments = this._components.get(FragmentsManager);\n    const modelIdMap = await fragments.guidsToModelIdMap([\n      ...this.selectionComponents\n    ]);\n    return modelIdMap;\n  }\n  async getExceptionMap() {\n    const fragments = this._components.get(FragmentsManager);\n    const modelIdMap = await fragments.guidsToModelIdMap([\n      ...this.exceptionComponents\n    ]);\n    return modelIdMap;\n  }\n  /**\n   * Retrieves the projection type of the viewpoint's camera.\n   *\n   * @returns A string representing the projection type of the viewpoint's camera.\n   *          It can be either 'Perspective' or 'Orthographic'.\n   */\n  get projection() {\n    if (\"field_of_view\" in this.camera)\n      return \"Perspective\";\n    return \"Orthographic\";\n  }\n  /**\n   * Retrieves the position vector of the viewpoint's camera.\n   *\n   * @returns A THREE.Vector3 representing the position of the viewpoint's camera.\n   */\n  get position() {\n    const fragments = this._components.get(FragmentsManager);\n    const { camera_view_point } = this.camera;\n    const { x, y, z } = camera_view_point;\n    const vector = new THREE.Vector3(x, y, z);\n    fragments.applyBaseCoordinateSystem(vector, new THREE.Matrix4());\n    return vector;\n  }\n  /**\n   * Sets the position of the viewpoint's camera.\n   * @param value - The new position for the viewpoint's camera.\n   */\n  set position(value) {\n    const position = value.clone();\n    const fragments = this._components.get(FragmentsManager);\n    value.clone().applyMatrix4(fragments.baseCoordinationMatrix.clone().invert());\n    this.camera.camera_view_point = {\n      x: position.x,\n      y: position.y,\n      z: position.z\n    };\n  }\n  /**\n   * Retrieves the direction vector of the viewpoint's camera.\n   * @returns A THREE.Vector3 representing the direction of the viewpoint's camera.\n   */\n  get direction() {\n    const { camera_direction } = this.camera;\n    const { x, y, z } = camera_direction;\n    const vector = new THREE.Vector3(x, y, z);\n    return vector;\n  }\n  /**\n   * Represents the world in which the viewpoint will take effect.\n   */\n  set world(value) {\n    this._world = value;\n  }\n  get world() {\n    return this._world;\n  }\n  get _managerVersion() {\n    const manager = this._components.get(BCFTopics);\n    return manager.config.version;\n  }\n  /**\n   * Retrieves the list of BCF topics associated with the current viewpoint.\n   *\n   * @remarks\n   * This function retrieves the BCFTopics manager from the components,\n   * then filters the list of topics to find those associated with the current viewpoint.\n   *\n   * @returns An array of BCF topics associated with the current viewpoint.\n   */\n  get topics() {\n    const manager = this._components.get(BCFTopics);\n    const topicsList = [...manager.list.values()];\n    const topics = topicsList.filter(\n      (topic) => topic.viewpoints.has(this.guid)\n    );\n    return topics;\n  }\n  // TODO: Remove the notifyUpdate when needed\n  setEvents() {\n    this.selectionComponents.onUpdated.add(this.notifyUpdate);\n    this.exceptionComponents.onUpdated.add(this.notifyUpdate);\n    this.clippingPlanes.onUpdated.add(this.notifyUpdate);\n    this.componentColors.onItemSet.add(this.notifyUpdate);\n    this.componentColors.onItemDeleted.add(this.notifyUpdate);\n    this.componentColors.onItemUpdated.add(this.notifyUpdate);\n    this.componentColors.onCleared.add(this.notifyUpdate);\n  }\n  /**\n   * Fully replace the properties of the viewpoint with the provided data.\n   * The properties not included will remain unchanged.\n   *\n   * @remarks The guid will be ommited as it shouldn't change after it has been initially set.\n   *\n   * @param data - An object containing the properties to be set.\n   */\n  set(data) {\n    this.title = data.title;\n    const {\n      components,\n      perspective_camera,\n      orthogonal_camera,\n      clipping_planes\n    } = data;\n    if (components) {\n      const { selection, visibility, coloring } = components;\n      if (selection) {\n        this.selectionComponents.clear();\n        for (const { ifc_guid } of selection) {\n          if (!ifc_guid)\n            continue;\n          this.selectionComponents.add(ifc_guid);\n        }\n      }\n      if (visibility) {\n        const { default_visibility, exceptions, view_setup_hints } = visibility;\n        if (default_visibility !== void 0) {\n          this.defaultVisibility = default_visibility;\n        }\n        if (exceptions) {\n          this.exceptionComponents.clear();\n          for (const { ifc_guid } of exceptions) {\n            if (!ifc_guid)\n              continue;\n            this.exceptionComponents.add(ifc_guid);\n          }\n        }\n        if (view_setup_hints) {\n          const { spaces_visible, space_boundaries_visible, openings_visible } = view_setup_hints;\n          if (spaces_visible !== void 0) {\n            this.spacesVisible = spaces_visible;\n          }\n          if (space_boundaries_visible !== void 0) {\n            this.spaceBoundariesVisible = space_boundaries_visible;\n          }\n          if (openings_visible !== void 0) {\n            this.openingsVisible = openings_visible;\n          }\n        }\n      }\n      if (coloring) {\n        this.componentColors.clear();\n        for (const description of coloring) {\n          const { color, components: components2 } = description;\n          const guids = components2.map((component) => component.ifc_guid).filter((guid) => guid !== null);\n          this.componentColors.set(color, guids);\n        }\n      }\n    }\n    if (perspective_camera || orthogonal_camera) {\n      this.camera = perspective_camera ?? orthogonal_camera;\n    }\n    if (clipping_planes && this.world) {\n      const clipper = this._components.get(Clipper);\n      for (const data2 of clipping_planes) {\n        const { location, direction } = data2;\n        const locationVector = new THREE.Vector3(\n          location.x,\n          location.z,\n          -location.y\n        );\n        const directionVector = new THREE.Vector3(\n          direction.x,\n          direction.z,\n          -direction.y\n        );\n        const id = clipper.createFromNormalAndCoplanarPoint(\n          this.world,\n          directionVector,\n          locationVector\n        );\n        this.clippingPlanes.add(id);\n        clipper.list.get(id).enabled = false;\n        clipper.list.get(id).visible = false;\n      }\n    }\n    this.notifyUpdate();\n  }\n  /**\n   * Sets the viewpoint of the camera in the world.\n   *\n   * @remarks\n   * This function calculates the target position based on the viewpoint information.\n   * It sets the visibility of the viewpoint components and then applies the viewpoint using the camera's controls.\n   *\n   * @param transition - Indicates whether the camera movement should have a transition effect.\n   *                      Default value is `true`.\n   *\n   * @throws An error if the world's camera does not have camera controls.\n   *\n   * @returns A Promise that resolves when the camera has been set.\n   */\n  async go(_config) {\n    if (!this.world)\n      return;\n    const { camera } = this.world;\n    if (!(camera instanceof OrthoPerspectiveCamera)) {\n      throw new Error(\n        \"Viewpoint: the world's camera component must be of type OrthoPerspectiveCamera to switch between perspective and orthographic projections.\"\n      );\n    }\n    const { transition, applyClippings, applyVisibility, clippingsVisibility } = {\n      transition: true,\n      applyClippings: true,\n      applyVisibility: true,\n      clippingsVisibility: true,\n      ..._config\n    };\n    camera.projection.set(this.projection);\n    const basePosition = new THREE.Vector3(\n      this.camera.camera_view_point.x,\n      this.camera.camera_view_point.y,\n      this.camera.camera_view_point.z\n    );\n    const baseTarget = new THREE.Vector3(\n      this.camera.camera_direction.x,\n      this.camera.camera_direction.y,\n      this.camera.camera_direction.z\n    );\n    if (basePosition.equals(new THREE.Vector3()) && baseTarget.equals(new THREE.Vector3())) {\n      return;\n    }\n    const position = this.position;\n    const direction = this.direction;\n    const factor = 80;\n    const target = {\n      x: position.x + direction.x * factor,\n      y: position.y + direction.y * factor,\n      z: position.z + direction.z * factor\n    };\n    const promises = [];\n    if (applyClippings)\n      this.setClippingState(true);\n    if (applyVisibility)\n      promises.push(this.applyVisibility());\n    this.setClippingVisibility(clippingsVisibility);\n    promises.push(\n      camera.controls.setLookAt(\n        position.x,\n        position.y,\n        position.z,\n        target.x,\n        target.y,\n        target.z,\n        transition\n      )\n    );\n    await Promise.all(promises);\n  }\n  /**\n   * Updates the camera settings of the viewpoint based on the current world's camera and renderer.\n   * @returns A boolean indicating if the camera data was updated or not.\n   */\n  async updateCamera(takeSnapshot = true) {\n    return new Promise((resolve) => {\n      if (!this.world) {\n        resolve(false);\n        return;\n      }\n      const { camera, renderer } = this.world;\n      if (!renderer) {\n        throw new Error(\"Viewpoint: the world needs to have a renderer!\");\n      }\n      if (!camera.hasCameraControls()) {\n        throw new Error(\"Viewpoint: world's camera need camera controls!\");\n      }\n      const position = new THREE.Vector3();\n      camera.controls.getPosition(position);\n      const threeCamera = camera.three;\n      const direction = new THREE.Vector3(0, 0, -1).applyEuler(\n        threeCamera.rotation\n      );\n      const { width, height } = renderer.getSize();\n      let aspect_ratio = width / height;\n      if (Number.isNaN(aspect_ratio))\n        aspect_ratio = 1;\n      const fragments = this._components.get(FragmentsManager);\n      position.applyMatrix4(fragments.baseCoordinationMatrix.clone().invert());\n      const partialCamera = {\n        aspect_ratio,\n        camera_view_point: { x: position.x, y: position.y, z: position.z },\n        camera_direction: { x: direction.x, y: direction.y, z: direction.z },\n        camera_up_vector: { x: 0, y: 1, z: 0 }\n      };\n      if (threeCamera instanceof THREE.PerspectiveCamera) {\n        this.camera = {\n          ...partialCamera,\n          field_of_view: threeCamera.fov\n        };\n      } else if (threeCamera instanceof THREE.OrthographicCamera) {\n        this.camera = {\n          ...partialCamera,\n          view_to_world_scale: threeCamera.top - threeCamera.bottom\n        };\n      }\n      if (takeSnapshot) {\n        const manager = this._components.get(Viewpoints);\n        const canvas = renderer.three.domElement;\n        renderer.three.render(this.world.scene.three, camera.three);\n        canvas.toBlob(async (blob) => {\n          if (blob) {\n            const data = await blob.arrayBuffer();\n            const buffer = new Uint8Array(data);\n            manager.snapshots.set(this.guid, buffer);\n          }\n          this.notifyUpdate();\n          resolve(true);\n        });\n      } else {\n        this.notifyUpdate();\n        resolve(true);\n      }\n    });\n  }\n  /**\n   * Captures a snapshot of the current viewpoint and stores it in the snapshots manager.\n   */\n  takeSnapshot() {\n    return new Promise((resolve) => {\n      if (!this.world) {\n        resolve(false);\n        return;\n      }\n      const { camera, renderer } = this.world;\n      if (!renderer) {\n        throw new Error(\"Viewpoint: the world needs to have a renderer!\");\n      }\n      const manager = this._components.get(Viewpoints);\n      const canvas = renderer.three.domElement;\n      renderer.three.render(this.world.scene.three, camera.three);\n      canvas.toBlob(async (blob) => {\n        if (blob) {\n          const data = await blob.arrayBuffer();\n          const buffer = new Uint8Array(data);\n          manager.snapshots.set(this.guid, buffer);\n        }\n        this.notifyUpdate();\n        resolve(true);\n      });\n    });\n  }\n  /**\n   * Updates the collection of clipping planes by clearing the current set and adding enabled planes\n   * from the associated `Clipper` component.\n   */\n  updateClippingPlanes() {\n    this.clippingPlanes.clear();\n    const clipper = this._components.get(Clipper);\n    for (const [id, plane] of clipper.list) {\n      if (!plane.enabled)\n        continue;\n      this.clippingPlanes.add(id);\n    }\n  }\n  /**\n   * Applies visibility settings to components based on default visibility, exceptions, and selections.\n   *\n   * This method adjusts the visibility of components using the `Hider` instance. It ensures that:\n   * - The default visibility is applied to all components.\n   * - Exceptions are handled to override the default visibility.\n   * - Selected components are always visible.\n   */\n  async applyVisibility() {\n    const hider = this._components.get(Hider);\n    hider.set(this.defaultVisibility);\n    const exception = await this.getExceptionMap();\n    hider.set(!this.defaultVisibility, exception);\n    const selection = await this.getSelectionMap();\n    hider.set(true, selection);\n  }\n  // TODO: Analyze how this works along with the Highlighter\n  /**\n   * Asynchronously sets the colorization state for the viewpoint's components.\n   * When the state is true, it applies the defined component colors to the corresponding fragments.\n   * When the state is false, it resets the highlight for the corresponding fragments.\n   *\n   * @param state - A boolean indicating whether to apply or reset the colorization.\n   *                If true, the components will be colorized. If false, the colorization will be reset.\n   * @returns A Promise that resolves when all colorization or reset operations are complete.\n   * @remarks Be careful when using this method along with the Highlighter as it can cause unwanted results\n   */\n  async setColorizationState(state) {\n    const fragments = this._components.get(FragmentsManager);\n    const promises = [];\n    if (state) {\n      for (const [color, guids] of this.componentColors) {\n        const hexColorString = `#${color}`;\n        const modelIdMap = await fragments.guidsToModelIdMap(guids);\n        for (const [modelId, localIds] of Object.entries(modelIdMap)) {\n          const model = fragments.list.get(modelId);\n          if (!model)\n            continue;\n          promises.push(\n            model.highlight([...localIds], {\n              customId: hexColorString,\n              color: new THREE.Color(hexColorString),\n              renderedFaces: FRAGS.RenderedFaces.ONE,\n              opacity: 1,\n              transparent: false\n            })\n          );\n        }\n      }\n    } else {\n      for (const [_, guids] of this.componentColors) {\n        const modelIdMap = await fragments.guidsToModelIdMap(guids);\n        for (const [modelId, localIds] of Object.entries(modelIdMap)) {\n          const model = fragments.list.get(modelId);\n          if (!model)\n            continue;\n          promises.push(model.resetHighlight([...localIds]));\n        }\n      }\n    }\n    promises.push(fragments.core.update(true));\n    await Promise.all(promises);\n  }\n  /**\n   * Sets the enabled state of all clipping planes associated with this viewpoint.\n   * @param state A boolean indicating whether the clipping planes should be enabled or disabled.\n   */\n  setClippingState(state) {\n    const clipper = this._components.get(Clipper);\n    for (const [id, plane] of clipper.list) {\n      plane.enabled = state && this.clippingPlanes.has(id);\n    }\n  }\n  /**\n   * Sets the visibility of all clipping planes associated with this viewpoint.\n   *\n   * @param visibility - A boolean indicating whether the clipping planes should be visible (`true`) or hidden (`false`).\n   */\n  setClippingVisibility(visibility) {\n    const clipper = this._components.get(Clipper);\n    for (const id of this.clippingPlanes) {\n      const plane = clipper.list.get(id);\n      if (!plane)\n        continue;\n      plane.visible = visibility;\n    }\n  }\n  async createComponentTags(from) {\n    var _a;\n    const fragments = this._components.get(FragmentsManager);\n    const manager = this._components.get(BCFTopics);\n    let tags = \"\";\n    if (manager.config.includeSelectionTag) {\n      const modelIdMap = from === \"selection\" ? await this.getSelectionMap() : await this.getExceptionMap();\n      for (const modelID in modelIdMap) {\n        const model = fragments.list.get(modelID);\n        if (!model)\n          continue;\n        const localIds = modelIdMap[modelID];\n        for (const localId of localIds) {\n          const item = model.getItem(localId);\n          const globalID = await item.getGuid();\n          if (!globalID)\n            continue;\n          const tag = (_a = await item.getAttributes()) == null ? void 0 : _a.getValue(\"Tag\");\n          let tagAttribute = null;\n          if (tag)\n            tagAttribute = `AuthoringToolId=\"${tag}\"`;\n          tags += `\n<Component IfcGuid=\"${globalID}\" ${tagAttribute ?? \"\"} />`;\n        }\n      }\n    } else {\n      tags = [...this.selectionComponents].map((globalId) => `<Component IfcGuid=\"${globalId}\" />`).join(`\n`);\n    }\n    return tags;\n  }\n  createColorTags() {\n    let colorTags = \"\";\n    for (const [color, components] of this.componentColors.entries()) {\n      const tags = components.map((globalId) => `\n<Component IfcGuid=\"${globalId}\" />`).join(\"\\n\");\n      colorTags += `<Color Color=\"${color}\">\n${tags}\n</Color>`;\n    }\n    if (colorTags.length !== 0) {\n      return `<Coloring>\n${colorTags}\n</Coloring>`;\n    }\n    return `<Coloring />`;\n  }\n  /**\n   * Converts the current viewpoint instance into a JSON representation compliant with the BCFViewpoint format.\n   *\n   * @returns A BCF API JSON complaint object representing the viewpoint, including its GUID, components,\n   * visibility settings, clipping planes, camera configuration, and snapshot data.\n   */\n  toJSON() {\n    const clipper = this._components.get(Clipper);\n    const result = {\n      guid: this.guid,\n      components: {\n        selection: [...this.selectionComponents].map((guid) => {\n          return { ifc_guid: guid, authoring_tool_id: null };\n        }),\n        coloring: [...this.componentColors].map(([color, guids]) => {\n          return {\n            color,\n            components: guids.map((guid) => {\n              return { ifc_guid: guid, authoring_tool_id: null };\n            })\n          };\n        }),\n        visibility: {\n          default_visibility: this.defaultVisibility,\n          exceptions: [...this.exceptionComponents].map((guid) => {\n            return { ifc_guid: guid, authoring_tool_id: null };\n          }),\n          view_setup_hints: {\n            spaces_visible: this.spacesVisible,\n            space_boundaries_visible: this.spaceBoundariesVisible,\n            openings_visible: this.openingsVisible\n          }\n        }\n      },\n      clipping_planes: [...this.clippingPlanes].map((id) => {\n        const plane = clipper.list.get(id);\n        if (!plane)\n          return null;\n        const origin = plane._controls.worldPosition ?? plane.origin;\n        const { normal } = plane;\n        return {\n          location: { x: origin.x, y: -origin.z, z: origin.y },\n          direction: { x: normal.x, y: -normal.z, z: normal.y }\n        };\n      }).filter((plane) => plane !== null)\n    };\n    if (\"field_of_view\" in this.camera) {\n      result.perspective_camera = this.camera;\n    } else {\n      result.orthogonal_camera = this.camera;\n    }\n    const manager = this._components.get(Viewpoints);\n    const snapshot = manager.snapshots.get(this.snapshot);\n    if (snapshot) {\n      const str = snapshot.toString();\n      const base64Data = btoa(str);\n      const extension = manager.getSnapshotExtension(this.snapshot);\n      result.snapshot = { snapshot_type: extension, snapshot_data: base64Data };\n    }\n    return result;\n  }\n  /**\n   * Serializes the viewpoint into a buildingSMART compliant XML string for export.\n   *\n   * @param version - The version of the BCF Manager to use for serialization.\n   *                   If not provided, the current version of the manager will be used.\n   *\n   * @returns A Promise that resolves to an XML string representing the viewpoint.\n   *          The XML string follows the BCF VisualizationInfo schema.\n   *\n   * @throws An error if the world's camera does not have camera controls.\n   * @throws An error if the world's renderer is not available.\n   */\n  async serialize(version = this._managerVersion) {\n    const fragments = this._components.get(FragmentsManager);\n    const position = this.position;\n    position.applyMatrix4(fragments.baseCoordinationMatrix.clone().invert());\n    const direction = this.direction;\n    direction.normalize();\n    const rotationMatrix = new THREE.Matrix4().makeRotationX(Math.PI / 2);\n    const upVector = direction.clone().applyMatrix4(rotationMatrix);\n    upVector.normalize();\n    const cameraViewpointXML = `<CameraViewPoint>\n      <X>${position.x}</X>\n      <Y>${-position.z}</Y>\n      <Z>${position.y}</Z>\n    </CameraViewPoint>`;\n    const cameraDirectionXML = `<CameraDirection>\n      <X>${direction.x}</X>\n      <Y>${-direction.z}</Y>\n      <Z>${direction.y}</Z>\n    </CameraDirection>`;\n    const cameraUpVectorXML = `<CameraUpVector>\n      <X>${upVector.x}</X>\n      <Y>${-upVector.z}</Y>\n      <Z>${upVector.y}</Z>\n    </CameraUpVector>`;\n    const cameraRatioXML = `<AspectRatio>${this.camera.aspect_ratio}</AspectRatio>`;\n    let cameraXML = \"\";\n    if (\"view_to_world_scale\" in this.camera) {\n      cameraXML = `<OrthogonalCamera>\n        ${cameraViewpointXML}\n        ${cameraDirectionXML}\n        ${cameraUpVectorXML}\n        ${cameraRatioXML}\n        <ViewToWorldScale>${this.camera.view_to_world_scale}</ViewToWorldScale>\n      </OrthogonalCamera>`;\n    } else if (\"field_of_view\" in this.camera) {\n      cameraXML = `<PerspectiveCamera>\n        ${cameraViewpointXML}\n        ${cameraDirectionXML}\n        ${cameraUpVectorXML}\n        ${cameraRatioXML}\n        <FieldOfView>${this.camera.field_of_view}</FieldOfView>\n      </PerspectiveCamera>`;\n    }\n    const viewSetupHints = `<ViewSetupHints SpacesVisible=\"${this.spacesVisible ?? false}\" SpaceBoundariesVisible=\"${this.spaceBoundariesVisible ?? false}\" OpeningsVisible=\"${this.openingsVisible ?? false}\" />`;\n    const selectionTags = (await this.createComponentTags(\"selection\")).trim();\n    const exceptionTags = (await this.createComponentTags(\"exception\")).trim();\n    const colorTags = this.createColorTags();\n    return `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n    <VisualizationInfo Guid=\"${this.guid}\">\n      <Components>\n        ${version === \"2.1\" ? viewSetupHints : \"\"}\n        ${selectionTags.length !== 0 ? `<Selection>${selectionTags}</Selection>` : \"\"}\n        <Visibility DefaultVisibility=\"${this.defaultVisibility}\">\n          ${version === \"3\" ? viewSetupHints : \"\"}\n          ${exceptionTags.length !== 0 ? `<Exceptions>${exceptionTags}</Exceptions>` : \"\"}\n        </Visibility>\n        ${colorTags}\n      </Components>\n      ${cameraXML}\n    </VisualizationInfo>`;\n  }\n}\nclass ViewpointsConfigManager extends Configurator {\n  constructor() {\n    super(...arguments);\n    __publicField(this, \"_config\", {\n      overwriteColors: {\n        value: false,\n        type: \"Boolean\"\n      }\n    });\n  }\n  get overwriteColors() {\n    return this._config.overwriteColors.value;\n  }\n  set overwriteColors(value) {\n    this._config.overwriteColors.value = value;\n  }\n}\nconst _Viewpoints = class _Viewpoints extends Component {\n  constructor(components) {\n    super(components);\n    __publicField(this, \"enabled\", true);\n    /**\n     * Represents the default world where all viewpoints will be created.\n     * A viewpoint can specify a different world if necessary.\n     */\n    __publicField(this, \"world\", null);\n    /**\n     * A DataMap that stores Viewpoint instances, indexed by their unique identifiers (guid).\n     * This map is used to manage and retrieve Viewpoint instances within the Viewpoints component.\n     */\n    __publicField(this, \"list\", new DataMap$1());\n    /**\n     * A collection of snapshots represented as a mapping between string keys and their corresponding binary data.\n     */\n    __publicField(this, \"snapshots\", new DataMap$1());\n    __publicField(this, \"isSetup\", false);\n    __publicField(this, \"onSetup\", new Event());\n    __publicField(this, \"config\", new ViewpointsConfigManager(\n      this,\n      this.components,\n      \"Viewpoints\",\n      _Viewpoints.uuid\n    ));\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    components.add(_Viewpoints.uuid, this);\n  }\n  /**\n   * Creates a new Viewpoint instance and adds it to the list.\n   *\n   * @param data - Optional partial data for the Viewpoint. If not provided, default data will be used.\n   *\n   * @returns The newly created Viewpoint instance.\n   */\n  create(data) {\n    const viewpoint = new Viewpoint(this.components, data);\n    viewpoint.world = this.world;\n    if (!data)\n      this.list.set(viewpoint.guid, viewpoint);\n    return viewpoint;\n  }\n  /**\n   * Determines the file extension of a snapshot based on its header bytes.\n   *\n   * @param name - The name of the snapshot from the list to retrieve its extension.\n   * @returns The file extension as a string. Defaults to \"jpeg\" if the snapshot\n   *          does not exist or the header bytes do not match known formats.\n   */\n  getSnapshotExtension(name) {\n    let extension = \"jpeg\";\n    const bytes = this.snapshots.get(name);\n    if (!bytes)\n      return extension;\n    const headerBytes = bytes.subarray(0, 4);\n    let header = \"\";\n    for (let i = 0; i < headerBytes.length; i++) {\n      header += headerBytes[i].toString(16);\n    }\n    if (header.startsWith(\"89504e47\")) {\n      extension = \"png\";\n    }\n    if (header.startsWith(\"ffd8ffe\")) {\n      extension = \"jpeg\";\n    }\n    return extension;\n  }\n  setup() {\n  }\n  /**\n   * Disposes of the Viewpoints component and its associated resources.\n   *\n   * This method is responsible for cleaning up any resources held by the Viewpoints component,\n   * such as disposing of the DataMap of Viewpoint instances and triggering and resetting the\n   * onDisposed event.\n   */\n  dispose() {\n    this.list.dispose();\n    this.onDisposed.trigger();\n    this.onDisposed.reset();\n  }\n};\n__publicField(_Viewpoints, \"uuid\", \"ee867824-a796-408d-8aa0-4e5962a83c66\");\nlet Viewpoints = _Viewpoints;\nclass View {\n  constructor(components, config) {\n    __publicField(this, \"_components\");\n    __publicField(this, \"_cameraOffset\", 10);\n    __publicField(this, \"_planeHelper\");\n    __publicField(this, \"_farPlaneHelper\");\n    __publicField(this, \"_cameraHelper\");\n    __publicField(this, \"onStateChanged\", new Event());\n    __publicField(this, \"onUpdated\", new Event());\n    __publicField(this, \"onDisposed\", new Event());\n    __publicField(this, \"camera\");\n    __publicField(this, \"plane\", new THREE.Plane());\n    __publicField(this, \"farPlane\", new THREE.Plane());\n    __publicField(this, \"id\", UUID.create());\n    // A flag to indicate when this view has been opened by its manager\n    __publicField(this, \"_open\", false);\n    // Defines how far from the plane the second cut will be made\n    __publicField(this, \"_range\", Views.defaultRange);\n    __publicField(this, \"_world\", null);\n    __publicField(this, \"_helpersVisible\", false);\n    __publicField(this, \"_planesEnabled\", false);\n    this._components = components;\n    this.camera = new OrthoPerspectiveCamera(this._components);\n    const { threeOrtho: camera } = this.camera;\n    if (config == null ? void 0 : config.id)\n      this.id = config.id;\n    if ((config == null ? void 0 : config.normal) && (config == null ? void 0 : config.point)) {\n      const { normal, point } = config;\n      this.plane.setFromNormalAndCoplanarPoint(normal, point);\n    }\n    this._cameraHelper = new THREE.CameraHelper(camera);\n    this._planeHelper = new THREE.PlaneHelper(this.plane, 50);\n    this._farPlaneHelper = new THREE.PlaneHelper(this.farPlane, 50);\n    this.farPlaneHelperColor = new THREE.Color(\"blue\");\n    this.update();\n  }\n  get _planeNormalOpposite() {\n    return this.plane.normal.clone().negate();\n  }\n  get _planePosition() {\n    return this.plane.normal.clone().multiplyScalar(-this.plane.constant);\n  }\n  get _cameraPosition() {\n    return this._planePosition.addScaledVector(\n      this._planeNormalOpposite,\n      this._cameraOffset\n    );\n  }\n  set open(value) {\n    this._open = value;\n    this.onStateChanged.trigger([\"open\"]);\n  }\n  get open() {\n    return this._open;\n  }\n  set planeHelperColor(value) {\n    if (!Array.isArray(this._planeHelper.material) && \"color\" in this._planeHelper.material && this._planeHelper.material.color instanceof THREE.Color) {\n      this._planeHelper.material.color = value;\n    }\n  }\n  set farPlaneHelperColor(value) {\n    if (!Array.isArray(this._farPlaneHelper.material) && \"color\" in this._farPlaneHelper.material && this._farPlaneHelper.material.color instanceof THREE.Color) {\n      this._farPlaneHelper.material.color = value;\n    }\n  }\n  set range(value) {\n    this._range = value;\n    this.update();\n  }\n  get range() {\n    return this._range;\n  }\n  set distance(value) {\n    this.plane.constant = value;\n    this.update();\n  }\n  get distance() {\n    return this.plane.constant;\n  }\n  set world(value) {\n    this._world = value;\n    this.camera.currentWorld = value;\n    if (value) {\n      this.camera.projection.set(\"Orthographic\");\n      this.camera.set(\"Plan\");\n      this.camera.controls.dollySpeed = 6;\n      this.camera.controls.restThreshold = 5e-3;\n      this.update();\n    }\n  }\n  get world() {\n    return this._world;\n  }\n  set helpersVisible(value) {\n    if (!value) {\n      this._helpersVisible = value;\n      this._planeHelper.removeFromParent();\n      this._farPlaneHelper.removeFromParent();\n      this._cameraHelper.removeFromParent();\n      return;\n    }\n    if (!this.world)\n      return;\n    this._helpersVisible = value;\n    this.world.scene.three.add(\n      this._planeHelper,\n      this._farPlaneHelper\n      // this._cameraHelper,\n    );\n  }\n  get helpersVisible() {\n    return this._helpersVisible;\n  }\n  // for debugging purposes\n  // Section the model based on the planes\n  // without using the camera\n  set planesEnabled(value) {\n    const { world } = this;\n    if (!world)\n      return;\n    const { renderer } = world;\n    if (!renderer)\n      return;\n    renderer.setPlane(value, this.plane);\n    renderer.setPlane(value, this.farPlane);\n    this._planesEnabled = value;\n  }\n  get planesEnabled() {\n    return this._planesEnabled;\n  }\n  dispose() {\n    this.helpersVisible = false;\n    const disposer = this._components.get(Disposer);\n    disposer.destroy(this._planeHelper);\n    disposer.destroy(this._farPlaneHelper);\n    disposer.destroy(this._cameraHelper);\n    this.camera.dispose();\n    this.onDisposed.trigger();\n  }\n  // update based on changes made to this.plane\n  update() {\n    if (this.world) {\n      const position = this._cameraPosition;\n      const target = this._planePosition;\n      this.camera.controls.setLookAt(\n        position.x,\n        position.y,\n        position.z,\n        target.x,\n        target.y,\n        target.z,\n        false\n      );\n    }\n    this.farPlane.normal.copy(this._planeNormalOpposite);\n    this.farPlane.constant = this.range - this.plane.constant;\n    this.onUpdated.trigger();\n  }\n  flip() {\n    this.plane.normal.negate();\n    this.update();\n  }\n}\nconst _Views = class _Views extends Component {\n  constructor(components) {\n    super(components);\n    /**\n     * A readonly map that associates string keys with `View` instances.\n     * This map is used to store and manage a collection of views.\n     */\n    __publicField(this, \"list\", new DataMap$1());\n    __publicField(this, \"enabled\", true);\n    /**\n     * The default world to be used when creating views.\n     *\n     * - If `world` is set to `null`, views can still specify another world directly in their instance.\n     * - This property allows views to inherit a default world context unless explicitly overridden.\n     */\n    __publicField(this, \"world\", null);\n    __publicField(this, \"_fragmentsUpdateEvent\", () => {\n      const fragments = this.components.get(FragmentsManager);\n      fragments.core.update(true);\n    });\n    components.add(_Views.uuid, this);\n    this.setupEvents();\n  }\n  /**\n   * Determines whether there are any open views in this component's list.\n   */\n  get hasOpenViews() {\n    return [...this.list.values()].some((v) => v.open);\n  }\n  setupEvents() {\n    this.list.onBeforeDelete.add(({ key, value: view }) => {\n      if (view.open)\n        this.close(key);\n      view.dispose();\n    });\n  }\n  /**\n   * Creates a new view with the specified normal vector, point, and optional configuration.\n   *\n   * @param normal - The normal vector defining the orientation of the view.\n   * @param point - The point in space where the view is centered.\n   * @param config - Optional configuration for the view creation.\n   * @returns The newly created `View` instance.\n   * @remarks The created view will be added to the component's list data map.\n   */\n  create(normal, point, config) {\n    const view = new View(this.components, { id: config == null ? void 0 : config.id, normal, point });\n    view.world = (config == null ? void 0 : config.world) ?? this.world;\n    this.list.set(view.id, view);\n    return view;\n  }\n  /**\n   * Creates a new view from the specified plane and optional configuration.\n   *\n   * @param plane - The `THREE.Plane` object representing the plane to create the view from.\n   * @param config - Optional configuration for creating the view.\n   * @returns The newly created `View` instance.\n   * @remarks The created view will be added to the component's list data map.\n   */\n  createFromPlane(plane, config) {\n    const view = new View(this.components, { id: config == null ? void 0 : config.id });\n    view.plane.copy(plane);\n    view.update();\n    view.world = (config == null ? void 0 : config.world) ?? this.world;\n    this.list.set(view.id, view);\n    return view;\n  }\n  /**\n   * Creates views from IFC storeys based on the provided configuration.\n   * This method iterates through the fragments of the model, filters storeys\n   * based on the configuration, and generates views for each storey.\n   *\n   * @param config - Optional configuration for creating views from IFC storeys.\n   * @returns A promise that resolves to an array of `View` objects created from the IFC storeys.\n   *\n   * @remarks Each IfcBuilsingStorey is represented as a plane in 3D space, with its elevation adjusted by the `offset`. The created views will be added to the component's list data map.\n   */\n  async createFromIfcStoreys(config) {\n    const result = [];\n    const fragments = this.components.get(FragmentsManager);\n    const offset = (config == null ? void 0 : config.offset) === void 0 ? 0.25 : config.offset;\n    for (const [modelId, model] of fragments.list) {\n      if (config && config.modelIds && !config.modelIds.some((regex) => regex.test(modelId))) {\n        continue;\n      }\n      const storeys = Object.values(\n        await model.getItemsOfCategories([/BUILDINGSTOREY/])\n      ).flat();\n      if (storeys.length === 0)\n        continue;\n      const storeysData = await model.getItemsData(storeys);\n      const [, coordHeight] = await model.getCoordinates();\n      const normal = new THREE.Vector3(0, -1, 0);\n      for (const storey of storeysData) {\n        if (!(\"value\" in storey.Name && \"value\" in storey.Elevation)) {\n          continue;\n        }\n        const { value: name } = storey.Name;\n        if ((config == null ? void 0 : config.storeyNames) && !config.storeyNames.some((value) => value.test(name))) {\n          continue;\n        }\n        const height = storey.Elevation.value + coordHeight + offset;\n        const plane = new THREE.Plane(normal, height);\n        const view = this.createFromPlane(plane, {\n          id: name,\n          world: config == null ? void 0 : config.world\n        });\n        result.push(view);\n      }\n    }\n    return result;\n  }\n  /**\n   * Creates views representing the front, back, left, and right sides of bounding boxes for specified models or a combined bounding box of all models.\n   *\n   * @param config - Optional configuration object for creating bounding views.\n   * @returns A promise that resolves to an array of `View` objects created from the boundings.\n   * @remarks The method calculates bounding boxes for the specified models, optionally combines them into a single bounding box, and creates views for the planes representing the bounding box sides.\n   */\n  createElevations(config) {\n    const result = [];\n    const fragments = this.components.get(FragmentsManager);\n    const combine = (config == null ? void 0 : config.combine) === void 0 ? false : config.combine;\n    const namingFunction = (config == null ? void 0 : config.namingCallback) ?? ((modelId) => {\n      return {\n        front: `${combine ? \"Front\" : `${modelId}: Front`}`,\n        back: `${combine ? \"Back\" : `${modelId}: Back`}`,\n        left: `${combine ? \"Left\" : `${modelId}: Left`}`,\n        right: `${combine ? \"Right\" : `${modelId}: Right`}`\n      };\n    });\n    let boxes = [];\n    for (const [id, model] of fragments.list) {\n      if (config && config.modelIds && !config.modelIds.some((regex) => regex.test(id))) {\n        continue;\n      }\n      boxes.push({ id, box: model.box });\n    }\n    if (boxes.length === 0)\n      return result;\n    if (combine) {\n      const boxer = this.components.get(BoundingBoxer);\n      boxer.list.clear();\n      boxer.list.add(...boxes.map((data) => data.box));\n      const box = boxer.get();\n      boxes = [{ id: \"combined\", box }];\n    }\n    for (const { id: modelId, box } of boxes) {\n      const { min, max } = box;\n      const xLength = Math.abs(max.x - min.x);\n      const zLength = Math.abs(max.z - min.z);\n      const center = new THREE.Vector3();\n      box.getCenter(center);\n      const frontPlane = new THREE.Plane(new THREE.Vector3(0, 0, -1), max.z);\n      const backPlane = new THREE.Plane(new THREE.Vector3(0, 0, 1), -min.z);\n      const leftPlane = new THREE.Plane(new THREE.Vector3(-1, 0, 0), max.x);\n      const rightPlane = new THREE.Plane(new THREE.Vector3(1, 0, 0), -min.x);\n      const {\n        front: frontName,\n        back: backName,\n        left: leftName,\n        right: rightName\n      } = namingFunction(modelId);\n      const frontView = this.createFromPlane(frontPlane, {\n        id: frontName,\n        world: config == null ? void 0 : config.world\n      });\n      frontView.range = zLength;\n      const backView = this.createFromPlane(backPlane, {\n        id: backName,\n        world: config == null ? void 0 : config.world\n      });\n      backView.range = zLength;\n      const leftView = this.createFromPlane(leftPlane, {\n        id: leftName,\n        world: config == null ? void 0 : config.world\n      });\n      leftView.range = xLength;\n      const rightView = this.createFromPlane(rightPlane, {\n        id: rightName,\n        world: config == null ? void 0 : config.world\n      });\n      rightView.range = xLength;\n      result.push(frontView, backView, leftView, rightView);\n    }\n    return result;\n  }\n  /**\n   * Opens a view by its unique identifier. Ensures that no more than one view\n   * is opened in the same world at a time. If the view is already open, the method\n   * returns without performing any action.\n   *\n   * @param id - The unique identifier of the view to open.\n   * @remarks This method changes world camera to use the view's.\n   */\n  open(id) {\n    const view = this.list.get(id);\n    if (!view) {\n      throw new Error(`Views: the view with id ${id} doesn't exist.`);\n    }\n    if (view.open)\n      return;\n    const { world } = view;\n    if (!world) {\n      throw new Error(`Views: no world found for view with id ${id}.`);\n    }\n    const { renderer } = world;\n    if (!renderer) {\n      throw new Error(\n        `Views: no renderer found for world with id ${world.uuid}.`\n      );\n    }\n    for (const [, existingView] of this.list) {\n      if (existingView.world !== world)\n        continue;\n      this.close(existingView.id);\n    }\n    renderer.setPlane(true, view.plane);\n    renderer.setPlane(true, view.farPlane);\n    view.camera.controls.addEventListener(\"rest\", this._fragmentsUpdateEvent);\n    world.camera = view.camera;\n    view.open = true;\n  }\n  /**\n   * Closes a view by its unique identifier and performs necessary cleanup operations.\n   *\n   * @param id - The unique identifier of the view to be closed. If not provided, all opened views across worlds will be closed.\n   * @remarks This method resets the world to use its default camera.\n   */\n  close(id) {\n    let view;\n    if (id) {\n      view = this.list.get(id);\n    } else {\n      view = [...this.list.values()].find((v) => v.open);\n    }\n    if (id && !view) {\n      throw new Error(`Views: the view with id ${id} doesn't exist.`);\n    }\n    if (!view)\n      return;\n    if (!view.open)\n      return;\n    const { world } = view;\n    if (!world) {\n      throw new Error(`Views: no world found for view with id ${id}.`);\n    }\n    const { renderer } = world;\n    if (!renderer) {\n      throw new Error(\n        `Views: no renderer found for world with id ${world.uuid}.`\n      );\n    }\n    renderer.setPlane(false, view.plane);\n    renderer.setPlane(false, view.farPlane);\n    view.camera.controls.removeEventListener(\n      \"rest\",\n      this._fragmentsUpdateEvent\n    );\n    world.useDefaultCamera();\n    view.open = false;\n  }\n};\n__publicField(_Views, \"uuid\", \"fb22f1f5-6598-4664-a11d-de8963ae420f\");\n/**\n * The default range value used by the Views component.\n * This represents the standard range setting applied unless explicitly overridden.\n */\n__publicField(_Views, \"defaultRange\", 15);\nlet Views = _Views;\nfunction clientWaitAsync(gl, sync, flags, intervalMilliseconds) {\n  return new Promise((resolve, reject) => {\n    function test() {\n      const res = gl.clientWaitSync(sync, flags, 0);\n      if (res === gl.WAIT_FAILED) {\n        reject();\n        return;\n      }\n      if (res === gl.TIMEOUT_EXPIRED) {\n        setTimeout(test, intervalMilliseconds);\n        return;\n      }\n      resolve();\n    }\n    test();\n  });\n}\nasync function getBufferSubDataAsync(gl, target, buffer, srcByteOffset, dstBuffer, dstOffset, length) {\n  const sync = gl.fenceSync(gl.SYNC_GPU_COMMANDS_COMPLETE, 0);\n  gl.flush();\n  await clientWaitAsync(gl, sync, 0, 10);\n  gl.deleteSync(sync);\n  gl.bindBuffer(target, buffer);\n  gl.getBufferSubData(target, srcByteOffset, dstBuffer, dstOffset, length);\n  gl.bindBuffer(target, null);\n}\nasync function readPixelsAsync(gl, x, y, w, h, format, type, dest) {\n  const buf = gl.createBuffer();\n  gl.bindBuffer(gl.PIXEL_PACK_BUFFER, buf);\n  gl.bufferData(gl.PIXEL_PACK_BUFFER, dest.byteLength, gl.STREAM_READ);\n  gl.readPixels(x, y, w, h, format, type, 0);\n  gl.bindBuffer(gl.PIXEL_PACK_BUFFER, null);\n  await getBufferSubDataAsync(gl, gl.PIXEL_PACK_BUFFER, buf, 0, dest);\n  gl.deleteBuffer(buf);\n  return dest;\n}\nclass DistanceRenderer {\n  constructor(components, world) {\n    /** {@link Disposable.onDisposed} */\n    __publicField(this, \"onDisposed\", new Event());\n    /**\n     * Fires after making the visibility check to the meshes. It lists the\n     * meshes that are currently visible, and the ones that were visible\n     * just before but not anymore.\n     */\n    __publicField(this, \"onDistanceComputed\", new Event());\n    /**\n     * Objects that won't be taken into account in the distance check.\n     */\n    __publicField(this, \"excludedObjects\", /* @__PURE__ */ new Set());\n    /**\n     * Whether this renderer is active or not. If not, it won't render anything.\n     */\n    __publicField(this, \"enabled\", true);\n    /**\n     * Render the internal scene used to determine the object visibility. Used\n     * for debugging purposes.\n     */\n    __publicField(this, \"renderDebugFrame\", false);\n    /** The components instance to which this renderer belongs. */\n    __publicField(this, \"components\");\n    /**\n     * The scene where the distance is computed.\n     */\n    __publicField(this, \"scene\", new THREE.Scene());\n    /**\n     * The camera used to compute the distance.\n     */\n    __publicField(this, \"camera\", new THREE.OrthographicCamera(-1, 1, 1, -1, 0, 1));\n    /**\n     * The material used to compute the distance.\n     */\n    __publicField(this, \"depthMaterial\");\n    /** The world instance to which this renderer belongs. */\n    __publicField(this, \"world\");\n    __publicField(this, \"worker\");\n    __publicField(this, \"_width\", 512);\n    __publicField(this, \"_height\", 512);\n    __publicField(this, \"_postQuad\");\n    __publicField(this, \"tempRT\");\n    __publicField(this, \"resultRT\");\n    __publicField(this, \"bufferSize\");\n    __publicField(this, \"_buffer\");\n    // Prevents worker being fired multiple times\n    __publicField(this, \"_isWorkerBusy\", false);\n    /**\n     * The function that the culler uses to reprocess the scene. Generally it's\n     * better to call needsUpdate, but you can also call this to force it.\n     * @param force if true, it will refresh the scene even if needsUpdate is\n     * not true.\n     */\n    __publicField(this, \"compute\", async () => {\n      if (!this.enabled || this.world.isDisposing) {\n        return;\n      }\n      if (this._isWorkerBusy) {\n        return;\n      }\n      this._isWorkerBusy = true;\n      this.world.camera.three.updateMatrix();\n      const renderer = this.world.renderer.three;\n      renderer.setRenderTarget(this.tempRT);\n      const tempVariableName = \"visibilityBeforeDistanceCheck\";\n      for (const object of this.excludedObjects) {\n        object.userData[tempVariableName] = object.visible;\n        object.visible = false;\n      }\n      renderer.render(this.world.scene.three, this.world.camera.three);\n      for (const object of this.excludedObjects) {\n        if (object.userData[tempVariableName] !== void 0) {\n          object.visible = object.userData[tempVariableName];\n        }\n      }\n      this.depthMaterial.uniforms.tDiffuse.value = this.tempRT.texture;\n      this.depthMaterial.uniforms.tDepth.value = this.tempRT.depthTexture;\n      renderer.setRenderTarget(this.resultRT);\n      renderer.render(this.scene, this.camera);\n      const context = renderer.getContext();\n      try {\n        await readPixelsAsync(\n          context,\n          0,\n          0,\n          this._width,\n          this._height,\n          context.RGBA,\n          context.UNSIGNED_BYTE,\n          this._buffer\n        );\n      } catch (e) {\n        renderer.setRenderTarget(null);\n        this._isWorkerBusy = false;\n        return;\n      }\n      renderer.setRenderTarget(null);\n      if (this.renderDebugFrame) {\n        renderer.render(this.scene, this.camera);\n      }\n      this.worker.postMessage({\n        buffer: this._buffer\n      });\n    });\n    __publicField(this, \"handleWorkerMessage\", (event) => {\n      if (!this.enabled || this.world.isDisposing) {\n        return;\n      }\n      const colors = event.data.colors;\n      let min = Number.MAX_VALUE;\n      for (const value of colors) {\n        if (value === 0) {\n          continue;\n        }\n        if (value < min) {\n          min = value;\n        }\n      }\n      const camera = this.world.camera.three || THREE.OrthographicCamera;\n      const normalized = min / 255;\n      const maxFoundDistance = (normalized - 1) * -1 * (camera.far - camera.near);\n      const maxValidDistance = Math.min(maxFoundDistance, camera.far);\n      this.onDistanceComputed.trigger(maxValidDistance);\n      this._isWorkerBusy = false;\n    });\n    if (!world.renderer) {\n      throw new Error(\"The given world must have a renderer!\");\n    }\n    this.components = components;\n    this.world = world;\n    const camera = world.camera.three;\n    this.tempRT = new THREE.WebGLRenderTarget(this._width, this._height);\n    this.bufferSize = this._width * this._height * 4;\n    this._buffer = new Uint8Array(this.bufferSize);\n    this.tempRT.texture.minFilter = THREE.NearestFilter;\n    this.tempRT.texture.magFilter = THREE.NearestFilter;\n    this.tempRT.stencilBuffer = false;\n    this.tempRT.samples = 0;\n    this.tempRT.depthTexture = new THREE.DepthTexture(\n      this._width,\n      this._height\n    );\n    this.tempRT.depthTexture.format = THREE.DepthFormat;\n    this.tempRT.depthTexture.type = THREE.UnsignedShortType;\n    this.resultRT = new THREE.WebGLRenderTarget(this._width, this._height);\n    this.depthMaterial = new THREE.ShaderMaterial({\n      vertexShader: `\nvarying vec2 vUv;\n\nvoid main() {\n  vUv = uv;\n  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n}\n    `,\n      fragmentShader: `\n#include <packing>\n\nvarying vec2 vUv;\nuniform sampler2D tDiffuse;\nuniform sampler2D tDepth;\nuniform float cameraNear;\nuniform float cameraFar;\n\n\nfloat readDepth( sampler2D depthSampler, vec2 coord ) {\n  float fragCoordZ = texture2D( depthSampler, coord ).x;\n  float viewZ = perspectiveDepthToViewZ( fragCoordZ, cameraNear, cameraFar );\n  return viewZToOrthographicDepth( viewZ, cameraNear, cameraFar );\n}\n\nvoid main() {\n  //vec3 diffuse = texture2D( tDiffuse, vUv ).rgb;\n  float depth = readDepth( tDepth, vUv );\n\n  gl_FragColor.rgb = 1.0 - vec3( depth );\n  gl_FragColor.a = 1.0;\n}\n    `,\n      uniforms: {\n        cameraNear: { value: camera.near },\n        cameraFar: { value: camera.far },\n        tDiffuse: { value: null },\n        tDepth: { value: null }\n      }\n    });\n    const postPlane = new THREE.PlaneGeometry(2, 2);\n    this._postQuad = new THREE.Mesh(postPlane, this.depthMaterial);\n    this.scene.add(this._postQuad);\n    const code = `\n      addEventListener(\"message\", (event) => {\n        const { buffer } = event.data;\n        const colors = new Set();\n        for (let i = 0; i < buffer.length; i += 4) {\n          const r = buffer[i];\n          colors.add(r);\n        }\n        postMessage({ colors });\n      });\n    `;\n    const blob = new Blob([code], { type: \"application/javascript\" });\n    this.worker = new Worker(URL.createObjectURL(blob));\n    this.worker.addEventListener(\"message\", this.handleWorkerMessage);\n  }\n  /** {@link Disposable.dispose} */\n  dispose() {\n    this.enabled = false;\n    this.onDistanceComputed.reset();\n    this.worker.terminate();\n    this.tempRT.dispose();\n    this.resultRT.dispose();\n    const children = [...this.scene.children];\n    this.excludedObjects.clear();\n    for (const child of children) {\n      child.removeFromParent();\n    }\n    this._postQuad.geometry.dispose();\n    this._postQuad.removeFromParent();\n    this._buffer = null;\n    this.onDisposed.reset();\n  }\n}\nclass ShadowedScene extends SimpleScene {\n  constructor() {\n    super(...arguments);\n    __publicField(this, \"_distanceRenderer\");\n    /**\n     * Whether the bias property should be set automatically depending on the shadow distance.\n     */\n    __publicField(this, \"autoBias\", true);\n    __publicField(this, \"_defaultShadowConfig\", {\n      cascade: 1,\n      resolution: 512\n    });\n    __publicField(this, \"_lightsWithShadow\", /* @__PURE__ */ new Map());\n    __publicField(this, \"_isComputingShadows\", false);\n    __publicField(this, \"_shadowsEnabled\", true);\n    __publicField(this, \"_bias\", 0);\n    __publicField(this, \"recomputeShadows\", (farthestDistance) => {\n      if (!this._shadowsEnabled) {\n        return;\n      }\n      if (this.autoBias) {\n        this.bias = -5e-3;\n      }\n      const factor = 1.5;\n      farthestDistance *= factor;\n      if (!this.currentWorld) {\n        throw new Error(\n          \"A world needs to be assigned to the scene before computing shadows!\"\n        );\n      }\n      if (!this._lightsWithShadow.size) {\n        throw new Error(\"No shadows found!\");\n      }\n      const camera = this.currentWorld.camera.three;\n      if (!(camera instanceof THREE.PerspectiveCamera) && !(camera instanceof THREE.OrthographicCamera)) {\n        throw new Error(\"Invalid camera type!\");\n      }\n      const camDirection = new THREE.Vector3();\n      camera.getWorldDirection(camDirection);\n      let currentDistance = farthestDistance;\n      const lightDirection = new THREE.Vector3();\n      lightDirection.copy(this.config.directionalLight.position);\n      lightDirection.normalize();\n      for (const [index, id] of this._lightsWithShadow) {\n        const light = this.directionalLights.get(id);\n        if (!light) {\n          throw new Error(\"Light not found.\");\n        }\n        const shadowCenter = new THREE.Vector3();\n        shadowCenter.copy(camDirection);\n        const isLastShadow = index === this._lightsWithShadow.size - 1;\n        const shadowOffset = isLastShadow ? currentDistance / 2 : currentDistance * 2 / 3;\n        shadowCenter.multiplyScalar(shadowOffset);\n        shadowCenter.add(camera.position);\n        const shadowRadius = currentDistance - shadowOffset;\n        const lightOffset = new THREE.Vector3();\n        lightOffset.copy(lightDirection);\n        lightOffset.multiplyScalar(shadowRadius);\n        light.target.position.copy(shadowCenter);\n        light.position.copy(shadowCenter);\n        light.position.add(lightOffset);\n        light.shadow.camera.right = shadowRadius;\n        light.shadow.camera.left = -shadowRadius;\n        light.shadow.camera.top = shadowRadius;\n        light.shadow.camera.bottom = -shadowRadius;\n        light.shadow.camera.far = shadowRadius * 2;\n        light.shadow.camera.updateProjectionMatrix();\n        light.shadow.camera.updateMatrix();\n        if (!isLastShadow) {\n          currentDistance /= 3;\n        }\n      }\n      this._isComputingShadows = false;\n    });\n  }\n  /**\n   * The getter for the bias to prevent artifacts (stripes). It usually ranges between 0 and -0.005.\n   */\n  get bias() {\n    return this._bias;\n  }\n  /**\n   * The setter for the bias to prevent artifacts (stripes). It usually ranges between 0 and -0.005.\n   */\n  set bias(value) {\n    this._bias = value;\n    for (const [, id] of this._lightsWithShadow) {\n      const light = this.directionalLights.get(id);\n      if (light) {\n        light.shadow.bias = value;\n      }\n    }\n  }\n  /**\n   * Getter to see whether the shadows are enabled or not in this scene instance.\n   */\n  get shadowsEnabled() {\n    return this._shadowsEnabled;\n  }\n  /**\n   * Setter to control whether the shadows are enabled or not in this scene instance.\n   */\n  set shadowsEnabled(value) {\n    this._shadowsEnabled = value;\n    for (const [, light] of this.directionalLights) {\n      light.castShadow = value;\n    }\n  }\n  /**\n   * Getter to get the renderer used to determine the farthest distance from the camera.\n   */\n  get distanceRenderer() {\n    if (!this._distanceRenderer) {\n      throw new Error(\n        \"You must set up this component before accessing the distance renderer!\"\n      );\n    }\n    return this._distanceRenderer;\n  }\n  /** {@link Configurable.setup} */\n  setup(config) {\n    super.setup(config);\n    const fullConfig = {\n      ...this._defaultConfig,\n      ...this._defaultShadowConfig,\n      ...config\n    };\n    if (fullConfig.cascade <= 0) {\n      throw new Error(\n        \"Config.shadows.cascade must be a natural number greater than 0!\"\n      );\n    }\n    if (fullConfig.cascade > 1) {\n      throw new Error(\"Multiple shadows not supported yet!\");\n    }\n    if (!this.currentWorld) {\n      throw new Error(\n        \"A world needs to be assigned to the scene before setting it up!\"\n      );\n    }\n    for (const [, light] of this.directionalLights) {\n      light.target.removeFromParent();\n      light.removeFromParent();\n      light.dispose();\n    }\n    this.directionalLights.clear();\n    if (!this._distanceRenderer) {\n      this._distanceRenderer = new DistanceRenderer(\n        this.components,\n        this.currentWorld\n      );\n      this._distanceRenderer.onDistanceComputed.add(this.recomputeShadows);\n    }\n    this._lightsWithShadow.clear();\n    for (let i = 0; i < fullConfig.cascade; i++) {\n      const light = new THREE.DirectionalLight();\n      light.intensity = this.config.directionalLight.intensity;\n      light.color = this.config.directionalLight.color;\n      light.position.copy(this.config.directionalLight.position);\n      light.shadow.mapSize.width = fullConfig.resolution;\n      light.shadow.mapSize.height = fullConfig.resolution;\n      this.three.add(light, light.target);\n      this.directionalLights.set(light.uuid, light);\n      this._lightsWithShadow.set(i, light.uuid);\n      light.castShadow = true;\n      light.shadow.bias = this._bias;\n    }\n  }\n  /** {@link Disposable.dispose} */\n  dispose() {\n    super.dispose();\n    if (this._distanceRenderer) {\n      this._distanceRenderer.dispose();\n    }\n    this._lightsWithShadow.clear();\n  }\n  /** Update all the shadows of the scene. */\n  async updateShadows() {\n    if (this._isComputingShadows || !this._shadowsEnabled) {\n      return;\n    }\n    this._isComputingShadows = true;\n    await this.distanceRenderer.compute();\n  }\n}\nclass IDSFacet {\n  constructor(_components) {\n    // Used when the facet is a requirement\n    // On IDSEntity is always required\n    __publicField(this, \"cardinality\", \"required\");\n    // When using this facet as a requirement, instructions can be given for the authors of the IFC.\n    __publicField(this, \"instructions\");\n    __publicField(this, \"evalRequirement\", (value, facetParameter, parameter, checks) => {\n      const checkLog = {\n        parameter,\n        currentValue: value,\n        requiredValue: facetParameter,\n        pass: false\n      };\n      if (checks)\n        this.addCheckResult(checkLog, checks);\n      let pass = false;\n      if (facetParameter.type === \"simple\") {\n        pass = value === facetParameter.parameter;\n      }\n      if (facetParameter.type === \"enumeration\") {\n        pass = facetParameter.parameter.includes(value);\n      }\n      if (facetParameter.type === \"pattern\") {\n        const regex = new RegExp(facetParameter.parameter);\n        pass = regex.test(String(value));\n      }\n      if (facetParameter.type === \"length\") {\n        const { min, length, max } = facetParameter.parameter;\n        if (length !== void 0) {\n          pass = String(value).length === length;\n        }\n        if (min !== void 0) {\n          pass = String(value).length >= min;\n        }\n        if (max !== void 0) {\n          pass = String(value).length <= max;\n        }\n      }\n      if (facetParameter.type === \"bounds\" && typeof value === \"number\") {\n        const { min, minInclusive, max, maxInclusive } = facetParameter.parameter;\n        let minPass = true;\n        let maxPass = true;\n        if (min !== void 0) {\n          minPass = minInclusive ? value >= min : value > min;\n        }\n        if (max !== void 0) {\n          maxPass = maxInclusive ? value <= max : value < max;\n        }\n        pass = minPass && maxPass;\n      }\n      if (this.cardinality === \"prohibited\")\n        pass = !pass;\n      if (this.cardinality === \"optional\")\n        pass = true;\n      checkLog.pass = pass;\n      return checkLog.pass;\n    });\n    this._components = _components;\n  }\n  addCheckResult(check, checks) {\n    const index = checks.findIndex(\n      ({ parameter }) => parameter === check.parameter\n    );\n    if (index !== -1) {\n      checks[index] = check;\n    } else {\n      checks.push(check);\n    }\n  }\n  getItemChecks(collector, modelId, item, skipIfFails) {\n    if (!(\"value\" in item._localId && typeof item._localId.value === \"number\")) {\n      return null;\n    }\n    let modelItemResults = collector.get(modelId);\n    if (!modelItemResults) {\n      modelItemResults = new FRAGS.DataMap();\n      collector.set(modelId, modelItemResults);\n    }\n    let result = modelItemResults.get(item._localId.value);\n    if (result && skipIfFails && !result.pass) {\n      return null;\n    }\n    if (!result) {\n      const checks2 = [];\n      result = {\n        guid: Array.isArray(item._guid) ? void 0 : item._guid.value,\n        pass: false,\n        checks: checks2\n      };\n      Object.defineProperty(result, \"pass\", {\n        get: () => checks2.every(({ pass }) => pass)\n      });\n      modelItemResults.set(item._localId.value, result);\n    }\n    const checks = [];\n    const check = {\n      facetType: this.facetType,\n      cardinality: this.cardinality,\n      checks,\n      pass: false\n    };\n    Object.defineProperty(check, \"pass\", {\n      get: () => checks.every(({ pass }) => pass)\n    });\n    result.checks.push(check);\n    return check.checks;\n  }\n}\nconst getParameterXML = (name, parameter) => {\n  let parameterXML = \"\";\n  if (!parameter)\n    return parameterXML;\n  if (parameter.type === \"simple\") {\n    parameterXML = `<simpleValue>${parameter.parameter}</simpleValue>`;\n  }\n  if (parameter.type === \"enumeration\") {\n    const value = parameter.parameter;\n    parameterXML = `<xs:restriction base=\"xs:string\">\n    ${value.map((v) => `<xs:enumeration value=\"${v}\" />`).join(\"\\n\")}\n    </xs:restriction>`;\n  }\n  if (parameter.type === \"pattern\") {\n    const value = parameter.parameter;\n    parameterXML = `<xs:restriction base=\"xs:string\">\n      <xs:pattern value=\"${value}\" />\n    </xs:restriction>`;\n  }\n  if (parameter.type === \"bounds\") {\n    const { min, minInclusive, max, maxInclusive } = parameter.parameter;\n    let minTag = \"\";\n    if (min !== void 0) {\n      minTag = `<xs:min${minInclusive ? \"Inclusive\" : \"Exclusive\"} value=\"${min}\">`;\n    }\n    let maxTag = \"\";\n    if (max !== void 0) {\n      maxTag = `<xs:max${maxInclusive ? \"Inclusive\" : \"Exclusive\"} value=\"${max}\">`;\n    }\n    parameterXML = `<xs:restriction base=\"xs:double\">\n      ${minTag}\n      ${maxTag}\n    </xs:restriction>`;\n  }\n  if (parameter.type === \"length\") {\n    const { length, min, max } = parameter.parameter;\n    let lengthTag = \"\";\n    if (length !== void 0 && min === void 0 && max === void 0) {\n      lengthTag = `<xs:length value=\"${length}\" />`;\n    }\n    let minTag = \"\";\n    if (min !== void 0 && length === void 0) {\n      minTag = `<xs:minLength value=\"${min}\" />`;\n    }\n    let maxTag = \"\";\n    if (max !== void 0 && length === void 0) {\n      maxTag = `<xs:maxLength value=\"${max}\" />`;\n    }\n    parameterXML = `<xs:restriction base=\"xs:string\">\n      ${lengthTag}\n      ${minTag}\n      ${maxTag}\n    </xs:restriction>`;\n  }\n  const xml = `<${name[0].toLowerCase() + name.slice(1)}>\n    ${parameterXML}\n  </${name[0].toLowerCase() + name.slice(1)}>`;\n  return xml;\n};\nclass IDSAttribute extends IDSFacet {\n  constructor(components, name) {\n    super(components);\n    __publicField(this, \"facetType\", \"Attribute\");\n    __publicField(this, \"name\");\n    __publicField(this, \"value\");\n    this.name = name;\n  }\n  serialize(type) {\n    const nameXML = getParameterXML(\"Name\", this.name);\n    const valueXML = getParameterXML(\"Value\", this.value);\n    let attributes = \"\";\n    if (type === \"requirement\") {\n      attributes += `cardinality=\"${this.cardinality}\"`;\n      attributes += this.instructions ? `instructions=\"${this.instructions}\"` : \"\";\n    }\n    return `<attribute ${attributes}>\n  ${nameXML}\n  ${valueXML}\n</attribute>`;\n  }\n  // This can be very ineficcient as we do not have an easy way to get an entity based on an attribute\n  // Right now, all entities must be iterated.\n  // When the new IfcEntitiesFinder comes, this can become easier.\n  // This may be greatly increase in performance if the applicability has any of the other facets and this is applied the latest\n  async getEntities() {\n  }\n  // async getEntities(\n  //   model: FRAGS.FragmentsGroup,\n  //   collector: FRAGS.IfcProperties = {},\n  // ) {\n  //   return [];\n  //   // for (const expressID in model) {\n  //   //   if (collector[expressID]) continue;\n  //   //   const entity = model[expressID];\n  //   //   // Check if the attribute exists\n  //   //   const attribute = entity[this.name];\n  //   //   const attributeExists = !!attribute;\n  //   //   // Check if the attribute value matches\n  //   //   let valueMatches = true;\n  //   //   if (attributeExists && this.value && this.value.value) {\n  //   //     if (this.value.type === \"simpleValue\") {\n  //   //       valueMatches = attribute.value === this.value.value;\n  //   //     }\n  //   //     if (this.value.type === \"restriction\") {\n  //   //       const regex = new RegExp(this.value.value);\n  //   //       valueMatches = regex.test(attribute.value);\n  //   //     }\n  //   //   }\n  //   //   if (attributeExists && valueMatches) {\n  //   //     collector[entity.expressID] = entity;\n  //   //   }\n  //   // }\n  // }\n  // https://github.com/buildingSMART/IDS/tree/development/Documentation/ImplementersDocumentation/TestCases/attribute\n  // Test cases from buildingSMART repo have been tested and they all match with the expected result\n  // All invalid cases have been treated as failures\n  // FragmentsGroup do not hold some of the entities used in the tests\n  async test(items, collector, config = { skipIfFails: true }) {\n    const fragments = this._components.get(FragmentsManager);\n    for (const [modelId, localIds] of Object.entries(items)) {\n      const model = fragments.list.get(modelId);\n      if (!model)\n        continue;\n      const data = await model.getItemsData([...localIds]);\n      for (const item of data) {\n        const checks = this.getItemChecks(\n          collector,\n          modelId,\n          item,\n          config.skipIfFails\n        );\n        if (!checks)\n          continue;\n        const attrNames = Object.keys(item);\n        const matchingAttributes = attrNames.filter((name) => {\n          const nameMatches = this.evalRequirement(name, this.name, \"Name\");\n          if (!nameMatches)\n            return false;\n          const attribute = item[name];\n          if (Array.isArray(attribute))\n            return true;\n          if (attribute === null || attribute.value === null) {\n            if (this.cardinality === \"optional\" || this.cardinality === \"prohibited\") {\n              return true;\n            }\n            return false;\n          }\n          if (Array.isArray(attribute.value) && attribute.value.length === 0) {\n            return false;\n          }\n          if (typeof attribute.value === \"string\" && attribute.value.trim() === \"\") {\n            return false;\n          }\n          return nameMatches;\n        });\n        const attributeMatches = matchingAttributes.length > 0;\n        checks.push({\n          parameter: \"Name\",\n          currentValue: attributeMatches ? matchingAttributes[0] : null,\n          requiredValue: this.name,\n          pass: this.cardinality === \"prohibited\" ? !attributeMatches : attributeMatches\n        });\n        if (this.value) {\n          if (matchingAttributes[0]) {\n            const attribute = item[matchingAttributes[0]];\n            if (Array.isArray(attribute)) {\n              checks.push({\n                parameter: \"Value\",\n                currentValue: null,\n                requiredValue: this.value,\n                pass: this.cardinality === \"prohibited\"\n              });\n            } else {\n              const isRef = Array.isArray(attribute.value);\n              if (isRef) {\n                checks.push({\n                  parameter: \"Value\",\n                  currentValue: null,\n                  requiredValue: this.value,\n                  pass: this.cardinality === \"prohibited\"\n                });\n              } else {\n                this.evalRequirement(\n                  attribute.value,\n                  this.value,\n                  \"Value\",\n                  checks\n                );\n              }\n            }\n          } else {\n            checks.push({\n              parameter: \"Value\",\n              currentValue: null,\n              requiredValue: this.value,\n              pass: this.cardinality === \"prohibited\"\n            });\n          }\n        }\n      }\n    }\n  }\n}\nclass IDSClassification extends IDSFacet {\n  constructor(components, system) {\n    super(components);\n    __publicField(this, \"facetType\", \"Classification\");\n    __publicField(this, \"system\");\n    __publicField(this, \"value\");\n    __publicField(this, \"uri\");\n    this.system = system;\n  }\n  serialize(type) {\n    const systemXML = getParameterXML(\"System\", this.system);\n    const valueXML = getParameterXML(\"Value\", this.value);\n    let attributes = \"\";\n    if (type === \"requirement\") {\n      attributes += `cardinality=\"${this.cardinality}\"`;\n      attributes += this.uri ? `uri=${this.uri}` : \"\";\n      attributes += this.instructions ? `instructions=\"${this.instructions}\"` : \"\";\n    }\n    return `<classification ${attributes}>\n  ${systemXML}\n  ${valueXML}\n</classification>`;\n  }\n  async getEntities(_modelIds, _collector) {\n  }\n  async test(_items, _collector) {\n  }\n  // private async processReferencedSource(\n  //   model: FRAGS.FragmentsGroup,\n  //   attrs: Record<string, any>,\n  // ) {\n  //   const sourceID = attrs.ReferencedSource?.value;\n  //   if (!sourceID) return null;\n  //   const sourceAttrs = await model.getProperties(sourceID);\n  //   if (!sourceAttrs) return null;\n  //   if (sourceAttrs.type === WEBIFC.IFCCLASSIFICATIONREFERENCE) {\n  //     sourceAttrs.ReferencedSource = await this.processReferencedSource(\n  //       model,\n  //       sourceAttrs,\n  //     );\n  //   }\n  //   return sourceAttrs;\n  // }\n  // private async getSystems(model: FRAGS.FragmentsGroup, expressID: number) {\n  //   const result: Record<string, any>[] = [];\n  //   const indexer = this._components.get(IfcRelationsIndexer);\n  //   const ocurrenceAssociations = indexer.getEntityRelations(\n  //     model,\n  //     expressID,\n  //     \"HasAssociations\",\n  //   );\n  //   if (ocurrenceAssociations) {\n  //     for (const id of ocurrenceAssociations) {\n  //       const attrs = await model.getProperties(id);\n  //       if (!attrs) continue;\n  //       if (attrs.type === WEBIFC.IFCCLASSIFICATION) {\n  //         result.push(attrs);\n  //       }\n  //       if (attrs.type === WEBIFC.IFCCLASSIFICATIONREFERENCE) {\n  //         attrs.ReferencedSource = await this.processReferencedSource(\n  //           model,\n  //           attrs,\n  //         );\n  //         if (attrs.ReferencedSource) result.push(attrs);\n  //       }\n  //     }\n  //   }\n  //   // As occurence classifications prevail over type clasifications\n  //   // the classification systems used by the occurrence are get\n  //   // so type classifications are not included\n  //   const occurrenceSystems = result\n  //     .map((attrs) => {\n  //       if (attrs.type === WEBIFC.IFCCLASSIFICATION) {\n  //         return attrs.Name?.value;\n  //       }\n  //       if (attrs.type === WEBIFC.IFCCLASSIFICATIONREFERENCE) {\n  //         return attrs.ReferencedSource?.Name?.value;\n  //       }\n  //       return null;\n  //     })\n  //     .filter((name) => name);\n  //   const types = indexer.getEntityRelations(model, expressID, \"IsTypedBy\");\n  //   if (!(types && types[0])) return result;\n  //   const type = types[0];\n  //   const typeAssociations = indexer.getEntityRelations(\n  //     model,\n  //     type,\n  //     \"HasAssociations\",\n  //   );\n  //   if (typeAssociations) {\n  //     for (const id of typeAssociations) {\n  //       const attrs = await model.getProperties(id);\n  //       if (!attrs) continue;\n  //       if (attrs.type === WEBIFC.IFCCLASSIFICATION) {\n  //         if (occurrenceSystems.includes(attrs.Name?.value)) continue;\n  //         result.push(attrs);\n  //       }\n  //       if (attrs.type === WEBIFC.IFCCLASSIFICATIONREFERENCE) {\n  //         attrs.ReferencedSource = await this.processReferencedSource(\n  //           model,\n  //           attrs,\n  //         );\n  //         if (attrs.ReferencedSource) result.push(attrs);\n  //       }\n  //     }\n  //   }\n  //   return result;\n  // }\n  // private getSystemName(attrs: Record<string, any>): string | null {\n  //   if (attrs.type === WEBIFC.IFCCLASSIFICATION) {\n  //     return attrs.Name?.value;\n  //   }\n  //   if (attrs.type === WEBIFC.IFCCLASSIFICATIONREFERENCE) {\n  //     if (attrs.ReferencedSource?.type === WEBIFC.IFCCLASSIFICATIONREFERENCE) {\n  //       return this.getSystemName(attrs.ReferencedSource);\n  //     }\n  //     if (attrs.ReferencedSource?.type === WEBIFC.IFCCLASSIFICATION) {\n  //       return attrs.ReferencedSource.Name?.value;\n  //     }\n  //   }\n  //   return null;\n  // }\n  // private getAllReferenceIdentifications(attrs: Record<string, any>) {\n  //   if (attrs.type !== WEBIFC.IFCCLASSIFICATIONREFERENCE) return null;\n  //   const identifications: string[] = [];\n  //   if (attrs.Identification) identifications.push(attrs.Identification.value);\n  //   if (attrs.ReferencedSource) {\n  //     const identification = this.getAllReferenceIdentifications(\n  //       attrs.ReferencedSource,\n  //     );\n  //     if (identification) identifications.push(...identification);\n  //   }\n  //   return identifications;\n  // }\n  // private evalSystem(attrs: Record<string, any>, checks?: IDSCheck[]) {\n  //   const name = this.getSystemName(attrs);\n  //   return this.evalRequirement(name, this.system, \"System\", checks);\n  // }\n  // private evalValue(attrs: any, checks?: IDSCheck[]) {\n  //   if (!this.value) return true;\n  //   const identifications = this.getAllReferenceIdentifications(attrs);\n  //   if (!identifications) return false;\n  //   const identifier = identifications.find((id) => {\n  //     if (!this.value) return false;\n  //     return this.evalRequirement(id, this.value, \"Value\");\n  //   });\n  //   if (checks) {\n  //     this.addCheckResult(\n  //       {\n  //         parameter: \"Value\",\n  //         currentValue: identifier ?? null,\n  //         requiredValue: this.value,\n  //         pass: !!identifier,\n  //       },\n  //       checks,\n  //     );\n  //   }\n  //   return !!identifier;\n  // }\n  // private evalURI(attrs: any, checks?: IDSCheck[]) {\n  //   if (!this.uri) return true;\n  //   const result = this.evalRequirement(\n  //     attrs.Location?.value,\n  //     {\n  //       type: \"simple\",\n  //       parameter: this.uri,\n  //     },\n  //     \"URI\",\n  //     checks,\n  //   );\n  //   return result;\n  // }\n}\nclass IDSEntity extends IDSFacet {\n  constructor(components, name) {\n    super(components);\n    __publicField(this, \"facetType\", \"Entity\");\n    __publicField(this, \"name\");\n    __publicField(this, \"predefinedType\");\n    this.name = name;\n  }\n  serialize(type) {\n    const nameXML = getParameterXML(\"Name\", this.name);\n    const predefinedTypeXML = getParameterXML(\"Name\", this.predefinedType);\n    let attributes = \"\";\n    if (type === \"requirement\") {\n      attributes += `cardinality=\"${this.cardinality}\"`;\n      attributes += this.instructions ? `instructions=\"${this.instructions}\"` : \"\";\n    }\n    return `<entity ${attributes}>\n  ${nameXML}\n  ${predefinedTypeXML}\n</entity>`;\n  }\n  async getEntities(modelIds, collector) {\n    const fragments = this._components.get(FragmentsManager);\n    const modelCategories = /* @__PURE__ */ new Map();\n    for (const [modelId, model] of fragments.list) {\n      const isValidModel = modelIds.find((regex) => regex.test(modelId));\n      if (!isValidModel)\n        continue;\n      const categories = await model.getCategories();\n      for (const category of categories) {\n        const isValidCategory = await this.evalName(category);\n        if (!isValidCategory)\n          continue;\n        let validCategories = modelCategories.get(modelId);\n        if (!validCategories) {\n          validCategories = [];\n          modelCategories.set(modelId, validCategories);\n        }\n        validCategories.push(category);\n      }\n    }\n    const items = {};\n    await Promise.all(\n      Array.from(modelCategories.entries()).map(\n        async ([modelId, categories]) => {\n          const model = fragments.list.get(modelId);\n          if (!model)\n            return;\n          const regexCategories = categories.map(\n            (cat) => new RegExp(`^${cat}$`)\n          );\n          const categoryItemIds = await model.getItemsOfCategories(regexCategories);\n          const localIds = Object.values(categoryItemIds).flat();\n          items[modelId] = new Set(localIds);\n        }\n      )\n    );\n    if (!this.predefinedType) {\n      ModelIdMapUtils.add(collector, items);\n      return;\n    }\n    for (const [modelId, localIds] of Object.entries(items)) {\n      const model = fragments.list.get(modelId);\n      if (!model)\n        continue;\n      const itemsData = await model.getItemsData([...localIds]);\n      for (const attribute of itemsData) {\n        if (!(\"value\" in attribute._localId))\n          continue;\n        const isValidPredefinedType = await this.evalPredefinedType(\n          modelId,\n          attribute\n        );\n        if (isValidPredefinedType) {\n          ModelIdMapUtils.append(collector, modelId, attribute._localId.value);\n        }\n      }\n    }\n  }\n  async test(items, collector, config) {\n    const fragments = this._components.get(FragmentsManager);\n    for (const [modelId, localIds] of Object.entries(items)) {\n      const model = fragments.list.get(modelId);\n      if (!model)\n        continue;\n      const data = await model.getItemsData([...localIds]);\n      for (const item of data) {\n        if (!(\"value\" in item._category))\n          continue;\n        const checks = this.getItemChecks(\n          collector,\n          modelId,\n          item,\n          config.skipIfFails\n        );\n        if (!checks)\n          continue;\n        await this.evalName(item._category.value, checks);\n        await this.evalPredefinedType(modelId, item, checks);\n      }\n    }\n  }\n  async evalName(category, checks) {\n    const result = this.evalRequirement(category, this.name, \"Name\", checks);\n    return result;\n  }\n  async evalPredefinedType(modelId, itemData, checks) {\n    if (!this.predefinedType)\n      return null;\n    if (!(\"value\" in itemData.PredefinedType))\n      return null;\n    const isRequirementUserDefined = typeof this.predefinedType.parameter === \"string\" && this.predefinedType.parameter === \"USERDEFINED\";\n    let value = itemData.PredefinedType.value;\n    if (value === \"USERDEFINED\" && !isRequirementUserDefined) {\n      const attrNames = Object.keys(itemData);\n      const key = attrNames.find((str) => /^((?!Predefined).)*Type$/.test(str));\n      if (key) {\n        const keyValue = itemData[key];\n        if (\"value\" in keyValue)\n          value = keyValue.value;\n      } else {\n        value = \"USERDEFINED\";\n      }\n    }\n    if (!value) {\n      const fragments = this._components.get(FragmentsManager);\n      const model = fragments.list.get(modelId);\n      if (model && \"value\" in itemData._localId) {\n        const [data] = await model.getItemsData([itemData._localId.value], {\n          relations: { IsTypedBy: { attributes: true, relations: false } }\n        });\n        if (Array.isArray(data.IsTypedBy)) {\n          const typeAttrs = data.IsTypedBy[0];\n          if (typeAttrs && \"value\" in typeAttrs.PredefinedType) {\n            value = typeAttrs.PredefinedType.value;\n            if (value === \"USERDEFINED\" && !isRequirementUserDefined) {\n              const attrNames = Object.keys(typeAttrs);\n              const key = attrNames.find(\n                (str) => /^((?!Predefined).)*Type$/.test(str)\n              );\n              if (key) {\n                const keyValue = typeAttrs[key];\n                if (\"value\" in keyValue)\n                  value = keyValue.value;\n              } else {\n                value = \"USERDEFINED\";\n              }\n            }\n          }\n        }\n      }\n    }\n    const result = this.evalRequirement(\n      value,\n      this.predefinedType,\n      \"PredefinedType\",\n      checks\n    );\n    return result;\n  }\n}\nclass IDSProperty extends IDSFacet {\n  constructor(components, propertySet, baseName) {\n    super(components);\n    __publicField(this, \"facetType\", \"Property\");\n    __publicField(this, \"propertySet\");\n    __publicField(this, \"baseName\");\n    __publicField(this, \"value\");\n    __publicField(this, \"dataType\");\n    __publicField(this, \"uri\");\n    // These are defined by the IDS specification\n    __publicField(this, \"_unsupportedTypes\", [\n      \"IFCCOMPLEXPROPERTY\",\n      \"IFCPHYSICALCOMPLEXQUANTITY\"\n    ]);\n    this.propertySet = propertySet;\n    this.baseName = baseName;\n  }\n  serialize(type) {\n    const propertySetXML = getParameterXML(\"PropertySet\", this.propertySet);\n    const baseNameXML = getParameterXML(\"BaseName\", this.baseName);\n    const valueXML = getParameterXML(\"Value\", this.value);\n    const dataTypeXML = this.dataType ? `dataType=${this.dataType}` : \"\";\n    let attributes = \"\";\n    if (type === \"requirement\") {\n      attributes += `cardinality=\"${this.cardinality}\"`;\n      attributes += this.uri ? `uri=${this.uri}` : \"\";\n      attributes += this.instructions ? `instructions=\"${this.instructions}\"` : \"\";\n    }\n    return `<property ${dataTypeXML} ${attributes}>\n  ${propertySetXML}\n  ${baseNameXML}\n  ${valueXML}\n</property>`;\n  }\n  async getEntities(modelIds, collector) {\n    const fragments = this._components.get(FragmentsManager);\n    for (const [modelId, model] of fragments.list) {\n      const isValidModel = modelIds.find((regex) => regex.test(modelId));\n      if (!isValidModel)\n        continue;\n      const items = await model.getItemsOfCategories([\n        /PROPERTYSET/,\n        /ELEMENTQUANTITY/\n      ]);\n      const localIds = Object.values(items).flat();\n      if (localIds.length === 0)\n        continue;\n      const data = await model.getItemsData(localIds, {\n        relations: {\n          HasProperties: { attributes: true, relations: false },\n          DefinesOcurrence: { attributes: true, relations: false }\n        }\n      });\n      for (const set of data) {\n        if (!(\"value\" in set._localId && \"value\" in set._category && \"value\" in set.Name && Array.isArray(set.DefinesOcurrence))) {\n          continue;\n        }\n        const nameMatches = this.evalRequirement(\n          set.Name.value,\n          this.propertySet,\n          \"PropertySet\"\n        );\n        if (!nameMatches)\n          continue;\n        let propsListName;\n        if (set._category.value === \"IFCPROPERTYSET\")\n          propsListName = \"HasProperties\";\n        if (set._category.value === \"IFCELEMENTQUANTITY\")\n          propsListName = \"Quantities\";\n        if (!propsListName)\n          continue;\n        const props = set[propsListName];\n        if (!Array.isArray(props))\n          continue;\n        for (const prop of props) {\n          const keys = Object.keys(prop);\n          const nameKey = keys.find((key) => /Name/.test(key));\n          if (!(nameKey && \"value\" in prop[nameKey]))\n            continue;\n          const attribute = prop[nameKey];\n          if (!(\"value\" in attribute))\n            continue;\n          const propNameMatches = this.evalRequirement(\n            attribute.value,\n            this.baseName,\n            \"BaseName\"\n          );\n          if (!propNameMatches)\n            continue;\n          if (this.value) {\n            const valueKey = keys.find((key) => /Value/.test(key));\n            if (!valueKey)\n              continue;\n            const attribute2 = prop[valueKey];\n            if (!(\"value\" in attribute2))\n              continue;\n            const valueMatches = this.evalRequirement(\n              attribute2.value,\n              this.value,\n              \"Value\"\n            );\n            if (!valueMatches)\n              continue;\n          }\n          const items2 = set.DefinesOcurrence.map((ocurrence) => {\n            if (!(\"value\" in ocurrence._localId && typeof ocurrence._localId.value === \"number\")) {\n              return null;\n            }\n            return ocurrence._localId.value;\n          }).filter((id) => id !== null);\n          ModelIdMapUtils.append(collector, modelId, ...items2);\n        }\n      }\n    }\n  }\n  async test(items, collector, config = { skipIfFails: true }) {\n    const fragments = this._components.get(FragmentsManager);\n    for (const [modelId, localIds] of Object.entries(items)) {\n      const model = fragments.list.get(modelId);\n      if (!model)\n        continue;\n      const data = await model.getItemsData([...localIds], {\n        relations: {\n          IsDefinedBy: { attributes: true, relations: true },\n          IsTypedBy: { attributes: true, relations: false },\n          HasPropertySets: { attributes: true, relations: true },\n          DefinesOcurrence: { attributes: false, relations: false }\n        }\n      });\n      for (const item of data) {\n        const checks = this.getItemChecks(\n          collector,\n          modelId,\n          item,\n          config.skipIfFails\n        );\n        if (!checks)\n          continue;\n        const sets = await this.getPsets(item);\n        const matchingSets = sets.filter((set) => {\n          if (!(\"value\" in set.Name))\n            return false;\n          const result = this.evalRequirement(\n            set.Name.value,\n            this.propertySet,\n            \"PropertySet\"\n          );\n          if (!result)\n            return false;\n          checks.push({\n            currentValue: set.Name.value,\n            parameter: \"PropertySet\",\n            pass: true,\n            requiredValue: this.propertySet\n          });\n          return true;\n        });\n        if (matchingSets.length === 0) {\n          checks.push({\n            currentValue: null,\n            parameter: \"PropertySet\",\n            pass: false,\n            requiredValue: this.propertySet\n          });\n          continue;\n        }\n        for (const set of matchingSets) {\n          const propsListName = this.getPropertyListName(set);\n          if (!propsListName)\n            continue;\n          const props = set[propsListName];\n          if (!Array.isArray(props)) {\n            checks.push({\n              currentValue: null,\n              parameter: \"BaseName\",\n              pass: false,\n              requiredValue: this.baseName\n            });\n            continue;\n          }\n          const matchingProps = props.filter((item2) => {\n            if (!(\"value\" in item2._category && \"value\" in item2.Name))\n              return false;\n            if (this._unsupportedTypes.includes(item2._category.value)) {\n              return false;\n            }\n            const result = this.evalRequirement(\n              item2.Name.value,\n              this.baseName,\n              \"BaseName\"\n            );\n            if (!result)\n              return false;\n            checks.push({\n              currentValue: item2.Name.value,\n              parameter: \"BaseName\",\n              pass: true,\n              requiredValue: this.baseName\n            });\n            return true;\n          });\n          if (matchingProps.length === 0) {\n            checks.push({\n              currentValue: null,\n              parameter: \"BaseName\",\n              pass: false,\n              requiredValue: this.baseName\n            });\n            continue;\n          }\n          for (const item2 of matchingProps) {\n            this.evalValue(item2, checks);\n            this.evalDataType(item2, checks);\n            this.evalURI();\n          }\n        }\n      }\n    }\n  }\n  getPropertyListName(item) {\n    let propsListName;\n    if (!(\"value\" in item._category))\n      return propsListName;\n    if (item._category.value === \"IFCPROPERTYSET\")\n      propsListName = \"HasProperties\";\n    if (item._category.value === \"IFCELEMENTQUANTITY\")\n      propsListName = \"Quantities\";\n    return propsListName;\n  }\n  getValueKey(item) {\n    return Object.keys(item).find(\n      (name) => /Value/.test(name) || /Values/.test(name)\n    );\n  }\n  getTypePsets(item) {\n    if (!Array.isArray(item.IsTypedBy))\n      return [];\n    const [type] = item.IsTypedBy;\n    if (!(type && Array.isArray(type.HasPropertySets))) {\n      return [];\n    }\n    return type.HasPropertySets;\n  }\n  async getPsets(item) {\n    const typeSets = this.getTypePsets(item);\n    if (!Array.isArray(item.IsDefinedBy))\n      return typeSets;\n    const sets = [];\n    for (const definition of item.IsDefinedBy) {\n      if (!(\"value\" in definition.Name))\n        continue;\n      const definitionName = definition.Name.value;\n      const propsListName = this.getPropertyListName(definition);\n      if (!(definitionName && propsListName))\n        continue;\n      const typeSet = typeSets.find((set) => {\n        if (!(\"value\" in set.Name))\n          return false;\n        return set.Name.value === definitionName;\n      });\n      if (typeSet && Array.isArray(typeSet.HasProperties) && Array.isArray(definition.HasProperties)) {\n        for (const prop of typeSet.HasProperties) {\n          if (!(\"value\" in prop.Name))\n            continue;\n          const name = prop.Name.value;\n          const existingProp = definition.HasProperties.find((p) => {\n            if (!(\"value\" in p.Name))\n              return false;\n            return p.Name.value === name;\n          });\n          if (!existingProp)\n            definition.HasProperties.push(prop);\n        }\n      }\n      sets.push(definition);\n    }\n    return sets;\n  }\n  // IFCPROPERTYBOUNDEDVALUE are not supported yet\n  // IFCPROPERTYTABLEVALUE are not supported yet\n  // TODO: Work must to be done to convert numerical value units to IDS-nominated standard units https://github.com/buildingSMART/IDS/blob/development/Documentation/UserManual/units.md\n  evalValue(item, checks) {\n    const valueKey = this.getValueKey(item);\n    const valueAttr = item[valueKey];\n    if (!(\"value\" in valueAttr))\n      return false;\n    if (this.value) {\n      if (!valueKey) {\n        checks == null ? void 0 : checks.push({\n          parameter: \"Value\",\n          currentValue: null,\n          pass: false,\n          requiredValue: this.value\n        });\n        return false;\n      }\n      const facetValue = structuredClone(this.value);\n      if (valueAttr.type === \"IFCLABEL\" && facetValue.type === \"simple\") {\n        facetValue.parameter = String(facetValue.parameter);\n      }\n      const result = this.evalRequirement(\n        valueAttr.value,\n        facetValue,\n        \"Value\",\n        checks\n      );\n      return result;\n    }\n    if (!valueKey)\n      return true;\n    if (typeof valueAttr.value === \"string\" && valueAttr.value.trim() === \"\") {\n      checks == null ? void 0 : checks.push({\n        parameter: \"Value\",\n        currentValue: \"\",\n        pass: false,\n        requiredValue: this.value\n      });\n      return false;\n    }\n    return true;\n  }\n  evalDataType(item, checks) {\n    if (!this.dataType)\n      return true;\n    const valueKey = this.getValueKey(item);\n    if (!(valueKey && \"value\" in item[valueKey])) {\n      checks == null ? void 0 : checks.push({\n        parameter: \"DataType\",\n        currentValue: null,\n        pass: false,\n        requiredValue: this.dataType\n      });\n      return false;\n    }\n    const valueAttr = item[valueKey];\n    const result = this.evalRequirement(\n      valueAttr.type ?? null,\n      {\n        type: \"simple\",\n        parameter: this.dataType\n      },\n      \"DataType\",\n      checks\n    );\n    return result;\n  }\n  evalURI() {\n    return true;\n  }\n}\nclass IDSMaterial extends IDSFacet {\n  constructor() {\n    super(...arguments);\n    __publicField(this, \"_ifcMaterialEntities\", [\n      /^IFCMATERIALLAYERSETUSAGE$/,\n      /^IFCMATERIALCONSTITUENTSET$/,\n      /^IFCMATERIAL$/,\n      /^IFCMATERIALLIST$/\n    ]);\n    __publicField(this, \"facetType\", \"Material\");\n    __publicField(this, \"value\");\n    __publicField(this, \"uri\");\n  }\n  serialize(type) {\n    if (!(this.value && this.uri))\n      return \"<material />\";\n    const valueXML = getParameterXML(\"Value\", this.value);\n    let attributes = \"\";\n    if (type === \"requirement\") {\n      attributes += `cardinality=\"${this.cardinality}\"`;\n      attributes += this.uri ? `uri=${this.uri}` : \"\";\n      attributes += this.instructions ? `instructions=\"${this.instructions}\"` : \"\";\n    }\n    return `<material ${attributes}>\n  ${valueXML}\n</material>`;\n  }\n  async getEntities(modelIds, collector) {\n    const fragments = this._components.get(FragmentsManager);\n    for (const [modelId, model] of fragments.list) {\n      const isValidModel = modelIds.find((regex) => regex.test(modelId));\n      if (!isValidModel)\n        continue;\n      const items = await model.getItemsOfCategories(this._ifcMaterialEntities);\n      const localIds = Object.values(items).flat();\n      if (localIds.length === 0)\n        continue;\n      const data = await model.getItemsData(localIds, {\n        relations: {\n          AssociatedTo: { attributes: true, relations: false },\n          MaterialConstituents: { attributes: true, relations: true },\n          ForLayerSet: { attributes: true, relations: true },\n          MaterialLayers: { attributes: true, relations: true },\n          Materials: { attributes: true, relations: false }\n        }\n      });\n      for (const item of data) {\n        if (!(\"value\" in item._localId && \"value\" in item._category && Array.isArray(item.AssociatedTo))) {\n          continue;\n        }\n        const isValid = this.hasValidMaterial(item);\n        if (!isValid)\n          continue;\n        const relations = item.AssociatedTo.map((relation) => {\n          if (!(\"value\" in relation._localId && relation._localId.value))\n            return null;\n          return relation._localId.value;\n        }).filter((value) => value !== null);\n        ModelIdMapUtils.append(collector, modelId, ...relations);\n      }\n    }\n  }\n  async test(items, collector, config = { skipIfFails: true }) {\n    const fragments = this._components.get(FragmentsManager);\n    for (const [modelId, localIds] of Object.entries(items)) {\n      const model = fragments.list.get(modelId);\n      if (!model)\n        continue;\n      const data = await model.getItemsData([[...localIds][0]], {\n        relations: {\n          AssociatedTo: { attributes: false, relations: false },\n          HasAssociations: { attributes: true, relations: true },\n          MaterialConstituents: { attributes: true, relations: true },\n          ForLayerSet: { attributes: true, relations: true },\n          MaterialLayers: { attributes: true, relations: true },\n          Materials: { attributes: true, relations: false }\n        }\n      });\n      for (const item of data) {\n        const checks = this.getItemChecks(\n          collector,\n          modelId,\n          item,\n          config.skipIfFails\n        );\n        if (!checks)\n          continue;\n        if (!Array.isArray(item.HasAssociations)) {\n          checks.push({\n            parameter: null,\n            currentValue: null,\n            requiredValue: this.value,\n            pass: false\n          });\n          continue;\n        }\n        for (const association of item.HasAssociations) {\n          if (!this._ifcMaterialEntities.some((parent) => {\n            if (!(\"value\" in association._category))\n              return false;\n            return parent.test(association._category.value);\n          })) {\n            continue;\n          }\n          const isValid = this.hasValidMaterial(association, checks);\n          if (isValid)\n            break;\n        }\n      }\n    }\n  }\n  hasValidMaterial(item, checks) {\n    let isValid = false;\n    if (\"value\" in item._category && item._category.value === \"IFCMATERIAL\") {\n      const result = this.evalValue(item, checks);\n      if (result)\n        isValid = true;\n    } else {\n      for (const [name, attribute] of Object.entries(item)) {\n        if (![\n          \"ForLayerSet\",\n          \"MaterialLayers\",\n          \"Material\",\n          \"MaterialConstituents\",\n          \"Materials\"\n        ].includes(name))\n          continue;\n        if (!Array.isArray(attribute))\n          continue;\n        for (const item2 of attribute) {\n          const isMaterial = \"value\" in item2._category && item2._category.value === \"IFCMATERIAL\";\n          if (isMaterial) {\n            const result = this.evalValue(item2, checks);\n            if (result) {\n              isValid = true;\n              break;\n            }\n          } else {\n            const result = this.hasValidMaterial(item2);\n            if (result) {\n              isValid = true;\n              break;\n            }\n          }\n        }\n      }\n    }\n    return isValid;\n  }\n  evalValue(item, checks) {\n    if (!this.value) {\n      checks == null ? void 0 : checks.push({\n        parameter: null,\n        currentValue: item.Name && \"value\" in item.Name ? item.Name.value : null,\n        pass: true\n      });\n      return true;\n    }\n    if (!(\"value\" in item._category && item._category.value === \"IFCMATERIAL\")) {\n      return null;\n    }\n    let result = false;\n    if (item.Name && \"value\" in item.Name) {\n      result = this.evalRequirement(\n        item.Name.value,\n        this.value,\n        \"Value\",\n        checks\n      );\n    }\n    if (result)\n      return result;\n    if (item.Category && \"value\" in item.Category) {\n      result = this.evalRequirement(\n        item.Category.value,\n        this.value,\n        \"Value\",\n        checks\n      );\n    }\n    return result;\n  }\n}\nclass IDSPartOf extends IDSFacet {\n  constructor(components, entity) {\n    super(components);\n    __publicField(this, \"facetType\", \"PartOf\");\n    __publicField(this, \"_entityFacet\");\n    __publicField(this, \"_entity\");\n    __publicField(this, \"relation\");\n    __publicField(this, \"cardinality\", \"required\");\n    this._entity = entity;\n    this._entityFacet = new IDSEntity(components, entity.name);\n    this._entityFacet.predefinedType = entity.predefinedType;\n  }\n  set entity(value) {\n    this._entity = value;\n    const { name, predefinedType } = value;\n    this._entityFacet = new IDSEntity(this._components, name);\n    this._entityFacet.predefinedType = predefinedType;\n  }\n  get entity() {\n    return this._entity;\n  }\n  serialize() {\n    return \"\";\n  }\n  async getEntities(_modelIds, _collector) {\n  }\n  async test(_items) {\n  }\n}\nclass IDSSpecification {\n  constructor(components, name, ifcVersion) {\n    __publicField(this, \"name\");\n    __publicField(this, \"ifcVersion\", /* @__PURE__ */ new Set());\n    __publicField(this, \"identifier\", UUID.create());\n    __publicField(this, \"description\");\n    __publicField(this, \"instructions\");\n    __publicField(this, \"requirementsDescription\");\n    __publicField(this, \"applicability\", new FRAGS.DataSet());\n    __publicField(this, \"requirements\", new FRAGS.DataSet());\n    __publicField(this, \"components\");\n    this.components = components;\n    this.name = name;\n    for (const version of ifcVersion) {\n      this.ifcVersion.add(version);\n    }\n  }\n  set(data) {\n    const _data = data;\n    const _this = this;\n    for (const key in data) {\n      if (key === \"identifier\")\n        continue;\n      const value = _data[key];\n      if (key in this)\n        _this[key] = value;\n    }\n    const manager = this.components.get(IDSSpecifications);\n    manager.list.set(this.identifier, this);\n    return this;\n  }\n  /**\n   * Tests the model to test against the specification's requirements.\n   *\n   * @param modelId - The modelId of the model to be tested.\n   * @returns An array representing the test results.\n   * If no requirements are defined for the specification, an empty array is returned.\n   */\n  async test(modelIds, config = { skipIfFails: true }) {\n    const result = new FRAGS.DataMap();\n    if (this.requirements.size === 0)\n      return result;\n    const entities = {};\n    const applicabilityPromises = [];\n    for (const facet of this.applicability) {\n      applicabilityPromises.push(facet.getEntities(modelIds, entities));\n    }\n    await Promise.all(applicabilityPromises);\n    const requirementPromises = [];\n    for (const requirement of this.requirements) {\n      requirementPromises.push(requirement.test(entities, result, config));\n    }\n    await Promise.all(requirementPromises);\n    return result;\n  }\n  /**\n   * Serializes the IDSSpecification instance into XML format.\n   *\n   * @remarks This method is not meant to be used directly. It is used by the IDSSpecifications component.\n   *\n   * @returns The XML representation of the IDSSpecification.\n   */\n  serialize() {\n    const name = `name=\"${this.name}\"`;\n    const identifier = this.identifier ? `identifier=\"${this.identifier}\"` : \"\";\n    const description = this.description ? `description=\"${this.description}\"` : \"\";\n    const instructions = this.instructions ? `instructions=\"${this.instructions}\"` : \"\";\n    const xml = `<specification ifcVersion=\"${[...this.ifcVersion].join(\" \")}\" ${name} ${identifier} ${description} ${instructions}>\n      <applicability minOccurs=\"1\" maxOccurs=\"unbounded\">\n        ${[...this.applicability].map((facet) => facet.serialize(\"applicability\")).join(\"\\n\")}\n      </applicability>\n      <requirements>\n        ${[...this.requirements].map((facet) => facet.serialize(\"requirement\")).join(\"\\n\")}\n      </requirements>\n    </specification>`;\n    return xml;\n  }\n}\nconst getParameterValue = (property) => {\n  if (!property)\n    return void 0;\n  const result = {};\n  if (\"simpleValue\" in property) {\n    result.type = \"simple\";\n    result.parameter = property.simpleValue;\n  }\n  if (\"restriction\" in property) {\n    const restriction = property.restriction;\n    const keys = Object.keys(restriction);\n    if (\"pattern\" in restriction) {\n      result.type = \"pattern\";\n      result.parameter = restriction.pattern.value;\n    }\n    if (\"enumeration\" in restriction) {\n      result.type = \"enumeration\";\n      const enumeration = restriction.enumeration.map(\n        ({ value }) => {\n          if (restriction.base.includes(\"string\"))\n            return String(value);\n          if (restriction.base.includes(\"integer\") || restriction.base.includes(\"double\"))\n            return Number(value);\n          return value;\n        }\n      );\n      result.parameter = enumeration;\n    }\n    if (keys.some(\n      (key) => [\n        \"minInclusive\",\n        \"minExclusive\",\n        \"maxInclusive\",\n        \"maxExclusive\"\n      ].includes(key)\n    )) {\n      result.type = \"bounds\";\n      const parameter = {};\n      const minKey = keys.find((key) => key.includes(\"min\"));\n      const maxKey = keys.find((key) => key.includes(\"max\"));\n      if (minKey) {\n        parameter.minInclusive = minKey === \"minInclusive\";\n        parameter.min = restriction[minKey].value;\n      }\n      if (maxKey) {\n        parameter.maxInclusive = maxKey === \"maxInclusive\";\n        parameter.max = restriction[maxKey].value;\n      }\n      result.parameter = parameter;\n    }\n    if (keys.some((key) => [\"minLength\", \"length\", \"maxLength\"].includes(key))) {\n      result.type = \"length\";\n      const parameter = {};\n      if (restriction.length !== void 0) {\n        parameter.length = restriction.length.value;\n      }\n      if (restriction.minLength !== void 0) {\n        parameter.min = restriction.minLength.value;\n      }\n      if (restriction.maxLength !== void 0) {\n        parameter.max = restriction.maxLength.value;\n      }\n      result.parameter = parameter;\n    }\n  }\n  if (result.parameter === void 0)\n    return void 0;\n  return result;\n};\nconst createEntityFacets = (components, elements) => {\n  const facets = [];\n  for (const element of elements) {\n    const nameParameter = element.name;\n    const name = getParameterValue(nameParameter);\n    if (!name)\n      continue;\n    const facet = new IDSEntity(components, name);\n    if (element.cardinality)\n      facet.cardinality = element.cardinality;\n    facet.predefinedType = getParameterValue(element.predefinedType);\n    facet.instructions = element.instructions;\n    facets.push(facet);\n  }\n  return facets;\n};\nconst createAttributeFacets = (components, elements) => {\n  const facets = [];\n  for (const element of elements) {\n    const nameParameter = element.name;\n    const name = getParameterValue(nameParameter);\n    if (!name)\n      continue;\n    const facet = new IDSAttribute(components, name);\n    if (element.cardinality)\n      facet.cardinality = element.cardinality;\n    facet.value = getParameterValue(element.value);\n    facet.instructions = element.instructions;\n    facets.push(facet);\n  }\n  return facets;\n};\nconst createMaterialFacets = (components, elements) => {\n  const facets = [];\n  for (const element of elements) {\n    const facet = new IDSMaterial(components);\n    if (element.cardinality)\n      facet.cardinality = element.cardinality;\n    const value = getParameterValue(element.value);\n    if ((value == null ? void 0 : value.type) === \"enumeration\" && Array.isArray(value.parameter)) {\n      value.parameter = value.parameter.map(String);\n    }\n    facet.value = value;\n    facet.uri = element.uri;\n    facet.instructions = element.instructions;\n    facets.push(facet);\n  }\n  return facets;\n};\nconst createPropertyFacets = (components, elements) => {\n  const facets = [];\n  for (const element of elements) {\n    const psetParameter = element.propertySet;\n    const baseNameParameter = element.baseName;\n    const pset = getParameterValue(psetParameter);\n    const baseName = getParameterValue(baseNameParameter);\n    if (!(baseName && pset))\n      continue;\n    const facet = new IDSProperty(components, pset, baseName);\n    if (element.cardinality)\n      facet.cardinality = element.cardinality;\n    const value = getParameterValue(element.value);\n    facet.value = value;\n    facet.dataType = element.dataType;\n    facet.uri = element.uri;\n    facet.instructions = element.instructions;\n    facets.push(facet);\n  }\n  return facets;\n};\nconst createClassificationFacets = (components, elements) => {\n  const facets = [];\n  for (const element of elements) {\n    const systemParameter = element.system;\n    const system = getParameterValue(systemParameter);\n    if (!system)\n      continue;\n    const facet = new IDSClassification(components, system);\n    if (element.cardinality)\n      facet.cardinality = element.cardinality;\n    const value = getParameterValue(element.value);\n    if ((value == null ? void 0 : value.type) === \"simple\") {\n      value.parameter = String(value.parameter);\n    }\n    if ((value == null ? void 0 : value.type) === \"enumeration\" && Array.isArray(value.parameter)) {\n      value.parameter = value.parameter.map(String);\n    }\n    facet.value = value;\n    facet.uri = element.uri;\n    facet.instructions = element.instructions;\n    facets.push(facet);\n  }\n  return facets;\n};\nconst createPartOfFacets = (components, elements) => {\n  const facets = [];\n  for (const element of elements) {\n    const entityName = getParameterValue(element.entity.name);\n    if (!entityName)\n      continue;\n    const entityPredefinedType = getParameterValue(\n      element.entity.predefinedType\n    );\n    const facet = new IDSPartOf(components, {\n      name: entityName,\n      predefinedType: entityPredefinedType\n    });\n    facet.relation = element.relation;\n    if (element.cardinality)\n      facet.cardinality = element.cardinality;\n    facet.instructions = element.instructions;\n    facets.push(facet);\n  }\n  return facets;\n};\nconst _IDSSpecifications = class _IDSSpecifications extends Component {\n  constructor(components) {\n    super(components);\n    __publicField(this, \"enabled\", true);\n    __publicField(this, \"IDSInfo\");\n    __publicField(this, \"list\", new DataMap$1());\n    components.add(_IDSSpecifications.uuid, this);\n  }\n  /**\n   * Processes the results of an IDS check and categorizes the items into passing and failing.\n   *\n   * @param result - An `IDSCheckResult` object containing the check results for various model IDs.\n   * @returns An object containing two `ModelIdMap` objects:\n   *          - `pass`: A ModelIdMap representing items that passed the check.\n   *          - `fail`: A ModelIdMap representing items that failed the check.\n   */\n  getModelIdMap(result) {\n    const pass = {};\n    const fail = {};\n    for (const [modelId, items] of result) {\n      const passingResults = [...items].filter(([, result2]) => result2.pass);\n      const passingIds = passingResults.map(([localId]) => localId);\n      ModelIdMapUtils.append(pass, modelId, ...passingIds);\n      const failingResults = [...items].filter(([, result2]) => !result2.pass);\n      const failingIds = failingResults.map(([localId]) => localId);\n      ModelIdMapUtils.append(fail, modelId, ...failingIds);\n    }\n    return { pass, fail };\n  }\n  /**\n   * Creates a new IDSSpecification instance and adds it to the list.\n   *\n   * @param name - The name of the IDSSpecification.\n   * @param ifcVersion - An array of IfcVersion values that the specification supports.\n   *\n   * @returns The newly created IDSSpecification instance.\n   */\n  create(name, ifcVersion, identifier) {\n    const specification = new IDSSpecification(\n      this.components,\n      name,\n      ifcVersion\n    );\n    if (identifier)\n      specification.identifier = identifier;\n    this.list.set(specification.identifier, specification);\n    return specification;\n  }\n  /**\n   * Parses and processes an XML string containing Information Delivery Specification (IDS) data.\n   * It creates IDSSpecification instances based on the parsed data and returns them in an array.\n   * Also, the instances are added to the list array.\n   *\n   * @param data - The XML string to parse.\n   *\n   * @returns An array of IDSSpecification instances created from the parsed data.\n   */\n  load(data) {\n    const result = [];\n    const ids = _IDSSpecifications.xmlParser.parse(data).ids;\n    const { specifications, info } = ids;\n    this.IDSInfo = { ...info };\n    if (specifications && specifications.specification) {\n      const specs = Array.isArray(specifications.specification) ? specifications.specification : [specifications.specification];\n      for (const spec of specs) {\n        const { name, ifcVersion, description, instructions, identifier } = spec;\n        if (!(name && ifcVersion))\n          continue;\n        const applicabilities = [];\n        const reqs = [];\n        const { applicability, requirements } = spec;\n        if (applicability) {\n          const { maxOccurs, ...rest } = applicability;\n          const facets = Array.isArray(rest) ? rest : [rest];\n          for (const facet of facets) {\n            for (const facetName in facet) {\n              const elements = Array.isArray(facet[facetName]) ? facet[facetName] : [facet[facetName]];\n              if (facetName === \"entity\") {\n                const facets2 = createEntityFacets(this.components, elements);\n                applicabilities.push(...facets2);\n              }\n              if (facetName === \"attribute\") {\n                const facets2 = createAttributeFacets(this.components, elements);\n                applicabilities.push(...facets2);\n              }\n              if (facetName === \"material\") {\n                const facets2 = createMaterialFacets(this.components, elements);\n                applicabilities.push(...facets2);\n              }\n              if (facetName === \"classification\") {\n                const facets2 = createClassificationFacets(\n                  this.components,\n                  elements\n                );\n                applicabilities.push(...facets2);\n              }\n              if (facetName === \"property\") {\n                const facets2 = createPropertyFacets(this.components, elements);\n                applicabilities.push(...facets2);\n              }\n              if (facetName === \"partOf\") {\n                const facets2 = createPartOfFacets(this.components, elements);\n                applicabilities.push(...facets2);\n              }\n            }\n          }\n        }\n        let requirementsDescription;\n        if (requirements) {\n          const { maxOccurs, ...rest } = requirements;\n          requirementsDescription = requirements.description;\n          const facets = Array.isArray(rest) ? rest : [rest];\n          for (const facet of facets) {\n            for (const facetName in facet) {\n              const elements = Array.isArray(facet[facetName]) ? facet[facetName] : [facet[facetName]];\n              if (facetName === \"entity\") {\n                const facets2 = createEntityFacets(this.components, elements);\n                reqs.push(...facets2);\n              }\n              if (facetName === \"attribute\") {\n                const facets2 = createAttributeFacets(this.components, elements);\n                reqs.push(...facets2);\n              }\n              if (facetName === \"material\") {\n                const facets2 = createMaterialFacets(this.components, elements);\n                reqs.push(...facets2);\n              }\n              if (facetName === \"classification\") {\n                const facets2 = createClassificationFacets(\n                  this.components,\n                  elements\n                );\n                reqs.push(...facets2);\n              }\n              if (facetName === \"property\") {\n                const facets2 = createPropertyFacets(this.components, elements);\n                reqs.push(...facets2);\n              }\n              if (facetName === \"partOf\") {\n                const facets2 = createPartOfFacets(this.components, elements);\n                reqs.push(...facets2);\n              }\n            }\n          }\n        }\n        const specification = this.create(\n          name,\n          ifcVersion.split(/\\s+/),\n          identifier\n        );\n        specification.description = description;\n        specification.instructions = instructions;\n        specification.requirementsDescription = requirementsDescription;\n        specification.applicability.add(...applicabilities);\n        specification.requirements.add(...reqs);\n        result.push(specification);\n      }\n    }\n    return result;\n  }\n  /**\n   * Exports the IDSSpecifications data into an XML string.\n   *\n   * @param info - The metadata information for the exported XML.\n   * @param specifications - An optional iterable of IDSSpecification instances to export.\n   * If not provided, all specifications in the list will be exported.\n   *\n   * @returns A string containing the exported IDSSpecifications data in XML format.\n   */\n  export(info, specifications = this.list.values()) {\n    const _specifications = specifications ?? this.list;\n    const xml = `<ids xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://standards.buildingsmart.org/IDS http://standards.buildingsmart.org/IDS/1.0/ids.xsd\" xmlns:ids=\"http://standards.buildingsmart.org/IDS\">\n  <!-- Made with That Open Engine ${Components.release} (https://github.com/thatopen/engine_components) -->\n  <info>\n    <title>${info.title}</title>\n    ${info.copyright ? `<copyright>${info.copyright}</copyright>` : \"\"}\n    ${info.version ? `<version>${info.version}</version>` : \"\"}\n    ${info.description ? `<description>${info.description}</description>` : \"\"}\n    ${info.author ? `<author>${info.author}</author>` : \"\"}\n    ${info.date ? `<date>${info.date.toISOString().split(\"T\")[0]}</date>` : \"\"}\n    ${info.purpose ? `<purpose>${info.purpose}</purpose>` : \"\"}\n    ${info.milestone ? `<milestone>${info.milestone}</milestone>` : \"\"}\n  </info>\n  <specifications>\n    ${[..._specifications].map((spec) => spec.serialize()).join(\"\\n\")}\n  </specifications>\n</ids>`;\n    return xml;\n  }\n};\n__publicField(_IDSSpecifications, \"uuid\", \"9f0b9f78-9b2e-481a-b766-2fbfd01f342c\");\n__publicField(_IDSSpecifications, \"xmlParser\", new XMLParser({\n  allowBooleanAttributes: true,\n  attributeNamePrefix: \"\",\n  ignoreAttributes: false,\n  ignoreDeclaration: true,\n  ignorePiTags: true,\n  numberParseOptions: { leadingZeros: true, hex: true },\n  parseAttributeValue: true,\n  preserveOrder: false,\n  processEntities: false,\n  removeNSPrefix: true,\n  trimValues: true\n}));\nlet IDSSpecifications = _IDSSpecifications;\nconst _MeasurementUtils = class _MeasurementUtils extends Component {\n  constructor(components) {\n    super(components);\n    /** {@link Component.enabled} */\n    __publicField(this, \"enabled\", true);\n    components.add(_MeasurementUtils.uuid, this);\n  }\n  /**\n   * Utility method to calculate the distance from a point to a line segment.\n   *\n   * @param point - The point from which to calculate the distance.\n   * @param lineStart - The start point of the line segment.\n   * @param lineEnd - The end point of the line segment.\n   * @param clamp - If true, the distance will be clamped to the line segment's length.\n   * @returns The distance from the point to the line segment.\n   */\n  static distanceFromPointToLine(point, lineStart, lineEnd, clamp = false) {\n    const tempLine = new THREE.Line3();\n    const tempPoint = new THREE.Vector3();\n    tempLine.set(lineStart, lineEnd);\n    tempLine.closestPointToPoint(point, clamp, tempPoint);\n    return tempPoint.distanceTo(point);\n  }\n  // /**\n  //  * Method to get the face of a mesh that contains a given triangle index.\n  //  * It also returns the edges of the found face and their indices.\n  //  *\n  //  * @param mesh - The mesh to get the face from. It must be indexed.\n  //  * @param triangleIndex - The index of the triangle within the mesh.\n  //  * @param instance - The instance of the mesh (optional).\n  //  * @returns An object containing the edges of the found face and their indices, or null if no face was found.\n  //  */\n  // getFace(\n  //   mesh: THREE.InstancedMesh | THREE.Mesh,\n  //   triangleIndex: number,\n  //   instance?: number,\n  // ) {\n  //   if (!mesh.geometry.index) {\n  //     throw new Error(\"Geometry must be indexed!\");\n  //   }\n  //   const allEdges = new Map<string, MeasureEdge>();\n  //   const indices = mesh.geometry.index.array;\n  //   // Find out the raycasted face plane\n  //   const { plane: targetPlane } = this.getFaceData(\n  //     triangleIndex,\n  //     instance,\n  //     mesh,\n  //   );\n  //   // Get the face where the given triangle belongs\n  //   const coplanarFacesIndices: {\n  //     index: number;\n  //     edges: { id: string; distance: number; points: THREE.Vector3[] }[];\n  //   }[] = [];\n  //   for (let faceIndex = 0; faceIndex < indices.length / 3; faceIndex++) {\n  //     const { plane, edges } = this.getFaceData(faceIndex, instance, mesh);\n  //     if (plane.equals(targetPlane)) {\n  //       coplanarFacesIndices.push({ index: faceIndex, edges });\n  //       for (const { id, points, distance } of edges) {\n  //         allEdges.set(id, { points, distance });\n  //       }\n  //     }\n  //   }\n  //   // Now, let's get all faces (groups of adjacent triangles)\n  //   // To visualize this, draw all possible cases on paper, it's easy\n  //   let nextFaceID = 0;\n  //   const edgeFaceMap = new Map<string, number>();\n  //   const faceEdgesMap = new Map<\n  //     number,\n  //     { edges: Set<string>; indices: Set<number> }\n  //   >();\n  //   for (const { index, edges } of coplanarFacesIndices) {\n  //     const commonEdgesFaces = new Map<string, number>();\n  //     for (const { id: edge } of edges) {\n  //       if (edgeFaceMap.has(edge)) {\n  //         const commonFace = edgeFaceMap.get(edge) as number;\n  //         commonEdgesFaces.set(edge, commonFace);\n  //       }\n  //     }\n  //     const edgesIDs = edges.map((edge) => edge.id);\n  //     // Triangle is isolated, just create a new face\n  //     if (!commonEdgesFaces.size) {\n  //       const faceID = nextFaceID++;\n  //       for (const { id: edge } of edges) {\n  //         edgeFaceMap.set(edge, faceID);\n  //       }\n  //       faceEdgesMap.set(faceID, {\n  //         edges: new Set(edgesIDs),\n  //         indices: new Set([index]),\n  //       });\n  //       continue;\n  //     }\n  //     // Triangle has common edges with existing faces\n  //     let firstFaceID: number | null = null;\n  //     const otherFaces = new Set<number>();\n  //     const edgesToAdd = new Set(edgesIDs);\n  //     // First, remove all common edges\n  //     for (const [edge, faceID] of commonEdgesFaces) {\n  //       if (firstFaceID === null) {\n  //         firstFaceID = faceID;\n  //       } else if (faceID !== firstFaceID) {\n  //         otherFaces.add(faceID);\n  //       }\n  //       edgeFaceMap.delete(edge);\n  //       const { edges: foundFaceEdges } = faceEdgesMap.get(faceID)!;\n  //       foundFaceEdges.delete(edge);\n  //       edgesToAdd.delete(edge);\n  //     }\n  //     // If we hadn't found a face, we wouldn't be here\n  //     if (firstFaceID === null) {\n  //       throw new Error(\"Error computing face!\");\n  //     }\n  //     // Now, let's merge this triangle with the first face\n  //     const firstFace = faceEdgesMap.get(firstFaceID)!;\n  //     const { indices: firstFaceIndices } = firstFace;\n  //     firstFaceIndices.add(index);\n  //     for (const edge of edgesToAdd) {\n  //       edgeFaceMap.set(edge, firstFaceID);\n  //       const { edges: firstFaceEdges } = firstFace;\n  //       firstFaceEdges.add(edge);\n  //     }\n  //     // Finally, if there were other faces in common\n  //     // merge them with the first one\n  //     for (const faceID of otherFaces) {\n  //       const otherFace = faceEdgesMap.get(faceID)!;\n  //       const { edges: otherEdges, indices: otherIndices } = otherFace;\n  //       const firstFace = faceEdgesMap.get(firstFaceID)!;\n  //       const { edges: firstEdges, indices: firstIndices } = firstFace;\n  //       for (const edge of otherEdges) {\n  //         firstEdges.add(edge);\n  //         edgeFaceMap.set(edge, firstFaceID);\n  //       }\n  //       for (const index of otherIndices) {\n  //         firstIndices.add(index);\n  //       }\n  //       faceEdgesMap.delete(faceID);\n  //     }\n  //   }\n  //   for (const [_faceID, { indices, edges }] of faceEdgesMap) {\n  //     if (indices.has(triangleIndex)) {\n  //       const foundEdges: MeasureEdge[] = [];\n  //       for (const edgeID of edges) {\n  //         const foundEdge = allEdges.get(edgeID)!;\n  //         foundEdges.push(foundEdge);\n  //       }\n  //       return { edges: foundEdges, indices };\n  //     }\n  //   }\n  //   return null;\n  // }\n  // /**\n  //  * Method to get the vertices and normal of a mesh face at a given index.\n  //  * It also applies instance transformation if provided.\n  //  *\n  //  * @param mesh - The mesh to get the face from. It must be indexed.\n  //  * @param faceIndex - The index of the face within the mesh.\n  //  * @param instance - The instance of the mesh (optional).\n  //  * @returns An object containing the vertices and normal of the face.\n  //  * @throws Will throw an error if the geometry is not indexed.\n  //  */\n  // getVerticesAndNormal(\n  //   mesh: THREE.Mesh | THREE.InstancedMesh,\n  //   faceIndex: number,\n  //   instance: number | undefined,\n  // ) {\n  //   if (!mesh.geometry.index) {\n  //     throw new Error(\"Geometry must be indexed!\");\n  //   }\n  //   const indices = mesh.geometry.index.array;\n  //   const pos = mesh.geometry.attributes.position.array;\n  //   const nor = mesh.geometry.attributes.normal.array;\n  //   const i1 = indices[faceIndex * 3] * 3;\n  //   const i2 = indices[faceIndex * 3 + 1] * 3;\n  //   const i3 = indices[faceIndex * 3 + 2] * 3;\n  //   const p1 = new THREE.Vector3(pos[i1], pos[i1 + 1], pos[i1 + 2]);\n  //   const p2 = new THREE.Vector3(pos[i2], pos[i2 + 1], pos[i2 + 2]);\n  //   const p3 = new THREE.Vector3(pos[i3], pos[i3 + 1], pos[i3 + 2]);\n  //   const n1 = new THREE.Vector3(nor[i1], nor[i1 + 1], nor[i1 + 2]);\n  //   const n2 = new THREE.Vector3(nor[i2], nor[i2 + 1], nor[i2 + 2]);\n  //   const n3 = new THREE.Vector3(nor[i3], nor[i3 + 1], nor[i3 + 2]);\n  //   const averageNx = (n1.x + n2.x + n3.x) / 3;\n  //   const averageNy = (n1.y + n2.y + n3.y) / 3;\n  //   const averageNz = (n1.z + n2.z + n3.z) / 3;\n  //   const faceNormal = new THREE.Vector3(averageNx, averageNy, averageNz);\n  //   // Apply instance transformation to vertex and normal\n  //   if (instance !== undefined && mesh instanceof THREE.InstancedMesh) {\n  //     const transform = new THREE.Matrix4();\n  //     mesh.getMatrixAt(instance, transform);\n  //     const rotation = new THREE.Matrix4();\n  //     rotation.extractRotation(transform);\n  //     faceNormal.applyMatrix4(rotation);\n  //     p1.applyMatrix4(transform);\n  //     p2.applyMatrix4(transform);\n  //     p3.applyMatrix4(transform);\n  //   }\n  //   return { p1, p2, p3, faceNormal };\n  // }\n  /**\n   * Method to round the vector's components to a specified number of decimal places.\n   * This is used to ensure numerical precision in edge detection.\n   *\n   * @param vector - The vector to round.\n   * @returns The vector with rounded components.\n   */\n  round(vector) {\n    const factor = 1e3;\n    vector.x = Math.trunc(vector.x * factor) / factor;\n    vector.y = Math.trunc(vector.y * factor) / factor;\n    vector.z = Math.trunc(vector.z * factor) / factor;\n  }\n  /**\n   * @deprecated Use {@link getItemsVolume} instead.\n   *\n   * Calculates the volume of a set of items.\n   */\n  async getVolumeFromFragments(modelIdMap) {\n    console.warn(\n      \"getVolumeFromFragments is deprecated. Use getItemsVolume instead.\"\n    );\n    return this.getItemsVolume(modelIdMap);\n  }\n  /**\n   * Calculates the total volume of items for a given map of model IDs to local IDs.\n   * @param modelIdMap A map where the key is the model ID and the value is an array of local IDs.\n   * @returns A promise that resolves to the total volume of the specified items.\n   */\n  async getItemsVolume(modelIdMap) {\n    let volume = 0;\n    const fragments = this.components.get(FragmentsManager);\n    for (const [modelId, localIds] of Object.entries(modelIdMap)) {\n      const model = fragments.list.get(modelId);\n      if (!model)\n        continue;\n      volume += await model.getItemsVolume([...localIds]);\n    }\n    return volume;\n  }\n  // private getFaceData(\n  //   faceIndex: number,\n  //   instance: number | undefined,\n  //   mesh: THREE.Mesh | THREE.InstancedMesh,\n  // ) {\n  //   const found = this.getVerticesAndNormal(mesh, faceIndex, instance);\n  //   const { p1, p2, p3, faceNormal } = found;\n  //   // Round numbers to make sure numerical precision\n  //   // doesn't affect edge detection\n  //   this.round(p1);\n  //   this.round(p2);\n  //   this.round(p3);\n  //   this.round(faceNormal);\n  //   // To make sure the edge AB === the edge BA\n  //   const vertices = [\n  //     { id: `${p1.x}|${p1.y}|${p1.z}`, value: p1 },\n  //     { id: `${p2.x}|${p2.y}|${p2.z}`, value: p2 },\n  //     { id: `${p3.x}|${p3.y}|${p3.z}`, value: p3 },\n  //   ];\n  //   vertices.sort((a, b) => {\n  //     if (a.id < b.id) {\n  //       return -1;\n  //     }\n  //     if (a.id > b.id) {\n  //       return 1;\n  //     }\n  //     return 0;\n  //   });\n  //   const [\n  //     { id: id1, value: v1 },\n  //     { id: id2, value: v2 },\n  //     { id: id3, value: v3 },\n  //   ] = vertices;\n  //   // Create IDs to identify the edges\n  //   const edges = [\n  //     {\n  //       id: `${id1}|${id2}`,\n  //       distance: v1.distanceTo(v2),\n  //       points: [v1, v2],\n  //     },\n  //     {\n  //       id: `${id2}|${id3}`,\n  //       distance: v2.distanceTo(v3),\n  //       points: [v2, v3],\n  //     },\n  //     {\n  //       id: `${id1}|${id3}`,\n  //       distance: v1.distanceTo(v3),\n  //       points: [v1, v3],\n  //     },\n  //   ];\n  //   const plane = new THREE.Plane();\n  //   plane.setFromNormalAndCoplanarPoint(faceNormal, p1);\n  //   plane.constant = Math.round(plane.constant * 10) / 10;\n  //   return { plane, edges };\n  // }\n  /**\n   * Converts a value from one unit to another for length, area, or volume without using external libraries.\n   *\n   * @param value - The value to convert.\n   * @param fromUnit - The unit of the input value (e.g., \"m\", \"cm\", \"mm\" for lengths; \"m2\", \"cm2\" for areas; \"m3\", \"cm3\" for volumes).\n   * @param toUnit - The unit to convert to (e.g., \"cm\", \"mm\", \"m\" for lengths; \"cm2\", \"m2\" for areas; \"cm3\", \"m3\" for volumes).\n   * @param precision - The number of decimal places to round the result to, as number between 0 and 5. (default is 2).\n   * @throws {Error} If the rounding value is not a valid integer or is out of range (0-5).\n   * @returns The converted value rounded to the specified precision.\n   */\n  static convertUnits(value, fromUnit, toUnit, precision = 2) {\n    const unitFactors = {\n      // Length\n      m: 1,\n      cm: 0.01,\n      mm: 1e-3,\n      km: 1e3,\n      // Area\n      m2: 1,\n      cm2: 1e-4,\n      mm2: 1e-6,\n      km2: 1e6,\n      // Volume\n      m3: 1,\n      cm3: 1e-6,\n      mm3: 1e-9,\n      km3: 1e9\n    };\n    if (!unitFactors[fromUnit] || !unitFactors[toUnit]) {\n      throw new Error(\"Invalid units provided for conversion.\");\n    }\n    if (!Number.isInteger(precision) || precision < 0 || precision > 5) {\n      throw new Error(\"Precision must be an integer between 0 and 5.\");\n    }\n    let factor = unitFactors[fromUnit] / unitFactors[toUnit];\n    const convertedValue = value * factor;\n    const roundingFactor = 10 ** precision;\n    return Math.round(convertedValue * roundingFactor) / roundingFactor;\n  }\n};\n/**\n * A unique identifier for the component.\n * This UUID is used to register the component within the Components system.\n */\n__publicField(_MeasurementUtils, \"uuid\", \"267ca032-672f-4cb0-afa9-d24e904f39d6\");\nlet MeasurementUtils = _MeasurementUtils;\nexport {\n  AsyncEvent,\n  BCFTopics,\n  BCFTopicsConfigManager,\n  Base,\n  BaseCamera,\n  BaseRenderer,\n  BaseScene,\n  BaseWorldItem,\n  BoundingBoxer,\n  Classifier,\n  Clipper,\n  Comment,\n  Component,\n  Components,\n  ConfigManager,\n  Configurator,\n  ControlsUtils,\n  DataMap,\n  DataSet,\n  Disposer,\n  Event,\n  EventManager,\n  FastModelPicker,\n  FastModelPickers,\n  FinderQuery,\n  FirstPersonMode,\n  FragmentsManager,\n  Grids,\n  Hider,\n  IDSAttribute,\n  IDSClassification,\n  IDSEntity,\n  IDSFacet,\n  IDSMaterial,\n  IDSPartOf,\n  IDSProperty,\n  IDSSpecification,\n  IDSSpecifications,\n  IfcFragmentSettings,\n  IfcLoader,\n  ItemsFinder,\n  MeasurementUtils,\n  ModelIdMapUtils,\n  Mouse,\n  OrbitMode,\n  OrthoPerspectiveCamera,\n  PlanMode,\n  ProjectionManager,\n  Raycasters,\n  RendererMode,\n  ShadowedScene,\n  SimpleCamera,\n  SimpleGrid,\n  SimpleGridConfigManager,\n  SimplePlane,\n  SimpleRaycaster,\n  SimpleRenderer,\n  SimpleScene,\n  SimpleSceneConfigManager,\n  SimpleWorld,\n  Topic,\n  UUID,\n  VertexPicker,\n  View,\n  Viewpoint,\n  Viewpoints,\n  Views,\n  Worlds,\n  XML,\n  extensionsImporter\n};\n"]}