System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5", "__unresolved_6", "__unresolved_7", "__unresolved_8"], function (_export, _context) {
  "use strict";

  var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Component, profiler, audioMgr, csvMgr, bundleMgr, settingData, Data, platformSystem, BusyLoadingManager, ResUtil, _dec, _class, _crd, ccclass, property, Loading;

  function _reportPossibleCrUseOfaudioMgr(extras) {
    _reporterNs.report("audioMgr", "../core/manager/AudioManager", _context.meta, extras);
  }

  function _reportPossibleCrUseOfcsvMgr(extras) {
    _reporterNs.report("csvMgr", "../core/csv/CsvManager", _context.meta, extras);
  }

  function _reportPossibleCrUseOfbundleMgr(extras) {
    _reporterNs.report("bundleMgr", "../core/manager/BundleManager", _context.meta, extras);
  }

  function _reportPossibleCrUseOfsettingData(extras) {
    _reporterNs.report("settingData", "../user/SettingData", _context.meta, extras);
  }

  function _reportPossibleCrUseOfData(extras) {
    _reporterNs.report("Data", "../core/manager/Data", _context.meta, extras);
  }

  function _reportPossibleCrUseOfplatformSystem(extras) {
    _reporterNs.report("platformSystem", "../platform/platformSystem", _context.meta, extras);
  }

  function _reportPossibleCrUseOfBusyLoadingManager(extras) {
    _reporterNs.report("BusyLoadingManager", "../core/manager/BusyLoadingManager", _context.meta, extras);
  }

  function _reportPossibleCrUseOfResUtil(extras) {
    _reporterNs.report("ResUtil", "../core/utils/ResUtil", _context.meta, extras);
  }

  return {
    setters: [function (_unresolved_) {
      _reporterNs = _unresolved_;
    }, function (_cc) {
      _cclegacy = _cc.cclegacy;
      __checkObsolete__ = _cc.__checkObsolete__;
      __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
      _decorator = _cc._decorator;
      Component = _cc.Component;
      profiler = _cc.profiler;
    }, function (_unresolved_2) {
      audioMgr = _unresolved_2.audioMgr;
    }, function (_unresolved_3) {
      csvMgr = _unresolved_3.csvMgr;
    }, function (_unresolved_4) {
      bundleMgr = _unresolved_4.bundleMgr;
    }, function (_unresolved_5) {
      settingData = _unresolved_5.settingData;
    }, function (_unresolved_6) {
      Data = _unresolved_6.default;
    }, function (_unresolved_7) {
      platformSystem = _unresolved_7.default;
    }, function (_unresolved_8) {
      BusyLoadingManager = _unresolved_8.default;
    }, function (_unresolved_9) {
      ResUtil = _unresolved_9.ResUtil;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "3e27bLpQV9LjZgHxH5Nb2U0", "Loading", undefined);

      __checkObsolete__(['_decorator', 'Component', 'director', 'profiler']);

      ({
        ccclass,
        property
      } = _decorator);

      _export("Loading", Loading = (_dec = ccclass('Loading'), _dec(_class = class Loading extends Component {
        async start() {
          //关闭FPS展示
          profiler.hideStats(); //先加载配置资源包

          await (_crd && bundleMgr === void 0 ? (_reportPossibleCrUseOfbundleMgr({
            error: Error()
          }), bundleMgr) : bundleMgr).preloadConfigAllRes(); //加载音效

          await (_crd && audioMgr === void 0 ? (_reportPossibleCrUseOfaudioMgr({
            error: Error()
          }), audioMgr) : audioMgr).initialize(); //调用事例 加载所有CSV表

          await (_crd && csvMgr === void 0 ? (_reportPossibleCrUseOfcsvMgr({
            error: Error()
          }), csvMgr) : csvMgr).loadAll();
          (_crd && BusyLoadingManager === void 0 ? (_reportPossibleCrUseOfBusyLoadingManager({
            error: Error()
          }), BusyLoadingManager) : BusyLoadingManager).ins; //设置

          (_crd && settingData === void 0 ? (_reportPossibleCrUseOfsettingData({
            error: Error()
          }), settingData) : settingData).loadFromCache(); //数据加载

          (_crd && Data === void 0 ? (_reportPossibleCrUseOfData({
            error: Error()
          }), Data) : Data).loadData(); //初始化平台接口

          (_crd && platformSystem === void 0 ? (_reportPossibleCrUseOfplatformSystem({
            error: Error()
          }), platformSystem) : platformSystem).initialize(); //启动场景

          (_crd && ResUtil === void 0 ? (_reportPossibleCrUseOfResUtil({
            error: Error()
          }), ResUtil) : ResUtil).enteScene("main");
        }

      }) || _class));

      _cclegacy._RF.pop();

      _crd = false;
    }
  };
});
//# sourceMappingURL=257ac0458ef8df599197dc5aa9234041bbaeb3b9.js.map