/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
function singleton(create) {
  let instance;
  return () => {
    if (instance === void 0) instance = create();
    return instance;
  };
}
export {
  singleton
};
//# sourceMappingURL=Singleton.js.map
