wikimedia/mediawiki-core

View on GitHub
resources/Resources.php

Summary

Maintainability
F
1 wk
Test Coverage
<?php
/**
 * Definition of core ResourceLoader modules.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 * http://www.gnu.org/copyleft/gpl.html
 *
 * @file
 */

use MediaWiki\MediaWikiServices;

if ( !defined( 'MEDIAWIKI' ) ) {
    die( 'Not an entry point.' );
}

global $wgResourceBasePath;

return [
    // Scripts managed by the local wiki (stored in the MediaWiki namespace)
    'site' => [ 'class' => ResourceLoaderSiteModule::class ],
    'site.styles' => [ 'class' => ResourceLoaderSiteStylesModule::class ],
    'noscript' => [
        'targets' => [ 'desktop', 'mobile' ],
        'class' => ResourceLoaderWikiModule::class,
        'styles' => [ 'MediaWiki:Noscript.css' ],
        'group' => 'noscript',
    ],
    'filepage' => [
        'class' => ResourceLoaderWikiModule::class,
        'styles' => [ 'MediaWiki:Filepage.css' ],
    ],

    // Scripts managed by the current user (stored in their user space)
    'user' => [ 'class' => ResourceLoaderUserModule::class ],
    'user.styles' => [ 'class' => ResourceLoaderUserStylesModule::class ],

    'user.defaults' => [ 'class' => ResourceLoaderUserDefaultsModule::class ],
    'user.options' => [ 'class' => ResourceLoaderUserOptionsModule::class ],

    'mediawiki.skinning.elements' => [
        'deprecated' => 'Your default skin ResourceLoader class should use '
            . 'ResourceLoaderSkinModule::class',
        'class' => ResourceLoaderSkinModule::class,
        'features' => [ 'elements', 'legacy' ],
    ],
    'mediawiki.skinning.content' => [
        'deprecated' => 'Your default skin ResourceLoader class should use '
            . 'ResourceLoaderSkinModule::class',
        'class' => ResourceLoaderSkinModule::class,
        'features' => [ 'elements', 'content', 'legacy' ],
    ],
    // Used in the web installer. Test it after modifying this definition!
    'mediawiki.skinning.interface' => [
        'class' => ResourceLoaderSkinModule::class,
        'features' => [ 'elements', 'content', 'interface', 'logo', 'legacy' ],
    ],
    'jquery.makeCollapsible.styles' => [
        'targets' => [ 'desktop', 'mobile' ],
        'class' => ResourceLoaderLessVarFileModule::class,
        'lessMessages' => [
            'collapsible-collapse',
            'collapsible-expand',
        ],
        'styles' => [
            'resources/src/jquery/jquery.makeCollapsible.styles.less',
        ],
    ],

    'mediawiki.skinning.content.parsoid' => [
        // Style Parsoid HTML+RDFa output consistent with wikitext from PHP parser
        // with the interface.css styles; skinStyles should be used if your
        // skin over-rides common content styling.
        'skinStyles' => [
            'default' => 'resources/src/mediawiki.skinning/content.parsoid.less',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],

    'mediawiki.skinning.content.externallinks' => [
        'styles' => [
            'resources/src/mediawiki.skinning/content.externallinks.less' => [ 'media' => 'screen' ],
        ],
    ],

    /* Base modules */
    // These modules' dependencies MUST also be included in StartUpModule::getBaseModules().
    // These modules' dependencies MUST be dependency-free (having dependencies would cause recursion).

    'jquery' => [
        'scripts' => [
            'resources/lib/jquery/jquery.js',
            'resources/lib/jquery/jquery.migrate.js',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'es6-promise' => [
        'scripts' => 'resources/lib/promise-polyfill/promise-polyfill.js',
        'skipFunction' => 'resources/src/skip-Promise.js',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.base' => [
        'localBasePath' => "$IP/resources/src/mediawiki.base",
        'packageFiles' => [
            // This MUST be kept in sync with maintenance/jsduck/eg-iframe.html
            'mediawiki.base.js',
            'mediawiki.errorLogger.js',

            // (not this though)
            [ 'name' => 'config.json', 'callback' => 'ResourceLoader::getSiteConfigSettings' ],
            [
                'name' => 'legacy.wikibits.js',
                'callback' => function ( ResourceLoaderContext $context, Config $config ) {
                    return $config->get( 'IncludeLegacyJavaScript' ) ?
                        new ResourceLoaderFilePath( 'legacy.wikibits.js' ) : '';
                }
            ],
        ],
        'dependencies' => 'jquery',
        'targets' => [ 'desktop', 'mobile' ],
    ],

    /* jQuery Plugins */

    'jquery.chosen' => [
        'scripts' => 'resources/lib/jquery.chosen/chosen.jquery.js',
        'styles' => 'resources/lib/jquery.chosen/chosen.css',
    ],
    'jquery.client' => [
        'scripts' => 'resources/lib/jquery.client/jquery.client.js',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'jquery.color' => [
        'scripts' => [
            'resources/src/jquery.color/jquery.colorUtil.js',
            'resources/src/jquery.color/jquery.color.js',
        ],
    ],
    'jquery.confirmable' => [
        'scripts' => [
            'resources/src/jquery/jquery.confirmable.js',
            'resources/src/jquery/jquery.confirmable.mediawiki.js',
        ],
        'messages' => [
            'confirmable-confirm',
            'confirmable-yes',
            'confirmable-no',
            'word-separator',
        ],
        'styles' => 'resources/src/jquery/jquery.confirmable.css',
        'dependencies' => 'mediawiki.jqueryMsg',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'jquery.cookie' => [
        'scripts' => 'resources/lib/jquery.cookie/jquery.cookie.js',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'jquery.form' => [
        'scripts' => 'resources/lib/jquery.form/jquery.form.js',
    ],
    'jquery.fullscreen' => [
        'scripts' => 'resources/lib/jquery.fullscreen/jquery.fullscreen.js',
    ],
    'jquery.highlightText' => [
        'scripts' => 'resources/src/jquery/jquery.highlightText.js',
        'dependencies' => [
            'mediawiki.util',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'jquery.hoverIntent' => [
        'scripts' => 'resources/lib/jquery.hoverIntent/jquery.hoverIntent.js',
    ],
    'jquery.i18n' => [
        'scripts' => [
            'resources/lib/jquery.i18n/src/jquery.i18n.js',
            'resources/lib/jquery.i18n/src/jquery.i18n.messagestore.js',
            'resources/lib/jquery.i18n/src/jquery.i18n.parser.js',
            'resources/lib/jquery.i18n/src/jquery.i18n.emitter.js',
            'resources/lib/jquery.i18n/src/jquery.i18n.emitter.bidi.js',
            'resources/lib/jquery.i18n/src/jquery.i18n.language.js',
            'resources/lib/jquery.i18n/src/jquery.i18n.fallbacks.js',
        ],
        'dependencies' => 'mediawiki.libs.pluralruleparser',
        'languageScripts' => [
            'bs' => 'resources/lib/jquery.i18n/src/languages/bs.js',
            'dsb' => 'resources/lib/jquery.i18n/src/languages/dsb.js',
            'fi' => 'resources/lib/jquery.i18n/src/languages/fi.js',
            'ga' => 'resources/lib/jquery.i18n/src/languages/ga.js',
            'he' => 'resources/lib/jquery.i18n/src/languages/he.js',
            'hsb' => 'resources/lib/jquery.i18n/src/languages/hsb.js',
            'hu' => 'resources/lib/jquery.i18n/src/languages/hu.js',
            'hy' => 'resources/lib/jquery.i18n/src/languages/hy.js',
            'la' => 'resources/lib/jquery.i18n/src/languages/la.js',
            'ml' => 'resources/lib/jquery.i18n/src/languages/ml.js',
            'os' => 'resources/lib/jquery.i18n/src/languages/os.js',
            'ru' => 'resources/lib/jquery.i18n/src/languages/ru.js',
            'sl' => 'resources/lib/jquery.i18n/src/languages/sl.js',
            'uk' => 'resources/lib/jquery.i18n/src/languages/uk.js',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'jquery.lengthLimit' => [
        'scripts' => 'resources/src/jquery.lengthLimit.js',
        'dependencies' => 'mediawiki.String',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'jquery.makeCollapsible' => [
        'dependencies' => [ 'jquery.makeCollapsible.styles' ],
        'scripts' => 'resources/src/jquery/jquery.makeCollapsible.js',
        'styles' => 'resources/src/jquery/jquery.makeCollapsible.css',
        'messages' => [ 'collapsible-expand', 'collapsible-collapse' ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'jquery.mw-jump' => [
        'scripts' => 'resources/src/jquery/jquery.mw-jump.js',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'jquery.spinner' => [
        'scripts' => 'resources/src/jquery.spinner/spinner.js',
        'dependencies' => [ 'jquery.spinner.styles' ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'jquery.spinner.styles' => [
        'styles' => 'resources/src/jquery.spinner/spinner.less',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'jquery.jStorage' => [
        'deprecated' => 'Please use "mediawiki.storage" instead.',
        'scripts' => 'resources/lib/jquery.jStorage/jstorage.js',
    ],
    'jquery.suggestions' => [
        'targets' => [ 'desktop', 'mobile' ],
        'scripts' => 'resources/src/jquery/jquery.suggestions.js',
        'styles' => 'resources/src/jquery/jquery.suggestions.css',
        'dependencies' => 'jquery.highlightText',
    ],
    'jquery.tablesorter' => [
        'targets' => [ 'desktop', 'mobile' ],
        'scripts' => 'resources/src/jquery.tablesorter/jquery.tablesorter.js',
        'messages' => [ 'sort-descending', 'sort-ascending', 'sort-initial' ],
        'dependencies' => [
            'jquery.tablesorter.styles',
            'mediawiki.util',
            'mediawiki.language.months',
        ],
    ],
    'jquery.tablesorter.styles' => [
        'targets' => [ 'desktop', 'mobile' ],
        'styles' => 'resources/src/jquery.tablesorter.styles/jquery.tablesorter.styles.less',
    ],
    'jquery.textSelection' => [
        'scripts' => 'resources/src/jquery/jquery.textSelection.js',
        'dependencies' => 'jquery.client',
        'targets' => [ 'mobile', 'desktop' ],
    ],
    'jquery.throttle-debounce' => [
        'deprecated' => 'Please use OO.ui.throttle/debounce instead. See '
            . 'https://phabricator.wikimedia.org/T213426',
        'scripts' => 'resources/lib/jquery.throttle-debounce/jquery.ba-throttle-debounce.js',
        'targets' => [ 'desktop', 'mobile' ],
    ],

    /* jQuery Tipsy */

    'jquery.tipsy' => [
        'deprecated' => true,
        'scripts' => 'resources/src/jquery.tipsy/jquery.tipsy.js',
        'styles' => 'resources/src/jquery.tipsy/jquery.tipsy.css',
    ],

    /* jQuery UI */

    'jquery.ui' => [
        'deprecated' => 'Please use OOUI instead.',
        'targets' => [ 'mobile', 'desktop' ],
        'scripts' => [
            'resources/lib/jquery.ui/jquery.ui.core.js',
            'resources/lib/jquery.ui/jquery.ui.widget.js',
            'resources/lib/jquery.ui/jquery.ui.mouse.js',
            'resources/lib/jquery.ui/jquery.ui.draggable.js',
            'resources/lib/jquery.ui/jquery.ui.droppable.js',
            'resources/lib/jquery.ui/jquery.ui.resizable.js',
            'resources/lib/jquery.ui/jquery.ui.selectable.js',
            'resources/lib/jquery.ui/jquery.ui.sortable.js',
            'resources/lib/jquery.ui/jquery.ui.effect.js',
            'resources/lib/jquery.ui/jquery.ui.accordion.js',
            'resources/lib/jquery.ui/jquery.ui.autocomplete.js',
            'resources/lib/jquery.ui/jquery.ui.button.js',
            'resources/lib/jquery.ui/jquery.ui.datepicker.js',
            'resources/lib/jquery.ui/jquery.ui.dialog.js',
            'resources/lib/jquery.ui/jquery.ui.effect-blind.js',
            'resources/lib/jquery.ui/jquery.ui.effect-clip.js',
            'resources/lib/jquery.ui/jquery.ui.effect-drop.js',
            'resources/lib/jquery.ui/jquery.ui.effect-highlight.js',
            'resources/lib/jquery.ui/jquery.ui.effect-scale.js',
            'resources/lib/jquery.ui/jquery.ui.effect-shake.js',
            'resources/lib/jquery.ui/jquery.ui.menu.js',
            'resources/lib/jquery.ui/jquery.ui.position.js',
            'resources/lib/jquery.ui/jquery.ui.progressbar.js',
            'resources/lib/jquery.ui/jquery.ui.slider.js',
            'resources/lib/jquery.ui/jquery.ui.tabs.js',
            'resources/lib/jquery.ui/jquery.ui.tooltip.js',
        ],
        'languageScripts' => [
            'af' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-af.js',
            'ar' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ar.js',
            'ar-dz' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ar-DZ.js',
            'az' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-az.js',
            'bg' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-bg.js',
            'bs' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-bs.js',
            'ca' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ca.js',
            'cs' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-cs.js',
            'da' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-da.js',
            'de-at' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de-AT.js',
            'de-ch' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de-CH.js',
            'de' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de.js',
            'el' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-el.js',
            'en-au' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-AU.js',
            'en-gb' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-GB.js',
            'en-nz' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-NZ.js',
            'eo' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eo.js',
            'es' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-es.js',
            'et' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-et.js',
            'eu' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eu.js',
            'fa' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fa.js',
            'fi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fi.js',
            'fo' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fo.js',
            'fr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr.js',
            'fr-ch' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr-CH.js',
            'gl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-gl.js',
            'he' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-he.js',
            'hi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hi.js',
            'hr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hr.js',
            'hu' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hu.js',
            'hy' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hy.js',
            'id' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-id.js',
            'is' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-is.js',
            'it' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-it.js',
            'ja' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ja.js',
            'ka' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ka.js',
            'kk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-kk.js',
            'km' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-km.js',
            'ko' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ko.js',
            'lb' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lb.js',
            'lt' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lt.js',
            'lv' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lv.js',
            'mk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-mk.js',
            'ml' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ml.js',
            'ms' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ms.js',
            'nl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-nl.js',
            'nl-be' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-nl-BE.js',
            'no' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-no.js',
            'pl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pl.js',
            'pt' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt.js',
            'pt-br' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt-BR.js',
            'rm' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-rm.js',
            'ro' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ro.js',
            'ru' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ru.js',
            'sk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sk.js',
            'sl' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sl.js',
            'sq' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sq.js',
            'sr-ec' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr.js',
            'sr-el' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr-SR.js',
            'sv' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sv.js',
            'ta' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ta.js',
            'th' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-th.js',
            'tj' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tj.js',
            'tr' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tr.js',
            'uk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-uk.js',
            'vi' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-vi.js',
            'zh-cn' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-CN.js',
            'zh-hk' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-HK.js',
            'zh-tw' => 'resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-TW.js',
        ],
        'skinStyles' => [
            'default' => [
                'resources/lib/jquery.ui/themes/smoothness/jquery.ui.core.css',
                'resources/lib/jquery.ui/themes/smoothness/jquery.ui.accordion.css',
                'resources/lib/jquery.ui/themes/smoothness/jquery.ui.autocomplete.css',
                'resources/lib/jquery.ui/themes/smoothness/jquery.ui.button.css',
                'resources/lib/jquery.ui/themes/smoothness/jquery.ui.datepicker.css',
                'resources/lib/jquery.ui/themes/smoothness/jquery.ui.dialog.css',
                'resources/lib/jquery.ui/themes/smoothness/jquery.ui.menu.css',
                'resources/lib/jquery.ui/themes/smoothness/jquery.ui.progressbar.css',
                'resources/lib/jquery.ui/themes/smoothness/jquery.ui.resizable.css',
                'resources/lib/jquery.ui/themes/smoothness/jquery.ui.selectable.css',
                'resources/lib/jquery.ui/themes/smoothness/jquery.ui.slider.css',
                'resources/lib/jquery.ui/themes/smoothness/jquery.ui.tabs.css',
                'resources/lib/jquery.ui/themes/smoothness/jquery.ui.tooltip.css',
                'resources/lib/jquery.ui/themes/smoothness/jquery.ui.theme.css',
            ],
        ],
    ],

    /* Moment.js */

    'moment' => [
        'scripts' => [
            'resources/lib/moment/moment.js',
            'resources/src/moment/moment-module.js',
        ],
        'languageScripts' => [
            'aeb-arab' => 'resources/lib/moment/locale/ar-tn.js',
            'af' => 'resources/lib/moment/locale/af.js',
            'ar' => 'resources/lib/moment/locale/ar.js',
            'ar-ma' => 'resources/lib/moment/locale/ar-ma.js',
            'ar-sa' => 'resources/lib/moment/locale/ar-sa.js',
            'az' => 'resources/lib/moment/locale/az.js',
            'be' => 'resources/lib/moment/locale/be.js',
            'bg' => 'resources/lib/moment/locale/bg.js',
            'bm' => 'resources/lib/moment/locale/bm.js',
            'bn' => 'resources/lib/moment/locale/bn.js',
            'bo' => 'resources/lib/moment/locale/bo.js',
            'br' => 'resources/lib/moment/locale/br.js',
            'bs' => 'resources/lib/moment/locale/bs.js',
            'ca' => 'resources/lib/moment/locale/ca.js',
            'cs' => 'resources/lib/moment/locale/cs.js',
            'cv' => 'resources/lib/moment/locale/cv.js',
            'cy' => 'resources/lib/moment/locale/cy.js',
            'da' => 'resources/lib/moment/locale/da.js',
            'de' => 'resources/lib/moment/locale/de.js',
            'de-at' => 'resources/lib/moment/locale/de-at.js',
            'de-ch' => 'resources/lib/moment/locale/de-ch.js',
            'dv' => 'resources/lib/moment/locale/dv.js',
            'el' => 'resources/lib/moment/locale/el.js',
            'en' => 'resources/src/moment/moment-dmy.js',
            'en-au' => 'resources/lib/moment/locale/en-au.js',
            'en-ca' => 'resources/lib/moment/locale/en-ca.js',
            'en-gb' => 'resources/lib/moment/locale/en-gb.js',
            'eo' => 'resources/lib/moment/locale/eo.js',
            'es' => 'resources/lib/moment/locale/es.js',
            'et' => 'resources/lib/moment/locale/et.js',
            'eu' => 'resources/lib/moment/locale/eu.js',
            'fa' => 'resources/lib/moment/locale/fa.js',
            'fi' => 'resources/lib/moment/locale/fi.js',
            'fo' => 'resources/lib/moment/locale/fo.js',
            'fr' => 'resources/lib/moment/locale/fr.js',
            'fr-ca' => 'resources/lib/moment/locale/fr-ca.js',
            'fy' => 'resources/lib/moment/locale/fy.js',
            'gd' => 'resources/lib/moment/locale/gd.js',
            'gl' => 'resources/lib/moment/locale/gl.js',
            'gom' => 'resources/lib/moment/locale/gom-latn.js',
            'gom-deva' => 'resources/lib/moment/locale/gom-deva.js',
            'gom-latn' => 'resources/lib/moment/locale/gom-latn.js',
            'gu' => 'resources/lib/moment/locale/gu.js',
            'he' => 'resources/lib/moment/locale/he.js',
            'hi' => 'resources/lib/moment/locale/hi.js',
            'hr' => 'resources/lib/moment/locale/hr.js',
            'hu' => 'resources/lib/moment/locale/hu.js',
            'hy-am' => 'resources/lib/moment/locale/hy-am.js',
            'id' => 'resources/lib/moment/locale/id.js',
            'is' => 'resources/lib/moment/locale/is.js',
            'it' => 'resources/lib/moment/locale/it.js',
            'ja' => 'resources/lib/moment/locale/ja.js',
            'jv' => 'resources/lib/moment/locale/jv.js',
            'ka' => 'resources/lib/moment/locale/ka.js',
            'kk-cyrl' => 'resources/lib/moment/locale/kk.js',
            'kn' => 'resources/lib/moment/locale/kn.js',
            'ko' => 'resources/lib/moment/locale/ko.js',
            'ky' => 'resources/lib/moment/locale/ky.js',
            'lo' => 'resources/lib/moment/locale/lo.js',
            'lt' => 'resources/lib/moment/locale/lt.js',
            'lv' => 'resources/lib/moment/locale/lv.js',
            'mi' => 'resources/lib/moment/locale/mi.js',
            'mk' => 'resources/lib/moment/locale/mk.js',
            'ml' => 'resources/lib/moment/locale/ml.js',
            'mr' => 'resources/lib/moment/locale/mr.js',
            'ms-my' => 'resources/lib/moment/locale/ms-my.js',
            'ms' => 'resources/lib/moment/locale/ms.js',
            'my' => 'resources/lib/moment/locale/my.js',
            'nb' => 'resources/lib/moment/locale/nb.js',
            'ne' => 'resources/lib/moment/locale/ne.js',
            'nl' => 'resources/lib/moment/locale/nl.js',
            'nn' => 'resources/lib/moment/locale/nn.js',
            'pa' => 'resources/lib/moment/locale/pa-in.js',
            'pl' => 'resources/lib/moment/locale/pl.js',
            'pt' => 'resources/lib/moment/locale/pt.js',
            'pt-br' => 'resources/lib/moment/locale/pt-br.js',
            'ro' => 'resources/lib/moment/locale/ro.js',
            'ru' => 'resources/lib/moment/locale/ru.js',
            'sd' => 'resources/lib/moment/locale/sd.js',
            'se' => 'resources/lib/moment/locale/se.js',
            'si' => 'resources/lib/moment/locale/si.js',
            'sk' => 'resources/lib/moment/locale/sk.js',
            'sl' => 'resources/lib/moment/locale/sl.js',
            'sq' => 'resources/lib/moment/locale/sq.js',
            'sr-ec' => 'resources/lib/moment/locale/sr-cyrl.js',
            'sr-el' => 'resources/lib/moment/locale/sr.js',
            'ss' => 'resources/lib/moment/locale/ss.js',
            'sv' => 'resources/lib/moment/locale/sv.js',
            'sw' => 'resources/lib/moment/locale/sw.js',
            'ta' => 'resources/lib/moment/locale/ta.js',
            'te' => 'resources/lib/moment/locale/te.js',
            'tet' => 'resources/lib/moment/locale/tet.js',
            'th' => 'resources/lib/moment/locale/th.js',
            'tl' => 'resources/lib/moment/locale/tl-ph.js',
            'tr' => 'resources/lib/moment/locale/tr.js',
            'tzm' => 'resources/lib/moment/locale/tzm.js',
            'tzm-latn' => 'resources/lib/moment/locale/tzm-latn.js',
            'uk' => 'resources/lib/moment/locale/uk.js',
            'ur' => 'resources/lib/moment/locale/ur.js',
            'uz' => 'resources/lib/moment/locale/uz.js',
            'uz-latn' => 'resources/lib/moment/locale/uz-latn.js',
            'vi' => 'resources/lib/moment/locale/vi.js',
            'yo' => 'resources/lib/moment/locale/yo.js',
            'zh-hans' => 'resources/lib/moment/locale/zh-cn.js',
            'zh-hant' => 'resources/lib/moment/locale/zh-tw.js',
            'zh-cn' => 'resources/lib/moment/locale/zh-cn.js',
            'zh-hk' => 'resources/lib/moment/locale/zh-hk.js',
            'zh-mo' => 'resources/lib/moment/locale/zh-mo.js',
            'zh-tw' => 'resources/lib/moment/locale/zh-tw.js',
        ],
        // HACK: skinScripts come after languageScripts, and we need locale overrides to come
        // after locale definitions
        'skinScripts' => [
            'default' => [
                'resources/src/moment/moment-locale-overrides.js',
            ],
        ],
        'dependencies' => [
            'mediawiki.language',
            'mediawiki.util',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],

    /* Vue */

    'vue' => [
        'packageFiles' => [
            'resources/src/vue/index.js',
            'resources/src/vue/i18n.js',
            [
                'name' => 'resources/lib/vue/vue.js',
                'callback' => function ( ResourceLoaderContext $context, Config $config ) {
                    // Use the development version if development mode is enabled, or if we're in debug mode
                    $file = $config->get( 'VueDevelopmentMode' ) || $context->getDebug() ?
                        'resources/lib/vue/vue.common.dev.js' :
                        'resources/lib/vue/vue.common.prod.js';
                    return new ResourceLoaderFilePath( $file );
                }
            ],

        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],

    'vuex' => [
        'packageFiles' => [
            'resources/src/vue/vuex.js',
            [
                'name' => 'resources/lib/vuex/vuex.js',
                'callback' => function ( ResourceLoaderContext $context, Config $config ) {
                    // Use the development version if development mode is enabled, or if we're in debug mode
                    $file = $config->get( 'VueDevelopmentMode' ) || $context->getDebug() ?
                        'resources/lib/vuex/vuex.js' :
                        'resources/lib/vuex/vuex.min.js';
                    return new ResourceLoaderFilePath( $file );
                }
            ]
        ],
        'dependencies' => [
            'vue',
            'es6-promise',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],

    /* MediaWiki */
    'mediawiki.template' => [
        'scripts' => 'resources/src/mediawiki.template.js',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.template.mustache' => [
        'scripts' => [
            'resources/lib/mustache/mustache.js',
            'resources/src/mediawiki.template.mustache.js',
        ],
        'targets' => [ 'desktop', 'mobile' ],
        'dependencies' => 'mediawiki.template',
    ],
    'mediawiki.apipretty' => [
        'styles' => [
            'resources/src/mediawiki.apipretty/apipretty.css',
            'resources/src/mediawiki.apipretty/apihelp.css',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.api' => [
        'scripts' => [
            'resources/src/mediawiki.api/index.js',
            'resources/src/mediawiki.api/category.js',
            'resources/src/mediawiki.api/edit.js',
            'resources/src/mediawiki.api/login.js',
            'resources/src/mediawiki.api/messages.js',
            'resources/src/mediawiki.api/options.js',
            'resources/src/mediawiki.api/parse.js',
            'resources/src/mediawiki.api/rollback.js',
            'resources/src/mediawiki.api/upload.js',
            'resources/src/mediawiki.api/user.js',
            'resources/src/mediawiki.api/watch.js',
        ],
        'dependencies' => [
            'mediawiki.Title',
            'mediawiki.util',
            'mediawiki.jqueryMsg',
            'user.options',
        ],
        'messages' => [
            'api-clientside-error-noconnect',
            'api-clientside-error-http',
            'api-clientside-error-timeout',
            'api-clientside-error-aborted',
            'api-clientside-error-invalidresponse',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.content.json' => [
        'styles' => 'resources/src/mediawiki.content.json.less',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.confirmCloseWindow' => [
        'scripts' => [
            'resources/src/mediawiki.confirmCloseWindow.js',
        ],
        'messages' => [
            'confirmleave-warning',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.debug' => [
        'scripts' => [
            'resources/src/mediawiki.debug/jquery.footHovzer.js',
            'resources/src/mediawiki.debug/debug.js',
        ],
        'styles' => [
            'resources/src/mediawiki.debug/jquery.footHovzer.css',
            'resources/src/mediawiki.debug/debug.less',
        ],
        'dependencies' => [
            'oojs-ui-core',
        ],
    ],
    'mediawiki.diff.styles' => [
        'styles' => [
            'resources/src/mediawiki.diff.styles/diff.less',
            'resources/src/mediawiki.diff.styles/print.css' => [
                'media' => 'print'
            ],
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.feedback' => [
        'scripts' => 'resources/src/mediawiki.feedback/feedback.js',
        'styles' => 'resources/src/mediawiki.feedback/feedback.css',
        'dependencies' => [
            'mediawiki.messagePoster',
            'mediawiki.Title',
            'oojs-ui-core',
            'oojs-ui-windows',
        ],
        'messages' => [
            'feedback-adding',
            'feedback-back',
            'feedback-bugcheck',
            'feedback-dialog-intro',
            'feedback-external-bug-report-button',
            'feedback-bugnew',
            'feedback-bugornote',
            'feedback-cancel',
            'feedback-close',
            'feedback-dialog-title',
            'feedback-error1',
            'feedback-error4',
            'feedback-message',
            'feedback-subject',
            'feedback-submit',
            'feedback-terms',
            'feedback-termsofuse',
            'feedback-thanks',
            'feedback-thanks-title',
            'feedback-useragent'
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.feedlink' => [
        'styles' => 'resources/src/mediawiki.feedlink/feedlink.css',
    ],
    'mediawiki.filewarning' => [
        'scripts' => 'resources/src/mediawiki.filewarning/filewarning.js',
        'styles' => 'resources/src/mediawiki.filewarning/filewarning.less',
        'dependencies' => [
            'oojs-ui-core',
            'oojs-ui.styles.icons-alerts',
        ],
    ],
    'mediawiki.ForeignApi' => [
        'targets' => [ 'desktop', 'mobile' ],
        'class' => ResourceLoaderForeignApiModule::class,
        // Additional dependencies generated dynamically
        'dependencies' => 'mediawiki.ForeignApi.core',
    ],
    'mediawiki.ForeignApi.core' => [
        'scripts' => 'resources/src/mediawiki.ForeignApi.core.js',
        'dependencies' => [
            'mediawiki.api',
            'oojs',
            'mediawiki.Uri',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.helplink' => [
        'styles' => [
            'resources/src/mediawiki.helplink/helplink.less',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.hlist' => [
        'targets' => [ 'desktop', 'mobile' ],
        'styles' => [
            'resources/src/mediawiki.hlist/hlist.less',
        ],
        'skinStyles' => [
            'default' => 'resources/src/mediawiki.hlist/default.css',
        ],
    ],
    'mediawiki.htmlform' => [
        'scripts' => [
            'resources/src/mediawiki.htmlform/htmlform.js',
            'resources/src/mediawiki.htmlform/autocomplete.js',
            'resources/src/mediawiki.htmlform/autoinfuse.js',
            'resources/src/mediawiki.htmlform/checkmatrix.js',
            'resources/src/mediawiki.htmlform/cloner.js',
            'resources/src/mediawiki.htmlform/hide-if.js',
            'resources/src/mediawiki.htmlform/multiselect.js',
            'resources/src/mediawiki.htmlform/selectandother.js',
            'resources/src/mediawiki.htmlform/selectorother.js',
        ],
        'dependencies' => [
            'mediawiki.util',
            'jquery.lengthLimit',
        ],
        'messages' => [
            'htmlform-chosen-placeholder',
            // @todo Load this message in content language
            'colon-separator',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.htmlform.ooui' => [
        'scripts' => [
            'resources/src/mediawiki.htmlform.ooui/Element.js',
        ],
        'dependencies' => [
            'oojs-ui-core',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.htmlform.styles' => [
        'styles' => 'resources/src/mediawiki.htmlform.styles/styles.less',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.htmlform.ooui.styles' => [
        'styles' => 'resources/src/mediawiki.htmlform.ooui.styles.less',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.icon' => [
        'styles' => 'resources/src/mediawiki.icon/icon.less',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.inspect' => [
        'scripts' => 'resources/src/mediawiki.inspect.js',
        'dependencies' => [
            'mediawiki.String',
            'mediawiki.util',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.notification' => [
        'styles' => [
            'resources/src/mediawiki.notification/common.css',
            'resources/src/mediawiki.notification/print.css'
                => [ 'media' => 'print' ],
        ],
        'skinStyles' => [
            'default' => 'resources/src/mediawiki.notification/default.css',
        ],
        'scripts' => 'resources/src/mediawiki.notification/notification.js',
        'dependencies' => [
            'mediawiki.util',
            'mediawiki.visibleTimeout',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.notification.convertmessagebox' => [
        'scripts' => 'resources/src/mediawiki.notification.convertmessagebox.js',
        'dependencies' => [
            'mediawiki.notification',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.notification.convertmessagebox.styles' => [
        'styles' => [
            'resources/src/mediawiki.notification.convertmessagebox.styles.less',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.String' => [
        'scripts' => 'resources/src/mediawiki.String.js',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.pager.tablePager' => [
        'styles' => 'resources/src/mediawiki.pager.tablePager/TablePager.less',
    ],
    'mediawiki.pulsatingdot' => [
        'styles' => [
            'resources/src/mediawiki.pulsatingdot/mediawiki.pulsatingdot.less',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.searchSuggest' => [
        'targets' => [ 'desktop', 'mobile' ],
        'scripts' => 'resources/src/mediawiki.searchSuggest/searchSuggest.js',
        'styles' => 'resources/src/mediawiki.searchSuggest/searchSuggest.css',
        'messages' => [
            'searchsuggest-search',
            'searchsuggest-containing',
        ],
        'dependencies' => [
            'jquery.suggestions',
            'mediawiki.api',
            'user.options',
        ],
    ],
    'mediawiki.storage' => [
        'scripts' => 'resources/src/mediawiki.storage.js',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.Title' => [
        'localBasePath' => "$IP/resources/src/mediawiki.Title",
        'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.Title",
        'packageFiles' => [
            'Title.js',
            'phpCharToUpper.json'
        ],
        'dependencies' => [
            'mediawiki.String',
            'mediawiki.util',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.Upload' => [
        'scripts' => 'resources/src/mediawiki.Upload.js',
        'dependencies' => [
            'mediawiki.api',
        ],
    ],
    'mediawiki.ForeignUpload' => [
        'scripts' => 'resources/src/mediawiki.ForeignUpload.js',
        'dependencies' => [
            'mediawiki.ForeignApi',
            'mediawiki.Upload',
            'oojs',
        ],
        'messages' => [
            'uploaddisabledtext',
            'upload-dialog-disabled',
            'upload-foreign-cant-upload',
        ]
    ],
    'mediawiki.ForeignStructuredUpload' => [
        'localBasePath' => "$IP/resources/src",
        'remoteBasePath' => "$wgResourceBasePath/resources/src",
        'packageFiles' => [
            'mediawiki.ForeignStructuredUpload.js',
            [ 'name' => 'config.json', 'config' => [ 'UploadDialog' ] ],
        ],
        'dependencies' => [
            'mediawiki.ForeignUpload',
        ],
        'messages' => [
            'upload-foreign-cant-load-config',
        ],
    ],
    'mediawiki.Upload.Dialog' => [
        'scripts' => [
            'resources/src/mediawiki.Upload.Dialog.js',
        ],
        'dependencies' => [
            'mediawiki.Upload.BookletLayout',
        ],
        'messages' => [
            'upload-dialog-title',
            'upload-dialog-button-cancel',
            'upload-dialog-button-back',
            'upload-dialog-button-done',
            'upload-dialog-button-save',
            'upload-dialog-button-upload',
        ],
    ],
    'mediawiki.Upload.BookletLayout' => [
        'scripts' => [
            'resources/src/mediawiki.Upload.BookletLayout/BookletLayout.js',
        ],
        'styles' => [
            'resources/src/mediawiki.Upload.BookletLayout/BookletLayout.css',
        ],
        'dependencies' => [
            'oojs-ui-core',
            'oojs-ui-widgets',
            'oojs-ui-windows',
            'oojs-ui.styles.icons-content',
            'oojs-ui.styles.icons-editing-advanced',
            'moment',
            'mediawiki.Title',
            'mediawiki.user',
            'mediawiki.Upload',
            'mediawiki.jqueryMsg',
            'mediawiki.widgets.StashedFileWidget'
        ],
        'messages' => [
            'upload-form-label-infoform-title',
            'upload-form-label-infoform-name',
            'upload-form-label-infoform-name-tooltip',
            'upload-form-label-infoform-description',
            'upload-form-label-infoform-description-tooltip',
            'upload-form-label-usage-title',
            'upload-form-label-usage-filename',
            'action-upload',
            'apierror-mustbeloggedin',
            'apierror-permissiondenied',
            'badaccess-groups',
            'api-error-unknown-warning',
            'fileexists',
            'filepageexists',
            'file-exists-duplicate',
            'file-deleted-duplicate',
            'filename-bad-prefix',
            'filename-thumb-name',
            'filewasdeleted',
            'badfilename',
            'protectedpagetext',
        ],
    ],
    'mediawiki.ForeignStructuredUpload.BookletLayout' => [
        'scripts' => 'resources/src/mediawiki.ForeignStructuredUpload.BookletLayout/BookletLayout.js',
        'dependencies' => [
            'mediawiki.ForeignStructuredUpload',
            'mediawiki.Upload.BookletLayout',
            'mediawiki.widgets.CategoryMultiselectWidget',
            'mediawiki.widgets.DateInputWidget',
            'mediawiki.jqueryMsg',
            'mediawiki.api',
            'moment',
            'mediawiki.libs.jpegmeta',
        ],
        'messages' => [
            'upload-form-label-own-work',
            'upload-form-label-infoform-categories',
            'upload-form-label-infoform-date',
            'upload-form-label-own-work-message-generic-local',
            'upload-form-label-not-own-work-message-generic-local',
            'upload-form-label-not-own-work-local-generic-local',
            'upload-form-label-own-work-message-generic-foreign',
            'upload-form-label-not-own-work-message-generic-foreign',
            'upload-form-label-not-own-work-local-generic-foreign',
        ],
    ],
    'mediawiki.toc' => [
        'scripts' => 'resources/src/mediawiki.toc/toc.js',
        'styles' => [
            'resources/src/mediawiki.toc/toc.css'
                => [ 'media' => 'screen' ],
        ],
        'dependencies' => [
            'mediawiki.cookie',
            'mediawiki.toc.styles',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.toc.styles' => [
        'class' => ResourceLoaderLessVarFileModule::class,
        'lessMessages' => [ 'hidetoc', 'showtoc' ],
        'styles' => [
            'resources/src/mediawiki.toc.styles/common.css',
            'resources/src/mediawiki.toc.styles/screen.less'
                => [ 'media' => 'screen' ],
            'resources/src/mediawiki.toc.styles/print.css'
                => [ 'media' => 'print' ],
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.Uri' => [
        'localBasePath' => "$IP/resources/src/mediawiki.Uri",
        'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.Uri",
        'packageFiles' => [
            'Uri.js',
            [ 'name' => 'loose.regexp.js',
                'callback' => function () {
                    global $IP;
                    return ResourceLoaderMwUrlModule::makeJsFromExtendedRegExp(
                        file_get_contents( "$IP/resources/src/mediawiki.Uri/loose.regexp" )
                    );
                },
                'versionCallback' => function () {
                    return new ResourceLoaderFilePath( 'loose.regexp' );
                },
            ],
            [ 'name' => 'strict.regexp.js',
                'callback' => function () {
                    global $IP;
                    return ResourceLoaderMwUrlModule::makeJsFromExtendedRegExp(
                        file_get_contents( "$IP/resources/src/mediawiki.Uri/strict.regexp" )
                    );
                },
                'versionCallback' => function () {
                    return new ResourceLoaderFilePath( 'strict.regexp' );
                },
            ],
        ],
        'dependencies' => 'mediawiki.util',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.user' => [
        'scripts' => 'resources/src/mediawiki.user.js',
        'dependencies' => [
            'mediawiki.api',
            'mediawiki.cookie',
            // The two user.* modules are not used by mediawiki.user itself,
            // but kept as explicit dependencies because they provide part
            // of the mw.user API that consumers of this module expect.
            'user.options',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.userSuggest' => [
        'scripts' => 'resources/src/mediawiki.userSuggest.js',
        'dependencies' => [
            'jquery.suggestions',
            'mediawiki.api'
        ]
    ],
    'mediawiki.util' => [
        'localBasePath' => "$IP/resources/src/mediawiki.util",
        'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.util",
        'packageFiles' => [
            'util.js',
            'jquery.accessKeyLabel.js',
            [ 'name' => 'config.json', 'config' => [
                'FragmentMode',
                'GenerateThumbnailOnParse',
                'LoadScript',
            ] ],
        ],
        'dependencies' => [
            'jquery.client',
        ],
        'messages' => [ 'brackets', 'word-separator' ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.viewport' => [
        'scripts' => 'resources/src/mediawiki.viewport.js',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.checkboxtoggle' => [
        'targets' => [ 'desktop', 'mobile' ],
        'scripts' => 'resources/src/mediawiki.checkboxtoggle.js',
    ],
    'mediawiki.checkboxtoggle.styles' => [
        'targets' => [ 'desktop', 'mobile' ],
        'styles' => 'resources/src/mediawiki.checkboxtoggle.styles.css',
    ],
    'mediawiki.cookie' => [
        'localBasePath' => "$IP/resources/src/mediawiki.cookie",
        'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.cookie",
        'packageFiles' => [
            'index.js',
            [ 'name' => 'config.json', 'config' => [
                'prefix' => 'CookiePrefix',
                'domain' => 'CookieDomain',
                'path' => 'CookiePath',
                'expires' => 'CookieExpiration'
            ] ],
        ],
        'dependencies' => 'jquery.cookie',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.experiments' => [
        'scripts' => 'resources/src/mediawiki.experiments.js',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.editfont.styles' => [
        'styles' => 'resources/src/mediawiki.editfont.less',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.visibleTimeout' => [
        'scripts' => 'resources/src/mediawiki.visibleTimeout.js',
        'targets' => [ 'desktop', 'mobile' ],
    ],

    /* MediaWiki Action */

    'mediawiki.action.delete' => [
        'scripts' => 'resources/src/mediawiki.action/mediawiki.action.delete.js',
        'dependencies' => [
            'oojs-ui-core',
            'jquery.lengthLimit',
        ],
        'messages' => [
            // @todo Load this message in content language
            'colon-separator',
        ],
    ],
    'mediawiki.action.delete.file' => [
        'scripts' => 'resources/src/mediawiki.action/mediawiki.action.delete.file.js',
        'dependencies' => [
            'oojs-ui-core',
            'jquery.lengthLimit',
        ],
        'messages' => [
            // @todo Load this message in content language
            'colon-separator',
        ],
    ],
    'mediawiki.action.edit' => [
        'scripts' => [
            'resources/src/mediawiki.action/mediawiki.action.edit.js',
            'resources/src/mediawiki.action/mediawiki.action.edit.stash.js',
        ],
        'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.css',
        'dependencies' => [
            'mediawiki.action.edit.styles',
            'mediawiki.editfont.styles',
            'jquery.textSelection',
            'oojs-ui-core',
            'mediawiki.widgets.visibleLengthLimit',
            'mediawiki.api',
            'mediawiki.util',
        ],
    ],
    'mediawiki.action.edit.styles' => [
        'targets' => [ 'desktop', 'mobile' ],
        'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.styles.less',
    ],
    'mediawiki.action.edit.collapsibleFooter' => [
        'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.js',
        'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.css',
        'dependencies' => [
            'jquery.makeCollapsible',
            'mediawiki.storage',
            'mediawiki.icon',
        ],
    ],
    'mediawiki.action.edit.preview' => [
        'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.preview.js',
        'styles' => 'resources/src/mediawiki.action/mediawiki.action.edit.preview.css',
        'dependencies' => [
            'jquery.spinner',
            'jquery.textSelection',
            'mediawiki.api',
            'mediawiki.diff.styles',
            'mediawiki.language',
            'mediawiki.util',
            'mediawiki.jqueryMsg',
            'mediawiki.user',
            'oojs-ui-core',
        ],
        'messages' => [
            // Keep these message keys in sync with EditPage#setHeaders
            'creating',
            'editconflict',
            'editing',
            'editingcomment',
            'editingsection',
            'pagetitle',
            'otherlanguages',
            'summary-preview',
            'subject-preview',
            'parentheses',
            'previewerrortext',
        ],
    ],
    'mediawiki.action.history' => [
        'dependencies' => [ 'jquery.makeCollapsible' ],
        'scripts' => 'resources/src/mediawiki.action/mediawiki.action.history.js',
        'styles' => 'resources/src/mediawiki.action/mediawiki.action.history.css',
        'targets' => [ 'desktop', 'mobile' ]
    ],
    'mediawiki.action.history.styles' => [
        'skinStyles' => [
            'default' => 'resources/src/mediawiki.action/mediawiki.action.history.styles.less',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.action.view.metadata' => [
        'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.metadata.css',
        'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.metadata.js',
        'messages' => [
            'metadata-expand',
            'metadata-collapse',
        ],
        'dependencies' => 'mediawiki.action.view.filepage',
    ],
    'mediawiki.action.view.categoryPage.styles' => [
        'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.categoryPage.less',
        'targets' => [ 'desktop', 'mobile' ]
    ],
    'mediawiki.action.view.postEdit' => [
        'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.postEdit.js',
        'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.postEdit.less',
        'skinStyles' => [
            'monobook' => 'resources/src/mediawiki.action/mediawiki.action.view.postEdit.monobook.css',
        ],
        'dependencies' => [
            'mediawiki.jqueryMsg',
            'mediawiki.notification'
        ],
        'messages' => [
            'postedit-confirmation-created',
            'postedit-confirmation-restored',
            'postedit-confirmation-saved',
            'postedit-confirmation-published',
        ],
    ],
    'mediawiki.action.view.redirect' => [
        'scripts' => 'resources/src/mediawiki.action/mediawiki.action.view.redirect.js',
        'dependencies' => 'jquery.client',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.action.view.redirectPage' => [
        'targets' => [ 'desktop', 'mobile' ],
        'styles' => 'resources/src/mediawiki.action/mediawiki.action.view.redirectPage.css',
    ],
    'mediawiki.action.edit.editWarning' => [
        'targets' => [ 'desktop', 'mobile' ],
        'scripts' => 'resources/src/mediawiki.action/mediawiki.action.edit.editWarning.js',
        'dependencies' => [
            'jquery.textSelection',
            'mediawiki.jqueryMsg',
            'mediawiki.confirmCloseWindow',
            'user.options',
        ],
        'messages' => [
            'editwarning-warning',
            // editwarning-warning uses {{int:prefs-editing}}
            'prefs-editing'
        ],
    ],
    'mediawiki.action.view.filepage' => [
        'styles' => [
            'resources/src/mediawiki.action/mediawiki.action.view.filepage.print.css' =>
                [ 'media' => 'print' ],
            'resources/src/mediawiki.action/mediawiki.action.view.filepage.css',
        ],
    ],

    /* MediaWiki Language */

    'mediawiki.language' => [
        'class' => ResourceLoaderLanguageDataModule::class,
        'scripts' => [
            'resources/src/mediawiki.language/mediawiki.language.init.js',
            'resources/src/mediawiki.language/mediawiki.language.js',
            'resources/src/mediawiki.language/mediawiki.language.numbers.js',
            'resources/src/mediawiki.language/mediawiki.language.fallback.js',
        ],
        'languageScripts' => [
            'bs' => 'resources/src/mediawiki.language/languages/bs.js',
            'dsb' => 'resources/src/mediawiki.language/languages/dsb.js',
            'fi' => 'resources/src/mediawiki.language/languages/fi.js',
            'ga' => 'resources/src/mediawiki.language/languages/ga.js',
            'hsb' => 'resources/src/mediawiki.language/languages/hsb.js',
            'hu' => 'resources/src/mediawiki.language/languages/hu.js',
            'hy' => 'resources/src/mediawiki.language/languages/hy.js',
            'la' => 'resources/src/mediawiki.language/languages/la.js',
            'os' => 'resources/src/mediawiki.language/languages/os.js',
            'sl' => 'resources/src/mediawiki.language/languages/sl.js',
        ],
        'dependencies' => [
            'mediawiki.cldr',
        ],
        'messages' => [
            'and',
            'comma-separator',
            'word-separator'
        ],
    ],

    'mediawiki.cldr' => [
        'scripts' => 'resources/src/mediawiki.cldr/index.js',
        'dependencies' => [
            'mediawiki.libs.pluralruleparser',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],

    'mediawiki.libs.pluralruleparser' => [
        'scripts' => [
            'resources/lib/CLDRPluralRuleParser/CLDRPluralRuleParser.js',
            'resources/src/mediawiki.libs.pluralruleparser/export.js',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],

    'mediawiki.jqueryMsg' => [
        'localBasePath' => "$IP/resources/src/mediawiki.jqueryMsg",
        'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.jqueryMsg",
        'packageFiles' => [
            'mediawiki.jqueryMsg.js',
            [ 'name' => 'parserDefaults.json', 'callback' => function (
                ResourceLoaderContext $context, Config $config
            ) {
                $tagData = Sanitizer::getRecognizedTagData();
                $allowedHtmlElements = array_merge(
                    array_keys( $tagData['htmlpairs'] ),
                    array_diff(
                        array_keys( $tagData['htmlsingle'] ),
                        array_keys( $tagData['htmlsingleonly'] )
                    )
                );

                $magicWords = [
                    'SITENAME' => $config->get( 'Sitename' ),
                ];
                Hooks::runner()->onResourceLoaderJqueryMsgModuleMagicWords( $context, $magicWords );

                return [
                    'allowedHtmlElements' => $allowedHtmlElements,
                    'magic' => $magicWords,
                ];
            } ],
        ],
        'dependencies' => [
            'mediawiki.util',
            'mediawiki.language',
            'user.options',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],

    'mediawiki.language.months' => [
        'targets' => [ 'desktop', 'mobile' ],
        'scripts' => 'resources/src/mediawiki.language/mediawiki.language.months.js',
        'dependencies' => 'mediawiki.language',
        'messages' => array_merge(
            Language::MONTH_MESSAGES,
            Language::MONTH_GENITIVE_MESSAGES,
            Language::MONTH_ABBREVIATED_MESSAGES
        )
    ],

    'mediawiki.language.names' => [
        'localBasePath' => "$IP/resources/src/mediawiki.language",
        'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.language",
        'packageFiles' => [
            'mediawiki.language.names.js',
            [ 'name' => 'names.json', 'callback' => function ( ResourceLoaderContext $context ) {
                return MediaWikiServices::getInstance()
                    ->getLanguageNameUtils()
                    ->getLanguageNames( $context->getLanguage(), 'all' );
            } ],
        ],
        'dependencies' => 'mediawiki.language',
        'targets' => [ 'desktop', 'mobile' ],
    ],

    'mediawiki.language.specialCharacters' => [
        'localBasePath' => "$IP/resources/src/mediawiki.language",
        'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.language",
        'packageFiles' => [
            'mediawiki.language.specialCharacters.js',
            'specialcharacters.json'
        ],
        'dependencies' => 'mediawiki.language',
        'targets' => [ 'desktop', 'mobile' ],
        'messages' => [
            'special-characters-group-latin',
            'special-characters-group-latinextended',
            'special-characters-group-ipa',
            'special-characters-group-symbols',
            'special-characters-group-greek',
            'special-characters-group-greekextended',
            'special-characters-group-cyrillic',
            'special-characters-group-arabic',
            'special-characters-group-arabicextended',
            'special-characters-group-persian',
            'special-characters-group-hebrew',
            'special-characters-group-bangla',
            'special-characters-group-tamil',
            'special-characters-group-telugu',
            'special-characters-group-sinhala',
            'special-characters-group-devanagari',
            'special-characters-group-gujarati',
            'special-characters-group-thai',
            'special-characters-group-lao',
            'special-characters-group-khmer',
            'special-characters-group-canadianaboriginal',
            'special-characters-title-endash',
            'special-characters-title-emdash',
            'special-characters-title-minus'
        ]
    ],

    /* MediaWiki Libs */

    'mediawiki.libs.jpegmeta' => [
        'scripts' => [
            'resources/src/mediawiki.libs.jpegmeta/jpegmeta.js',
            'resources/src/mediawiki.libs.jpegmeta/export.js',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],

    /* MediaWiki Page */

    'mediawiki.page.gallery' => [
        'scripts' => 'resources/src/mediawiki.page.gallery.js',
        'dependencies' => [
            'mediawiki.page.gallery.styles',
            'jquery.throttle-debounce',
        ]
    ],
    'mediawiki.page.gallery.styles' => [
        'styles' => [
            'resources/src/mediawiki.page.gallery.styles/gallery.less',
            'resources/src/mediawiki.page.gallery.styles/print.css' => [ 'media' => 'print' ],
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.page.gallery.slideshow' => [
        'scripts' => 'resources/src/mediawiki.page.gallery.slideshow.js',
        'dependencies' => [
            'mediawiki.api',
            'mediawiki.Title',
            'oojs',
            'oojs-ui-core',
            'oojs-ui-widgets',
            'oojs-ui.styles.icons-media',
            'oojs-ui.styles.icons-movement'
        ],
        'messages' => [
            'gallery-slideshow-toggle'
        ]
    ],
    'mediawiki.page.ready' => [
        'localBasePath' => "$IP/resources/src/mediawiki.page.ready",
        'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.page.ready",
        'packageFiles' => [
            'ready.js',
            'checkboxShift.js',
            'checkboxHack.js',
        ],
        'dependencies' => [
            'mediawiki.util',
            'mediawiki.api'
        ],
        'targets' => [ 'desktop', 'mobile' ],
        'messages' => [
            'logging-out-notify'
        ]
    ],
    'mediawiki.page.startup' => [
        'scripts' => 'resources/src/mediawiki.page.startup.js',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.page.watch.ajax' => [
        'localBasePath' => "$IP/resources/src",
        'remoteBasePath' => "$wgResourceBasePath/resources/src",
        'targets' => [ 'desktop', 'mobile' ],
        'packageFiles' => [
            'mediawiki.page.watch.ajax.js',
            [ 'name' => 'config.json', 'config' => [ 'WatchlistExpiry' ] ],
        ],
        'dependencies' => [
            'mediawiki.api',
            'mediawiki.util',
            'mediawiki.Title',
            'mediawiki.jqueryMsg',
        ],
        'messages' => [
            'watch',
            'unwatch',
            'watching',
            'unwatching',
            'tooltip-ca-watch',
            'tooltip-ca-unwatch',
            'addedwatchtext',
            'addedwatchtext-talk',
            'removedwatchtext',
            'removedwatchtext-talk',
        ],
    ],
    'mediawiki.page.image.pagination' => [
        'scripts' => 'resources/src/mediawiki.page.image.pagination.js',
        'dependencies' => [
            'mediawiki.util',
            'jquery.spinner',
        ],
    ],

    /* MediaWiki Special pages */

    'mediawiki.rcfilters.filters.base.styles' => [
        'targets' => [ 'desktop', 'mobile' ],
        'skinStyles' => [
            'default' => 'resources/src/mediawiki.rcfilters/styles/mw.rcfilters.less',
        ],
    ],
    'mediawiki.rcfilters.highlightCircles.seenunseen.styles' => [
        'skinStyles' => [
            'default' => [
                'resources/src/mediawiki.rcfilters/' .
                'styles/mw.rcfilters.ui.ChangesListWrapperWidget.highlightCircles.seenunseen.less',
            ],
        ],
    ],
    'mediawiki.rcfilters.filters.dm' => [
        'targets' => [ 'desktop', 'mobile' ],
        'localBasePath' => "$IP/resources/src/mediawiki.rcfilters",
        'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.rcfilters",
        'packageFiles' => [
            'mw.rcfilters.js',
            'Controller.js',
            'UriProcessor.js',
            'dm/ChangesListViewModel.js',
            'dm/FilterGroup.js',
            'dm/FilterItem.js',
            'dm/FiltersViewModel.js',
            'dm/ItemModel.js',
            'dm/SavedQueriesModel.js',
            'dm/SavedQueryItemModel.js',
            [ 'name' => 'config.json', 'config' => [ 'StructuredChangeFiltersLiveUpdatePollingRate' ] ],
        ],
        'dependencies' => [
            'mediawiki.String',
            'oojs',
            'mediawiki.api',
            'mediawiki.jqueryMsg',
            'mediawiki.Uri',
            'mediawiki.user',
            'user.options',
        ],
        'messages' => [
            'quotation-marks',
            'rcfilters-filterlist-title',
        ],
    ],
    'mediawiki.rcfilters.filters.ui' => [
        'targets' => [ 'desktop', 'mobile' ],
        'localBasePath' => "$IP/resources/src/mediawiki.rcfilters",
        'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.rcfilters",
        'packageFiles' => [
            'mw.rcfilters.init.js',
            'HighlightColors.js',
            'ui/CheckboxInputWidget.js',
            'ui/FilterTagMultiselectWidget.js',
            'ui/ItemMenuOptionWidget.js',
            'ui/FilterMenuOptionWidget.js',
            'ui/FilterMenuSectionOptionWidget.js',
            'ui/TagItemWidget.js',
            'ui/FilterTagItemWidget.js',
            'ui/FilterMenuHeaderWidget.js',
            'ui/MenuSelectWidget.js',
            'ui/MainWrapperWidget.js',
            'ui/ViewSwitchWidget.js',
            'ui/ValuePickerWidget.js',
            'ui/ChangesLimitPopupWidget.js',
            'ui/ChangesLimitAndDateButtonWidget.js',
            'ui/DatePopupWidget.js',
            'ui/FilterWrapperWidget.js',
            'ui/ChangesListWrapperWidget.js',
            'ui/SavedLinksListWidget.js',
            'ui/SavedLinksListItemWidget.js',
            'ui/SaveFiltersPopupButtonWidget.js',
            'ui/FormWrapperWidget.js',
            'ui/FilterItemHighlightButton.js',
            'ui/HighlightPopupWidget.js',
            'ui/HighlightColorPickerWidget.js',
            'ui/LiveUpdateButtonWidget.js',
            'ui/MarkSeenButtonWidget.js',
            'ui/RcTopSectionWidget.js',
            'ui/RclTopSectionWidget.js',
            'ui/RclTargetPageWidget.js',
            'ui/RclToOrFromWidget.js',
            'ui/WatchlistTopSectionWidget.js',
            [ 'name' => 'config.json',
                'versionCallback' => 'ChangesListSpecialPage::getRcFiltersConfigSummary',
                'callback' => 'ChangesListSpecialPage::getRcFiltersConfigVars',
            ],
        ],
        'styles' => [
            'styles/mw.rcfilters.mixins.less',
            'styles/mw.rcfilters.variables.less',
            'styles/mw.rcfilters.ui.less',
            'styles/mw.rcfilters.ui.Overlay.less',
            'styles/mw.rcfilters.ui.FilterTagMultiselectWidget.less',
            'styles/mw.rcfilters.ui.ItemMenuOptionWidget.less',
            'styles/mw.rcfilters.ui.FilterMenuOptionWidget.less',
            'styles/mw.rcfilters.ui.FilterMenuSectionOptionWidget.less',
            'styles/mw.rcfilters.ui.TagItemWidget.less',
            'styles/mw.rcfilters.ui.FilterMenuHeaderWidget.less',
            'styles/mw.rcfilters.ui.MenuSelectWidget.less',
            'styles/mw.rcfilters.ui.ViewSwitchWidget.less',
            'styles/mw.rcfilters.ui.ValuePickerWidget.less',
            'styles/mw.rcfilters.ui.ChangesLimitPopupWidget.less',
            'styles/mw.rcfilters.ui.DatePopupWidget.less',
            'styles/mw.rcfilters.ui.FilterWrapperWidget.less',
            'styles/mw.rcfilters.ui.ChangesListWrapperWidget.less',
            'styles/mw.rcfilters.ui.HighlightColorPickerWidget.less',
            'styles/mw.rcfilters.ui.FilterItemHighlightButton.less',
            'styles/mw.rcfilters.ui.SavedLinksListWidget.less',
            'styles/mw.rcfilters.ui.SavedLinksListItemWidget.less',
            'styles/mw.rcfilters.ui.SaveFiltersPopupButtonWidget.less',
            'styles/mw.rcfilters.ui.LiveUpdateButtonWidget.less',
            'styles/mw.rcfilters.ui.RcTopSectionWidget.less',
            'styles/mw.rcfilters.ui.RclToOrFromWidget.less',
            'styles/mw.rcfilters.ui.RclTargetPageWidget.less',
            'styles/mw.rcfilters.ui.WatchlistTopSectionWidget.less',
            'styles/mw.rcfilters.ui.FilterTagMultiselectWidgetMobile.less'
        ],
        'skinStyles' => [
            'monobook' => [
                'styles/mw.rcfilters.ui.CapsuleItemWidget.monobook.less',
                'styles/mw.rcfilters.ui.FilterMenuOptionWidget.monobook.less',
            ],
        ],
        'messages' => [
            'rcfilters-tag-remove',
            'rcfilters-activefilters',
            'rcfilters-activefilters-hide',
            'rcfilters-activefilters-show',
            'rcfilters-activefilters-hide-tooltip',
            'rcfilters-activefilters-show-tooltip',
            'rcfilters-advancedfilters',
            'rcfilters-group-results-by-page',
            'rcfilters-limit-title',
            'rcfilters-limit-and-date-label',
            'rcfilters-date-popup-title',
            'rcfilters-days-title',
            'rcfilters-hours-title',
            'rcfilters-days-show-days',
            'rcfilters-days-show-hours',
            'rcfilters-highlighted-filters-list',
            'rcfilters-quickfilters',
            'rcfilters-quickfilters-placeholder-title',
            'rcfilters-quickfilters-placeholder-description',
            'rcfilters-savedqueries-defaultlabel',
            'rcfilters-savedqueries-rename',
            'rcfilters-savedqueries-setdefault',
            'rcfilters-savedqueries-unsetdefault',
            'rcfilters-savedqueries-remove',
            'rcfilters-savedqueries-new-name-label',
            'rcfilters-savedqueries-new-name-placeholder',
            'rcfilters-savedqueries-add-new-title',
            'rcfilters-savedqueries-already-saved',
            'rcfilters-savedqueries-apply-label',
            'rcfilters-savedqueries-apply-and-setdefault-label',
            'rcfilters-savedqueries-cancel-label',
            'rcfilters-restore-default-filters',
            'rcfilters-clear-all-filters',
            'rcfilters-show-new-changes',
            'rcfilters-search-placeholder',
            'rcfilters-search-placeholder-mobile',
            'rcfilters-invalid-filter',
            'rcfilters-empty-filter',
            'rcfilters-filterlist-title',
            'rcfilters-filterlist-feedbacklink',
            'rcfilters-filterlist-noresults',
            'rcfilters-filterlist-whatsthis',
            'rcfilters-highlightbutton-title',
            'rcfilters-highlightmenu-title',
            'rcfilters-highlightmenu-help',
            'rcfilters-noresults-conflict',
            'rcfilters-state-message-subset',
            'rcfilters-state-message-fullcoverage',
            'rcfilters-filter-excluded',
            'rcfilters-tag-prefix-namespace',
            'rcfilters-tag-prefix-namespace-inverted',
            'rcfilters-tag-prefix-tags',
            'rcfilters-exclude-button-off',
            'rcfilters-exclude-button-on',
            'rcfilters-view-tags',
            'rcfilters-view-namespaces-tooltip',
            'rcfilters-view-tags-tooltip',
            'rcfilters-view-return-to-default-tooltip',
            'rcfilters-view-tags-help-icon-tooltip',
            'rcfilters-liveupdates-button',
            'rcfilters-liveupdates-button-title-on',
            'rcfilters-liveupdates-button-title-off',
            'rcfilters-watchlist-markseen-button',
            'rcfilters-watchlist-edit-watchlist-button',
            'rcfilters-other-review-tools',
            'rcfilters-filter-showlinkedfrom-label',
            'rcfilters-filter-showlinkedfrom-option-label',
            'rcfilters-filter-showlinkedto-label',
            'rcfilters-filter-showlinkedto-option-label',
            'rcfilters-target-page-placeholder',
            'rcfilters-allcontents-label',
            'rcfilters-alldiscussions-label',
            'blanknamespace',
            'namespaces',
            'tags-title',
            'invert',
            'recentchanges-noresult',
            'recentchanges-timeout',
            'recentchanges-network',
            'recentchanges-notargetpage',
            'allpagesbadtitle',
            'quotation-marks',
        ],
        'dependencies' => [
            'oojs-ui-widgets',
            'jquery.makeCollapsible',
            'mediawiki.jqueryMsg',
            'mediawiki.language',
            'mediawiki.user',
            'mediawiki.util',
            'mediawiki.widgets',
            'mediawiki.rcfilters.filters.dm',
            'oojs-ui.styles.icons-content',
            'oojs-ui.styles.icons-moderation',
            'oojs-ui.styles.icons-editing-core',
            'oojs-ui.styles.icons-editing-styling',
            'oojs-ui.styles.icons-interactions',
            'oojs-ui.styles.icons-layout',
            'oojs-ui.styles.icons-media',
            'oojs-ui-windows.icons'
        ],
    ],
    'mediawiki.interface.helpers.styles' => [
        'class' => ResourceLoaderLessVarFileModule::class,
        'lessMessages' => [
            'comma-separator',
            'parentheses-start',
            'parentheses-end',
            'semicolon-separator',
            'brackets-start',
            'brackets-end',
            'pipe-separator'
        ],
        'skinStyles' => [
            'default' => 'resources/src/mediawiki.interface.helpers.styles.less',
        ],
        'targets' => [
            'desktop', 'mobile'
        ],
    ],
    'mediawiki.special' => [
        'styles' => [
            'resources/src/mediawiki.special/special.less',
            'resources/src/mediawiki.special/apisandbox.css',
            'resources/src/mediawiki.special/comparepages.less',
            'resources/src/mediawiki.special/contributions.less',
            'resources/src/mediawiki.special/edittags.css',
            'resources/src/mediawiki.special/movePage.css',
            'resources/src/mediawiki.special/newpages.less',
            'resources/src/mediawiki.special/pagesWithProp.css',
            'resources/src/mediawiki.special/upload.css',
            'resources/src/mediawiki.special/userrights.css',
            'resources/src/mediawiki.special/watchlist.css',
            'resources/src/mediawiki.special/block.less',
            'resources/src/mediawiki.special/listFiles.less',
            'resources/src/mediawiki.special/blocklist.less',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.special.apisandbox' => [
        'styles' => 'resources/src/mediawiki.special.apisandbox/apisandbox.css',
        'scripts' => 'resources/src/mediawiki.special.apisandbox/apisandbox.js',
        'targets' => [ 'desktop', 'mobile' ],
        'dependencies' => [
            'mediawiki.api',
            'mediawiki.jqueryMsg',
            'mediawiki.util',
            'oojs-ui',
            'oojs-ui.styles.icons-content',
            'oojs-ui.styles.icons-editing-advanced',
            'oojs-ui.styles.icons-interactions',
            'oojs-ui.styles.icons-moderation',
            'mediawiki.widgets',
            'mediawiki.widgets.datetime',
            'jquery.makeCollapsible',
        ],
        'messages' => [
            'apisandbox-intro',
            'apisandbox-submit',
            'apisandbox-reset',
            'apisandbox-retry',
            'apisandbox-loading',
            'apisandbox-load-error',
            'apisandbox-fetch-token',
            'apisandbox-add-multi',
            'apisandbox-helpurls',
            'apisandbox-examples',
            'apisandbox-dynamic-parameters',
            'apisandbox-dynamic-parameters-add-label',
            'apisandbox-dynamic-parameters-add-placeholder',
            'apisandbox-dynamic-error-exists',
            'apisandbox-templated-parameter-reason',
            'apisandbox-deprecated-parameters',
            'apisandbox-no-parameters',
            'paramvalidator-help-type-number-min',
            'paramvalidator-help-type-number-max',
            'paramvalidator-help-type-number-minmax',
            'api-help-param-multi-separate',
            'paramvalidator-help-multi-max',
            'paramvalidator-help-type-string-maxbytes',
            'paramvalidator-help-type-string-maxchars',
            'apisandbox-submit-invalid-fields-title',
            'apisandbox-submit-invalid-fields-message',
            'apisandbox-results',
            'apisandbox-sending-request',
            'apisandbox-loading-results',
            'apisandbox-results-error',
            'apisandbox-results-login-suppressed',
            'apisandbox-request-selectformat-label',
            'apisandbox-request-format-url-label',
            'apisandbox-request-url-label',
            'apisandbox-request-format-json-label',
            'apisandbox-request-json-label',
            'apisandbox-request-time',
            'apisandbox-results-fixtoken',
            'apisandbox-results-fixtoken-fail',
            'apisandbox-alert-page',
            'apisandbox-alert-field',
            'apisandbox-continue',
            'apisandbox-continue-clear',
            'apisandbox-continue-help',
            'apisandbox-param-limit',
            'apisandbox-multivalue-all-namespaces',
            'apisandbox-multivalue-all-values',
            'api-format-prettyprint-status',
            'blanknamespace',
            'comma-separator',
            'word-separator',
            'and'
        ],
    ],
    'mediawiki.special.block' => [
        'localBasePath' => "$IP/resources/src",
        'remoteBasePath' => "$wgResourceBasePath/resources/src",
        'packageFiles' => [
            'mediawiki.special.block.js',
            [ 'name' => 'config.json', 'config' => [
                'BlockAllowsUTEdit',
            ] ],
        ],
        'dependencies' => [
            'oojs-ui-core',
            'oojs-ui.styles.icons-editing-core',
            'oojs-ui.styles.icons-editing-advanced',
            'mediawiki.widgets.DateInputWidget',
            'mediawiki.widgets.SelectWithInputWidget',
            'mediawiki.widgets.NamespacesMultiselectWidget',
            'mediawiki.widgets.TitlesMultiselectWidget',
            'mediawiki.widgets.UserInputWidget',
            'mediawiki.util',
            'mediawiki.htmlform',
            'moment',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    // This bundles various small (under 5 KB?) JavaScript files that:
    // - .. are never loaded when viewing or editing wiki pages.
    // - .. are only used by logged-in users.
    // - .. depend on oojs-ui-core.
    // - .. contain UI intialisation code (e.g. no public module exports, because
    //      requiring or depending on this bundle is awkward)
    'mediawiki.misc-authed-ooui' => [
        'localBasePath' => "$IP/resources/src/mediawiki.misc-authed-ooui",
        'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.misc-authed-ooui",
        'scripts' => [
            'special.changecredentials.js',
            'special.movePage.js',
            'special.mute.js',
            'special.pageLanguage.js',
        ],
        'dependencies' => [
            'mediawiki.api', // Used by special.changecredentials.js
            'mediawiki.htmlform.ooui', // Used by special.changecredentials.js
            'mediawiki.widgets.visibleLengthLimit', // Used by special.movePage.js
            'mediawiki.widgets', // Used by special.movePage.js
            'oojs-ui-core', // Used by special.pageLanguage.js
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    // This bundles various small (under 2 KB?) JavaScript files that:
    // - .. are only used by logged-in users when a non-default preference was enabled.
    // - .. may be loaded in the critical path for those users on page views.
    // - .. do NOT depend on OOUI.
    // - .. contain only UI intialisation code (e.g. no public exports)
    'mediawiki.misc-authed-pref' => [
        'localBasePath' => "$IP/resources/src/mediawiki.misc-authed-pref",
        'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.misc-authed-pref",
        'scripts' => [
            'rightClickEdit.js',
            'dblClickEdit.js',
        ],
        'dependencies' => [
            'user.options',
        ],
    ],
    // This bundles various small scripts that relate to moderation or curation
    // in some way, and:
    // - .. are only loaded for a privileged subset of logged-in users.
    // - .. may be loaded in the critical path on page views.
    // - .. do NOT depend on OOUI or other "large" modules.
    // - .. contain only UI intialisation code (e.g. no public exports)
    'mediawiki.misc-authed-curate' => [
        'localBasePath' => "$IP/resources/src/mediawiki.misc-authed-curate",
        'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.misc-authed-curate",
        'targets' => [ 'desktop', 'mobile' ],
        'scripts' => [
            'patrol.js',
            'rollback.js',
        ],
        'dependencies' => [
            'mediawiki.api',
            'mediawiki.util',
            'mediawiki.Title',
            'jquery.spinner',
            'user.options',
            'jquery.confirmable',
        ],
        'messages' => [
            'markedaspatrollednotify',
            'markedaspatrollederrornotify',
            'rollback-confirmation-confirm',
            'rollback-confirmation-yes',
            'rollback-confirmation-no',
        ],
    ],
    'mediawiki.special.changeslist' => [
        'styles' => [
            'resources/src/mediawiki.special.changeslist/changeslist.less'
        ],
        'skinStyles' => [
            'default' => 'resources/src/mediawiki.special.changeslist/default.less',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.special.changeslist.enhanced' => [
        'styles' => 'resources/src/mediawiki.special.changeslist.enhanced.less',
    ],
    'mediawiki.special.changeslist.legend' => [
        'styles' => 'resources/src/mediawiki.special.changeslist.legend.less',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.special.changeslist.legend.js' => [
        'scripts' => 'resources/src/mediawiki.special.changeslist.legend.js',
        'dependencies' => [
            'jquery.makeCollapsible',
            'mediawiki.cookie',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.special.contributions' => [
        'scripts' => 'resources/src/mediawiki.special.contributions.js',
        'dependencies' => [
            'jquery.makeCollapsible',
            'oojs-ui',
            'mediawiki.widgets.DateInputWidget',
            'mediawiki.jqueryMsg',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.special.edittags' => [
        'scripts' => 'resources/src/mediawiki.special.edittags.js',
        'dependencies' => [
            'jquery.chosen',
            'jquery.lengthLimit',
        ],
        'messages' => [
            'tags-edit-chosen-placeholder',
            'tags-edit-chosen-no-results',
        ],
    ],
    'mediawiki.special.import' => [
        'scripts' => 'resources/src/mediawiki.special.import.js',
    ],
    'mediawiki.special.preferences.ooui' => [
        'targets' => [ 'desktop', 'mobile' ],
        'scripts' => [
            'resources/src/mediawiki.special.preferences.ooui/confirmClose.js',
            'resources/src/mediawiki.special.preferences.ooui/convertmessagebox.js',
            'resources/src/mediawiki.special.preferences.ooui/editfont.js',
            'resources/src/mediawiki.special.preferences.ooui/skinPrefs.js',
            'resources/src/mediawiki.special.preferences.ooui/signature.js',
            'resources/src/mediawiki.special.preferences.ooui/tabs.js',
            'resources/src/mediawiki.special.preferences.ooui/timezone.js',
            'resources/src/mediawiki.special.preferences.ooui/personalEmail.js',
        ],
        'messages' => [
            'prefs-tabs-navigation-hint',
            'prefswarning-warning',
            'saveprefs',
            'savedprefs',
        ],
        'dependencies' => [
            'mediawiki.language',
            'mediawiki.confirmCloseWindow',
            'mediawiki.notification.convertmessagebox',
            'mediawiki.storage',
            'oojs-ui-widgets',
            'mediawiki.widgets.SelectWithInputWidget',
            'mediawiki.editfont.styles',
            'mediawiki.widgets.visibleLengthLimit',
        ],
    ],
    'mediawiki.special.preferences.styles.ooui' => [
        'targets' => [ 'desktop', 'mobile' ],
        'styles' => 'resources/src/mediawiki.special.preferences.styles.ooui.less',
    ],
    'mediawiki.special.recentchanges' => [
        'dependencies' => [
            'mediawiki.widgets'
        ],
        'scripts' => 'resources/src/mediawiki.special.recentchanges.js',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.special.revisionDelete' => [
        'scripts' => 'resources/src/mediawiki.special.revisionDelete.js',
        'messages' => [
            // @todo Load this message in content language
            'colon-separator',
        ],
        'dependencies' => [
            'jquery.lengthLimit',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.special.search' => [
        'scripts' => 'resources/src/mediawiki.special.search/search.js',
        'dependencies' => 'mediawiki.widgets.SearchInputWidget',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.special.search.commonsInterwikiWidget' => [
        'scripts' => 'resources/src/mediawiki.special.search.commonsInterwikiWidget.js',
        'dependencies' => [
            'mediawiki.api',
            'mediawiki.Uri',
            'mediawiki.jqueryMsg'
        ],
        'targets' => [ 'desktop', 'mobile' ],
        'messages' => [
            'search-interwiki-more-results',
            'searchprofile-images'
        ],
    ],
    'mediawiki.special.search.interwikiwidget.styles' => [
        'styles' => 'resources/src/mediawiki.special.search.interwikiwidget.styles.less',
        'targets' => [ 'desktop', 'mobile' ]
    ],
    'mediawiki.special.search.styles' => [
        'styles' => 'resources/src/mediawiki.special.search.styles.css',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.special.undelete' => [
        'scripts' => 'resources/src/mediawiki.special.undelete.js',
        'dependencies' => [
            'mediawiki.widgets.visibleLengthLimit',
            'mediawiki.widgets',
        ],
    ],
    'mediawiki.special.unwatchedPages' => [
        'scripts' => 'resources/src/mediawiki.special.unwatchedPages/unwatchedPages.js',
        'styles' => 'resources/src/mediawiki.special.unwatchedPages/unwatchedPages.css',
        'messages' => [
            'addedwatchtext-short',
            'removedwatchtext-short',
            'unwatch',
            'unwatching',
            'watch',
            'watching',
        ],
        'dependencies' => [
            'mediawiki.api',
            'mediawiki.Title',
            'mediawiki.util',
        ],
    ],
    'mediawiki.special.upload' => [
        'templates' => [
            'thumbnail.html' => 'resources/src/mediawiki.special.upload/templates/thumbnail.html',
        ],
        'scripts' => 'resources/src/mediawiki.special.upload/upload.js',
        'messages' => [
            'widthheight',
            'size-bytes',
            'size-kilobytes',
            'size-megabytes',
            'size-gigabytes',
            'largefileserver',
            'editwarning-warning',
            // editwarning-warning uses {{int:prefs-editing}}
            'prefs-editing',
        ],
        'dependencies' => [
            'mediawiki.special',
            'jquery.spinner',
            'mediawiki.jqueryMsg',
            'mediawiki.api',
            'mediawiki.libs.jpegmeta',
            'mediawiki.Title',
            'mediawiki.util',
            'mediawiki.confirmCloseWindow',
            'user.options',
        ],
    ],
    'mediawiki.special.userlogin.common.styles' => [
        'targets' => [ 'desktop', 'mobile' ],
        'skinStyles' => [
            'default' => 'resources/src/mediawiki.special.userlogin.common.styles/userlogin.css',
        ],
    ],
    'mediawiki.special.userlogin.login.styles' => [
        'styles' => [
            'resources/src/mediawiki.special.userlogin.login.styles/login.css',
        ],
    ],
    'mediawiki.special.createaccount' => [
        'localBasePath' => "$IP/resources/src/mediawiki.special.createaccount",
        'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.special.createaccount",
        'packageFiles' => [
            'signup.js',
            'HtmlformChecker.js'
        ],
        'messages' => [
            'createacct-emailrequired',
            'noname',
            'userexists',
            'createacct-normalization',
        ],
        'dependencies' => [
            'mediawiki.api',
            'mediawiki.jqueryMsg',
            'mediawiki.util',
        ],
    ],
    'mediawiki.special.userlogin.signup.styles' => [
        'styles' => [
            'resources/src/mediawiki.special.userlogin.signup.styles/signup.css',
        ],
    ],
    'mediawiki.special.userrights' => [
        'scripts' => 'resources/src/mediawiki.special.userrights.js',
        'dependencies' => [
            'mediawiki.notification.convertmessagebox',
            'jquery.lengthLimit',
        ],
    ],
    'mediawiki.special.watchlist' => [
        'scripts' => [
            'resources/src/mediawiki.special.watchlist/watchlist.js',
            'resources/src/mediawiki.special.watchlist/visitedstatus.js',
        ],
        'messages' => [
            'addedwatchtext',
            'addedwatchtext-talk',
            'removedwatchtext',
            'removedwatchtext-talk',
            'tooltip-ca-watch',
            'tooltip-ca-unwatch',
            'watchlist-unwatch',
            'watchlist-unwatch-undo',
        ],
        'dependencies' => [
            'mediawiki.api',
            'mediawiki.jqueryMsg',
            'mediawiki.Title',
            'mediawiki.util',
            'oojs-ui-core',
            'user.options',
        ],
    ],
    'mediawiki.special.version' => [
        'styles' => 'resources/src/mediawiki.special.version.css',
    ],

    /* MediaWiki Installer */

    // Used in the web installer. Test it after modifying this definition!
    'mediawiki.legacy.config' => [
        // These files are not actually loaded via ResourceLoader, so dependencies etc. won't work.
        'scripts' => 'mw-config/config.js',
        'styles' => 'mw-config/config.css',
    ],

    /* MediaWiki Legacy */

    'mediawiki.legacy.commonPrint' => [
        'deprecated' => 'Use ResourceLoaderSkinModule',
        'styles' => [
            'resources/src/mediawiki.skinning/commonPrint.css' => [ 'media' => 'print' ]
        ],
    ],
    'mediawiki.legacy.protect' => [
        'localBasePath' => "$IP/resources/src/mediawiki.legacy",
        'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.legacy",
        'packageFiles' => [
            'protect.js',
            [ 'name' => 'config.json', 'config' => [ 'CascadingRestrictionLevels' ] ],
        ],
        'dependencies' => 'jquery.lengthLimit',
        'messages' => [ 'protect-unchain-permissions' ]
    ],
    // Used in the web installer. Test it after modifying this definition!
    'mediawiki.legacy.shared' => [
        'deprecated' => 'Your default skin ResourceLoader class should use '
            . 'ResourceLoaderSkinModule::class',
        'class' => ResourceLoaderSkinModule::class,
        'features' => [ 'legacy' ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.legacy.oldshared' => [
        'deprecated' => 'Please copy the CSS needed in this module to the associated skin',
        'styles' => [
            'resources/src/mediawiki.legacy/oldshared.css' => [ 'media' => 'screen' ]
        ],
    ],

    /* MediaWiki UI */

    'mediawiki.ui' => [
        'deprecated' => 'Please use OOUI instead.',
        'skinStyles' => [
            'default' => [
                'resources/src/mediawiki.ui/default.less',
            ],
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.ui.checkbox' => [
        'skinStyles' => [
            'default' => [
                'resources/src/mediawiki.ui/components/checkbox.less',
            ],
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.ui.radio' => [
        'skinStyles' => [
            'default' => [
                'resources/src/mediawiki.ui/components/radio.less',
            ],
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    // Lightweight module for anchor styles
    'mediawiki.ui.anchor' => [
        'skinStyles' => [
            'default' => [
                'resources/src/mediawiki.ui/components/anchors.less',
            ],
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    // Lightweight module for button styles
    'mediawiki.ui.button' => [
        'skinStyles' => [
            'default' => [
                'resources/src/mediawiki.ui/components/buttons.less',
            ],
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.ui.input' => [
        'skinStyles' => [
            'default' => [
                'resources/src/mediawiki.ui/components/inputs.less',
            ],
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.ui.icon' => [
        'skinStyles' => [
            'default' => [
                'resources/src/mediawiki.ui/components/icons.less',
            ],
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],

    'mediawiki.widgets' => [
        'scripts' => [
            'resources/src/mediawiki.widgets/mw.widgets.NamespaceInputWidget.js',
            'resources/src/mediawiki.widgets/mw.widgets.ComplexNamespaceInputWidget.js',
            'resources/src/mediawiki.widgets/mw.widgets.CopyTextLayout.js',
            'resources/src/mediawiki.widgets/mw.widgets.TitleWidget.js',
            'resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js',
            'resources/src/mediawiki.widgets/mw.widgets.TitleSearchWidget.js',
            'resources/src/mediawiki.widgets/mw.widgets.ComplexTitleInputWidget.js',
            'resources/src/mediawiki.widgets/mw.widgets.TitleOptionWidget.js',
        ],
        'styles' => [
            'resources/src/mediawiki.widgets/mw.widgets.CopyTextLayout.css',
        ],
        'skinStyles' => [
            'default' => [
                'resources/src/mediawiki.widgets/mw.widgets.TitleWidget.less',
            ],
        ],
        'dependencies' => [
            'oojs-ui-widgets',
            'mediawiki.widgets.styles',
            // TitleInputWidget
            'oojs-ui.styles.icons-content',
            'mediawiki.Title',
            'mediawiki.api',
            'mediawiki.String',
            'mediawiki.language',
        ],
        'messages' => [
            // NamespaceInputWidget
            'blanknamespace',
            'namespacesall',
            // CopyTextLayout
            'mw-widgets-copytextlayout-copy',
            'mw-widgets-copytextlayout-copy-fail',
            'mw-widgets-copytextlayout-copy-success',
            // TitleInputWidget
            'mw-widgets-titleinput-description-new-page',
            'mw-widgets-titleinput-description-redirect',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.styles' => [
        'skinStyles' => [
            'default' => [
                'resources/src/mediawiki.widgets/mw.widgets.ComplexNamespaceInputWidget.base.css',
                'resources/src/mediawiki.widgets/mw.widgets.ComplexTitleInputWidget.base.css',
            ],
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.AbandonEditDialog' => [
        'scripts' => [
            'resources/src/mediawiki.widgets/mw.widgets.AbandonEditDialog.js',
        ],
        'messages' => [
            'mw-widgets-abandonedit',
            'mw-widgets-abandonedit-discard',
            'mw-widgets-abandonedit-keep',
            'mw-widgets-abandonedit-title',
        ],
        'dependencies' => [
            'oojs-ui-windows',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.DateInputWidget' => [
        'scripts' => [
            'resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.js',
            'resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.js',
        ],
        'skinStyles' => [
            'default' => [
                'resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.less',
                'resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.less',
            ],
        ],
        'messages' => [
            'mw-widgets-dateinput-no-date',
            'mw-widgets-dateinput-placeholder-day',
            'mw-widgets-dateinput-placeholder-month',
        ],
        'dependencies' => [
            'oojs-ui-widgets',
            'oojs-ui.styles.icons-movement',
            'moment',
            'mediawiki.widgets.DateInputWidget.styles',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.DateInputWidget.styles' => [
        'skinStyles' => [
            'default' => [
                'resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.styles.less',
            ],
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.visibleLengthLimit' => [
        'scripts' => [
            'resources/src/mediawiki.widgets.visibleLengthLimit/mediawiki.widgets.visibleLengthLimit.js'
        ],
        'dependencies' => [
            'oojs-ui-core',
            'jquery.lengthLimit',
            'mediawiki.language',
            'mediawiki.String',
        ],
        'targets' => [ 'desktop', 'mobile' ]
    ],
    'mediawiki.widgets.datetime' => [
        'scripts' => [
            'resources/src/mediawiki.widgets.datetime/mediawiki.widgets.datetime.js',
            'resources/src/mediawiki.widgets.datetime/CalendarWidget.js',
            'resources/src/mediawiki.widgets.datetime/DateTimeFormatter.js',
            'resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.js',
            'resources/src/mediawiki.widgets.datetime/ProlepticGregorianDateTimeFormatter.js',
        ],
        'skinStyles' => [
            'default' => [
                'resources/src/mediawiki.widgets.datetime/CalendarWidget.less',
                'resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.less',
            ],
        ],
        'messages' => [
            'timezone-utc',
            'timezone-local',
            'january',
            'february',
            'march',
            'april',
            'may_long',
            'june',
            'july',
            'august',
            'september',
            'october',
            'november',
            'december',
            'jan',
            'feb',
            'mar',
            'apr',
            'may',
            'jun',
            'jul',
            'aug',
            'sep',
            'oct',
            'nov',
            'dec',
            'sunday',
            'monday',
            'tuesday',
            'wednesday',
            'thursday',
            'friday',
            'saturday',
            'sun',
            'mon',
            'tue',
            'wed',
            'thu',
            'fri',
            'sat',
            'period-am',
            'period-pm',
        ],
        'dependencies' => [
            'mediawiki.util',
            'oojs-ui-core',
            'oojs-ui.styles.icons-moderation',
            'oojs-ui.styles.icons-movement',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.expiry' => [
        'scripts' => [
            'resources/src/mediawiki.widgets/mw.widgets.ExpiryInputWidget.js',
        ],
        'dependencies' => [
            'oojs-ui-core',
            'oojs-ui-widgets',
            'moment',
            'mediawiki.widgets.datetime'
        ],
        'skinStyles' => [
            'default' => 'resources/src/mediawiki.widgets/mw.widgets.ExpiryInputWidget.less',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.CheckMatrixWidget' => [
        'scripts' => [
            'resources/src/mediawiki.widgets/mw.widgets.CheckMatrixWidget.js',
        ],
        'dependencies' => [
            'oojs-ui-core',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.CategoryMultiselectWidget' => [
        'scripts' => [
            'resources/src/mediawiki.widgets/mw.widgets.CategoryTagItemWidget.js',
            'resources/src/mediawiki.widgets/mw.widgets.CategoryMultiselectWidget.js',
        ],
        'dependencies' => [
            'oojs-ui-widgets',
            'mediawiki.api',
            'mediawiki.ForeignApi',
            'mediawiki.Title',
        ],
        'messages' => [
            'red-link-title',
            'mw-widgets-categoryselector-add-category-placeholder',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.SelectWithInputWidget' => [
        'scripts' => 'resources/src/mediawiki.widgets/mw.widgets.SelectWithInputWidget.js',
        'dependencies' => [
            'mediawiki.widgets.SelectWithInputWidget.styles',
            'oojs-ui-widgets',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.SelectWithInputWidget.styles' => [
        'styles' => 'resources/src/mediawiki.widgets/mw.widgets.SelectWithInputWidget.base.css',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.SizeFilterWidget' => [
        'scripts' => 'resources/src/mediawiki.widgets/mw.widgets.SizeFilterWidget.js',
        'dependencies' => [
            'mediawiki.widgets.SizeFilterWidget.styles',
            'oojs-ui-widgets',
        ],
        'messages' => [
            'minimum-size',
            'maximum-size',
            'pagesize',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.SizeFilterWidget.styles' => [
        'styles' => 'resources/src/mediawiki.widgets/mw.widgets.SizeFilterWidget.base.css',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.MediaSearch' => [
        'scripts' => [
            'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.APIResultsProvider.js',
            'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.APIResultsQueue.js',
            'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaResourceProvider.js',
            'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaSearchProvider.js',
            'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaResourceQueue.js',
            'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaSearchQueue.js',
            'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaSearchWidget.js',
            'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaResultWidget.js',
        ],
        'styles' => [
            'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaSearchWidget.css',
            'resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaResultWidget.css',
        ],
        'dependencies' => [
            'oojs-ui-widgets',
            'mediawiki.ForeignApi',
            'mediawiki.Title',
            'mediawiki.util',
        ],
        'messages' => [
            'mw-widgets-mediasearch-noresults',
            'mw-widgets-mediasearch-input-placeholder',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.Table' => [
        'scripts' => [
            'resources/src/mediawiki.widgets/Table/mw.widgets.RowWidget.js',
            'resources/src/mediawiki.widgets/Table/mw.widgets.RowWidgetModel.js',
            'resources/src/mediawiki.widgets/Table/mw.widgets.TableWidget.js',
            'resources/src/mediawiki.widgets/Table/mw.widgets.TableWidgetModel.js'
        ],
        'styles' => [
            'resources/src/mediawiki.widgets/Table/mw.widgets.RowWidget.css',
            'resources/src/mediawiki.widgets/Table/mw.widgets.TableWidget.css',
        ],
        'dependencies' => [
            'oojs-ui-widgets'
        ],
        'messages' => [
            'mw-widgets-table-row-delete',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.UserInputWidget' => [
        'scripts' => [
            'resources/src/mediawiki.widgets/mw.widgets.UserInputWidget.js',
        ],
        'dependencies' => [
            'mediawiki.api',
            'oojs-ui-widgets',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.UsersMultiselectWidget' => [
        'scripts' => [
            'resources/src/mediawiki.widgets/mw.widgets.UsersMultiselectWidget.js',
        ],
        'dependencies' => [
            'mediawiki.api',
            'oojs-ui-widgets',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.NamespacesMultiselectWidget' => [
        'scripts' => [
            'resources/src/mediawiki.widgets/mw.widgets.NamespacesMultiselectWidget.js',
            'resources/src/mediawiki.widgets/mw.widgets.NamespacesMenuOptionWidget.js',
        ],
        'dependencies' => [
            'oojs-ui-widgets',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.TitlesMultiselectWidget' => [
        'scripts' => [
            'resources/src/mediawiki.widgets/mw.widgets.TitlesMultiselectWidget.js',
        ],
        'dependencies' => [
            'mediawiki.api',
            'oojs-ui-widgets',
            // FIXME: Needs TitleInputWidget only
            'mediawiki.widgets',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.TagMultiselectWidget.styles' => [
        'styles' => 'resources/src/mediawiki.widgets/mw.widgets.TagMultiselectWidget.base.css',
    ],
    'mediawiki.widgets.SearchInputWidget' => [
        'scripts' => [
            'resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.js',
        ],
        'dependencies' => [
            'mediawiki.searchSuggest',
            'oojs-ui.styles.icons-interactions',
            // FIXME: Needs TitleInputWidget only
            'mediawiki.widgets',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.SearchInputWidget.styles' => [
        'skinStyles' => [
            'default' => [
                'resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.css',
            ],
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'mediawiki.widgets.StashedFileWidget' => [
        'scripts' => [
            'resources/src/mediawiki.widgets/mw.widgets.StashedFileWidget.js',
        ],
        'skinStyles' => [
            'default' => [
                'resources/src/mediawiki.widgets/mw.widgets.StashedFileWidget.less',
            ],
        ],
        'dependencies' => [
            'mediawiki.api',
            'oojs-ui-core',
        ],
    ],
    'mediawiki.watchstar.widgets' => [
        'packageFiles' => [
            'resources/src/mediawiki.watchstar.widgets/WatchlistExpiryWidget.js',
        ],
        'dependencies' => [
            'oojs-ui'
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],

    'mediawiki.deflate' => [
        'packageFiles' => [
            'resources/src/mediawiki.deflate/mw.deflate.js',
            'resources/lib/pako/pako_deflate.js',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],

    /* OOjs */
    'oojs' => [
        'scripts' => [
            'resources/lib/oojs/oojs.jquery.js',
            'resources/src/oojs-global.js',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],

    'mediawiki.router' => [
        'scripts' => [
            'resources/src/mediawiki.router/index.js',
        ],
        'targets' => [ 'desktop', 'mobile' ],
        'dependencies' => [
            'oojs-router',
        ],
    ],

    'oojs-router' => [
        'scripts' => [
            'resources/lib/oojs-router/oojs-router.js',
        ],
        'targets' => [ 'desktop', 'mobile' ],
        'dependencies' => [
            'oojs',
        ],
    ],

    /* OOjs UI */

    // Omnibus module.
    'oojs-ui' => [
        'dependencies' => [
            'oojs-ui-core',
            'oojs-ui-widgets',
            'oojs-ui-toolbars',
            'oojs-ui-windows',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],

    // The core JavaScript library.
    'oojs-ui-core' => [
        'class' => ResourceLoaderOOUIFileModule::class,
        'scripts' => [
            'resources/lib/ooui/oojs-ui-core.js',
            'resources/src/ooui-local.js',
        ],
        'themeScripts' => 'core',
        'dependencies' => [
            'oojs',
            'oojs-ui-core.styles',
            'oojs-ui-core.icons',
            'oojs-ui.styles.indicators',
            'mediawiki.language',
        ],
        'messages' => [
            'ooui-field-help',
            'ooui-combobox-button-label',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    // This contains only the styles required by core widgets.
    'oojs-ui-core.styles' => [
        'class' => ResourceLoaderOOUIFileModule::class,
        'styles' => [
            'resources/lib/ooui/wikimedia-ui-base.less', // Providing Wikimedia UI LESS variables to all
        ],
        'themeStyles' => 'core',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'oojs-ui-core.icons' => [
        'class' => ResourceLoaderOOUIIconPackModule::class,
        'icons' => [
            'add', 'alert', 'infoFilled', 'error', 'check', 'close', 'info', 'search', 'subtract'
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    // Additional widgets and layouts module.
    'oojs-ui-widgets' => [
        'class' => ResourceLoaderOOUIFileModule::class,
        'scripts' => 'resources/lib/ooui/oojs-ui-widgets.js',
        'themeStyles' => 'widgets',
        'dependencies' => [
            'oojs-ui-core',
            'oojs-ui-widgets.icons',
        ],
        'messages' => [
            'ooui-item-remove',
            'ooui-outline-control-move-down',
            'ooui-outline-control-move-up',
            'ooui-outline-control-remove',
            'ooui-selectfile-button-select',
            'ooui-selectfile-dragdrop-placeholder',
            'ooui-selectfile-not-supported',
            'ooui-selectfile-placeholder',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    // You should never directly load this module. The CSS classes it defines are not a public API,
    // they depend on the internal structure of OOUI widgets, which can change at any time. If you
    // find that you need to load this module, you're probably doing something wrong or very hacky.
    'oojs-ui-widgets.styles' => [
        'class' => ResourceLoaderOOUIFileModule::class,
        'themeStyles' => 'widgets',
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'oojs-ui-widgets.icons' => [
        'class' => ResourceLoaderOOUIIconPackModule::class,
        // Do not repeat icons already used in 'oojs-ui-core.icons'
        'icons' => [ 'attachment', 'collapse', 'expand', 'trash', 'upload' ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    // Toolbar and tools module.
    'oojs-ui-toolbars' => [
        'class' => ResourceLoaderOOUIFileModule::class,
        'scripts' => 'resources/lib/ooui/oojs-ui-toolbars.js',
        'themeStyles' => 'toolbars',
        'dependencies' => [
            'oojs-ui-core',
            'oojs-ui-toolbars.icons',
        ],
        'messages' => [
            'ooui-toolbar-more',
            'ooui-toolgroup-collapse',
            'ooui-toolgroup-expand',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'oojs-ui-toolbars.icons' => [
        'class' => ResourceLoaderOOUIIconPackModule::class,
        // Do not repeat icons already used in 'oojs-ui-core.icons': 'check'
        'icons' => [ 'collapse', 'expand' ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    // Windows and dialogs module.
    'oojs-ui-windows' => [
        'class' => ResourceLoaderOOUIFileModule::class,
        'scripts' => 'resources/lib/ooui/oojs-ui-windows.js',
        'themeStyles' => 'windows',
        'dependencies' => [
            'oojs-ui-core',
            'oojs-ui-windows.icons',
        ],
        'messages' => [
            'ooui-dialog-message-accept',
            'ooui-dialog-message-reject',
            'ooui-dialog-process-continue',
            'ooui-dialog-process-dismiss',
            'ooui-dialog-process-error',
            'ooui-dialog-process-retry',
        ],
        'targets' => [ 'desktop', 'mobile' ],
    ],
    'oojs-ui-windows.icons' => [
        'class' => ResourceLoaderOOUIIconPackModule::class,
        // Do not repeat icons already used in 'oojs-ui-core.icons': 'close'
        'icons' => [ 'previous' ],
        'targets' => [ 'desktop', 'mobile' ],
    ],

    'oojs-ui.styles.indicators' => [
        'class' => ResourceLoaderOOUIImageModule::class,
        'themeImages' => 'indicators',
    ],
    'oojs-ui.styles.icons-accessibility' => [
        'class' => ResourceLoaderOOUIImageModule::class,
        'themeImages' => 'icons-accessibility',
    ],
    'oojs-ui.styles.icons-alerts' => [
        'class' => ResourceLoaderOOUIImageModule::class,
        'themeImages' => 'icons-alerts',
    ],
    'oojs-ui.styles.icons-content' => [
        'class' => ResourceLoaderOOUIImageModule::class,
        'themeImages' => 'icons-content',
    ],
    'oojs-ui.styles.icons-editing-advanced' => [
        'class' => ResourceLoaderOOUIImageModule::class,
        'themeImages' => 'icons-editing-advanced',
    ],
    'oojs-ui.styles.icons-editing-citation' => [
        'class' => ResourceLoaderOOUIImageModule::class,
        'themeImages' => 'icons-editing-citation',
    ],
    'oojs-ui.styles.icons-editing-core' => [
        'class' => ResourceLoaderOOUIImageModule::class,
        'themeImages' => 'icons-editing-core',
    ],
    'oojs-ui.styles.icons-editing-list' => [
        'class' => ResourceLoaderOOUIImageModule::class,
        'themeImages' => 'icons-editing-list',
    ],
    'oojs-ui.styles.icons-editing-styling' => [
        'class' => ResourceLoaderOOUIImageModule::class,
        'themeImages' => 'icons-editing-styling',
    ],
    'oojs-ui.styles.icons-interactions' => [
        'class' => ResourceLoaderOOUIImageModule::class,
        'themeImages' => 'icons-interactions',
    ],
    'oojs-ui.styles.icons-layout' => [
        'class' => ResourceLoaderOOUIImageModule::class,
        'themeImages' => 'icons-layout',
    ],
    'oojs-ui.styles.icons-location' => [
        'class' => ResourceLoaderOOUIImageModule::class,
        'themeImages' => 'icons-location',
    ],
    'oojs-ui.styles.icons-media' => [
        'class' => ResourceLoaderOOUIImageModule::class,
        'themeImages' => 'icons-media',
    ],
    'oojs-ui.styles.icons-moderation' => [
        'class' => ResourceLoaderOOUIImageModule::class,
        'themeImages' => 'icons-moderation',
    ],
    'oojs-ui.styles.icons-movement' => [
        'class' => ResourceLoaderOOUIImageModule::class,
        'themeImages' => 'icons-movement',
    ],
    'oojs-ui.styles.icons-user' => [
        'class' => ResourceLoaderOOUIImageModule::class,
        'themeImages' => 'icons-user',
    ],
    'oojs-ui.styles.icons-wikimedia' => [
        'class' => ResourceLoaderOOUIImageModule::class,
        'themeImages' => 'icons-wikimedia',
    ],
];