// Copyright 2024, University of Colorado Boulder
const init = (options) => {
    self.phet = self.phet || {};
    self.phet.chipper = self.phet.chipper || {};
    self.phet.chipper.project = options.name;
    self.phet.chipper.version = options.version;
    self.phet.chipper.brand = options.brand ?? 'made-with-scenerystack';
    self.phet.chipper.locale = options.locale ?? 'en';
    self.phet.chipper.isDebugBuild = false; // Hard-coded, see https://github.com/scenerystack/community/issues/149
    self.phet.chipper.isSceneryStack = true; // Global for sim code that needs to see if we are scenerystack-based
    self.phet.chipper.allowLocaleSwitching = options.allowLocaleSwitching ?? true;
    self.phet.chipper.availableLocales = options.availableLocales || ['en'];
    // Replace keys in phet.chipper.strings with a map for the actual locales we will use
    self.phet.chipper.strings = {};
    for (const locale of self.phet.chipper.availableLocales) {
        self.phet.chipper.strings[locale] = {};
    }
    self.phet.chipper.packageObject = {
        name: options.name,
        version: options.version,
        phet: {
            simulation: true,
            runnable: true,
            supportedBrands: [options.brand ?? 'made-with-scenerystack'],
            simFeatures: {
                colorProfiles: options.colorProfiles ?? ['default'],
                supportsDynamicLocale: self.phet.chipper.allowLocaleSwitching && options.supportsDynamicLocale !== false,
                supportsInteractiveDescription: options.supportsInteractiveDescription ?? true,
                supportsInteractiveHighlights: options.supportsInteractiveHighlights ?? true,
                supportsVoicing: options.supportsVoicing ?? false,
                supportsTier1Voicing: false, // is a phet-internal thing
                supportsPanAndZoom: options.supportsPanAndZoom ?? true,
                supportedRegionsAndCultures: options.supportedRegionsAndCultures || ['usa'],
                supportsSound: options.supportsSound ?? false
            }
        }
    };
    // @ts-expect-error
    self.PHET_SPLASH_DATA_URI = options.splashDataURI;
    // NOTE: Do not collapse these, since we don't want an auto import added
    const chipperTest = phet.chipper;
    if (chipperTest.queryParameters) {
        console.log('init() ran after other modules, e.g. initialize-globals');
    }
};
export { init };
//# sourceMappingURL=init.js.map