__quick_compile__.js 34.6 KB

(function () {
var scripts = [{"deps":{"./assets/script/avg/ActionManager":12,"./assets/script/avg/PlotManager":8,"./assets/script/avg/EditorEnums":32,"./assets/script/GameConfig":4,"./assets/script/avg/game-data/GameVariables":30,"./assets/script/avg/game-data/PlotsData":33,"./assets/script/avg/game-data/EditorGameVariables":38,"./assets/script/avg/game-data/GameRecord":2,"./assets/script/avg/model/ActionModel":36,"./assets/script/avg/model/PlotModel":16,"./assets/script/avg/model/RichTextModel":34,"./assets/script/avg/model/ConditionModel":40,"./assets/script/avg/utils/PlotUtils":39,"./assets/script/avg/utils/RichTextUtils":9,"./assets/script/common/classbase/PresenterBase":17,"./assets/script/common/classbase/ViewBase":37,"./assets/script/common/classbase/CCViewBase":44,"./assets/script/common/components/FrameAnimation":48,"./assets/script/common/components/SoundEffectButton":43,"./assets/script/common/components/SVButton":19,"./assets/script/common/event/BaseEvents":18,"./assets/script/common/CCDummyObjects":35,"./assets/script/common/utils/AnimationUtils":53,"./assets/script/common/utils/ScheduleUtils":55,"./assets/script/common/utils/StringUtils":3,"./assets/script/common/utils/ResUtils":41,"./assets/script/common/utils/NodePoolFactory":50,"./assets/script/common/type/TypeTest":20,"./assets/script/common/type/Type":42,"./assets/script/config/BannerRewardsConfig":21,"./assets/script/config/ConstConfig":52,"./assets/script/config/DailyQuestConfig":49,"./assets/script/config/DailyRewardsConfig":46,"./assets/script/config/GiftReplyConfig":54,"./assets/script/config/DateSceneConfig":45,"./assets/script/config/I18nConfig":47,"./assets/script/config/MessageSceneConfig":51,"./assets/script/config/ItemConfig":56,"./assets/script/config/RelationLevelConfig":63,"./assets/script/config/RoleInfoConfig":57,"./assets/script/config/Role":76,"./assets/script/config/SceneType":59,"./assets/script/config/AchievementConfig":58,"./assets/script/game/Launcher":60,"./assets/script/game/GameEvents":62,"./assets/script/game/Enums":85,"./assets/script/game/model/GameModelManager":14,"./assets/script/game/model/GameRoleDataModel":61,"./assets/script/game/model/MessageSceneModel":77,"./assets/script/game/model/DatingEventSceneModel":64,"./assets/script/game/network/HttpRequests":22,"./assets/script/game/ui/PresenterCCViewFactory":66,"./assets/script/game/ui/baseview/impl/ListViewImpl":10,"./assets/script/game/ui/baseview/impl/ListSubviewImpl":112,"./assets/script/game/ui/baseview/impl/ListItemImpl":71,"./assets/script/game/ui/baseview/ListView":23,"./assets/script/game/ui/presenter/DatingEventViewPresenter":65,"./assets/script/game/ui/presenter/DatingScenePresenter":13,"./assets/script/game/ui/presenter/MainViewPresenter":73,"./assets/script/game/ui/presenter/LikeLevelSubpresenter":68,"./assets/script/game/ui/presenter/ExchangeCodeViewPresenter":67,"./assets/script/game/ui/presenter/NoticeViewPresenter":69,"./assets/script/game/ui/presenter/MessageViewPresenter":70,"./assets/script/game/ui/presenter/PhoneCallViewPresenter":75,"./assets/script/game/ui/presenter/SentenceSelectorViewPresenter":72,"./assets/script/game/ui/presenter/ChatListViewPresenter":1,"./assets/script/game/ui/presenter/discover/DiscoverSettingViewPresenter":26,"./assets/script/game/ui/presenter/message/ImagePreviewPresenter":24,"./assets/script/avg/EditorEvents":31,"./assets/script/common/gameplay/gamedata/GameTextData":74,"./assets/script/common/gameplay/gamedata/GameEnumData":94,"./assets/script/common/gameplay/gamedata/GameConstData":25,"./assets/script/common/gameplay/managers/ConfigManager":78,"./assets/script/common/gameplay/managers/ToastManager":80,"./assets/script/common/gameplay/managers/AudioManager":90,"./assets/script/common/gameplay/managers/UIManager":5,"./assets/script/common/gameplay/managers/AlertManager":79,"./assets/script/common/gameplay/settings/GameBasicSettings":27,"./assets/script/common/gameplay/gamedata/GameResData":81,"./assets/script/game/ui/view/impl/ExchangeCodeViewImpl":91,"./assets/script/game/ui/view/impl/DatingEventViewImpl":83,"./assets/script/game/ui/view/impl/LikeLevelSubviewImpl":84,"./assets/script/game/ui/view/impl/MainViewImpl":86,"./assets/script/game/ui/view/impl/MessageViewImpl":87,"./assets/script/game/ui/view/impl/NoticeViewImpl":88,"./assets/script/game/ui/view/impl/MessageEntryItem":82,"./assets/script/game/ui/view/impl/SinInDayitemImpl":89,"./assets/script/game/ui/view/impl/PhoneCallViewImpl":11,"./assets/script/game/ui/view/impl/AlertToBeContinueImpl":92,"./assets/script/game/ui/view/impl/dating/DatingEventSubviewImpl":28,"./assets/script/game/ui/view/impl/dating/DatingSceneViewImpl":95,"./assets/script/game/ui/view/impl/dating/DatingEventItemViewImpl":97,"./assets/script/game/ui/view/impl/discover/DiscoverSettingViewImpl":29,"./assets/script/game/ui/view/impl/message/ChatBubbleView":6,"./assets/script/game/ui/view/impl/message/SentenceSelectorViewImpl":96,"./assets/script/game/ui/view/impl/message/ImagePreviewViewImpl":93,"./assets/script/game/ui/view/type/ExChangeCodeView":100,"./assets/script/game/ui/view/type/ChatListView":110,"./assets/script/game/ui/view/type/DatingEventView":98,"./assets/script/game/ui/view/type/DatingSceneView":107,"./assets/script/game/ui/view/type/ImagePreviewView":99,"./assets/script/game/ui/view/type/LikeLevelSubview":104,"./assets/script/game/ui/view/type/ItemView":106,"./assets/script/game/ui/view/type/MainView":102,"./assets/script/game/ui/view/type/MessageView":101,"./assets/script/game/ui/view/type/PhoneCallView":109,"./assets/script/game/ui/view/type/TabView":111,"./assets/script/game/ui/view/type/NoticeView":103,"./assets/script/game/ui/view/type/SentenceSelectorView":108,"./assets/script/game/ui/view/type/DatingEventSubview":105,"./assets/script/game/ui/view/type/discover/DiscoverSettingView":15,"./assets/script/game/ui/view/impl/ChatListViewImpl":7},"path":"preview-scripts/__qc_index__.js"},{"deps":{"../../../avg/ActionManager":12,"../../../avg/EditorEnums":32,"../../../avg/game-data/GameRecord":2,"../../../avg/game-data/PlotsData":33,"../../../common/classbase/PresenterBase":17,"../../../common/gameplay/managers/UIManager":5,"../../../avg/PlotManager":8,"../../Enums":85,"../../model/GameModelManager":14,"../PresenterCCViewFactory":66,"../view/type/ChatListView":110,"./SentenceSelectorViewPresenter":72,"simba-eventkit":116,"simba-utils":122},"path":"preview-scripts/assets/script/game/ui/presenter/ChatListViewPresenter.js"},{"deps":{"./GameVariables":30,"../../GameConfig":4,"./PlotsData":33,"../model/PlotModel":16,"simba-eventkit":116,"simba-sdk":113,"simba-utils":122,"simba-localstorage":121},"path":"preview-scripts/assets/script/avg/game-data/GameRecord.js"},{"deps":{},"path":"preview-scripts/assets/script/common/utils/StringUtils.js"},{"deps":{"simba-httpclient":114,"simba-sdk-dummy":115,"simba-sdk":113},"path":"preview-scripts/assets/script/GameConfig.js"},{"deps":{"../../utils/ResUtils":41,"./ToastManager":80,"../../classbase/CCViewBase":44,"../../classbase/PresenterBase":17,"./AlertManager":79},"path":"preview-scripts/assets/script/common/gameplay/managers/UIManager.js"},{"deps":{"../../../../../avg/model/PlotModel":16,"../../../../../avg/utils/RichTextUtils":9,"../../../../../common/gameplay/managers/AudioManager":90,"../../../../../common/CCDummyObjects":35,"../../../../../common/utils/ResUtils":41,"../../../../../common/gameplay/managers/UIManager":5,"../../../presenter/message/ImagePreviewPresenter":24},"path":"preview-scripts/assets/script/game/ui/view/impl/message/ChatBubbleView.js"},{"deps":{"../../../../common/classbase/CCViewBase":44,"../type/ChatListView":110,"../../../../common/CCDummyObjects":35,"./message/ChatBubbleView":6,"../../PresenterCCViewFactory":66,"../../../../avg/utils/RichTextUtils":9,"../../../../common/utils/NodePoolFactory":50,"../../../../avg/model/PlotModel":16,"simba-utils":122},"path":"preview-scripts/assets/script/game/ui/view/impl/ChatListViewImpl.js"},{"deps":{"./ActionManager":12,"./EditorEvents":31,"./game-data/GameRecord":2,"./model/PlotModel":16,"./game-data/PlotsData":33,"./utils/PlotUtils":39,"simba-eventkit":116},"path":"preview-scripts/assets/script/avg/PlotManager.js"},{"deps":{"../model/RichTextModel":34,"./PlotUtils":39},"path":"preview-scripts/assets/script/avg/utils/RichTextUtils.js"},{"deps":{"../../../../common/classbase/CCViewBase":44,"../../../../common/CCDummyObjects":35,"simba-utils":122},"path":"preview-scripts/assets/script/game/ui/baseview/impl/ListViewImpl.js"},{"deps":{"../type/PhoneCallView":109,"../../../../common/classbase/CCViewBase":44,"../../PresenterCCViewFactory":66,"../../../../avg/model/PlotModel":16,"../../../../common/CCDummyObjects":35,"../../../../avg/utils/RichTextUtils":9,"../../../../common/gameplay/managers/AudioManager":90,"../../../../common/utils/ResUtils":41},"path":"preview-scripts/assets/script/game/ui/view/impl/PhoneCallViewImpl.js"},{"deps":{"./model/ActionModel":36,"./EditorEvents":31,"./game-data/GameRecord":2,"../common/gameplay/managers/AudioManager":90,"simba-random":117},"path":"preview-scripts/assets/script/avg/ActionManager.js"},{"deps":{"../PresenterCCViewFactory":66,"../../Enums":85,"./SentenceSelectorViewPresenter":72,"../../model/GameModelManager":14,"../../model/DatingEventSceneModel":64,"../../../avg/ActionManager":12,"../../../avg/EditorEvents":31,"../../../avg/model/PlotModel":16,"../../../avg/PlotManager":8,"../../../avg/game-data/GameRecord":2,"../../../avg/game-data/PlotsData":33,"../../../avg/utils/RichTextUtils":9,"../../../common/classbase/PresenterBase":17,"../view/type/DatingSceneView":107,"../../../common/gameplay/managers/AudioManager":90,"../../../common/gameplay/managers/UIManager":5,"../../../common/gameplay/gamedata/GameConstData":25,"simba-utils":122},"path":"preview-scripts/assets/script/game/ui/presenter/DatingScenePresenter.js"},{"deps":{"../Enums":85,"./GameRoleDataModel":61,"./MessageSceneModel":77,"./DatingEventSceneModel":64,"../../avg/EditorEvents":31,"../../avg/EditorEnums":32,"../../avg/model/PlotModel":16,"../../avg/game-data/GameRecord":2,"../../avg/PlotManager":8,"../../config/ConstConfig":52,"../../config/ItemConfig":56,"../../config/BannerRewardsConfig":21,"../../config/AchievementConfig":58,"../../config/DailyQuestConfig":49,"../../config/DateSceneConfig":45,"../../config/I18nConfig":47,"../../config/Role":76,"../../common/gameplay/gamedata/GameConstData":25,"../../common/gameplay/managers/ConfigManager":78,"../../common/gameplay/gamedata/GameEnumData":94,"../../common/utils/ResUtils":41,"simba-eventkit":116,"simba-utils":122},"path":"preview-scripts/assets/script/game/model/GameModelManager.js"},{"deps":{},"path":"preview-scripts/assets/script/game/ui/view/type/discover/DiscoverSettingView.js"},{"deps":{},"path":"preview-scripts/assets/script/avg/model/PlotModel.js"},{"deps":{"./ViewBase":37,"simba-eventkit":116},"path":"preview-scripts/assets/script/common/classbase/PresenterBase.js"},{"deps":{"simba-eventkit":116},"path":"preview-scripts/assets/script/common/event/BaseEvents.js"},{"deps":{"simba-sdk-ccsvbutton":123},"path":"preview-scripts/assets/script/common/components/SVButton.js"},{"deps":{"./Type":42},"path":"preview-scripts/assets/script/common/type/TypeTest.js"},{"deps":{},"path":"preview-scripts/assets/script/config/BannerRewardsConfig.js"},{"deps":{"../../GameConfig":4,"simba-sdk":113},"path":"preview-scripts/assets/script/game/network/HttpRequests.js"},{"deps":{},"path":"preview-scripts/assets/script/game/ui/baseview/ListView.js"},{"deps":{"../../view/type/ImagePreviewView":99,"../../../../common/classbase/PresenterBase":17,"../../PresenterCCViewFactory":66},"path":"preview-scripts/assets/script/game/ui/presenter/message/ImagePreviewPresenter.js"},{"deps":{},"path":"preview-scripts/assets/script/common/gameplay/gamedata/GameConstData.js"},{"deps":{"../../view/type/discover/DiscoverSettingView":15,"../../PresenterCCViewFactory":66,"../../../../common/gameplay/settings/GameBasicSettings":27,"../../../../common/classbase/PresenterBase":17,"../../../model/GameModelManager":14,"../../../../common/gameplay/gamedata/GameTextData":74,"../../../../common/gameplay/managers/UIManager":5,"../NoticeViewPresenter":69,"../../../../GameConfig":4,"../ExchangeCodeViewPresenter":67,"../../../network/HttpRequests":22},"path":"preview-scripts/assets/script/game/ui/presenter/discover/DiscoverSettingViewPresenter.js"},{"deps":{"../../event/BaseEvents":18,"simba-localstorage":121,"simba-utils":122},"path":"preview-scripts/assets/script/common/gameplay/settings/GameBasicSettings.js"},{"deps":{"../../../baseview/impl/ListSubviewImpl":112,"../../type/DatingEventSubview":105,"./DatingEventItemViewImpl":97,"../../../PresenterCCViewFactory":66,"../../../../../common/CCDummyObjects":35},"path":"preview-scripts/assets/script/game/ui/view/impl/dating/DatingEventSubviewImpl.js"},{"deps":{"../../../PresenterCCViewFactory":66,"../../type/discover/DiscoverSettingView":15,"../../../../../common/classbase/CCViewBase":44,"../../../../../common/CCDummyObjects":35},"path":"preview-scripts/assets/script/game/ui/view/impl/discover/DiscoverSettingViewImpl.js"},{"deps":{"./EditorGameVariables":38},"path":"preview-scripts/assets/script/avg/game-data/GameVariables.js"},{"deps":{"simba-eventkit":116},"path":"preview-scripts/assets/script/avg/EditorEvents.js"},{"deps":{},"path":"preview-scripts/assets/script/avg/EditorEnums.js"},{"deps":{"../model/PlotModel":16,"../../GameConfig":4,"../../common/utils/ResUtils":41,"simba-utils":122},"path":"preview-scripts/assets/script/avg/game-data/PlotsData.js"},{"deps":{},"path":"preview-scripts/assets/script/avg/model/RichTextModel.js"},{"deps":{},"path":"preview-scripts/assets/script/common/CCDummyObjects.js"},{"deps":{},"path":"preview-scripts/assets/script/avg/model/ActionModel.js"},{"deps":{"simba-eventkit":116},"path":"preview-scripts/assets/script/common/classbase/ViewBase.js"},{"deps":{},"path":"preview-scripts/assets/script/avg/game-data/EditorGameVariables.js"},{"deps":{"../model/ConditionModel":40,"../game-data/GameRecord":2,"../../common/gameplay/managers/ConfigManager":78,"simba-utils":122},"path":"preview-scripts/assets/script/avg/utils/PlotUtils.js"},{"deps":{},"path":"preview-scripts/assets/script/avg/model/ConditionModel.js"},{"deps":{},"path":"preview-scripts/assets/script/common/utils/ResUtils.js"},{"deps":{},"path":"preview-scripts/assets/script/common/type/Type.js"},{"deps":{"../gameplay/settings/GameBasicSettings":27},"path":"preview-scripts/assets/script/common/components/SoundEffectButton.js"},{"deps":{"./ViewBase":37,"simba-eventkit":116},"path":"preview-scripts/assets/script/common/classbase/CCViewBase.js"},{"deps":{},"path":"preview-scripts/assets/script/config/DateSceneConfig.js"},{"deps":{},"path":"preview-scripts/assets/script/config/DailyRewardsConfig.js"},{"deps":{},"path":"preview-scripts/assets/script/config/I18nConfig.js"},{"deps":{},"path":"preview-scripts/assets/script/common/components/FrameAnimation.js"},{"deps":{},"path":"preview-scripts/assets/script/config/DailyQuestConfig.js"},{"deps":{"./ResUtils":41,"simba-utils":122},"path":"preview-scripts/assets/script/common/utils/NodePoolFactory.js"},{"deps":{},"path":"preview-scripts/assets/script/config/MessageSceneConfig.js"},{"deps":{},"path":"preview-scripts/assets/script/config/ConstConfig.js"},{"deps":{"../components/FrameAnimation":48,"./ScheduleUtils":55},"path":"preview-scripts/assets/script/common/utils/AnimationUtils.js"},{"deps":{},"path":"preview-scripts/assets/script/config/GiftReplyConfig.js"},{"deps":{},"path":"preview-scripts/assets/script/common/utils/ScheduleUtils.js"},{"deps":{},"path":"preview-scripts/assets/script/config/ItemConfig.js"},{"deps":{},"path":"preview-scripts/assets/script/config/RoleInfoConfig.js"},{"deps":{},"path":"preview-scripts/assets/script/config/AchievementConfig.js"},{"deps":{},"path":"preview-scripts/assets/script/config/SceneType.js"},{"deps":{"../GameConfig":4,"../avg/PlotManager":8,"./model/GameModelManager":14,"../common/utils/AnimationUtils":53,"../common/CCDummyObjects":35,"../common/gameplay/managers/UIManager":5,"../common/gameplay/managers/AudioManager":90,"./ui/presenter/MainViewPresenter":73,"simba-sdk":113},"path":"preview-scripts/assets/script/game/Launcher.js"},{"deps":{"../../avg/game-data/GameRecord":2,"./GameModelManager":14,"../../common/gameplay/managers/ConfigManager":78,"../../config/RelationLevelConfig":63,"../../avg/EditorEnums":32},"path":"preview-scripts/assets/script/game/model/GameRoleDataModel.js"},{"deps":{"simba-eventkit":116},"path":"preview-scripts/assets/script/game/GameEvents.js"},{"deps":{},"path":"preview-scripts/assets/script/config/RelationLevelConfig.js"},{"deps":{"../../common/gameplay/managers/ConfigManager":78,"../../avg/game-data/GameRecord":2,"../../avg/game-data/PlotsData":33,"../../config/DateSceneConfig":45,"../../avg/EditorEnums":32},"path":"preview-scripts/assets/script/game/model/DatingEventSceneModel.js"},{"deps":{"../view/type/DatingEventView":98,"../../../common/classbase/PresenterBase":17,"../PresenterCCViewFactory":66,"../view/type/DatingEventSubview":105,"../../model/GameModelManager":14,"../../model/DatingEventSceneModel":64,"./DatingScenePresenter":13,"../../../common/gameplay/managers/UIManager":5},"path":"preview-scripts/assets/script/game/ui/presenter/DatingEventViewPresenter.js"},{"deps":{"../../common/classbase/PresenterBase":17,"../../common/utils/ResUtils":41},"path":"preview-scripts/assets/script/game/ui/PresenterCCViewFactory.js"},{"deps":{"../PresenterCCViewFactory":66,"../view/type/ExChangeCodeView":100,"../../../common/classbase/PresenterBase":17,"../../network/HttpRequests":22,"../../model/GameModelManager":14,"../../../common/gameplay/gamedata/GameConstData":25,"../../../common/gameplay/managers/UIManager":5,"../../../common/gameplay/gamedata/GameTextData":74},"path":"preview-scripts/assets/script/game/ui/presenter/ExchangeCodeViewPresenter.js"},{"deps":{"../view/type/LikeLevelSubview":104,"../PresenterCCViewFactory":66,"../../../common/classbase/PresenterBase":17,"../../model/GameModelManager":14,"../../../avg/EditorEnums":32,"../../../avg/game-data/GameRecord":2},"path":"preview-scripts/assets/script/game/ui/presenter/LikeLevelSubpresenter.js"},{"deps":{"../PresenterCCViewFactory":66,"../view/type/NoticeView":103,"../../../common/classbase/PresenterBase":17},"path":"preview-scripts/assets/script/game/ui/presenter/NoticeViewPresenter.js"},{"deps":{"../../../common/classbase/PresenterBase":17,"../view/type/MessageView":101,"../../model/GameModelManager":14,"../../../avg/model/PlotModel":16,"../../../avg/utils/RichTextUtils":9,"./ChatListViewPresenter":1,"../../../common/gameplay/managers/UIManager":5,"../PresenterCCViewFactory":66,"../../../avg/PlotManager":8,"../../Enums":85,"./PhoneCallViewPresenter":75},"path":"preview-scripts/assets/script/game/ui/presenter/MessageViewPresenter.js"},{"deps":{"../../../../common/classbase/CCViewBase":44},"path":"preview-scripts/assets/script/game/ui/baseview/impl/ListItemImpl.js"},{"deps":{"../../../common/classbase/PresenterBase":17,"../PresenterCCViewFactory":66,"../view/type/SentenceSelectorView":108},"path":"preview-scripts/assets/script/game/ui/presenter/SentenceSelectorViewPresenter.js"},{"deps":{"../../../avg/model/PlotModel":16,"../../../avg/PlotManager":8,"../../../common/classbase/PresenterBase":17,"../../../common/gameplay/gamedata/GameTextData":74,"../../../common/gameplay/managers/UIManager":5,"../../Enums":85,"../../model/GameModelManager":14,"../PresenterCCViewFactory":66,"../view/type/MainView":102,"../view/impl/AlertToBeContinueImpl":92,"./MessageViewPresenter":70,"./DatingEventViewPresenter":65},"path":"preview-scripts/assets/script/game/ui/presenter/MainViewPresenter.js"},{"deps":{},"path":"preview-scripts/assets/script/common/gameplay/gamedata/GameTextData.js"},{"deps":{"../../../common/classbase/PresenterBase":17,"../view/type/PhoneCallView":109,"../PresenterCCViewFactory":66,"../../model/GameModelManager":14,"../../Enums":85,"../../../common/gameplay/managers/ConfigManager":78,"../../../config/Role":76,"../../../avg/PlotManager":8,"./SentenceSelectorViewPresenter":72,"../../../common/gameplay/managers/UIManager":5},"path":"preview-scripts/assets/script/game/ui/presenter/PhoneCallViewPresenter.js"},{"deps":{},"path":"preview-scripts/assets/script/config/Role.js"},{"deps":{"../../avg/game-data/PlotsData":33,"../../avg/game-data/GameRecord":2,"../../common/gameplay/managers/ConfigManager":78,"../../config/MessageSceneConfig":51},"path":"preview-scripts/assets/script/game/model/MessageSceneModel.js"},{"deps":{"../../utils/ResUtils":41},"path":"preview-scripts/assets/script/common/gameplay/managers/ConfigManager.js"},{"deps":{"../../utils/ResUtils":41},"path":"preview-scripts/assets/script/common/gameplay/managers/AlertManager.js"},{"deps":{"../../utils/AnimationUtils":53,"../../utils/NodePoolFactory":50},"path":"preview-scripts/assets/script/common/gameplay/managers/ToastManager.js"},{"deps":{},"path":"preview-scripts/assets/script/common/gameplay/gamedata/GameResData.js"},{"deps":{"../../../../common/CCDummyObjects":35,"../../baseview/impl/ListItemImpl":71,"../../../../common/utils/ResUtils":41},"path":"preview-scripts/assets/script/game/ui/view/impl/MessageEntryItem.js"},{"deps":{"../../../../common/classbase/CCViewBase":44,"../type/DatingEventView":98,"../../../../common/CCDummyObjects":35,"./dating/DatingEventSubviewImpl":28,"../../PresenterCCViewFactory":66},"path":"preview-scripts/assets/script/game/ui/view/impl/DatingEventViewImpl.js"},{"deps":{"../../../../common/CCDummyObjects":35,"../../../../common/classbase/CCViewBase":44,"../../PresenterCCViewFactory":66,"../type/LikeLevelSubview":104},"path":"preview-scripts/assets/script/game/ui/view/impl/LikeLevelSubviewImpl.js"},{"deps":{},"path":"preview-scripts/assets/script/game/Enums.js"},{"deps":{"../../../../common/CCDummyObjects":35,"../../../../common/gameplay/managers/UIManager":5,"../../../../common/classbase/CCViewBase":44,"../../presenter/discover/DiscoverSettingViewPresenter":26,"../../PresenterCCViewFactory":66,"../type/MainView":102},"path":"preview-scripts/assets/script/game/ui/view/impl/MainViewImpl.js"},{"deps":{"../../../../common/utils/ResUtils":41,"./MessageEntryItem":82,"../../PresenterCCViewFactory":66,"../../baseview/impl/ListViewImpl":10,"../type/MessageView":101},"path":"preview-scripts/assets/script/game/ui/view/impl/MessageViewImpl.js"},{"deps":{"../type/NoticeView":103,"../../../../common/classbase/CCViewBase":44,"../../PresenterCCViewFactory":66,"../../../../common/CCDummyObjects":35},"path":"preview-scripts/assets/script/game/ui/view/impl/NoticeViewImpl.js"},{"deps":{"../../../../common/CCDummyObjects":35,"../../../../common/utils/ResUtils":41},"path":"preview-scripts/assets/script/game/ui/view/impl/SinInDayitemImpl.js"},{"deps":{"../../event/BaseEvents":18,"../settings/GameBasicSettings":27,"../../utils/ResUtils":41,"simba-utils":122},"path":"preview-scripts/assets/script/common/gameplay/managers/AudioManager.js"},{"deps":{"../type/ExChangeCodeView":100,"../../../../common/classbase/CCViewBase":44,"../../PresenterCCViewFactory":66,"../../../../common/CCDummyObjects":35},"path":"preview-scripts/assets/script/game/ui/view/impl/ExchangeCodeViewImpl.js"},{"deps":{"../../../../common/gameplay/managers/UIManager":5},"path":"preview-scripts/assets/script/game/ui/view/impl/AlertToBeContinueImpl.js"},{"deps":{"../../../../../common/classbase/CCViewBase":44,"../../type/ImagePreviewView":99,"../../../../../common/CCDummyObjects":35,"../../../../../common/utils/ResUtils":41,"../../../PresenterCCViewFactory":66},"path":"preview-scripts/assets/script/game/ui/view/impl/message/ImagePreviewViewImpl.js"},{"deps":{},"path":"preview-scripts/assets/script/common/gameplay/gamedata/GameEnumData.js"},{"deps":{"../../../../../common/classbase/CCViewBase":44,"../../../PresenterCCViewFactory":66,"../../type/DatingSceneView":107,"../../../../../common/CCDummyObjects":35,"../../../../../common/utils/ResUtils":41},"path":"preview-scripts/assets/script/game/ui/view/impl/dating/DatingSceneViewImpl.js"},{"deps":{"../../../../../common/CCDummyObjects":35,"../../../../../avg/model/PlotModel":16,"../../../../../avg/utils/RichTextUtils":9,"../../../PresenterCCViewFactory":66,"../../type/SentenceSelectorView":108,"../../../../../common/classbase/CCViewBase":44,"../../../../../common/utils/ResUtils":41},"path":"preview-scripts/assets/script/game/ui/view/impl/message/SentenceSelectorViewImpl.js"},{"deps":{"../../../../../common/CCDummyObjects":35,"../../../baseview/impl/ListItemImpl":71,"../../../../../common/utils/ResUtils":41,"../../../../model/DatingEventSceneModel":64},"path":"preview-scripts/assets/script/game/ui/view/impl/dating/DatingEventItemViewImpl.js"},{"deps":{},"path":"preview-scripts/assets/script/game/ui/view/type/DatingEventView.js"},{"deps":{},"path":"preview-scripts/assets/script/game/ui/view/type/ImagePreviewView.js"},{"deps":{},"path":"preview-scripts/assets/script/game/ui/view/type/ExChangeCodeView.js"},{"deps":{},"path":"preview-scripts/assets/script/game/ui/view/type/MessageView.js"},{"deps":{},"path":"preview-scripts/assets/script/game/ui/view/type/MainView.js"},{"deps":{},"path":"preview-scripts/assets/script/game/ui/view/type/NoticeView.js"},{"deps":{},"path":"preview-scripts/assets/script/game/ui/view/type/LikeLevelSubview.js"},{"deps":{},"path":"preview-scripts/assets/script/game/ui/view/type/DatingEventSubview.js"},{"deps":{},"path":"preview-scripts/assets/script/game/ui/view/type/ItemView.js"},{"deps":{},"path":"preview-scripts/assets/script/game/ui/view/type/DatingSceneView.js"},{"deps":{},"path":"preview-scripts/assets/script/game/ui/view/type/SentenceSelectorView.js"},{"deps":{},"path":"preview-scripts/assets/script/game/ui/view/type/PhoneCallView.js"},{"deps":{},"path":"preview-scripts/assets/script/game/ui/view/type/ChatListView.js"},{"deps":{},"path":"preview-scripts/assets/script/game/ui/view/type/TabView.js"},{"deps":{"../../../../common/classbase/CCViewBase":44,"../../../../common/CCDummyObjects":35,"simba-utils":122},"path":"preview-scripts/assets/script/game/ui/baseview/impl/ListSubviewImpl.js"},{"deps":{"./TimeManager":118,"./SDKEvents":119,"./SDKBase":120},"path":"preview-scripts/__node_modules/simba-sdk/dist/index.js"},{"deps":{},"path":"preview-scripts/__node_modules/simba-httpclient/dist/index.js"},{"deps":{"simba-sdk":113},"path":"preview-scripts/__node_modules/simba-sdk-dummy/dist/index.js"},{"deps":{},"path":"preview-scripts/__node_modules/simba-eventkit/dist/index.js"},{"deps":{},"path":"preview-scripts/__node_modules/simba-random/dist/index.js"},{"deps":{"./SDKServer":124,"./SDKEvents":119,"./SDKBase":120},"path":"preview-scripts/__node_modules/simba-sdk/dist/TimeManager.js"},{"deps":{"simba-eventkit":116},"path":"preview-scripts/__node_modules/simba-sdk/dist/SDKEvents.js"},{"deps":{"./TimeManager":118,"simba-httpclient":114,"./SDKServer":124,"./SDKRecordsData":125,"./SVConfig":126,"simba-utils":122},"path":"preview-scripts/__node_modules/simba-sdk/dist/SDKBase.js"},{"deps":{},"path":"preview-scripts/__node_modules/simba-localstorage/dist/index.js"},{"deps":{"./Md5":127},"path":"preview-scripts/__node_modules/simba-utils/dist/index.js"},{"deps":{"simba-sdk":113,"simba-sdk/dist/SVConfig":126},"path":"preview-scripts/__node_modules/simba-sdk-ccsvbutton/dist/index.js"},{"deps":{"simba-httpclient":114},"path":"preview-scripts/__node_modules/simba-sdk/dist/SDKServer.js"},{"deps":{"./SDKServer":124,"./TimeManager":118,"./SDKBase":120,"./SDKEvents":119,".":113,"simba-utils":122},"path":"preview-scripts/__node_modules/simba-sdk/dist/SDKRecordsData.js"},{"deps":{"./SDKEvents":119,"simba-httpclient":114,"simba-localstorage":121,"simba-random":117},"path":"preview-scripts/__node_modules/simba-sdk/dist/SVConfig.js"},{"deps":{},"path":"preview-scripts/__node_modules/simba-utils/dist/Md5.js"}];
var entries = ["preview-scripts/__qc_index__.js"];
var bundleScript = 'preview-scripts/__qc_bundle__.js';

/**
 * Notice: This file can not use ES6 (for IE 11)
 */
var modules = {};
var name2path = {};

// Will generated by module.js plugin
// var scripts = ${scripts};
// var entries = ${entries};
// var bundleScript = ${bundleScript};

if (typeof global === 'undefined') {
    window.global = window;
}

var isJSB = typeof jsb !== 'undefined';

function getXMLHttpRequest () {
    return window.XMLHttpRequest ? new window.XMLHttpRequest() : new ActiveXObject('MSXML2.XMLHTTP');
}

function downloadText(url, callback) {
    if (isJSB) {
        var result = jsb.fileUtils.getStringFromFile(url);
        callback(null, result);
        return;
    }

    var xhr = getXMLHttpRequest(),
        errInfo = 'Load text file failed: ' + url;
    xhr.open('GET', url, true);
    if (xhr.overrideMimeType) xhr.overrideMimeType('text\/plain; charset=utf-8');
    xhr.onload = function () {
        if (xhr.readyState === 4) {
            if (xhr.status === 200 || xhr.status === 0) {
                callback(null, xhr.responseText);
            }
            else {
                callback({status:xhr.status, errorMessage:errInfo + ', status: ' + xhr.status});
            }
        }
        else {
            callback({status:xhr.status, errorMessage:errInfo + '(wrong readyState)'});
        }
    };
    xhr.onerror = function(){
        callback({status:xhr.status, errorMessage:errInfo + '(error)'});
    };
    xhr.ontimeout = function(){
        callback({status:xhr.status, errorMessage:errInfo + '(time out)'});
    };
    xhr.send(null);
};

function loadScript (src, cb) {
    if (typeof require !== 'undefined') {
        require(src);
        return cb();
    }

    // var timer = 'load ' + src;
    // console.time(timer);

    var scriptElement = document.createElement('script');

    function done() {
        // console.timeEnd(timer);
        // deallocation immediate whatever
        scriptElement.remove();
    }

    scriptElement.onload = function () {
        done();
        cb();
    };
    scriptElement.onerror = function () {
        done();
        var error = 'Failed to load ' + src;
        console.error(error);
        cb(new Error(error));
    };
    scriptElement.setAttribute('type','text/javascript');
    scriptElement.setAttribute('charset', 'utf-8');
    scriptElement.setAttribute('src', src);

    document.head.appendChild(scriptElement);
}

function loadScripts (srcs, cb) {
    var n = srcs.length;

    srcs.forEach(function (src) {
        loadScript(src, function () {
            n--;
            if (n === 0) {
                cb();
            }
        });
    })
}

function formatPath (path) {
    let destPath = window.__quick_compile_project__.destPath;
    if (destPath) {
        let prefix = 'preview-scripts';
        if (destPath[destPath.length - 1] === '/') {
            prefix += '/';
        }
        path = path.replace(prefix, destPath);
    }
    return path;
}

window.__quick_compile_project__ = {
    destPath: '',

    registerModule: function (path, module) {
        path = formatPath(path);
        modules[path].module = module;
    },

    registerModuleFunc: function (path, func) {
        path = formatPath(path);
        modules[path].func = func;

        var sections = path.split('/');
        var name = sections[sections.length - 1];
        name = name.replace(/\.(?:js|ts|json)$/i, '');
        name2path[name] = path;
    },

    require: function (request, path) {
        var m, requestScript;

        path = formatPath(path);
        if (path) {
            m = modules[path];
            if (!m) {
                console.warn('Can not find module for path : ' + path);
                return null;
            }
        }

        if (m) {
            let depIndex = m.deps[request];
            // dependence script was excluded
            if (depIndex === -1) {
                return null;
            }
            else {
                requestScript = scripts[ m.deps[request] ];
            }
        }
        
        let requestPath = '';
        if (!requestScript) {
            // search from name2path when request is a dynamic module name
            if (/^[\w- .]*$/.test(request)) {
                requestPath = name2path[request];
            }

            if (!requestPath) {
                if (CC_JSB) {
                    return require(request);
                }
                else {
                    console.warn('Can not find deps [' + request + '] for path : ' + path);
                    return null;
                }
            }
        }
        else {
            requestPath = formatPath(requestScript.path);
        }

        let requestModule = modules[requestPath];
        if (!requestModule) {
            console.warn('Can not find request module for path : ' + requestPath);
            return null;
        }

        if (!requestModule.module && requestModule.func) {
            requestModule.func();
        }

        if (!requestModule.module) {
            console.warn('Can not find requestModule.module for path : ' + path);
            return null;
        }

        return requestModule.module.exports;
    },

    run: function () {
        entries.forEach(function (entry) {
            entry = formatPath(entry);
            var module = modules[entry];
            if (!module.module) {
                module.func();
            }
        });
    },

    load: function (cb) {
        var self = this;

        var srcs = scripts.map(function (script) {
            var path = formatPath(script.path);
            modules[path] = script;

            if (script.mtime) {
                path += ("?mtime=" + script.mtime);
            }
            return path;
        });

        console.time && console.time('load __quick_compile_project__');
        // jsb can not analysis sourcemap, so keep separate files.
        if (bundleScript && !isJSB) {
            downloadText(formatPath(bundleScript), function (err, bundleSource) {
                console.timeEnd && console.timeEnd('load __quick_compile_project__');
                if (err) {
                    console.error(err);
                    return;
                }

                let evalTime = 'eval __quick_compile_project__ : ' + srcs.length + ' files';
                console.time && console.time(evalTime);
                var sources = bundleSource.split('\n//------QC-SOURCE-SPLIT------\n');
                for (var i = 0; i < sources.length; i++) {
                    if (sources[i]) {
                        window.eval(sources[i]);
                        // not sure why new Function cannot set breakpoints precisely
                        // new Function(sources[i])()
                    }
                }
                self.run();
                console.timeEnd && console.timeEnd(evalTime);
                cb();
            })
        }
        else {
            loadScripts(srcs, function () {
                self.run();
                console.timeEnd && console.timeEnd('load __quick_compile_project__');
                cb();
            });
        }
    }
};

// Polyfill for IE 11
if (!('remove' in Element.prototype)) {
    Element.prototype.remove = function () {
        if (this.parentNode) {
            this.parentNode.removeChild(this);
        }
    };
}
})();