/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 882); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; if (true) { module.exports = __webpack_require__(1116); } else {} /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { var _ = __webpack_require__(1287).runInContext(); module.exports = __webpack_require__(609)(_, _); /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(567) /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { /** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ if (false) { var throwOnDirectAccess, isValidElement, REACT_ELEMENT_TYPE; } else { // By explicitly using `prop-types` you are opting into new production behavior. // http://fb.me/prop-types-in-prod module.exports = __webpack_require__(1121)(); } /***/ }), /* 4 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIGN_OUT", function() { return SIGN_OUT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "signOut", function() { return signOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIGN_OUT_SUCCESS", function() { return SIGN_OUT_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "signoutSuccess", function() { return signoutSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ACCEPT_CONTRACT", function() { return ACCEPT_CONTRACT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "acceptContract", function() { return acceptContract; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIGN_IN", function() { return SIGN_IN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "signIn", function() { return signIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIGN_IN_SUCCESS", function() { return SIGN_IN_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "signinSuccess", function() { return signinSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIGN_IN_ERROR", function() { return SIGN_IN_ERROR; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "signinError", function() { return signinError; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_USER_SUCCESS", function() { return FETCH_USER_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchUserSuccess", function() { return fetchUserSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_USER_DISCIPLINES_SUCCESS", function() { return FETCH_USER_DISCIPLINES_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchUserDisciplinesSuccess", function() { return fetchUserDisciplinesSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SAVE_USER_DISCIPLINES", function() { return SAVE_USER_DISCIPLINES; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saveUserDisciplines", function() { return saveUserDisciplines; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SET_USER_TOKEN", function() { return SET_USER_TOKEN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setUserToken", function() { return setUserToken; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIDEMENU_OPEN", function() { return SIDEMENU_OPEN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "openSidemenu", function() { return openSidemenu; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIDEMENU_CLOSE", function() { return SIDEMENU_CLOSE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "closeSidemenu", function() { return closeSidemenu; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIDEMENU_TOGGLE_DISCIPLINE", function() { return SIDEMENU_TOGGLE_DISCIPLINE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toggleDiscipline", function() { return toggleDiscipline; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_DISCIPLINE", function() { return FETCH_DISCIPLINE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchDiscipline", function() { return fetchDiscipline; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_DISCIPLINES_BY_USER", function() { return FETCH_DISCIPLINES_BY_USER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchDisciplinesByUser", function() { return fetchDisciplinesByUser; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_DISCIPLINES_SUCCESS", function() { return FETCH_DISCIPLINES_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchDisciplinesSuccess", function() { return fetchDisciplinesSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_OBJECTIF", function() { return FETCH_OBJECTIF; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchObjectif", function() { return fetchObjectif; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_OBJECTIFS_SUCCESS", function() { return FETCH_OBJECTIFS_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchObjectifsSuccess", function() { return fetchObjectifsSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_SEQUENCE", function() { return FETCH_SEQUENCE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchSequence", function() { return fetchSequence; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_SEQUENCE_SUCCESS", function() { return FETCH_SEQUENCE_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchSequenceSuccess", function() { return fetchSequenceSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_SEQUENCES", function() { return FETCH_SEQUENCES; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchSequences", function() { return fetchSequences; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_SEQUENCES_SUCCESS", function() { return FETCH_SEQUENCES_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchSequencesSuccess", function() { return fetchSequencesSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_SEQUENCE_LIST", function() { return FETCH_SEQUENCE_LIST; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchSequenceList", function() { return fetchSequenceList; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_SEQUENCE_LIST_SUCCESS", function() { return FETCH_SEQUENCE_LIST_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchSequenceListSuccess", function() { return fetchSequenceListSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_ACTIVITE", function() { return FETCH_ACTIVITE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchActivite", function() { return fetchActivite; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_ACTIVITE_SUCCESS", function() { return FETCH_ACTIVITE_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchActiviteSuccess", function() { return fetchActiviteSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_ACTIVITES_BY_SEQUENCE", function() { return FETCH_ACTIVITES_BY_SEQUENCE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchActivitesBySequence", function() { return fetchActivitesBySequence; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_ACTIVITES_BY_SEQUENCE_SUCCESS", function() { return FETCH_ACTIVITES_BY_SEQUENCE_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchActivitesBySequenceSuccess", function() { return fetchActivitesBySequenceSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_APPRENTISSAGEVISE", function() { return FETCH_APPRENTISSAGEVISE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchApprentissageVise", function() { return fetchApprentissageVise; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_APPRENTISSAGEVISES_SUCCESS", function() { return FETCH_APPRENTISSAGEVISES_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchApprentissageVisesSuccess", function() { return fetchApprentissageVisesSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SELECT_APPRENTISSAGEVISE", function() { return SELECT_APPRENTISSAGEVISE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "selectApprentissageVise", function() { return selectApprentissageVise; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SEARCH", function() { return SEARCH; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "search", function() { return search; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SEARCH_MORE", function() { return SEARCH_MORE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "searchMore", function() { return searchMore; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SEARCH_MORE_DONE", function() { return SEARCH_MORE_DONE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "searchMoreDone", function() { return searchMoreDone; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CHANGE_SEARCH", function() { return CHANGE_SEARCH; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "changeSearch", function() { return changeSearch; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SEARCH_FILTER_DONE", function() { return SEARCH_FILTER_DONE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "searchBYFilterDone", function() { return searchBYFilterDone; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SEARCH_SEARCHING_DONE", function() { return SEARCH_SEARCHING_DONE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "searchDone", function() { return searchDone; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SEARCH_SET_FILTERS", function() { return SEARCH_SET_FILTERS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setFilters", function() { return setFilters; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SEARCH_OPEN_LAYER", function() { return SEARCH_OPEN_LAYER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "openSearchLayer", function() { return openSearchLayer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SEARCH_CLOSE_LAYER", function() { return SEARCH_CLOSE_LAYER; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "closeSearchLayer", function() { return closeSearchLayer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_SEQUENCE_RESSOURCE", function() { return FETCH_SEQUENCE_RESSOURCE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchSequenceRessource", function() { return fetchSequenceRessource; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_SEQUENCE_RESSOURCE_SUCCESS", function() { return FETCH_SEQUENCE_RESSOURCE_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchSequenceRessourceSuccess", function() { return fetchSequenceRessourceSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_ACTIVITE_RESSOURCE", function() { return FETCH_ACTIVITE_RESSOURCE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchActiviteRessource", function() { return fetchActiviteRessource; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_ACTIVITE_RESSOURCE_SUCCESS", function() { return FETCH_ACTIVITE_RESSOURCE_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchActiviteRessourceSuccess", function() { return fetchActiviteRessourceSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ADD_BOOKMARK", function() { return ADD_BOOKMARK; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addBookmark", function() { return addBookmark; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "REMOVE_BOOKMARK", function() { return REMOVE_BOOKMARK; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeBookmark", function() { return removeBookmark; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "REMOVE_SEQUENCE_BOOKMARKS", function() { return REMOVE_SEQUENCE_BOOKMARKS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeSequenceBookmarks", function() { return removeSequenceBookmarks; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BOOMARKS_LAYER_OPEN", function() { return BOOMARKS_LAYER_OPEN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "openBookmarksLayer", function() { return openBookmarksLayer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BOOMARKS_LAYER_CLOSE", function() { return BOOMARKS_LAYER_CLOSE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "closeBookmarksLayer", function() { return closeBookmarksLayer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QUERY_START", function() { return QUERY_START; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "queryStart", function() { return queryStart; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QUERY_SUCCESS", function() { return QUERY_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "querySuccess", function() { return querySuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QUERY_FAILED", function() { return QUERY_FAILED; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "queryFailed", function() { return queryFailed; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AVATAR_SET_AVATAR", function() { return AVATAR_SET_AVATAR; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setAvatar", function() { return setAvatar; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NOTIFICATIONS_ADD_NOTIFICATION", function() { return NOTIFICATIONS_ADD_NOTIFICATION; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addNotification", function() { return addNotification; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NOTIFICATIONS_REMOVE_NOTIFICATION", function() { return NOTIFICATIONS_REMOVE_NOTIFICATION; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeNotification", function() { return removeNotification; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NOTIFICATION_LOADING", function() { return NOTIFICATION_LOADING; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "notificationLoading", function() { return notificationLoading; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NOTIFICATION_LOADED", function() { return NOTIFICATION_LOADED; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "notificationLoaded", function() { return notificationLoaded; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_ACTUALITES", function() { return FETCH_ACTUALITES; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchActualites", function() { return fetchActualites; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_ACTUALITES_SUCCESS", function() { return FETCH_ACTUALITES_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchActualitesSuccess", function() { return fetchActualitesSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SEND_EMAIL_CONTACT", function() { return SEND_EMAIL_CONTACT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sendEmailContact", function() { return sendEmailContact; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SET_CURRENT_YEAR", function() { return SET_CURRENT_YEAR; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setCurrentYear", function() { return setCurrentYear; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FIX_BREADCRUMB_ASCROLL_PAGE", function() { return FIX_BREADCRUMB_ASCROLL_PAGE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fixBreadCrumb", function() { return fixBreadCrumb; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_SECTIONS", function() { return FETCH_SECTIONS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchSections", function() { return fetchSections; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_SECTIONS_SUCCESS", function() { return FETCH_SECTIONS_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchSectionsSuccess", function() { return fetchSectionsSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_SECTIONS_FOR_DISCIPLINE_YEARS", function() { return FETCH_SECTIONS_FOR_DISCIPLINE_YEARS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchSectionForDiscipline", function() { return fetchSectionForDiscipline; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FETCH_SECTIONS_FOR_DISCIPLINE_YEARS_SUCCESS", function() { return FETCH_SECTIONS_FOR_DISCIPLINE_YEARS_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetchSectionForDisciplineSuccess", function() { return fetchSectionForDisciplineSuccess; }); var SIGN_OUT = 'SIGN_OUT'; var signOut = function signOut() { return { type: SIGN_OUT }; }; var SIGN_OUT_SUCCESS = 'SIGN_OUT_SUCCESS'; var signoutSuccess = function signoutSuccess() { return { type: SIGN_OUT_SUCCESS }; }; var ACCEPT_CONTRACT = 'ACCEPT_CONTRACT'; var acceptContract = function acceptContract() { return { type: ACCEPT_CONTRACT }; }; var SIGN_IN = 'SIGN_IN'; var signIn = function signIn(token) { return { type: SIGN_IN, payload: { token: token } }; }; var SIGN_IN_SUCCESS = 'SIGN_IN_SUCCESS'; var signinSuccess = function signinSuccess(loginInfo) { return { type: SIGN_IN_SUCCESS, payload: loginInfo }; }; var SIGN_IN_ERROR = 'SIGN_IN_ERROR'; var signinError = function signinError(error) { return { type: SIGN_IN_ERROR, payload: error }; }; var FETCH_USER_SUCCESS = 'FETCH_USER_SUCCESS'; var fetchUserSuccess = function fetchUserSuccess(user) { return { type: FETCH_USER_SUCCESS, payload: { user: user } }; }; var FETCH_USER_DISCIPLINES_SUCCESS = 'FETCH_USER_DISCIPLINES_SUCCESS'; var fetchUserDisciplinesSuccess = function fetchUserDisciplinesSuccess(disciplines) { return { type: FETCH_USER_DISCIPLINES_SUCCESS, payload: { disciplines: disciplines } }; }; var SAVE_USER_DISCIPLINES = 'SAVE_USER_DISCIPLINES'; var saveUserDisciplines = function saveUserDisciplines(userId, disciplines) { return { type: SAVE_USER_DISCIPLINES, payload: { userId: userId, disciplines: disciplines } }; }; var SET_USER_TOKEN = 'SET_USER_TOKEN'; var setUserToken = function setUserToken(token, redirectPath) { return { type: SET_USER_TOKEN, payload: { token: token, redirectPath: redirectPath } }; }; // Sidemenu var SIDEMENU_OPEN = 'SIDEMENU_OPEN'; var openSidemenu = function openSidemenu() { return { type: SIDEMENU_OPEN }; }; var SIDEMENU_CLOSE = 'SIDEMENU_CLOSE'; var closeSidemenu = function closeSidemenu() { return { type: SIDEMENU_CLOSE }; }; var SIDEMENU_TOGGLE_DISCIPLINE = 'SIDEMENU_TOGGLE_DISCIPLINE'; var toggleDiscipline = function toggleDiscipline(disciplineId) { return { type: SIDEMENU_TOGGLE_DISCIPLINE, payload: disciplineId }; }; // Discipline var FETCH_DISCIPLINE = 'FETCH_DISCIPLINE'; var fetchDiscipline = function fetchDiscipline(query) { return { type: FETCH_DISCIPLINE, payload: query }; }; var FETCH_DISCIPLINES_BY_USER = 'FETCH_DISCIPLINES_BY_USER'; var fetchDisciplinesByUser = function fetchDisciplinesByUser(userId) { return { type: FETCH_DISCIPLINES_BY_USER, payload: userId }; }; var FETCH_DISCIPLINES_SUCCESS = 'FETCH_DISCIPLINES_SUCCESS'; var fetchDisciplinesSuccess = function fetchDisciplinesSuccess(disciplines) { return { type: FETCH_DISCIPLINES_SUCCESS, payload: { disciplines: disciplines } }; }; // Objectif var FETCH_OBJECTIF = 'FETCH_OBJECTIF'; var fetchObjectif = function fetchObjectif(query) { return { type: FETCH_OBJECTIF, payload: query }; }; var FETCH_OBJECTIFS_SUCCESS = 'FETCH_OBJECTIFS_SUCCESS'; var fetchObjectifsSuccess = function fetchObjectifsSuccess(objectifs, query) { return { type: FETCH_OBJECTIFS_SUCCESS, payload: { objectifs: objectifs, query: query } }; }; // Sequence var FETCH_SEQUENCE = 'FETCH_SEQUENCE'; var fetchSequence = function fetchSequence(query) { return { type: FETCH_SEQUENCE, payload: query }; }; var FETCH_SEQUENCE_SUCCESS = 'FETCH_SEQUENCE_SUCCESS'; var fetchSequenceSuccess = function fetchSequenceSuccess(sequences) { return { type: FETCH_SEQUENCE_SUCCESS, payload: { sequences: sequences } }; }; var FETCH_SEQUENCES = 'FETCH_SEQUENCES'; var fetchSequences = function fetchSequences(query) { return { type: FETCH_SEQUENCES, payload: query }; }; var FETCH_SEQUENCES_SUCCESS = 'FETCH_SEQUENCES_SUCCESS'; var fetchSequencesSuccess = function fetchSequencesSuccess(sequences) { return { type: FETCH_SEQUENCES_SUCCESS, payload: { sequences: sequences } }; }; var FETCH_SEQUENCE_LIST = 'FETCH_SEQUENCE_LIST'; var fetchSequenceList = function fetchSequenceList(query) { return { type: FETCH_SEQUENCE_LIST, payload: query }; }; var FETCH_SEQUENCE_LIST_SUCCESS = 'FETCH_SEQUENCE_LIST_SUCCESS'; var fetchSequenceListSuccess = function fetchSequenceListSuccess(sequences) { return { type: FETCH_SEQUENCE_LIST_SUCCESS, payload: sequences }; }; // Activite var FETCH_ACTIVITE = 'FETCH_ACTIVITE'; var fetchActivite = function fetchActivite(query) { return { type: FETCH_ACTIVITE, payload: query }; }; var FETCH_ACTIVITE_SUCCESS = 'FETCH_ACTIVITE_SUCCESS'; var fetchActiviteSuccess = function fetchActiviteSuccess(activite) { return { type: FETCH_ACTIVITE_SUCCESS, payload: { activite: activite } }; }; var FETCH_ACTIVITES_BY_SEQUENCE = 'FETCH_ACTIVITES_BY_SEQUENCE'; var fetchActivitesBySequence = function fetchActivitesBySequence(query) { return { type: FETCH_ACTIVITES_BY_SEQUENCE, payload: query }; }; var FETCH_ACTIVITES_BY_SEQUENCE_SUCCESS = 'FETCH_ACTIVITES_BY_SEQUENCE_SUCCESS'; var fetchActivitesBySequenceSuccess = function fetchActivitesBySequenceSuccess(activites) { return { type: FETCH_ACTIVITES_BY_SEQUENCE_SUCCESS, payload: { activites: activites } }; }; // Apprentissage vise var FETCH_APPRENTISSAGEVISE = 'FETCH_APPRENTISSAGEVISE'; var fetchApprentissageVise = function fetchApprentissageVise(query) { return { type: FETCH_APPRENTISSAGEVISE, payload: query }; }; var FETCH_APPRENTISSAGEVISES_SUCCESS = 'FETCH_APPRENTISSAGEVISES_SUCCESS'; var fetchApprentissageVisesSuccess = function fetchApprentissageVisesSuccess(apprentissageVises, sequenceId) { return { type: FETCH_APPRENTISSAGEVISES_SUCCESS, payload: { apprentissageVises: apprentissageVises, sequenceId: sequenceId } }; }; var SELECT_APPRENTISSAGEVISE = 'SELECT_APPRENTISSAGEVISE'; var selectApprentissageVise = function selectApprentissageVise(apprentissageId) { return { type: SELECT_APPRENTISSAGEVISE, payload: apprentissageId }; }; // Search var SEARCH = 'SEARCH'; var search = function search(query) { return { type: SEARCH, payload: query }; }; var SEARCH_MORE = 'SEARCH_MORE'; var searchMore = function searchMore() { return { type: SEARCH_MORE }; }; var SEARCH_MORE_DONE = 'SEARCH_MORE_DONE'; var searchMoreDone = function searchMoreDone(results, currentPage) { return { type: SEARCH_MORE_DONE, payload: { results: results, currentPage: currentPage } }; }; var CHANGE_SEARCH = 'CHANGE_SEARCH'; var changeSearch = function changeSearch(query) { return { type: CHANGE_SEARCH, payload: query }; }; var SEARCH_FILTER_DONE = 'SEARCH_FILTER_DONE'; var searchBYFilterDone = function searchBYFilterDone(results) { return { type: SEARCH_FILTER_DONE, payload: { results: results } }; }; var SEARCH_SEARCHING_DONE = 'SEARCH_SEARCHING_DONE'; var searchDone = function searchDone(results, searchString) { return { type: SEARCH_SEARCHING_DONE, payload: { results: results, searchString: searchString } }; }; var SEARCH_SET_FILTERS = 'SEARCH_SET_FILTERS'; var setFilters = function setFilters(filters) { return { type: SEARCH_SET_FILTERS, payload: filters }; }; var SEARCH_OPEN_LAYER = 'SEARCH_OPEN_LAYER'; var openSearchLayer = function openSearchLayer() { return { type: SEARCH_OPEN_LAYER }; }; var SEARCH_CLOSE_LAYER = 'SEARCH_CLOSE_LAYER'; var closeSearchLayer = function closeSearchLayer() { return { type: SEARCH_CLOSE_LAYER }; }; // Sequence ressources var FETCH_SEQUENCE_RESSOURCE = 'FETCH_SEQUENCE_RESSOURCE'; var fetchSequenceRessource = function fetchSequenceRessource(query) { return { type: FETCH_SEQUENCE_RESSOURCE, payload: query }; }; var FETCH_SEQUENCE_RESSOURCE_SUCCESS = 'FETCH_SEQUENCE_RESSOURCE_SUCCESS'; var fetchSequenceRessourceSuccess = function fetchSequenceRessourceSuccess(sequenceId, resources) { return { type: FETCH_SEQUENCE_RESSOURCE_SUCCESS, payload: { sequenceId: sequenceId, resources: resources } }; }; // Activite ressources var FETCH_ACTIVITE_RESSOURCE = 'FETCH_ACTIVITE_RESSOURCE'; var fetchActiviteRessource = function fetchActiviteRessource(query) { return { type: FETCH_ACTIVITE_RESSOURCE, payload: query }; }; var FETCH_ACTIVITE_RESSOURCE_SUCCESS = 'FETCH_ACTIVITE_RESSOURCE_SUCCESS'; var fetchActiviteRessourceSuccess = function fetchActiviteRessourceSuccess(activiteId, resources) { return { type: FETCH_ACTIVITE_RESSOURCE_SUCCESS, payload: { activiteId: activiteId, resources: resources } }; }; var ADD_BOOKMARK = 'ADD_BOOKMARK'; var addBookmark = function addBookmark(bookmark) { return { type: ADD_BOOKMARK, payload: { bookmark: bookmark } }; }; var REMOVE_BOOKMARK = 'REMOVE_BOOKMARK'; var removeBookmark = function removeBookmark(bookmarkId) { return { type: REMOVE_BOOKMARK, payload: { bookmarkId: bookmarkId } }; }; var REMOVE_SEQUENCE_BOOKMARKS = 'REMOVE_SEQUENCE_BOOKMARKS'; var removeSequenceBookmarks = function removeSequenceBookmarks(sequenceId) { return { type: REMOVE_SEQUENCE_BOOKMARKS, payload: { sequenceId: sequenceId } }; }; // Bookmarks var BOOMARKS_LAYER_OPEN = 'BOOMARKS_LAYER_OPEN'; var openBookmarksLayer = function openBookmarksLayer() { return { type: BOOMARKS_LAYER_OPEN }; }; var BOOMARKS_LAYER_CLOSE = 'BOOMARKS_LAYER_CLOSE'; var closeBookmarksLayer = function closeBookmarksLayer() { return { type: BOOMARKS_LAYER_CLOSE }; }; var QUERY_START = 'QUERY_START'; var queryStart = function queryStart(entity, params) { return { type: QUERY_START, payload: { entity: entity, params: params } }; }; var QUERY_SUCCESS = 'QUERY_SUCCESS'; var querySuccess = function querySuccess(entity, params) { return { type: QUERY_SUCCESS, payload: { entity: entity, params: params } }; }; var QUERY_FAILED = 'QUERY_FAILED'; var queryFailed = function queryFailed() { return { type: QUERY_FAILED }; }; // TEMP. Avatar var AVATAR_SET_AVATAR = 'AVATAR_SET_AVATAR'; var setAvatar = function setAvatar(data) { return { type: AVATAR_SET_AVATAR, payload: { data: data } }; }; // Notifications var NOTIFICATIONS_ADD_NOTIFICATION = 'NOTIFICATIONS_ADD_NOTIFICATION'; var addNotification = function addNotification(notification) { return { type: NOTIFICATIONS_ADD_NOTIFICATION, payload: { notification: notification } }; }; var NOTIFICATIONS_REMOVE_NOTIFICATION = 'NOTIFICATIONS_REMOVE_NOTIFICATION'; var removeNotification = function removeNotification(notificationId) { return { type: NOTIFICATIONS_REMOVE_NOTIFICATION, payload: { notificationId: notificationId } }; }; var NOTIFICATION_LOADING = 'NOTIFICATIONS_LOADING'; var notificationLoading = function notificationLoading() { return { type: NOTIFICATION_LOADING, payload: {} }; }; var NOTIFICATION_LOADED = 'NOTIFICATION_LOADED'; var notificationLoaded = function notificationLoaded() { return { type: NOTIFICATION_LOADED, payload: {} }; }; // Actualites var FETCH_ACTUALITES = 'FETCH_ACTUALITES'; var fetchActualites = function fetchActualites() { return { type: FETCH_ACTUALITES }; }; var FETCH_ACTUALITES_SUCCESS = 'FETCH_ACTUALITES_SUCCESS'; var fetchActualitesSuccess = function fetchActualitesSuccess(actualites) { return { type: FETCH_ACTUALITES_SUCCESS, payload: { actualites: actualites } }; }; var SEND_EMAIL_CONTACT = 'SEND_EMAIL_CONTACT'; var sendEmailContact = function sendEmailContact(payload) { return { type: SEND_EMAIL_CONTACT, payload: payload }; }; // Year var SET_CURRENT_YEAR = 'SET_CURRENT_YEAR'; var setCurrentYear = function setCurrentYear(currentYear) { return { type: SET_CURRENT_YEAR, payload: { currentYear: currentYear } }; }; var FIX_BREADCRUMB_ASCROLL_PAGE = 'FIX_BREADCRUMB_ASCROLL_PAGE'; var fixBreadCrumb = function fixBreadCrumb(fixed) { return { type: FIX_BREADCRUMB_ASCROLL_PAGE, payload: fixed }; }; var FETCH_SECTIONS = 'FETCH_SECTIONS'; var fetchSections = function fetchSections(query) { return { type: FETCH_SECTIONS, payload: query }; }; var FETCH_SECTIONS_SUCCESS = 'FETCH_SECTIONS_SUCCESS'; var fetchSectionsSuccess = function fetchSectionsSuccess(sections, disciplineId, type) { return { type: FETCH_SECTIONS_SUCCESS, payload: { sections: sections, disciplineId: disciplineId, type: type } }; }; var FETCH_SECTIONS_FOR_DISCIPLINE_YEARS = 'FETCH_SECTIONS_FOR_DISCIPLINE_YEARS'; var fetchSectionForDiscipline = function fetchSectionForDiscipline(payload) { return { type: FETCH_SECTIONS_FOR_DISCIPLINE_YEARS, payload: payload }; }; var FETCH_SECTIONS_FOR_DISCIPLINE_YEARS_SUCCESS = 'FETCH_SECTIONS_FOR_DISCIPLINE_YEARS_SUCCESS'; var fetchSectionForDisciplineSuccess = function fetchSectionForDisciplineSuccess(payload) { return { type: FETCH_SECTIONS_FOR_DISCIPLINE_YEARS_SUCCESS, payload: payload }; }; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; exports.connect = exports.Provider = undefined; var _Provider = __webpack_require__(1120); var _Provider2 = _interopRequireDefault(_Provider); var _connect = __webpack_require__(1124); var _connect2 = _interopRequireDefault(_connect); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } exports.Provider = _Provider2["default"]; exports.connect = _connect2["default"]; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { var baseGet = __webpack_require__(274); /** * Gets the value at `path` of `object`. If the resolved value is * `undefined`, the `defaultValue` is returned in its place. * * @static * @memberOf _ * @since 3.7.0 * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path of the property to get. * @param {*} [defaultValue] The value returned for `undefined` resolved values. * @returns {*} Returns the resolved value. * @example * * var object = { 'a': [{ 'b': { 'c': 3 } }] }; * * _.get(object, 'a[0].b.c'); * // => 3 * * _.get(object, ['a', '0', 'b', 'c']); * // => 3 * * _.get(object, 'a.b.c', 'default'); * // => 'default' */ function get(object, path, defaultValue) { var result = object == null ? undefined : baseGet(object, path); return result === undefined ? defaultValue : result; } module.exports = get; /***/ }), /* 7 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXPORTS __webpack_require__.d(__webpack_exports__, "d", function() { return /* reexport */ es_Router; }); __webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ es_Link; }); __webpack_require__.d(__webpack_exports__, "g", function() { return /* reexport */ withRouter; }); __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ es_IndexRoute; }); __webpack_require__.d(__webpack_exports__, "c", function() { return /* reexport */ es_Route; }); __webpack_require__.d(__webpack_exports__, "f", function() { return /* reexport */ useRouterHistory; }); __webpack_require__.d(__webpack_exports__, "e", function() { return /* reexport */ hashHistory; }); // UNUSED EXPORTS: IndexLink, IndexRedirect, Redirect, createRoutes, RouterContext, locationShape, routerShape, match, formatPattern, applyRouterMiddleware, browserHistory, createMemoryHistory // EXTERNAL MODULE: ./node_modules/invariant/browser.js var browser = __webpack_require__(42); var browser_default = /*#__PURE__*/__webpack_require__.n(browser); // EXTERNAL MODULE: ./node_modules/react/index.js var react = __webpack_require__(0); var react_default = /*#__PURE__*/__webpack_require__.n(react); // EXTERNAL MODULE: ./node_modules/create-react-class/index.js var create_react_class = __webpack_require__(76); var create_react_class_default = /*#__PURE__*/__webpack_require__.n(create_react_class); // EXTERNAL MODULE: ./node_modules/prop-types/index.js var prop_types = __webpack_require__(3); var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types); // EXTERNAL MODULE: ./node_modules/warning/browser.js var warning_browser = __webpack_require__(69); var warning_browser_default = /*#__PURE__*/__webpack_require__.n(warning_browser); // CONCATENATED MODULE: ./node_modules/react-router/es/routerWarning.js var warned = {}; function routerWarning(falseToWarn, message) { // Only issue deprecation warnings once. if (message.indexOf('deprecated') !== -1) { if (warned[message]) { return; } warned[message] = true; } message = '[react-router] ' + message; for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { args[_key - 2] = arguments[_key]; } warning_browser_default.a.apply(undefined, [falseToWarn, message].concat(args)); } function _resetWarned() { warned = {}; } // CONCATENATED MODULE: ./node_modules/react-router/es/PatternUtils.js function escapeRegExp(string) { return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); } function _compilePattern(pattern) { var regexpSource = ''; var paramNames = []; var tokens = []; var match = void 0, lastIndex = 0, matcher = /:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)|\\\(|\\\)/g; while (match = matcher.exec(pattern)) { if (match.index !== lastIndex) { tokens.push(pattern.slice(lastIndex, match.index)); regexpSource += escapeRegExp(pattern.slice(lastIndex, match.index)); } if (match[1]) { regexpSource += '([^/]+)'; paramNames.push(match[1]); } else if (match[0] === '**') { regexpSource += '(.*)'; paramNames.push('splat'); } else if (match[0] === '*') { regexpSource += '(.*?)'; paramNames.push('splat'); } else if (match[0] === '(') { regexpSource += '(?:'; } else if (match[0] === ')') { regexpSource += ')?'; } else if (match[0] === '\\(') { regexpSource += '\\('; } else if (match[0] === '\\)') { regexpSource += '\\)'; } tokens.push(match[0]); lastIndex = matcher.lastIndex; } if (lastIndex !== pattern.length) { tokens.push(pattern.slice(lastIndex, pattern.length)); regexpSource += escapeRegExp(pattern.slice(lastIndex, pattern.length)); } return { pattern: pattern, regexpSource: regexpSource, paramNames: paramNames, tokens: tokens }; } var CompiledPatternsCache = Object.create(null); function compilePattern(pattern) { if (!CompiledPatternsCache[pattern]) CompiledPatternsCache[pattern] = _compilePattern(pattern); return CompiledPatternsCache[pattern]; } /** * Attempts to match a pattern on the given pathname. Patterns may use * the following special characters: * * - :paramName Matches a URL segment up to the next /, ?, or #. The * captured string is considered a "param" * - () Wraps a segment of the URL that is optional * - * Consumes (non-greedy) all characters up to the next * character in the pattern, or to the end of the URL if * there is none * - ** Consumes (greedy) all characters up to the next character * in the pattern, or to the end of the URL if there is none * * The function calls callback(error, matched) when finished. * The return value is an object with the following properties: * * - remainingPathname * - paramNames * - paramValues */ function matchPattern(pattern, pathname) { // Ensure pattern starts with leading slash for consistency with pathname. if (pattern.charAt(0) !== '/') { pattern = '/' + pattern; } var _compilePattern2 = compilePattern(pattern), regexpSource = _compilePattern2.regexpSource, paramNames = _compilePattern2.paramNames, tokens = _compilePattern2.tokens; if (pattern.charAt(pattern.length - 1) !== '/') { regexpSource += '/?'; // Allow optional path separator at end. } // Special-case patterns like '*' for catch-all routes. if (tokens[tokens.length - 1] === '*') { regexpSource += '$'; } var match = pathname.match(new RegExp('^' + regexpSource, 'i')); if (match == null) { return null; } var matchedPath = match[0]; var remainingPathname = pathname.substr(matchedPath.length); if (remainingPathname) { // Require that the match ends at a path separator, if we didn't match // the full path, so any remaining pathname is a new path segment. if (matchedPath.charAt(matchedPath.length - 1) !== '/') { return null; } // If there is a remaining pathname, treat the path separator as part of // the remaining pathname for properly continuing the match. remainingPathname = '/' + remainingPathname; } return { remainingPathname: remainingPathname, paramNames: paramNames, paramValues: match.slice(1).map(function (v) { return v && decodeURIComponent(v); }) }; } function getParamNames(pattern) { return compilePattern(pattern).paramNames; } function getParams(pattern, pathname) { var match = matchPattern(pattern, pathname); if (!match) { return null; } var paramNames = match.paramNames, paramValues = match.paramValues; var params = {}; paramNames.forEach(function (paramName, index) { params[paramName] = paramValues[index]; }); return params; } /** * Returns a version of the given pattern with params interpolated. Throws * if there is a dynamic segment of the pattern for which there is no param. */ function formatPattern(pattern, params) { params = params || {}; var _compilePattern3 = compilePattern(pattern), tokens = _compilePattern3.tokens; var parenCount = 0, pathname = '', splatIndex = 0, parenHistory = []; var token = void 0, paramName = void 0, paramValue = void 0; for (var i = 0, len = tokens.length; i < len; ++i) { token = tokens[i]; if (token === '*' || token === '**') { paramValue = Array.isArray(params.splat) ? params.splat[splatIndex++] : params.splat; !(paramValue != null || parenCount > 0) ? false ? undefined : browser_default()(false) : void 0; if (paramValue != null) pathname += encodeURI(paramValue); } else if (token === '(') { parenHistory[parenCount] = ''; parenCount += 1; } else if (token === ')') { var parenText = parenHistory.pop(); parenCount -= 1; if (parenCount) parenHistory[parenCount - 1] += parenText;else pathname += parenText; } else if (token === '\\(') { pathname += '('; } else if (token === '\\)') { pathname += ')'; } else if (token.charAt(0) === ':') { paramName = token.substring(1); paramValue = params[paramName]; !(paramValue != null || parenCount > 0) ? false ? undefined : browser_default()(false) : void 0; if (paramValue == null) { if (parenCount) { parenHistory[parenCount - 1] = ''; var curTokenIdx = tokens.indexOf(token); var tokensSubset = tokens.slice(curTokenIdx, tokens.length); var nextParenIdx = -1; for (var _i = 0; _i < tokensSubset.length; _i++) { if (tokensSubset[_i] == ')') { nextParenIdx = _i; break; } } !(nextParenIdx > 0) ? false ? undefined : browser_default()(false) : void 0; // jump to ending paren i = curTokenIdx + nextParenIdx - 1; } } else if (parenCount) parenHistory[parenCount - 1] += encodeURIComponent(paramValue);else pathname += encodeURIComponent(paramValue); } else { if (parenCount) parenHistory[parenCount - 1] += token;else pathname += token; } } !(parenCount <= 0) ? false ? undefined : browser_default()(false) : void 0; return pathname.replace(/\/+/g, '/'); } // CONCATENATED MODULE: ./node_modules/react-router/es/computeChangedRoutes.js function routeParamsChanged(route, prevState, nextState) { if (!route.path) return false; var paramNames = getParamNames(route.path); return paramNames.some(function (paramName) { return prevState.params[paramName] !== nextState.params[paramName]; }); } /** * Returns an object of { leaveRoutes, changeRoutes, enterRoutes } determined by * the change from prevState to nextState. We leave routes if either * 1) they are not in the next state or 2) they are in the next state * but their params have changed (i.e. /users/123 => /users/456). * * leaveRoutes are ordered starting at the leaf route of the tree * we're leaving up to the common parent route. enterRoutes are ordered * from the top of the tree we're entering down to the leaf route. * * changeRoutes are any routes that didn't leave or enter during * the transition. */ function computeChangedRoutes(prevState, nextState) { var prevRoutes = prevState && prevState.routes; var nextRoutes = nextState.routes; var leaveRoutes = void 0, changeRoutes = void 0, enterRoutes = void 0; if (prevRoutes) { var parentIsLeaving = false; leaveRoutes = prevRoutes.filter(function (route) { if (parentIsLeaving) { return true; } else { var isLeaving = nextRoutes.indexOf(route) === -1 || routeParamsChanged(route, prevState, nextState); if (isLeaving) parentIsLeaving = true; return isLeaving; } }); // onLeave hooks start at the leaf route. leaveRoutes.reverse(); enterRoutes = []; changeRoutes = []; nextRoutes.forEach(function (route) { var isNew = prevRoutes.indexOf(route) === -1; var paramsChanged = leaveRoutes.indexOf(route) !== -1; if (isNew || paramsChanged) enterRoutes.push(route);else changeRoutes.push(route); }); } else { leaveRoutes = []; changeRoutes = []; enterRoutes = nextRoutes; } return { leaveRoutes: leaveRoutes, changeRoutes: changeRoutes, enterRoutes: enterRoutes }; } /* harmony default export */ var es_computeChangedRoutes = (computeChangedRoutes); // CONCATENATED MODULE: ./node_modules/react-router/es/AsyncUtils.js function loopAsync(turns, work, callback) { var currentTurn = 0, isDone = false; var sync = false, hasNext = false, doneArgs = void 0; function done() { isDone = true; if (sync) { // Iterate instead of recursing if possible. doneArgs = [].concat(Array.prototype.slice.call(arguments)); return; } callback.apply(this, arguments); } function next() { if (isDone) { return; } hasNext = true; if (sync) { // Iterate instead of recursing if possible. return; } sync = true; while (!isDone && currentTurn < turns && hasNext) { hasNext = false; work.call(this, currentTurn++, next, done); } sync = false; if (isDone) { // This means the loop finished synchronously. callback.apply(this, doneArgs); return; } if (currentTurn >= turns && hasNext) { isDone = true; callback(); } } next(); } function mapAsync(array, work, callback) { var length = array.length; var values = []; if (length === 0) return callback(null, values); var isDone = false, doneCount = 0; function done(index, error, value) { if (isDone) return; if (error) { isDone = true; callback(error); } else { values[index] = value; isDone = ++doneCount === length; if (isDone) callback(null, values); } } array.forEach(function (item, index) { work(item, index, function (error, value) { done(index, error, value); }); }); } // CONCATENATED MODULE: ./node_modules/react-router/es/TransitionUtils.js function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var PendingHooks = function PendingHooks() { var _this = this; _classCallCheck(this, PendingHooks); this.hooks = []; this.add = function (hook) { return _this.hooks.push(hook); }; this.remove = function (hook) { return _this.hooks = _this.hooks.filter(function (h) { return h !== hook; }); }; this.has = function (hook) { return _this.hooks.indexOf(hook) !== -1; }; this.clear = function () { return _this.hooks = []; }; }; function getTransitionUtils() { var enterHooks = new PendingHooks(); var changeHooks = new PendingHooks(); function createTransitionHook(hook, route, asyncArity, pendingHooks) { var isSync = hook.length < asyncArity; var transitionHook = function transitionHook() { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } hook.apply(route, args); if (isSync) { var callback = args[args.length - 1]; // Assume hook executes synchronously and // automatically call the callback. callback(); } }; pendingHooks.add(transitionHook); return transitionHook; } function getEnterHooks(routes) { return routes.reduce(function (hooks, route) { if (route.onEnter) hooks.push(createTransitionHook(route.onEnter, route, 3, enterHooks)); return hooks; }, []); } function getChangeHooks(routes) { return routes.reduce(function (hooks, route) { if (route.onChange) hooks.push(createTransitionHook(route.onChange, route, 4, changeHooks)); return hooks; }, []); } function runTransitionHooks(length, iter, callback) { if (!length) { callback(); return; } var redirectInfo = void 0; function replace(location) { redirectInfo = location; } loopAsync(length, function (index, next, done) { iter(index, replace, function (error) { if (error || redirectInfo) { done(error, redirectInfo); // No need to continue. } else { next(); } }); }, callback); } /** * Runs all onEnter hooks in the given array of routes in order * with onEnter(nextState, replace, callback) and calls * callback(error, redirectInfo) when finished. The first hook * to use replace short-circuits the loop. * * If a hook needs to run asynchronously, it may use the callback * function. However, doing so will cause the transition to pause, * which could lead to a non-responsive UI if the hook is slow. */ function runEnterHooks(routes, nextState, callback) { enterHooks.clear(); var hooks = getEnterHooks(routes); return runTransitionHooks(hooks.length, function (index, replace, next) { var wrappedNext = function wrappedNext() { if (enterHooks.has(hooks[index])) { next.apply(undefined, arguments); enterHooks.remove(hooks[index]); } }; hooks[index](nextState, replace, wrappedNext); }, callback); } /** * Runs all onChange hooks in the given array of routes in order * with onChange(prevState, nextState, replace, callback) and calls * callback(error, redirectInfo) when finished. The first hook * to use replace short-circuits the loop. * * If a hook needs to run asynchronously, it may use the callback * function. However, doing so will cause the transition to pause, * which could lead to a non-responsive UI if the hook is slow. */ function runChangeHooks(routes, state, nextState, callback) { changeHooks.clear(); var hooks = getChangeHooks(routes); return runTransitionHooks(hooks.length, function (index, replace, next) { var wrappedNext = function wrappedNext() { if (changeHooks.has(hooks[index])) { next.apply(undefined, arguments); changeHooks.remove(hooks[index]); } }; hooks[index](state, nextState, replace, wrappedNext); }, callback); } /** * Runs all onLeave hooks in the given array of routes in order. */ function runLeaveHooks(routes, prevState) { for (var i = 0, len = routes.length; i < len; ++i) { if (routes[i].onLeave) routes[i].onLeave.call(routes[i], prevState); } } return { runEnterHooks: runEnterHooks, runChangeHooks: runChangeHooks, runLeaveHooks: runLeaveHooks }; } // CONCATENATED MODULE: ./node_modules/react-router/es/isActive.js var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; function deepEqual(a, b) { if (a == b) return true; if (a == null || b == null) return false; if (Array.isArray(a)) { return Array.isArray(b) && a.length === b.length && a.every(function (item, index) { return deepEqual(item, b[index]); }); } if ((typeof a === 'undefined' ? 'undefined' : _typeof(a)) === 'object') { for (var p in a) { if (!Object.prototype.hasOwnProperty.call(a, p)) { continue; } if (a[p] === undefined) { if (b[p] !== undefined) { return false; } } else if (!Object.prototype.hasOwnProperty.call(b, p)) { return false; } else if (!deepEqual(a[p], b[p])) { return false; } } return true; } return String(a) === String(b); } /** * Returns true if the current pathname matches the supplied one, net of * leading and trailing slash normalization. This is sufficient for an * indexOnly route match. */ function pathIsActive(pathname, currentPathname) { // Normalize leading slash for consistency. Leading slash on pathname has // already been normalized in isActive. See caveat there. if (currentPathname.charAt(0) !== '/') { currentPathname = '/' + currentPathname; } // Normalize the end of both path names too. Maybe `/foo/` shouldn't show // `/foo` as active, but in this case, we would already have failed the // match. if (pathname.charAt(pathname.length - 1) !== '/') { pathname += '/'; } if (currentPathname.charAt(currentPathname.length - 1) !== '/') { currentPathname += '/'; } return currentPathname === pathname; } /** * Returns true if the given pathname matches the active routes and params. */ function routeIsActive(pathname, routes, params) { var remainingPathname = pathname, paramNames = [], paramValues = []; // for...of would work here but it's probably slower post-transpilation. for (var i = 0, len = routes.length; i < len; ++i) { var route = routes[i]; var pattern = route.path || ''; if (pattern.charAt(0) === '/') { remainingPathname = pathname; paramNames = []; paramValues = []; } if (remainingPathname !== null && pattern) { var matched = matchPattern(pattern, remainingPathname); if (matched) { remainingPathname = matched.remainingPathname; paramNames = [].concat(paramNames, matched.paramNames); paramValues = [].concat(paramValues, matched.paramValues); } else { remainingPathname = null; } if (remainingPathname === '') { // We have an exact match on the route. Just check that all the params // match. // FIXME: This doesn't work on repeated params. return paramNames.every(function (paramName, index) { return String(paramValues[index]) === String(params[paramName]); }); } } } return false; } /** * Returns true if all key/value pairs in the given query are * currently active. */ function queryIsActive(query, activeQuery) { if (activeQuery == null) return query == null; if (query == null) return true; return deepEqual(query, activeQuery); } /** * Returns true if a to the given pathname/query combination is * currently active. */ function isActive_isActive(_ref, indexOnly, currentLocation, routes, params) { var pathname = _ref.pathname, query = _ref.query; if (currentLocation == null) return false; // TODO: This is a bit ugly. It keeps around support for treating pathnames // without preceding slashes as absolute paths, but possibly also works // around the same quirks with basenames as in matchRoutes. if (pathname.charAt(0) !== '/') { pathname = '/' + pathname; } if (!pathIsActive(pathname, currentLocation.pathname)) { // The path check is necessary and sufficient for indexOnly, but otherwise // we still need to check the routes. if (indexOnly || !routeIsActive(pathname, routes, params)) { return false; } } return queryIsActive(query, currentLocation.query); } // CONCATENATED MODULE: ./node_modules/react-router/es/PromiseUtils.js function isPromise(obj) { return obj && typeof obj.then === 'function'; } // CONCATENATED MODULE: ./node_modules/react-router/es/getComponents.js function getComponentsForRoute(nextState, route, callback) { if (route.component || route.components) { callback(null, route.component || route.components); return; } var getComponent = route.getComponent || route.getComponents; if (getComponent) { var componentReturn = getComponent.call(route, nextState, callback); if (isPromise(componentReturn)) componentReturn.then(function (component) { return callback(null, component); }, callback); } else { callback(); } } /** * Asynchronously fetches all components needed for the given router * state and calls callback(error, components) when finished. * * Note: This operation may finish synchronously if no routes have an * asynchronous getComponents method. */ function getComponents(nextState, callback) { mapAsync(nextState.routes, function (route, index, callback) { getComponentsForRoute(nextState, route, callback); }, callback); } /* harmony default export */ var es_getComponents = (getComponents); // CONCATENATED MODULE: ./node_modules/react-router/es/RouteUtils.js var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function isValidChild(object) { return object == null || react_default.a.isValidElement(object); } function isReactChildren(object) { return isValidChild(object) || Array.isArray(object) && object.every(isValidChild); } function createRoute(defaultProps, props) { return _extends({}, defaultProps, props); } function RouteUtils_createRouteFromReactElement(element) { var type = element.type; var route = createRoute(type.defaultProps, element.props); if (route.children) { var childRoutes = createRoutesFromReactChildren(route.children, route); if (childRoutes.length) route.childRoutes = childRoutes; delete route.children; } return route; } /** * Creates and returns a routes object from the given ReactChildren. JSX * provides a convenient way to visualize how routes in the hierarchy are * nested. * * import { Route, createRoutesFromReactChildren } from 'react-router' * * const routes = createRoutesFromReactChildren( * * * * * ) * * Note: This method is automatically used when you provide children * to a component. */ function createRoutesFromReactChildren(children, parentRoute) { var routes = []; react_default.a.Children.forEach(children, function (element) { if (react_default.a.isValidElement(element)) { // Component classes may have a static create* method. if (element.type.createRouteFromReactElement) { var route = element.type.createRouteFromReactElement(element, parentRoute); if (route) routes.push(route); } else { routes.push(RouteUtils_createRouteFromReactElement(element)); } } }); return routes; } /** * Creates and returns an array of routes from the given object which * may be a JSX route, a plain object route, or an array of either. */ function createRoutes(routes) { if (isReactChildren(routes)) { routes = createRoutesFromReactChildren(routes); } else if (routes && !Array.isArray(routes)) { routes = [routes]; } return routes; } // CONCATENATED MODULE: ./node_modules/react-router/es/matchRoutes.js var matchRoutes_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function getChildRoutes(route, location, paramNames, paramValues, callback) { if (route.childRoutes) { return [null, route.childRoutes]; } if (!route.getChildRoutes) { return []; } var sync = true, result = void 0; var partialNextState = { location: location, params: createParams(paramNames, paramValues) }; var childRoutesReturn = route.getChildRoutes(partialNextState, function (error, childRoutes) { childRoutes = !error && createRoutes(childRoutes); if (sync) { result = [error, childRoutes]; return; } callback(error, childRoutes); }); if (isPromise(childRoutesReturn)) childRoutesReturn.then(function (childRoutes) { return callback(null, createRoutes(childRoutes)); }, callback); sync = false; return result; // Might be undefined. } function getIndexRoute(route, location, paramNames, paramValues, callback) { if (route.indexRoute) { callback(null, route.indexRoute); } else if (route.getIndexRoute) { var partialNextState = { location: location, params: createParams(paramNames, paramValues) }; var indexRoutesReturn = route.getIndexRoute(partialNextState, function (error, indexRoute) { callback(error, !error && createRoutes(indexRoute)[0]); }); if (isPromise(indexRoutesReturn)) indexRoutesReturn.then(function (indexRoute) { return callback(null, createRoutes(indexRoute)[0]); }, callback); } else if (route.childRoutes || route.getChildRoutes) { var onChildRoutes = function onChildRoutes(error, childRoutes) { if (error) { callback(error); return; } var pathless = childRoutes.filter(function (childRoute) { return !childRoute.path; }); loopAsync(pathless.length, function (index, next, done) { getIndexRoute(pathless[index], location, paramNames, paramValues, function (error, indexRoute) { if (error || indexRoute) { var routes = [pathless[index]].concat(Array.isArray(indexRoute) ? indexRoute : [indexRoute]); done(error, routes); } else { next(); } }); }, function (err, routes) { callback(null, routes); }); }; var result = getChildRoutes(route, location, paramNames, paramValues, onChildRoutes); if (result) { onChildRoutes.apply(undefined, result); } } else { callback(); } } function assignParams(params, paramNames, paramValues) { return paramNames.reduce(function (params, paramName, index) { var paramValue = paramValues && paramValues[index]; if (Array.isArray(params[paramName])) { params[paramName].push(paramValue); } else if (paramName in params) { params[paramName] = [params[paramName], paramValue]; } else { params[paramName] = paramValue; } return params; }, params); } function createParams(paramNames, paramValues) { return assignParams({}, paramNames, paramValues); } function matchRouteDeep(route, location, remainingPathname, paramNames, paramValues, callback) { var pattern = route.path || ''; if (pattern.charAt(0) === '/') { remainingPathname = location.pathname; paramNames = []; paramValues = []; } // Only try to match the path if the route actually has a pattern, and if // we're not just searching for potential nested absolute paths. if (remainingPathname !== null && pattern) { try { var matched = matchPattern(pattern, remainingPathname); if (matched) { remainingPathname = matched.remainingPathname; paramNames = [].concat(paramNames, matched.paramNames); paramValues = [].concat(paramValues, matched.paramValues); } else { remainingPathname = null; } } catch (error) { callback(error); } // By assumption, pattern is non-empty here, which is the prerequisite for // actually terminating a match. if (remainingPathname === '') { var match = { routes: [route], params: createParams(paramNames, paramValues) }; getIndexRoute(route, location, paramNames, paramValues, function (error, indexRoute) { if (error) { callback(error); } else { if (Array.isArray(indexRoute)) { var _match$routes; false ? undefined : void 0; (_match$routes = match.routes).push.apply(_match$routes, indexRoute); } else if (indexRoute) { false ? undefined : void 0; match.routes.push(indexRoute); } callback(null, match); } }); return; } } if (remainingPathname != null || route.childRoutes) { // Either a) this route matched at least some of the path or b) // we don't have to load this route's children asynchronously. In // either case continue checking for matches in the subtree. var onChildRoutes = function onChildRoutes(error, childRoutes) { if (error) { callback(error); } else if (childRoutes) { // Check the child routes to see if any of them match. matchRoutes(childRoutes, location, function (error, match) { if (error) { callback(error); } else if (match) { // A child route matched! Augment the match and pass it up the stack. match.routes.unshift(route); callback(null, match); } else { callback(); } }, remainingPathname, paramNames, paramValues); } else { callback(); } }; var result = getChildRoutes(route, location, paramNames, paramValues, onChildRoutes); if (result) { onChildRoutes.apply(undefined, result); } } else { callback(); } } /** * Asynchronously matches the given location to a set of routes and calls * callback(error, state) when finished. The state object will have the * following properties: * * - routes An array of routes that matched, in hierarchical order * - params An object of URL parameters * * Note: This operation may finish synchronously if no routes have an * asynchronous getChildRoutes method. */ function matchRoutes(routes, location, callback, remainingPathname) { var paramNames = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : []; var paramValues = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : []; if (remainingPathname === undefined) { // TODO: This is a little bit ugly, but it works around a quirk in history // that strips the leading slash from pathnames when using basenames with // trailing slashes. if (location.pathname.charAt(0) !== '/') { location = matchRoutes_extends({}, location, { pathname: '/' + location.pathname }); } remainingPathname = location.pathname; } loopAsync(routes.length, function (index, next, done) { matchRouteDeep(routes[index], location, remainingPathname, paramNames, paramValues, function (error, match) { if (error || match) { done(error, match); } else { next(); } }); }, callback); } // CONCATENATED MODULE: ./node_modules/react-router/es/createTransitionManager.js var createTransitionManager_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function hasAnyProperties(object) { for (var p in object) { if (Object.prototype.hasOwnProperty.call(object, p)) return true; }return false; } function createTransitionManager_createTransitionManager(history, routes) { var state = {}; var _getTransitionUtils = getTransitionUtils(), runEnterHooks = _getTransitionUtils.runEnterHooks, runChangeHooks = _getTransitionUtils.runChangeHooks, runLeaveHooks = _getTransitionUtils.runLeaveHooks; // Signature should be (location, indexOnly), but needs to support (path, // query, indexOnly) function isActive(location, indexOnly) { location = history.createLocation(location); return isActive_isActive(location, indexOnly, state.location, state.routes, state.params); } var partialNextState = void 0; function match(location, callback) { if (partialNextState && partialNextState.location === location) { // Continue from where we left off. finishMatch(partialNextState, callback); } else { matchRoutes(routes, location, function (error, nextState) { if (error) { callback(error); } else if (nextState) { finishMatch(createTransitionManager_extends({}, nextState, { location: location }), callback); } else { callback(); } }); } } function finishMatch(nextState, callback) { var _computeChangedRoutes = es_computeChangedRoutes(state, nextState), leaveRoutes = _computeChangedRoutes.leaveRoutes, changeRoutes = _computeChangedRoutes.changeRoutes, enterRoutes = _computeChangedRoutes.enterRoutes; runLeaveHooks(leaveRoutes, state); // Tear down confirmation hooks for left routes leaveRoutes.filter(function (route) { return enterRoutes.indexOf(route) === -1; }).forEach(removeListenBeforeHooksForRoute); // change and enter hooks are run in series runChangeHooks(changeRoutes, state, nextState, function (error, redirectInfo) { if (error || redirectInfo) return handleErrorOrRedirect(error, redirectInfo); runEnterHooks(enterRoutes, nextState, finishEnterHooks); }); function finishEnterHooks(error, redirectInfo) { if (error || redirectInfo) return handleErrorOrRedirect(error, redirectInfo); // TODO: Fetch components after state is updated. es_getComponents(nextState, function (error, components) { if (error) { callback(error); } else { // TODO: Make match a pure function and have some other API // for "match and update state". callback(null, null, state = createTransitionManager_extends({}, nextState, { components: components })); } }); } function handleErrorOrRedirect(error, redirectInfo) { if (error) callback(error);else callback(null, redirectInfo); } } var RouteGuid = 1; function getRouteID(route) { var create = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; return route.__id__ || create && (route.__id__ = RouteGuid++); } var RouteHooks = Object.create(null); function getRouteHooksForRoutes(routes) { return routes.map(function (route) { return RouteHooks[getRouteID(route)]; }).filter(function (hook) { return hook; }); } function transitionHook(location, callback) { matchRoutes(routes, location, function (error, nextState) { if (nextState == null) { // TODO: We didn't actually match anything, but hang // onto error/nextState so we don't have to matchRoutes // again in the listen callback. callback(); return; } // Cache some state here so we don't have to // matchRoutes() again in the listen callback. partialNextState = createTransitionManager_extends({}, nextState, { location: location }); var hooks = getRouteHooksForRoutes(es_computeChangedRoutes(state, partialNextState).leaveRoutes); var result = void 0; for (var i = 0, len = hooks.length; result == null && i < len; ++i) { // Passing the location arg here indicates to // the user that this is a transition hook. result = hooks[i](location); } callback(result); }); } /* istanbul ignore next: untestable with Karma */ function beforeUnloadHook() { // Synchronously check to see if any route hooks want // to prevent the current window/tab from closing. if (state.routes) { var hooks = getRouteHooksForRoutes(state.routes); var message = void 0; for (var i = 0, len = hooks.length; typeof message !== 'string' && i < len; ++i) { // Passing no args indicates to the user that this is a // beforeunload hook. We don't know the next location. message = hooks[i](); } return message; } } var unlistenBefore = void 0, unlistenBeforeUnload = void 0; function removeListenBeforeHooksForRoute(route) { var routeID = getRouteID(route); if (!routeID) { return; } delete RouteHooks[routeID]; if (!hasAnyProperties(RouteHooks)) { // teardown transition & beforeunload hooks if (unlistenBefore) { unlistenBefore(); unlistenBefore = null; } if (unlistenBeforeUnload) { unlistenBeforeUnload(); unlistenBeforeUnload = null; } } } /** * Registers the given hook function to run before leaving the given route. * * During a normal transition, the hook function receives the next location * as its only argument and can return either a prompt message (string) to show the user, * to make sure they want to leave the page; or `false`, to prevent the transition. * Any other return value will have no effect. * * During the beforeunload event (in browsers) the hook receives no arguments. * In this case it must return a prompt message to prevent the transition. * * Returns a function that may be used to unbind the listener. */ function listenBeforeLeavingRoute(route, hook) { var thereWereNoRouteHooks = !hasAnyProperties(RouteHooks); var routeID = getRouteID(route, true); RouteHooks[routeID] = hook; if (thereWereNoRouteHooks) { // setup transition & beforeunload hooks unlistenBefore = history.listenBefore(transitionHook); if (history.listenBeforeUnload) unlistenBeforeUnload = history.listenBeforeUnload(beforeUnloadHook); } return function () { removeListenBeforeHooksForRoute(route); }; } /** * This is the API for stateful environments. As the location * changes, we update state and call the listener. We can also * gracefully handle errors and redirects. */ function listen(listener) { function historyListener(location) { if (state.location === location) { listener(null, state); } else { match(location, function (error, redirectLocation, nextState) { if (error) { listener(error); } else if (redirectLocation) { history.replace(redirectLocation); } else if (nextState) { listener(null, nextState); } else { false ? undefined : void 0; } }); } } // TODO: Only use a single history listener. Otherwise we'll end up with // multiple concurrent calls to match. // Set up the history listener first in case the initial match redirects. var unsubscribe = history.listen(historyListener); if (state.location) { // Picking up on a matchContext. listener(null, state); } else { historyListener(history.getCurrentLocation()); } return unsubscribe; } return { isActive: isActive, match: match, listenBeforeLeavingRoute: listenBeforeLeavingRoute, listen: listen }; } // CONCATENATED MODULE: ./node_modules/react-router/es/InternalPropTypes.js function falsy(props, propName, componentName) { if (props[propName]) return new Error('<' + componentName + '> should not have a "' + propName + '" prop'); } var InternalPropTypes_history = Object(prop_types["shape"])({ listen: prop_types["func"].isRequired, push: prop_types["func"].isRequired, replace: prop_types["func"].isRequired, go: prop_types["func"].isRequired, goBack: prop_types["func"].isRequired, goForward: prop_types["func"].isRequired }); var component = Object(prop_types["oneOfType"])([prop_types["func"], prop_types["string"]]); var InternalPropTypes_components = Object(prop_types["oneOfType"])([component, prop_types["object"]]); var InternalPropTypes_route = Object(prop_types["oneOfType"])([prop_types["object"], prop_types["element"]]); var InternalPropTypes_routes = Object(prop_types["oneOfType"])([InternalPropTypes_route, Object(prop_types["arrayOf"])(InternalPropTypes_route)]); // CONCATENATED MODULE: ./node_modules/react-router/es/getRouteParams.js /** * Extracts an object of params the given route cares about from * the given params object. */ function getRouteParams(route, params) { var routeParams = {}; if (!route.path) return routeParams; getParamNames(route.path).forEach(function (p) { if (Object.prototype.hasOwnProperty.call(params, p)) { routeParams[p] = params[p]; } }); return routeParams; } /* harmony default export */ var es_getRouteParams = (getRouteParams); // CONCATENATED MODULE: ./node_modules/react-router/es/ContextUtils.js // Works around issues with context updates failing to propagate. // Caveat: the context value is expected to never change its identity. // https://github.com/facebook/react/issues/2517 // https://github.com/reactjs/react-router/issues/470 var contextProviderShape = prop_types_default.a.shape({ subscribe: prop_types_default.a.func.isRequired, eventIndex: prop_types_default.a.number.isRequired }); function makeContextName(name) { return '@@contextSubscriber/' + name; } function ContextProvider(name) { var _childContextTypes, _ref2; var contextName = makeContextName(name); var listenersKey = contextName + '/listeners'; var eventIndexKey = contextName + '/eventIndex'; var subscribeKey = contextName + '/subscribe'; return _ref2 = { childContextTypes: (_childContextTypes = {}, _childContextTypes[contextName] = contextProviderShape.isRequired, _childContextTypes), getChildContext: function getChildContext() { var _ref; return _ref = {}, _ref[contextName] = { eventIndex: this[eventIndexKey], subscribe: this[subscribeKey] }, _ref; }, componentWillMount: function componentWillMount() { this[listenersKey] = []; this[eventIndexKey] = 0; }, componentWillReceiveProps: function componentWillReceiveProps() { this[eventIndexKey]++; }, componentDidUpdate: function componentDidUpdate() { var _this = this; this[listenersKey].forEach(function (listener) { return listener(_this[eventIndexKey]); }); } }, _ref2[subscribeKey] = function (listener) { var _this2 = this; // No need to immediately call listener here. this[listenersKey].push(listener); return function () { _this2[listenersKey] = _this2[listenersKey].filter(function (item) { return item !== listener; }); }; }, _ref2; } function ContextSubscriber(name) { var _contextTypes, _ref4; var contextName = makeContextName(name); var lastRenderedEventIndexKey = contextName + '/lastRenderedEventIndex'; var handleContextUpdateKey = contextName + '/handleContextUpdate'; var unsubscribeKey = contextName + '/unsubscribe'; return _ref4 = { contextTypes: (_contextTypes = {}, _contextTypes[contextName] = contextProviderShape, _contextTypes), getInitialState: function getInitialState() { var _ref3; if (!this.context[contextName]) { return {}; } return _ref3 = {}, _ref3[lastRenderedEventIndexKey] = this.context[contextName].eventIndex, _ref3; }, componentDidMount: function componentDidMount() { if (!this.context[contextName]) { return; } this[unsubscribeKey] = this.context[contextName].subscribe(this[handleContextUpdateKey]); }, componentWillReceiveProps: function componentWillReceiveProps() { var _setState; if (!this.context[contextName]) { return; } this.setState((_setState = {}, _setState[lastRenderedEventIndexKey] = this.context[contextName].eventIndex, _setState)); }, componentWillUnmount: function componentWillUnmount() { if (!this[unsubscribeKey]) { return; } this[unsubscribeKey](); this[unsubscribeKey] = null; } }, _ref4[handleContextUpdateKey] = function (eventIndex) { if (eventIndex !== this.state[lastRenderedEventIndexKey]) { var _setState2; this.setState((_setState2 = {}, _setState2[lastRenderedEventIndexKey] = eventIndex, _setState2)); } }, _ref4; } // CONCATENATED MODULE: ./node_modules/react-router/es/RouterContext.js var RouterContext_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var RouterContext_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /** * A renders the component tree for a given router state * and sets the history object and the current location in context. */ var RouterContext = create_react_class_default()({ displayName: 'RouterContext', mixins: [ContextProvider('router')], propTypes: { router: prop_types["object"].isRequired, location: prop_types["object"].isRequired, routes: prop_types["array"].isRequired, params: prop_types["object"].isRequired, components: prop_types["array"].isRequired, createElement: prop_types["func"].isRequired }, getDefaultProps: function getDefaultProps() { return { createElement: react_default.a.createElement }; }, childContextTypes: { router: prop_types["object"].isRequired }, getChildContext: function getChildContext() { return { router: this.props.router }; }, createElement: function createElement(component, props) { return component == null ? null : this.props.createElement(component, props); }, render: function render() { var _this = this; var _props = this.props, location = _props.location, routes = _props.routes, params = _props.params, components = _props.components, router = _props.router; var element = null; if (components) { element = components.reduceRight(function (element, components, index) { if (components == null) return element; // Don't create new children; use the grandchildren. var route = routes[index]; var routeParams = es_getRouteParams(route, params); var props = { location: location, params: params, route: route, router: router, routeParams: routeParams, routes: routes }; if (isReactChildren(element)) { props.children = element; } else if (element) { for (var prop in element) { if (Object.prototype.hasOwnProperty.call(element, prop)) props[prop] = element[prop]; } } if ((typeof components === 'undefined' ? 'undefined' : RouterContext_typeof(components)) === 'object') { var elements = {}; for (var key in components) { if (Object.prototype.hasOwnProperty.call(components, key)) { // Pass through the key as a prop to createElement to allow // custom createElement functions to know which named component // they're rendering, for e.g. matching up to fetched data. elements[key] = _this.createElement(components[key], RouterContext_extends({ key: key }, props)); } } return elements; } return _this.createElement(components, props); }, element); } !(element === null || element === false || react_default.a.isValidElement(element)) ? false ? undefined : browser_default()(false) : void 0; return element; } }); /* harmony default export */ var es_RouterContext = (RouterContext); // CONCATENATED MODULE: ./node_modules/react-router/es/RouterUtils.js var RouterUtils_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function RouterUtils_createRouterObject(history, transitionManager, state) { var router = RouterUtils_extends({}, history, { setRouteLeaveHook: transitionManager.listenBeforeLeavingRoute, isActive: transitionManager.isActive }); return assignRouterState(router, state); } function assignRouterState(router, _ref) { var location = _ref.location, params = _ref.params, routes = _ref.routes; router.location = location; router.params = params; router.routes = routes; return router; } // CONCATENATED MODULE: ./node_modules/react-router/es/Router.js var Router_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } var propTypes = { history: prop_types["object"], children: InternalPropTypes_routes, routes: InternalPropTypes_routes, // alias for children render: prop_types["func"], createElement: prop_types["func"], onError: prop_types["func"], onUpdate: prop_types["func"], // PRIVATE: For client-side rehydration of server match. matchContext: prop_types["object"] }; /** * A is a high-level API for automatically setting up * a router that renders a with all the props * it needs each time the URL changes. */ var Router = create_react_class_default()({ displayName: 'Router', propTypes: propTypes, getDefaultProps: function getDefaultProps() { return { render: function render(props) { return react_default.a.createElement(es_RouterContext, props); } }; }, getInitialState: function getInitialState() { return { location: null, routes: null, params: null, components: null }; }, handleError: function handleError(error) { if (this.props.onError) { this.props.onError.call(this, error); } else { // Throw errors by default so we don't silently swallow them! throw error; // This error probably occurred in getChildRoutes or getComponents. } }, createRouterObject: function createRouterObject(state) { var matchContext = this.props.matchContext; if (matchContext) { return matchContext.router; } var history = this.props.history; return RouterUtils_createRouterObject(history, this.transitionManager, state); }, createTransitionManager: function createTransitionManager() { var matchContext = this.props.matchContext; if (matchContext) { return matchContext.transitionManager; } var history = this.props.history; var _props = this.props, routes = _props.routes, children = _props.children; !history.getCurrentLocation ? false ? undefined : browser_default()(false) : void 0; return createTransitionManager_createTransitionManager(history, createRoutes(routes || children)); }, componentWillMount: function componentWillMount() { var _this = this; this.transitionManager = this.createTransitionManager(); this.router = this.createRouterObject(this.state); this._unlisten = this.transitionManager.listen(function (error, state) { if (error) { _this.handleError(error); } else { // Keep the identity of this.router because of a caveat in ContextUtils: // they only work if the object identity is preserved. assignRouterState(_this.router, state); _this.setState(state, _this.props.onUpdate); } }); }, /* istanbul ignore next: sanity check */ componentWillReceiveProps: function componentWillReceiveProps(nextProps) { false ? undefined : void 0; false ? undefined : void 0; }, componentWillUnmount: function componentWillUnmount() { if (this._unlisten) this._unlisten(); }, render: function render() { var _state = this.state, location = _state.location, routes = _state.routes, params = _state.params, components = _state.components; var _props2 = this.props, createElement = _props2.createElement, render = _props2.render, props = _objectWithoutProperties(_props2, ['createElement', 'render']); if (location == null) return null; // Async match // Only forward non-Router-specific props to routing context, as those are // the only ones that might be custom routing context props. Object.keys(propTypes).forEach(function (propType) { return delete props[propType]; }); return render(Router_extends({}, props, { router: this.router, location: location, routes: routes, params: params, components: components, createElement: createElement })); } }); /* harmony default export */ var es_Router = (Router); // CONCATENATED MODULE: ./node_modules/react-router/es/PropTypes.js var routerShape = Object(prop_types["shape"])({ push: prop_types["func"].isRequired, replace: prop_types["func"].isRequired, go: prop_types["func"].isRequired, goBack: prop_types["func"].isRequired, goForward: prop_types["func"].isRequired, setRouteLeaveHook: prop_types["func"].isRequired, isActive: prop_types["func"].isRequired }); var locationShape = Object(prop_types["shape"])({ pathname: prop_types["string"].isRequired, search: prop_types["string"].isRequired, state: prop_types["object"], action: prop_types["string"].isRequired, key: prop_types["string"] }); // CONCATENATED MODULE: ./node_modules/react-router/es/Link.js var Link_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function Link_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } function isLeftClickEvent(event) { return event.button === 0; } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); } // TODO: De-duplicate against hasAnyProperties in createTransitionManager. function isEmptyObject(object) { for (var p in object) { if (Object.prototype.hasOwnProperty.call(object, p)) return false; }return true; } function resolveToLocation(to, router) { return typeof to === 'function' ? to(router.location) : to; } /** * A is used to create an element that links to a route. * When that route is active, the link gets the value of its * activeClassName prop. * * For example, assuming you have the following route: * * * * You could use the following component to link to that route: * * */ var Link = create_react_class_default()({ displayName: 'Link', mixins: [ContextSubscriber('router')], contextTypes: { router: routerShape }, propTypes: { to: Object(prop_types["oneOfType"])([prop_types["string"], prop_types["object"], prop_types["func"]]), activeStyle: prop_types["object"], activeClassName: prop_types["string"], onlyActiveOnIndex: prop_types["bool"].isRequired, onClick: prop_types["func"], target: prop_types["string"] }, getDefaultProps: function getDefaultProps() { return { onlyActiveOnIndex: false, style: {} }; }, handleClick: function handleClick(event) { if (this.props.onClick) this.props.onClick(event); if (event.defaultPrevented) return; var router = this.context.router; !router ? false ? undefined : browser_default()(false) : void 0; if (isModifiedEvent(event) || !isLeftClickEvent(event)) return; // If target prop is set (e.g. to "_blank"), let browser handle link. /* istanbul ignore if: untestable with Karma */ if (this.props.target) return; event.preventDefault(); router.push(resolveToLocation(this.props.to, router)); }, render: function render() { var _props = this.props, to = _props.to, activeClassName = _props.activeClassName, activeStyle = _props.activeStyle, onlyActiveOnIndex = _props.onlyActiveOnIndex, props = Link_objectWithoutProperties(_props, ['to', 'activeClassName', 'activeStyle', 'onlyActiveOnIndex']); // Ignore if rendered outside the context of router to simplify unit testing. var router = this.context.router; if (router) { // If user does not specify a `to` prop, return an empty anchor tag. if (!to) { return react_default.a.createElement('a', props); } var toLocation = resolveToLocation(to, router); props.href = router.createHref(toLocation); if (activeClassName || activeStyle != null && !isEmptyObject(activeStyle)) { if (router.isActive(toLocation, onlyActiveOnIndex)) { if (activeClassName) { if (props.className) { props.className += ' ' + activeClassName; } else { props.className = activeClassName; } } if (activeStyle) props.style = Link_extends({}, props.style, activeStyle); } } } return react_default.a.createElement('a', Link_extends({}, props, { onClick: this.handleClick })); } }); /* harmony default export */ var es_Link = (Link); // CONCATENATED MODULE: ./node_modules/react-router/es/IndexLink.js var IndexLink_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /** * An is used to link to an . */ var IndexLink = create_react_class_default()({ displayName: 'IndexLink', render: function render() { return react_default.a.createElement(es_Link, IndexLink_extends({}, this.props, { onlyActiveOnIndex: true })); } }); /* harmony default export */ var es_IndexLink = (IndexLink); // EXTERNAL MODULE: ./node_modules/react-router/node_modules/hoist-non-react-statics/index.js var hoist_non_react_statics = __webpack_require__(829); var hoist_non_react_statics_default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics); // CONCATENATED MODULE: ./node_modules/react-router/es/withRouter.js var withRouter_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function getDisplayName(WrappedComponent) { return WrappedComponent.displayName || WrappedComponent.name || 'Component'; } function withRouter(WrappedComponent, options) { var withRef = options && options.withRef; var WithRouter = create_react_class_default()({ displayName: 'WithRouter', mixins: [ContextSubscriber('router')], contextTypes: { router: routerShape }, propTypes: { router: routerShape }, getWrappedInstance: function getWrappedInstance() { !withRef ? false ? undefined : browser_default()(false) : void 0; return this.wrappedInstance; }, render: function render() { var _this = this; var router = this.props.router || this.context.router; if (!router) { return react_default.a.createElement(WrappedComponent, this.props); } var params = router.params, location = router.location, routes = router.routes; var props = withRouter_extends({}, this.props, { router: router, params: params, location: location, routes: routes }); if (withRef) { props.ref = function (c) { _this.wrappedInstance = c; }; } return react_default.a.createElement(WrappedComponent, props); } }); WithRouter.displayName = 'withRouter(' + getDisplayName(WrappedComponent) + ')'; WithRouter.WrappedComponent = WrappedComponent; return hoist_non_react_statics_default()(WithRouter, WrappedComponent); } // CONCATENATED MODULE: ./node_modules/react-router/es/Redirect.js /** * A is used to declare another URL path a client should * be sent to when they request a given URL. * * Redirects are placed alongside routes in the route configuration * and are traversed in the same manner. */ /* eslint-disable react/require-render-return */ var Redirect = create_react_class_default()({ displayName: 'Redirect', statics: { createRouteFromReactElement: function createRouteFromReactElement(element) { var route = RouteUtils_createRouteFromReactElement(element); if (route.from) route.path = route.from; route.onEnter = function (nextState, replace) { var location = nextState.location, params = nextState.params; var pathname = void 0; if (route.to.charAt(0) === '/') { pathname = formatPattern(route.to, params); } else if (!route.to) { pathname = location.pathname; } else { var routeIndex = nextState.routes.indexOf(route); var parentPattern = Redirect.getRoutePattern(nextState.routes, routeIndex - 1); var pattern = parentPattern.replace(/\/*$/, '/') + route.to; pathname = formatPattern(pattern, params); } replace({ pathname: pathname, query: route.query || location.query, state: route.state || location.state }); }; return route; }, getRoutePattern: function getRoutePattern(routes, routeIndex) { var parentPattern = ''; for (var i = routeIndex; i >= 0; i--) { var route = routes[i]; var pattern = route.path || ''; parentPattern = pattern.replace(/\/*$/, '/') + parentPattern; if (pattern.indexOf('/') === 0) break; } return '/' + parentPattern; } }, propTypes: { path: prop_types["string"], from: prop_types["string"], // Alias for path to: prop_types["string"].isRequired, query: prop_types["object"], state: prop_types["object"], onEnter: falsy, children: falsy }, /* istanbul ignore next: sanity check */ render: function render() { true ? false ? undefined : browser_default()(false) : undefined; } }); /* harmony default export */ var es_Redirect = (Redirect); // CONCATENATED MODULE: ./node_modules/react-router/es/IndexRedirect.js /** * An is used to redirect from an indexRoute. */ /* eslint-disable react/require-render-return */ var IndexRedirect = create_react_class_default()({ displayName: 'IndexRedirect', statics: { createRouteFromReactElement: function createRouteFromReactElement(element, parentRoute) { /* istanbul ignore else: sanity check */ if (parentRoute) { parentRoute.indexRoute = es_Redirect.createRouteFromReactElement(element); } else { false ? undefined : void 0; } } }, propTypes: { to: prop_types["string"].isRequired, query: prop_types["object"], state: prop_types["object"], onEnter: falsy, children: falsy }, /* istanbul ignore next: sanity check */ render: function render() { true ? false ? undefined : browser_default()(false) : undefined; } }); /* harmony default export */ var es_IndexRedirect = (IndexRedirect); // CONCATENATED MODULE: ./node_modules/react-router/es/IndexRoute.js /** * An is used to specify its parent's in * a JSX route config. */ /* eslint-disable react/require-render-return */ var IndexRoute = create_react_class_default()({ displayName: 'IndexRoute', statics: { createRouteFromReactElement: function createRouteFromReactElement(element, parentRoute) { /* istanbul ignore else: sanity check */ if (parentRoute) { parentRoute.indexRoute = RouteUtils_createRouteFromReactElement(element); } else { false ? undefined : void 0; } } }, propTypes: { path: falsy, component: component, components: InternalPropTypes_components, getComponent: prop_types["func"], getComponents: prop_types["func"] }, /* istanbul ignore next: sanity check */ render: function render() { true ? false ? undefined : browser_default()(false) : undefined; } }); /* harmony default export */ var es_IndexRoute = (IndexRoute); // CONCATENATED MODULE: ./node_modules/react-router/es/Route.js /** * A is used to declare which components are rendered to the * page when the URL matches a given pattern. * * Routes are arranged in a nested tree structure. When a new URL is * requested, the tree is searched depth-first to find a route whose * path matches the URL. When one is found, all routes in the tree * that lead to it are considered "active" and their components are * rendered into the DOM, nested in the same order as in the tree. */ /* eslint-disable react/require-render-return */ var Route = create_react_class_default()({ displayName: 'Route', statics: { createRouteFromReactElement: RouteUtils_createRouteFromReactElement }, propTypes: { path: prop_types["string"], component: component, components: InternalPropTypes_components, getComponent: prop_types["func"], getComponents: prop_types["func"] }, /* istanbul ignore next: sanity check */ render: function render() { true ? false ? undefined : browser_default()(false) : undefined; } }); /* harmony default export */ var es_Route = (Route); // EXTERNAL MODULE: ./node_modules/history/lib/Actions.js var Actions = __webpack_require__(231); // EXTERNAL MODULE: ./node_modules/history/lib/useQueries.js var useQueries = __webpack_require__(287); var useQueries_default = /*#__PURE__*/__webpack_require__.n(useQueries); // EXTERNAL MODULE: ./node_modules/history/lib/useBasename.js var useBasename = __webpack_require__(288); var useBasename_default = /*#__PURE__*/__webpack_require__.n(useBasename); // EXTERNAL MODULE: ./node_modules/history/lib/createMemoryHistory.js var createMemoryHistory = __webpack_require__(497); var createMemoryHistory_default = /*#__PURE__*/__webpack_require__.n(createMemoryHistory); // CONCATENATED MODULE: ./node_modules/react-router/es/createMemoryHistory.js function createMemoryHistory_createMemoryHistory(options) { // signatures and type checking differ between `useQueries` and // `createMemoryHistory`, have to create `memoryHistory` first because // `useQueries` doesn't understand the signature var memoryHistory = createMemoryHistory_default()(options); var createHistory = function createHistory() { return memoryHistory; }; var history = useQueries_default()(useBasename_default()(createHistory))(options); return history; } // CONCATENATED MODULE: ./node_modules/react-router/es/match.js var match_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function match_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } /** * A high-level API to be used for server-side rendering. * * This function matches a location to a set of routes and calls * callback(error, redirectLocation, renderProps) when finished. * * Note: You probably don't want to use this in a browser unless you're using * server-side rendering with async routes. */ function match_match(_ref, callback) { var history = _ref.history, routes = _ref.routes, location = _ref.location, options = match_objectWithoutProperties(_ref, ['history', 'routes', 'location']); !(history || location) ? false ? undefined : browser_default()(false) : void 0; history = history ? history : createMemoryHistory_createMemoryHistory(options); var transitionManager = createTransitionManager_createTransitionManager(history, createRoutes(routes)); if (location) { // Allow match({ location: '/the/path', ... }) location = history.createLocation(location); } else { location = history.getCurrentLocation(); } transitionManager.match(location, function (error, redirectLocation, nextState) { var renderProps = void 0; if (nextState) { var router = RouterUtils_createRouterObject(history, transitionManager, nextState); renderProps = match_extends({}, nextState, { router: router, matchContext: { transitionManager: transitionManager, router: router } }); } callback(error, redirectLocation && history.createLocation(redirectLocation, Actions["REPLACE"]), renderProps); }); } /* harmony default export */ var es_match = (match_match); // CONCATENATED MODULE: ./node_modules/react-router/es/useRouterHistory.js function useRouterHistory(createHistory) { return function (options) { var history = useQueries_default()(useBasename_default()(createHistory))(options); return history; }; } // CONCATENATED MODULE: ./node_modules/react-router/es/applyRouterMiddleware.js var applyRouterMiddleware_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /* harmony default export */ var applyRouterMiddleware = (function () { for (var _len = arguments.length, middlewares = Array(_len), _key = 0; _key < _len; _key++) { middlewares[_key] = arguments[_key]; } if (false) {} var withContext = middlewares.map(function (middleware) { return middleware.renderRouterContext; }).filter(Boolean); var withComponent = middlewares.map(function (middleware) { return middleware.renderRouteComponent; }).filter(Boolean); var makeCreateElement = function makeCreateElement() { var baseCreateElement = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : react["createElement"]; return function (Component, props) { return withComponent.reduceRight(function (previous, renderRouteComponent) { return renderRouteComponent(previous, props); }, baseCreateElement(Component, props)); }; }; return function (renderProps) { return withContext.reduceRight(function (previous, renderRouterContext) { return renderRouterContext(previous, renderProps); }, react_default.a.createElement(es_RouterContext, applyRouterMiddleware_extends({}, renderProps, { createElement: makeCreateElement(renderProps.createElement) }))); }; }); // EXTERNAL MODULE: ./node_modules/history/lib/createBrowserHistory.js var createBrowserHistory = __webpack_require__(498); var createBrowserHistory_default = /*#__PURE__*/__webpack_require__.n(createBrowserHistory); // CONCATENATED MODULE: ./node_modules/react-router/es/createRouterHistory.js var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); function createRouterHistory(createHistory) { var history = void 0; if (canUseDOM) history = useRouterHistory(createHistory)(); return history; } // CONCATENATED MODULE: ./node_modules/react-router/es/browserHistory.js /* harmony default export */ var browserHistory = (createRouterHistory(createBrowserHistory_default.a)); // EXTERNAL MODULE: ./node_modules/history/lib/createHashHistory.js var createHashHistory = __webpack_require__(499); var createHashHistory_default = /*#__PURE__*/__webpack_require__.n(createHashHistory); // CONCATENATED MODULE: ./node_modules/react-router/es/hashHistory.js /* harmony default export */ var hashHistory = (createRouterHistory(createHashHistory_default.a)); // CONCATENATED MODULE: ./node_modules/react-router/es/index.js /* components */ /* components (configuration) */ /* utils */ /* histories */ /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(34); var getOwnPropertyDescriptor = __webpack_require__(85).f; var createNonEnumerableProperty = __webpack_require__(87); var redefine = __webpack_require__(88); var setGlobal = __webpack_require__(390); var copyConstructorProperties = __webpack_require__(520); var isForced = __webpack_require__(260); /* options.target - name of the target object options.global - target is the global object options.stat - export as static methods of target options.proto - export as prototype methods of target options.real - real prototype method for the `pure` version options.forced - export even if the native feature is available options.bind - bind methods to the target, required for the `pure` version options.wrap - wrap constructors to preventing global pollution, required for the `pure` version options.unsafe - use the simple assignment of property instead of delete + defineProperty options.sham - add a flag to not completely full polyfills options.enumerable - export as enumerable property options.noTargetGet - prevent calling a getter on target */ module.exports = function (options, source) { var TARGET = options.target; var GLOBAL = options.global; var STATIC = options.stat; var FORCED, target, key, targetProperty, sourceProperty, descriptor; if (GLOBAL) { target = global; } else if (STATIC) { target = global[TARGET] || setGlobal(TARGET, {}); } else { target = (global[TARGET] || {}).prototype; } if (target) for (key in source) { sourceProperty = source[key]; if (options.noTargetGet) { descriptor = getOwnPropertyDescriptor(target, key); targetProperty = descriptor && descriptor.value; } else targetProperty = target[key]; FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); // contained in target if (!FORCED && targetProperty !== undefined) { if (typeof sourceProperty === typeof targetProperty) continue; copyConstructorProperties(sourceProperty, targetProperty); } // add a flag to not completely full polyfills if (options.sham || (targetProperty && targetProperty.sham)) { createNonEnumerableProperty(sourceProperty, 'sham', true); } // extend global redefine(target, key, sourceProperty, options); } }; /***/ }), /* 9 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var require;//! moment.js //! version : 2.27.0 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com ;(function (global, factory) { true ? module.exports = factory() : undefined }(this, (function () { 'use strict'; var hookCallback; function hooks() { return hookCallback.apply(null, arguments); } // This is done to register the method called with moment() // without creating circular dependencies. function setHookCallback(callback) { hookCallback = callback; } function isArray(input) { return ( input instanceof Array || Object.prototype.toString.call(input) === '[object Array]' ); } function isObject(input) { // IE8 will treat undefined and null as object if it wasn't for // input != null return ( input != null && Object.prototype.toString.call(input) === '[object Object]' ); } function hasOwnProp(a, b) { return Object.prototype.hasOwnProperty.call(a, b); } function isObjectEmpty(obj) { if (Object.getOwnPropertyNames) { return Object.getOwnPropertyNames(obj).length === 0; } else { var k; for (k in obj) { if (hasOwnProp(obj, k)) { return false; } } return true; } } function isUndefined(input) { return input === void 0; } function isNumber(input) { return ( typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]' ); } function isDate(input) { return ( input instanceof Date || Object.prototype.toString.call(input) === '[object Date]' ); } function map(arr, fn) { var res = [], i; for (i = 0; i < arr.length; ++i) { res.push(fn(arr[i], i)); } return res; } function extend(a, b) { for (var i in b) { if (hasOwnProp(b, i)) { a[i] = b[i]; } } if (hasOwnProp(b, 'toString')) { a.toString = b.toString; } if (hasOwnProp(b, 'valueOf')) { a.valueOf = b.valueOf; } return a; } function createUTC(input, format, locale, strict) { return createLocalOrUTC(input, format, locale, strict, true).utc(); } function defaultParsingFlags() { // We need to deep clone this object. return { empty: false, unusedTokens: [], unusedInput: [], overflow: -2, charsLeftOver: 0, nullInput: false, invalidEra: null, invalidMonth: null, invalidFormat: false, userInvalidated: false, iso: false, parsedDateParts: [], era: null, meridiem: null, rfc2822: false, weekdayMismatch: false, }; } function getParsingFlags(m) { if (m._pf == null) { m._pf = defaultParsingFlags(); } return m._pf; } var some; if (Array.prototype.some) { some = Array.prototype.some; } else { some = function (fun) { var t = Object(this), len = t.length >>> 0, i; for (i = 0; i < len; i++) { if (i in t && fun.call(this, t[i], i, t)) { return true; } } return false; }; } function isValid(m) { if (m._isValid == null) { var flags = getParsingFlags(m), parsedParts = some.call(flags.parsedDateParts, function (i) { return i != null; }), isNowValid = !isNaN(m._d.getTime()) && flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || (flags.meridiem && parsedParts)); if (m._strict) { isNowValid = isNowValid && flags.charsLeftOver === 0 && flags.unusedTokens.length === 0 && flags.bigHour === undefined; } if (Object.isFrozen == null || !Object.isFrozen(m)) { m._isValid = isNowValid; } else { return isNowValid; } } return m._isValid; } function createInvalid(flags) { var m = createUTC(NaN); if (flags != null) { extend(getParsingFlags(m), flags); } else { getParsingFlags(m).userInvalidated = true; } return m; } // Plugins that add properties should also add the key here (null value), // so we can properly clone ourselves. var momentProperties = (hooks.momentProperties = []), updateInProgress = false; function copyConfig(to, from) { var i, prop, val; if (!isUndefined(from._isAMomentObject)) { to._isAMomentObject = from._isAMomentObject; } if (!isUndefined(from._i)) { to._i = from._i; } if (!isUndefined(from._f)) { to._f = from._f; } if (!isUndefined(from._l)) { to._l = from._l; } if (!isUndefined(from._strict)) { to._strict = from._strict; } if (!isUndefined(from._tzm)) { to._tzm = from._tzm; } if (!isUndefined(from._isUTC)) { to._isUTC = from._isUTC; } if (!isUndefined(from._offset)) { to._offset = from._offset; } if (!isUndefined(from._pf)) { to._pf = getParsingFlags(from); } if (!isUndefined(from._locale)) { to._locale = from._locale; } if (momentProperties.length > 0) { for (i = 0; i < momentProperties.length; i++) { prop = momentProperties[i]; val = from[prop]; if (!isUndefined(val)) { to[prop] = val; } } } return to; } // Moment prototype object function Moment(config) { copyConfig(this, config); this._d = new Date(config._d != null ? config._d.getTime() : NaN); if (!this.isValid()) { this._d = new Date(NaN); } // Prevent infinite loop in case updateOffset creates new moment // objects. if (updateInProgress === false) { updateInProgress = true; hooks.updateOffset(this); updateInProgress = false; } } function isMoment(obj) { return ( obj instanceof Moment || (obj != null && obj._isAMomentObject != null) ); } function warn(msg) { if ( hooks.suppressDeprecationWarnings === false && typeof console !== 'undefined' && console.warn ) { console.warn('Deprecation warning: ' + msg); } } function deprecate(msg, fn) { var firstTime = true; return extend(function () { if (hooks.deprecationHandler != null) { hooks.deprecationHandler(null, msg); } if (firstTime) { var args = [], arg, i, key; for (i = 0; i < arguments.length; i++) { arg = ''; if (typeof arguments[i] === 'object') { arg += '\n[' + i + '] '; for (key in arguments[0]) { if (hasOwnProp(arguments[0], key)) { arg += key + ': ' + arguments[0][key] + ', '; } } arg = arg.slice(0, -2); // Remove trailing comma and space } else { arg = arguments[i]; } args.push(arg); } warn( msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + new Error().stack ); firstTime = false; } return fn.apply(this, arguments); }, fn); } var deprecations = {}; function deprecateSimple(name, msg) { if (hooks.deprecationHandler != null) { hooks.deprecationHandler(name, msg); } if (!deprecations[name]) { warn(msg); deprecations[name] = true; } } hooks.suppressDeprecationWarnings = false; hooks.deprecationHandler = null; function isFunction(input) { return ( (typeof Function !== 'undefined' && input instanceof Function) || Object.prototype.toString.call(input) === '[object Function]' ); } function set(config) { var prop, i; for (i in config) { if (hasOwnProp(config, i)) { prop = config[i]; if (isFunction(prop)) { this[i] = prop; } else { this['_' + i] = prop; } } } this._config = config; // Lenient ordinal parsing accepts just a number in addition to // number + (possibly) stuff coming from _dayOfMonthOrdinalParse. // TODO: Remove "ordinalParse" fallback in next major release. this._dayOfMonthOrdinalParseLenient = new RegExp( (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + '|' + /\d{1,2}/.source ); } function mergeConfigs(parentConfig, childConfig) { var res = extend({}, parentConfig), prop; for (prop in childConfig) { if (hasOwnProp(childConfig, prop)) { if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) { res[prop] = {}; extend(res[prop], parentConfig[prop]); extend(res[prop], childConfig[prop]); } else if (childConfig[prop] != null) { res[prop] = childConfig[prop]; } else { delete res[prop]; } } } for (prop in parentConfig) { if ( hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject(parentConfig[prop]) ) { // make sure changes to properties don't modify parent config res[prop] = extend({}, res[prop]); } } return res; } function Locale(config) { if (config != null) { this.set(config); } } var keys; if (Object.keys) { keys = Object.keys; } else { keys = function (obj) { var i, res = []; for (i in obj) { if (hasOwnProp(obj, i)) { res.push(i); } } return res; }; } var defaultCalendar = { sameDay: '[Today at] LT', nextDay: '[Tomorrow at] LT', nextWeek: 'dddd [at] LT', lastDay: '[Yesterday at] LT', lastWeek: '[Last] dddd [at] LT', sameElse: 'L', }; function calendar(key, mom, now) { var output = this._calendar[key] || this._calendar['sameElse']; return isFunction(output) ? output.call(mom, now) : output; } function zeroFill(number, targetLength, forceSign) { var absNumber = '' + Math.abs(number), zerosToFill = targetLength - absNumber.length, sign = number >= 0; return ( (sign ? (forceSign ? '+' : '') : '-') + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber ); } var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, formatFunctions = {}, formatTokenFunctions = {}; // token: 'M' // padded: ['MM', 2] // ordinal: 'Mo' // callback: function () { this.month() + 1 } function addFormatToken(token, padded, ordinal, callback) { var func = callback; if (typeof callback === 'string') { func = function () { return this[callback](); }; } if (token) { formatTokenFunctions[token] = func; } if (padded) { formatTokenFunctions[padded[0]] = function () { return zeroFill(func.apply(this, arguments), padded[1], padded[2]); }; } if (ordinal) { formatTokenFunctions[ordinal] = function () { return this.localeData().ordinal( func.apply(this, arguments), token ); }; } } function removeFormattingTokens(input) { if (input.match(/\[[\s\S]/)) { return input.replace(/^\[|\]$/g, ''); } return input.replace(/\\/g, ''); } function makeFormatFunction(format) { var array = format.match(formattingTokens), i, length; for (i = 0, length = array.length; i < length; i++) { if (formatTokenFunctions[array[i]]) { array[i] = formatTokenFunctions[array[i]]; } else { array[i] = removeFormattingTokens(array[i]); } } return function (mom) { var output = '', i; for (i = 0; i < length; i++) { output += isFunction(array[i]) ? array[i].call(mom, format) : array[i]; } return output; }; } // format date using native date object function formatMoment(m, format) { if (!m.isValid()) { return m.localeData().invalidDate(); } format = expandFormat(format, m.localeData()); formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format); return formatFunctions[format](m); } function expandFormat(format, locale) { var i = 5; function replaceLongDateFormatTokens(input) { return locale.longDateFormat(input) || input; } localFormattingTokens.lastIndex = 0; while (i >= 0 && localFormattingTokens.test(format)) { format = format.replace( localFormattingTokens, replaceLongDateFormatTokens ); localFormattingTokens.lastIndex = 0; i -= 1; } return format; } var defaultLongDateFormat = { LTS: 'h:mm:ss A', LT: 'h:mm A', L: 'MM/DD/YYYY', LL: 'MMMM D, YYYY', LLL: 'MMMM D, YYYY h:mm A', LLLL: 'dddd, MMMM D, YYYY h:mm A', }; function longDateFormat(key) { var format = this._longDateFormat[key], formatUpper = this._longDateFormat[key.toUpperCase()]; if (format || !formatUpper) { return format; } this._longDateFormat[key] = formatUpper .match(formattingTokens) .map(function (tok) { if ( tok === 'MMMM' || tok === 'MM' || tok === 'DD' || tok === 'dddd' ) { return tok.slice(1); } return tok; }) .join(''); return this._longDateFormat[key]; } var defaultInvalidDate = 'Invalid date'; function invalidDate() { return this._invalidDate; } var defaultOrdinal = '%d', defaultDayOfMonthOrdinalParse = /\d{1,2}/; function ordinal(number) { return this._ordinal.replace('%d', number); } var defaultRelativeTime = { future: 'in %s', past: '%s ago', s: 'a few seconds', ss: '%d seconds', m: 'a minute', mm: '%d minutes', h: 'an hour', hh: '%d hours', d: 'a day', dd: '%d days', w: 'a week', ww: '%d weeks', M: 'a month', MM: '%d months', y: 'a year', yy: '%d years', }; function relativeTime(number, withoutSuffix, string, isFuture) { var output = this._relativeTime[string]; return isFunction(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number); } function pastFuture(diff, output) { var format = this._relativeTime[diff > 0 ? 'future' : 'past']; return isFunction(format) ? format(output) : format.replace(/%s/i, output); } var aliases = {}; function addUnitAlias(unit, shorthand) { var lowerCase = unit.toLowerCase(); aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit; } function normalizeUnits(units) { return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined; } function normalizeObjectUnits(inputObject) { var normalizedInput = {}, normalizedProp, prop; for (prop in inputObject) { if (hasOwnProp(inputObject, prop)) { normalizedProp = normalizeUnits(prop); if (normalizedProp) { normalizedInput[normalizedProp] = inputObject[prop]; } } } return normalizedInput; } var priorities = {}; function addUnitPriority(unit, priority) { priorities[unit] = priority; } function getPrioritizedUnits(unitsObj) { var units = [], u; for (u in unitsObj) { if (hasOwnProp(unitsObj, u)) { units.push({ unit: u, priority: priorities[u] }); } } units.sort(function (a, b) { return a.priority - b.priority; }); return units; } function isLeapYear(year) { return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0; } function absFloor(number) { if (number < 0) { // -0 -> 0 return Math.ceil(number) || 0; } else { return Math.floor(number); } } function toInt(argumentForCoercion) { var coercedNumber = +argumentForCoercion, value = 0; if (coercedNumber !== 0 && isFinite(coercedNumber)) { value = absFloor(coercedNumber); } return value; } function makeGetSet(unit, keepTime) { return function (value) { if (value != null) { set$1(this, unit, value); hooks.updateOffset(this, keepTime); return this; } else { return get(this, unit); } }; } function get(mom, unit) { return mom.isValid() ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN; } function set$1(mom, unit, value) { if (mom.isValid() && !isNaN(value)) { if ( unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29 ) { value = toInt(value); mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit]( value, mom.month(), daysInMonth(value, mom.month()) ); } else { mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value); } } } // MOMENTS function stringGet(units) { units = normalizeUnits(units); if (isFunction(this[units])) { return this[units](); } return this; } function stringSet(units, value) { if (typeof units === 'object') { units = normalizeObjectUnits(units); var prioritized = getPrioritizedUnits(units), i; for (i = 0; i < prioritized.length; i++) { this[prioritized[i].unit](units[prioritized[i].unit]); } } else { units = normalizeUnits(units); if (isFunction(this[units])) { return this[units](value); } } return this; } var match1 = /\d/, // 0 - 9 match2 = /\d\d/, // 00 - 99 match3 = /\d{3}/, // 000 - 999 match4 = /\d{4}/, // 0000 - 9999 match6 = /[+-]?\d{6}/, // -999999 - 999999 match1to2 = /\d\d?/, // 0 - 99 match3to4 = /\d\d\d\d?/, // 999 - 9999 match5to6 = /\d\d\d\d\d\d?/, // 99999 - 999999 match1to3 = /\d{1,3}/, // 0 - 999 match1to4 = /\d{1,4}/, // 0 - 9999 match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999 matchUnsigned = /\d+/, // 0 - inf matchSigned = /[+-]?\d+/, // -inf - inf matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123 // any word (or two) characters or numbers including two/three word month in arabic. // includes scottish gaelic two word and hyphenated months matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, regexes; regexes = {}; function addRegexToken(token, regex, strictRegex) { regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) { return isStrict && strictRegex ? strictRegex : regex; }; } function getParseRegexForToken(token, config) { if (!hasOwnProp(regexes, token)) { return new RegExp(unescapeFormat(token)); } return regexes[token](config._strict, config._locale); } // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript function unescapeFormat(s) { return regexEscape( s .replace('\\', '') .replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function ( matched, p1, p2, p3, p4 ) { return p1 || p2 || p3 || p4; }) ); } function regexEscape(s) { return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); } var tokens = {}; function addParseToken(token, callback) { var i, func = callback; if (typeof token === 'string') { token = [token]; } if (isNumber(callback)) { func = function (input, array) { array[callback] = toInt(input); }; } for (i = 0; i < token.length; i++) { tokens[token[i]] = func; } } function addWeekParseToken(token, callback) { addParseToken(token, function (input, array, config, token) { config._w = config._w || {}; callback(input, config._w, config, token); }); } function addTimeToArrayFromToken(token, input, config) { if (input != null && hasOwnProp(tokens, token)) { tokens[token](input, config._a, config, token); } } var YEAR = 0, MONTH = 1, DATE = 2, HOUR = 3, MINUTE = 4, SECOND = 5, MILLISECOND = 6, WEEK = 7, WEEKDAY = 8; function mod(n, x) { return ((n % x) + x) % x; } var indexOf; if (Array.prototype.indexOf) { indexOf = Array.prototype.indexOf; } else { indexOf = function (o) { // I know var i; for (i = 0; i < this.length; ++i) { if (this[i] === o) { return i; } } return -1; }; } function daysInMonth(year, month) { if (isNaN(year) || isNaN(month)) { return NaN; } var modMonth = mod(month, 12); year += (month - modMonth) / 12; return modMonth === 1 ? isLeapYear(year) ? 29 : 28 : 31 - ((modMonth % 7) % 2); } // FORMATTING addFormatToken('M', ['MM', 2], 'Mo', function () { return this.month() + 1; }); addFormatToken('MMM', 0, 0, function (format) { return this.localeData().monthsShort(this, format); }); addFormatToken('MMMM', 0, 0, function (format) { return this.localeData().months(this, format); }); // ALIASES addUnitAlias('month', 'M'); // PRIORITY addUnitPriority('month', 8); // PARSING addRegexToken('M', match1to2); addRegexToken('MM', match1to2, match2); addRegexToken('MMM', function (isStrict, locale) { return locale.monthsShortRegex(isStrict); }); addRegexToken('MMMM', function (isStrict, locale) { return locale.monthsRegex(isStrict); }); addParseToken(['M', 'MM'], function (input, array) { array[MONTH] = toInt(input) - 1; }); addParseToken(['MMM', 'MMMM'], function (input, array, config, token) { var month = config._locale.monthsParse(input, token, config._strict); // if we didn't find a month name, mark the date as invalid. if (month != null) { array[MONTH] = month; } else { getParsingFlags(config).invalidMonth = input; } }); // LOCALES var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split( '_' ), defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( '_' ), MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, defaultMonthsShortRegex = matchWord, defaultMonthsRegex = matchWord; function localeMonths(m, format) { if (!m) { return isArray(this._months) ? this._months : this._months['standalone']; } return isArray(this._months) ? this._months[m.month()] : this._months[ (this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone' ][m.month()]; } function localeMonthsShort(m, format) { if (!m) { return isArray(this._monthsShort) ? this._monthsShort : this._monthsShort['standalone']; } return isArray(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[ MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone' ][m.month()]; } function handleStrictParse(monthName, format, strict) { var i, ii, mom, llc = monthName.toLocaleLowerCase(); if (!this._monthsParse) { // this is not used this._monthsParse = []; this._longMonthsParse = []; this._shortMonthsParse = []; for (i = 0; i < 12; ++i) { mom = createUTC([2000, i]); this._shortMonthsParse[i] = this.monthsShort( mom, '' ).toLocaleLowerCase(); this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase(); } } if (strict) { if (format === 'MMM') { ii = indexOf.call(this._shortMonthsParse, llc); return ii !== -1 ? ii : null; } else { ii = indexOf.call(this._longMonthsParse, llc); return ii !== -1 ? ii : null; } } else { if (format === 'MMM') { ii = indexOf.call(this._shortMonthsParse, llc); if (ii !== -1) { return ii; } ii = indexOf.call(this._longMonthsParse, llc); return ii !== -1 ? ii : null; } else { ii = indexOf.call(this._longMonthsParse, llc); if (ii !== -1) { return ii; } ii = indexOf.call(this._shortMonthsParse, llc); return ii !== -1 ? ii : null; } } } function localeMonthsParse(monthName, format, strict) { var i, mom, regex; if (this._monthsParseExact) { return handleStrictParse.call(this, monthName, format, strict); } if (!this._monthsParse) { this._monthsParse = []; this._longMonthsParse = []; this._shortMonthsParse = []; } // TODO: add sorting // Sorting makes sure if one month (or abbr) is a prefix of another // see sorting in computeMonthsParse for (i = 0; i < 12; i++) { // make the regex if we don't have it already mom = createUTC([2000, i]); if (strict && !this._longMonthsParse[i]) { this._longMonthsParse[i] = new RegExp( '^' + this.months(mom, '').replace('.', '') + '$', 'i' ); this._shortMonthsParse[i] = new RegExp( '^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i' ); } if (!strict && !this._monthsParse[i]) { regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, ''); this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i'); } // test the regex if ( strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName) ) { return i; } else if ( strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName) ) { return i; } else if (!strict && this._monthsParse[i].test(monthName)) { return i; } } } // MOMENTS function setMonth(mom, value) { var dayOfMonth; if (!mom.isValid()) { // No op return mom; } if (typeof value === 'string') { if (/^\d+$/.test(value)) { value = toInt(value); } else { value = mom.localeData().monthsParse(value); // TODO: Another silent failure? if (!isNumber(value)) { return mom; } } } dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value)); mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth); return mom; } function getSetMonth(value) { if (value != null) { setMonth(this, value); hooks.updateOffset(this, true); return this; } else { return get(this, 'Month'); } } function getDaysInMonth() { return daysInMonth(this.year(), this.month()); } function monthsShortRegex(isStrict) { if (this._monthsParseExact) { if (!hasOwnProp(this, '_monthsRegex')) { computeMonthsParse.call(this); } if (isStrict) { return this._monthsShortStrictRegex; } else { return this._monthsShortRegex; } } else { if (!hasOwnProp(this, '_monthsShortRegex')) { this._monthsShortRegex = defaultMonthsShortRegex; } return this._monthsShortStrictRegex && isStrict ? this._monthsShortStrictRegex : this._monthsShortRegex; } } function monthsRegex(isStrict) { if (this._monthsParseExact) { if (!hasOwnProp(this, '_monthsRegex')) { computeMonthsParse.call(this); } if (isStrict) { return this._monthsStrictRegex; } else { return this._monthsRegex; } } else { if (!hasOwnProp(this, '_monthsRegex')) { this._monthsRegex = defaultMonthsRegex; } return this._monthsStrictRegex && isStrict ? this._monthsStrictRegex : this._monthsRegex; } } function computeMonthsParse() { function cmpLenRev(a, b) { return b.length - a.length; } var shortPieces = [], longPieces = [], mixedPieces = [], i, mom; for (i = 0; i < 12; i++) { // make the regex if we don't have it already mom = createUTC([2000, i]); shortPieces.push(this.monthsShort(mom, '')); longPieces.push(this.months(mom, '')); mixedPieces.push(this.months(mom, '')); mixedPieces.push(this.monthsShort(mom, '')); } // Sorting makes sure if one month (or abbr) is a prefix of another it // will match the longer piece. shortPieces.sort(cmpLenRev); longPieces.sort(cmpLenRev); mixedPieces.sort(cmpLenRev); for (i = 0; i < 12; i++) { shortPieces[i] = regexEscape(shortPieces[i]); longPieces[i] = regexEscape(longPieces[i]); } for (i = 0; i < 24; i++) { mixedPieces[i] = regexEscape(mixedPieces[i]); } this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); this._monthsShortRegex = this._monthsRegex; this._monthsStrictRegex = new RegExp( '^(' + longPieces.join('|') + ')', 'i' ); this._monthsShortStrictRegex = new RegExp( '^(' + shortPieces.join('|') + ')', 'i' ); } // FORMATTING addFormatToken('Y', 0, 0, function () { var y = this.year(); return y <= 9999 ? zeroFill(y, 4) : '+' + y; }); addFormatToken(0, ['YY', 2], 0, function () { return this.year() % 100; }); addFormatToken(0, ['YYYY', 4], 0, 'year'); addFormatToken(0, ['YYYYY', 5], 0, 'year'); addFormatToken(0, ['YYYYYY', 6, true], 0, 'year'); // ALIASES addUnitAlias('year', 'y'); // PRIORITIES addUnitPriority('year', 1); // PARSING addRegexToken('Y', matchSigned); addRegexToken('YY', match1to2, match2); addRegexToken('YYYY', match1to4, match4); addRegexToken('YYYYY', match1to6, match6); addRegexToken('YYYYYY', match1to6, match6); addParseToken(['YYYYY', 'YYYYYY'], YEAR); addParseToken('YYYY', function (input, array) { array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input); }); addParseToken('YY', function (input, array) { array[YEAR] = hooks.parseTwoDigitYear(input); }); addParseToken('Y', function (input, array) { array[YEAR] = parseInt(input, 10); }); // HELPERS function daysInYear(year) { return isLeapYear(year) ? 366 : 365; } // HOOKS hooks.parseTwoDigitYear = function (input) { return toInt(input) + (toInt(input) > 68 ? 1900 : 2000); }; // MOMENTS var getSetYear = makeGetSet('FullYear', true); function getIsLeapYear() { return isLeapYear(this.year()); } function createDate(y, m, d, h, M, s, ms) { // can't just apply() to create a date: // https://stackoverflow.com/q/181348 var date; // the date constructor remaps years 0-99 to 1900-1999 if (y < 100 && y >= 0) { // preserve leap years using a full 400 year cycle, then reset date = new Date(y + 400, m, d, h, M, s, ms); if (isFinite(date.getFullYear())) { date.setFullYear(y); } } else { date = new Date(y, m, d, h, M, s, ms); } return date; } function createUTCDate(y) { var date, args; // the Date.UTC function remaps years 0-99 to 1900-1999 if (y < 100 && y >= 0) { args = Array.prototype.slice.call(arguments); // preserve leap years using a full 400 year cycle, then reset args[0] = y + 400; date = new Date(Date.UTC.apply(null, args)); if (isFinite(date.getUTCFullYear())) { date.setUTCFullYear(y); } } else { date = new Date(Date.UTC.apply(null, arguments)); } return date; } // start-of-first-week - start-of-year function firstWeekOffset(year, dow, doy) { var // first-week day -- which january is always in the first week (4 for iso, 1 for other) fwd = 7 + dow - doy, // first-week day local weekday -- which local weekday is fwd fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7; return -fwdlw + fwd - 1; } // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday function dayOfYearFromWeeks(year, week, weekday, dow, doy) { var localWeekday = (7 + weekday - dow) % 7, weekOffset = firstWeekOffset(year, dow, doy), dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, resYear, resDayOfYear; if (dayOfYear <= 0) { resYear = year - 1; resDayOfYear = daysInYear(resYear) + dayOfYear; } else if (dayOfYear > daysInYear(year)) { resYear = year + 1; resDayOfYear = dayOfYear - daysInYear(year); } else { resYear = year; resDayOfYear = dayOfYear; } return { year: resYear, dayOfYear: resDayOfYear, }; } function weekOfYear(mom, dow, doy) { var weekOffset = firstWeekOffset(mom.year(), dow, doy), week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, resWeek, resYear; if (week < 1) { resYear = mom.year() - 1; resWeek = week + weeksInYear(resYear, dow, doy); } else if (week > weeksInYear(mom.year(), dow, doy)) { resWeek = week - weeksInYear(mom.year(), dow, doy); resYear = mom.year() + 1; } else { resYear = mom.year(); resWeek = week; } return { week: resWeek, year: resYear, }; } function weeksInYear(year, dow, doy) { var weekOffset = firstWeekOffset(year, dow, doy), weekOffsetNext = firstWeekOffset(year + 1, dow, doy); return (daysInYear(year) - weekOffset + weekOffsetNext) / 7; } // FORMATTING addFormatToken('w', ['ww', 2], 'wo', 'week'); addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek'); // ALIASES addUnitAlias('week', 'w'); addUnitAlias('isoWeek', 'W'); // PRIORITIES addUnitPriority('week', 5); addUnitPriority('isoWeek', 5); // PARSING addRegexToken('w', match1to2); addRegexToken('ww', match1to2, match2); addRegexToken('W', match1to2); addRegexToken('WW', match1to2, match2); addWeekParseToken(['w', 'ww', 'W', 'WW'], function ( input, week, config, token ) { week[token.substr(0, 1)] = toInt(input); }); // HELPERS // LOCALES function localeWeek(mom) { return weekOfYear(mom, this._week.dow, this._week.doy).week; } var defaultLocaleWeek = { dow: 0, // Sunday is the first day of the week. doy: 6, // The week that contains Jan 6th is the first week of the year. }; function localeFirstDayOfWeek() { return this._week.dow; } function localeFirstDayOfYear() { return this._week.doy; } // MOMENTS function getSetWeek(input) { var week = this.localeData().week(this); return input == null ? week : this.add((input - week) * 7, 'd'); } function getSetISOWeek(input) { var week = weekOfYear(this, 1, 4).week; return input == null ? week : this.add((input - week) * 7, 'd'); } // FORMATTING addFormatToken('d', 0, 'do', 'day'); addFormatToken('dd', 0, 0, function (format) { return this.localeData().weekdaysMin(this, format); }); addFormatToken('ddd', 0, 0, function (format) { return this.localeData().weekdaysShort(this, format); }); addFormatToken('dddd', 0, 0, function (format) { return this.localeData().weekdays(this, format); }); addFormatToken('e', 0, 0, 'weekday'); addFormatToken('E', 0, 0, 'isoWeekday'); // ALIASES addUnitAlias('day', 'd'); addUnitAlias('weekday', 'e'); addUnitAlias('isoWeekday', 'E'); // PRIORITY addUnitPriority('day', 11); addUnitPriority('weekday', 11); addUnitPriority('isoWeekday', 11); // PARSING addRegexToken('d', match1to2); addRegexToken('e', match1to2); addRegexToken('E', match1to2); addRegexToken('dd', function (isStrict, locale) { return locale.weekdaysMinRegex(isStrict); }); addRegexToken('ddd', function (isStrict, locale) { return locale.weekdaysShortRegex(isStrict); }); addRegexToken('dddd', function (isStrict, locale) { return locale.weekdaysRegex(isStrict); }); addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) { var weekday = config._locale.weekdaysParse(input, token, config._strict); // if we didn't get a weekday name, mark the date as invalid if (weekday != null) { week.d = weekday; } else { getParsingFlags(config).invalidWeekday = input; } }); addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) { week[token] = toInt(input); }); // HELPERS function parseWeekday(input, locale) { if (typeof input !== 'string') { return input; } if (!isNaN(input)) { return parseInt(input, 10); } input = locale.weekdaysParse(input); if (typeof input === 'number') { return input; } return null; } function parseIsoWeekday(input, locale) { if (typeof input === 'string') { return locale.weekdaysParse(input) % 7 || 7; } return isNaN(input) ? null : input; } // LOCALES function shiftWeekdays(ws, n) { return ws.slice(n, 7).concat(ws.slice(0, n)); } var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( '_' ), defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), defaultWeekdaysRegex = matchWord, defaultWeekdaysShortRegex = matchWord, defaultWeekdaysMinRegex = matchWord; function localeWeekdays(m, format) { var weekdays = isArray(this._weekdays) ? this._weekdays : this._weekdays[ m && m !== true && this._weekdays.isFormat.test(format) ? 'format' : 'standalone' ]; return m === true ? shiftWeekdays(weekdays, this._week.dow) : m ? weekdays[m.day()] : weekdays; } function localeWeekdaysShort(m) { return m === true ? shiftWeekdays(this._weekdaysShort, this._week.dow) : m ? this._weekdaysShort[m.day()] : this._weekdaysShort; } function localeWeekdaysMin(m) { return m === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m ? this._weekdaysMin[m.day()] : this._weekdaysMin; } function handleStrictParse$1(weekdayName, format, strict) { var i, ii, mom, llc = weekdayName.toLocaleLowerCase(); if (!this._weekdaysParse) { this._weekdaysParse = []; this._shortWeekdaysParse = []; this._minWeekdaysParse = []; for (i = 0; i < 7; ++i) { mom = createUTC([2000, 1]).day(i); this._minWeekdaysParse[i] = this.weekdaysMin( mom, '' ).toLocaleLowerCase(); this._shortWeekdaysParse[i] = this.weekdaysShort( mom, '' ).toLocaleLowerCase(); this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase(); } } if (strict) { if (format === 'dddd') { ii = indexOf.call(this._weekdaysParse, llc); return ii !== -1 ? ii : null; } else if (format === 'ddd') { ii = indexOf.call(this._shortWeekdaysParse, llc); return ii !== -1 ? ii : null; } else { ii = indexOf.call(this._minWeekdaysParse, llc); return ii !== -1 ? ii : null; } } else { if (format === 'dddd') { ii = indexOf.call(this._weekdaysParse, llc); if (ii !== -1) { return ii; } ii = indexOf.call(this._shortWeekdaysParse, llc); if (ii !== -1) { return ii; } ii = indexOf.call(this._minWeekdaysParse, llc); return ii !== -1 ? ii : null; } else if (format === 'ddd') { ii = indexOf.call(this._shortWeekdaysParse, llc); if (ii !== -1) { return ii; } ii = indexOf.call(this._weekdaysParse, llc); if (ii !== -1) { return ii; } ii = indexOf.call(this._minWeekdaysParse, llc); return ii !== -1 ? ii : null; } else { ii = indexOf.call(this._minWeekdaysParse, llc); if (ii !== -1) { return ii; } ii = indexOf.call(this._weekdaysParse, llc); if (ii !== -1) { return ii; } ii = indexOf.call(this._shortWeekdaysParse, llc); return ii !== -1 ? ii : null; } } } function localeWeekdaysParse(weekdayName, format, strict) { var i, mom, regex; if (this._weekdaysParseExact) { return handleStrictParse$1.call(this, weekdayName, format, strict); } if (!this._weekdaysParse) { this._weekdaysParse = []; this._minWeekdaysParse = []; this._shortWeekdaysParse = []; this._fullWeekdaysParse = []; } for (i = 0; i < 7; i++) { // make the regex if we don't have it already mom = createUTC([2000, 1]).day(i); if (strict && !this._fullWeekdaysParse[i]) { this._fullWeekdaysParse[i] = new RegExp( '^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', 'i' ); this._shortWeekdaysParse[i] = new RegExp( '^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', 'i' ); this._minWeekdaysParse[i] = new RegExp( '^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', 'i' ); } if (!this._weekdaysParse[i]) { regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, ''); this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i'); } // test the regex if ( strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName) ) { return i; } else if ( strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName) ) { return i; } else if ( strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName) ) { return i; } else if (!strict && this._weekdaysParse[i].test(weekdayName)) { return i; } } } // MOMENTS function getSetDayOfWeek(input) { if (!this.isValid()) { return input != null ? this : NaN; } var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); if (input != null) { input = parseWeekday(input, this.localeData()); return this.add(input - day, 'd'); } else { return day; } } function getSetLocaleDayOfWeek(input) { if (!this.isValid()) { return input != null ? this : NaN; } var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; return input == null ? weekday : this.add(input - weekday, 'd'); } function getSetISODayOfWeek(input) { if (!this.isValid()) { return input != null ? this : NaN; } // behaves the same as moment#day except // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6) // as a setter, sunday should belong to the previous week. if (input != null) { var weekday = parseIsoWeekday(input, this.localeData()); return this.day(this.day() % 7 ? weekday : weekday - 7); } else { return this.day() || 7; } } function weekdaysRegex(isStrict) { if (this._weekdaysParseExact) { if (!hasOwnProp(this, '_weekdaysRegex')) { computeWeekdaysParse.call(this); } if (isStrict) { return this._weekdaysStrictRegex; } else { return this._weekdaysRegex; } } else { if (!hasOwnProp(this, '_weekdaysRegex')) { this._weekdaysRegex = defaultWeekdaysRegex; } return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex; } } function weekdaysShortRegex(isStrict) { if (this._weekdaysParseExact) { if (!hasOwnProp(this, '_weekdaysRegex')) { computeWeekdaysParse.call(this); } if (isStrict) { return this._weekdaysShortStrictRegex; } else { return this._weekdaysShortRegex; } } else { if (!hasOwnProp(this, '_weekdaysShortRegex')) { this._weekdaysShortRegex = defaultWeekdaysShortRegex; } return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex; } } function weekdaysMinRegex(isStrict) { if (this._weekdaysParseExact) { if (!hasOwnProp(this, '_weekdaysRegex')) { computeWeekdaysParse.call(this); } if (isStrict) { return this._weekdaysMinStrictRegex; } else { return this._weekdaysMinRegex; } } else { if (!hasOwnProp(this, '_weekdaysMinRegex')) { this._weekdaysMinRegex = defaultWeekdaysMinRegex; } return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex; } } function computeWeekdaysParse() { function cmpLenRev(a, b) { return b.length - a.length; } var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [], i, mom, minp, shortp, longp; for (i = 0; i < 7; i++) { // make the regex if we don't have it already mom = createUTC([2000, 1]).day(i); minp = regexEscape(this.weekdaysMin(mom, '')); shortp = regexEscape(this.weekdaysShort(mom, '')); longp = regexEscape(this.weekdays(mom, '')); minPieces.push(minp); shortPieces.push(shortp); longPieces.push(longp); mixedPieces.push(minp); mixedPieces.push(shortp); mixedPieces.push(longp); } // Sorting makes sure if one weekday (or abbr) is a prefix of another it // will match the longer piece. minPieces.sort(cmpLenRev); shortPieces.sort(cmpLenRev); longPieces.sort(cmpLenRev); mixedPieces.sort(cmpLenRev); this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); this._weekdaysShortRegex = this._weekdaysRegex; this._weekdaysMinRegex = this._weekdaysRegex; this._weekdaysStrictRegex = new RegExp( '^(' + longPieces.join('|') + ')', 'i' ); this._weekdaysShortStrictRegex = new RegExp( '^(' + shortPieces.join('|') + ')', 'i' ); this._weekdaysMinStrictRegex = new RegExp( '^(' + minPieces.join('|') + ')', 'i' ); } // FORMATTING function hFormat() { return this.hours() % 12 || 12; } function kFormat() { return this.hours() || 24; } addFormatToken('H', ['HH', 2], 0, 'hour'); addFormatToken('h', ['hh', 2], 0, hFormat); addFormatToken('k', ['kk', 2], 0, kFormat); addFormatToken('hmm', 0, 0, function () { return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2); }); addFormatToken('hmmss', 0, 0, function () { return ( '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2) ); }); addFormatToken('Hmm', 0, 0, function () { return '' + this.hours() + zeroFill(this.minutes(), 2); }); addFormatToken('Hmmss', 0, 0, function () { return ( '' + this.hours() + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2) ); }); function meridiem(token, lowercase) { addFormatToken(token, 0, 0, function () { return this.localeData().meridiem( this.hours(), this.minutes(), lowercase ); }); } meridiem('a', true); meridiem('A', false); // ALIASES addUnitAlias('hour', 'h'); // PRIORITY addUnitPriority('hour', 13); // PARSING function matchMeridiem(isStrict, locale) { return locale._meridiemParse; } addRegexToken('a', matchMeridiem); addRegexToken('A', matchMeridiem); addRegexToken('H', match1to2); addRegexToken('h', match1to2); addRegexToken('k', match1to2); addRegexToken('HH', match1to2, match2); addRegexToken('hh', match1to2, match2); addRegexToken('kk', match1to2, match2); addRegexToken('hmm', match3to4); addRegexToken('hmmss', match5to6); addRegexToken('Hmm', match3to4); addRegexToken('Hmmss', match5to6); addParseToken(['H', 'HH'], HOUR); addParseToken(['k', 'kk'], function (input, array, config) { var kInput = toInt(input); array[HOUR] = kInput === 24 ? 0 : kInput; }); addParseToken(['a', 'A'], function (input, array, config) { config._isPm = config._locale.isPM(input); config._meridiem = input; }); addParseToken(['h', 'hh'], function (input, array, config) { array[HOUR] = toInt(input); getParsingFlags(config).bigHour = true; }); addParseToken('hmm', function (input, array, config) { var pos = input.length - 2; array[HOUR] = toInt(input.substr(0, pos)); array[MINUTE] = toInt(input.substr(pos)); getParsingFlags(config).bigHour = true; }); addParseToken('hmmss', function (input, array, config) { var pos1 = input.length - 4, pos2 = input.length - 2; array[HOUR] = toInt(input.substr(0, pos1)); array[MINUTE] = toInt(input.substr(pos1, 2)); array[SECOND] = toInt(input.substr(pos2)); getParsingFlags(config).bigHour = true; }); addParseToken('Hmm', function (input, array, config) { var pos = input.length - 2; array[HOUR] = toInt(input.substr(0, pos)); array[MINUTE] = toInt(input.substr(pos)); }); addParseToken('Hmmss', function (input, array, config) { var pos1 = input.length - 4, pos2 = input.length - 2; array[HOUR] = toInt(input.substr(0, pos1)); array[MINUTE] = toInt(input.substr(pos1, 2)); array[SECOND] = toInt(input.substr(pos2)); }); // LOCALES function localeIsPM(input) { // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays // Using charAt should be more compatible. return (input + '').toLowerCase().charAt(0) === 'p'; } var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i, // Setting the hour should keep the time, because the user explicitly // specified which hour they want. So trying to maintain the same hour (in // a new timezone) makes sense. Adding/subtracting hours does not follow // this rule. getSetHour = makeGetSet('Hours', true); function localeMeridiem(hours, minutes, isLower) { if (hours > 11) { return isLower ? 'pm' : 'PM'; } else { return isLower ? 'am' : 'AM'; } } var baseConfig = { calendar: defaultCalendar, longDateFormat: defaultLongDateFormat, invalidDate: defaultInvalidDate, ordinal: defaultOrdinal, dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse, relativeTime: defaultRelativeTime, months: defaultLocaleMonths, monthsShort: defaultLocaleMonthsShort, week: defaultLocaleWeek, weekdays: defaultLocaleWeekdays, weekdaysMin: defaultLocaleWeekdaysMin, weekdaysShort: defaultLocaleWeekdaysShort, meridiemParse: defaultLocaleMeridiemParse, }; // internal storage for locale config files var locales = {}, localeFamilies = {}, globalLocale; function commonPrefix(arr1, arr2) { var i, minl = Math.min(arr1.length, arr2.length); for (i = 0; i < minl; i += 1) { if (arr1[i] !== arr2[i]) { return i; } } return minl; } function normalizeLocale(key) { return key ? key.toLowerCase().replace('_', '-') : key; } // pick the locale from the array // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root function chooseLocale(names) { var i = 0, j, next, locale, split; while (i < names.length) { split = normalizeLocale(names[i]).split('-'); j = split.length; next = normalizeLocale(names[i + 1]); next = next ? next.split('-') : null; while (j > 0) { locale = loadLocale(split.slice(0, j).join('-')); if (locale) { return locale; } if ( next && next.length >= j && commonPrefix(split, next) >= j - 1 ) { //the next array item is better than a shallower substring of this one break; } j--; } i++; } return globalLocale; } function loadLocale(name) { var oldLocale = null, aliasedRequire; // TODO: Find a better way to register and load all the locales in Node if ( locales[name] === undefined && typeof module !== 'undefined' && module && module.exports ) { try { oldLocale = globalLocale._abbr; aliasedRequire = require; __webpack_require__(1329)("./" + name); getSetGlobalLocale(oldLocale); } catch (e) { // mark as not found to avoid repeating expensive file require call causing high CPU // when trying to find en-US, en_US, en-us for every format call locales[name] = null; // null means not found } } return locales[name]; } // This function will load locale and then set the global locale. If // no arguments are passed in, it will simply return the current global // locale key. function getSetGlobalLocale(key, values) { var data; if (key) { if (isUndefined(values)) { data = getLocale(key); } else { data = defineLocale(key, values); } if (data) { // moment.duration._locale = moment._locale = data; globalLocale = data; } else { if (typeof console !== 'undefined' && console.warn) { //warn user if arguments are passed but the locale could not be set console.warn( 'Locale ' + key + ' not found. Did you forget to load it?' ); } } } return globalLocale._abbr; } function defineLocale(name, config) { if (config !== null) { var locale, parentConfig = baseConfig; config.abbr = name; if (locales[name] != null) { deprecateSimple( 'defineLocaleOverride', 'use moment.updateLocale(localeName, config) to change ' + 'an existing locale. moment.defineLocale(localeName, ' + 'config) should only be used for creating a new locale ' + 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.' ); parentConfig = locales[name]._config; } else if (config.parentLocale != null) { if (locales[config.parentLocale] != null) { parentConfig = locales[config.parentLocale]._config; } else { locale = loadLocale(config.parentLocale); if (locale != null) { parentConfig = locale._config; } else { if (!localeFamilies[config.parentLocale]) { localeFamilies[config.parentLocale] = []; } localeFamilies[config.parentLocale].push({ name: name, config: config, }); return null; } } } locales[name] = new Locale(mergeConfigs(parentConfig, config)); if (localeFamilies[name]) { localeFamilies[name].forEach(function (x) { defineLocale(x.name, x.config); }); } // backwards compat for now: also set the locale // make sure we set the locale AFTER all child locales have been // created, so we won't end up with the child locale set. getSetGlobalLocale(name); return locales[name]; } else { // useful for testing delete locales[name]; return null; } } function updateLocale(name, config) { if (config != null) { var locale, tmpLocale, parentConfig = baseConfig; if (locales[name] != null && locales[name].parentLocale != null) { // Update existing child locale in-place to avoid memory-leaks locales[name].set(mergeConfigs(locales[name]._config, config)); } else { // MERGE tmpLocale = loadLocale(name); if (tmpLocale != null) { parentConfig = tmpLocale._config; } config = mergeConfigs(parentConfig, config); if (tmpLocale == null) { // updateLocale is called for creating a new locale // Set abbr so it will have a name (getters return // undefined otherwise). config.abbr = name; } locale = new Locale(config); locale.parentLocale = locales[name]; locales[name] = locale; } // backwards compat for now: also set the locale getSetGlobalLocale(name); } else { // pass null for config to unupdate, useful for tests if (locales[name] != null) { if (locales[name].parentLocale != null) { locales[name] = locales[name].parentLocale; if (name === getSetGlobalLocale()) { getSetGlobalLocale(name); } } else if (locales[name] != null) { delete locales[name]; } } } return locales[name]; } // returns locale data function getLocale(key) { var locale; if (key && key._locale && key._locale._abbr) { key = key._locale._abbr; } if (!key) { return globalLocale; } if (!isArray(key)) { //short-circuit everything else locale = loadLocale(key); if (locale) { return locale; } key = [key]; } return chooseLocale(key); } function listLocales() { return keys(locales); } function checkOverflow(m) { var overflow, a = m._a; if (a && getParsingFlags(m).overflow === -2) { overflow = a[MONTH] < 0 || a[MONTH] > 11 ? MONTH : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE : a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR : a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE : a[SECOND] < 0 || a[SECOND] > 59 ? SECOND : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND : -1; if ( getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE) ) { overflow = DATE; } if (getParsingFlags(m)._overflowWeeks && overflow === -1) { overflow = WEEK; } if (getParsingFlags(m)._overflowWeekday && overflow === -1) { overflow = WEEKDAY; } getParsingFlags(m).overflow = overflow; } return m; } // iso 8601 regex // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00) var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, tzRegex = /Z|[+-]\d\d(?::?\d\d)?/, isoDates = [ ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], ['GGGG-[W]WW', /\d{4}-W\d\d/, false], ['YYYY-DDD', /\d{4}-\d{3}/], ['YYYY-MM', /\d{4}-\d\d/, false], ['YYYYYYMMDD', /[+-]\d{10}/], ['YYYYMMDD', /\d{8}/], ['GGGG[W]WWE', /\d{4}W\d{3}/], ['GGGG[W]WW', /\d{4}W\d{2}/, false], ['YYYYDDD', /\d{7}/], ['YYYYMM', /\d{6}/, false], ['YYYY', /\d{4}/, false], ], // iso time formats and regexes isoTimes = [ ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], ['HH:mm:ss', /\d\d:\d\d:\d\d/], ['HH:mm', /\d\d:\d\d/], ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], ['HHmmss', /\d\d\d\d\d\d/], ['HHmm', /\d\d\d\d/], ['HH', /\d\d/], ], aspNetJsonRegex = /^\/?Date\((-?\d+)/i, // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3 rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, obsOffsets = { UT: 0, GMT: 0, EDT: -4 * 60, EST: -5 * 60, CDT: -5 * 60, CST: -6 * 60, MDT: -6 * 60, MST: -7 * 60, PDT: -7 * 60, PST: -8 * 60, }; // date from iso format function configFromISO(config) { var i, l, string = config._i, match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), allowTime, dateFormat, timeFormat, tzFormat; if (match) { getParsingFlags(config).iso = true; for (i = 0, l = isoDates.length; i < l; i++) { if (isoDates[i][1].exec(match[1])) { dateFormat = isoDates[i][0]; allowTime = isoDates[i][2] !== false; break; } } if (dateFormat == null) { config._isValid = false; return; } if (match[3]) { for (i = 0, l = isoTimes.length; i < l; i++) { if (isoTimes[i][1].exec(match[3])) { // match[2] should be 'T' or space timeFormat = (match[2] || ' ') + isoTimes[i][0]; break; } } if (timeFormat == null) { config._isValid = false; return; } } if (!allowTime && timeFormat != null) { config._isValid = false; return; } if (match[4]) { if (tzRegex.exec(match[4])) { tzFormat = 'Z'; } else { config._isValid = false; return; } } config._f = dateFormat + (timeFormat || '') + (tzFormat || ''); configFromStringAndFormat(config); } else { config._isValid = false; } } function extractFromRFC2822Strings( yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr ) { var result = [ untruncateYear(yearStr), defaultLocaleMonthsShort.indexOf(monthStr), parseInt(dayStr, 10), parseInt(hourStr, 10), parseInt(minuteStr, 10), ]; if (secondStr) { result.push(parseInt(secondStr, 10)); } return result; } function untruncateYear(yearStr) { var year = parseInt(yearStr, 10); if (year <= 49) { return 2000 + year; } else if (year <= 999) { return 1900 + year; } return year; } function preprocessRFC2822(s) { // Remove comments and folding whitespace and replace multiple-spaces with a single space return s .replace(/\([^)]*\)|[\n\t]/g, ' ') .replace(/(\s\s+)/g, ' ') .replace(/^\s\s*/, '') .replace(/\s\s*$/, ''); } function checkWeekday(weekdayStr, parsedInput, config) { if (weekdayStr) { // TODO: Replace the vanilla JS Date object with an independent day-of-week check. var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr), weekdayActual = new Date( parsedInput[0], parsedInput[1], parsedInput[2] ).getDay(); if (weekdayProvided !== weekdayActual) { getParsingFlags(config).weekdayMismatch = true; config._isValid = false; return false; } } return true; } function calculateOffset(obsOffset, militaryOffset, numOffset) { if (obsOffset) { return obsOffsets[obsOffset]; } else if (militaryOffset) { // the only allowed military tz is Z return 0; } else { var hm = parseInt(numOffset, 10), m = hm % 100, h = (hm - m) / 100; return h * 60 + m; } } // date and time from ref 2822 format function configFromRFC2822(config) { var match = rfc2822.exec(preprocessRFC2822(config._i)), parsedArray; if (match) { parsedArray = extractFromRFC2822Strings( match[4], match[3], match[2], match[5], match[6], match[7] ); if (!checkWeekday(match[1], parsedArray, config)) { return; } config._a = parsedArray; config._tzm = calculateOffset(match[8], match[9], match[10]); config._d = createUTCDate.apply(null, config._a); config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); getParsingFlags(config).rfc2822 = true; } else { config._isValid = false; } } // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict function configFromString(config) { var matched = aspNetJsonRegex.exec(config._i); if (matched !== null) { config._d = new Date(+matched[1]); return; } configFromISO(config); if (config._isValid === false) { delete config._isValid; } else { return; } configFromRFC2822(config); if (config._isValid === false) { delete config._isValid; } else { return; } if (config._strict) { config._isValid = false; } else { // Final attempt, use Input Fallback hooks.createFromInputFallback(config); } } hooks.createFromInputFallback = deprecate( 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' + 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' + 'discouraged and will be removed in an upcoming major release. Please refer to ' + 'http://momentjs.com/guides/#/warnings/js-date/ for more info.', function (config) { config._d = new Date(config._i + (config._useUTC ? ' UTC' : '')); } ); // Pick the first defined of two or three arguments. function defaults(a, b, c) { if (a != null) { return a; } if (b != null) { return b; } return c; } function currentDateArray(config) { // hooks is actually the exported moment object var nowValue = new Date(hooks.now()); if (config._useUTC) { return [ nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate(), ]; } return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()]; } // convert an array to a date. // the array should mirror the parameters below // note: all values past the year are optional and will default to the lowest possible value. // [year, month, day , hour, minute, second, millisecond] function configFromArray(config) { var i, date, input = [], currentDate, expectedWeekday, yearToUse; if (config._d) { return; } currentDate = currentDateArray(config); //compute day of the year from weeks and weekdays if (config._w && config._a[DATE] == null && config._a[MONTH] == null) { dayOfYearFromWeekInfo(config); } //if the day of the year is set, figure out what it is if (config._dayOfYear != null) { yearToUse = defaults(config._a[YEAR], currentDate[YEAR]); if ( config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0 ) { getParsingFlags(config)._overflowDayOfYear = true; } date = createUTCDate(yearToUse, 0, config._dayOfYear); config._a[MONTH] = date.getUTCMonth(); config._a[DATE] = date.getUTCDate(); } // Default to current date. // * if no year, month, day of month are given, default to today // * if day of month is given, default month and year // * if month is given, default only year // * if year is given, don't default anything for (i = 0; i < 3 && config._a[i] == null; ++i) { config._a[i] = input[i] = currentDate[i]; } // Zero out whatever was not defaulted, including time for (; i < 7; i++) { config._a[i] = input[i] = config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i]; } // Check for 24:00:00.000 if ( config._a[HOUR] === 24 && config._a[MINUTE] === 0 && config._a[SECOND] === 0 && config._a[MILLISECOND] === 0 ) { config._nextDay = true; config._a[HOUR] = 0; } config._d = (config._useUTC ? createUTCDate : createDate).apply( null, input ); expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay(); // Apply timezone offset from input. The actual utcOffset can be changed // with parseZone. if (config._tzm != null) { config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); } if (config._nextDay) { config._a[HOUR] = 24; } // check for mismatching day of week if ( config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday ) { getParsingFlags(config).weekdayMismatch = true; } } function dayOfYearFromWeekInfo(config) { var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek; w = config._w; if (w.GG != null || w.W != null || w.E != null) { dow = 1; doy = 4; // TODO: We need to take the current isoWeekYear, but that depends on // how we interpret now (local, utc, fixed offset). So create // a now version of current config (take local/utc/offset flags, and // create now). weekYear = defaults( w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year ); week = defaults(w.W, 1); weekday = defaults(w.E, 1); if (weekday < 1 || weekday > 7) { weekdayOverflow = true; } } else { dow = config._locale._week.dow; doy = config._locale._week.doy; curWeek = weekOfYear(createLocal(), dow, doy); weekYear = defaults(w.gg, config._a[YEAR], curWeek.year); // Default to current week. week = defaults(w.w, curWeek.week); if (w.d != null) { // weekday -- low day numbers are considered next week weekday = w.d; if (weekday < 0 || weekday > 6) { weekdayOverflow = true; } } else if (w.e != null) { // local weekday -- counting starts from beginning of week weekday = w.e + dow; if (w.e < 0 || w.e > 6) { weekdayOverflow = true; } } else { // default to beginning of week weekday = dow; } } if (week < 1 || week > weeksInYear(weekYear, dow, doy)) { getParsingFlags(config)._overflowWeeks = true; } else if (weekdayOverflow != null) { getParsingFlags(config)._overflowWeekday = true; } else { temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy); config._a[YEAR] = temp.year; config._dayOfYear = temp.dayOfYear; } } // constant that refers to the ISO standard hooks.ISO_8601 = function () {}; // constant that refers to the RFC 2822 form hooks.RFC_2822 = function () {}; // date from string and format string function configFromStringAndFormat(config) { // TODO: Move this to another part of the creation flow to prevent circular deps if (config._f === hooks.ISO_8601) { configFromISO(config); return; } if (config._f === hooks.RFC_2822) { configFromRFC2822(config); return; } config._a = []; getParsingFlags(config).empty = true; // This array is used to make a Date, either with `new Date` or `Date.UTC` var string = '' + config._i, i, parsedInput, tokens, token, skipped, stringLength = string.length, totalParsedInputLength = 0, era; tokens = expandFormat(config._f, config._locale).match(formattingTokens) || []; for (i = 0; i < tokens.length; i++) { token = tokens[i]; parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0]; if (parsedInput) { skipped = string.substr(0, string.indexOf(parsedInput)); if (skipped.length > 0) { getParsingFlags(config).unusedInput.push(skipped); } string = string.slice( string.indexOf(parsedInput) + parsedInput.length ); totalParsedInputLength += parsedInput.length; } // don't parse if it's not a known token if (formatTokenFunctions[token]) { if (parsedInput) { getParsingFlags(config).empty = false; } else { getParsingFlags(config).unusedTokens.push(token); } addTimeToArrayFromToken(token, parsedInput, config); } else if (config._strict && !parsedInput) { getParsingFlags(config).unusedTokens.push(token); } } // add remaining unparsed input length to the string getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength; if (string.length > 0) { getParsingFlags(config).unusedInput.push(string); } // clear _12h flag if hour is <= 12 if ( config._a[HOUR] <= 12 && getParsingFlags(config).bigHour === true && config._a[HOUR] > 0 ) { getParsingFlags(config).bigHour = undefined; } getParsingFlags(config).parsedDateParts = config._a.slice(0); getParsingFlags(config).meridiem = config._meridiem; // handle meridiem config._a[HOUR] = meridiemFixWrap( config._locale, config._a[HOUR], config._meridiem ); // handle era era = getParsingFlags(config).era; if (era !== null) { config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]); } configFromArray(config); checkOverflow(config); } function meridiemFixWrap(locale, hour, meridiem) { var isPm; if (meridiem == null) { // nothing to do return hour; } if (locale.meridiemHour != null) { return locale.meridiemHour(hour, meridiem); } else if (locale.isPM != null) { // Fallback isPm = locale.isPM(meridiem); if (isPm && hour < 12) { hour += 12; } if (!isPm && hour === 12) { hour = 0; } return hour; } else { // this is not supposed to happen return hour; } } // date from string and array of format strings function configFromStringAndArray(config) { var tempConfig, bestMoment, scoreToBeat, i, currentScore, validFormatFound, bestFormatIsValid = false; if (config._f.length === 0) { getParsingFlags(config).invalidFormat = true; config._d = new Date(NaN); return; } for (i = 0; i < config._f.length; i++) { currentScore = 0; validFormatFound = false; tempConfig = copyConfig({}, config); if (config._useUTC != null) { tempConfig._useUTC = config._useUTC; } tempConfig._f = config._f[i]; configFromStringAndFormat(tempConfig); if (isValid(tempConfig)) { validFormatFound = true; } // if there is any input that was not parsed add a penalty for that format currentScore += getParsingFlags(tempConfig).charsLeftOver; //or tokens currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10; getParsingFlags(tempConfig).score = currentScore; if (!bestFormatIsValid) { if ( scoreToBeat == null || currentScore < scoreToBeat || validFormatFound ) { scoreToBeat = currentScore; bestMoment = tempConfig; if (validFormatFound) { bestFormatIsValid = true; } } } else { if (currentScore < scoreToBeat) { scoreToBeat = currentScore; bestMoment = tempConfig; } } } extend(config, bestMoment || tempConfig); } function configFromObject(config) { if (config._d) { return; } var i = normalizeObjectUnits(config._i), dayOrDate = i.day === undefined ? i.date : i.day; config._a = map( [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond], function (obj) { return obj && parseInt(obj, 10); } ); configFromArray(config); } function createFromConfig(config) { var res = new Moment(checkOverflow(prepareConfig(config))); if (res._nextDay) { // Adding is smart enough around DST res.add(1, 'd'); res._nextDay = undefined; } return res; } function prepareConfig(config) { var input = config._i, format = config._f; config._locale = config._locale || getLocale(config._l); if (input === null || (format === undefined && input === '')) { return createInvalid({ nullInput: true }); } if (typeof input === 'string') { config._i = input = config._locale.preparse(input); } if (isMoment(input)) { return new Moment(checkOverflow(input)); } else if (isDate(input)) { config._d = input; } else if (isArray(format)) { configFromStringAndArray(config); } else if (format) { configFromStringAndFormat(config); } else { configFromInput(config); } if (!isValid(config)) { config._d = null; } return config; } function configFromInput(config) { var input = config._i; if (isUndefined(input)) { config._d = new Date(hooks.now()); } else if (isDate(input)) { config._d = new Date(input.valueOf()); } else if (typeof input === 'string') { configFromString(config); } else if (isArray(input)) { config._a = map(input.slice(0), function (obj) { return parseInt(obj, 10); }); configFromArray(config); } else if (isObject(input)) { configFromObject(config); } else if (isNumber(input)) { // from milliseconds config._d = new Date(input); } else { hooks.createFromInputFallback(config); } } function createLocalOrUTC(input, format, locale, strict, isUTC) { var c = {}; if (format === true || format === false) { strict = format; format = undefined; } if (locale === true || locale === false) { strict = locale; locale = undefined; } if ( (isObject(input) && isObjectEmpty(input)) || (isArray(input) && input.length === 0) ) { input = undefined; } // object construction must be done this way. // https://github.com/moment/moment/issues/1423 c._isAMomentObject = true; c._useUTC = c._isUTC = isUTC; c._l = locale; c._i = input; c._f = format; c._strict = strict; return createFromConfig(c); } function createLocal(input, format, locale, strict) { return createLocalOrUTC(input, format, locale, strict, false); } var prototypeMin = deprecate( 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', function () { var other = createLocal.apply(null, arguments); if (this.isValid() && other.isValid()) { return other < this ? this : other; } else { return createInvalid(); } } ), prototypeMax = deprecate( 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', function () { var other = createLocal.apply(null, arguments); if (this.isValid() && other.isValid()) { return other > this ? this : other; } else { return createInvalid(); } } ); // Pick a moment m from moments so that m[fn](other) is true for all // other. This relies on the function fn to be transitive. // // moments should either be an array of moment objects or an array, whose // first element is an array of moment objects. function pickBy(fn, moments) { var res, i; if (moments.length === 1 && isArray(moments[0])) { moments = moments[0]; } if (!moments.length) { return createLocal(); } res = moments[0]; for (i = 1; i < moments.length; ++i) { if (!moments[i].isValid() || moments[i][fn](res)) { res = moments[i]; } } return res; } // TODO: Use [].sort instead? function min() { var args = [].slice.call(arguments, 0); return pickBy('isBefore', args); } function max() { var args = [].slice.call(arguments, 0); return pickBy('isAfter', args); } var now = function () { return Date.now ? Date.now() : +new Date(); }; var ordering = [ 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond', ]; function isDurationValid(m) { var key, unitHasDecimal = false, i; for (key in m) { if ( hasOwnProp(m, key) && !( indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])) ) ) { return false; } } for (i = 0; i < ordering.length; ++i) { if (m[ordering[i]]) { if (unitHasDecimal) { return false; // only allow non-integers for smallest unit } if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) { unitHasDecimal = true; } } } return true; } function isValid$1() { return this._isValid; } function createInvalid$1() { return createDuration(NaN); } function Duration(duration) { var normalizedInput = normalizeObjectUnits(duration), years = normalizedInput.year || 0, quarters = normalizedInput.quarter || 0, months = normalizedInput.month || 0, weeks = normalizedInput.week || normalizedInput.isoWeek || 0, days = normalizedInput.day || 0, hours = normalizedInput.hour || 0, minutes = normalizedInput.minute || 0, seconds = normalizedInput.second || 0, milliseconds = normalizedInput.millisecond || 0; this._isValid = isDurationValid(normalizedInput); // representation for dateAddRemove this._milliseconds = +milliseconds + seconds * 1e3 + // 1000 minutes * 6e4 + // 1000 * 60 hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978 // Because of dateAddRemove treats 24 hours as different from a // day when working around DST, we need to store them separately this._days = +days + weeks * 7; // It is impossible to translate months into days without knowing // which months you are are talking about, so we have to store // it separately. this._months = +months + quarters * 3 + years * 12; this._data = {}; this._locale = getLocale(); this._bubble(); } function isDuration(obj) { return obj instanceof Duration; } function absRound(number) { if (number < 0) { return Math.round(-1 * number) * -1; } else { return Math.round(number); } } // compare two arrays, return the number of differences function compareArrays(array1, array2, dontConvert) { var len = Math.min(array1.length, array2.length), lengthDiff = Math.abs(array1.length - array2.length), diffs = 0, i; for (i = 0; i < len; i++) { if ( (dontConvert && array1[i] !== array2[i]) || (!dontConvert && toInt(array1[i]) !== toInt(array2[i])) ) { diffs++; } } return diffs + lengthDiff; } // FORMATTING function offset(token, separator) { addFormatToken(token, 0, 0, function () { var offset = this.utcOffset(), sign = '+'; if (offset < 0) { offset = -offset; sign = '-'; } return ( sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~offset % 60, 2) ); }); } offset('Z', ':'); offset('ZZ', ''); // PARSING addRegexToken('Z', matchShortOffset); addRegexToken('ZZ', matchShortOffset); addParseToken(['Z', 'ZZ'], function (input, array, config) { config._useUTC = true; config._tzm = offsetFromString(matchShortOffset, input); }); // HELPERS // timezone chunker // '+10:00' > ['10', '00'] // '-1530' > ['-15', '30'] var chunkOffset = /([\+\-]|\d\d)/gi; function offsetFromString(matcher, string) { var matches = (string || '').match(matcher), chunk, parts, minutes; if (matches === null) { return null; } chunk = matches[matches.length - 1] || []; parts = (chunk + '').match(chunkOffset) || ['-', 0, 0]; minutes = +(parts[1] * 60) + toInt(parts[2]); return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes; } // Return a moment from input, that is local/utc/zone equivalent to model. function cloneWithOffset(input, model) { var res, diff; if (model._isUTC) { res = model.clone(); diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf(); // Use low-level api, because this fn is low-level api. res._d.setTime(res._d.valueOf() + diff); hooks.updateOffset(res, false); return res; } else { return createLocal(input).local(); } } function getDateOffset(m) { // On Firefox.24 Date#getTimezoneOffset returns a floating point. // https://github.com/moment/moment/pull/1871 return -Math.round(m._d.getTimezoneOffset()); } // HOOKS // This function will be called whenever a moment is mutated. // It is intended to keep the offset in sync with the timezone. hooks.updateOffset = function () {}; // MOMENTS // keepLocalTime = true means only change the timezone, without // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]--> // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset // +0200, so we adjust the time as needed, to be valid. // // Keeping the time actually adds/subtracts (one hour) // from the actual represented time. That is why we call updateOffset // a second time. In case it wants us to change the offset again // _changeInProgress == true case, then we have to adjust, because // there is no such time in the given timezone. function getSetOffset(input, keepLocalTime, keepMinutes) { var offset = this._offset || 0, localAdjust; if (!this.isValid()) { return input != null ? this : NaN; } if (input != null) { if (typeof input === 'string') { input = offsetFromString(matchShortOffset, input); if (input === null) { return this; } } else if (Math.abs(input) < 16 && !keepMinutes) { input = input * 60; } if (!this._isUTC && keepLocalTime) { localAdjust = getDateOffset(this); } this._offset = input; this._isUTC = true; if (localAdjust != null) { this.add(localAdjust, 'm'); } if (offset !== input) { if (!keepLocalTime || this._changeInProgress) { addSubtract( this, createDuration(input - offset, 'm'), 1, false ); } else if (!this._changeInProgress) { this._changeInProgress = true; hooks.updateOffset(this, true); this._changeInProgress = null; } } return this; } else { return this._isUTC ? offset : getDateOffset(this); } } function getSetZone(input, keepLocalTime) { if (input != null) { if (typeof input !== 'string') { input = -input; } this.utcOffset(input, keepLocalTime); return this; } else { return -this.utcOffset(); } } function setOffsetToUTC(keepLocalTime) { return this.utcOffset(0, keepLocalTime); } function setOffsetToLocal(keepLocalTime) { if (this._isUTC) { this.utcOffset(0, keepLocalTime); this._isUTC = false; if (keepLocalTime) { this.subtract(getDateOffset(this), 'm'); } } return this; } function setOffsetToParsedOffset() { if (this._tzm != null) { this.utcOffset(this._tzm, false, true); } else if (typeof this._i === 'string') { var tZone = offsetFromString(matchOffset, this._i); if (tZone != null) { this.utcOffset(tZone); } else { this.utcOffset(0, true); } } return this; } function hasAlignedHourOffset(input) { if (!this.isValid()) { return false; } input = input ? createLocal(input).utcOffset() : 0; return (this.utcOffset() - input) % 60 === 0; } function isDaylightSavingTime() { return ( this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset() ); } function isDaylightSavingTimeShifted() { if (!isUndefined(this._isDSTShifted)) { return this._isDSTShifted; } var c = {}, other; copyConfig(c, this); c = prepareConfig(c); if (c._a) { other = c._isUTC ? createUTC(c._a) : createLocal(c._a); this._isDSTShifted = this.isValid() && compareArrays(c._a, other.toArray()) > 0; } else { this._isDSTShifted = false; } return this._isDSTShifted; } function isLocal() { return this.isValid() ? !this._isUTC : false; } function isUtcOffset() { return this.isValid() ? this._isUTC : false; } function isUtc() { return this.isValid() ? this._isUTC && this._offset === 0 : false; } // ASP.NET json date format regex var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere // and further modified to allow for strings containing both week and day isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; function createDuration(input, key) { var duration = input, // matching against regexp is expensive, do it on demand match = null, sign, ret, diffRes; if (isDuration(input)) { duration = { ms: input._milliseconds, d: input._days, M: input._months, }; } else if (isNumber(input) || !isNaN(+input)) { duration = {}; if (key) { duration[key] = +input; } else { duration.milliseconds = +input; } } else if ((match = aspNetRegex.exec(input))) { sign = match[1] === '-' ? -1 : 1; duration = { y: 0, d: toInt(match[DATE]) * sign, h: toInt(match[HOUR]) * sign, m: toInt(match[MINUTE]) * sign, s: toInt(match[SECOND]) * sign, ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match }; } else if ((match = isoRegex.exec(input))) { sign = match[1] === '-' ? -1 : 1; duration = { y: parseIso(match[2], sign), M: parseIso(match[3], sign), w: parseIso(match[4], sign), d: parseIso(match[5], sign), h: parseIso(match[6], sign), m: parseIso(match[7], sign), s: parseIso(match[8], sign), }; } else if (duration == null) { // checks for null or undefined duration = {}; } else if ( typeof duration === 'object' && ('from' in duration || 'to' in duration) ) { diffRes = momentsDifference( createLocal(duration.from), createLocal(duration.to) ); duration = {}; duration.ms = diffRes.milliseconds; duration.M = diffRes.months; } ret = new Duration(duration); if (isDuration(input) && hasOwnProp(input, '_locale')) { ret._locale = input._locale; } if (isDuration(input) && hasOwnProp(input, '_isValid')) { ret._isValid = input._isValid; } return ret; } createDuration.fn = Duration.prototype; createDuration.invalid = createInvalid$1; function parseIso(inp, sign) { // We'd normally use ~~inp for this, but unfortunately it also // converts floats to ints. // inp may be undefined, so careful calling replace on it. var res = inp && parseFloat(inp.replace(',', '.')); // apply sign while we're at it return (isNaN(res) ? 0 : res) * sign; } function positiveMomentsDifference(base, other) { var res = {}; res.months = other.month() - base.month() + (other.year() - base.year()) * 12; if (base.clone().add(res.months, 'M').isAfter(other)) { --res.months; } res.milliseconds = +other - +base.clone().add(res.months, 'M'); return res; } function momentsDifference(base, other) { var res; if (!(base.isValid() && other.isValid())) { return { milliseconds: 0, months: 0 }; } other = cloneWithOffset(other, base); if (base.isBefore(other)) { res = positiveMomentsDifference(base, other); } else { res = positiveMomentsDifference(other, base); res.milliseconds = -res.milliseconds; res.months = -res.months; } return res; } // TODO: remove 'name' arg after deprecation is removed function createAdder(direction, name) { return function (val, period) { var dur, tmp; //invert the arguments, but complain about it if (period !== null && !isNaN(+period)) { deprecateSimple( name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' + 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.' ); tmp = val; val = period; period = tmp; } dur = createDuration(val, period); addSubtract(this, dur, direction); return this; }; } function addSubtract(mom, duration, isAdding, updateOffset) { var milliseconds = duration._milliseconds, days = absRound(duration._days), months = absRound(duration._months); if (!mom.isValid()) { // No op return; } updateOffset = updateOffset == null ? true : updateOffset; if (months) { setMonth(mom, get(mom, 'Month') + months * isAdding); } if (days) { set$1(mom, 'Date', get(mom, 'Date') + days * isAdding); } if (milliseconds) { mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding); } if (updateOffset) { hooks.updateOffset(mom, days || months); } } var add = createAdder(1, 'add'), subtract = createAdder(-1, 'subtract'); function isString(input) { return typeof input === 'string' || input instanceof String; } // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined function isMomentInput(input) { return ( isMoment(input) || isDate(input) || isString(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === undefined ); } function isMomentInputObject(input) { var objectTest = isObject(input) && !isObjectEmpty(input), propertyTest = false, properties = [ 'years', 'year', 'y', 'months', 'month', 'M', 'days', 'day', 'd', 'dates', 'date', 'D', 'hours', 'hour', 'h', 'minutes', 'minute', 'm', 'seconds', 'second', 's', 'milliseconds', 'millisecond', 'ms', ], i, property; for (i = 0; i < properties.length; i += 1) { property = properties[i]; propertyTest = propertyTest || hasOwnProp(input, property); } return objectTest && propertyTest; } function isNumberOrStringArray(input) { var arrayTest = isArray(input), dataTypeTest = false; if (arrayTest) { dataTypeTest = input.filter(function (item) { return !isNumber(item) && isString(input); }).length === 0; } return arrayTest && dataTypeTest; } function isCalendarSpec(input) { var objectTest = isObject(input) && !isObjectEmpty(input), propertyTest = false, properties = [ 'sameDay', 'nextDay', 'lastDay', 'nextWeek', 'lastWeek', 'sameElse', ], i, property; for (i = 0; i < properties.length; i += 1) { property = properties[i]; propertyTest = propertyTest || hasOwnProp(input, property); } return objectTest && propertyTest; } function getCalendarFormat(myMoment, now) { var diff = myMoment.diff(now, 'days', true); return diff < -6 ? 'sameElse' : diff < -1 ? 'lastWeek' : diff < 0 ? 'lastDay' : diff < 1 ? 'sameDay' : diff < 2 ? 'nextDay' : diff < 7 ? 'nextWeek' : 'sameElse'; } function calendar$1(time, formats) { // Support for single parameter, formats only overload to the calendar function if (arguments.length === 1) { if (isMomentInput(arguments[0])) { time = arguments[0]; formats = undefined; } else if (isCalendarSpec(arguments[0])) { formats = arguments[0]; time = undefined; } } // We want to compare the start of today, vs this. // Getting start-of-today depends on whether we're local/utc/offset or not. var now = time || createLocal(), sod = cloneWithOffset(now, this).startOf('day'), format = hooks.calendarFormat(this, sod) || 'sameElse', output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]); return this.format( output || this.localeData().calendar(format, this, createLocal(now)) ); } function clone() { return new Moment(this); } function isAfter(input, units) { var localInput = isMoment(input) ? input : createLocal(input); if (!(this.isValid() && localInput.isValid())) { return false; } units = normalizeUnits(units) || 'millisecond'; if (units === 'millisecond') { return this.valueOf() > localInput.valueOf(); } else { return localInput.valueOf() < this.clone().startOf(units).valueOf(); } } function isBefore(input, units) { var localInput = isMoment(input) ? input : createLocal(input); if (!(this.isValid() && localInput.isValid())) { return false; } units = normalizeUnits(units) || 'millisecond'; if (units === 'millisecond') { return this.valueOf() < localInput.valueOf(); } else { return this.clone().endOf(units).valueOf() < localInput.valueOf(); } } function isBetween(from, to, units, inclusivity) { var localFrom = isMoment(from) ? from : createLocal(from), localTo = isMoment(to) ? to : createLocal(to); if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) { return false; } inclusivity = inclusivity || '()'; return ( (inclusivity[0] === '(' ? this.isAfter(localFrom, units) : !this.isBefore(localFrom, units)) && (inclusivity[1] === ')' ? this.isBefore(localTo, units) : !this.isAfter(localTo, units)) ); } function isSame(input, units) { var localInput = isMoment(input) ? input : createLocal(input), inputMs; if (!(this.isValid() && localInput.isValid())) { return false; } units = normalizeUnits(units) || 'millisecond'; if (units === 'millisecond') { return this.valueOf() === localInput.valueOf(); } else { inputMs = localInput.valueOf(); return ( this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf() ); } } function isSameOrAfter(input, units) { return this.isSame(input, units) || this.isAfter(input, units); } function isSameOrBefore(input, units) { return this.isSame(input, units) || this.isBefore(input, units); } function diff(input, units, asFloat) { var that, zoneDelta, output; if (!this.isValid()) { return NaN; } that = cloneWithOffset(input, this); if (!that.isValid()) { return NaN; } zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4; units = normalizeUnits(units); switch (units) { case 'year': output = monthDiff(this, that) / 12; break; case 'month': output = monthDiff(this, that); break; case 'quarter': output = monthDiff(this, that) / 3; break; case 'second': output = (this - that) / 1e3; break; // 1000 case 'minute': output = (this - that) / 6e4; break; // 1000 * 60 case 'hour': output = (this - that) / 36e5; break; // 1000 * 60 * 60 case 'day': output = (this - that - zoneDelta) / 864e5; break; // 1000 * 60 * 60 * 24, negate dst case 'week': output = (this - that - zoneDelta) / 6048e5; break; // 1000 * 60 * 60 * 24 * 7, negate dst default: output = this - that; } return asFloat ? output : absFloor(output); } function monthDiff(a, b) { if (a.date() < b.date()) { // end-of-month calculations work correct when the start month has more // days than the end month. return -monthDiff(b, a); } // difference in months var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()), // b is in (anchor - 1 month, anchor + 1 month) anchor = a.clone().add(wholeMonthDiff, 'months'), anchor2, adjust; if (b - anchor < 0) { anchor2 = a.clone().add(wholeMonthDiff - 1, 'months'); // linear across the month adjust = (b - anchor) / (anchor - anchor2); } else { anchor2 = a.clone().add(wholeMonthDiff + 1, 'months'); // linear across the month adjust = (b - anchor) / (anchor2 - anchor); } //check for negative zero, return zero if negative zero return -(wholeMonthDiff + adjust) || 0; } hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'; hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]'; function toString() { return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); } function toISOString(keepOffset) { if (!this.isValid()) { return null; } var utc = keepOffset !== true, m = utc ? this.clone().utc() : this; if (m.year() < 0 || m.year() > 9999) { return formatMoment( m, utc ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ' ); } if (isFunction(Date.prototype.toISOString)) { // native implementation is ~50x faster, use it when we can if (utc) { return this.toDate().toISOString(); } else { return new Date(this.valueOf() + this.utcOffset() * 60 * 1000) .toISOString() .replace('Z', formatMoment(m, 'Z')); } } return formatMoment( m, utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ' ); } /** * Return a human readable representation of a moment that can * also be evaluated to get a new moment which is the same * * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects */ function inspect() { if (!this.isValid()) { return 'moment.invalid(/* ' + this._i + ' */)'; } var func = 'moment', zone = '', prefix, year, datetime, suffix; if (!this.isLocal()) { func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone'; zone = 'Z'; } prefix = '[' + func + '("]'; year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY'; datetime = '-MM-DD[T]HH:mm:ss.SSS'; suffix = zone + '[")]'; return this.format(prefix + year + datetime + suffix); } function format(inputString) { if (!inputString) { inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat; } var output = formatMoment(this, inputString); return this.localeData().postformat(output); } function from(time, withoutSuffix) { if ( this.isValid() && ((isMoment(time) && time.isValid()) || createLocal(time).isValid()) ) { return createDuration({ to: this, from: time }) .locale(this.locale()) .humanize(!withoutSuffix); } else { return this.localeData().invalidDate(); } } function fromNow(withoutSuffix) { return this.from(createLocal(), withoutSuffix); } function to(time, withoutSuffix) { if ( this.isValid() && ((isMoment(time) && time.isValid()) || createLocal(time).isValid()) ) { return createDuration({ from: this, to: time }) .locale(this.locale()) .humanize(!withoutSuffix); } else { return this.localeData().invalidDate(); } } function toNow(withoutSuffix) { return this.to(createLocal(), withoutSuffix); } // If passed a locale key, it will set the locale for this // instance. Otherwise, it will return the locale configuration // variables for this instance. function locale(key) { var newLocaleData; if (key === undefined) { return this._locale._abbr; } else { newLocaleData = getLocale(key); if (newLocaleData != null) { this._locale = newLocaleData; } return this; } } var lang = deprecate( 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', function (key) { if (key === undefined) { return this.localeData(); } else { return this.locale(key); } } ); function localeData() { return this._locale; } var MS_PER_SECOND = 1000, MS_PER_MINUTE = 60 * MS_PER_SECOND, MS_PER_HOUR = 60 * MS_PER_MINUTE, MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR; // actual modulo - handles negative numbers (for dates before 1970): function mod$1(dividend, divisor) { return ((dividend % divisor) + divisor) % divisor; } function localStartOfDate(y, m, d) { // the date constructor remaps years 0-99 to 1900-1999 if (y < 100 && y >= 0) { // preserve leap years using a full 400 year cycle, then reset return new Date(y + 400, m, d) - MS_PER_400_YEARS; } else { return new Date(y, m, d).valueOf(); } } function utcStartOfDate(y, m, d) { // Date.UTC remaps years 0-99 to 1900-1999 if (y < 100 && y >= 0) { // preserve leap years using a full 400 year cycle, then reset return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS; } else { return Date.UTC(y, m, d); } } function startOf(units) { var time, startOfDate; units = normalizeUnits(units); if (units === undefined || units === 'millisecond' || !this.isValid()) { return this; } startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; switch (units) { case 'year': time = startOfDate(this.year(), 0, 1); break; case 'quarter': time = startOfDate( this.year(), this.month() - (this.month() % 3), 1 ); break; case 'month': time = startOfDate(this.year(), this.month(), 1); break; case 'week': time = startOfDate( this.year(), this.month(), this.date() - this.weekday() ); break; case 'isoWeek': time = startOfDate( this.year(), this.month(), this.date() - (this.isoWeekday() - 1) ); break; case 'day': case 'date': time = startOfDate(this.year(), this.month(), this.date()); break; case 'hour': time = this._d.valueOf(); time -= mod$1( time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR ); break; case 'minute': time = this._d.valueOf(); time -= mod$1(time, MS_PER_MINUTE); break; case 'second': time = this._d.valueOf(); time -= mod$1(time, MS_PER_SECOND); break; } this._d.setTime(time); hooks.updateOffset(this, true); return this; } function endOf(units) { var time, startOfDate; units = normalizeUnits(units); if (units === undefined || units === 'millisecond' || !this.isValid()) { return this; } startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; switch (units) { case 'year': time = startOfDate(this.year() + 1, 0, 1) - 1; break; case 'quarter': time = startOfDate( this.year(), this.month() - (this.month() % 3) + 3, 1 ) - 1; break; case 'month': time = startOfDate(this.year(), this.month() + 1, 1) - 1; break; case 'week': time = startOfDate( this.year(), this.month(), this.date() - this.weekday() + 7 ) - 1; break; case 'isoWeek': time = startOfDate( this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7 ) - 1; break; case 'day': case 'date': time = startOfDate(this.year(), this.month(), this.date() + 1) - 1; break; case 'hour': time = this._d.valueOf(); time += MS_PER_HOUR - mod$1( time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR ) - 1; break; case 'minute': time = this._d.valueOf(); time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1; break; case 'second': time = this._d.valueOf(); time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1; break; } this._d.setTime(time); hooks.updateOffset(this, true); return this; } function valueOf() { return this._d.valueOf() - (this._offset || 0) * 60000; } function unix() { return Math.floor(this.valueOf() / 1000); } function toDate() { return new Date(this.valueOf()); } function toArray() { var m = this; return [ m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond(), ]; } function toObject() { var m = this; return { years: m.year(), months: m.month(), date: m.date(), hours: m.hours(), minutes: m.minutes(), seconds: m.seconds(), milliseconds: m.milliseconds(), }; } function toJSON() { // new Date(NaN).toJSON() === null return this.isValid() ? this.toISOString() : null; } function isValid$2() { return isValid(this); } function parsingFlags() { return extend({}, getParsingFlags(this)); } function invalidAt() { return getParsingFlags(this).overflow; } function creationData() { return { input: this._i, format: this._f, locale: this._locale, isUTC: this._isUTC, strict: this._strict, }; } addFormatToken('N', 0, 0, 'eraAbbr'); addFormatToken('NN', 0, 0, 'eraAbbr'); addFormatToken('NNN', 0, 0, 'eraAbbr'); addFormatToken('NNNN', 0, 0, 'eraName'); addFormatToken('NNNNN', 0, 0, 'eraNarrow'); addFormatToken('y', ['y', 1], 'yo', 'eraYear'); addFormatToken('y', ['yy', 2], 0, 'eraYear'); addFormatToken('y', ['yyy', 3], 0, 'eraYear'); addFormatToken('y', ['yyyy', 4], 0, 'eraYear'); addRegexToken('N', matchEraAbbr); addRegexToken('NN', matchEraAbbr); addRegexToken('NNN', matchEraAbbr); addRegexToken('NNNN', matchEraName); addRegexToken('NNNNN', matchEraNarrow); addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function ( input, array, config, token ) { var era = config._locale.erasParse(input, token, config._strict); if (era) { getParsingFlags(config).era = era; } else { getParsingFlags(config).invalidEra = input; } }); addRegexToken('y', matchUnsigned); addRegexToken('yy', matchUnsigned); addRegexToken('yyy', matchUnsigned); addRegexToken('yyyy', matchUnsigned); addRegexToken('yo', matchEraYearOrdinal); addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR); addParseToken(['yo'], function (input, array, config, token) { var match; if (config._locale._eraYearOrdinalRegex) { match = input.match(config._locale._eraYearOrdinalRegex); } if (config._locale.eraYearOrdinalParse) { array[YEAR] = config._locale.eraYearOrdinalParse(input, match); } else { array[YEAR] = parseInt(input, 10); } }); function localeEras(m, format) { var i, l, date, eras = this._eras || getLocale('en')._eras; for (i = 0, l = eras.length; i < l; ++i) { switch (typeof eras[i].since) { case 'string': // truncate time date = hooks(eras[i].since).startOf('day'); eras[i].since = date.valueOf(); break; } switch (typeof eras[i].until) { case 'undefined': eras[i].until = +Infinity; break; case 'string': // truncate time date = hooks(eras[i].until).startOf('day').valueOf(); eras[i].until = date.valueOf(); break; } } return eras; } function localeErasParse(eraName, format, strict) { var i, l, eras = this.eras(), name, abbr, narrow; eraName = eraName.toUpperCase(); for (i = 0, l = eras.length; i < l; ++i) { name = eras[i].name.toUpperCase(); abbr = eras[i].abbr.toUpperCase(); narrow = eras[i].narrow.toUpperCase(); if (strict) { switch (format) { case 'N': case 'NN': case 'NNN': if (abbr === eraName) { return eras[i]; } break; case 'NNNN': if (name === eraName) { return eras[i]; } break; case 'NNNNN': if (narrow === eraName) { return eras[i]; } break; } } else if ([name, abbr, narrow].indexOf(eraName) >= 0) { return eras[i]; } } } function localeErasConvertYear(era, year) { var dir = era.since <= era.until ? +1 : -1; if (year === undefined) { return hooks(era.since).year(); } else { return hooks(era.since).year() + (year - era.offset) * dir; } } function getEraName() { var i, l, val, eras = this.localeData().eras(); for (i = 0, l = eras.length; i < l; ++i) { // truncate time val = this.startOf('day').valueOf(); if (eras[i].since <= val && val <= eras[i].until) { return eras[i].name; } if (eras[i].until <= val && val <= eras[i].since) { return eras[i].name; } } return ''; } function getEraNarrow() { var i, l, val, eras = this.localeData().eras(); for (i = 0, l = eras.length; i < l; ++i) { // truncate time val = this.startOf('day').valueOf(); if (eras[i].since <= val && val <= eras[i].until) { return eras[i].narrow; } if (eras[i].until <= val && val <= eras[i].since) { return eras[i].narrow; } } return ''; } function getEraAbbr() { var i, l, val, eras = this.localeData().eras(); for (i = 0, l = eras.length; i < l; ++i) { // truncate time val = this.startOf('day').valueOf(); if (eras[i].since <= val && val <= eras[i].until) { return eras[i].abbr; } if (eras[i].until <= val && val <= eras[i].since) { return eras[i].abbr; } } return ''; } function getEraYear() { var i, l, dir, val, eras = this.localeData().eras(); for (i = 0, l = eras.length; i < l; ++i) { dir = eras[i].since <= eras[i].until ? +1 : -1; // truncate time val = this.startOf('day').valueOf(); if ( (eras[i].since <= val && val <= eras[i].until) || (eras[i].until <= val && val <= eras[i].since) ) { return ( (this.year() - hooks(eras[i].since).year()) * dir + eras[i].offset ); } } return this.year(); } function erasNameRegex(isStrict) { if (!hasOwnProp(this, '_erasNameRegex')) { computeErasParse.call(this); } return isStrict ? this._erasNameRegex : this._erasRegex; } function erasAbbrRegex(isStrict) { if (!hasOwnProp(this, '_erasAbbrRegex')) { computeErasParse.call(this); } return isStrict ? this._erasAbbrRegex : this._erasRegex; } function erasNarrowRegex(isStrict) { if (!hasOwnProp(this, '_erasNarrowRegex')) { computeErasParse.call(this); } return isStrict ? this._erasNarrowRegex : this._erasRegex; } function matchEraAbbr(isStrict, locale) { return locale.erasAbbrRegex(isStrict); } function matchEraName(isStrict, locale) { return locale.erasNameRegex(isStrict); } function matchEraNarrow(isStrict, locale) { return locale.erasNarrowRegex(isStrict); } function matchEraYearOrdinal(isStrict, locale) { return locale._eraYearOrdinalRegex || matchUnsigned; } function computeErasParse() { var abbrPieces = [], namePieces = [], narrowPieces = [], mixedPieces = [], i, l, eras = this.eras(); for (i = 0, l = eras.length; i < l; ++i) { namePieces.push(regexEscape(eras[i].name)); abbrPieces.push(regexEscape(eras[i].abbr)); narrowPieces.push(regexEscape(eras[i].narrow)); mixedPieces.push(regexEscape(eras[i].name)); mixedPieces.push(regexEscape(eras[i].abbr)); mixedPieces.push(regexEscape(eras[i].narrow)); } this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i'); this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i'); this._erasNarrowRegex = new RegExp( '^(' + narrowPieces.join('|') + ')', 'i' ); } // FORMATTING addFormatToken(0, ['gg', 2], 0, function () { return this.weekYear() % 100; }); addFormatToken(0, ['GG', 2], 0, function () { return this.isoWeekYear() % 100; }); function addWeekYearFormatToken(token, getter) { addFormatToken(0, [token, token.length], 0, getter); } addWeekYearFormatToken('gggg', 'weekYear'); addWeekYearFormatToken('ggggg', 'weekYear'); addWeekYearFormatToken('GGGG', 'isoWeekYear'); addWeekYearFormatToken('GGGGG', 'isoWeekYear'); // ALIASES addUnitAlias('weekYear', 'gg'); addUnitAlias('isoWeekYear', 'GG'); // PRIORITY addUnitPriority('weekYear', 1); addUnitPriority('isoWeekYear', 1); // PARSING addRegexToken('G', matchSigned); addRegexToken('g', matchSigned); addRegexToken('GG', match1to2, match2); addRegexToken('gg', match1to2, match2); addRegexToken('GGGG', match1to4, match4); addRegexToken('gggg', match1to4, match4); addRegexToken('GGGGG', match1to6, match6); addRegexToken('ggggg', match1to6, match6); addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function ( input, week, config, token ) { week[token.substr(0, 2)] = toInt(input); }); addWeekParseToken(['gg', 'GG'], function (input, week, config, token) { week[token] = hooks.parseTwoDigitYear(input); }); // MOMENTS function getSetWeekYear(input) { return getSetWeekYearHelper.call( this, input, this.week(), this.weekday(), this.localeData()._week.dow, this.localeData()._week.doy ); } function getSetISOWeekYear(input) { return getSetWeekYearHelper.call( this, input, this.isoWeek(), this.isoWeekday(), 1, 4 ); } function getISOWeeksInYear() { return weeksInYear(this.year(), 1, 4); } function getISOWeeksInISOWeekYear() { return weeksInYear(this.isoWeekYear(), 1, 4); } function getWeeksInYear() { var weekInfo = this.localeData()._week; return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); } function getWeeksInWeekYear() { var weekInfo = this.localeData()._week; return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy); } function getSetWeekYearHelper(input, week, weekday, dow, doy) { var weeksTarget; if (input == null) { return weekOfYear(this, dow, doy).year; } else { weeksTarget = weeksInYear(input, dow, doy); if (week > weeksTarget) { week = weeksTarget; } return setWeekAll.call(this, input, week, weekday, dow, doy); } } function setWeekAll(weekYear, week, weekday, dow, doy) { var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear); this.year(date.getUTCFullYear()); this.month(date.getUTCMonth()); this.date(date.getUTCDate()); return this; } // FORMATTING addFormatToken('Q', 0, 'Qo', 'quarter'); // ALIASES addUnitAlias('quarter', 'Q'); // PRIORITY addUnitPriority('quarter', 7); // PARSING addRegexToken('Q', match1); addParseToken('Q', function (input, array) { array[MONTH] = (toInt(input) - 1) * 3; }); // MOMENTS function getSetQuarter(input) { return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + (this.month() % 3)); } // FORMATTING addFormatToken('D', ['DD', 2], 'Do', 'date'); // ALIASES addUnitAlias('date', 'D'); // PRIORITY addUnitPriority('date', 9); // PARSING addRegexToken('D', match1to2); addRegexToken('DD', match1to2, match2); addRegexToken('Do', function (isStrict, locale) { // TODO: Remove "ordinalParse" fallback in next major release. return isStrict ? locale._dayOfMonthOrdinalParse || locale._ordinalParse : locale._dayOfMonthOrdinalParseLenient; }); addParseToken(['D', 'DD'], DATE); addParseToken('Do', function (input, array) { array[DATE] = toInt(input.match(match1to2)[0]); }); // MOMENTS var getSetDayOfMonth = makeGetSet('Date', true); // FORMATTING addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'); // ALIASES addUnitAlias('dayOfYear', 'DDD'); // PRIORITY addUnitPriority('dayOfYear', 4); // PARSING addRegexToken('DDD', match1to3); addRegexToken('DDDD', match3); addParseToken(['DDD', 'DDDD'], function (input, array, config) { config._dayOfYear = toInt(input); }); // HELPERS // MOMENTS function getSetDayOfYear(input) { var dayOfYear = Math.round( (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5 ) + 1; return input == null ? dayOfYear : this.add(input - dayOfYear, 'd'); } // FORMATTING addFormatToken('m', ['mm', 2], 0, 'minute'); // ALIASES addUnitAlias('minute', 'm'); // PRIORITY addUnitPriority('minute', 14); // PARSING addRegexToken('m', match1to2); addRegexToken('mm', match1to2, match2); addParseToken(['m', 'mm'], MINUTE); // MOMENTS var getSetMinute = makeGetSet('Minutes', false); // FORMATTING addFormatToken('s', ['ss', 2], 0, 'second'); // ALIASES addUnitAlias('second', 's'); // PRIORITY addUnitPriority('second', 15); // PARSING addRegexToken('s', match1to2); addRegexToken('ss', match1to2, match2); addParseToken(['s', 'ss'], SECOND); // MOMENTS var getSetSecond = makeGetSet('Seconds', false); // FORMATTING addFormatToken('S', 0, 0, function () { return ~~(this.millisecond() / 100); }); addFormatToken(0, ['SS', 2], 0, function () { return ~~(this.millisecond() / 10); }); addFormatToken(0, ['SSS', 3], 0, 'millisecond'); addFormatToken(0, ['SSSS', 4], 0, function () { return this.millisecond() * 10; }); addFormatToken(0, ['SSSSS', 5], 0, function () { return this.millisecond() * 100; }); addFormatToken(0, ['SSSSSS', 6], 0, function () { return this.millisecond() * 1000; }); addFormatToken(0, ['SSSSSSS', 7], 0, function () { return this.millisecond() * 10000; }); addFormatToken(0, ['SSSSSSSS', 8], 0, function () { return this.millisecond() * 100000; }); addFormatToken(0, ['SSSSSSSSS', 9], 0, function () { return this.millisecond() * 1000000; }); // ALIASES addUnitAlias('millisecond', 'ms'); // PRIORITY addUnitPriority('millisecond', 16); // PARSING addRegexToken('S', match1to3, match1); addRegexToken('SS', match1to3, match2); addRegexToken('SSS', match1to3, match3); var token, getSetMillisecond; for (token = 'SSSS'; token.length <= 9; token += 'S') { addRegexToken(token, matchUnsigned); } function parseMs(input, array) { array[MILLISECOND] = toInt(('0.' + input) * 1000); } for (token = 'S'; token.length <= 9; token += 'S') { addParseToken(token, parseMs); } getSetMillisecond = makeGetSet('Milliseconds', false); // FORMATTING addFormatToken('z', 0, 0, 'zoneAbbr'); addFormatToken('zz', 0, 0, 'zoneName'); // MOMENTS function getZoneAbbr() { return this._isUTC ? 'UTC' : ''; } function getZoneName() { return this._isUTC ? 'Coordinated Universal Time' : ''; } var proto = Moment.prototype; proto.add = add; proto.calendar = calendar$1; proto.clone = clone; proto.diff = diff; proto.endOf = endOf; proto.format = format; proto.from = from; proto.fromNow = fromNow; proto.to = to; proto.toNow = toNow; proto.get = stringGet; proto.invalidAt = invalidAt; proto.isAfter = isAfter; proto.isBefore = isBefore; proto.isBetween = isBetween; proto.isSame = isSame; proto.isSameOrAfter = isSameOrAfter; proto.isSameOrBefore = isSameOrBefore; proto.isValid = isValid$2; proto.lang = lang; proto.locale = locale; proto.localeData = localeData; proto.max = prototypeMax; proto.min = prototypeMin; proto.parsingFlags = parsingFlags; proto.set = stringSet; proto.startOf = startOf; proto.subtract = subtract; proto.toArray = toArray; proto.toObject = toObject; proto.toDate = toDate; proto.toISOString = toISOString; proto.inspect = inspect; if (typeof Symbol !== 'undefined' && Symbol.for != null) { proto[Symbol.for('nodejs.util.inspect.custom')] = function () { return 'Moment<' + this.format() + '>'; }; } proto.toJSON = toJSON; proto.toString = toString; proto.unix = unix; proto.valueOf = valueOf; proto.creationData = creationData; proto.eraName = getEraName; proto.eraNarrow = getEraNarrow; proto.eraAbbr = getEraAbbr; proto.eraYear = getEraYear; proto.year = getSetYear; proto.isLeapYear = getIsLeapYear; proto.weekYear = getSetWeekYear; proto.isoWeekYear = getSetISOWeekYear; proto.quarter = proto.quarters = getSetQuarter; proto.month = getSetMonth; proto.daysInMonth = getDaysInMonth; proto.week = proto.weeks = getSetWeek; proto.isoWeek = proto.isoWeeks = getSetISOWeek; proto.weeksInYear = getWeeksInYear; proto.weeksInWeekYear = getWeeksInWeekYear; proto.isoWeeksInYear = getISOWeeksInYear; proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear; proto.date = getSetDayOfMonth; proto.day = proto.days = getSetDayOfWeek; proto.weekday = getSetLocaleDayOfWeek; proto.isoWeekday = getSetISODayOfWeek; proto.dayOfYear = getSetDayOfYear; proto.hour = proto.hours = getSetHour; proto.minute = proto.minutes = getSetMinute; proto.second = proto.seconds = getSetSecond; proto.millisecond = proto.milliseconds = getSetMillisecond; proto.utcOffset = getSetOffset; proto.utc = setOffsetToUTC; proto.local = setOffsetToLocal; proto.parseZone = setOffsetToParsedOffset; proto.hasAlignedHourOffset = hasAlignedHourOffset; proto.isDST = isDaylightSavingTime; proto.isLocal = isLocal; proto.isUtcOffset = isUtcOffset; proto.isUtc = isUtc; proto.isUTC = isUtc; proto.zoneAbbr = getZoneAbbr; proto.zoneName = getZoneName; proto.dates = deprecate( 'dates accessor is deprecated. Use date instead.', getSetDayOfMonth ); proto.months = deprecate( 'months accessor is deprecated. Use month instead', getSetMonth ); proto.years = deprecate( 'years accessor is deprecated. Use year instead', getSetYear ); proto.zone = deprecate( 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone ); proto.isDSTShifted = deprecate( 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted ); function createUnix(input) { return createLocal(input * 1000); } function createInZone() { return createLocal.apply(null, arguments).parseZone(); } function preParsePostFormat(string) { return string; } var proto$1 = Locale.prototype; proto$1.calendar = calendar; proto$1.longDateFormat = longDateFormat; proto$1.invalidDate = invalidDate; proto$1.ordinal = ordinal; proto$1.preparse = preParsePostFormat; proto$1.postformat = preParsePostFormat; proto$1.relativeTime = relativeTime; proto$1.pastFuture = pastFuture; proto$1.set = set; proto$1.eras = localeEras; proto$1.erasParse = localeErasParse; proto$1.erasConvertYear = localeErasConvertYear; proto$1.erasAbbrRegex = erasAbbrRegex; proto$1.erasNameRegex = erasNameRegex; proto$1.erasNarrowRegex = erasNarrowRegex; proto$1.months = localeMonths; proto$1.monthsShort = localeMonthsShort; proto$1.monthsParse = localeMonthsParse; proto$1.monthsRegex = monthsRegex; proto$1.monthsShortRegex = monthsShortRegex; proto$1.week = localeWeek; proto$1.firstDayOfYear = localeFirstDayOfYear; proto$1.firstDayOfWeek = localeFirstDayOfWeek; proto$1.weekdays = localeWeekdays; proto$1.weekdaysMin = localeWeekdaysMin; proto$1.weekdaysShort = localeWeekdaysShort; proto$1.weekdaysParse = localeWeekdaysParse; proto$1.weekdaysRegex = weekdaysRegex; proto$1.weekdaysShortRegex = weekdaysShortRegex; proto$1.weekdaysMinRegex = weekdaysMinRegex; proto$1.isPM = localeIsPM; proto$1.meridiem = localeMeridiem; function get$1(format, index, field, setter) { var locale = getLocale(), utc = createUTC().set(setter, index); return locale[field](utc, format); } function listMonthsImpl(format, index, field) { if (isNumber(format)) { index = format; format = undefined; } format = format || ''; if (index != null) { return get$1(format, index, field, 'month'); } var i, out = []; for (i = 0; i < 12; i++) { out[i] = get$1(format, i, field, 'month'); } return out; } // () // (5) // (fmt, 5) // (fmt) // (true) // (true, 5) // (true, fmt, 5) // (true, fmt) function listWeekdaysImpl(localeSorted, format, index, field) { if (typeof localeSorted === 'boolean') { if (isNumber(format)) { index = format; format = undefined; } format = format || ''; } else { format = localeSorted; index = format; localeSorted = false; if (isNumber(format)) { index = format; format = undefined; } format = format || ''; } var locale = getLocale(), shift = localeSorted ? locale._week.dow : 0, i, out = []; if (index != null) { return get$1(format, (index + shift) % 7, field, 'day'); } for (i = 0; i < 7; i++) { out[i] = get$1(format, (i + shift) % 7, field, 'day'); } return out; } function listMonths(format, index) { return listMonthsImpl(format, index, 'months'); } function listMonthsShort(format, index) { return listMonthsImpl(format, index, 'monthsShort'); } function listWeekdays(localeSorted, format, index) { return listWeekdaysImpl(localeSorted, format, index, 'weekdays'); } function listWeekdaysShort(localeSorted, format, index) { return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort'); } function listWeekdaysMin(localeSorted, format, index) { return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin'); } getSetGlobalLocale('en', { eras: [ { since: '0001-01-01', until: +Infinity, offset: 1, name: 'Anno Domini', narrow: 'AD', abbr: 'AD', }, { since: '0000-12-31', until: -Infinity, offset: 1, name: 'Before Christ', narrow: 'BC', abbr: 'BC', }, ], dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, ordinal: function (number) { var b = number % 10, output = toInt((number % 100) / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th'; return number + output; }, }); // Side effect imports hooks.lang = deprecate( 'moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale ); hooks.langData = deprecate( 'moment.langData is deprecated. Use moment.localeData instead.', getLocale ); var mathAbs = Math.abs; function abs() { var data = this._data; this._milliseconds = mathAbs(this._milliseconds); this._days = mathAbs(this._days); this._months = mathAbs(this._months); data.milliseconds = mathAbs(data.milliseconds); data.seconds = mathAbs(data.seconds); data.minutes = mathAbs(data.minutes); data.hours = mathAbs(data.hours); data.months = mathAbs(data.months); data.years = mathAbs(data.years); return this; } function addSubtract$1(duration, input, value, direction) { var other = createDuration(input, value); duration._milliseconds += direction * other._milliseconds; duration._days += direction * other._days; duration._months += direction * other._months; return duration._bubble(); } // supports only 2.0-style add(1, 's') or add(duration) function add$1(input, value) { return addSubtract$1(this, input, value, 1); } // supports only 2.0-style subtract(1, 's') or subtract(duration) function subtract$1(input, value) { return addSubtract$1(this, input, value, -1); } function absCeil(number) { if (number < 0) { return Math.floor(number); } else { return Math.ceil(number); } } function bubble() { var milliseconds = this._milliseconds, days = this._days, months = this._months, data = this._data, seconds, minutes, hours, years, monthsFromDays; // if we have a mix of positive and negative values, bubble down first // check: https://github.com/moment/moment/issues/2166 if ( !( (milliseconds >= 0 && days >= 0 && months >= 0) || (milliseconds <= 0 && days <= 0 && months <= 0) ) ) { milliseconds += absCeil(monthsToDays(months) + days) * 864e5; days = 0; months = 0; } // The following code bubbles up values, see the tests for // examples of what that means. data.milliseconds = milliseconds % 1000; seconds = absFloor(milliseconds / 1000); data.seconds = seconds % 60; minutes = absFloor(seconds / 60); data.minutes = minutes % 60; hours = absFloor(minutes / 60); data.hours = hours % 24; days += absFloor(hours / 24); // convert days to months monthsFromDays = absFloor(daysToMonths(days)); months += monthsFromDays; days -= absCeil(monthsToDays(monthsFromDays)); // 12 months -> 1 year years = absFloor(months / 12); months %= 12; data.days = days; data.months = months; data.years = years; return this; } function daysToMonths(days) { // 400 years have 146097 days (taking into account leap year rules) // 400 years have 12 months === 4800 return (days * 4800) / 146097; } function monthsToDays(months) { // the reverse of daysToMonths return (months * 146097) / 4800; } function as(units) { if (!this.isValid()) { return NaN; } var days, months, milliseconds = this._milliseconds; units = normalizeUnits(units); if (units === 'month' || units === 'quarter' || units === 'year') { days = this._days + milliseconds / 864e5; months = this._months + daysToMonths(days); switch (units) { case 'month': return months; case 'quarter': return months / 3; case 'year': return months / 12; } } else { // handle milliseconds separately because of floating point math errors (issue #1867) days = this._days + Math.round(monthsToDays(this._months)); switch (units) { case 'week': return days / 7 + milliseconds / 6048e5; case 'day': return days + milliseconds / 864e5; case 'hour': return days * 24 + milliseconds / 36e5; case 'minute': return days * 1440 + milliseconds / 6e4; case 'second': return days * 86400 + milliseconds / 1000; // Math.floor prevents floating point math errors here case 'millisecond': return Math.floor(days * 864e5) + milliseconds; default: throw new Error('Unknown unit ' + units); } } } // TODO: Use this.as('ms')? function valueOf$1() { if (!this.isValid()) { return NaN; } return ( this._milliseconds + this._days * 864e5 + (this._months % 12) * 2592e6 + toInt(this._months / 12) * 31536e6 ); } function makeAs(alias) { return function () { return this.as(alias); }; } var asMilliseconds = makeAs('ms'), asSeconds = makeAs('s'), asMinutes = makeAs('m'), asHours = makeAs('h'), asDays = makeAs('d'), asWeeks = makeAs('w'), asMonths = makeAs('M'), asQuarters = makeAs('Q'), asYears = makeAs('y'); function clone$1() { return createDuration(this); } function get$2(units) { units = normalizeUnits(units); return this.isValid() ? this[units + 's']() : NaN; } function makeGetter(name) { return function () { return this.isValid() ? this._data[name] : NaN; }; } var milliseconds = makeGetter('milliseconds'), seconds = makeGetter('seconds'), minutes = makeGetter('minutes'), hours = makeGetter('hours'), days = makeGetter('days'), months = makeGetter('months'), years = makeGetter('years'); function weeks() { return absFloor(this.days() / 7); } var round = Math.round, thresholds = { ss: 44, // a few seconds to seconds s: 45, // seconds to minute m: 45, // minutes to hour h: 22, // hours to day d: 26, // days to month/week w: null, // weeks to month M: 11, // months to year }; // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) { return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture); } function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) { var duration = createDuration(posNegDuration).abs(), seconds = round(duration.as('s')), minutes = round(duration.as('m')), hours = round(duration.as('h')), days = round(duration.as('d')), months = round(duration.as('M')), weeks = round(duration.as('w')), years = round(duration.as('y')), a = (seconds <= thresholds.ss && ['s', seconds]) || (seconds < thresholds.s && ['ss', seconds]) || (minutes <= 1 && ['m']) || (minutes < thresholds.m && ['mm', minutes]) || (hours <= 1 && ['h']) || (hours < thresholds.h && ['hh', hours]) || (days <= 1 && ['d']) || (days < thresholds.d && ['dd', days]); if (thresholds.w != null) { a = a || (weeks <= 1 && ['w']) || (weeks < thresholds.w && ['ww', weeks]); } a = a || (months <= 1 && ['M']) || (months < thresholds.M && ['MM', months]) || (years <= 1 && ['y']) || ['yy', years]; a[2] = withoutSuffix; a[3] = +posNegDuration > 0; a[4] = locale; return substituteTimeAgo.apply(null, a); } // This function allows you to set the rounding function for relative time strings function getSetRelativeTimeRounding(roundingFunction) { if (roundingFunction === undefined) { return round; } if (typeof roundingFunction === 'function') { round = roundingFunction; return true; } return false; } // This function allows you to set a threshold for relative time strings function getSetRelativeTimeThreshold(threshold, limit) { if (thresholds[threshold] === undefined) { return false; } if (limit === undefined) { return thresholds[threshold]; } thresholds[threshold] = limit; if (threshold === 's') { thresholds.ss = limit - 1; } return true; } function humanize(argWithSuffix, argThresholds) { if (!this.isValid()) { return this.localeData().invalidDate(); } var withSuffix = false, th = thresholds, locale, output; if (typeof argWithSuffix === 'object') { argThresholds = argWithSuffix; argWithSuffix = false; } if (typeof argWithSuffix === 'boolean') { withSuffix = argWithSuffix; } if (typeof argThresholds === 'object') { th = Object.assign({}, thresholds, argThresholds); if (argThresholds.s != null && argThresholds.ss == null) { th.ss = argThresholds.s - 1; } } locale = this.localeData(); output = relativeTime$1(this, !withSuffix, th, locale); if (withSuffix) { output = locale.pastFuture(+this, output); } return locale.postformat(output); } var abs$1 = Math.abs; function sign(x) { return (x > 0) - (x < 0) || +x; } function toISOString$1() { // for ISO strings we do not use the normal bubbling rules: // * milliseconds bubble up until they become hours // * days do not bubble at all // * months bubble up until they become years // This is because there is no context-free conversion between hours and days // (think of clock changes) // and also not between days and months (28-31 days per month) if (!this.isValid()) { return this.localeData().invalidDate(); } var seconds = abs$1(this._milliseconds) / 1000, days = abs$1(this._days), months = abs$1(this._months), minutes, hours, years, s, total = this.asSeconds(), totalSign, ymSign, daysSign, hmsSign; if (!total) { // this is the same as C#'s (Noda) and python (isodate)... // but not other JS (goog.date) return 'P0D'; } // 3600 seconds -> 60 minutes -> 1 hour minutes = absFloor(seconds / 60); hours = absFloor(minutes / 60); seconds %= 60; minutes %= 60; // 12 months -> 1 year years = absFloor(months / 12); months %= 12; // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : ''; totalSign = total < 0 ? '-' : ''; ymSign = sign(this._months) !== sign(total) ? '-' : ''; daysSign = sign(this._days) !== sign(total) ? '-' : ''; hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : ''; return ( totalSign + 'P' + (years ? ymSign + years + 'Y' : '') + (months ? ymSign + months + 'M' : '') + (days ? daysSign + days + 'D' : '') + (hours || minutes || seconds ? 'T' : '') + (hours ? hmsSign + hours + 'H' : '') + (minutes ? hmsSign + minutes + 'M' : '') + (seconds ? hmsSign + s + 'S' : '') ); } var proto$2 = Duration.prototype; proto$2.isValid = isValid$1; proto$2.abs = abs; proto$2.add = add$1; proto$2.subtract = subtract$1; proto$2.as = as; proto$2.asMilliseconds = asMilliseconds; proto$2.asSeconds = asSeconds; proto$2.asMinutes = asMinutes; proto$2.asHours = asHours; proto$2.asDays = asDays; proto$2.asWeeks = asWeeks; proto$2.asMonths = asMonths; proto$2.asQuarters = asQuarters; proto$2.asYears = asYears; proto$2.valueOf = valueOf$1; proto$2._bubble = bubble; proto$2.clone = clone$1; proto$2.get = get$2; proto$2.milliseconds = milliseconds; proto$2.seconds = seconds; proto$2.minutes = minutes; proto$2.hours = hours; proto$2.days = days; proto$2.weeks = weeks; proto$2.months = months; proto$2.years = years; proto$2.humanize = humanize; proto$2.toISOString = toISOString$1; proto$2.toString = toISOString$1; proto$2.toJSON = toISOString$1; proto$2.locale = locale; proto$2.localeData = localeData; proto$2.toIsoString = deprecate( 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1 ); proto$2.lang = lang; // FORMATTING addFormatToken('X', 0, 0, 'unix'); addFormatToken('x', 0, 0, 'valueOf'); // PARSING addRegexToken('x', matchSigned); addRegexToken('X', matchTimestamp); addParseToken('X', function (input, array, config) { config._d = new Date(parseFloat(input) * 1000); }); addParseToken('x', function (input, array, config) { config._d = new Date(toInt(input)); }); //! moment.js hooks.version = '2.27.0'; setHookCallback(createLocal); hooks.fn = proto; hooks.min = min; hooks.max = max; hooks.now = now; hooks.utc = createUTC; hooks.unix = createUnix; hooks.months = listMonths; hooks.isDate = isDate; hooks.locale = getSetGlobalLocale; hooks.invalid = createInvalid; hooks.duration = createDuration; hooks.isMoment = isMoment; hooks.weekdays = listWeekdays; hooks.parseZone = createInZone; hooks.localeData = getLocale; hooks.isDuration = isDuration; hooks.monthsShort = listMonthsShort; hooks.weekdaysMin = listWeekdaysMin; hooks.defineLocale = defineLocale; hooks.updateLocale = updateLocale; hooks.locales = listLocales; hooks.weekdaysShort = listWeekdaysShort; hooks.normalizeUnits = normalizeUnits; hooks.relativeTimeRounding = getSetRelativeTimeRounding; hooks.relativeTimeThreshold = getSetRelativeTimeThreshold; hooks.calendarFormat = getCalendarFormat; hooks.prototype = proto; // currently HTML5 input type only supports 24-hour formats hooks.HTML5_FMT = { DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // DATE: 'YYYY-MM-DD', // TIME: 'HH:mm', // TIME_SECONDS: 'HH:mm:ss', // TIME_MS: 'HH:mm:ss.SSS', // WEEK: 'GGGG-[W]WW', // MONTH: 'YYYY-MM', // }; return hooks; }))); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(190)(module))) /***/ }), /* 10 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getPath; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getRelativePath; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return parseBookmark; }); /* unused harmony export parseActiviteNumber */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getAbsoluteMediaUrl; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return urlSequenceThumbMedia; }); /* unused harmony export urlSequenceMathThumbMedia */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return urlSequenceHeaderMedia; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return urlDisciplineHeaderMedia; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getBackofficeMediaDownloadUrl; }); /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6); /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _common_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14); /* harmony import */ var _v2_string__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } /* eslint-disable */ /** * showCoursId == coursId, i have to seperate them cause in edit i must have both of them to * keep the component can be used anywhere. * @param params * @returns {*} */ var paramToString = function paramToString(params) { if (params) { var coursId = params.coursId || params.showCoursId; return (coursId ? "/".concat(coursId) : '') + (params.resourceId ? "/".concat(params.resourceId) : ''); } return ''; }; var removeQueryString = function removeQueryString(path) { return path.replace(/(\?.*)/, ''); }; var getPath = function getPath(routeName, params) { var queryString; var fullscreen; var v2prefix = window.location.hash.includes('/v2') ? '/v2' : ''; switch (routeName) { case 'home': case 'dashboard': return '/'; case 'profile': return '/profil'; case 'discipline': return "".concat(v2prefix, "/discipline/").concat(params.disciplineId, "/").concat(params.yearsId.join(','), "/"); case 'objectif': return "".concat(v2prefix, "/discipline/").concat(params.disciplineId, "/").concat(params.yearsId.join(','), "/objectif/").concat(params.objectifId); case 'sequence': return "/sequence/".concat(params.sequenceId); case 'sequences': return "/sequences/".concat(params.sequenceId); case 'sequencesResources': return "/sequences/".concat(params.sequenceId, "/resources/").concat(params.slug); case 'ressourceSequence': queryString = [].concat(_toConsumableArray(!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(params.filters) ? ["filters=".concat(JSON.stringify(params.filters))] : []), _toConsumableArray(!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(params.extra) ? ["extra=".concat(JSON.stringify(params.extra))] : [])).join('&'); fullscreen = params.fullscreen ? '/fullscreen' : ''; return "/sequence/".concat(params.sequenceId, "/ressource/").concat(params.type).concat(fullscreen) + (queryString ? "?".concat(queryString) : ''); case 'activite': return "/sequence/".concat(params.sequenceId, "/activite/").concat(params.activiteId); case 'ressourceActivite': queryString = [].concat(_toConsumableArray(!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(params.filters) ? ["filters=".concat(JSON.stringify(params.filters))] : []), _toConsumableArray(!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(params.extra) ? ["extra=".concat(JSON.stringify(params.extra))] : [])).join('&'); fullscreen = params.fullscreen ? '/fullscreen' : ''; return "/sequence/".concat(params.sequenceId, "/activite/").concat(params.activiteId, "/ressource/").concat(params.type).concat(fullscreen) + (queryString ? "?".concat(queryString) : ''); case 'search': queryString = !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(params.hit) ? ["hit=".concat(JSON.stringify(params.hit))] : ''; return "/search?".concat(queryString); case 'help': return '/aide'; case 'sidepanel': return "".concat(removeQueryString(window.location.hash).replace('#', ''), "?sidepanel=").concat(JSON.stringify(params)); case 'closeSidepanel': return removeQueryString(window.location.hash).replace('#', ''); case 'print': return "".concat(_common_config__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].ESPER_API, "/assets/pdf-merge?printableId=").concat(params.ressourceId, "&sequenceId=").concat(params.sequenceId, "&type=").concat(params.type, "&print=1"); case 'download': return "".concat(_common_config__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].ESPER_API, "/assets/pdf-merge?printableId=").concat(params.ressourceId, "&sequenceId=").concat(params.sequenceId, "&type=").concat(params.type, "&download=1"); case 'contact': return '/contact'; case 'pilote': return '/pilote'; case 'sequence_cours_show_resource': return "sequence/".concat(params.sequenceId, "/show-cours").concat(paramToString(params)); case 'cours': return '/cours'; case 'cours_create': return '/cours/edit'; case 'cours_edit': return "/cours/edit".concat(paramToString(params)); case 'cours_delete': return '/cours/delete'; case 'cours_save': return '/cours/save'; case 'cours_add_ressource': return "/cours/edit".concat(paramToString(params), "/ressource"); case 'cours_add_ressource_image': return "/cours/edit".concat(paramToString(params), "/ressource/image"); case 'cours_add_ressource_audio': return "/cours/edit".concat(paramToString(params), "/ressource/audio"); case 'cours_add_ressource_video': return "/cours/edit".concat(paramToString(params), "/ressource/video"); case 'cours_add_ressource_text': return "/cours/edit".concat(paramToString(params), "/ressource/text"); case 'cours_add_ressource_file': return "/cours/edit".concat(paramToString(params), "/ressource/file"); case 'cours_add_ressource_link': return "/cours/edit".concat(paramToString(params), "/ressource/link"); case 'cours_add_public_ressource': return "/cours/edit".concat(paramToString(params), "/ressource-public"); case 'cours_print_display': return "/exportCDP".concat(paramToString(params), "/html"); case 'application': return "/application"; default: return '/'; } }; var getRelativePath = function getRelativePath(routeName, basePath, params) { var regex = /(.*)(\/show-cours.*)/; // Remove last '/' var path = basePath[basePath.length - 1] === '/' ? basePath.substring(0, basePath.length - 1) : basePath; switch (routeName) { case 'cours_show_full_screen': return "".concat(path, "/full-screen"); case 'cours_close': return path.replace(regex, '$1'); case 'cours_show_resource': if (path.match(regex)) { return path.replace(regex, "$1/show-cours".concat(paramToString(params))); } return "".concat(path, "/show-cours").concat(paramToString(params)); default: return '/'; } }; var parseBookmark = function parseBookmark(router) { var path = lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(router, 'location.pathname'); var parts = path ? path.match(/(?:sequences?\/(\d+))\/?(?:activite\/(\d+))?\/?(?:ressource\/(\w+))?\/?/) : undefined; return parts ? { sequenceId: parseInt(lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(parts, 1, 0), 10), activiteId: parseInt(lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(parts, 2, 0), 10), ressource: lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(parts, 3, null), filters: JSON.parse(lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(router, ['locationBeforeTransitions', 'query', 'filters'], '{}')) } : {}; }; /** * * @param svgId * this function is used to trigger the link action when click on one part of the svg. * * But this is really depend on svg. */ var parseActiviteNumber = function parseActiviteNumber(svgId) { return parseInt(lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(svgId.match(/rond(\d+)/), [1], null), 10); }; var MEDIA_BASE_URL = _common_config__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].S3_BASE_URL; if (false) {} var getAbsoluteMediaUrl = function getAbsoluteMediaUrl(url) { return _.startsWith(url, 'https://') ? url : Object(_v2_string__WEBPACK_IMPORTED_MODULE_3__[/* getStatic */ "a"])("".concat(MEDIA_BASE_URL, "/").concat(url)); }; var urlSequenceThumbMedia = function urlSequenceThumbMedia(sequenceId) { return Object(_v2_string__WEBPACK_IMPORTED_MODULE_3__[/* getStatic */ "a"])("".concat(MEDIA_BASE_URL, "/Sequence/").concat(sequenceId, "/500.header.jpg")); }; var urlSequenceMathThumbMedia = function urlSequenceMathThumbMedia(sequenceId) { return Object(_v2_string__WEBPACK_IMPORTED_MODULE_3__[/* getStatic */ "a"])("".concat(MEDIA_BASE_URL, "/Sequence/").concat(sequenceId, "/carre.header.jpg")); }; var urlSequenceHeaderMedia = function urlSequenceHeaderMedia(sequenceId) { return Object(_v2_string__WEBPACK_IMPORTED_MODULE_3__[/* getStatic */ "a"])("".concat(MEDIA_BASE_URL, "/Sequence/").concat(sequenceId, "/2000.header.jpg")); }; var urlDisciplineHeaderMedia = function urlDisciplineHeaderMedia(disciplineId, prefix) { return prefix ? Object(_v2_string__WEBPACK_IMPORTED_MODULE_3__[/* getStatic */ "a"])("".concat(MEDIA_BASE_URL, "/Discipline/").concat(disciplineId, "/").concat(prefix, ".2000.header.jpg")) : Object(_v2_string__WEBPACK_IMPORTED_MODULE_3__[/* getStatic */ "a"])("".concat(MEDIA_BASE_URL, "/Discipline/").concat(disciplineId, "/2000.header.jpg")); }; var getBackofficeMediaDownloadUrl = function getBackofficeMediaDownloadUrl(id) { return "".concat(_common_config__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].MEDIA_API_BASE_URL, "media/download/").concat(id); }; /***/ }), /* 11 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return MATH_DISCIPLINE_ID; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return SN_DISCIPLINE_ID; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FRENCH_DISCIPLINE_ID; }); var MATH_DISCIPLINE_ID = 5; var SN_DISCIPLINE_ID = 6; var FRENCH_DISCIPLINE_ID = 1; /***/ }), /* 12 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; }); function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } /***/ }), /* 13 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createGlobalStyle", function() { return createGlobalStyle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "css", function() { return css; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isStyledComponent", function() { return isStyledComponent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keyframes", function() { return keyframes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServerStyleSheet", function() { return ServerStyleSheet; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StyleSheetConsumer", function() { return StyleSheetConsumer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StyleSheetContext", function() { return StyleSheetContext; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StyleSheetManager", function() { return StyleSheetManager; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ThemeConsumer", function() { return ThemeConsumer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ThemeContext", function() { return ThemeContext; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ThemeProvider", function() { return ThemeProvider; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withTheme", function() { return withTheme; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS", function() { return __DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS; }); /* harmony import */ var stylis_stylis_min__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(511); /* harmony import */ var stylis_stylis_min__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(stylis_stylis_min__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var stylis_rule_sheet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(843); /* harmony import */ var stylis_rule_sheet__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(stylis_rule_sheet__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _emotion_unitless__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(844); /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(289); /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_is__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var memoize_one__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(368); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3); /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _emotion_is_prop_valid__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(874); /* harmony import */ var merge_anything__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(875); // var interleave = (function (strings, interpolations) { var result = [strings[0]]; for (var i = 0, len = interpolations.length; i < len; i += 1) { result.push(interpolations[i], strings[i + 1]); } return result; }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }; var createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var inherits = function (subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }; var objectWithoutProperties = function (obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }; var possibleConstructorReturn = function (self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }; // var isPlainObject = (function (x) { return (typeof x === 'undefined' ? 'undefined' : _typeof(x)) === 'object' && x.constructor === Object; }); // var EMPTY_ARRAY = Object.freeze([]); var EMPTY_OBJECT = Object.freeze({}); // function isFunction(test) { return typeof test === 'function'; } // function getComponentName(target) { return ( false) || target.displayName || target.name || 'Component'; } // function isStatelessFunction(test) { return typeof test === 'function' && !(test.prototype && test.prototype.isReactComponent); } // function isStyledComponent(target) { return target && typeof target.styledComponentId === 'string'; } // var SC_ATTR = typeof process !== 'undefined' && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || 'data-styled'; var SC_VERSION_ATTR = 'data-styled-version'; var SC_STREAM_ATTR = 'data-styled-streamed'; var IS_BROWSER = typeof window !== 'undefined' && 'HTMLElement' in window; var DISABLE_SPEEDY = typeof SC_DISABLE_SPEEDY === 'boolean' && SC_DISABLE_SPEEDY || typeof process !== 'undefined' && (process.env.REACT_APP_SC_DISABLE_SPEEDY || process.env.SC_DISABLE_SPEEDY) || "production" !== 'production'; // Shared empty execution context when generating static styles var STATIC_EXECUTION_CONTEXT = {}; // /** * Parse errors.md and turn it into a simple hash of code: message */ var ERRORS = false ? undefined : {}; /** * super basic version of sprintf */ function format() { var a = arguments.length <= 0 ? undefined : arguments[0]; var b = []; for (var c = 1, len = arguments.length; c < len; c += 1) { b.push(arguments.length <= c ? undefined : arguments[c]); } b.forEach(function (d) { a = a.replace(/%[a-z]/, d); }); return a; } /** * Create an error file out of errors.md for development and a simple web link to the full errors * in production mode. */ var StyledComponentsError = function (_Error) { inherits(StyledComponentsError, _Error); function StyledComponentsError(code) { classCallCheck(this, StyledComponentsError); for (var _len = arguments.length, interpolations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { interpolations[_key - 1] = arguments[_key]; } if (true) { var _this = possibleConstructorReturn(this, _Error.call(this, 'An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#' + code + ' for more information.' + (interpolations.length > 0 ? ' Additional arguments: ' + interpolations.join(', ') : ''))); } else { var _this; } return possibleConstructorReturn(_this); } return StyledComponentsError; }(Error); // var SC_COMPONENT_ID = /^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm; var extractComps = (function (maybeCSS) { var css = '' + (maybeCSS || ''); // Definitely a string, and a clone var existingComponents = []; css.replace(SC_COMPONENT_ID, function (match, componentId, matchIndex) { existingComponents.push({ componentId: componentId, matchIndex: matchIndex }); return match; }); return existingComponents.map(function (_ref, i) { var componentId = _ref.componentId, matchIndex = _ref.matchIndex; var nextComp = existingComponents[i + 1]; var cssFromDOM = nextComp ? css.slice(matchIndex, nextComp.matchIndex) : css.slice(matchIndex); return { componentId: componentId, cssFromDOM: cssFromDOM }; }); }); // var COMMENT_REGEX = /^\s*\/\/.*$/gm; // NOTE: This stylis instance is only used to split rules from SSR'd style tags var stylisSplitter = new stylis_stylis_min__WEBPACK_IMPORTED_MODULE_0___default.a({ global: false, cascade: true, keyframe: false, prefix: false, compress: false, semicolon: true }); var stylis = new stylis_stylis_min__WEBPACK_IMPORTED_MODULE_0___default.a({ global: false, cascade: true, keyframe: false, prefix: true, compress: false, semicolon: false // NOTE: This means "autocomplete missing semicolons" }); // Wrap `insertRulePlugin to build a list of rules, // and then make our own plugin to return the rules. This // makes it easier to hook into the existing SSR architecture var parsingRules = []; // eslint-disable-next-line consistent-return var returnRulesPlugin = function returnRulesPlugin(context) { if (context === -2) { var parsedRules = parsingRules; parsingRules = []; return parsedRules; } }; var parseRulesPlugin = stylis_rule_sheet__WEBPACK_IMPORTED_MODULE_1___default()(function (rule) { parsingRules.push(rule); }); var _componentId = void 0; var _selector = void 0; var _selectorRegexp = void 0; var selfReferenceReplacer = function selfReferenceReplacer(match, offset, string) { if ( // the first self-ref is always untouched offset > 0 && // there should be at least two self-refs to do a replacement (.b > .b) string.slice(0, offset).indexOf(_selector) !== -1 && // no consecutive self refs (.b.b); that is a precedence boost and treated differently string.slice(offset - _selector.length, offset) !== _selector) { return '.' + _componentId; } return match; }; /** * When writing a style like * * & + & { * color: red; * } * * The second ampersand should be a reference to the static component class. stylis * has no knowledge of static class so we have to intelligently replace the base selector. */ var selfReferenceReplacementPlugin = function selfReferenceReplacementPlugin(context, _, selectors) { if (context === 2 && selectors.length && selectors[0].lastIndexOf(_selector) > 0) { // eslint-disable-next-line no-param-reassign selectors[0] = selectors[0].replace(_selectorRegexp, selfReferenceReplacer); } }; stylis.use([selfReferenceReplacementPlugin, parseRulesPlugin, returnRulesPlugin]); stylisSplitter.use([parseRulesPlugin, returnRulesPlugin]); var splitByRules = function splitByRules(css) { return stylisSplitter('', css); }; function stringifyRules(rules, selector, prefix) { var componentId = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '&'; var flatCSS = rules.join('').replace(COMMENT_REGEX, ''); // replace JS comments var cssStr = selector && prefix ? prefix + ' ' + selector + ' { ' + flatCSS + ' }' : flatCSS; // stylis has no concept of state to be passed to plugins // but since JS is single=threaded, we can rely on that to ensure // these properties stay in sync with the current stylis run _componentId = componentId; _selector = selector; _selectorRegexp = new RegExp('\\' + _selector + '\\b', 'g'); return stylis(prefix || !selector ? '' : selector, cssStr); } // /* eslint-disable camelcase, no-undef */ var getNonce = (function () { return true ? __webpack_require__.nc : undefined; }); // /* These are helpers for the StyleTags to keep track of the injected * rule names for each (component) ID that they're keeping track of. * They're crucial for detecting whether a name has already been * injected. * (This excludes rehydrated names) */ /* adds a new ID:name pairing to a names dictionary */ var addNameForId = function addNameForId(names, id, name) { if (name) { // eslint-disable-next-line no-param-reassign var namesForId = names[id] || (names[id] = Object.create(null)); namesForId[name] = true; } }; /* resets an ID entirely by overwriting it in the dictionary */ var resetIdNames = function resetIdNames(names, id) { // eslint-disable-next-line no-param-reassign names[id] = Object.create(null); }; /* factory for a names dictionary checking the existance of an ID:name pairing */ var hasNameForId = function hasNameForId(names) { return function (id, name) { return names[id] !== undefined && names[id][name]; }; }; /* stringifies names for the html/element output */ var stringifyNames = function stringifyNames(names) { var str = ''; // eslint-disable-next-line guard-for-in for (var id in names) { str += Object.keys(names[id]).join(' ') + ' '; } return str.trim(); }; /* clones the nested names dictionary */ var cloneNames = function cloneNames(names) { var clone = Object.create(null); // eslint-disable-next-line guard-for-in for (var id in names) { clone[id] = _extends({}, names[id]); } return clone; }; // /* These are helpers that deal with the insertRule (aka speedy) API * They are used in the StyleTags and specifically the speedy tag */ /* retrieve a sheet for a given style tag */ var sheetForTag = function sheetForTag(tag) { // $FlowFixMe if (tag.sheet) return tag.sheet; /* Firefox quirk requires us to step through all stylesheets to find one owned by the given tag */ var size = tag.ownerDocument.styleSheets.length; for (var i = 0; i < size; i += 1) { var sheet = tag.ownerDocument.styleSheets[i]; // $FlowFixMe if (sheet.ownerNode === tag) return sheet; } /* we should always be able to find a tag */ throw new StyledComponentsError(10); }; /* insert a rule safely and return whether it was actually injected */ var safeInsertRule = function safeInsertRule(sheet, cssRule, index) { /* abort early if cssRule string is falsy */ if (!cssRule) return false; var maxIndex = sheet.cssRules.length; try { /* use insertRule and cap passed index with maxIndex (no of cssRules) */ sheet.insertRule(cssRule, index <= maxIndex ? index : maxIndex); } catch (err) { /* any error indicates an invalid rule */ return false; } return true; }; /* deletes `size` rules starting from `removalIndex` */ var deleteRules = function deleteRules(sheet, removalIndex, size) { var lowerBound = removalIndex - size; for (var i = removalIndex; i > lowerBound; i -= 1) { sheet.deleteRule(i); } }; // /* this marker separates component styles and is important for rehydration */ var makeTextMarker = function makeTextMarker(id) { return '\n/* sc-component-id: ' + id + ' */\n'; }; /* add up all numbers in array up until and including the index */ var addUpUntilIndex = function addUpUntilIndex(sizes, index) { var totalUpToIndex = 0; for (var i = 0; i <= index; i += 1) { totalUpToIndex += sizes[i]; } return totalUpToIndex; }; /* create a new style tag after lastEl */ var makeStyleTag = function makeStyleTag(target, tagEl, insertBefore) { var targetDocument = document; if (target) targetDocument = target.ownerDocument;else if (tagEl) targetDocument = tagEl.ownerDocument; var el = targetDocument.createElement('style'); el.setAttribute(SC_ATTR, ''); el.setAttribute(SC_VERSION_ATTR, "4.4.1"); var nonce = getNonce(); if (nonce) { el.setAttribute('nonce', nonce); } /* Work around insertRule quirk in EdgeHTML */ el.appendChild(targetDocument.createTextNode('')); if (target && !tagEl) { /* Append to target when no previous element was passed */ target.appendChild(el); } else { if (!tagEl || !target || !tagEl.parentNode) { throw new StyledComponentsError(6); } /* Insert new style tag after the previous one */ tagEl.parentNode.insertBefore(el, insertBefore ? tagEl : tagEl.nextSibling); } return el; }; /* takes a css factory function and outputs an html styled tag factory */ var wrapAsHtmlTag = function wrapAsHtmlTag(css, names) { return function (additionalAttrs) { var nonce = getNonce(); var attrs = [nonce && 'nonce="' + nonce + '"', SC_ATTR + '="' + stringifyNames(names) + '"', SC_VERSION_ATTR + '="' + "4.4.1" + '"', additionalAttrs]; var htmlAttr = attrs.filter(Boolean).join(' '); return ''; }; }; /* takes a css factory function and outputs an element factory */ var wrapAsElement = function wrapAsElement(css, names) { return function () { var _props; var props = (_props = {}, _props[SC_ATTR] = stringifyNames(names), _props[SC_VERSION_ATTR] = "4.4.1", _props); var nonce = getNonce(); if (nonce) { // $FlowFixMe props.nonce = nonce; } // eslint-disable-next-line react/no-danger return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement('style', _extends({}, props, { dangerouslySetInnerHTML: { __html: css() } })); }; }; var getIdsFromMarkersFactory = function getIdsFromMarkersFactory(markers) { return function () { return Object.keys(markers); }; }; /* speedy tags utilise insertRule */ var makeSpeedyTag = function makeSpeedyTag(el, getImportRuleTag) { var names = Object.create(null); var markers = Object.create(null); var sizes = []; var extractImport = getImportRuleTag !== undefined; /* indicates whether getImportRuleTag was called */ var usedImportRuleTag = false; var insertMarker = function insertMarker(id) { var prev = markers[id]; if (prev !== undefined) { return prev; } markers[id] = sizes.length; sizes.push(0); resetIdNames(names, id); return markers[id]; }; var insertRules = function insertRules(id, cssRules, name) { var marker = insertMarker(id); var sheet = sheetForTag(el); var insertIndex = addUpUntilIndex(sizes, marker); var injectedRules = 0; var importRules = []; var cssRulesSize = cssRules.length; for (var i = 0; i < cssRulesSize; i += 1) { var cssRule = cssRules[i]; var mayHaveImport = extractImport; /* @import rules are reordered to appear first */ if (mayHaveImport && cssRule.indexOf('@import') !== -1) { importRules.push(cssRule); } else if (safeInsertRule(sheet, cssRule, insertIndex + injectedRules)) { mayHaveImport = false; injectedRules += 1; } } if (extractImport && importRules.length > 0) { usedImportRuleTag = true; // $FlowFixMe getImportRuleTag().insertRules(id + '-import', importRules); } sizes[marker] += injectedRules; /* add up no of injected rules */ addNameForId(names, id, name); }; var removeRules = function removeRules(id) { var marker = markers[id]; if (marker === undefined) return; // $FlowFixMe if (el.isConnected === false) return; var size = sizes[marker]; var sheet = sheetForTag(el); var removalIndex = addUpUntilIndex(sizes, marker) - 1; deleteRules(sheet, removalIndex, size); sizes[marker] = 0; resetIdNames(names, id); if (extractImport && usedImportRuleTag) { // $FlowFixMe getImportRuleTag().removeRules(id + '-import'); } }; var css = function css() { var _sheetForTag = sheetForTag(el), cssRules = _sheetForTag.cssRules; var str = ''; // eslint-disable-next-line guard-for-in for (var id in markers) { str += makeTextMarker(id); var marker = markers[id]; var end = addUpUntilIndex(sizes, marker); var size = sizes[marker]; for (var i = end - size; i < end; i += 1) { var rule = cssRules[i]; if (rule !== undefined) { str += rule.cssText; } } } return str; }; return { clone: function clone() { throw new StyledComponentsError(5); }, css: css, getIds: getIdsFromMarkersFactory(markers), hasNameForId: hasNameForId(names), insertMarker: insertMarker, insertRules: insertRules, removeRules: removeRules, sealed: false, styleTag: el, toElement: wrapAsElement(css, names), toHTML: wrapAsHtmlTag(css, names) }; }; var makeTextNode = function makeTextNode(targetDocument, id) { return targetDocument.createTextNode(makeTextMarker(id)); }; var makeBrowserTag = function makeBrowserTag(el, getImportRuleTag) { var names = Object.create(null); var markers = Object.create(null); var extractImport = getImportRuleTag !== undefined; /* indicates whether getImportRuleTag was called */ var usedImportRuleTag = false; var insertMarker = function insertMarker(id) { var prev = markers[id]; if (prev !== undefined) { return prev; } markers[id] = makeTextNode(el.ownerDocument, id); el.appendChild(markers[id]); names[id] = Object.create(null); return markers[id]; }; var insertRules = function insertRules(id, cssRules, name) { var marker = insertMarker(id); var importRules = []; var cssRulesSize = cssRules.length; for (var i = 0; i < cssRulesSize; i += 1) { var rule = cssRules[i]; var mayHaveImport = extractImport; if (mayHaveImport && rule.indexOf('@import') !== -1) { importRules.push(rule); } else { mayHaveImport = false; var separator = i === cssRulesSize - 1 ? '' : ' '; marker.appendData('' + rule + separator); } } addNameForId(names, id, name); if (extractImport && importRules.length > 0) { usedImportRuleTag = true; // $FlowFixMe getImportRuleTag().insertRules(id + '-import', importRules); } }; var removeRules = function removeRules(id) { var marker = markers[id]; if (marker === undefined) return; /* create new empty text node and replace the current one */ var newMarker = makeTextNode(el.ownerDocument, id); el.replaceChild(newMarker, marker); markers[id] = newMarker; resetIdNames(names, id); if (extractImport && usedImportRuleTag) { // $FlowFixMe getImportRuleTag().removeRules(id + '-import'); } }; var css = function css() { var str = ''; // eslint-disable-next-line guard-for-in for (var id in markers) { str += markers[id].data; } return str; }; return { clone: function clone() { throw new StyledComponentsError(5); }, css: css, getIds: getIdsFromMarkersFactory(markers), hasNameForId: hasNameForId(names), insertMarker: insertMarker, insertRules: insertRules, removeRules: removeRules, sealed: false, styleTag: el, toElement: wrapAsElement(css, names), toHTML: wrapAsHtmlTag(css, names) }; }; var makeServerTag = function makeServerTag(namesArg, markersArg) { var names = namesArg === undefined ? Object.create(null) : namesArg; var markers = markersArg === undefined ? Object.create(null) : markersArg; var insertMarker = function insertMarker(id) { var prev = markers[id]; if (prev !== undefined) { return prev; } return markers[id] = ['']; }; var insertRules = function insertRules(id, cssRules, name) { var marker = insertMarker(id); marker[0] += cssRules.join(' '); addNameForId(names, id, name); }; var removeRules = function removeRules(id) { var marker = markers[id]; if (marker === undefined) return; marker[0] = ''; resetIdNames(names, id); }; var css = function css() { var str = ''; // eslint-disable-next-line guard-for-in for (var id in markers) { var cssForId = markers[id][0]; if (cssForId) { str += makeTextMarker(id) + cssForId; } } return str; }; var clone = function clone() { var namesClone = cloneNames(names); var markersClone = Object.create(null); // eslint-disable-next-line guard-for-in for (var id in markers) { markersClone[id] = [markers[id][0]]; } return makeServerTag(namesClone, markersClone); }; var tag = { clone: clone, css: css, getIds: getIdsFromMarkersFactory(markers), hasNameForId: hasNameForId(names), insertMarker: insertMarker, insertRules: insertRules, removeRules: removeRules, sealed: false, styleTag: null, toElement: wrapAsElement(css, names), toHTML: wrapAsHtmlTag(css, names) }; return tag; }; var makeTag = function makeTag(target, tagEl, forceServer, insertBefore, getImportRuleTag) { if (IS_BROWSER && !forceServer) { var el = makeStyleTag(target, tagEl, insertBefore); if (DISABLE_SPEEDY) { return makeBrowserTag(el, getImportRuleTag); } else { return makeSpeedyTag(el, getImportRuleTag); } } return makeServerTag(); }; var rehydrate = function rehydrate(tag, els, extracted) { /* add all extracted components to the new tag */ for (var i = 0, len = extracted.length; i < len; i += 1) { var _extracted$i = extracted[i], componentId = _extracted$i.componentId, cssFromDOM = _extracted$i.cssFromDOM; var cssRules = splitByRules(cssFromDOM); tag.insertRules(componentId, cssRules); } /* remove old HTMLStyleElements, since they have been rehydrated */ for (var _i = 0, _len = els.length; _i < _len; _i += 1) { var el = els[_i]; if (el.parentNode) { el.parentNode.removeChild(el); } } }; // var SPLIT_REGEX = /\s+/; /* determine the maximum number of components before tags are sharded */ var MAX_SIZE = void 0; if (IS_BROWSER) { /* in speedy mode we can keep a lot more rules in a sheet before a slowdown can be expected */ MAX_SIZE = DISABLE_SPEEDY ? 40 : 1000; } else { /* for servers we do not need to shard at all */ MAX_SIZE = -1; } var sheetRunningId = 0; var master = void 0; var StyleSheet = function () { /* a map from ids to tags */ /* deferred rules for a given id */ /* this is used for not reinjecting rules via hasNameForId() */ /* when rules for an id are removed using remove() we have to ignore rehydratedNames for it */ /* a list of tags belonging to this StyleSheet */ /* a tag for import rules */ /* current capacity until a new tag must be created */ /* children (aka clones) of this StyleSheet inheriting all and future injections */ function StyleSheet() { var _this = this; var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : IS_BROWSER ? document.head : null; var forceServer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; classCallCheck(this, StyleSheet); this.getImportRuleTag = function () { var importRuleTag = _this.importRuleTag; if (importRuleTag !== undefined) { return importRuleTag; } var firstTag = _this.tags[0]; var insertBefore = true; return _this.importRuleTag = makeTag(_this.target, firstTag ? firstTag.styleTag : null, _this.forceServer, insertBefore); }; sheetRunningId += 1; this.id = sheetRunningId; this.forceServer = forceServer; this.target = forceServer ? null : target; this.tagMap = {}; this.deferred = {}; this.rehydratedNames = {}; this.ignoreRehydratedNames = {}; this.tags = []; this.capacity = 1; this.clones = []; } /* rehydrate all SSR'd style tags */ StyleSheet.prototype.rehydrate = function rehydrate$$1() { if (!IS_BROWSER || this.forceServer) return this; var els = []; var extracted = []; var isStreamed = false; /* retrieve all of our SSR style elements from the DOM */ var nodes = document.querySelectorAll('style[' + SC_ATTR + '][' + SC_VERSION_ATTR + '="' + "4.4.1" + '"]'); var nodesSize = nodes.length; /* abort rehydration if no previous style tags were found */ if (!nodesSize) return this; for (var i = 0; i < nodesSize; i += 1) { var el = nodes[i]; /* check if style tag is a streamed tag */ if (!isStreamed) isStreamed = !!el.getAttribute(SC_STREAM_ATTR); /* retrieve all component names */ var elNames = (el.getAttribute(SC_ATTR) || '').trim().split(SPLIT_REGEX); var elNamesSize = elNames.length; for (var j = 0, name; j < elNamesSize; j += 1) { name = elNames[j]; /* add rehydrated name to sheet to avoid re-adding styles */ this.rehydratedNames[name] = true; } /* extract all components and their CSS */ extracted.push.apply(extracted, extractComps(el.textContent)); /* store original HTMLStyleElement */ els.push(el); } /* abort rehydration if nothing was extracted */ var extractedSize = extracted.length; if (!extractedSize) return this; /* create a tag to be used for rehydration */ var tag = this.makeTag(null); rehydrate(tag, els, extracted); /* reset capacity and adjust MAX_SIZE by the initial size of the rehydration */ this.capacity = Math.max(1, MAX_SIZE - extractedSize); this.tags.push(tag); /* retrieve all component ids */ for (var _j = 0; _j < extractedSize; _j += 1) { this.tagMap[extracted[_j].componentId] = tag; } return this; }; /* retrieve a "master" instance of StyleSheet which is typically used when no other is available * The master StyleSheet is targeted by createGlobalStyle, keyframes, and components outside of any * StyleSheetManager's context */ /* reset the internal "master" instance */ StyleSheet.reset = function reset() { var forceServer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; master = new StyleSheet(undefined, forceServer).rehydrate(); }; /* adds "children" to the StyleSheet that inherit all of the parents' rules * while their own rules do not affect the parent */ StyleSheet.prototype.clone = function clone() { var sheet = new StyleSheet(this.target, this.forceServer); /* add to clone array */ this.clones.push(sheet); /* clone all tags */ sheet.tags = this.tags.map(function (tag) { var ids = tag.getIds(); var newTag = tag.clone(); /* reconstruct tagMap */ for (var i = 0; i < ids.length; i += 1) { sheet.tagMap[ids[i]] = newTag; } return newTag; }); /* clone other maps */ sheet.rehydratedNames = _extends({}, this.rehydratedNames); sheet.deferred = _extends({}, this.deferred); return sheet; }; /* force StyleSheet to create a new tag on the next injection */ StyleSheet.prototype.sealAllTags = function sealAllTags() { this.capacity = 1; this.tags.forEach(function (tag) { // eslint-disable-next-line no-param-reassign tag.sealed = true; }); }; StyleSheet.prototype.makeTag = function makeTag$$1(tag) { var lastEl = tag ? tag.styleTag : null; var insertBefore = false; return makeTag(this.target, lastEl, this.forceServer, insertBefore, this.getImportRuleTag); }; /* get a tag for a given componentId, assign the componentId to one, or shard */ StyleSheet.prototype.getTagForId = function getTagForId(id) { /* simply return a tag, when the componentId was already assigned one */ var prev = this.tagMap[id]; if (prev !== undefined && !prev.sealed) { return prev; } var tag = this.tags[this.tags.length - 1]; /* shard (create a new tag) if the tag is exhausted (See MAX_SIZE) */ this.capacity -= 1; if (this.capacity === 0) { this.capacity = MAX_SIZE; tag = this.makeTag(tag); this.tags.push(tag); } return this.tagMap[id] = tag; }; /* mainly for createGlobalStyle to check for its id */ StyleSheet.prototype.hasId = function hasId(id) { return this.tagMap[id] !== undefined; }; /* caching layer checking id+name to already have a corresponding tag and injected rules */ StyleSheet.prototype.hasNameForId = function hasNameForId(id, name) { /* exception for rehydrated names which are checked separately */ if (this.ignoreRehydratedNames[id] === undefined && this.rehydratedNames[name]) { return true; } var tag = this.tagMap[id]; return tag !== undefined && tag.hasNameForId(id, name); }; /* registers a componentId and registers it on its tag */ StyleSheet.prototype.deferredInject = function deferredInject(id, cssRules) { /* don't inject when the id is already registered */ if (this.tagMap[id] !== undefined) return; var clones = this.clones; for (var i = 0; i < clones.length; i += 1) { clones[i].deferredInject(id, cssRules); } this.getTagForId(id).insertMarker(id); this.deferred[id] = cssRules; }; /* injects rules for a given id with a name that will need to be cached */ StyleSheet.prototype.inject = function inject(id, cssRules, name) { var clones = this.clones; for (var i = 0; i < clones.length; i += 1) { clones[i].inject(id, cssRules, name); } var tag = this.getTagForId(id); /* add deferred rules for component */ if (this.deferred[id] !== undefined) { // Combine passed cssRules with previously deferred CSS rules // NOTE: We cannot mutate the deferred array itself as all clones // do the same (see clones[i].inject) var rules = this.deferred[id].concat(cssRules); tag.insertRules(id, rules, name); this.deferred[id] = undefined; } else { tag.insertRules(id, cssRules, name); } }; /* removes all rules for a given id, which doesn't remove its marker but resets it */ StyleSheet.prototype.remove = function remove(id) { var tag = this.tagMap[id]; if (tag === undefined) return; var clones = this.clones; for (var i = 0; i < clones.length; i += 1) { clones[i].remove(id); } /* remove all rules from the tag */ tag.removeRules(id); /* ignore possible rehydrated names */ this.ignoreRehydratedNames[id] = true; /* delete possible deferred rules */ this.deferred[id] = undefined; }; StyleSheet.prototype.toHTML = function toHTML() { return this.tags.map(function (tag) { return tag.toHTML(); }).join(''); }; StyleSheet.prototype.toReactElements = function toReactElements() { var id = this.id; return this.tags.map(function (tag, i) { var key = 'sc-' + id + '-' + i; return Object(react__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(tag.toElement(), { key: key }); }); }; createClass(StyleSheet, null, [{ key: 'master', get: function get$$1() { return master || (master = new StyleSheet().rehydrate()); } /* NOTE: This is just for backwards-compatibility with jest-styled-components */ }, { key: 'instance', get: function get$$1() { return StyleSheet.master; } }]); return StyleSheet; }(); // var Keyframes = function () { function Keyframes(name, rules) { var _this = this; classCallCheck(this, Keyframes); this.inject = function (styleSheet) { if (!styleSheet.hasNameForId(_this.id, _this.name)) { styleSheet.inject(_this.id, _this.rules, _this.name); } }; this.toString = function () { throw new StyledComponentsError(12, String(_this.name)); }; this.name = name; this.rules = rules; this.id = 'sc-keyframes-' + name; } Keyframes.prototype.getName = function getName() { return this.name; }; return Keyframes; }(); // /** * inlined version of * https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/core/hyphenateStyleName.js */ var uppercasePattern = /([A-Z])/g; var msPattern = /^ms-/; /** * Hyphenates a camelcased CSS property name, for example: * * > hyphenateStyleName('backgroundColor') * < "background-color" * > hyphenateStyleName('MozTransition') * < "-moz-transition" * > hyphenateStyleName('msTransition') * < "-ms-transition" * * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix * is converted to `-ms-`. * * @param {string} string * @return {string} */ function hyphenateStyleName(string) { return string.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-'); } // // Taken from https://github.com/facebook/react/blob/b87aabdfe1b7461e7331abb3601d9e6bb27544bc/packages/react-dom/src/shared/dangerousStyleValue.js function addUnitIfNeeded(name, value) { // https://github.com/amilajack/eslint-plugin-flowtype-errors/issues/133 // $FlowFixMe if (value == null || typeof value === 'boolean' || value === '') { return ''; } if (typeof value === 'number' && value !== 0 && !(name in _emotion_unitless__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])) { return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers } return String(value).trim(); } // /** * It's falsish not falsy because 0 is allowed. */ var isFalsish = function isFalsish(chunk) { return chunk === undefined || chunk === null || chunk === false || chunk === ''; }; var objToCssArray = function objToCssArray(obj, prevKey) { var rules = []; var keys = Object.keys(obj); keys.forEach(function (key) { if (!isFalsish(obj[key])) { if (isPlainObject(obj[key])) { rules.push.apply(rules, objToCssArray(obj[key], key)); return rules; } else if (isFunction(obj[key])) { rules.push(hyphenateStyleName(key) + ':', obj[key], ';'); return rules; } rules.push(hyphenateStyleName(key) + ': ' + addUnitIfNeeded(key, obj[key]) + ';'); } return rules; }); return prevKey ? [prevKey + ' {'].concat(rules, ['}']) : rules; }; function flatten(chunk, executionContext, styleSheet) { if (Array.isArray(chunk)) { var ruleSet = []; for (var i = 0, len = chunk.length, result; i < len; i += 1) { result = flatten(chunk[i], executionContext, styleSheet); if (result === null) continue;else if (Array.isArray(result)) ruleSet.push.apply(ruleSet, result);else ruleSet.push(result); } return ruleSet; } if (isFalsish(chunk)) { return null; } /* Handle other components */ if (isStyledComponent(chunk)) { return '.' + chunk.styledComponentId; } /* Either execute or defer the function */ if (isFunction(chunk)) { if (isStatelessFunction(chunk) && executionContext) { var _result = chunk(executionContext); if (false) {} return flatten(_result, executionContext, styleSheet); } else return chunk; } if (chunk instanceof Keyframes) { if (styleSheet) { chunk.inject(styleSheet); return chunk.getName(); } else return chunk; } /* Handle objects */ return isPlainObject(chunk) ? objToCssArray(chunk) : chunk.toString(); } // function css(styles) { for (var _len = arguments.length, interpolations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { interpolations[_key - 1] = arguments[_key]; } if (isFunction(styles) || isPlainObject(styles)) { // $FlowFixMe return flatten(interleave(EMPTY_ARRAY, [styles].concat(interpolations))); } // $FlowFixMe return flatten(interleave(styles, interpolations)); } // function constructWithOptions(componentConstructor, tag) { var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : EMPTY_OBJECT; if (!Object(react_is__WEBPACK_IMPORTED_MODULE_4__["isValidElementType"])(tag)) { throw new StyledComponentsError(1, String(tag)); } /* This is callable directly as a template function */ // $FlowFixMe: Not typed to avoid destructuring arguments var templateFunction = function templateFunction() { return componentConstructor(tag, options, css.apply(undefined, arguments)); }; /* If config methods are called, wrap up a new template function and merge options */ templateFunction.withConfig = function (config) { return constructWithOptions(componentConstructor, tag, _extends({}, options, config)); }; /* Modify/inject new props at runtime */ templateFunction.attrs = function (attrs) { return constructWithOptions(componentConstructor, tag, _extends({}, options, { attrs: Array.prototype.concat(options.attrs, attrs).filter(Boolean) })); }; return templateFunction; } // // Source: https://github.com/garycourt/murmurhash-js/blob/master/murmurhash2_gc.js function murmurhash(c) { for (var e = c.length | 0, a = e | 0, d = 0, b; e >= 4;) { b = c.charCodeAt(d) & 255 | (c.charCodeAt(++d) & 255) << 8 | (c.charCodeAt(++d) & 255) << 16 | (c.charCodeAt(++d) & 255) << 24, b = 1540483477 * (b & 65535) + ((1540483477 * (b >>> 16) & 65535) << 16), b ^= b >>> 24, b = 1540483477 * (b & 65535) + ((1540483477 * (b >>> 16) & 65535) << 16), a = 1540483477 * (a & 65535) + ((1540483477 * (a >>> 16) & 65535) << 16) ^ b, e -= 4, ++d; } switch (e) { case 3: a ^= (c.charCodeAt(d + 2) & 255) << 16; case 2: a ^= (c.charCodeAt(d + 1) & 255) << 8; case 1: a ^= c.charCodeAt(d) & 255, a = 1540483477 * (a & 65535) + ((1540483477 * (a >>> 16) & 65535) << 16); } a ^= a >>> 13; a = 1540483477 * (a & 65535) + ((1540483477 * (a >>> 16) & 65535) << 16); return (a ^ a >>> 15) >>> 0; } // /* eslint-disable no-bitwise */ /* This is the "capacity" of our alphabet i.e. 2x26 for all letters plus their capitalised * counterparts */ var charsLength = 52; /* start at 75 for 'a' until 'z' (25) and then start at 65 for capitalised letters */ var getAlphabeticChar = function getAlphabeticChar(code) { return String.fromCharCode(code + (code > 25 ? 39 : 97)); }; /* input a number, usually a hash and convert it to base-52 */ function generateAlphabeticName(code) { var name = ''; var x = void 0; /* get a char and divide by alphabet-length */ for (x = code; x > charsLength; x = Math.floor(x / charsLength)) { name = getAlphabeticChar(x % charsLength) + name; } return getAlphabeticChar(x % charsLength) + name; } // function hasFunctionObjectKey(obj) { // eslint-disable-next-line guard-for-in, no-restricted-syntax for (var key in obj) { if (isFunction(obj[key])) { return true; } } return false; } function isStaticRules(rules, attrs) { for (var i = 0; i < rules.length; i += 1) { var rule = rules[i]; // recursive case if (Array.isArray(rule) && !isStaticRules(rule, attrs)) { return false; } else if (isFunction(rule) && !isStyledComponent(rule)) { // functions are allowed to be static if they're just being // used to get the classname of a nested styled component return false; } } if (attrs.some(function (x) { return isFunction(x) || hasFunctionObjectKey(x); })) return false; return true; } // /* combines hashStr (murmurhash) and nameGenerator for convenience */ var hasher = function hasher(str) { return generateAlphabeticName(murmurhash(str)); }; /* ComponentStyle is all the CSS-specific stuff, not the React-specific stuff. */ var ComponentStyle = function () { function ComponentStyle(rules, attrs, componentId) { classCallCheck(this, ComponentStyle); this.rules = rules; this.isStatic = true && isStaticRules(rules, attrs); this.componentId = componentId; if (!StyleSheet.master.hasId(componentId)) { StyleSheet.master.deferredInject(componentId, []); } } /* * Flattens a rule set into valid CSS * Hashes it, wraps the whole chunk in a .hash1234 {} * Returns the hash to be injected on render() * */ ComponentStyle.prototype.generateAndInjectStyles = function generateAndInjectStyles(executionContext, styleSheet) { var isStatic = this.isStatic, componentId = this.componentId, lastClassName = this.lastClassName; if (IS_BROWSER && isStatic && typeof lastClassName === 'string' && styleSheet.hasNameForId(componentId, lastClassName)) { return lastClassName; } var flatCSS = flatten(this.rules, executionContext, styleSheet); var name = hasher(this.componentId + flatCSS.join('')); if (!styleSheet.hasNameForId(componentId, name)) { styleSheet.inject(this.componentId, stringifyRules(flatCSS, '.' + name, undefined, componentId), name); } this.lastClassName = name; return name; }; ComponentStyle.generateName = function generateName(str) { return hasher(str); }; return ComponentStyle; }(); // var LIMIT = 200; var createWarnTooManyClasses = (function (displayName) { var generatedClasses = {}; var warningSeen = false; return function (className) { if (!warningSeen) { generatedClasses[className] = true; if (Object.keys(generatedClasses).length >= LIMIT) { // Unable to find latestRule in test environment. /* eslint-disable no-console, prefer-template */ console.warn('Over ' + LIMIT + ' classes were generated for component ' + displayName + '. \n' + 'Consider using the attrs method, together with a style object for frequently changed styles.\n' + 'Example:\n' + ' const Component = styled.div.attrs(props => ({\n' + ' style: {\n' + ' background: props.background,\n' + ' },\n' + ' }))`width: 100%;`\n\n' + ' '); warningSeen = true; generatedClasses = {}; } } }; }); // var determineTheme = (function (props, fallbackTheme) { var defaultProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : EMPTY_OBJECT; // Props should take precedence over ThemeProvider, which should take precedence over // defaultProps, but React automatically puts defaultProps on props. /* eslint-disable react/prop-types, flowtype-errors/show-errors */ var isDefaultTheme = defaultProps ? props.theme === defaultProps.theme : false; var theme = props.theme && !isDefaultTheme ? props.theme : fallbackTheme || defaultProps.theme; /* eslint-enable */ return theme; }); // var escapeRegex = /[[\].#*$><+~=|^:(),"'`-]+/g; var dashesAtEnds = /(^-|-$)/g; /** * TODO: Explore using CSS.escape when it becomes more available * in evergreen browsers. */ function escape(str) { return str // Replace all possible CSS selectors .replace(escapeRegex, '-') // Remove extraneous hyphens at the start and end .replace(dashesAtEnds, ''); } // function isTag(target) { return typeof target === 'string' && ( false ? undefined : true); } // function generateDisplayName(target) { // $FlowFixMe return isTag(target) ? 'styled.' + target : 'Styled(' + getComponentName(target) + ')'; } var _TYPE_STATICS; var REACT_STATICS = { childContextTypes: true, contextTypes: true, defaultProps: true, displayName: true, getDerivedStateFromProps: true, propTypes: true, type: true }; var KNOWN_STATICS = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true }; var TYPE_STATICS = (_TYPE_STATICS = {}, _TYPE_STATICS[react_is__WEBPACK_IMPORTED_MODULE_4__["ForwardRef"]] = { $$typeof: true, render: true }, _TYPE_STATICS); var defineProperty$1 = Object.defineProperty, getOwnPropertyNames = Object.getOwnPropertyNames, _Object$getOwnPropert = Object.getOwnPropertySymbols, getOwnPropertySymbols = _Object$getOwnPropert === undefined ? function () { return []; } : _Object$getOwnPropert, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getPrototypeOf = Object.getPrototypeOf, objectPrototype = Object.prototype; var arrayPrototype = Array.prototype; function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components var inheritedComponent = getPrototypeOf(sourceComponent); if (inheritedComponent && inheritedComponent !== objectPrototype) { hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); } var keys = arrayPrototype.concat(getOwnPropertyNames(sourceComponent), // $FlowFixMe getOwnPropertySymbols(sourceComponent)); var targetStatics = TYPE_STATICS[targetComponent.$$typeof] || REACT_STATICS; var sourceStatics = TYPE_STATICS[sourceComponent.$$typeof] || REACT_STATICS; var i = keys.length; var descriptor = void 0; var key = void 0; // eslint-disable-next-line no-plusplus while (i--) { key = keys[i]; if ( // $FlowFixMe !KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && // $FlowFixMe !(targetStatics && targetStatics[key])) { descriptor = getOwnPropertyDescriptor(sourceComponent, key); if (descriptor) { try { // Avoid failures from read-only properties defineProperty$1(targetComponent, key, descriptor); } catch (e) { /* fail silently */ } } } } return targetComponent; } return targetComponent; } // function isDerivedReactComponent(fn) { return !!(fn && fn.prototype && fn.prototype.isReactComponent); } // // Helper to call a given function, only once var once = (function (cb) { var called = false; return function () { if (!called) { called = true; cb.apply(undefined, arguments); } }; }); // var ThemeContext = Object(react__WEBPACK_IMPORTED_MODULE_2__["createContext"])(); var ThemeConsumer = ThemeContext.Consumer; /** * Provide a theme to an entire react component tree via context */ var ThemeProvider = function (_Component) { inherits(ThemeProvider, _Component); function ThemeProvider(props) { classCallCheck(this, ThemeProvider); var _this = possibleConstructorReturn(this, _Component.call(this, props)); _this.getContext = Object(memoize_one__WEBPACK_IMPORTED_MODULE_5__["default"])(_this.getContext.bind(_this)); _this.renderInner = _this.renderInner.bind(_this); return _this; } ThemeProvider.prototype.render = function render() { if (!this.props.children) return null; return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement( ThemeContext.Consumer, null, this.renderInner ); }; ThemeProvider.prototype.renderInner = function renderInner(outerTheme) { var context = this.getContext(this.props.theme, outerTheme); return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement( ThemeContext.Provider, { value: context }, this.props.children ); }; /** * Get the theme from the props, supporting both (outerTheme) => {} * as well as object notation */ ThemeProvider.prototype.getTheme = function getTheme(theme, outerTheme) { if (isFunction(theme)) { var mergedTheme = theme(outerTheme); if (false) {} return mergedTheme; } if (theme === null || Array.isArray(theme) || (typeof theme === 'undefined' ? 'undefined' : _typeof(theme)) !== 'object') { throw new StyledComponentsError(8); } return _extends({}, outerTheme, theme); }; ThemeProvider.prototype.getContext = function getContext(theme, outerTheme) { return this.getTheme(theme, outerTheme); }; return ThemeProvider; }(react__WEBPACK_IMPORTED_MODULE_2__["Component"]); // var CLOSING_TAG_R = /^\s*<\/[a-z]/i; var ServerStyleSheet = function () { function ServerStyleSheet() { classCallCheck(this, ServerStyleSheet); /* The master sheet might be reset, so keep a reference here */ this.masterSheet = StyleSheet.master; this.instance = this.masterSheet.clone(); this.sealed = false; } /** * Mark the ServerStyleSheet as being fully emitted and manually GC it from the * StyleSheet singleton. */ ServerStyleSheet.prototype.seal = function seal() { if (!this.sealed) { /* Remove sealed StyleSheets from the master sheet */ var index = this.masterSheet.clones.indexOf(this.instance); this.masterSheet.clones.splice(index, 1); this.sealed = true; } }; ServerStyleSheet.prototype.collectStyles = function collectStyles(children) { if (this.sealed) { throw new StyledComponentsError(2); } return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement( StyleSheetManager, { sheet: this.instance }, children ); }; ServerStyleSheet.prototype.getStyleTags = function getStyleTags() { this.seal(); return this.instance.toHTML(); }; ServerStyleSheet.prototype.getStyleElement = function getStyleElement() { this.seal(); return this.instance.toReactElements(); }; ServerStyleSheet.prototype.interleaveWithNodeStream = function interleaveWithNodeStream(readableStream) { var _this = this; { throw new StyledComponentsError(3); } /* the tag index keeps track of which tags have already been emitted */ var instance = this.instance; var instanceTagIndex = 0; var streamAttr = SC_STREAM_ATTR + '="true"'; var transformer = new stream.Transform({ transform: function appendStyleChunks(chunk, /* encoding */_, callback) { var tags = instance.tags; var html = ''; /* retrieve html for each new style tag */ for (; instanceTagIndex < tags.length; instanceTagIndex += 1) { var tag = tags[instanceTagIndex]; html += tag.toHTML(streamAttr); } /* force our StyleSheets to emit entirely new tags */ instance.sealAllTags(); var renderedHtml = chunk.toString(); /* prepend style html to chunk, unless the start of the chunk is a closing tag in which case append right after that */ if (CLOSING_TAG_R.test(renderedHtml)) { var endOfClosingTag = renderedHtml.indexOf('>'); this.push(renderedHtml.slice(0, endOfClosingTag + 1) + html + renderedHtml.slice(endOfClosingTag + 1)); } else this.push(html + renderedHtml); callback(); } }); readableStream.on('end', function () { return _this.seal(); }); readableStream.on('error', function (err) { _this.seal(); // forward the error to the transform stream transformer.emit('error', err); }); return readableStream.pipe(transformer); }; return ServerStyleSheet; }(); // var StyleSheetContext = Object(react__WEBPACK_IMPORTED_MODULE_2__["createContext"])(); var StyleSheetConsumer = StyleSheetContext.Consumer; var StyleSheetManager = function (_Component) { inherits(StyleSheetManager, _Component); function StyleSheetManager(props) { classCallCheck(this, StyleSheetManager); var _this = possibleConstructorReturn(this, _Component.call(this, props)); _this.getContext = Object(memoize_one__WEBPACK_IMPORTED_MODULE_5__["default"])(_this.getContext); return _this; } StyleSheetManager.prototype.getContext = function getContext(sheet, target) { if (sheet) { return sheet; } else if (target) { return new StyleSheet(target); } else { throw new StyledComponentsError(4); } }; StyleSheetManager.prototype.render = function render() { var _props = this.props, children = _props.children, sheet = _props.sheet, target = _props.target; return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement( StyleSheetContext.Provider, { value: this.getContext(sheet, target) }, false ? undefined : children ); }; return StyleSheetManager; }(react__WEBPACK_IMPORTED_MODULE_2__["Component"]); false ? undefined : void 0; // var identifiers = {}; /* We depend on components having unique IDs */ function generateId(_ComponentStyle, _displayName, parentComponentId) { var displayName = typeof _displayName !== 'string' ? 'sc' : escape(_displayName); /** * This ensures uniqueness if two components happen to share * the same displayName. */ var nr = (identifiers[displayName] || 0) + 1; identifiers[displayName] = nr; var componentId = displayName + '-' + _ComponentStyle.generateName(displayName + nr); return parentComponentId ? parentComponentId + '-' + componentId : componentId; } // $FlowFixMe var StyledComponent = function (_Component) { inherits(StyledComponent, _Component); function StyledComponent() { classCallCheck(this, StyledComponent); var _this = possibleConstructorReturn(this, _Component.call(this)); _this.attrs = {}; _this.renderOuter = _this.renderOuter.bind(_this); _this.renderInner = _this.renderInner.bind(_this); if (false) {} return _this; } StyledComponent.prototype.render = function render() { return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement( StyleSheetConsumer, null, this.renderOuter ); }; StyledComponent.prototype.renderOuter = function renderOuter() { var styleSheet = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : StyleSheet.master; this.styleSheet = styleSheet; // No need to subscribe a static component to theme changes, it won't change anything if (this.props.forwardedComponent.componentStyle.isStatic) return this.renderInner(); return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement( ThemeConsumer, null, this.renderInner ); }; StyledComponent.prototype.renderInner = function renderInner(theme) { var _props$forwardedCompo = this.props.forwardedComponent, componentStyle = _props$forwardedCompo.componentStyle, defaultProps = _props$forwardedCompo.defaultProps, displayName = _props$forwardedCompo.displayName, foldedComponentIds = _props$forwardedCompo.foldedComponentIds, styledComponentId = _props$forwardedCompo.styledComponentId, target = _props$forwardedCompo.target; var generatedClassName = void 0; if (componentStyle.isStatic) { generatedClassName = this.generateAndInjectStyles(EMPTY_OBJECT, this.props); } else { generatedClassName = this.generateAndInjectStyles(determineTheme(this.props, theme, defaultProps) || EMPTY_OBJECT, this.props); } var elementToBeCreated = this.props.as || this.attrs.as || target; var isTargetTag = isTag(elementToBeCreated); var propsForElement = {}; var computedProps = _extends({}, this.props, this.attrs); var key = void 0; // eslint-disable-next-line guard-for-in for (key in computedProps) { if (false) {} if (key === 'forwardedComponent' || key === 'as') { continue; } else if (key === 'forwardedRef') propsForElement.ref = computedProps[key];else if (key === 'forwardedAs') propsForElement.as = computedProps[key];else if (!isTargetTag || Object(_emotion_is_prop_valid__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(key)) { // Don't pass through non HTML tags through to HTML elements propsForElement[key] = computedProps[key]; } } if (this.props.style && this.attrs.style) { propsForElement.style = _extends({}, this.attrs.style, this.props.style); } propsForElement.className = Array.prototype.concat(foldedComponentIds, styledComponentId, generatedClassName !== styledComponentId ? generatedClassName : null, this.props.className, this.attrs.className).filter(Boolean).join(' '); return Object(react__WEBPACK_IMPORTED_MODULE_2__["createElement"])(elementToBeCreated, propsForElement); }; StyledComponent.prototype.buildExecutionContext = function buildExecutionContext(theme, props, attrs) { var _this2 = this; var context = _extends({}, props, { theme: theme }); if (!attrs.length) return context; this.attrs = {}; attrs.forEach(function (attrDef) { var resolvedAttrDef = attrDef; var attrDefWasFn = false; var attr = void 0; var key = void 0; if (isFunction(resolvedAttrDef)) { // $FlowFixMe resolvedAttrDef = resolvedAttrDef(context); attrDefWasFn = true; } /* eslint-disable guard-for-in */ // $FlowFixMe for (key in resolvedAttrDef) { attr = resolvedAttrDef[key]; if (!attrDefWasFn) { if (isFunction(attr) && !isDerivedReactComponent(attr) && !isStyledComponent(attr)) { if (false) {} attr = attr(context); if (false) {} } } _this2.attrs[key] = attr; context[key] = attr; } /* eslint-enable */ }); return context; }; StyledComponent.prototype.generateAndInjectStyles = function generateAndInjectStyles(theme, props) { var _props$forwardedCompo2 = props.forwardedComponent, attrs = _props$forwardedCompo2.attrs, componentStyle = _props$forwardedCompo2.componentStyle, warnTooManyClasses = _props$forwardedCompo2.warnTooManyClasses; // statically styled-components don't need to build an execution context object, // and shouldn't be increasing the number of class names if (componentStyle.isStatic && !attrs.length) { return componentStyle.generateAndInjectStyles(EMPTY_OBJECT, this.styleSheet); } var className = componentStyle.generateAndInjectStyles(this.buildExecutionContext(theme, props, attrs), this.styleSheet); if (false) {} return className; }; return StyledComponent; }(react__WEBPACK_IMPORTED_MODULE_2__["Component"]); function createStyledComponent(target, options, rules) { var isTargetStyledComp = isStyledComponent(target); var isClass = !isTag(target); var _options$displayName = options.displayName, displayName = _options$displayName === undefined ? generateDisplayName(target) : _options$displayName, _options$componentId = options.componentId, componentId = _options$componentId === undefined ? generateId(ComponentStyle, options.displayName, options.parentComponentId) : _options$componentId, _options$ParentCompon = options.ParentComponent, ParentComponent = _options$ParentCompon === undefined ? StyledComponent : _options$ParentCompon, _options$attrs = options.attrs, attrs = _options$attrs === undefined ? EMPTY_ARRAY : _options$attrs; var styledComponentId = options.displayName && options.componentId ? escape(options.displayName) + '-' + options.componentId : options.componentId || componentId; // fold the underlying StyledComponent attrs up (implicit extend) var finalAttrs = // $FlowFixMe isTargetStyledComp && target.attrs ? Array.prototype.concat(target.attrs, attrs).filter(Boolean) : attrs; var componentStyle = new ComponentStyle(isTargetStyledComp ? // fold the underlying StyledComponent rules up (implicit extend) // $FlowFixMe target.componentStyle.rules.concat(rules) : rules, finalAttrs, styledComponentId); /** * forwardRef creates a new interim component, which we'll take advantage of * instead of extending ParentComponent to create _another_ interim class */ var WrappedStyledComponent = void 0; var forwardRef = function forwardRef(props, ref) { return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(ParentComponent, _extends({}, props, { forwardedComponent: WrappedStyledComponent, forwardedRef: ref })); }; forwardRef.displayName = displayName; WrappedStyledComponent = react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef(forwardRef); WrappedStyledComponent.displayName = displayName; // $FlowFixMe WrappedStyledComponent.attrs = finalAttrs; // $FlowFixMe WrappedStyledComponent.componentStyle = componentStyle; // $FlowFixMe WrappedStyledComponent.foldedComponentIds = isTargetStyledComp ? // $FlowFixMe Array.prototype.concat(target.foldedComponentIds, target.styledComponentId) : EMPTY_ARRAY; // $FlowFixMe WrappedStyledComponent.styledComponentId = styledComponentId; // fold the underlying StyledComponent target up since we folded the styles // $FlowFixMe WrappedStyledComponent.target = isTargetStyledComp ? target.target : target; // $FlowFixMe WrappedStyledComponent.withComponent = function withComponent(tag) { var previousComponentId = options.componentId, optionsToCopy = objectWithoutProperties(options, ['componentId']); var newComponentId = previousComponentId && previousComponentId + '-' + (isTag(tag) ? tag : escape(getComponentName(tag))); var newOptions = _extends({}, optionsToCopy, { attrs: finalAttrs, componentId: newComponentId, ParentComponent: ParentComponent }); return createStyledComponent(tag, newOptions, rules); }; // $FlowFixMe Object.defineProperty(WrappedStyledComponent, 'defaultProps', { get: function get$$1() { return this._foldedDefaultProps; }, set: function set$$1(obj) { // $FlowFixMe this._foldedDefaultProps = isTargetStyledComp ? Object(merge_anything__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])(target.defaultProps, obj) : obj; } }); if (false) {} // $FlowFixMe WrappedStyledComponent.toString = function () { return '.' + WrappedStyledComponent.styledComponentId; }; if (isClass) { hoistNonReactStatics(WrappedStyledComponent, target, { // all SC-specific things should not be hoisted attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, styledComponentId: true, target: true, withComponent: true }); } return WrappedStyledComponent; } // // Thanks to ReactDOMFactories for this handy list! var domElements = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr', // SVG 'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'marker', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan']; // var styled = function styled(tag) { return constructWithOptions(createStyledComponent, tag); }; // Shorthands for all valid HTML Elements domElements.forEach(function (domElement) { styled[domElement] = styled(domElement); }); // var GlobalStyle = function () { function GlobalStyle(rules, componentId) { classCallCheck(this, GlobalStyle); this.rules = rules; this.componentId = componentId; this.isStatic = isStaticRules(rules, EMPTY_ARRAY); if (!StyleSheet.master.hasId(componentId)) { StyleSheet.master.deferredInject(componentId, []); } } GlobalStyle.prototype.createStyles = function createStyles(executionContext, styleSheet) { var flatCSS = flatten(this.rules, executionContext, styleSheet); var css = stringifyRules(flatCSS, ''); styleSheet.inject(this.componentId, css); }; GlobalStyle.prototype.removeStyles = function removeStyles(styleSheet) { var componentId = this.componentId; if (styleSheet.hasId(componentId)) { styleSheet.remove(componentId); } }; // TODO: overwrite in-place instead of remove+create? GlobalStyle.prototype.renderStyles = function renderStyles(executionContext, styleSheet) { this.removeStyles(styleSheet); this.createStyles(executionContext, styleSheet); }; return GlobalStyle; }(); // // place our cache into shared context so it'll persist between HMRs if (IS_BROWSER) { window.scCGSHMRCache = {}; } function createGlobalStyle(strings) { for (var _len = arguments.length, interpolations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { interpolations[_key - 1] = arguments[_key]; } var rules = css.apply(undefined, [strings].concat(interpolations)); var id = 'sc-global-' + murmurhash(JSON.stringify(rules)); var style = new GlobalStyle(rules, id); var GlobalStyleComponent = function (_React$Component) { inherits(GlobalStyleComponent, _React$Component); function GlobalStyleComponent(props) { classCallCheck(this, GlobalStyleComponent); var _this = possibleConstructorReturn(this, _React$Component.call(this, props)); var _this$constructor = _this.constructor, globalStyle = _this$constructor.globalStyle, styledComponentId = _this$constructor.styledComponentId; if (IS_BROWSER) { window.scCGSHMRCache[styledComponentId] = (window.scCGSHMRCache[styledComponentId] || 0) + 1; } /** * This fixes HMR compatibility. Don't ask me why, but this combination of * caching the closure variables via statics and then persisting the statics in * state works across HMR where no other combination did. ¯\_(ツ)_/¯ */ _this.state = { globalStyle: globalStyle, styledComponentId: styledComponentId }; return _this; } GlobalStyleComponent.prototype.componentWillUnmount = function componentWillUnmount() { if (window.scCGSHMRCache[this.state.styledComponentId]) { window.scCGSHMRCache[this.state.styledComponentId] -= 1; } /** * Depending on the order "render" is called this can cause the styles to be lost * until the next render pass of the remaining instance, which may * not be immediate. */ if (window.scCGSHMRCache[this.state.styledComponentId] === 0) { this.state.globalStyle.removeStyles(this.styleSheet); } }; GlobalStyleComponent.prototype.render = function render() { var _this2 = this; if (false) {} return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement( StyleSheetConsumer, null, function (styleSheet) { _this2.styleSheet = styleSheet || StyleSheet.master; var globalStyle = _this2.state.globalStyle; if (globalStyle.isStatic) { globalStyle.renderStyles(STATIC_EXECUTION_CONTEXT, _this2.styleSheet); return null; } else { return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement( ThemeConsumer, null, function (theme) { // $FlowFixMe var defaultProps = _this2.constructor.defaultProps; var context = _extends({}, _this2.props); if (typeof theme !== 'undefined') { context.theme = determineTheme(_this2.props, theme, defaultProps); } globalStyle.renderStyles(context, _this2.styleSheet); return null; } ); } } ); }; return GlobalStyleComponent; }(react__WEBPACK_IMPORTED_MODULE_2___default.a.Component); GlobalStyleComponent.globalStyle = style; GlobalStyleComponent.styledComponentId = id; return GlobalStyleComponent; } // var replaceWhitespace = function replaceWhitespace(str) { return str.replace(/\s|\\n/g, ''); }; function keyframes(strings) { /* Warning if you've used keyframes on React Native */ if (false) {} for (var _len = arguments.length, interpolations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { interpolations[_key - 1] = arguments[_key]; } var rules = css.apply(undefined, [strings].concat(interpolations)); var name = generateAlphabeticName(murmurhash(replaceWhitespace(JSON.stringify(rules)))); return new Keyframes(name, stringifyRules(rules, name, '@keyframes')); } // var withTheme = (function (Component$$1) { var WithTheme = react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef(function (props, ref) { return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement( ThemeConsumer, null, function (theme) { // $FlowFixMe var defaultProps = Component$$1.defaultProps; var themeProp = determineTheme(props, theme, defaultProps); if (false) {} return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(Component$$1, _extends({}, props, { theme: themeProp, ref: ref })); } ); }); hoistNonReactStatics(WithTheme, Component$$1); WithTheme.displayName = 'WithTheme(' + getComponentName(Component$$1) + ')'; return WithTheme; }); // /* eslint-disable */ var __DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS = { StyleSheet: StyleSheet }; // /* Warning if you've imported this file on React Native */ if (false) {} /* Warning if there are several instances of styled-components */ if (false) {} // /* harmony default export */ __webpack_exports__["default"] = (styled); //# sourceMappingURL=styled-components.browser.esm.js.map /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(126))) /***/ }), /* 14 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // Load environment dependent configuration var config = __webpack_require__(1286); /* harmony default export */ __webpack_exports__["a"] = (config); /***/ }), /* 15 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, "actionTypes", function() { return /* binding */ actionTypes; }); __webpack_require__.d(__webpack_exports__, "arrayInsert", function() { return /* binding */ es_arrayInsert; }); __webpack_require__.d(__webpack_exports__, "arrayMove", function() { return /* binding */ es_arrayMove; }); __webpack_require__.d(__webpack_exports__, "arrayPop", function() { return /* binding */ es_arrayPop; }); __webpack_require__.d(__webpack_exports__, "arrayPush", function() { return /* binding */ es_arrayPush; }); __webpack_require__.d(__webpack_exports__, "arrayRemove", function() { return /* binding */ es_arrayRemove; }); __webpack_require__.d(__webpack_exports__, "arrayRemoveAll", function() { return /* binding */ es_arrayRemoveAll; }); __webpack_require__.d(__webpack_exports__, "arrayShift", function() { return /* binding */ es_arrayShift; }); __webpack_require__.d(__webpack_exports__, "arraySplice", function() { return /* binding */ es_arraySplice; }); __webpack_require__.d(__webpack_exports__, "arraySwap", function() { return /* binding */ es_arraySwap; }); __webpack_require__.d(__webpack_exports__, "arrayUnshift", function() { return /* binding */ es_arrayUnshift; }); __webpack_require__.d(__webpack_exports__, "autofill", function() { return /* binding */ es_autofill; }); __webpack_require__.d(__webpack_exports__, "blur", function() { return /* binding */ es_blur; }); __webpack_require__.d(__webpack_exports__, "change", function() { return /* binding */ es_change; }); __webpack_require__.d(__webpack_exports__, "clearSubmitErrors", function() { return /* binding */ es_clearSubmitErrors; }); __webpack_require__.d(__webpack_exports__, "destroy", function() { return /* binding */ es_destroy; }); __webpack_require__.d(__webpack_exports__, "Field", function() { return /* binding */ redux_form_es_Field; }); __webpack_require__.d(__webpack_exports__, "Fields", function() { return /* binding */ redux_form_es_Fields; }); __webpack_require__.d(__webpack_exports__, "FieldArray", function() { return /* binding */ redux_form_es_FieldArray; }); __webpack_require__.d(__webpack_exports__, "Form", function() { return /* binding */ redux_form_es_Form; }); __webpack_require__.d(__webpack_exports__, "FormSection", function() { return /* binding */ redux_form_es_FormSection; }); __webpack_require__.d(__webpack_exports__, "focus", function() { return /* binding */ es_focus; }); __webpack_require__.d(__webpack_exports__, "formValueSelector", function() { return /* binding */ es_formValueSelector; }); __webpack_require__.d(__webpack_exports__, "getFormNames", function() { return /* binding */ es_getFormNames; }); __webpack_require__.d(__webpack_exports__, "getFormValues", function() { return /* binding */ es_getFormValues; }); __webpack_require__.d(__webpack_exports__, "getFormInitialValues", function() { return /* binding */ es_getFormInitialValues; }); __webpack_require__.d(__webpack_exports__, "getFormSyncErrors", function() { return /* binding */ es_getFormSyncErrors; }); __webpack_require__.d(__webpack_exports__, "getFormAsyncErrors", function() { return /* binding */ es_getFormAsyncErrors; }); __webpack_require__.d(__webpack_exports__, "getFormSyncWarnings", function() { return /* binding */ es_getFormSyncWarnings; }); __webpack_require__.d(__webpack_exports__, "getFormSubmitErrors", function() { return /* binding */ es_getFormSubmitErrors; }); __webpack_require__.d(__webpack_exports__, "initialize", function() { return /* binding */ es_initialize; }); __webpack_require__.d(__webpack_exports__, "isDirty", function() { return /* binding */ es_isDirty; }); __webpack_require__.d(__webpack_exports__, "isInvalid", function() { return /* binding */ es_isInvalid; }); __webpack_require__.d(__webpack_exports__, "isPristine", function() { return /* binding */ es_isPristine; }); __webpack_require__.d(__webpack_exports__, "isValid", function() { return /* binding */ es_isValid; }); __webpack_require__.d(__webpack_exports__, "isSubmitting", function() { return /* binding */ es_isSubmitting; }); __webpack_require__.d(__webpack_exports__, "hasSubmitSucceeded", function() { return /* binding */ es_hasSubmitSucceeded; }); __webpack_require__.d(__webpack_exports__, "hasSubmitFailed", function() { return /* binding */ es_hasSubmitFailed; }); __webpack_require__.d(__webpack_exports__, "propTypes", function() { return /* binding */ redux_form_es_propTypes; }); __webpack_require__.d(__webpack_exports__, "reducer", function() { return /* binding */ redux_form_es_reducer; }); __webpack_require__.d(__webpack_exports__, "reduxForm", function() { return /* binding */ es_reduxForm; }); __webpack_require__.d(__webpack_exports__, "registerField", function() { return /* binding */ es_registerField; }); __webpack_require__.d(__webpack_exports__, "reset", function() { return /* binding */ es_reset; }); __webpack_require__.d(__webpack_exports__, "setSubmitFailed", function() { return /* binding */ es_setSubmitFailed; }); __webpack_require__.d(__webpack_exports__, "setSubmitSucceeded", function() { return /* binding */ es_setSubmitSucceeded; }); __webpack_require__.d(__webpack_exports__, "startAsyncValidation", function() { return /* binding */ es_startAsyncValidation; }); __webpack_require__.d(__webpack_exports__, "startSubmit", function() { return /* binding */ es_startSubmit; }); __webpack_require__.d(__webpack_exports__, "stopAsyncValidation", function() { return /* binding */ es_stopAsyncValidation; }); __webpack_require__.d(__webpack_exports__, "stopSubmit", function() { return /* binding */ es_stopSubmit; }); __webpack_require__.d(__webpack_exports__, "submit", function() { return /* binding */ es_submit; }); __webpack_require__.d(__webpack_exports__, "SubmissionError", function() { return /* binding */ redux_form_es_SubmissionError; }); __webpack_require__.d(__webpack_exports__, "touch", function() { return /* binding */ es_touch; }); __webpack_require__.d(__webpack_exports__, "unregisterField", function() { return /* binding */ es_unregisterField; }); __webpack_require__.d(__webpack_exports__, "untouch", function() { return /* binding */ es_untouch; }); __webpack_require__.d(__webpack_exports__, "values", function() { return /* binding */ redux_form_es_values; }); // NAMESPACE OBJECT: ./node_modules/redux-form/es/actionTypes.js var actionTypes_namespaceObject = {}; __webpack_require__.r(actionTypes_namespaceObject); __webpack_require__.d(actionTypes_namespaceObject, "prefix", function() { return prefix; }); __webpack_require__.d(actionTypes_namespaceObject, "ARRAY_INSERT", function() { return ARRAY_INSERT; }); __webpack_require__.d(actionTypes_namespaceObject, "ARRAY_MOVE", function() { return ARRAY_MOVE; }); __webpack_require__.d(actionTypes_namespaceObject, "ARRAY_POP", function() { return ARRAY_POP; }); __webpack_require__.d(actionTypes_namespaceObject, "ARRAY_PUSH", function() { return ARRAY_PUSH; }); __webpack_require__.d(actionTypes_namespaceObject, "ARRAY_REMOVE", function() { return ARRAY_REMOVE; }); __webpack_require__.d(actionTypes_namespaceObject, "ARRAY_REMOVE_ALL", function() { return ARRAY_REMOVE_ALL; }); __webpack_require__.d(actionTypes_namespaceObject, "ARRAY_SHIFT", function() { return ARRAY_SHIFT; }); __webpack_require__.d(actionTypes_namespaceObject, "ARRAY_SPLICE", function() { return ARRAY_SPLICE; }); __webpack_require__.d(actionTypes_namespaceObject, "ARRAY_UNSHIFT", function() { return ARRAY_UNSHIFT; }); __webpack_require__.d(actionTypes_namespaceObject, "ARRAY_SWAP", function() { return ARRAY_SWAP; }); __webpack_require__.d(actionTypes_namespaceObject, "AUTOFILL", function() { return AUTOFILL; }); __webpack_require__.d(actionTypes_namespaceObject, "BLUR", function() { return BLUR; }); __webpack_require__.d(actionTypes_namespaceObject, "CHANGE", function() { return CHANGE; }); __webpack_require__.d(actionTypes_namespaceObject, "CLEAR_SUBMIT", function() { return CLEAR_SUBMIT; }); __webpack_require__.d(actionTypes_namespaceObject, "CLEAR_SUBMIT_ERRORS", function() { return CLEAR_SUBMIT_ERRORS; }); __webpack_require__.d(actionTypes_namespaceObject, "CLEAR_ASYNC_ERROR", function() { return CLEAR_ASYNC_ERROR; }); __webpack_require__.d(actionTypes_namespaceObject, "DESTROY", function() { return DESTROY; }); __webpack_require__.d(actionTypes_namespaceObject, "FOCUS", function() { return FOCUS; }); __webpack_require__.d(actionTypes_namespaceObject, "INITIALIZE", function() { return INITIALIZE; }); __webpack_require__.d(actionTypes_namespaceObject, "REGISTER_FIELD", function() { return REGISTER_FIELD; }); __webpack_require__.d(actionTypes_namespaceObject, "RESET", function() { return RESET; }); __webpack_require__.d(actionTypes_namespaceObject, "SET_SUBMIT_FAILED", function() { return SET_SUBMIT_FAILED; }); __webpack_require__.d(actionTypes_namespaceObject, "SET_SUBMIT_SUCCEEDED", function() { return SET_SUBMIT_SUCCEEDED; }); __webpack_require__.d(actionTypes_namespaceObject, "START_ASYNC_VALIDATION", function() { return START_ASYNC_VALIDATION; }); __webpack_require__.d(actionTypes_namespaceObject, "START_SUBMIT", function() { return START_SUBMIT; }); __webpack_require__.d(actionTypes_namespaceObject, "STOP_ASYNC_VALIDATION", function() { return STOP_ASYNC_VALIDATION; }); __webpack_require__.d(actionTypes_namespaceObject, "STOP_SUBMIT", function() { return STOP_SUBMIT; }); __webpack_require__.d(actionTypes_namespaceObject, "SUBMIT", function() { return SUBMIT; }); __webpack_require__.d(actionTypes_namespaceObject, "TOUCH", function() { return TOUCH; }); __webpack_require__.d(actionTypes_namespaceObject, "UNREGISTER_FIELD", function() { return UNREGISTER_FIELD; }); __webpack_require__.d(actionTypes_namespaceObject, "UNTOUCH", function() { return UNTOUCH; }); __webpack_require__.d(actionTypes_namespaceObject, "UPDATE_SYNC_ERRORS", function() { return UPDATE_SYNC_ERRORS; }); __webpack_require__.d(actionTypes_namespaceObject, "UPDATE_SYNC_WARNINGS", function() { return UPDATE_SYNC_WARNINGS; }); // NAMESPACE OBJECT: ./node_modules/redux-form/es/actions.js var actions_namespaceObject = {}; __webpack_require__.r(actions_namespaceObject); __webpack_require__.d(actions_namespaceObject, "arrayInsert", function() { return actions_arrayInsert; }); __webpack_require__.d(actions_namespaceObject, "arrayMove", function() { return actions_arrayMove; }); __webpack_require__.d(actions_namespaceObject, "arrayPop", function() { return actions_arrayPop; }); __webpack_require__.d(actions_namespaceObject, "arrayPush", function() { return actions_arrayPush; }); __webpack_require__.d(actions_namespaceObject, "arrayRemove", function() { return actions_arrayRemove; }); __webpack_require__.d(actions_namespaceObject, "arrayRemoveAll", function() { return actions_arrayRemoveAll; }); __webpack_require__.d(actions_namespaceObject, "arrayShift", function() { return actions_arrayShift; }); __webpack_require__.d(actions_namespaceObject, "arraySplice", function() { return actions_arraySplice; }); __webpack_require__.d(actions_namespaceObject, "arraySwap", function() { return actions_arraySwap; }); __webpack_require__.d(actions_namespaceObject, "arrayUnshift", function() { return actions_arrayUnshift; }); __webpack_require__.d(actions_namespaceObject, "autofill", function() { return actions_autofill; }); __webpack_require__.d(actions_namespaceObject, "blur", function() { return actions_blur; }); __webpack_require__.d(actions_namespaceObject, "change", function() { return actions_change; }); __webpack_require__.d(actions_namespaceObject, "clearSubmit", function() { return actions_clearSubmit; }); __webpack_require__.d(actions_namespaceObject, "clearSubmitErrors", function() { return actions_clearSubmitErrors; }); __webpack_require__.d(actions_namespaceObject, "clearAsyncError", function() { return actions_clearAsyncError; }); __webpack_require__.d(actions_namespaceObject, "destroy", function() { return actions_destroy; }); __webpack_require__.d(actions_namespaceObject, "focus", function() { return actions_focus; }); __webpack_require__.d(actions_namespaceObject, "initialize", function() { return actions_initialize; }); __webpack_require__.d(actions_namespaceObject, "registerField", function() { return actions_registerField; }); __webpack_require__.d(actions_namespaceObject, "reset", function() { return actions_reset; }); __webpack_require__.d(actions_namespaceObject, "startAsyncValidation", function() { return actions_startAsyncValidation; }); __webpack_require__.d(actions_namespaceObject, "startSubmit", function() { return actions_startSubmit; }); __webpack_require__.d(actions_namespaceObject, "stopAsyncValidation", function() { return actions_stopAsyncValidation; }); __webpack_require__.d(actions_namespaceObject, "stopSubmit", function() { return actions_stopSubmit; }); __webpack_require__.d(actions_namespaceObject, "submit", function() { return actions_submit; }); __webpack_require__.d(actions_namespaceObject, "setSubmitFailed", function() { return actions_setSubmitFailed; }); __webpack_require__.d(actions_namespaceObject, "setSubmitSucceeded", function() { return actions_setSubmitSucceeded; }); __webpack_require__.d(actions_namespaceObject, "touch", function() { return actions_touch; }); __webpack_require__.d(actions_namespaceObject, "unregisterField", function() { return actions_unregisterField; }); __webpack_require__.d(actions_namespaceObject, "untouch", function() { return actions_untouch; }); __webpack_require__.d(actions_namespaceObject, "updateSyncErrors", function() { return actions_updateSyncErrors; }); __webpack_require__.d(actions_namespaceObject, "updateSyncWarnings", function() { return actions_updateSyncWarnings; }); // CONCATENATED MODULE: ./node_modules/redux-form/es/actionTypes.js var prefix = '@@redux-form/'; var ARRAY_INSERT = prefix + 'ARRAY_INSERT'; var ARRAY_MOVE = prefix + 'ARRAY_MOVE'; var ARRAY_POP = prefix + 'ARRAY_POP'; var ARRAY_PUSH = prefix + 'ARRAY_PUSH'; var ARRAY_REMOVE = prefix + 'ARRAY_REMOVE'; var ARRAY_REMOVE_ALL = prefix + 'ARRAY_REMOVE_ALL'; var ARRAY_SHIFT = prefix + 'ARRAY_SHIFT'; var ARRAY_SPLICE = prefix + 'ARRAY_SPLICE'; var ARRAY_UNSHIFT = prefix + 'ARRAY_UNSHIFT'; var ARRAY_SWAP = prefix + 'ARRAY_SWAP'; var AUTOFILL = prefix + 'AUTOFILL'; var BLUR = prefix + 'BLUR'; var CHANGE = prefix + 'CHANGE'; var CLEAR_SUBMIT = prefix + 'CLEAR_SUBMIT'; var CLEAR_SUBMIT_ERRORS = prefix + 'CLEAR_SUBMIT_ERRORS'; var CLEAR_ASYNC_ERROR = prefix + 'CLEAR_ASYNC_ERROR'; var DESTROY = prefix + 'DESTROY'; var FOCUS = prefix + 'FOCUS'; var INITIALIZE = prefix + 'INITIALIZE'; var REGISTER_FIELD = prefix + 'REGISTER_FIELD'; var RESET = prefix + 'RESET'; var SET_SUBMIT_FAILED = prefix + 'SET_SUBMIT_FAILED'; var SET_SUBMIT_SUCCEEDED = prefix + 'SET_SUBMIT_SUCCEEDED'; var START_ASYNC_VALIDATION = prefix + 'START_ASYNC_VALIDATION'; var START_SUBMIT = prefix + 'START_SUBMIT'; var STOP_ASYNC_VALIDATION = prefix + 'STOP_ASYNC_VALIDATION'; var STOP_SUBMIT = prefix + 'STOP_SUBMIT'; var SUBMIT = prefix + 'SUBMIT'; var TOUCH = prefix + 'TOUCH'; var UNREGISTER_FIELD = prefix + 'UNREGISTER_FIELD'; var UNTOUCH = prefix + 'UNTOUCH'; var UPDATE_SYNC_ERRORS = prefix + 'UPDATE_SYNC_ERRORS'; var UPDATE_SYNC_WARNINGS = prefix + 'UPDATE_SYNC_WARNINGS'; // EXTERNAL MODULE: ./node_modules/lodash-es/_arrayMap.js var _arrayMap = __webpack_require__(233); // EXTERNAL MODULE: ./node_modules/lodash-es/_copyArray.js var _copyArray = __webpack_require__(234); // EXTERNAL MODULE: ./node_modules/lodash-es/isArray.js var isArray = __webpack_require__(55); // EXTERNAL MODULE: ./node_modules/lodash-es/isSymbol.js var isSymbol = __webpack_require__(173); // EXTERNAL MODULE: ./node_modules/lodash-es/_stringToPath.js + 2 modules var _stringToPath = __webpack_require__(381); // EXTERNAL MODULE: ./node_modules/lodash-es/_toKey.js var _toKey = __webpack_require__(118); // EXTERNAL MODULE: ./node_modules/lodash-es/toString.js + 1 modules var lodash_es_toString = __webpack_require__(382); // CONCATENATED MODULE: ./node_modules/lodash-es/toPath.js /** * Converts `value` to a property path array. * * @static * @memberOf _ * @since 4.0.0 * @category Util * @param {*} value The value to convert. * @returns {Array} Returns the new property path array. * @example * * _.toPath('a.b.c'); * // => ['a', 'b', 'c'] * * _.toPath('a[0].b.c'); * // => ['a', '0', 'b', 'c'] */ function toPath(value) { if (Object(isArray["a" /* default */])(value)) { return Object(_arrayMap["a" /* default */])(value, _toKey["a" /* default */]); } return Object(isSymbol["a" /* default */])(value) ? [value] : Object(_copyArray["a" /* default */])(Object(_stringToPath["a" /* default */])(Object(lodash_es_toString["a" /* default */])(value))); } /* harmony default export */ var lodash_es_toPath = (toPath); // CONCATENATED MODULE: ./node_modules/redux-form/es/deleteInWithCleanUp.js var deleteInWithCleanUp_createDeleteInWithCleanUp = function createDeleteInWithCleanUp(_ref) { var deepEqual = _ref.deepEqual, empty = _ref.empty, getIn = _ref.getIn, deleteIn = _ref.deleteIn, setIn = _ref.setIn; var deleteInWithCleanUp = function deleteInWithCleanUp(state, path) { if (path[path.length - 1] === ']') { // array path var pathTokens = lodash_es_toPath(path); pathTokens.pop(); var parent = getIn(state, pathTokens.join('.')); return parent ? setIn(state, path, undefined) : state; } var result = deleteIn(state, path); var dotIndex = path.lastIndexOf('.'); if (dotIndex > 0) { var parentPath = path.substring(0, dotIndex); if (parentPath[parentPath.length - 1] !== ']') { var _parent = getIn(result, parentPath); if (deepEqual(_parent, empty)) { return deleteInWithCleanUp(result, parentPath); } } } return result; }; return deleteInWithCleanUp; }; /* harmony default export */ var es_deleteInWithCleanUp = (deleteInWithCleanUp_createDeleteInWithCleanUp); // CONCATENATED MODULE: ./node_modules/redux-form/es/structure/plain/splice.js function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } var splice_splice = function splice(array, index, removeNum, value) { array = array || []; if (index < array.length) { if (value === undefined && !removeNum) { // inserting undefined var _copy2 = [].concat(_toConsumableArray(array)); _copy2.splice(index, 0, null); _copy2[index] = undefined; return _copy2; } if (value != null) { var _copy3 = [].concat(_toConsumableArray(array)); _copy3.splice(index, removeNum, value); // removing and adding return _copy3; } var _copy = [].concat(_toConsumableArray(array)); _copy.splice(index, removeNum); // removing return _copy; } if (removeNum) { // trying to remove non-existant item: return original array return array; } // trying to add outside of range: just set value var copy = [].concat(_toConsumableArray(array)); copy[index] = value; return copy; }; /* harmony default export */ var plain_splice = (splice_splice); // CONCATENATED MODULE: ./node_modules/redux-form/es/structure/plain/getIn.js var getIn_getIn = function getIn(state, field) { if (!state) { return state; } var path = lodash_es_toPath(field); var length = path.length; if (!length) { return undefined; } var result = state; for (var i = 0; i < length && !!result; ++i) { result = result[path[i]]; } return result; }; /* harmony default export */ var plain_getIn = (getIn_getIn); // CONCATENATED MODULE: ./node_modules/redux-form/es/structure/plain/setIn.js var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var setInWithPath = function setInWithPath(state, value, path, pathIndex) { if (pathIndex >= path.length) { return value; } var first = path[pathIndex]; var next = setInWithPath(state && state[first], value, path, pathIndex + 1); if (!state) { var initialized = isNaN(first) ? {} : []; initialized[first] = next; return initialized; } if (Array.isArray(state)) { var copy = [].concat(state); copy[first] = next; return copy; } return _extends({}, state, _defineProperty({}, first, next)); }; var setIn_setIn = function setIn(state, field, value) { return setInWithPath(state, value, lodash_es_toPath(field), 0); }; /* harmony default export */ var plain_setIn = (setIn_setIn); // EXTERNAL MODULE: ./node_modules/lodash-es/_Stack.js + 5 modules var _Stack = __webpack_require__(144); // EXTERNAL MODULE: ./node_modules/lodash-es/_MapCache.js + 14 modules var _MapCache = __webpack_require__(201); // CONCATENATED MODULE: ./node_modules/lodash-es/_setCacheAdd.js /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** * Adds `value` to the array cache. * * @private * @name add * @memberOf SetCache * @alias push * @param {*} value The value to cache. * @returns {Object} Returns the cache instance. */ function setCacheAdd(value) { this.__data__.set(value, HASH_UNDEFINED); return this; } /* harmony default export */ var _setCacheAdd = (setCacheAdd); // CONCATENATED MODULE: ./node_modules/lodash-es/_setCacheHas.js /** * Checks if `value` is in the array cache. * * @private * @name has * @memberOf SetCache * @param {*} value The value to search for. * @returns {number} Returns `true` if `value` is found, else `false`. */ function setCacheHas(value) { return this.__data__.has(value); } /* harmony default export */ var _setCacheHas = (setCacheHas); // CONCATENATED MODULE: ./node_modules/lodash-es/_SetCache.js /** * * Creates an array cache object to store unique values. * * @private * @constructor * @param {Array} [values] The values to cache. */ function SetCache(values) { var index = -1, length = values == null ? 0 : values.length; this.__data__ = new _MapCache["a" /* default */]; while (++index < length) { this.add(values[index]); } } // Add methods to `SetCache`. SetCache.prototype.add = SetCache.prototype.push = _setCacheAdd; SetCache.prototype.has = _setCacheHas; /* harmony default export */ var _SetCache = (SetCache); // CONCATENATED MODULE: ./node_modules/lodash-es/_arraySome.js /** * A specialized version of `_.some` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {boolean} Returns `true` if any element passes the predicate check, * else `false`. */ function arraySome(array, predicate) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (predicate(array[index], index, array)) { return true; } } return false; } /* harmony default export */ var _arraySome = (arraySome); // CONCATENATED MODULE: ./node_modules/lodash-es/_cacheHas.js /** * Checks if a `cache` value for `key` exists. * * @private * @param {Object} cache The cache to query. * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function cacheHas(cache, key) { return cache.has(key); } /* harmony default export */ var _cacheHas = (cacheHas); // CONCATENATED MODULE: ./node_modules/lodash-es/_equalArrays.js /** Used to compose bitmasks for value comparisons. */ var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; /** * A specialized version of `baseIsEqualDeep` for arrays with support for * partial deep comparisons. * * @private * @param {Array} array The array to compare. * @param {Array} other The other array to compare. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. * @param {Function} customizer The function to customize comparisons. * @param {Function} equalFunc The function to determine equivalents of values. * @param {Object} stack Tracks traversed `array` and `other` objects. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. */ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length; if (arrLength != othLength && !(isPartial && othLength > arrLength)) { return false; } // Check that cyclic values are equal. var arrStacked = stack.get(array); var othStacked = stack.get(other); if (arrStacked && othStacked) { return arrStacked == other && othStacked == array; } var index = -1, result = true, seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new _SetCache : undefined; stack.set(array, other); stack.set(other, array); // Ignore non-index properties. while (++index < arrLength) { var arrValue = array[index], othValue = other[index]; if (customizer) { var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack); } if (compared !== undefined) { if (compared) { continue; } result = false; break; } // Recursively compare arrays (susceptible to call stack limits). if (seen) { if (!_arraySome(other, function(othValue, othIndex) { if (!_cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { return seen.push(othIndex); } })) { result = false; break; } } else if (!( arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack) )) { result = false; break; } } stack['delete'](array); stack['delete'](other); return result; } /* harmony default export */ var _equalArrays = (equalArrays); // EXTERNAL MODULE: ./node_modules/lodash-es/_Symbol.js var _Symbol = __webpack_require__(80); // EXTERNAL MODULE: ./node_modules/lodash-es/_Uint8Array.js var _Uint8Array = __webpack_require__(253); // EXTERNAL MODULE: ./node_modules/lodash-es/eq.js var eq = __webpack_require__(139); // CONCATENATED MODULE: ./node_modules/lodash-es/_mapToArray.js /** * Converts `map` to its key-value pairs. * * @private * @param {Object} map The map to convert. * @returns {Array} Returns the key-value pairs. */ function mapToArray(map) { var index = -1, result = Array(map.size); map.forEach(function(value, key) { result[++index] = [key, value]; }); return result; } /* harmony default export */ var _mapToArray = (mapToArray); // CONCATENATED MODULE: ./node_modules/lodash-es/_setToArray.js /** * Converts `set` to an array of its values. * * @private * @param {Object} set The set to convert. * @returns {Array} Returns the values. */ function setToArray(set) { var index = -1, result = Array(set.size); set.forEach(function(value) { result[++index] = value; }); return result; } /* harmony default export */ var _setToArray = (setToArray); // CONCATENATED MODULE: ./node_modules/lodash-es/_equalByTag.js /** Used to compose bitmasks for value comparisons. */ var _equalByTag_COMPARE_PARTIAL_FLAG = 1, _equalByTag_COMPARE_UNORDERED_FLAG = 2; /** `Object#toString` result references. */ var boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', mapTag = '[object Map]', numberTag = '[object Number]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]'; /** Used to convert symbols to primitives and strings. */ var symbolProto = _Symbol["a" /* default */] ? _Symbol["a" /* default */].prototype : undefined, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; /** * A specialized version of `baseIsEqualDeep` for comparing objects of * the same `toStringTag`. * * **Note:** This function only supports comparing values with tags of * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. * * @private * @param {Object} object The object to compare. * @param {Object} other The other object to compare. * @param {string} tag The `toStringTag` of the objects to compare. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. * @param {Function} customizer The function to customize comparisons. * @param {Function} equalFunc The function to determine equivalents of values. * @param {Object} stack Tracks traversed `object` and `other` objects. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { switch (tag) { case dataViewTag: if ((object.byteLength != other.byteLength) || (object.byteOffset != other.byteOffset)) { return false; } object = object.buffer; other = other.buffer; case arrayBufferTag: if ((object.byteLength != other.byteLength) || !equalFunc(new _Uint8Array["a" /* default */](object), new _Uint8Array["a" /* default */](other))) { return false; } return true; case boolTag: case dateTag: case numberTag: // Coerce booleans to `1` or `0` and dates to milliseconds. // Invalid dates are coerced to `NaN`. return Object(eq["a" /* default */])(+object, +other); case errorTag: return object.name == other.name && object.message == other.message; case regexpTag: case stringTag: // Coerce regexes to strings and treat strings, primitives and objects, // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring // for more details. return object == (other + ''); case mapTag: var convert = _mapToArray; case setTag: var isPartial = bitmask & _equalByTag_COMPARE_PARTIAL_FLAG; convert || (convert = _setToArray); if (object.size != other.size && !isPartial) { return false; } // Assume cyclic values are equal. var stacked = stack.get(object); if (stacked) { return stacked == other; } bitmask |= _equalByTag_COMPARE_UNORDERED_FLAG; // Recursively compare objects (susceptible to call stack limits). stack.set(object, other); var result = _equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); stack['delete'](object); return result; case symbolTag: if (symbolValueOf) { return symbolValueOf.call(object) == symbolValueOf.call(other); } } return false; } /* harmony default export */ var _equalByTag = (equalByTag); // EXTERNAL MODULE: ./node_modules/lodash-es/_getAllKeys.js var _getAllKeys = __webpack_require__(291); // CONCATENATED MODULE: ./node_modules/lodash-es/_equalObjects.js /** Used to compose bitmasks for value comparisons. */ var _equalObjects_COMPARE_PARTIAL_FLAG = 1; /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var _equalObjects_hasOwnProperty = objectProto.hasOwnProperty; /** * A specialized version of `baseIsEqualDeep` for objects with support for * partial deep comparisons. * * @private * @param {Object} object The object to compare. * @param {Object} other The other object to compare. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. * @param {Function} customizer The function to customize comparisons. * @param {Function} equalFunc The function to determine equivalents of values. * @param {Object} stack Tracks traversed `object` and `other` objects. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { var isPartial = bitmask & _equalObjects_COMPARE_PARTIAL_FLAG, objProps = Object(_getAllKeys["a" /* default */])(object), objLength = objProps.length, othProps = Object(_getAllKeys["a" /* default */])(other), othLength = othProps.length; if (objLength != othLength && !isPartial) { return false; } var index = objLength; while (index--) { var key = objProps[index]; if (!(isPartial ? key in other : _equalObjects_hasOwnProperty.call(other, key))) { return false; } } // Check that cyclic values are equal. var objStacked = stack.get(object); var othStacked = stack.get(other); if (objStacked && othStacked) { return objStacked == other && othStacked == object; } var result = true; stack.set(object, other); stack.set(other, object); var skipCtor = isPartial; while (++index < objLength) { key = objProps[index]; var objValue = object[key], othValue = other[key]; if (customizer) { var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack); } // Recursively compare objects (susceptible to call stack limits). if (!(compared === undefined ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack)) : compared )) { result = false; break; } skipCtor || (skipCtor = key == 'constructor'); } if (result && !skipCtor) { var objCtor = object.constructor, othCtor = other.constructor; // Non `Object` object instances with different constructors are not equal. if (objCtor != othCtor && ('constructor' in object && 'constructor' in other) && !(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) { result = false; } } stack['delete'](object); stack['delete'](other); return result; } /* harmony default export */ var _equalObjects = (equalObjects); // EXTERNAL MODULE: ./node_modules/lodash-es/_getTag.js + 4 modules var _getTag = __webpack_require__(156); // EXTERNAL MODULE: ./node_modules/lodash-es/isBuffer.js var isBuffer = __webpack_require__(155); // EXTERNAL MODULE: ./node_modules/lodash-es/isTypedArray.js + 1 modules var isTypedArray = __webpack_require__(252); // CONCATENATED MODULE: ./node_modules/lodash-es/_baseIsEqualDeep.js /** Used to compose bitmasks for value comparisons. */ var _baseIsEqualDeep_COMPARE_PARTIAL_FLAG = 1; /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', objectTag = '[object Object]'; /** Used for built-in method references. */ var _baseIsEqualDeep_objectProto = Object.prototype; /** Used to check objects for own properties. */ var _baseIsEqualDeep_hasOwnProperty = _baseIsEqualDeep_objectProto.hasOwnProperty; /** * A specialized version of `baseIsEqual` for arrays and objects which performs * deep comparisons and tracks traversed objects enabling objects with circular * references to be compared. * * @private * @param {Object} object The object to compare. * @param {Object} other The other object to compare. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. * @param {Function} customizer The function to customize comparisons. * @param {Function} equalFunc The function to determine equivalents of values. * @param {Object} [stack] Tracks traversed `object` and `other` objects. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { var objIsArr = Object(isArray["a" /* default */])(object), othIsArr = Object(isArray["a" /* default */])(other), objTag = objIsArr ? arrayTag : Object(_getTag["a" /* default */])(object), othTag = othIsArr ? arrayTag : Object(_getTag["a" /* default */])(other); objTag = objTag == argsTag ? objectTag : objTag; othTag = othTag == argsTag ? objectTag : othTag; var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag; if (isSameTag && Object(isBuffer["a" /* default */])(object)) { if (!Object(isBuffer["a" /* default */])(other)) { return false; } objIsArr = true; objIsObj = false; } if (isSameTag && !objIsObj) { stack || (stack = new _Stack["a" /* default */]); return (objIsArr || Object(isTypedArray["a" /* default */])(object)) ? _equalArrays(object, other, bitmask, customizer, equalFunc, stack) : _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); } if (!(bitmask & _baseIsEqualDeep_COMPARE_PARTIAL_FLAG)) { var objIsWrapped = objIsObj && _baseIsEqualDeep_hasOwnProperty.call(object, '__wrapped__'), othIsWrapped = othIsObj && _baseIsEqualDeep_hasOwnProperty.call(other, '__wrapped__'); if (objIsWrapped || othIsWrapped) { var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other; stack || (stack = new _Stack["a" /* default */]); return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); } } if (!isSameTag) { return false; } stack || (stack = new _Stack["a" /* default */]); return _equalObjects(object, other, bitmask, customizer, equalFunc, stack); } /* harmony default export */ var _baseIsEqualDeep = (baseIsEqualDeep); // EXTERNAL MODULE: ./node_modules/lodash-es/isObjectLike.js var isObjectLike = __webpack_require__(72); // CONCATENATED MODULE: ./node_modules/lodash-es/_baseIsEqual.js /** * The base implementation of `_.isEqual` which supports partial comparisons * and tracks traversed objects. * * @private * @param {*} value The value to compare. * @param {*} other The other value to compare. * @param {boolean} bitmask The bitmask flags. * 1 - Unordered comparison * 2 - Partial comparison * @param {Function} [customizer] The function to customize comparisons. * @param {Object} [stack] Tracks traversed `value` and `other` objects. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. */ function baseIsEqual(value, other, bitmask, customizer, stack) { if (value === other) { return true; } if (value == null || other == null || (!Object(isObjectLike["a" /* default */])(value) && !Object(isObjectLike["a" /* default */])(other))) { return value !== value && other !== other; } return _baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); } /* harmony default export */ var _baseIsEqual = (baseIsEqual); // CONCATENATED MODULE: ./node_modules/lodash-es/isEqualWith.js /** * This method is like `_.isEqual` except that it accepts `customizer` which * is invoked to compare values. If `customizer` returns `undefined`, comparisons * are handled by the method instead. The `customizer` is invoked with up to * six arguments: (objValue, othValue [, index|key, object, other, stack]). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @param {Function} [customizer] The function to customize comparisons. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * function isGreeting(value) { * return /^h(?:i|ello)$/.test(value); * } * * function customizer(objValue, othValue) { * if (isGreeting(objValue) && isGreeting(othValue)) { * return true; * } * } * * var array = ['hello', 'goodbye']; * var other = ['hi', 'goodbye']; * * _.isEqualWith(array, other, customizer); * // => true */ function isEqualWith(value, other, customizer) { customizer = typeof customizer == 'function' ? customizer : undefined; var result = customizer ? customizer(value, other) : undefined; return result === undefined ? _baseIsEqual(value, other, undefined, customizer) : !!result; } /* harmony default export */ var lodash_es_isEqualWith = (isEqualWith); // CONCATENATED MODULE: ./node_modules/redux-form/es/structure/plain/deepEqual.js var deepEqual_customizer = function customizer(obj, other) { if (obj === other) return true; if ((obj == null || obj === '' || obj === false) && (other == null || other === '' || other === false)) return true; if (obj && other && obj._error !== other._error) return false; if (obj && other && obj._warning !== other._warning) return false; }; var deepEqual_deepEqual = function deepEqual(a, b) { return lodash_es_isEqualWith(a, b, deepEqual_customizer); }; /* harmony default export */ var plain_deepEqual = (deepEqual_deepEqual); // CONCATENATED MODULE: ./node_modules/redux-form/es/structure/plain/deleteIn.js var deleteIn_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function deleteIn_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function deleteIn_toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } var deleteInWithPath = function deleteInWithPath(state, first) { for (var _len = arguments.length, rest = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { rest[_key - 2] = arguments[_key]; } if (state === undefined || first === undefined) { return state; } if (rest.length) { if (Array.isArray(state)) { if (first < state.length) { var result = deleteInWithPath.apply(undefined, [state && state[first]].concat(rest)); if (result !== state[first]) { var copy = [].concat(deleteIn_toConsumableArray(state)); copy[first] = result; return copy; } } return state; } if (first in state) { var _result = deleteInWithPath.apply(undefined, [state && state[first]].concat(rest)); return state[first] === _result ? state : deleteIn_extends({}, state, deleteIn_defineProperty({}, first, _result)); } return state; } if (Array.isArray(state)) { if (isNaN(first)) { throw new Error('Cannot delete non-numerical index from an array'); } if (first < state.length) { var _copy = [].concat(deleteIn_toConsumableArray(state)); _copy.splice(first, 1); return _copy; } return state; } if (first in state) { var _copy2 = deleteIn_extends({}, state); delete _copy2[first]; return _copy2; } return state; }; var deleteIn_deleteIn = function deleteIn(state, field) { return deleteInWithPath.apply(undefined, [state].concat(deleteIn_toConsumableArray(lodash_es_toPath(field)))); }; /* harmony default export */ var plain_deleteIn = (deleteIn_deleteIn); // CONCATENATED MODULE: ./node_modules/redux-form/es/structure/plain/keys.js var keys_keys = function keys(value) { return value ? Object.keys(value) : []; }; /* harmony default export */ var plain_keys = (keys_keys); // CONCATENATED MODULE: ./node_modules/redux-form/es/structure/plain/index.js var plain_structure = { allowsArrayErrors: true, empty: {}, emptyList: [], getIn: plain_getIn, setIn: plain_setIn, deepEqual: plain_deepEqual, deleteIn: plain_deleteIn, fromJS: function fromJS(value) { return value; }, keys: plain_keys, size: function size(array) { return array ? array.length : 0; }, splice: plain_splice, toJS: function toJS(value) { return value; } }; /* harmony default export */ var plain = (plain_structure); // CONCATENATED MODULE: ./node_modules/redux-form/es/reducer.js function reducer_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } var reducer_isReduxFormAction = function isReduxFormAction(action) { return action && action.type && action.type.length > prefix.length && action.type.substring(0, prefix.length) === prefix; }; var reducer_createReducer = function createReducer(structure) { var _behaviors; var deepEqual = structure.deepEqual, empty = structure.empty, getIn = structure.getIn, setIn = structure.setIn, deleteIn = structure.deleteIn, fromJS = structure.fromJS, keys = structure.keys, size = structure.size, splice = structure.splice; var deleteInWithCleanUp = es_deleteInWithCleanUp(structure); var doSplice = function doSplice(state, key, field, index, removeNum, value, force) { var existing = getIn(state, key + '.' + field); return existing || force ? setIn(state, key + '.' + field, splice(existing, index, removeNum, value)) : state; }; var doPlainSplice = function doPlainSplice(state, key, field, index, removeNum, value, force) { var slice = getIn(state, key); var existing = plain.getIn(slice, field); return existing || force ? setIn(state, key, plain.setIn(slice, field, plain.splice(existing, index, removeNum, value))) : state; }; var rootKeys = ['values', 'fields', 'submitErrors', 'asyncErrors']; var arraySplice = function arraySplice(state, field, index, removeNum, value) { var result = state; var nonValuesValue = value != null ? empty : undefined; result = doSplice(result, 'values', field, index, removeNum, value, true); result = doSplice(result, 'fields', field, index, removeNum, nonValuesValue); result = doPlainSplice(result, 'syncErrors', field, index, removeNum, undefined); result = doPlainSplice(result, 'syncWarnings', field, index, removeNum, undefined); result = doSplice(result, 'submitErrors', field, index, removeNum, undefined); result = doSplice(result, 'asyncErrors', field, index, removeNum, undefined); return result; }; var behaviors = (_behaviors = {}, reducer_defineProperty(_behaviors, ARRAY_INSERT, function (state, _ref) { var _ref$meta = _ref.meta, field = _ref$meta.field, index = _ref$meta.index, payload = _ref.payload; return arraySplice(state, field, index, 0, payload); }), reducer_defineProperty(_behaviors, ARRAY_MOVE, function (state, _ref2) { var _ref2$meta = _ref2.meta, field = _ref2$meta.field, from = _ref2$meta.from, to = _ref2$meta.to; var array = getIn(state, 'values.' + field); var length = array ? size(array) : 0; var result = state; if (length) { rootKeys.forEach(function (key) { var path = key + '.' + field; if (getIn(result, path)) { var value = getIn(result, path + '[' + from + ']'); result = setIn(result, path, splice(getIn(result, path), from, 1)); // remove result = setIn(result, path, splice(getIn(result, path), to, 0, value)); // insert } }); } return result; }), reducer_defineProperty(_behaviors, ARRAY_POP, function (state, _ref3) { var field = _ref3.meta.field; var array = getIn(state, 'values.' + field); var length = array ? size(array) : 0; return length ? arraySplice(state, field, length - 1, 1) : state; }), reducer_defineProperty(_behaviors, ARRAY_PUSH, function (state, _ref4) { var field = _ref4.meta.field, payload = _ref4.payload; var array = getIn(state, 'values.' + field); var length = array ? size(array) : 0; return arraySplice(state, field, length, 0, payload); }), reducer_defineProperty(_behaviors, ARRAY_REMOVE, function (state, _ref5) { var _ref5$meta = _ref5.meta, field = _ref5$meta.field, index = _ref5$meta.index; return arraySplice(state, field, index, 1); }), reducer_defineProperty(_behaviors, ARRAY_REMOVE_ALL, function (state, _ref6) { var field = _ref6.meta.field; var array = getIn(state, 'values.' + field); var length = array ? size(array) : 0; return length ? arraySplice(state, field, 0, length) : state; }), reducer_defineProperty(_behaviors, ARRAY_SHIFT, function (state, _ref7) { var field = _ref7.meta.field; return arraySplice(state, field, 0, 1); }), reducer_defineProperty(_behaviors, ARRAY_SPLICE, function (state, _ref8) { var _ref8$meta = _ref8.meta, field = _ref8$meta.field, index = _ref8$meta.index, removeNum = _ref8$meta.removeNum, payload = _ref8.payload; return arraySplice(state, field, index, removeNum, payload); }), reducer_defineProperty(_behaviors, ARRAY_SWAP, function (state, _ref9) { var _ref9$meta = _ref9.meta, field = _ref9$meta.field, indexA = _ref9$meta.indexA, indexB = _ref9$meta.indexB; var result = state; rootKeys.forEach(function (key) { var valueA = getIn(result, key + '.' + field + '[' + indexA + ']'); var valueB = getIn(result, key + '.' + field + '[' + indexB + ']'); if (valueA !== undefined || valueB !== undefined) { result = setIn(result, key + '.' + field + '[' + indexA + ']', valueB); result = setIn(result, key + '.' + field + '[' + indexB + ']', valueA); } }); return result; }), reducer_defineProperty(_behaviors, ARRAY_UNSHIFT, function (state, _ref10) { var field = _ref10.meta.field, payload = _ref10.payload; return arraySplice(state, field, 0, 0, payload); }), reducer_defineProperty(_behaviors, AUTOFILL, function (state, _ref11) { var field = _ref11.meta.field, payload = _ref11.payload; var result = state; result = deleteInWithCleanUp(result, 'asyncErrors.' + field); result = deleteInWithCleanUp(result, 'submitErrors.' + field); result = setIn(result, 'fields.' + field + '.autofilled', true); result = setIn(result, 'values.' + field, payload); return result; }), reducer_defineProperty(_behaviors, BLUR, function (state, _ref12) { var _ref12$meta = _ref12.meta, field = _ref12$meta.field, touch = _ref12$meta.touch, payload = _ref12.payload; var result = state; var initial = getIn(result, 'initial.' + field); if (initial === undefined && payload === '') { result = deleteInWithCleanUp(result, 'values.' + field); } else if (payload !== undefined) { result = setIn(result, 'values.' + field, payload); } if (field === getIn(result, 'active')) { result = deleteIn(result, 'active'); } result = deleteIn(result, 'fields.' + field + '.active'); if (touch) { result = setIn(result, 'fields.' + field + '.touched', true); result = setIn(result, 'anyTouched', true); } return result; }), reducer_defineProperty(_behaviors, CHANGE, function (state, _ref13) { var _ref13$meta = _ref13.meta, field = _ref13$meta.field, touch = _ref13$meta.touch, persistentSubmitErrors = _ref13$meta.persistentSubmitErrors, payload = _ref13.payload; var result = state; var initial = getIn(result, 'initial.' + field); if (initial === undefined && payload === '') { result = deleteInWithCleanUp(result, 'values.' + field); } else if (payload !== undefined) { result = setIn(result, 'values.' + field, payload); } result = deleteInWithCleanUp(result, 'asyncErrors.' + field); if (!persistentSubmitErrors) { result = deleteInWithCleanUp(result, 'submitErrors.' + field); } result = deleteInWithCleanUp(result, 'fields.' + field + '.autofilled'); if (touch) { result = setIn(result, 'fields.' + field + '.touched', true); result = setIn(result, 'anyTouched', true); } return result; }), reducer_defineProperty(_behaviors, CLEAR_SUBMIT, function (state) { return deleteIn(state, 'triggerSubmit'); }), reducer_defineProperty(_behaviors, CLEAR_SUBMIT_ERRORS, function (state) { return deleteInWithCleanUp(state, 'submitErrors'); }), reducer_defineProperty(_behaviors, CLEAR_ASYNC_ERROR, function (state, _ref14) { var field = _ref14.meta.field; return deleteIn(state, 'asyncErrors.' + field); }), reducer_defineProperty(_behaviors, FOCUS, function (state, _ref15) { var field = _ref15.meta.field; var result = state; var previouslyActive = getIn(state, 'active'); result = deleteIn(result, 'fields.' + previouslyActive + '.active'); result = setIn(result, 'fields.' + field + '.visited', true); result = setIn(result, 'fields.' + field + '.active', true); result = setIn(result, 'active', field); return result; }), reducer_defineProperty(_behaviors, INITIALIZE, function (state, _ref16) { var payload = _ref16.payload, _ref16$meta = _ref16.meta, keepDirty = _ref16$meta.keepDirty, keepSubmitSucceeded = _ref16$meta.keepSubmitSucceeded; var mapData = fromJS(payload); var result = empty; // clean all field state // persist old warnings, they will get recalculated if the new form values are different from the old values var warning = getIn(state, 'warning'); if (warning) { result = setIn(result, 'warning', warning); } var syncWarnings = getIn(state, 'syncWarnings'); if (syncWarnings) { result = setIn(result, 'syncWarnings', syncWarnings); } // persist old errors, they will get recalculated if the new form values are different from the old values var error = getIn(state, 'error'); if (error) { result = setIn(result, 'error', error); } var syncErrors = getIn(state, 'syncErrors'); if (syncErrors) { result = setIn(result, 'syncErrors', syncErrors); } var registeredFields = getIn(state, 'registeredFields'); if (registeredFields) { result = setIn(result, 'registeredFields', registeredFields); } var newValues = mapData; if (keepDirty && registeredFields) { // // Keep the value of dirty fields while updating the value of // pristine fields. This way, apps can reinitialize forms while // avoiding stomping on user edits. // // Note 1: The initialize action replaces all initial values // regardless of keepDirty. // // Note 2: When a field is dirty, keepDirty is enabled, and the field // value is the same as the new initial value for the field, the // initialize action causes the field to become pristine. That effect // is what we want. // var previousValues = getIn(state, 'values'); var previousInitialValues = getIn(state, 'initial'); keys(registeredFields).forEach(function (name) { var previousInitialValue = getIn(previousInitialValues, name); var previousValue = getIn(previousValues, name); if (!deepEqual(previousValue, previousInitialValue)) { // This field was dirty. Restore the dirty value. newValues = setIn(newValues, name, previousValue); } }); } if (keepSubmitSucceeded && getIn(state, 'submitSucceeded')) { result = setIn(result, 'submitSucceeded', true); } result = setIn(result, 'values', newValues); result = setIn(result, 'initial', mapData); return result; }), reducer_defineProperty(_behaviors, REGISTER_FIELD, function (state, _ref17) { var _ref17$payload = _ref17.payload, name = _ref17$payload.name, type = _ref17$payload.type; var key = 'registeredFields[\'' + name + '\']'; var field = getIn(state, key); if (field) { var count = getIn(field, 'count') + 1; field = setIn(field, 'count', count); } else { field = fromJS({ name: name, type: type, count: 1 }); } return setIn(state, key, field); }), reducer_defineProperty(_behaviors, RESET, function (state) { var result = empty; var registeredFields = getIn(state, 'registeredFields'); if (registeredFields) { result = setIn(result, 'registeredFields', registeredFields); } var values = getIn(state, 'initial'); if (values) { result = setIn(result, 'values', values); result = setIn(result, 'initial', values); } return result; }), reducer_defineProperty(_behaviors, SUBMIT, function (state) { return setIn(state, 'triggerSubmit', true); }), reducer_defineProperty(_behaviors, START_ASYNC_VALIDATION, function (state, _ref18) { var field = _ref18.meta.field; return setIn(state, 'asyncValidating', field || true); }), reducer_defineProperty(_behaviors, START_SUBMIT, function (state) { return setIn(state, 'submitting', true); }), reducer_defineProperty(_behaviors, STOP_ASYNC_VALIDATION, function (state, _ref19) { var payload = _ref19.payload; var result = state; result = deleteIn(result, 'asyncValidating'); if (payload && Object.keys(payload).length) { var _error = payload._error, fieldErrors = _objectWithoutProperties(payload, ['_error']); if (_error) { result = setIn(result, 'error', _error); } if (Object.keys(fieldErrors).length) { result = setIn(result, 'asyncErrors', fromJS(fieldErrors)); } else { result = deleteIn(result, 'asyncErrors'); } } else { result = deleteIn(result, 'error'); result = deleteIn(result, 'asyncErrors'); } return result; }), reducer_defineProperty(_behaviors, STOP_SUBMIT, function (state, _ref20) { var payload = _ref20.payload; var result = state; result = deleteIn(result, 'submitting'); result = deleteIn(result, 'submitFailed'); result = deleteIn(result, 'submitSucceeded'); if (payload && Object.keys(payload).length) { var _error = payload._error, fieldErrors = _objectWithoutProperties(payload, ['_error']); if (_error) { result = setIn(result, 'error', _error); } else { result = deleteIn(result, 'error'); } if (Object.keys(fieldErrors).length) { result = setIn(result, 'submitErrors', fromJS(fieldErrors)); } else { result = deleteIn(result, 'submitErrors'); } result = setIn(result, 'submitFailed', true); } else { result = setIn(result, 'submitSucceeded', true); result = deleteIn(result, 'error'); result = deleteIn(result, 'submitErrors'); } return result; }), reducer_defineProperty(_behaviors, SET_SUBMIT_FAILED, function (state, _ref21) { var fields = _ref21.meta.fields; var result = state; result = setIn(result, 'submitFailed', true); result = deleteIn(result, 'submitSucceeded'); result = deleteIn(result, 'submitting'); fields.forEach(function (field) { return result = setIn(result, 'fields.' + field + '.touched', true); }); if (fields.length) { result = setIn(result, 'anyTouched', true); } return result; }), reducer_defineProperty(_behaviors, SET_SUBMIT_SUCCEEDED, function (state) { var result = state; result = deleteIn(result, 'submitFailed'); result = setIn(result, 'submitSucceeded', true); return result; }), reducer_defineProperty(_behaviors, TOUCH, function (state, _ref22) { var fields = _ref22.meta.fields; var result = state; fields.forEach(function (field) { return result = setIn(result, 'fields.' + field + '.touched', true); }); result = setIn(result, 'anyTouched', true); return result; }), reducer_defineProperty(_behaviors, UNREGISTER_FIELD, function (state, _ref23) { var _ref23$payload = _ref23.payload, name = _ref23$payload.name, destroyOnUnmount = _ref23$payload.destroyOnUnmount; var result = state; var key = 'registeredFields[\'' + name + '\']'; var field = getIn(result, key); if (!field) { return result; } var count = getIn(field, 'count') - 1; if (count <= 0 && destroyOnUnmount) { result = deleteIn(result, key); if (deepEqual(getIn(result, 'registeredFields'), empty)) { result = deleteIn(result, 'registeredFields'); } } else { field = setIn(field, 'count', count); result = setIn(result, key, field); } return result; }), reducer_defineProperty(_behaviors, UNTOUCH, function (state, _ref24) { var fields = _ref24.meta.fields; var result = state; fields.forEach(function (field) { return result = deleteIn(result, 'fields.' + field + '.touched'); }); var anyTouched = keys(getIn(result, 'registeredFields')).some(function (key) { return getIn(result, 'fields.' + key + '.touched'); }); result = anyTouched ? setIn(result, 'anyTouched', true) : deleteIn(result, 'anyTouched'); return result; }), reducer_defineProperty(_behaviors, UPDATE_SYNC_ERRORS, function (state, _ref25) { var _ref25$payload = _ref25.payload, syncErrors = _ref25$payload.syncErrors, error = _ref25$payload.error; var result = state; if (error) { result = setIn(result, 'error', error); result = setIn(result, 'syncError', true); } else { result = deleteIn(result, 'error'); result = deleteIn(result, 'syncError'); } if (Object.keys(syncErrors).length) { result = setIn(result, 'syncErrors', syncErrors); } else { result = deleteIn(result, 'syncErrors'); } return result; }), reducer_defineProperty(_behaviors, UPDATE_SYNC_WARNINGS, function (state, _ref26) { var _ref26$payload = _ref26.payload, syncWarnings = _ref26$payload.syncWarnings, warning = _ref26$payload.warning; var result = state; if (warning) { result = setIn(result, 'warning', warning); } else { result = deleteIn(result, 'warning'); } if (Object.keys(syncWarnings).length) { result = setIn(result, 'syncWarnings', syncWarnings); } else { result = deleteIn(result, 'syncWarnings'); } return result; }), _behaviors); var reducer = function reducer() { var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : empty; var action = arguments[1]; var behavior = behaviors[action.type]; return behavior ? behavior(state, action) : state; }; var byForm = function byForm(reducer) { return function () { var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : empty; var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var form = action && action.meta && action.meta.form; if (!form || !reducer_isReduxFormAction(action)) { return state; } if (action.type === DESTROY) { return action.meta.form.reduce(function (result, form) { return deleteInWithCleanUp(result, form); }, state); } var formState = getIn(state, form); var result = reducer(formState, action); return result === formState ? state : setIn(state, form, result); }; }; /** * Adds additional functionality to the reducer */ function decorate(target) { target.plugin = function plugin(reducers) { var _this = this; // use 'function' keyword to enable 'this' return decorate(function () { var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : empty; var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; return Object.keys(reducers).reduce(function (accumulator, key) { var previousState = getIn(accumulator, key); var nextState = reducers[key](previousState, action, getIn(state, key)); return nextState === previousState ? accumulator : setIn(accumulator, key, nextState); }, _this(state, action)); }); }; return target; } return decorate(byForm(reducer)); }; /* harmony default export */ var es_reducer = (reducer_createReducer); // EXTERNAL MODULE: ./node_modules/lodash-es/_baseAssignValue.js var _baseAssignValue = __webpack_require__(175); // CONCATENATED MODULE: ./node_modules/lodash-es/_assignMergeValue.js /** * This function is like `assignValue` except that it doesn't assign * `undefined` values. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function assignMergeValue(object, key, value) { if ((value !== undefined && !Object(eq["a" /* default */])(object[key], value)) || (value === undefined && !(key in object))) { Object(_baseAssignValue["a" /* default */])(object, key, value); } } /* harmony default export */ var _assignMergeValue = (assignMergeValue); // EXTERNAL MODULE: ./node_modules/lodash-es/_baseFor.js + 1 modules var _baseFor = __webpack_require__(386); // EXTERNAL MODULE: ./node_modules/lodash-es/_cloneBuffer.js var _cloneBuffer = __webpack_require__(362); // EXTERNAL MODULE: ./node_modules/lodash-es/_cloneTypedArray.js var _cloneTypedArray = __webpack_require__(363); // EXTERNAL MODULE: ./node_modules/lodash-es/_initCloneObject.js + 1 modules var _initCloneObject = __webpack_require__(384); // EXTERNAL MODULE: ./node_modules/lodash-es/isArguments.js + 1 modules var isArguments = __webpack_require__(157); // EXTERNAL MODULE: ./node_modules/lodash-es/isArrayLike.js var isArrayLike = __webpack_require__(140); // CONCATENATED MODULE: ./node_modules/lodash-es/isArrayLikeObject.js /** * This method is like `_.isArrayLike` except that it also checks if `value` * is an object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array-like object, * else `false`. * @example * * _.isArrayLikeObject([1, 2, 3]); * // => true * * _.isArrayLikeObject(document.body.children); * // => true * * _.isArrayLikeObject('abc'); * // => false * * _.isArrayLikeObject(_.noop); * // => false */ function isArrayLikeObject(value) { return Object(isObjectLike["a" /* default */])(value) && Object(isArrayLike["a" /* default */])(value); } /* harmony default export */ var lodash_es_isArrayLikeObject = (isArrayLikeObject); // EXTERNAL MODULE: ./node_modules/lodash-es/isFunction.js var isFunction = __webpack_require__(235); // EXTERNAL MODULE: ./node_modules/lodash-es/isObject.js var isObject = __webpack_require__(77); // EXTERNAL MODULE: ./node_modules/lodash-es/isPlainObject.js var isPlainObject = __webpack_require__(138); // CONCATENATED MODULE: ./node_modules/lodash-es/_safeGet.js /** * Gets the value at `key`, unless `key` is "__proto__" or "constructor". * * @private * @param {Object} object The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function safeGet(object, key) { if (key === 'constructor' && typeof object[key] === 'function') { return; } if (key == '__proto__') { return; } return object[key]; } /* harmony default export */ var _safeGet = (safeGet); // EXTERNAL MODULE: ./node_modules/lodash-es/_copyObject.js var _copyObject = __webpack_require__(119); // EXTERNAL MODULE: ./node_modules/lodash-es/keysIn.js + 2 modules var keysIn = __webpack_require__(143); // CONCATENATED MODULE: ./node_modules/lodash-es/toPlainObject.js /** * Converts `value` to a plain object flattening inherited enumerable string * keyed properties of `value` to own properties of the plain object. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to convert. * @returns {Object} Returns the converted plain object. * @example * * function Foo() { * this.b = 2; * } * * Foo.prototype.c = 3; * * _.assign({ 'a': 1 }, new Foo); * // => { 'a': 1, 'b': 2 } * * _.assign({ 'a': 1 }, _.toPlainObject(new Foo)); * // => { 'a': 1, 'b': 2, 'c': 3 } */ function toPlainObject(value) { return Object(_copyObject["a" /* default */])(value, Object(keysIn["a" /* default */])(value)); } /* harmony default export */ var lodash_es_toPlainObject = (toPlainObject); // CONCATENATED MODULE: ./node_modules/lodash-es/_baseMergeDeep.js /** * A specialized version of `baseMerge` for arrays and objects which performs * deep merges and tracks traversed objects enabling objects with circular * references to be merged. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @param {string} key The key of the value to merge. * @param {number} srcIndex The index of `source`. * @param {Function} mergeFunc The function to merge values. * @param {Function} [customizer] The function to customize assigned values. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. */ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { var objValue = _safeGet(object, key), srcValue = _safeGet(source, key), stacked = stack.get(srcValue); if (stacked) { _assignMergeValue(object, key, stacked); return; } var newValue = customizer ? customizer(objValue, srcValue, (key + ''), object, source, stack) : undefined; var isCommon = newValue === undefined; if (isCommon) { var isArr = Object(isArray["a" /* default */])(srcValue), isBuff = !isArr && Object(isBuffer["a" /* default */])(srcValue), isTyped = !isArr && !isBuff && Object(isTypedArray["a" /* default */])(srcValue); newValue = srcValue; if (isArr || isBuff || isTyped) { if (Object(isArray["a" /* default */])(objValue)) { newValue = objValue; } else if (lodash_es_isArrayLikeObject(objValue)) { newValue = Object(_copyArray["a" /* default */])(objValue); } else if (isBuff) { isCommon = false; newValue = Object(_cloneBuffer["a" /* default */])(srcValue, true); } else if (isTyped) { isCommon = false; newValue = Object(_cloneTypedArray["a" /* default */])(srcValue, true); } else { newValue = []; } } else if (Object(isPlainObject["a" /* default */])(srcValue) || Object(isArguments["a" /* default */])(srcValue)) { newValue = objValue; if (Object(isArguments["a" /* default */])(objValue)) { newValue = lodash_es_toPlainObject(objValue); } else if (!Object(isObject["a" /* default */])(objValue) || Object(isFunction["a" /* default */])(objValue)) { newValue = Object(_initCloneObject["a" /* default */])(srcValue); } } else { isCommon = false; } } if (isCommon) { // Recursively merge objects and arrays (susceptible to call stack limits). stack.set(srcValue, newValue); mergeFunc(newValue, srcValue, srcIndex, customizer, stack); stack['delete'](srcValue); } _assignMergeValue(object, key, newValue); } /* harmony default export */ var _baseMergeDeep = (baseMergeDeep); // CONCATENATED MODULE: ./node_modules/lodash-es/_baseMerge.js /** * The base implementation of `_.merge` without support for multiple sources. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @param {number} srcIndex The index of `source`. * @param {Function} [customizer] The function to customize merged values. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. */ function baseMerge(object, source, srcIndex, customizer, stack) { if (object === source) { return; } Object(_baseFor["a" /* default */])(source, function(srcValue, key) { stack || (stack = new _Stack["a" /* default */]); if (Object(isObject["a" /* default */])(srcValue)) { _baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); } else { var newValue = customizer ? customizer(_safeGet(object, key), srcValue, (key + ''), object, source, stack) : undefined; if (newValue === undefined) { newValue = srcValue; } _assignMergeValue(object, key, newValue); } }, keysIn["a" /* default */]); } /* harmony default export */ var _baseMerge = (baseMerge); // EXTERNAL MODULE: ./node_modules/lodash-es/identity.js var identity = __webpack_require__(174); // EXTERNAL MODULE: ./node_modules/lodash-es/_overRest.js + 1 modules var _overRest = __webpack_require__(383); // EXTERNAL MODULE: ./node_modules/lodash-es/_setToString.js + 3 modules var _setToString = __webpack_require__(380); // CONCATENATED MODULE: ./node_modules/lodash-es/_baseRest.js /** * The base implementation of `_.rest` which doesn't validate or coerce arguments. * * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @returns {Function} Returns the new function. */ function baseRest(func, start) { return Object(_setToString["a" /* default */])(Object(_overRest["a" /* default */])(func, start, identity["a" /* default */]), func + ''); } /* harmony default export */ var _baseRest = (baseRest); // EXTERNAL MODULE: ./node_modules/lodash-es/_isIndex.js var _isIndex = __webpack_require__(239); // CONCATENATED MODULE: ./node_modules/lodash-es/_isIterateeCall.js /** * Checks if the given arguments are from an iteratee call. * * @private * @param {*} value The potential iteratee value argument. * @param {*} index The potential iteratee index or key argument. * @param {*} object The potential iteratee object argument. * @returns {boolean} Returns `true` if the arguments are from an iteratee call, * else `false`. */ function isIterateeCall(value, index, object) { if (!Object(isObject["a" /* default */])(object)) { return false; } var type = typeof index; if (type == 'number' ? (Object(isArrayLike["a" /* default */])(object) && Object(_isIndex["a" /* default */])(index, object.length)) : (type == 'string' && index in object) ) { return Object(eq["a" /* default */])(object[index], value); } return false; } /* harmony default export */ var _isIterateeCall = (isIterateeCall); // CONCATENATED MODULE: ./node_modules/lodash-es/_createAssigner.js /** * Creates a function like `_.assign`. * * @private * @param {Function} assigner The function to assign values. * @returns {Function} Returns the new assigner function. */ function createAssigner(assigner) { return _baseRest(function(object, sources) { var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined, guard = length > 2 ? sources[2] : undefined; customizer = (assigner.length > 3 && typeof customizer == 'function') ? (length--, customizer) : undefined; if (guard && _isIterateeCall(sources[0], sources[1], guard)) { customizer = length < 3 ? undefined : customizer; length = 1; } object = Object(object); while (++index < length) { var source = sources[index]; if (source) { assigner(object, source, index, customizer); } } return object; }); } /* harmony default export */ var _createAssigner = (createAssigner); // CONCATENATED MODULE: ./node_modules/lodash-es/merge.js /** * This method is like `_.assign` except that it recursively merges own and * inherited enumerable string keyed properties of source objects into the * destination object. Source properties that resolve to `undefined` are * skipped if a destination value exists. Array and plain object properties * are merged recursively. Other objects and value types are overridden by * assignment. Source objects are applied from left to right. Subsequent * sources overwrite property assignments of previous sources. * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 0.5.0 * @category Object * @param {Object} object The destination object. * @param {...Object} [sources] The source objects. * @returns {Object} Returns `object`. * @example * * var object = { * 'a': [{ 'b': 2 }, { 'd': 4 }] * }; * * var other = { * 'a': [{ 'c': 3 }, { 'e': 5 }] * }; * * _.merge(object, other); * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] } */ var merge = _createAssigner(function(object, source, srcIndex) { _baseMerge(object, source, srcIndex); }); /* harmony default export */ var lodash_es_merge = (merge); // EXTERNAL MODULE: ./node_modules/lodash-es/_baseForOwn.js var _baseForOwn = __webpack_require__(365); // CONCATENATED MODULE: ./node_modules/lodash-es/_baseIsMatch.js /** Used to compose bitmasks for value comparisons. */ var _baseIsMatch_COMPARE_PARTIAL_FLAG = 1, _baseIsMatch_COMPARE_UNORDERED_FLAG = 2; /** * The base implementation of `_.isMatch` without support for iteratee shorthands. * * @private * @param {Object} object The object to inspect. * @param {Object} source The object of property values to match. * @param {Array} matchData The property names, values, and compare flags to match. * @param {Function} [customizer] The function to customize comparisons. * @returns {boolean} Returns `true` if `object` is a match, else `false`. */ function baseIsMatch(object, source, matchData, customizer) { var index = matchData.length, length = index, noCustomizer = !customizer; if (object == null) { return !length; } object = Object(object); while (index--) { var data = matchData[index]; if ((noCustomizer && data[2]) ? data[1] !== object[data[0]] : !(data[0] in object) ) { return false; } } while (++index < length) { data = matchData[index]; var key = data[0], objValue = object[key], srcValue = data[1]; if (noCustomizer && data[2]) { if (objValue === undefined && !(key in object)) { return false; } } else { var stack = new _Stack["a" /* default */]; if (customizer) { var result = customizer(objValue, srcValue, key, object, source, stack); } if (!(result === undefined ? _baseIsEqual(srcValue, objValue, _baseIsMatch_COMPARE_PARTIAL_FLAG | _baseIsMatch_COMPARE_UNORDERED_FLAG, customizer, stack) : result )) { return false; } } } return true; } /* harmony default export */ var _baseIsMatch = (baseIsMatch); // CONCATENATED MODULE: ./node_modules/lodash-es/_isStrictComparable.js /** * Checks if `value` is suitable for strict equality comparisons, i.e. `===`. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` if suitable for strict * equality comparisons, else `false`. */ function isStrictComparable(value) { return value === value && !Object(isObject["a" /* default */])(value); } /* harmony default export */ var _isStrictComparable = (isStrictComparable); // EXTERNAL MODULE: ./node_modules/lodash-es/keys.js + 2 modules var lodash_es_keys = __webpack_require__(142); // CONCATENATED MODULE: ./node_modules/lodash-es/_getMatchData.js /** * Gets the property names, values, and compare flags of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the match data of `object`. */ function getMatchData(object) { var result = Object(lodash_es_keys["a" /* default */])(object), length = result.length; while (length--) { var key = result[length], value = object[key]; result[length] = [key, value, _isStrictComparable(value)]; } return result; } /* harmony default export */ var _getMatchData = (getMatchData); // CONCATENATED MODULE: ./node_modules/lodash-es/_matchesStrictComparable.js /** * A specialized version of `matchesProperty` for source values suitable * for strict equality comparisons, i.e. `===`. * * @private * @param {string} key The key of the property to get. * @param {*} srcValue The value to match. * @returns {Function} Returns the new spec function. */ function matchesStrictComparable(key, srcValue) { return function(object) { if (object == null) { return false; } return object[key] === srcValue && (srcValue !== undefined || (key in Object(object))); }; } /* harmony default export */ var _matchesStrictComparable = (matchesStrictComparable); // CONCATENATED MODULE: ./node_modules/lodash-es/_baseMatches.js /** * The base implementation of `_.matches` which doesn't clone `source`. * * @private * @param {Object} source The object of property values to match. * @returns {Function} Returns the new spec function. */ function baseMatches(source) { var matchData = _getMatchData(source); if (matchData.length == 1 && matchData[0][2]) { return _matchesStrictComparable(matchData[0][0], matchData[0][1]); } return function(object) { return object === source || _baseIsMatch(object, source, matchData); }; } /* harmony default export */ var _baseMatches = (baseMatches); // EXTERNAL MODULE: ./node_modules/lodash-es/_baseGet.js var _baseGet = __webpack_require__(244); // CONCATENATED MODULE: ./node_modules/lodash-es/get.js /** * Gets the value at `path` of `object`. If the resolved value is * `undefined`, the `defaultValue` is returned in its place. * * @static * @memberOf _ * @since 3.7.0 * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path of the property to get. * @param {*} [defaultValue] The value returned for `undefined` resolved values. * @returns {*} Returns the resolved value. * @example * * var object = { 'a': [{ 'b': { 'c': 3 } }] }; * * _.get(object, 'a[0].b.c'); * // => 3 * * _.get(object, ['a', '0', 'b', 'c']); * // => 3 * * _.get(object, 'a.b.c', 'default'); * // => 'default' */ function get_get(object, path, defaultValue) { var result = object == null ? undefined : Object(_baseGet["a" /* default */])(object, path); return result === undefined ? defaultValue : result; } /* harmony default export */ var lodash_es_get = (get_get); // CONCATENATED MODULE: ./node_modules/lodash-es/_baseHasIn.js /** * The base implementation of `_.hasIn` without support for deep paths. * * @private * @param {Object} [object] The object to query. * @param {Array|string} key The key to check. * @returns {boolean} Returns `true` if `key` exists, else `false`. */ function baseHasIn(object, key) { return object != null && key in Object(object); } /* harmony default export */ var _baseHasIn = (baseHasIn); // EXTERNAL MODULE: ./node_modules/lodash-es/_castPath.js var _castPath = __webpack_require__(176); // EXTERNAL MODULE: ./node_modules/lodash-es/isLength.js var isLength = __webpack_require__(237); // CONCATENATED MODULE: ./node_modules/lodash-es/_hasPath.js /** * Checks if `path` exists on `object`. * * @private * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @param {Function} hasFunc The function to check properties. * @returns {boolean} Returns `true` if `path` exists, else `false`. */ function hasPath(object, path, hasFunc) { path = Object(_castPath["a" /* default */])(path, object); var index = -1, length = path.length, result = false; while (++index < length) { var key = Object(_toKey["a" /* default */])(path[index]); if (!(result = object != null && hasFunc(object, key))) { break; } object = object[key]; } if (result || ++index != length) { return result; } length = object == null ? 0 : object.length; return !!length && Object(isLength["a" /* default */])(length) && Object(_isIndex["a" /* default */])(key, length) && (Object(isArray["a" /* default */])(object) || Object(isArguments["a" /* default */])(object)); } /* harmony default export */ var _hasPath = (hasPath); // CONCATENATED MODULE: ./node_modules/lodash-es/hasIn.js /** * Checks if `path` is a direct or inherited property of `object`. * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @returns {boolean} Returns `true` if `path` exists, else `false`. * @example * * var object = _.create({ 'a': _.create({ 'b': 2 }) }); * * _.hasIn(object, 'a'); * // => true * * _.hasIn(object, 'a.b'); * // => true * * _.hasIn(object, ['a', 'b']); * // => true * * _.hasIn(object, 'b'); * // => false */ function hasIn(object, path) { return object != null && _hasPath(object, path, _baseHasIn); } /* harmony default export */ var lodash_es_hasIn = (hasIn); // EXTERNAL MODULE: ./node_modules/lodash-es/_isKey.js var _isKey = __webpack_require__(243); // CONCATENATED MODULE: ./node_modules/lodash-es/_baseMatchesProperty.js /** Used to compose bitmasks for value comparisons. */ var _baseMatchesProperty_COMPARE_PARTIAL_FLAG = 1, _baseMatchesProperty_COMPARE_UNORDERED_FLAG = 2; /** * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`. * * @private * @param {string} path The path of the property to get. * @param {*} srcValue The value to match. * @returns {Function} Returns the new spec function. */ function baseMatchesProperty(path, srcValue) { if (Object(_isKey["a" /* default */])(path) && _isStrictComparable(srcValue)) { return _matchesStrictComparable(Object(_toKey["a" /* default */])(path), srcValue); } return function(object) { var objValue = lodash_es_get(object, path); return (objValue === undefined && objValue === srcValue) ? lodash_es_hasIn(object, path) : _baseIsEqual(srcValue, objValue, _baseMatchesProperty_COMPARE_PARTIAL_FLAG | _baseMatchesProperty_COMPARE_UNORDERED_FLAG); }; } /* harmony default export */ var _baseMatchesProperty = (baseMatchesProperty); // CONCATENATED MODULE: ./node_modules/lodash-es/_baseProperty.js /** * The base implementation of `_.property` without support for deep paths. * * @private * @param {string} key The key of the property to get. * @returns {Function} Returns the new accessor function. */ function baseProperty(key) { return function(object) { return object == null ? undefined : object[key]; }; } /* harmony default export */ var _baseProperty = (baseProperty); // CONCATENATED MODULE: ./node_modules/lodash-es/_basePropertyDeep.js /** * A specialized version of `baseProperty` which supports deep paths. * * @private * @param {Array|string} path The path of the property to get. * @returns {Function} Returns the new accessor function. */ function basePropertyDeep(path) { return function(object) { return Object(_baseGet["a" /* default */])(object, path); }; } /* harmony default export */ var _basePropertyDeep = (basePropertyDeep); // CONCATENATED MODULE: ./node_modules/lodash-es/property.js /** * Creates a function that returns the value at `path` of a given object. * * @static * @memberOf _ * @since 2.4.0 * @category Util * @param {Array|string} path The path of the property to get. * @returns {Function} Returns the new accessor function. * @example * * var objects = [ * { 'a': { 'b': 2 } }, * { 'a': { 'b': 1 } } * ]; * * _.map(objects, _.property('a.b')); * // => [2, 1] * * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b'); * // => [1, 2] */ function property(path) { return Object(_isKey["a" /* default */])(path) ? _baseProperty(Object(_toKey["a" /* default */])(path)) : _basePropertyDeep(path); } /* harmony default export */ var lodash_es_property = (property); // CONCATENATED MODULE: ./node_modules/lodash-es/_baseIteratee.js /** * The base implementation of `_.iteratee`. * * @private * @param {*} [value=_.identity] The value to convert to an iteratee. * @returns {Function} Returns the iteratee. */ function baseIteratee(value) { // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details. if (typeof value == 'function') { return value; } if (value == null) { return identity["a" /* default */]; } if (typeof value == 'object') { return Object(isArray["a" /* default */])(value) ? _baseMatchesProperty(value[0], value[1]) : _baseMatches(value); } return lodash_es_property(value); } /* harmony default export */ var _baseIteratee = (baseIteratee); // CONCATENATED MODULE: ./node_modules/lodash-es/mapValues.js /** * Creates an object with the same keys as `object` and values generated * by running each own enumerable string keyed property of `object` thru * `iteratee`. The iteratee is invoked with three arguments: * (value, key, object). * * @static * @memberOf _ * @since 2.4.0 * @category Object * @param {Object} object The object to iterate over. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Object} Returns the new mapped object. * @see _.mapKeys * @example * * var users = { * 'fred': { 'user': 'fred', 'age': 40 }, * 'pebbles': { 'user': 'pebbles', 'age': 1 } * }; * * _.mapValues(users, function(o) { return o.age; }); * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed) * * // The `_.property` iteratee shorthand. * _.mapValues(users, 'age'); * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed) */ function mapValues(object, iteratee) { var result = {}; iteratee = _baseIteratee(iteratee, 3); Object(_baseForOwn["a" /* default */])(object, function(value, key, object) { Object(_baseAssignValue["a" /* default */])(result, key, iteratee(value, key, object)); }); return result; } /* harmony default export */ var lodash_es_mapValues = (mapValues); // EXTERNAL MODULE: ./node_modules/redux-form/node_modules/hoist-non-react-statics/index.js var hoist_non_react_statics = __webpack_require__(833); var hoist_non_react_statics_default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics); // EXTERNAL MODULE: ./node_modules/is-promise/index.js var is_promise = __webpack_require__(241); var is_promise_default = /*#__PURE__*/__webpack_require__.n(is_promise); // EXTERNAL MODULE: ./node_modules/react/index.js var react = __webpack_require__(0); var react_default = /*#__PURE__*/__webpack_require__.n(react); // EXTERNAL MODULE: ./node_modules/prop-types/index.js var prop_types = __webpack_require__(3); var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types); // EXTERNAL MODULE: ./node_modules/react-redux/lib/index.js var lib = __webpack_require__(5); // EXTERNAL MODULE: ./node_modules/redux/es/index.js + 6 modules var es = __webpack_require__(58); // CONCATENATED MODULE: ./node_modules/redux-form/es/actions.js var actions_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var actions_arrayInsert = function arrayInsert(form, field, index, value) { return { type: ARRAY_INSERT, meta: { form: form, field: field, index: index }, payload: value }; }; var actions_arrayMove = function arrayMove(form, field, from, to) { return { type: ARRAY_MOVE, meta: { form: form, field: field, from: from, to: to } }; }; var actions_arrayPop = function arrayPop(form, field) { return { type: ARRAY_POP, meta: { form: form, field: field } }; }; var actions_arrayPush = function arrayPush(form, field, value) { return { type: ARRAY_PUSH, meta: { form: form, field: field }, payload: value }; }; var actions_arrayRemove = function arrayRemove(form, field, index) { return { type: ARRAY_REMOVE, meta: { form: form, field: field, index: index } }; }; var actions_arrayRemoveAll = function arrayRemoveAll(form, field) { return { type: ARRAY_REMOVE_ALL, meta: { form: form, field: field } }; }; var actions_arrayShift = function arrayShift(form, field) { return { type: ARRAY_SHIFT, meta: { form: form, field: field } }; }; var actions_arraySplice = function arraySplice(form, field, index, removeNum, value) { var action = { type: ARRAY_SPLICE, meta: { form: form, field: field, index: index, removeNum: removeNum } }; if (value !== undefined) { action.payload = value; } return action; }; var actions_arraySwap = function arraySwap(form, field, indexA, indexB) { if (indexA === indexB) { throw new Error('Swap indices cannot be equal'); } if (indexA < 0 || indexB < 0) { throw new Error('Swap indices cannot be negative'); } return { type: ARRAY_SWAP, meta: { form: form, field: field, indexA: indexA, indexB: indexB } }; }; var actions_arrayUnshift = function arrayUnshift(form, field, value) { return { type: ARRAY_UNSHIFT, meta: { form: form, field: field }, payload: value }; }; var actions_autofill = function autofill(form, field, value) { return { type: AUTOFILL, meta: { form: form, field: field }, payload: value }; }; var actions_blur = function blur(form, field, value, touch) { return { type: BLUR, meta: { form: form, field: field, touch: touch }, payload: value }; }; var actions_change = function change(form, field, value, touch, persistentSubmitErrors) { return { type: CHANGE, meta: { form: form, field: field, touch: touch, persistentSubmitErrors: persistentSubmitErrors }, payload: value }; }; var actions_clearSubmit = function clearSubmit(form) { return { type: CLEAR_SUBMIT, meta: { form: form } }; }; var actions_clearSubmitErrors = function clearSubmitErrors(form) { return { type: CLEAR_SUBMIT_ERRORS, meta: { form: form } }; }; var actions_clearAsyncError = function clearAsyncError(form, field) { return { type: CLEAR_ASYNC_ERROR, meta: { form: form, field: field } }; }; var actions_destroy = function destroy() { for (var _len = arguments.length, form = Array(_len), _key = 0; _key < _len; _key++) { form[_key] = arguments[_key]; } return { type: DESTROY, meta: { form: form } }; }; var actions_focus = function focus(form, field) { return { type: FOCUS, meta: { form: form, field: field } }; }; var actions_initialize = function initialize(form, values, keepDirty) { var otherMeta = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; if (keepDirty instanceof Object) { otherMeta = keepDirty; keepDirty = false; } return { type: INITIALIZE, meta: actions_extends({ form: form, keepDirty: keepDirty }, otherMeta), payload: values }; }; var actions_registerField = function registerField(form, name, type) { return { type: REGISTER_FIELD, meta: { form: form }, payload: { name: name, type: type } }; }; var actions_reset = function reset(form) { return { type: RESET, meta: { form: form } }; }; var actions_startAsyncValidation = function startAsyncValidation(form, field) { return { type: START_ASYNC_VALIDATION, meta: { form: form, field: field } }; }; var actions_startSubmit = function startSubmit(form) { return { type: START_SUBMIT, meta: { form: form } }; }; var actions_stopAsyncValidation = function stopAsyncValidation(form, errors) { var action = { type: STOP_ASYNC_VALIDATION, meta: { form: form }, payload: errors }; if (errors && Object.keys(errors).length) { action.error = true; } return action; }; var actions_stopSubmit = function stopSubmit(form, errors) { var action = { type: STOP_SUBMIT, meta: { form: form }, payload: errors }; if (errors && Object.keys(errors).length) { action.error = true; } return action; }; var actions_submit = function submit(form) { return { type: SUBMIT, meta: { form: form } }; }; var actions_setSubmitFailed = function setSubmitFailed(form) { for (var _len2 = arguments.length, fields = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { fields[_key2 - 1] = arguments[_key2]; } return { type: SET_SUBMIT_FAILED, meta: { form: form, fields: fields }, error: true }; }; var actions_setSubmitSucceeded = function setSubmitSucceeded(form) { for (var _len3 = arguments.length, fields = Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) { fields[_key3 - 1] = arguments[_key3]; } return { type: SET_SUBMIT_SUCCEEDED, meta: { form: form, fields: fields }, error: false }; }; var actions_touch = function touch(form) { for (var _len4 = arguments.length, fields = Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) { fields[_key4 - 1] = arguments[_key4]; } return { type: TOUCH, meta: { form: form, fields: fields } }; }; var actions_unregisterField = function unregisterField(form, name) { var destroyOnUnmount = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; return { type: UNREGISTER_FIELD, meta: { form: form }, payload: { name: name, destroyOnUnmount: destroyOnUnmount } }; }; var actions_untouch = function untouch(form) { for (var _len5 = arguments.length, fields = Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) { fields[_key5 - 1] = arguments[_key5]; } return { type: UNTOUCH, meta: { form: form, fields: fields } }; }; var actions_updateSyncErrors = function updateSyncErrors(form) { var syncErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var error = arguments[2]; return { type: UPDATE_SYNC_ERRORS, meta: { form: form }, payload: { syncErrors: syncErrors, error: error } }; }; var actions_updateSyncWarnings = function updateSyncWarnings(form) { var syncWarnings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var warning = arguments[2]; return { type: UPDATE_SYNC_WARNINGS, meta: { form: form }, payload: { syncWarnings: syncWarnings, warning: warning } }; }; // CONCATENATED MODULE: ./node_modules/redux-form/es/asyncValidation.js var asyncValidation_asyncValidation = function asyncValidation(fn, start, stop, field) { start(field); var promise = fn(); if (!is_promise_default()(promise)) { throw new Error('asyncValidate function passed to reduxForm must return a promise'); } var handleErrors = function handleErrors(rejected) { return function (errors) { if (errors && Object.keys(errors).length) { stop(errors); return errors; } else if (rejected) { stop(); throw new Error('Asynchronous validation promise was rejected without errors.'); } stop(); return Promise.resolve(); }; }; return promise.then(handleErrors(false), handleErrors(true)); }; /* harmony default export */ var es_asyncValidation = (asyncValidation_asyncValidation); // CONCATENATED MODULE: ./node_modules/redux-form/es/defaultShouldAsyncValidate.js var defaultShouldAsyncValidate = function defaultShouldAsyncValidate(_ref) { var initialized = _ref.initialized, trigger = _ref.trigger, pristine = _ref.pristine, syncValidationPasses = _ref.syncValidationPasses; if (!syncValidationPasses) { return false; } switch (trigger) { case 'blur': // blurring return true; case 'submit': // submitting, so only async validate if form is dirty or was never initialized // conversely, DON'T async validate if the form is pristine just as it was initialized return !pristine || !initialized; default: return false; } }; /* harmony default export */ var es_defaultShouldAsyncValidate = (defaultShouldAsyncValidate); // CONCATENATED MODULE: ./node_modules/redux-form/es/defaultShouldValidate.js var defaultShouldValidate = function defaultShouldValidate(_ref) { var values = _ref.values, nextProps = _ref.nextProps, initialRender = _ref.initialRender, lastFieldValidatorKeys = _ref.lastFieldValidatorKeys, fieldValidatorKeys = _ref.fieldValidatorKeys, structure = _ref.structure; if (initialRender) { return true; } return !structure.deepEqual(values, nextProps.values) || !structure.deepEqual(lastFieldValidatorKeys, fieldValidatorKeys); }; /* harmony default export */ var es_defaultShouldValidate = (defaultShouldValidate); // CONCATENATED MODULE: ./node_modules/redux-form/es/events/isEvent.js var isEvent = function isEvent(candidate) { return !!(candidate && candidate.stopPropagation && candidate.preventDefault); }; /* harmony default export */ var events_isEvent = (isEvent); // CONCATENATED MODULE: ./node_modules/redux-form/es/events/silenceEvent.js var silenceEvent_silenceEvent = function silenceEvent(event) { var is = events_isEvent(event); if (is) { event.preventDefault(); } return is; }; /* harmony default export */ var events_silenceEvent = (silenceEvent_silenceEvent); // CONCATENATED MODULE: ./node_modules/redux-form/es/events/silenceEvents.js var silenceEvents_silenceEvents = function silenceEvents(fn) { return function (event) { for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } return events_silenceEvent(event) ? fn.apply(undefined, args) : fn.apply(undefined, [event].concat(args)); }; }; /* harmony default export */ var events_silenceEvents = (silenceEvents_silenceEvents); // CONCATENATED MODULE: ./node_modules/redux-form/es/generateValidator.js var toArray = function toArray(value) { return Array.isArray(value) ? value : [value]; }; var getError = function getError(value, values, props, validators) { var array = toArray(validators); for (var i = 0; i < array.length; i++) { var error = array[i](value, values, props); if (error) { return error; } } }; var generateValidator_generateValidator = function generateValidator(validators, _ref) { var getIn = _ref.getIn; return function (values, props) { var errors = {}; Object.keys(validators).forEach(function (name) { var value = getIn(values, name); var error = getError(value, values, props, validators[name]); if (error) { errors = plain.setIn(errors, name, error); } }); return errors; }; }; /* harmony default export */ var es_generateValidator = (generateValidator_generateValidator); // CONCATENATED MODULE: ./node_modules/es6-error/es6/index.js function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function _extendableBuiltin(cls) { function ExtendableBuiltin() { cls.apply(this, arguments); } ExtendableBuiltin.prototype = Object.create(cls.prototype, { constructor: { value: cls, enumerable: false, writable: true, configurable: true } }); if (Object.setPrototypeOf) { Object.setPrototypeOf(ExtendableBuiltin, cls); } else { ExtendableBuiltin.__proto__ = cls; } return ExtendableBuiltin; } var ExtendableError = function (_extendableBuiltin2) { _inherits(ExtendableError, _extendableBuiltin2); function ExtendableError() { var message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; _classCallCheck(this, ExtendableError); // extending Error is weird and does not propagate `message` var _this = _possibleConstructorReturn(this, (ExtendableError.__proto__ || Object.getPrototypeOf(ExtendableError)).call(this, message)); Object.defineProperty(_this, 'message', { configurable: true, enumerable: false, value: message, writable: true }); Object.defineProperty(_this, 'name', { configurable: true, enumerable: false, value: _this.constructor.name, writable: true }); if (Error.hasOwnProperty('captureStackTrace')) { Error.captureStackTrace(_this, _this.constructor); return _possibleConstructorReturn(_this); } Object.defineProperty(_this, 'stack', { configurable: true, enumerable: false, value: new Error(message).stack, writable: true }); return _this; } return ExtendableError; }(_extendableBuiltin(Error)); /* harmony default export */ var es6 = (ExtendableError); // CONCATENATED MODULE: ./node_modules/redux-form/es/SubmissionError.js function SubmissionError_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function SubmissionError_possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function SubmissionError_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var SubmissionError = function (_ExtendableError) { SubmissionError_inherits(SubmissionError, _ExtendableError); function SubmissionError(errors) { SubmissionError_classCallCheck(this, SubmissionError); var _this = SubmissionError_possibleConstructorReturn(this, (SubmissionError.__proto__ || Object.getPrototypeOf(SubmissionError)).call(this, 'Submit Validation Failed')); _this.errors = errors; return _this; } return SubmissionError; }(es6); /* harmony default export */ var es_SubmissionError = (SubmissionError); // CONCATENATED MODULE: ./node_modules/redux-form/es/handleSubmit.js function handleSubmit_toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } var handleSubmit_handleSubmit = function handleSubmit(submit, props, valid, asyncValidate, fields) { var dispatch = props.dispatch, onSubmitFail = props.onSubmitFail, onSubmitSuccess = props.onSubmitSuccess, startSubmit = props.startSubmit, stopSubmit = props.stopSubmit, setSubmitFailed = props.setSubmitFailed, setSubmitSucceeded = props.setSubmitSucceeded, syncErrors = props.syncErrors, touch = props.touch, values = props.values, persistentSubmitErrors = props.persistentSubmitErrors; touch.apply(undefined, handleSubmit_toConsumableArray(fields)); // mark all fields as touched if (valid || persistentSubmitErrors) { var doSubmit = function doSubmit() { var result = void 0; try { result = submit(values, dispatch, props); } catch (submitError) { var error = submitError instanceof es_SubmissionError ? submitError.errors : undefined; stopSubmit(error); setSubmitFailed.apply(undefined, handleSubmit_toConsumableArray(fields)); if (onSubmitFail) { onSubmitFail(error, dispatch, submitError, props); } if (error || onSubmitFail) { // if you've provided an onSubmitFail callback, don't re-throw the error return error; } else { throw submitError; } } if (is_promise_default()(result)) { startSubmit(); return result.then(function (submitResult) { stopSubmit(); setSubmitSucceeded(); if (onSubmitSuccess) { onSubmitSuccess(submitResult, dispatch, props); } return submitResult; }, function (submitError) { var error = submitError instanceof es_SubmissionError ? submitError.errors : undefined; stopSubmit(error); setSubmitFailed.apply(undefined, handleSubmit_toConsumableArray(fields)); if (onSubmitFail) { onSubmitFail(error, dispatch, submitError, props); } if (error || onSubmitFail) { // if you've provided an onSubmitFail callback, don't re-throw the error return error; } else { throw submitError; } }); } else { setSubmitSucceeded(); if (onSubmitSuccess) { onSubmitSuccess(result, dispatch, props); } } return result; }; var asyncValidateResult = asyncValidate && asyncValidate(); if (asyncValidateResult) { return asyncValidateResult.then(function (asyncErrors) { if (asyncErrors) { throw asyncErrors; } return doSubmit(); }).catch(function (asyncErrors) { setSubmitFailed.apply(undefined, handleSubmit_toConsumableArray(fields)); if (onSubmitFail) { onSubmitFail(asyncErrors, dispatch, null, props); } return Promise.reject(asyncErrors); }); } else { return doSubmit(); } } else { setSubmitFailed.apply(undefined, handleSubmit_toConsumableArray(fields)); if (onSubmitFail) { onSubmitFail(syncErrors, dispatch, null, props); } return syncErrors; } }; /* harmony default export */ var es_handleSubmit = (handleSubmit_handleSubmit); // CONCATENATED MODULE: ./node_modules/redux-form/es/hasError.js var getErrorKeys = function getErrorKeys(name, type) { switch (type) { case 'Field': return [name, name + '._error']; case 'FieldArray': return [name + '._error']; default: throw new Error('Unknown field type'); } }; var createHasError = function createHasError(_ref) { var getIn = _ref.getIn; var hasError = function hasError(field, syncErrors, asyncErrors, submitErrors) { if (!syncErrors && !asyncErrors && !submitErrors) { return false; } var name = getIn(field, 'name'); var type = getIn(field, 'type'); return getErrorKeys(name, type).some(function (key) { return getIn(syncErrors, key) || getIn(asyncErrors, key) || getIn(submitErrors, key); }); }; return hasError; }; /* harmony default export */ var es_hasError = (createHasError); // CONCATENATED MODULE: ./node_modules/redux-form/es/selectors/isValid.js var isValid_createIsValid = function createIsValid(structure) { var getIn = structure.getIn, keys = structure.keys; var hasError = es_hasError(structure); return function (form) { var getFormState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (state) { return getIn(state, 'form'); }; var ignoreSubmitErrors = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; return function (state) { var formState = getFormState(state); var syncError = getIn(formState, form + '.syncError'); if (syncError) { return false; } if (!ignoreSubmitErrors) { var error = getIn(formState, form + '.error'); if (error) { return false; } } var syncErrors = getIn(formState, form + '.syncErrors'); var asyncErrors = getIn(formState, form + '.asyncErrors'); var submitErrors = ignoreSubmitErrors ? undefined : getIn(formState, form + '.submitErrors'); if (!syncErrors && !asyncErrors && !submitErrors) { return true; } var registeredFields = getIn(formState, form + '.registeredFields'); if (!registeredFields) { return true; } return !keys(registeredFields).filter(function (name) { return getIn(registeredFields, '[\'' + name + '\'].count') > 0; }).some(function (name) { return hasError(getIn(registeredFields, '[\'' + name + '\']'), syncErrors, asyncErrors, submitErrors); }); }; }; }; /* harmony default export */ var selectors_isValid = (isValid_createIsValid); // CONCATENATED MODULE: ./node_modules/redux-form/es/util/getDisplayName.js var getDisplayName = function getDisplayName(Comp) { return Comp.displayName || Comp.name || 'Component'; }; /* harmony default export */ var util_getDisplayName = (getDisplayName); // CONCATENATED MODULE: ./node_modules/redux-form/es/reduxForm.js var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var reduxForm_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; function reduxForm_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function reduxForm_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function reduxForm_possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function reduxForm_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function reduxForm_toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } function reduxForm_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } var isClassComponent = function isClassComponent(Component) { return Boolean(Component && Component.prototype && _typeof(Component.prototype.isReactComponent) === 'object'); }; // extract field-specific actions var reduxForm_arrayInsert = actions_arrayInsert, reduxForm_arrayMove = actions_arrayMove, reduxForm_arrayPop = actions_arrayPop, reduxForm_arrayPush = actions_arrayPush, reduxForm_arrayRemove = actions_arrayRemove, reduxForm_arrayRemoveAll = actions_arrayRemoveAll, reduxForm_arrayShift = actions_arrayShift, reduxForm_arraySplice = actions_arraySplice, reduxForm_arraySwap = actions_arraySwap, reduxForm_arrayUnshift = actions_arrayUnshift, reduxForm_blur = actions_blur, reduxForm_change = actions_change, reduxForm_focus = actions_focus, formActions = reduxForm_objectWithoutProperties(actions_namespaceObject, ['arrayInsert', 'arrayMove', 'arrayPop', 'arrayPush', 'arrayRemove', 'arrayRemoveAll', 'arrayShift', 'arraySplice', 'arraySwap', 'arrayUnshift', 'blur', 'change', 'focus']); var arrayActions = { arrayInsert: reduxForm_arrayInsert, arrayMove: reduxForm_arrayMove, arrayPop: reduxForm_arrayPop, arrayPush: reduxForm_arrayPush, arrayRemove: reduxForm_arrayRemove, arrayRemoveAll: reduxForm_arrayRemoveAll, arrayShift: reduxForm_arrayShift, arraySplice: reduxForm_arraySplice, arraySwap: reduxForm_arraySwap, arrayUnshift: reduxForm_arrayUnshift }; var propsToNotUpdateFor = [].concat(reduxForm_toConsumableArray(Object.keys(actions_namespaceObject)), ['array', 'asyncErrors', 'initialized', 'initialValues', 'syncErrors', 'syncWarnings', 'values', 'registeredFields']); var checkSubmit = function checkSubmit(submit) { if (!submit || typeof submit !== 'function') { throw new Error('You must either pass handleSubmit() an onSubmit function or pass onSubmit as a prop'); } return submit; }; /** * The decorator that is the main API to redux-form */ var reduxForm_createReduxForm = function createReduxForm(structure) { var deepEqual = structure.deepEqual, empty = structure.empty, getIn = structure.getIn, setIn = structure.setIn, keys = structure.keys, fromJS = structure.fromJS; var isValid = selectors_isValid(structure); return function (initialConfig) { var config = reduxForm_extends({ touchOnBlur: true, touchOnChange: false, persistentSubmitErrors: false, destroyOnUnmount: true, shouldAsyncValidate: es_defaultShouldAsyncValidate, shouldValidate: es_defaultShouldValidate, enableReinitialize: false, keepDirtyOnReinitialize: false, getFormState: function getFormState(state) { return getIn(state, 'form'); }, pure: true, forceUnregisterOnUnmount: false }, initialConfig); return function (WrappedComponent) { var Form = function (_Component) { reduxForm_inherits(Form, _Component); function Form(props) { reduxForm_classCallCheck(this, Form); var _this = reduxForm_possibleConstructorReturn(this, (Form.__proto__ || Object.getPrototypeOf(Form)).call(this, props)); _this.submit = _this.submit.bind(_this); _this.reset = _this.reset.bind(_this); _this.asyncValidate = _this.asyncValidate.bind(_this); _this.getValues = _this.getValues.bind(_this); _this.register = _this.register.bind(_this); _this.unregister = _this.unregister.bind(_this); _this.submitCompleted = _this.submitCompleted.bind(_this); _this.submitFailed = _this.submitFailed.bind(_this); _this.fieldValidators = {}; _this.lastFieldValidatorKeys = []; _this.fieldWarners = {}; _this.lastFieldWarnerKeys = []; return _this; } _createClass(Form, [{ key: 'getChildContext', value: function getChildContext() { var _this2 = this; return { _reduxForm: reduxForm_extends({}, this.props, { getFormState: function getFormState(state) { return getIn(_this2.props.getFormState(state), _this2.props.form); }, asyncValidate: this.asyncValidate, getValues: this.getValues, sectionPrefix: undefined, register: this.register, unregister: this.unregister, registerInnerOnSubmit: function registerInnerOnSubmit(innerOnSubmit) { return _this2.innerOnSubmit = innerOnSubmit; } }) }; } }, { key: 'initIfNeeded', value: function initIfNeeded(nextProps) { var enableReinitialize = this.props.enableReinitialize; if (nextProps) { if ((enableReinitialize || !nextProps.initialized) && !deepEqual(this.props.initialValues, nextProps.initialValues)) { var keepDirty = nextProps.initialized && this.props.keepDirtyOnReinitialize; this.props.initialize(nextProps.initialValues, keepDirty); } } else if (this.props.initialValues && (!this.props.initialized || enableReinitialize)) { this.props.initialize(this.props.initialValues, this.props.keepDirtyOnReinitialize); } } }, { key: 'updateSyncErrorsIfNeeded', value: function updateSyncErrorsIfNeeded(nextSyncErrors, nextError) { var _props = this.props, error = _props.error, updateSyncErrors = _props.updateSyncErrors; var noErrors = (!this.lastSyncErrors || !Object.keys(this.lastSyncErrors).length) && !error; var nextNoErrors = (!nextSyncErrors || !Object.keys(nextSyncErrors).length) && !nextError; if (!(noErrors && nextNoErrors) && (!plain.deepEqual(this.lastSyncErrors, nextSyncErrors) || !plain.deepEqual(error, nextError))) { this.lastSyncErrors = nextSyncErrors; updateSyncErrors(nextSyncErrors, nextError); } } }, { key: 'clearSubmitPromiseIfNeeded', value: function clearSubmitPromiseIfNeeded(nextProps) { var submitting = this.props.submitting; if (this.submitPromise && submitting && !nextProps.submitting) { delete this.submitPromise; } } }, { key: 'submitIfNeeded', value: function submitIfNeeded(nextProps) { var _props2 = this.props, clearSubmit = _props2.clearSubmit, triggerSubmit = _props2.triggerSubmit; if (!triggerSubmit && nextProps.triggerSubmit) { clearSubmit(); this.submit(); } } }, { key: 'validateIfNeeded', value: function validateIfNeeded(nextProps) { var _props3 = this.props, shouldValidate = _props3.shouldValidate, validate = _props3.validate, values = _props3.values; var fieldLevelValidate = this.generateValidator(); if (validate || fieldLevelValidate) { var initialRender = nextProps === undefined; var fieldValidatorKeys = Object.keys(this.getValidators()); var shouldValidateResult = shouldValidate({ values: values, nextProps: nextProps, props: this.props, initialRender: initialRender, lastFieldValidatorKeys: this.lastFieldValidatorKeys, fieldValidatorKeys: fieldValidatorKeys, structure: structure }); if (shouldValidateResult) { var propsToValidate = initialRender ? this.props : nextProps; var _merge2 = lodash_es_merge(validate ? validate(propsToValidate.values, propsToValidate) || {} : {}, fieldLevelValidate ? fieldLevelValidate(propsToValidate.values, propsToValidate) || {} : {}), _error = _merge2._error, nextSyncErrors = reduxForm_objectWithoutProperties(_merge2, ['_error']); this.lastFieldValidatorKeys = fieldValidatorKeys; this.updateSyncErrorsIfNeeded(nextSyncErrors, _error); } } } }, { key: 'updateSyncWarningsIfNeeded', value: function updateSyncWarningsIfNeeded(nextSyncWarnings, nextWarning) { var _props4 = this.props, warning = _props4.warning, syncWarnings = _props4.syncWarnings, updateSyncWarnings = _props4.updateSyncWarnings; var noWarnings = (!syncWarnings || !Object.keys(syncWarnings).length) && !warning; var nextNoWarnings = (!nextSyncWarnings || !Object.keys(nextSyncWarnings).length) && !nextWarning; if (!(noWarnings && nextNoWarnings) && (!plain.deepEqual(syncWarnings, nextSyncWarnings) || !plain.deepEqual(warning, nextWarning))) { updateSyncWarnings(nextSyncWarnings, nextWarning); } } }, { key: 'warnIfNeeded', value: function warnIfNeeded(nextProps) { var _props5 = this.props, shouldValidate = _props5.shouldValidate, warn = _props5.warn, values = _props5.values; var fieldLevelWarn = this.generateWarner(); if (warn || fieldLevelWarn) { var initialRender = nextProps === undefined; var fieldWarnerKeys = Object.keys(this.getWarners()); var shouldWarnResult = shouldValidate({ values: values, nextProps: nextProps, props: this.props, initialRender: initialRender, lastFieldValidatorKeys: this.lastFieldWarnerKeys, fieldValidatorKeys: fieldWarnerKeys, structure: structure }); if (shouldWarnResult) { var propsToWarn = initialRender ? this.props : nextProps; var _merge3 = lodash_es_merge(warn ? warn(propsToWarn.values, propsToWarn) : {}, fieldLevelWarn ? fieldLevelWarn(propsToWarn.values, propsToWarn) : {}), _warning = _merge3._warning, nextSyncWarnings = reduxForm_objectWithoutProperties(_merge3, ['_warning']); this.lastFieldWarnerKeys = fieldWarnerKeys; this.updateSyncWarningsIfNeeded(nextSyncWarnings, _warning); } } } }, { key: 'componentWillMount', value: function componentWillMount() { this.initIfNeeded(); this.validateIfNeeded(); this.warnIfNeeded(); } }, { key: 'componentWillReceiveProps', value: function componentWillReceiveProps(nextProps) { this.initIfNeeded(nextProps); this.validateIfNeeded(nextProps); this.warnIfNeeded(nextProps); this.clearSubmitPromiseIfNeeded(nextProps); this.submitIfNeeded(nextProps); if (nextProps.onChange) { if (!deepEqual(nextProps.values, this.props.values)) { nextProps.onChange(nextProps.values, nextProps.dispatch, nextProps); } } } }, { key: 'shouldComponentUpdate', value: function shouldComponentUpdate(nextProps) { var _this3 = this; if (!this.props.pure) return true; return Object.keys(nextProps).some(function (prop) { // useful to debug rerenders // if (!plain.deepEqual(this.props[ prop ], nextProps[ prop ])) { // console.info(prop, 'changed', this.props[ prop ], '==>', nextProps[ prop ]) // } return !~propsToNotUpdateFor.indexOf(prop) && !deepEqual(_this3.props[prop], nextProps[prop]); }); } }, { key: 'componentWillUnmount', value: function componentWillUnmount() { var _props6 = this.props, destroyOnUnmount = _props6.destroyOnUnmount, destroy = _props6.destroy; if (destroyOnUnmount) { this.destroyed = true; destroy(); } } }, { key: 'getValues', value: function getValues() { return this.props.values; } }, { key: 'isValid', value: function isValid() { return this.props.valid; } }, { key: 'isPristine', value: function isPristine() { return this.props.pristine; } }, { key: 'register', value: function register(name, type, getValidator, getWarner) { this.props.registerField(name, type); if (getValidator) { this.fieldValidators[name] = getValidator; } if (getWarner) { this.fieldWarners[name] = getWarner; } } }, { key: 'unregister', value: function unregister(name) { if (!this.destroyed) { if (this.props.destroyOnUnmount || this.props.forceUnregisterOnUnmount) { this.props.unregisterField(name); delete this.fieldValidators[name]; delete this.fieldWarners[name]; } else { this.props.unregisterField(name, false); } } } }, { key: 'getFieldList', value: function getFieldList(options) { var registeredFields = this.props.registeredFields; var list = []; if (!registeredFields) { return list; } var keySeq = keys(registeredFields); if (options && options.excludeFieldArray) { keySeq = keySeq.filter(function (name) { return getIn(registeredFields, '[\'' + name + '\'].type') !== 'FieldArray'; }); } return fromJS(keySeq.reduce(function (acc, key) { acc.push(key); return acc; }, list)); } }, { key: 'getValidators', value: function getValidators() { var _this4 = this; var validators = {}; Object.keys(this.fieldValidators).forEach(function (name) { var validator = _this4.fieldValidators[name](); if (validator) { validators[name] = validator; } }); return validators; } }, { key: 'generateValidator', value: function generateValidator() { var validators = this.getValidators(); return Object.keys(validators).length ? es_generateValidator(validators, structure) : undefined; } }, { key: 'getWarners', value: function getWarners() { var _this5 = this; var warners = {}; Object.keys(this.fieldWarners).forEach(function (name) { var warner = _this5.fieldWarners[name](); if (warner) { warners[name] = warner; } }); return warners; } }, { key: 'generateWarner', value: function generateWarner() { var warners = this.getWarners(); return Object.keys(warners).length ? es_generateValidator(warners, structure) : undefined; } }, { key: 'asyncValidate', value: function asyncValidate(name, value) { var _this6 = this; var _props7 = this.props, asyncBlurFields = _props7.asyncBlurFields, asyncErrors = _props7.asyncErrors, asyncValidate = _props7.asyncValidate, dispatch = _props7.dispatch, initialized = _props7.initialized, pristine = _props7.pristine, shouldAsyncValidate = _props7.shouldAsyncValidate, startAsyncValidation = _props7.startAsyncValidation, stopAsyncValidation = _props7.stopAsyncValidation, syncErrors = _props7.syncErrors, values = _props7.values; var submitting = !name; if (asyncValidate) { var valuesToValidate = submitting ? values : setIn(values, name, value); var syncValidationPasses = submitting || !getIn(syncErrors, name); var isBlurredField = !submitting && (!asyncBlurFields || ~asyncBlurFields.indexOf(name.replace(/\[[0-9]+\]/g, '[]'))); if ((isBlurredField || submitting) && shouldAsyncValidate({ asyncErrors: asyncErrors, initialized: initialized, trigger: submitting ? 'submit' : 'blur', blurredField: name, pristine: pristine, syncValidationPasses: syncValidationPasses })) { return es_asyncValidation(function () { return asyncValidate(valuesToValidate, dispatch, _this6.props, name); }, startAsyncValidation, stopAsyncValidation, name); } } } }, { key: 'submitCompleted', value: function submitCompleted(result) { delete this.submitPromise; return result; } }, { key: 'submitFailed', value: function submitFailed(error) { delete this.submitPromise; throw error; } }, { key: 'listenToSubmit', value: function listenToSubmit(promise) { if (!is_promise_default()(promise)) { return promise; } this.submitPromise = promise; return promise.then(this.submitCompleted, this.submitFailed); } }, { key: 'submit', value: function submit(submitOrEvent) { var _this7 = this; var _props8 = this.props, onSubmit = _props8.onSubmit, blur = _props8.blur, change = _props8.change, dispatch = _props8.dispatch; if (!submitOrEvent || events_silenceEvent(submitOrEvent)) { // submitOrEvent is an event: fire submit if not already submitting if (!this.submitPromise) { if (this.innerOnSubmit) { // will call "submitOrEvent is the submit function" block below return this.innerOnSubmit(); } else { return this.listenToSubmit(es_handleSubmit(checkSubmit(onSubmit), reduxForm_extends({}, this.props, Object(es["bindActionCreators"])({ blur: blur, change: change }, dispatch)), this.props.validExceptSubmit, this.asyncValidate, this.getFieldList({ excludeFieldArray: true }))); } } } else { // submitOrEvent is the submit function: return deferred submit thunk return events_silenceEvents(function () { return !_this7.submitPromise && _this7.listenToSubmit(es_handleSubmit(checkSubmit(submitOrEvent), reduxForm_extends({}, _this7.props, Object(es["bindActionCreators"])({ blur: blur, change: change }, dispatch)), _this7.props.validExceptSubmit, _this7.asyncValidate, _this7.getFieldList({ excludeFieldArray: true }))); }); } } }, { key: 'reset', value: function reset() { this.props.reset(); } }, { key: 'render', value: function render() { // remove some redux-form config-only props /* eslint-disable no-unused-vars */ var _props9 = this.props, anyTouched = _props9.anyTouched, arrayInsert = _props9.arrayInsert, arrayMove = _props9.arrayMove, arrayPop = _props9.arrayPop, arrayPush = _props9.arrayPush, arrayRemove = _props9.arrayRemove, arrayRemoveAll = _props9.arrayRemoveAll, arrayShift = _props9.arrayShift, arraySplice = _props9.arraySplice, arraySwap = _props9.arraySwap, arrayUnshift = _props9.arrayUnshift, asyncErrors = _props9.asyncErrors, asyncValidate = _props9.asyncValidate, asyncValidating = _props9.asyncValidating, blur = _props9.blur, change = _props9.change, destroy = _props9.destroy, destroyOnUnmount = _props9.destroyOnUnmount, forceUnregisterOnUnmount = _props9.forceUnregisterOnUnmount, dirty = _props9.dirty, dispatch = _props9.dispatch, enableReinitialize = _props9.enableReinitialize, error = _props9.error, focus = _props9.focus, form = _props9.form, getFormState = _props9.getFormState, initialize = _props9.initialize, initialized = _props9.initialized, initialValues = _props9.initialValues, invalid = _props9.invalid, keepDirtyOnReinitialize = _props9.keepDirtyOnReinitialize, pristine = _props9.pristine, propNamespace = _props9.propNamespace, registeredFields = _props9.registeredFields, registerField = _props9.registerField, reset = _props9.reset, setSubmitFailed = _props9.setSubmitFailed, setSubmitSucceeded = _props9.setSubmitSucceeded, shouldAsyncValidate = _props9.shouldAsyncValidate, shouldValidate = _props9.shouldValidate, startAsyncValidation = _props9.startAsyncValidation, startSubmit = _props9.startSubmit, stopAsyncValidation = _props9.stopAsyncValidation, stopSubmit = _props9.stopSubmit, submitting = _props9.submitting, submitFailed = _props9.submitFailed, submitSucceeded = _props9.submitSucceeded, touch = _props9.touch, touchOnBlur = _props9.touchOnBlur, touchOnChange = _props9.touchOnChange, persistentSubmitErrors = _props9.persistentSubmitErrors, syncErrors = _props9.syncErrors, syncWarnings = _props9.syncWarnings, unregisterField = _props9.unregisterField, untouch = _props9.untouch, updateSyncErrors = _props9.updateSyncErrors, updateSyncWarnings = _props9.updateSyncWarnings, valid = _props9.valid, validExceptSubmit = _props9.validExceptSubmit, values = _props9.values, warning = _props9.warning, rest = reduxForm_objectWithoutProperties(_props9, ['anyTouched', 'arrayInsert', 'arrayMove', 'arrayPop', 'arrayPush', 'arrayRemove', 'arrayRemoveAll', 'arrayShift', 'arraySplice', 'arraySwap', 'arrayUnshift', 'asyncErrors', 'asyncValidate', 'asyncValidating', 'blur', 'change', 'destroy', 'destroyOnUnmount', 'forceUnregisterOnUnmount', 'dirty', 'dispatch', 'enableReinitialize', 'error', 'focus', 'form', 'getFormState', 'initialize', 'initialized', 'initialValues', 'invalid', 'keepDirtyOnReinitialize', 'pristine', 'propNamespace', 'registeredFields', 'registerField', 'reset', 'setSubmitFailed', 'setSubmitSucceeded', 'shouldAsyncValidate', 'shouldValidate', 'startAsyncValidation', 'startSubmit', 'stopAsyncValidation', 'stopSubmit', 'submitting', 'submitFailed', 'submitSucceeded', 'touch', 'touchOnBlur', 'touchOnChange', 'persistentSubmitErrors', 'syncErrors', 'syncWarnings', 'unregisterField', 'untouch', 'updateSyncErrors', 'updateSyncWarnings', 'valid', 'validExceptSubmit', 'values', 'warning']); /* eslint-enable no-unused-vars */ var reduxFormProps = reduxForm_extends({ anyTouched: anyTouched, asyncValidate: this.asyncValidate, asyncValidating: asyncValidating }, Object(es["bindActionCreators"])({ blur: blur, change: change }, dispatch), { destroy: destroy, dirty: dirty, dispatch: dispatch, error: error, form: form, handleSubmit: this.submit, initialize: initialize, initialized: initialized, initialValues: initialValues, invalid: invalid, pristine: pristine, reset: reset, submitting: submitting, submitFailed: submitFailed, submitSucceeded: submitSucceeded, touch: touch, untouch: untouch, valid: valid, warning: warning }); var propsToPass = reduxForm_extends({}, propNamespace ? reduxForm_defineProperty({}, propNamespace, reduxFormProps) : reduxFormProps, rest); if (isClassComponent(WrappedComponent)) { propsToPass.ref = 'wrapped'; } return Object(react["createElement"])(WrappedComponent, propsToPass); } }]); return Form; }(react["Component"]); Form.displayName = 'Form(' + util_getDisplayName(WrappedComponent) + ')'; Form.WrappedComponent = WrappedComponent; Form.childContextTypes = { _reduxForm: prop_types_default.a.object.isRequired }; Form.propTypes = { destroyOnUnmount: prop_types_default.a.bool, forceUnregisterOnUnmount: prop_types_default.a.bool, form: prop_types_default.a.string.isRequired, initialValues: prop_types_default.a.object, getFormState: prop_types_default.a.func, onSubmitFail: prop_types_default.a.func, onSubmitSuccess: prop_types_default.a.func, propNameSpace: prop_types_default.a.string, validate: prop_types_default.a.func, warn: prop_types_default.a.func, touchOnBlur: prop_types_default.a.bool, touchOnChange: prop_types_default.a.bool, triggerSubmit: prop_types_default.a.bool, persistentSubmitErrors: prop_types_default.a.bool, registeredFields: prop_types_default.a.any }; var connector = Object(lib["connect"])(function (state, props) { var form = props.form, getFormState = props.getFormState, initialValues = props.initialValues, enableReinitialize = props.enableReinitialize, keepDirtyOnReinitialize = props.keepDirtyOnReinitialize; var formState = getIn(getFormState(state) || empty, form) || empty; var stateInitial = getIn(formState, 'initial'); var initialized = !!stateInitial; var shouldUpdateInitialValues = enableReinitialize && initialized && !deepEqual(initialValues, stateInitial); var shouldResetValues = shouldUpdateInitialValues && !keepDirtyOnReinitialize; var initial = initialValues || stateInitial || empty; if (shouldUpdateInitialValues) { initial = stateInitial || empty; } var values = getIn(formState, 'values') || initial; if (shouldResetValues) { values = initial; } var pristine = shouldResetValues || deepEqual(initial, values); var asyncErrors = getIn(formState, 'asyncErrors'); var syncErrors = getIn(formState, 'syncErrors') || {}; var syncWarnings = getIn(formState, 'syncWarnings') || {}; var registeredFields = getIn(formState, 'registeredFields'); var valid = isValid(form, getFormState, false)(state); var validExceptSubmit = isValid(form, getFormState, true)(state); var anyTouched = !!getIn(formState, 'anyTouched'); var submitting = !!getIn(formState, 'submitting'); var submitFailed = !!getIn(formState, 'submitFailed'); var submitSucceeded = !!getIn(formState, 'submitSucceeded'); var error = getIn(formState, 'error'); var warning = getIn(formState, 'warning'); var triggerSubmit = getIn(formState, 'triggerSubmit'); return { anyTouched: anyTouched, asyncErrors: asyncErrors, asyncValidating: getIn(formState, 'asyncValidating') || false, dirty: !pristine, error: error, initialized: initialized, invalid: !valid, pristine: pristine, registeredFields: registeredFields, submitting: submitting, submitFailed: submitFailed, submitSucceeded: submitSucceeded, syncErrors: syncErrors, syncWarnings: syncWarnings, triggerSubmit: triggerSubmit, values: values, valid: valid, validExceptSubmit: validExceptSubmit, warning: warning }; }, function (dispatch, initialProps) { var bindForm = function bindForm(actionCreator) { return actionCreator.bind(null, initialProps.form); }; // Bind the first parameter on `props.form` var boundFormACs = lodash_es_mapValues(formActions, bindForm); var boundArrayACs = lodash_es_mapValues(arrayActions, bindForm); var boundBlur = function boundBlur(field, value) { return reduxForm_blur(initialProps.form, field, value, !!initialProps.touchOnBlur); }; var boundChange = function boundChange(field, value) { return reduxForm_change(initialProps.form, field, value, !!initialProps.touchOnChange, !!initialProps.persistentSubmitErrors); }; var boundFocus = bindForm(reduxForm_focus); // Wrap action creators with `dispatch` var connectedFormACs = Object(es["bindActionCreators"])(boundFormACs, dispatch); var connectedArrayACs = { insert: Object(es["bindActionCreators"])(boundArrayACs.arrayInsert, dispatch), move: Object(es["bindActionCreators"])(boundArrayACs.arrayMove, dispatch), pop: Object(es["bindActionCreators"])(boundArrayACs.arrayPop, dispatch), push: Object(es["bindActionCreators"])(boundArrayACs.arrayPush, dispatch), remove: Object(es["bindActionCreators"])(boundArrayACs.arrayRemove, dispatch), removeAll: Object(es["bindActionCreators"])(boundArrayACs.arrayRemoveAll, dispatch), shift: Object(es["bindActionCreators"])(boundArrayACs.arrayShift, dispatch), splice: Object(es["bindActionCreators"])(boundArrayACs.arraySplice, dispatch), swap: Object(es["bindActionCreators"])(boundArrayACs.arraySwap, dispatch), unshift: Object(es["bindActionCreators"])(boundArrayACs.arrayUnshift, dispatch) }; var computedActions = reduxForm_extends({}, connectedFormACs, boundArrayACs, { blur: boundBlur, change: boundChange, array: connectedArrayACs, focus: boundFocus, dispatch: dispatch }); return function () { return computedActions; }; }, undefined, { withRef: true }); var ConnectedForm = hoist_non_react_statics_default()(connector(Form), WrappedComponent); ConnectedForm.defaultProps = config; // build outer component to expose instance api return function (_Component2) { reduxForm_inherits(ReduxForm, _Component2); function ReduxForm() { reduxForm_classCallCheck(this, ReduxForm); return reduxForm_possibleConstructorReturn(this, (ReduxForm.__proto__ || Object.getPrototypeOf(ReduxForm)).apply(this, arguments)); } _createClass(ReduxForm, [{ key: 'submit', value: function submit() { return this.refs.wrapped.getWrappedInstance().submit(); } }, { key: 'reset', value: function reset() { return this.refs.wrapped.getWrappedInstance().reset(); } }, { key: 'render', value: function render() { var _props10 = this.props, initialValues = _props10.initialValues, rest = reduxForm_objectWithoutProperties(_props10, ['initialValues']); return Object(react["createElement"])(ConnectedForm, reduxForm_extends({}, rest, { ref: 'wrapped', // convert initialValues if need to initialValues: fromJS(initialValues) })); } }, { key: 'valid', get: function get() { return this.refs.wrapped.getWrappedInstance().isValid(); } }, { key: 'invalid', get: function get() { return !this.valid; } }, { key: 'pristine', get: function get() { return this.refs.wrapped.getWrappedInstance().isPristine(); } }, { key: 'dirty', get: function get() { return !this.pristine; } }, { key: 'values', get: function get() { return this.refs.wrapped.getWrappedInstance().getValues(); } }, { key: 'fieldList', get: function get() { // mainly provided for testing return this.refs.wrapped.getWrappedInstance().getFieldList(); } }, { key: 'wrappedInstance', get: function get() { // for testine return this.refs.wrapped.getWrappedInstance().refs.wrapped; } }]); return ReduxForm; }(react["Component"]); }; }; }; /* harmony default export */ var reduxForm = (reduxForm_createReduxForm); // EXTERNAL MODULE: ./node_modules/invariant/browser.js var browser = __webpack_require__(42); var browser_default = /*#__PURE__*/__webpack_require__.n(browser); // CONCATENATED MODULE: ./node_modules/redux-form/es/createFieldProps.js var createFieldProps_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function createFieldProps_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } var processProps = function processProps(type, props, _value) { var value = props.value; if (type === 'checkbox') { return createFieldProps_extends({}, props, { checked: !!value }); } if (type === 'radio') { return createFieldProps_extends({}, props, { checked: value === _value, value: _value }); } if (type === 'select-multiple') { return createFieldProps_extends({}, props, { value: value || [] }); } if (type === 'file') { return createFieldProps_extends({}, props, { value: value || undefined }); } return props; }; var createFieldProps = function createFieldProps(_ref2, name, _ref) { var getIn = _ref2.getIn, toJS = _ref2.toJS; var asyncError = _ref.asyncError, asyncValidating = _ref.asyncValidating, onBlur = _ref.onBlur, onChange = _ref.onChange, onDrop = _ref.onDrop, onDragStart = _ref.onDragStart, dirty = _ref.dirty, dispatch = _ref.dispatch, onFocus = _ref.onFocus, form = _ref.form, format = _ref.format, parse = _ref.parse, pristine = _ref.pristine, props = _ref.props, state = _ref.state, submitError = _ref.submitError, submitFailed = _ref.submitFailed, submitting = _ref.submitting, syncError = _ref.syncError, syncWarning = _ref.syncWarning, validate = _ref.validate, value = _ref.value, _value = _ref._value, warn = _ref.warn, custom = createFieldProps_objectWithoutProperties(_ref, ['asyncError', 'asyncValidating', 'onBlur', 'onChange', 'onDrop', 'onDragStart', 'dirty', 'dispatch', 'onFocus', 'form', 'format', 'parse', 'pristine', 'props', 'state', 'submitError', 'submitFailed', 'submitting', 'syncError', 'syncWarning', 'validate', 'value', '_value', 'warn']); var error = syncError || asyncError || submitError; var warning = syncWarning; var formatFieldValue = function formatFieldValue(value, format) { if (format === null) { return value; } var defaultFormattedValue = value == null ? '' : value; return format ? format(value, name) : defaultFormattedValue; }; var formattedFieldValue = formatFieldValue(value, format); return { input: processProps(custom.type, { name: name, onBlur: onBlur, onChange: onChange, onDragStart: onDragStart, onDrop: onDrop, onFocus: onFocus, value: formattedFieldValue }, _value), meta: createFieldProps_extends({}, toJS(state), { active: !!(state && getIn(state, 'active')), asyncValidating: asyncValidating, autofilled: !!(state && getIn(state, 'autofilled')), dirty: dirty, dispatch: dispatch, error: error, form: form, warning: warning, invalid: !!error, pristine: pristine, submitting: !!submitting, submitFailed: !!submitFailed, touched: !!(state && getIn(state, 'touched')), valid: !error, visited: !!(state && getIn(state, 'visited')) }), custom: createFieldProps_extends({}, custom, props) }; }; /* harmony default export */ var es_createFieldProps = (createFieldProps); // CONCATENATED MODULE: ./node_modules/redux-form/es/events/getValue.js var getSelectedValues = function getSelectedValues(options) { var result = []; if (options) { for (var index = 0; index < options.length; index++) { var option = options[index]; if (option.selected) { result.push(option.value); } } } return result; }; var getValue_getValue = function getValue(event, isReactNative) { if (events_isEvent(event)) { if (!isReactNative && event.nativeEvent && event.nativeEvent.text !== undefined) { return event.nativeEvent.text; } if (isReactNative && event.nativeEvent !== undefined) { return event.nativeEvent.text; } var _event$target = event.target, type = _event$target.type, value = _event$target.value, checked = _event$target.checked, files = _event$target.files, dataTransfer = event.dataTransfer; if (type === 'checkbox') { return checked; } if (type === 'file') { return files || dataTransfer && dataTransfer.files; } if (type === 'select-multiple') { return getSelectedValues(event.target.options); } return value; } return event; }; /* harmony default export */ var events_getValue = (getValue_getValue); // CONCATENATED MODULE: ./node_modules/redux-form/es/isReactNative.js var isReactNative_isReactNative = typeof window !== 'undefined' && window.navigator && window.navigator.product && window.navigator.product === 'ReactNative'; /* harmony default export */ var es_isReactNative = (isReactNative_isReactNative); // CONCATENATED MODULE: ./node_modules/redux-form/es/events/onChangeValue.js var onChangeValue_onChangeValue = function onChangeValue(event, _ref) { var name = _ref.name, parse = _ref.parse, normalize = _ref.normalize; // read value from input var value = events_getValue(event, es_isReactNative); // parse value if we have a parser if (parse) { value = parse(value, name); } // normalize value if (normalize) { value = normalize(name, value); } return value; }; /* harmony default export */ var events_onChangeValue = (onChangeValue_onChangeValue); // CONCATENATED MODULE: ./node_modules/redux-form/es/util/eventConsts.js var dataKey = 'text'; // CONCATENATED MODULE: ./node_modules/redux-form/es/ConnectedField.js var ConnectedField_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var ConnectedField_createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function ConnectedField_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } function ConnectedField_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function ConnectedField_possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function ConnectedField_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var ConnectedField_propsToNotUpdateFor = ['_reduxForm']; var ConnectedField_createConnectedField = function createConnectedField(_ref) { var deepEqual = _ref.deepEqual, getIn = _ref.getIn, toJS = _ref.toJS; var getSyncError = function getSyncError(syncErrors, name) { var error = plain.getIn(syncErrors, name); // Because the error for this field might not be at a level in the error structure where // it can be set directly, it might need to be unwrapped from the _error property return error && error._error ? error._error : error; }; var getSyncWarning = function getSyncWarning(syncWarnings, name) { var warning = getIn(syncWarnings, name); // Because the warning for this field might not be at a level in the warning structure where // it can be set directly, it might need to be unwrapped from the _warning property return warning && warning._warning ? warning._warning : warning; }; var ConnectedField = function (_Component) { ConnectedField_inherits(ConnectedField, _Component); function ConnectedField(props) { ConnectedField_classCallCheck(this, ConnectedField); var _this = ConnectedField_possibleConstructorReturn(this, (ConnectedField.__proto__ || Object.getPrototypeOf(ConnectedField)).call(this, props)); _this.handleChange = _this.handleChange.bind(_this); _this.handleFocus = _this.handleFocus.bind(_this); _this.handleBlur = _this.handleBlur.bind(_this); _this.handleDragStart = _this.handleDragStart.bind(_this); _this.handleDrop = _this.handleDrop.bind(_this); return _this; } ConnectedField_createClass(ConnectedField, [{ key: 'shouldComponentUpdate', value: function shouldComponentUpdate(nextProps) { var _this2 = this; var nextPropsKeys = Object.keys(nextProps); var thisPropsKeys = Object.keys(this.props); return nextPropsKeys.length !== thisPropsKeys.length || nextPropsKeys.some(function (prop) { return !~ConnectedField_propsToNotUpdateFor.indexOf(prop) && !deepEqual(_this2.props[prop], nextProps[prop]); }); } }, { key: 'isPristine', value: function isPristine() { return this.props.pristine; } }, { key: 'getValue', value: function getValue() { return this.props.value; } }, { key: 'getRenderedComponent', value: function getRenderedComponent() { return this.refs.renderedComponent; } }, { key: 'handleChange', value: function handleChange(event) { var _props = this.props, name = _props.name, dispatch = _props.dispatch, parse = _props.parse, normalize = _props.normalize, onChange = _props.onChange, _reduxForm = _props._reduxForm, previousValue = _props.value; var newValue = events_onChangeValue(event, { name: name, parse: parse, normalize: normalize }); var defaultPrevented = false; if (onChange) { onChange(ConnectedField_extends({}, event, { preventDefault: function preventDefault() { defaultPrevented = true; return event.preventDefault(); } }), newValue, previousValue); } if (!defaultPrevented) { // dispatch change action dispatch(_reduxForm.change(name, newValue)); } } }, { key: 'handleFocus', value: function handleFocus(event) { var _props2 = this.props, name = _props2.name, dispatch = _props2.dispatch, onFocus = _props2.onFocus, _reduxForm = _props2._reduxForm; var defaultPrevented = false; if (onFocus) { onFocus(ConnectedField_extends({}, event, { preventDefault: function preventDefault() { defaultPrevented = true; return event.preventDefault(); } })); } if (!defaultPrevented) { dispatch(_reduxForm.focus(name)); } } }, { key: 'handleBlur', value: function handleBlur(event) { var _props3 = this.props, name = _props3.name, dispatch = _props3.dispatch, parse = _props3.parse, normalize = _props3.normalize, onBlur = _props3.onBlur, _reduxForm = _props3._reduxForm, _value = _props3._value, previousValue = _props3.value; var newValue = events_onChangeValue(event, { name: name, parse: parse, normalize: normalize }); // for checkbox and radio, if the value property of checkbox or radio equals // the value passed by blur event, then fire blur action with previousValue. if (newValue === _value && _value !== undefined) { newValue = previousValue; } var defaultPrevented = false; if (onBlur) { onBlur(ConnectedField_extends({}, event, { preventDefault: function preventDefault() { defaultPrevented = true; return event.preventDefault(); } }), newValue, previousValue); } if (!defaultPrevented) { // dispatch blur action dispatch(_reduxForm.blur(name, newValue)); // call post-blur callback if (_reduxForm.asyncValidate) { _reduxForm.asyncValidate(name, newValue); } } } }, { key: 'handleDragStart', value: function handleDragStart(event) { var _props4 = this.props, onDragStart = _props4.onDragStart, value = _props4.value; event.dataTransfer.setData(dataKey, value == null ? '' : value); if (onDragStart) { onDragStart(event); } } }, { key: 'handleDrop', value: function handleDrop(event) { var _props5 = this.props, name = _props5.name, dispatch = _props5.dispatch, onDrop = _props5.onDrop, _reduxForm = _props5._reduxForm, previousValue = _props5.value; var newValue = event.dataTransfer.getData(dataKey); var defaultPrevented = false; if (onDrop) { onDrop(ConnectedField_extends({}, event, { preventDefault: function preventDefault() { defaultPrevented = true; return event.preventDefault(); } }), newValue, previousValue); } if (!defaultPrevented) { // dispatch change action dispatch(_reduxForm.change(name, newValue)); event.preventDefault(); } } }, { key: 'render', value: function render() { var _props6 = this.props, component = _props6.component, withRef = _props6.withRef, name = _props6.name, _reduxForm = _props6._reduxForm, normalize = _props6.normalize, onBlur = _props6.onBlur, onChange = _props6.onChange, onFocus = _props6.onFocus, onDragStart = _props6.onDragStart, onDrop = _props6.onDrop, rest = ConnectedField_objectWithoutProperties(_props6, ['component', 'withRef', 'name', '_reduxForm', 'normalize', 'onBlur', 'onChange', 'onFocus', 'onDragStart', 'onDrop']); var _createFieldProps = es_createFieldProps({ getIn: getIn, toJS: toJS }, name, ConnectedField_extends({}, rest, { form: _reduxForm.form, onBlur: this.handleBlur, onChange: this.handleChange, onDrop: this.handleDrop, onDragStart: this.handleDragStart, onFocus: this.handleFocus })), custom = _createFieldProps.custom, props = ConnectedField_objectWithoutProperties(_createFieldProps, ['custom']); if (withRef) { custom.ref = 'renderedComponent'; } if (typeof component === 'string') { var input = props.input, meta = props.meta; // eslint-disable-line no-unused-vars // flatten input into other props return Object(react["createElement"])(component, ConnectedField_extends({}, input, custom)); } else { return Object(react["createElement"])(component, ConnectedField_extends({}, props, custom)); } } }]); return ConnectedField; }(react["Component"]); ConnectedField.propTypes = { component: prop_types_default.a.oneOfType([prop_types_default.a.func, prop_types_default.a.string]).isRequired, props: prop_types_default.a.object }; var connector = Object(lib["connect"])(function (state, ownProps) { var name = ownProps.name, _ownProps$_reduxForm = ownProps._reduxForm, initialValues = _ownProps$_reduxForm.initialValues, getFormState = _ownProps$_reduxForm.getFormState; var formState = getFormState(state); var initialState = getIn(formState, 'initial.' + name); var initial = initialState !== undefined ? initialState : initialValues && getIn(initialValues, name); var value = getIn(formState, 'values.' + name); var submitting = getIn(formState, 'submitting'); var syncError = getSyncError(getIn(formState, 'syncErrors'), name); var syncWarning = getSyncWarning(getIn(formState, 'syncWarnings'), name); var pristine = deepEqual(value, initial); return { asyncError: getIn(formState, 'asyncErrors.' + name), asyncValidating: getIn(formState, 'asyncValidating') === name, dirty: !pristine, pristine: pristine, state: getIn(formState, 'fields.' + name), submitError: getIn(formState, 'submitErrors.' + name), submitFailed: getIn(formState, 'submitFailed'), submitting: submitting, syncError: syncError, syncWarning: syncWarning, value: value, _value: ownProps.value // save value passed in (for checkboxes) }; }, undefined, undefined, { withRef: true }); return connector(ConnectedField); }; /* harmony default export */ var es_ConnectedField = (ConnectedField_createConnectedField); // CONCATENATED MODULE: ./node_modules/redux-form/es/util/shallowCompare.js var shallowCompare_customizer = function customizer(objectValue, otherValue, indexOrkey, object, other, stack) { // https://lodash.com/docs/4.17.4#isEqualWith if (stack) { // Shallow compares // For 1st level, stack === undefined. // -> Do nothing (and implicitly return undefined so that it goes to compare 2nd level) // For 2nd level and up, stack !== undefined. // -> Compare by === operator return objectValue === otherValue; } }; var shallowCompare_shallowCompare = function shallowCompare(instance, nextProps, nextState) { return !lodash_es_isEqualWith(instance.props, nextProps, shallowCompare_customizer) || !lodash_es_isEqualWith(instance.state, nextState, shallowCompare_customizer); }; /* harmony default export */ var util_shallowCompare = (shallowCompare_shallowCompare); // CONCATENATED MODULE: ./node_modules/redux-form/es/util/prefixName.js function formatName(context, name) { var sectionPrefix = context._reduxForm.sectionPrefix; return !sectionPrefix ? name : sectionPrefix + "." + name; } // CONCATENATED MODULE: ./node_modules/redux-form/es/Field.js var Field_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var Field_createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function Field_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function Field_possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function Field_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var Field_createField = function createField(_ref) { var deepEqual = _ref.deepEqual, getIn = _ref.getIn, setIn = _ref.setIn, toJS = _ref.toJS; var ConnectedField = es_ConnectedField({ deepEqual: deepEqual, getIn: getIn, toJS: toJS }); var Field = function (_Component) { Field_inherits(Field, _Component); function Field(props, context) { Field_classCallCheck(this, Field); var _this = Field_possibleConstructorReturn(this, (Field.__proto__ || Object.getPrototypeOf(Field)).call(this, props, context)); if (!context._reduxForm) { throw new Error('Field must be inside a component decorated with reduxForm()'); } _this.normalize = _this.normalize.bind(_this); return _this; } Field_createClass(Field, [{ key: 'shouldComponentUpdate', value: function shouldComponentUpdate(nextProps, nextState) { return util_shallowCompare(this, nextProps, nextState); } }, { key: 'componentWillMount', value: function componentWillMount() { var _this2 = this; this.context._reduxForm.register(this.name, 'Field', function () { return _this2.props.validate; }, function () { return _this2.props.warn; }); } }, { key: 'componentWillReceiveProps', value: function componentWillReceiveProps(nextProps) { if (this.props.name !== nextProps.name) { // unregister old name this.context._reduxForm.unregister(this.name); // register new name this.context._reduxForm.register(formatName(this.context, nextProps.name), 'Field'); } } }, { key: 'componentWillUnmount', value: function componentWillUnmount() { this.context._reduxForm.unregister(this.name); } }, { key: 'getRenderedComponent', value: function getRenderedComponent() { browser_default()(this.props.withRef, 'If you want to access getRenderedComponent(), ' + 'you must specify a withRef prop to Field'); return this.refs.connected.getWrappedInstance().getRenderedComponent(); } }, { key: 'normalize', value: function normalize(name, value) { var normalize = this.props.normalize; if (!normalize) { return value; } var previousValues = this.context._reduxForm.getValues(); var previousValue = this.value; var nextValues = setIn(previousValues, name, value); return normalize(value, previousValue, nextValues, previousValues); } }, { key: 'render', value: function render() { return Object(react["createElement"])(ConnectedField, Field_extends({}, this.props, { name: this.name, normalize: this.normalize, _reduxForm: this.context._reduxForm, ref: 'connected' })); } }, { key: 'name', get: function get() { return formatName(this.context, this.props.name); } }, { key: 'dirty', get: function get() { return !this.pristine; } }, { key: 'pristine', get: function get() { return this.refs.connected.getWrappedInstance().isPristine(); } }, { key: 'value', get: function get() { return this.refs.connected && this.refs.connected.getWrappedInstance().getValue(); } }]); return Field; }(react["Component"]); Field.propTypes = { name: prop_types_default.a.string.isRequired, component: prop_types_default.a.oneOfType([prop_types_default.a.func, prop_types_default.a.string]).isRequired, format: prop_types_default.a.func, normalize: prop_types_default.a.func, onBlur: prop_types_default.a.func, onChange: prop_types_default.a.func, onFocus: prop_types_default.a.func, onDragStart: prop_types_default.a.func, onDrop: prop_types_default.a.func, parse: prop_types_default.a.func, props: prop_types_default.a.object, validate: prop_types_default.a.oneOfType([prop_types_default.a.func, prop_types_default.a.arrayOf(prop_types_default.a.func)]), warn: prop_types_default.a.oneOfType([prop_types_default.a.func, prop_types_default.a.arrayOf(prop_types_default.a.func)]), withRef: prop_types_default.a.bool }; Field.contextTypes = { _reduxForm: prop_types_default.a.object }; return Field; }; /* harmony default export */ var es_Field = (Field_createField); // CONCATENATED MODULE: ./node_modules/redux-form/es/ConnectedFields.js var ConnectedFields_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var ConnectedFields_createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function ConnectedFields_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } function ConnectedFields_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function ConnectedFields_possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function ConnectedFields_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var ConnectedFields_propsToNotUpdateFor = ['_reduxForm']; var ConnectedFields_createConnectedFields = function createConnectedFields(_ref) { var deepEqual = _ref.deepEqual, getIn = _ref.getIn, toJS = _ref.toJS, size = _ref.size; var getSyncError = function getSyncError(syncErrors, name) { // Because the error for this field might not be at a level in the error structure where // it can be set directly, it might need to be unwrapped from the _error property return plain.getIn(syncErrors, name + '._error') || plain.getIn(syncErrors, name); }; var getSyncWarning = function getSyncWarning(syncWarnings, name) { var warning = getIn(syncWarnings, name); // Because the warning for this field might not be at a level in the warning structure where // it can be set directly, it might need to be unwrapped from the _warning property return warning && warning._warning ? warning._warning : warning; }; var ConnectedFields = function (_Component) { ConnectedFields_inherits(ConnectedFields, _Component); function ConnectedFields(props) { ConnectedFields_classCallCheck(this, ConnectedFields); var _this = ConnectedFields_possibleConstructorReturn(this, (ConnectedFields.__proto__ || Object.getPrototypeOf(ConnectedFields)).call(this, props)); _this.handleChange = _this.handleChange.bind(_this); _this.handleFocus = _this.handleFocus.bind(_this); _this.handleBlur = _this.handleBlur.bind(_this); _this.onChangeFns = props.names.reduce(function (acc, name) { acc[name] = function (event) { return _this.handleChange(name, event); }; return acc; }, {}); _this.onFocusFns = props.names.reduce(function (acc, name) { acc[name] = function () { return _this.handleFocus(name); }; return acc; }, {}); _this.onBlurFns = props.names.reduce(function (acc, name) { acc[name] = function (event) { return _this.handleBlur(name, event); }; return acc; }, {}); return _this; } ConnectedFields_createClass(ConnectedFields, [{ key: 'componentWillReceiveProps', value: function componentWillReceiveProps(nextProps) { var _this2 = this; if (this.props.names !== nextProps.names && (size(this.props.names) !== size(nextProps.names) || nextProps.names.some(function (nextName) { return !_this2.props._fields[nextName]; }))) { // names is changed. The cached event handlers need to be updated this.onChangeFns = nextProps.names.reduce(function (acc, name) { acc[name] = function (event) { return _this2.handleChange(name, event); }; return acc; }, {}); this.onFocusFns = nextProps.names.reduce(function (acc, name) { acc[name] = function () { return _this2.handleFocus(name); }; return acc; }, {}); this.onBlurFns = nextProps.names.reduce(function (acc, name) { acc[name] = function (event) { return _this2.handleBlur(name, event); }; return acc; }, {}); } } }, { key: 'shouldComponentUpdate', value: function shouldComponentUpdate(nextProps) { var _this3 = this; var nextPropsKeys = Object.keys(nextProps); var thisPropsKeys = Object.keys(this.props); return nextPropsKeys.length !== thisPropsKeys.length || nextPropsKeys.some(function (prop) { return !~ConnectedFields_propsToNotUpdateFor.indexOf(prop) && !deepEqual(_this3.props[prop], nextProps[prop]); }); } }, { key: 'isDirty', value: function isDirty() { var _fields = this.props._fields; return Object.keys(_fields).some(function (name) { return _fields[name].dirty; }); } }, { key: 'getValues', value: function getValues() { var _fields = this.props._fields; return Object.keys(_fields).reduce(function (accumulator, name) { return plain.setIn(accumulator, name, _fields[name].value); }, {}); } }, { key: 'getRenderedComponent', value: function getRenderedComponent() { return this.refs.renderedComponent; } }, { key: 'handleChange', value: function handleChange(name, event) { var _props = this.props, dispatch = _props.dispatch, parse = _props.parse, normalize = _props.normalize, _reduxForm = _props._reduxForm; var value = events_onChangeValue(event, { name: name, parse: parse, normalize: normalize }); dispatch(_reduxForm.change(name, value)); } }, { key: 'handleFocus', value: function handleFocus(name) { var _props2 = this.props, dispatch = _props2.dispatch, _reduxForm = _props2._reduxForm; dispatch(_reduxForm.focus(name)); } }, { key: 'handleBlur', value: function handleBlur(name, event) { var _props3 = this.props, dispatch = _props3.dispatch, parse = _props3.parse, normalize = _props3.normalize, _reduxForm = _props3._reduxForm; var value = events_onChangeValue(event, { name: name, parse: parse, normalize: normalize }); // dispatch blur action dispatch(_reduxForm.blur(name, value)); // call post-blur callback if (_reduxForm.asyncValidate) { _reduxForm.asyncValidate(name, value); } } }, { key: 'render', value: function render() { var _this4 = this; var _props4 = this.props, component = _props4.component, withRef = _props4.withRef, _fields = _props4._fields, _reduxForm = _props4._reduxForm, rest = ConnectedFields_objectWithoutProperties(_props4, ['component', 'withRef', '_fields', '_reduxForm']); var sectionPrefix = _reduxForm.sectionPrefix, form = _reduxForm.form; var _Object$keys$reduce = Object.keys(_fields).reduce(function (accumulator, name) { var connectedProps = _fields[name]; var _createFieldProps = es_createFieldProps({ getIn: getIn, toJS: toJS }, name, ConnectedFields_extends({}, connectedProps, rest, { form: form, onBlur: _this4.onBlurFns[name], onChange: _this4.onChangeFns[name], onFocus: _this4.onFocusFns[name] })), custom = _createFieldProps.custom, fieldProps = ConnectedFields_objectWithoutProperties(_createFieldProps, ['custom']); accumulator.custom = custom; var fieldName = sectionPrefix ? name.replace(sectionPrefix + '.', '') : name; return plain.setIn(accumulator, fieldName, fieldProps); }, {}), custom = _Object$keys$reduce.custom, props = ConnectedFields_objectWithoutProperties(_Object$keys$reduce, ['custom']); if (withRef) { props.ref = 'renderedComponent'; } return Object(react["createElement"])(component, ConnectedFields_extends({}, props, custom)); } }]); return ConnectedFields; }(react["Component"]); ConnectedFields.propTypes = { component: prop_types_default.a.oneOfType([prop_types_default.a.func, prop_types_default.a.string]).isRequired, _fields: prop_types_default.a.object.isRequired, props: prop_types_default.a.object }; var connector = Object(lib["connect"])(function (state, ownProps) { var names = ownProps.names, _ownProps$_reduxForm = ownProps._reduxForm, initialValues = _ownProps$_reduxForm.initialValues, getFormState = _ownProps$_reduxForm.getFormState; var formState = getFormState(state); return { _fields: names.reduce(function (accumulator, name) { var initialState = getIn(formState, 'initial.' + name); var initial = initialState !== undefined ? initialState : initialValues && getIn(initialValues, name); var value = getIn(formState, 'values.' + name); var syncError = getSyncError(getIn(formState, 'syncErrors'), name); var syncWarning = getSyncWarning(getIn(formState, 'syncWarnings'), name); var submitting = getIn(formState, 'submitting'); var pristine = value === initial; accumulator[name] = { asyncError: getIn(formState, 'asyncErrors.' + name), asyncValidating: getIn(formState, 'asyncValidating') === name, dirty: !pristine, pristine: pristine, state: getIn(formState, 'fields.' + name), submitError: getIn(formState, 'submitErrors.' + name), submitFailed: getIn(formState, 'submitFailed'), submitting: submitting, syncError: syncError, syncWarning: syncWarning, value: value, _value: ownProps.value // save value passed in (for checkboxes) }; return accumulator; }, {}) }; }, undefined, undefined, { withRef: true }); return connector(ConnectedFields); }; /* harmony default export */ var es_ConnectedFields = (ConnectedFields_createConnectedFields); // CONCATENATED MODULE: ./node_modules/redux-form/es/Fields.js var Fields_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var Fields_createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function Fields_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function Fields_possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function Fields_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var validateNameProp = function validateNameProp(prop) { if (!prop) { return new Error('No "names" prop was specified '); } if (!Array.isArray(prop) && !prop._isFieldArray) { return new Error('Invalid prop "names" supplied to . Must be either an array of strings or the fields array generated by FieldArray.'); } }; var Fields_createFields = function createFields(_ref) { var deepEqual = _ref.deepEqual, getIn = _ref.getIn, toJS = _ref.toJS, size = _ref.size; var ConnectedFields = es_ConnectedFields({ deepEqual: deepEqual, getIn: getIn, toJS: toJS, size: size }); var Fields = function (_Component) { Fields_inherits(Fields, _Component); function Fields(props, context) { Fields_classCallCheck(this, Fields); var _this = Fields_possibleConstructorReturn(this, (Fields.__proto__ || Object.getPrototypeOf(Fields)).call(this, props, context)); if (!context._reduxForm) { throw new Error('Fields must be inside a component decorated with reduxForm()'); } return _this; } Fields_createClass(Fields, [{ key: 'shouldComponentUpdate', value: function shouldComponentUpdate(nextProps, nextState) { return util_shallowCompare(this, nextProps, nextState); } }, { key: 'componentWillMount', value: function componentWillMount() { var error = validateNameProp(this.props.names); if (error) { throw error; } var context = this.context; var register = context._reduxForm.register; this.names.forEach(function (name) { return register(name, 'Field'); }); } }, { key: 'componentWillReceiveProps', value: function componentWillReceiveProps(nextProps) { if (!plain.deepEqual(this.props.names, nextProps.names)) { var context = this.context; var _context$_reduxForm = context._reduxForm, register = _context$_reduxForm.register, unregister = _context$_reduxForm.unregister; // unregister old name this.props.names.forEach(function (name) { return unregister(formatName(context, name)); }); // register new name nextProps.names.forEach(function (name) { return register(formatName(context, name), 'Field'); }); } } }, { key: 'componentWillUnmount', value: function componentWillUnmount() { var context = this.context; var unregister = context._reduxForm.unregister; this.props.names.forEach(function (name) { return unregister(formatName(context, name)); }); } }, { key: 'getRenderedComponent', value: function getRenderedComponent() { browser_default()(this.props.withRef, 'If you want to access getRenderedComponent(), ' + 'you must specify a withRef prop to Fields'); return this.refs.connected.getWrappedInstance().getRenderedComponent(); } }, { key: 'render', value: function render() { var context = this.context; return Object(react["createElement"])(ConnectedFields, Fields_extends({}, this.props, { names: this.props.names.map(function (name) { return formatName(context, name); }), _reduxForm: this.context._reduxForm, ref: 'connected' })); } }, { key: 'names', get: function get() { var context = this.context; return this.props.names.map(function (name) { return formatName(context, name); }); } }, { key: 'dirty', get: function get() { return this.refs.connected.getWrappedInstance().isDirty(); } }, { key: 'pristine', get: function get() { return !this.dirty; } }, { key: 'values', get: function get() { return this.refs.connected && this.refs.connected.getWrappedInstance().getValues(); } }]); return Fields; }(react["Component"]); Fields.propTypes = { names: function names(props, propName) { return validateNameProp(props[propName]); }, component: prop_types_default.a.oneOfType([prop_types_default.a.func, prop_types_default.a.string]).isRequired, format: prop_types_default.a.func, parse: prop_types_default.a.func, props: prop_types_default.a.object, withRef: prop_types_default.a.bool }; Fields.contextTypes = { _reduxForm: prop_types_default.a.object }; return Fields; }; /* harmony default export */ var es_Fields = (Fields_createFields); // CONCATENATED MODULE: ./node_modules/redux-form/es/createFieldArrayProps.js var createFieldArrayProps_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function createFieldArrayProps_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } var createFieldArrayProps = function createFieldArrayProps(getIn, name, form, sectionPrefix, getValue, _ref) { var arrayInsert = _ref.arrayInsert, arrayMove = _ref.arrayMove, arrayPop = _ref.arrayPop, arrayPush = _ref.arrayPush, arrayRemove = _ref.arrayRemove, arrayRemoveAll = _ref.arrayRemoveAll, arrayShift = _ref.arrayShift, arraySplice = _ref.arraySplice, arraySwap = _ref.arraySwap, arrayUnshift = _ref.arrayUnshift, asyncError = _ref.asyncError, dirty = _ref.dirty, length = _ref.length, pristine = _ref.pristine, submitError = _ref.submitError, state = _ref.state, submitFailed = _ref.submitFailed, submitting = _ref.submitting, syncError = _ref.syncError, syncWarning = _ref.syncWarning, value = _ref.value, props = _ref.props, rest = createFieldArrayProps_objectWithoutProperties(_ref, ['arrayInsert', 'arrayMove', 'arrayPop', 'arrayPush', 'arrayRemove', 'arrayRemoveAll', 'arrayShift', 'arraySplice', 'arraySwap', 'arrayUnshift', 'asyncError', 'dirty', 'length', 'pristine', 'submitError', 'state', 'submitFailed', 'submitting', 'syncError', 'syncWarning', 'value', 'props']); var error = syncError || asyncError || submitError; var warning = syncWarning; var fieldName = sectionPrefix ? name.replace(sectionPrefix + '.', '') : name; var finalProps = createFieldArrayProps_extends({ fields: { _isFieldArray: true, forEach: function forEach(callback) { return (value || []).forEach(function (item, index) { return callback(fieldName + '[' + index + ']', index, finalProps.fields); }); }, get: getValue, getAll: function getAll() { return value; }, insert: arrayInsert, length: length, map: function map(callback) { return (value || []).map(function (item, index) { return callback(fieldName + '[' + index + ']', index, finalProps.fields); }); }, move: arrayMove, name: name, pop: function pop() { arrayPop(); return getIn(value, length - 1); }, push: arrayPush, reduce: function reduce(callback, initial) { return (value || []).reduce(function (accumulator, item, index) { return callback(accumulator, fieldName + '[' + index + ']', index, finalProps.fields); }, initial); }, remove: arrayRemove, removeAll: arrayRemoveAll, shift: function shift() { arrayShift(); return getIn(value, 0); }, swap: arraySwap, unshift: arrayUnshift }, meta: { dirty: dirty, error: error, form: form, warning: warning, invalid: !!error, pristine: pristine, submitting: submitting, submitFailed: submitFailed, touched: !!(state && getIn(state, 'touched')), valid: !error } }, props, rest); return finalProps; }; /* harmony default export */ var es_createFieldArrayProps = (createFieldArrayProps); // CONCATENATED MODULE: ./node_modules/redux-form/es/ConnectedFieldArray.js var ConnectedFieldArray_createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function ConnectedFieldArray_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } function ConnectedFieldArray_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function ConnectedFieldArray_possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function ConnectedFieldArray_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var ConnectedFieldArray_propsToNotUpdateFor = ['_reduxForm', 'value']; var ConnectedFieldArray_createConnectedFieldArray = function createConnectedFieldArray(_ref) { var deepEqual = _ref.deepEqual, getIn = _ref.getIn, size = _ref.size; var getSyncError = function getSyncError(syncErrors, name) { // For an array, the error can _ONLY_ be under _error. // This is why this getSyncError is not the same as the // one in Field. return plain.getIn(syncErrors, name + '._error'); }; var getSyncWarning = function getSyncWarning(syncWarnings, name) { // For an array, the warning can _ONLY_ be under _warning. // This is why this getSyncError is not the same as the // one in Field. return getIn(syncWarnings, name + '._warning'); }; var ConnectedFieldArray = function (_Component) { ConnectedFieldArray_inherits(ConnectedFieldArray, _Component); function ConnectedFieldArray() { ConnectedFieldArray_classCallCheck(this, ConnectedFieldArray); var _this = ConnectedFieldArray_possibleConstructorReturn(this, (ConnectedFieldArray.__proto__ || Object.getPrototypeOf(ConnectedFieldArray)).call(this)); _this.getValue = _this.getValue.bind(_this); return _this; } ConnectedFieldArray_createClass(ConnectedFieldArray, [{ key: 'shouldComponentUpdate', value: function shouldComponentUpdate(nextProps) { var _this2 = this; // Update if the elements of the value array was updated. var thisValue = this.props.value; var nextValue = nextProps.value; if (thisValue && nextValue) { if (thisValue.length !== nextValue.length || thisValue.every(function (val) { return nextValue.some(function (next) { return deepEqual(val, next); }); })) { return true; } } var nextPropsKeys = Object.keys(nextProps); var thisPropsKeys = Object.keys(this.props); return nextPropsKeys.length !== thisPropsKeys.length || nextPropsKeys.some(function (prop) { // useful to debug rerenders // if (!plain.deepEqual(this.props[ prop ], nextProps[ prop ])) { // console.info(prop, 'changed', this.props[ prop ], '==>', nextProps[ prop ]) // } return !~ConnectedFieldArray_propsToNotUpdateFor.indexOf(prop) && !deepEqual(_this2.props[prop], nextProps[prop]); }); } }, { key: 'getRenderedComponent', value: function getRenderedComponent() { return this.refs.renderedComponent; } }, { key: 'getValue', value: function getValue(index) { return this.props.value && getIn(this.props.value, index); } }, { key: 'render', value: function render() { var _props = this.props, component = _props.component, withRef = _props.withRef, name = _props.name, _reduxForm = _props._reduxForm, validate = _props.validate, warn = _props.warn, rest = ConnectedFieldArray_objectWithoutProperties(_props, ['component', 'withRef', 'name', '_reduxForm', 'validate', 'warn']); var props = es_createFieldArrayProps(getIn, name, _reduxForm.form, _reduxForm.sectionPrefix, this.getValue, rest); if (withRef) { props.ref = 'renderedComponent'; } return Object(react["createElement"])(component, props); } }, { key: 'dirty', get: function get() { return this.props.dirty; } }, { key: 'pristine', get: function get() { return this.props.pristine; } }, { key: 'value', get: function get() { return this.props.value; } }]); return ConnectedFieldArray; }(react["Component"]); ConnectedFieldArray.propTypes = { component: prop_types_default.a.oneOfType([prop_types_default.a.func, prop_types_default.a.string]).isRequired, props: prop_types_default.a.object }; ConnectedFieldArray.contextTypes = { _reduxForm: prop_types_default.a.object }; var connector = Object(lib["connect"])(function (state, ownProps) { var name = ownProps.name, _ownProps$_reduxForm = ownProps._reduxForm, initialValues = _ownProps$_reduxForm.initialValues, getFormState = _ownProps$_reduxForm.getFormState; var formState = getFormState(state); var initial = getIn(formState, 'initial.' + name) || initialValues && getIn(initialValues, name); var value = getIn(formState, 'values.' + name); var submitting = getIn(formState, 'submitting'); var syncError = getSyncError(getIn(formState, 'syncErrors'), name); var syncWarning = getSyncWarning(getIn(formState, 'syncWarnings'), name); var pristine = deepEqual(value, initial); return { asyncError: getIn(formState, 'asyncErrors.' + name + '._error'), dirty: !pristine, pristine: pristine, state: getIn(formState, 'fields.' + name), submitError: getIn(formState, 'submitErrors.' + name + '._error'), submitFailed: getIn(formState, 'submitFailed'), submitting: submitting, syncError: syncError, syncWarning: syncWarning, value: value, length: size(value) }; }, function (dispatch, ownProps) { var name = ownProps.name, _reduxForm = ownProps._reduxForm; var arrayInsert = _reduxForm.arrayInsert, arrayMove = _reduxForm.arrayMove, arrayPop = _reduxForm.arrayPop, arrayPush = _reduxForm.arrayPush, arrayRemove = _reduxForm.arrayRemove, arrayRemoveAll = _reduxForm.arrayRemoveAll, arrayShift = _reduxForm.arrayShift, arraySplice = _reduxForm.arraySplice, arraySwap = _reduxForm.arraySwap, arrayUnshift = _reduxForm.arrayUnshift; return lodash_es_mapValues({ arrayInsert: arrayInsert, arrayMove: arrayMove, arrayPop: arrayPop, arrayPush: arrayPush, arrayRemove: arrayRemove, arrayRemoveAll: arrayRemoveAll, arrayShift: arrayShift, arraySplice: arraySplice, arraySwap: arraySwap, arrayUnshift: arrayUnshift }, function (actionCreator) { return Object(es["bindActionCreators"])(actionCreator.bind(null, name), dispatch); }); }, undefined, { withRef: true }); return connector(ConnectedFieldArray); }; /* harmony default export */ var es_ConnectedFieldArray = (ConnectedFieldArray_createConnectedFieldArray); // CONCATENATED MODULE: ./node_modules/redux-form/es/FieldArray.js var FieldArray_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var FieldArray_createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function FieldArray_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function FieldArray_possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function FieldArray_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function FieldArray_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var FieldArray_toArray = function toArray(value) { return Array.isArray(value) ? value : [value]; }; var wrapError = function wrapError(fn, key) { return fn && function () { var validators = FieldArray_toArray(fn); for (var i = 0; i < validators.length; i++) { var result = validators[i].apply(validators, arguments); if (result) { return FieldArray_defineProperty({}, key, result); } } }; }; var FieldArray_createFieldArray = function createFieldArray(_ref2) { var deepEqual = _ref2.deepEqual, getIn = _ref2.getIn, size = _ref2.size; var ConnectedFieldArray = es_ConnectedFieldArray({ deepEqual: deepEqual, getIn: getIn, size: size }); var FieldArray = function (_Component) { FieldArray_inherits(FieldArray, _Component); function FieldArray(props, context) { FieldArray_classCallCheck(this, FieldArray); var _this = FieldArray_possibleConstructorReturn(this, (FieldArray.__proto__ || Object.getPrototypeOf(FieldArray)).call(this, props, context)); if (!context._reduxForm) { throw new Error('FieldArray must be inside a component decorated with reduxForm()'); } return _this; } FieldArray_createClass(FieldArray, [{ key: 'componentWillMount', value: function componentWillMount() { var _this2 = this; this.context._reduxForm.register(this.name, 'FieldArray', function () { return wrapError(_this2.props.validate, '_error'); }, function () { return wrapError(_this2.props.warn, '_warning'); }); } }, { key: 'componentWillReceiveProps', value: function componentWillReceiveProps(nextProps) { if (this.props.name !== nextProps.name) { // unregister old name this.context._reduxForm.unregister(this.name); // register new name this.context._reduxForm.register(formatName(this.context, nextProps.name), 'FieldArray'); } } }, { key: 'componentWillUnmount', value: function componentWillUnmount() { this.context._reduxForm.unregister(this.name); } }, { key: 'getRenderedComponent', value: function getRenderedComponent() { browser_default()(this.props.withRef, 'If you want to access getRenderedComponent(), ' + 'you must specify a withRef prop to FieldArray'); return this.refs.connected.getWrappedInstance().getRenderedComponent(); } }, { key: 'render', value: function render() { return Object(react["createElement"])(ConnectedFieldArray, FieldArray_extends({}, this.props, { name: this.name, syncError: this.syncError, syncWarning: this.syncWarning, _reduxForm: this.context._reduxForm, ref: 'connected' })); } }, { key: 'name', get: function get() { return formatName(this.context, this.props.name); } }, { key: 'dirty', get: function get() { return this.refs.connected.getWrappedInstance().dirty; } }, { key: 'pristine', get: function get() { return this.refs.connected.getWrappedInstance().pristine; } }, { key: 'value', get: function get() { return this.refs.connected.getWrappedInstance().value; } }]); return FieldArray; }(react["Component"]); FieldArray.propTypes = { name: prop_types_default.a.string.isRequired, component: prop_types_default.a.func.isRequired, props: prop_types_default.a.object, validate: prop_types_default.a.oneOfType([prop_types_default.a.func, prop_types_default.a.arrayOf(prop_types_default.a.func)]), warn: prop_types_default.a.oneOfType([prop_types_default.a.func, prop_types_default.a.arrayOf(prop_types_default.a.func)]), withRef: prop_types_default.a.bool }; FieldArray.contextTypes = { _reduxForm: prop_types_default.a.object }; return FieldArray; }; /* harmony default export */ var es_FieldArray = (FieldArray_createFieldArray); // CONCATENATED MODULE: ./node_modules/redux-form/es/formValueSelector.js var formValueSelector_createFormValueSelector = function createFormValueSelector(_ref) { var getIn = _ref.getIn; return function (form) { var getFormState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (state) { return getIn(state, 'form'); }; browser_default()(form, 'Form value must be specified'); return function (state) { for (var _len = arguments.length, fields = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { fields[_key - 1] = arguments[_key]; } browser_default()(fields.length, 'No fields specified'); return fields.length === 1 ? // only selecting one field, so return its value getIn(getFormState(state), form + '.values.' + fields[0]) : // selecting many fields, so return an object of field values fields.reduce(function (accumulator, field) { var value = getIn(getFormState(state), form + '.values.' + field); return value === undefined ? accumulator : plain.setIn(accumulator, field, value); }, {}); }; }; }; /* harmony default export */ var formValueSelector = (formValueSelector_createFormValueSelector); // CONCATENATED MODULE: ./node_modules/redux-form/es/values.js var values_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function values_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var values_createValues = function createValues(_ref) { var getIn = _ref.getIn; return function (config) { var _prop$getFormState$co = values_extends({ prop: 'values', getFormState: function getFormState(state) { return getIn(state, 'form'); } }, config), form = _prop$getFormState$co.form, prop = _prop$getFormState$co.prop, getFormState = _prop$getFormState$co.getFormState; return Object(lib["connect"])(function (state) { return values_defineProperty({}, prop, getIn(getFormState(state), form + '.values')); }, function () { return {}; } // ignore dispatch ); }; }; /* harmony default export */ var es_values = (values_createValues); // CONCATENATED MODULE: ./node_modules/redux-form/es/selectors/getFormNames.js var createGetFormNames = function createGetFormNames(_ref) { var getIn = _ref.getIn, keys = _ref.keys; return function () { var getFormState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function (state) { return getIn(state, 'form'); }; return function (state) { return keys(getFormState(state)); }; }; }; /* harmony default export */ var getFormNames = (createGetFormNames); // CONCATENATED MODULE: ./node_modules/redux-form/es/selectors/getFormValues.js var createGetFormValues = function createGetFormValues(_ref) { var getIn = _ref.getIn; return function (form) { var getFormState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (state) { return getIn(state, 'form'); }; return function (state) { return getIn(getFormState(state), form + '.values'); }; }; }; /* harmony default export */ var getFormValues = (createGetFormValues); // CONCATENATED MODULE: ./node_modules/redux-form/es/selectors/getFormInitialValues.js var createGetFormInitialValues = function createGetFormInitialValues(_ref) { var getIn = _ref.getIn; return function (form) { var getFormState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (state) { return getIn(state, 'form'); }; return function (state) { return getIn(getFormState(state), form + '.initial'); }; }; }; /* harmony default export */ var getFormInitialValues = (createGetFormInitialValues); // CONCATENATED MODULE: ./node_modules/redux-form/es/selectors/getFormSyncErrors.js var createGetFormSyncErrors = function createGetFormSyncErrors(_ref) { var getIn = _ref.getIn; return function (form) { var getFormState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (state) { return getIn(state, 'form'); }; return function (state) { return getIn(getFormState(state), form + '.syncErrors'); }; }; }; /* harmony default export */ var getFormSyncErrors = (createGetFormSyncErrors); // CONCATENATED MODULE: ./node_modules/redux-form/es/selectors/getFormAsyncErrors.js var createGetFormAsyncErrors = function createGetFormAsyncErrors(_ref) { var getIn = _ref.getIn; return function (form) { var getFormState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (state) { return getIn(state, 'form'); }; return function (state) { return getIn(getFormState(state), form + '.asyncErrors'); }; }; }; /* harmony default export */ var getFormAsyncErrors = (createGetFormAsyncErrors); // CONCATENATED MODULE: ./node_modules/redux-form/es/selectors/getFormSyncWarnings.js var createGetFormSyncWarnings = function createGetFormSyncWarnings(_ref) { var getIn = _ref.getIn; return function (form) { var getFormState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (state) { return getIn(state, 'form'); }; return function (state) { return getIn(getFormState(state), form + '.syncWarnings'); }; }; }; /* harmony default export */ var getFormSyncWarnings = (createGetFormSyncWarnings); // CONCATENATED MODULE: ./node_modules/redux-form/es/selectors/getFormSubmitErrors.js var createGetFormSubmitErrors = function createGetFormSubmitErrors(_ref) { var getIn = _ref.getIn; return function (form) { var getFormState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (state) { return getIn(state, 'form'); }; return function (state) { return getIn(getFormState(state), form + '.submitErrors'); }; }; }; /* harmony default export */ var getFormSubmitErrors = (createGetFormSubmitErrors); // CONCATENATED MODULE: ./node_modules/redux-form/es/selectors/isPristine.js var createIsPristine = function createIsPristine(_ref) { var deepEqual = _ref.deepEqual, empty = _ref.empty, getIn = _ref.getIn; return function (form) { var getFormState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (state) { return getIn(state, 'form'); }; return function (state) { var formState = getFormState(state); var initial = getIn(formState, form + '.initial') || empty; var values = getIn(formState, form + '.values') || initial; return deepEqual(initial, values); }; }; }; /* harmony default export */ var selectors_isPristine = (createIsPristine); // CONCATENATED MODULE: ./node_modules/redux-form/es/selectors/isDirty.js var isDirty_createIsDirty = function createIsDirty(structure) { return function (form, getFormState) { var isPristine = selectors_isPristine(structure)(form, getFormState); return function (state) { return !isPristine(state); }; }; }; /* harmony default export */ var isDirty = (isDirty_createIsDirty); // CONCATENATED MODULE: ./node_modules/redux-form/es/selectors/isInvalid.js var isInvalid_createIsInvalid = function createIsInvalid(structure) { return function (form, getFormState) { var isValid = selectors_isValid(structure)(form, getFormState); return function (state) { return !isValid(state); }; }; }; /* harmony default export */ var isInvalid = (isInvalid_createIsInvalid); // CONCATENATED MODULE: ./node_modules/redux-form/es/selectors/isSubmitting.js var createIsSubmitting = function createIsSubmitting(_ref) { var getIn = _ref.getIn; return function (form) { var getFormState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (state) { return getIn(state, 'form'); }; return function (state) { var formState = getFormState(state); return getIn(formState, form + '.submitting') || false; }; }; }; /* harmony default export */ var isSubmitting = (createIsSubmitting); // CONCATENATED MODULE: ./node_modules/redux-form/es/selectors/hasSubmitSucceeded.js var createHasSubmitSucceeded = function createHasSubmitSucceeded(_ref) { var getIn = _ref.getIn; return function (form) { var getFormState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (state) { return getIn(state, 'form'); }; return function (state) { var formState = getFormState(state); return getIn(formState, form + '.submitSucceeded') || false; }; }; }; /* harmony default export */ var hasSubmitSucceeded = (createHasSubmitSucceeded); // CONCATENATED MODULE: ./node_modules/redux-form/es/selectors/hasSubmitFailed.js var createHasSubmitFailed = function createHasSubmitFailed(_ref) { var getIn = _ref.getIn; return function (form) { var getFormState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (state) { return getIn(state, 'form'); }; return function (state) { var formState = getFormState(state); return getIn(formState, form + '.submitFailed') || false; }; }; }; /* harmony default export */ var hasSubmitFailed = (createHasSubmitFailed); // CONCATENATED MODULE: ./node_modules/redux-form/es/Form.js var Form_createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function Form_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function Form_possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function Form_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var Form_Form = function (_Component) { Form_inherits(Form, _Component); function Form(props, context) { Form_classCallCheck(this, Form); var _this = Form_possibleConstructorReturn(this, (Form.__proto__ || Object.getPrototypeOf(Form)).call(this, props, context)); if (!context._reduxForm) { throw new Error('Form must be inside a component decorated with reduxForm()'); } return _this; } Form_createClass(Form, [{ key: 'componentWillMount', value: function componentWillMount() { this.context._reduxForm.registerInnerOnSubmit(this.props.onSubmit); } }, { key: 'render', value: function render() { return react_default.a.createElement('form', this.props); } }]); return Form; }(react["Component"]); Form_Form.propTypes = { onSubmit: prop_types_default.a.func.isRequired }; Form_Form.contextTypes = { _reduxForm: prop_types_default.a.object }; /* harmony default export */ var es_Form = (Form_Form); // CONCATENATED MODULE: ./node_modules/redux-form/es/FormSection.js var FormSection_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var FormSection_createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function FormSection_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } function FormSection_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function FormSection_possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function FormSection_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var FormSection_FormSection = function (_Component) { FormSection_inherits(FormSection, _Component); function FormSection(props, context) { FormSection_classCallCheck(this, FormSection); var _this = FormSection_possibleConstructorReturn(this, (FormSection.__proto__ || Object.getPrototypeOf(FormSection)).call(this, props, context)); if (!context._reduxForm) { throw new Error('FormSection must be inside a component decorated with reduxForm()'); } return _this; } FormSection_createClass(FormSection, [{ key: 'getChildContext', value: function getChildContext() { var context = this.context, name = this.props.name; return { _reduxForm: FormSection_extends({}, context._reduxForm, { sectionPrefix: formatName(context, name) }) }; } }, { key: 'render', value: function render() { var _props = this.props, children = _props.children, name = _props.name, component = _props.component, rest = FormSection_objectWithoutProperties(_props, ['children', 'name', 'component']); if (react_default.a.isValidElement(children)) { return children; } return Object(react["createElement"])(component, FormSection_extends({}, rest, { children: children })); } }]); return FormSection; }(react["Component"]); FormSection_FormSection.propTypes = { name: prop_types_default.a.string.isRequired, component: prop_types_default.a.oneOfType([prop_types_default.a.func, prop_types_default.a.string]) }; FormSection_FormSection.defaultProps = { component: 'div' }; FormSection_FormSection.childContextTypes = { _reduxForm: prop_types_default.a.object.isRequired }; FormSection_FormSection.contextTypes = { _reduxForm: prop_types_default.a.object }; /* harmony default export */ var es_FormSection = (FormSection_FormSection); // CONCATENATED MODULE: ./node_modules/redux-form/es/propTypes.js var any = prop_types_default.a.any, bool = prop_types_default.a.bool, propTypes_func = prop_types_default.a.func, shape = prop_types_default.a.shape, string = prop_types_default.a.string, oneOfType = prop_types_default.a.oneOfType, propTypes_object = prop_types_default.a.object; var propTypes = { // State: anyTouched: bool.isRequired, // true if any of the fields have been marked as touched asyncValidating: oneOfType([bool, string]).isRequired, // true if async validation is running, a string if a field triggered async validation dirty: bool.isRequired, // true if any values are different from initialValues error: any, // form-wide error from '_error' key in validation result form: string.isRequired, // the name of the form invalid: bool.isRequired, // true if there are any validation errors initialized: bool.isRequired, // true if the form has been initialized initialValues: propTypes_object, // the initialValues object passed to reduxForm pristine: bool.isRequired, // true if the values are the same as initialValues pure: bool.isRequired, // if true, implements shouldComponentUpdate submitting: bool.isRequired, // true if the form is in the process of being submitted submitFailed: bool.isRequired, // true if the form was submitted and failed for any reason submitSucceeded: bool.isRequired, // true if the form was successfully submitted valid: bool.isRequired, // true if there are no validation errors warning: any, // form-wide warning from '_warning' key in validation result // Actions: array: shape({ insert: propTypes_func.isRequired, // function to insert a value into an array field move: propTypes_func.isRequired, // function to move a value within an array field pop: propTypes_func.isRequired, // function to pop a value off of an array field push: propTypes_func.isRequired, // function to push a value onto an array field remove: propTypes_func.isRequired, // function to remove a value from an array field removeAll: propTypes_func.isRequired, // function to remove all the values from an array field shift: propTypes_func.isRequired, // function to shift a value out of an array field splice: propTypes_func.isRequired, // function to splice a value into an array field swap: propTypes_func.isRequired, // function to swap values in an array field unshift: propTypes_func.isRequired // function to unshift a value into an array field }), asyncValidate: propTypes_func.isRequired, // function to trigger async validation autofill: propTypes_func.isRequired, // action to set a value of a field and mark it as autofilled blur: propTypes_func.isRequired, // action to mark a field as blurred change: propTypes_func.isRequired, // action to change the value of a field clearAsyncError: propTypes_func.isRequired, // action to clear the async error of a field destroy: propTypes_func.isRequired, // action to destroy the form's data in Redux dispatch: propTypes_func.isRequired, // the Redux dispatch action handleSubmit: propTypes_func.isRequired, // function to submit the form initialize: propTypes_func.isRequired, // action to initialize form data reset: propTypes_func.isRequired, // action to reset the form data to previously initialized values touch: propTypes_func.isRequired, // action to mark fields as touched submit: propTypes_func.isRequired, // action to trigger a submission of the specified form untouch: propTypes_func.isRequired, // action to mark fields as untouched // triggerSubmit triggerSubmit: bool, // if true, submits the form on componentWillReceiveProps clearSubmit: propTypes_func.isRequired // called before a triggered submit, by default clears triggerSubmit }; /* harmony default export */ var es_propTypes = (propTypes); // CONCATENATED MODULE: ./node_modules/redux-form/es/createAll.js var createAll_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var createAll_createAll = function createAll(structure) { return createAll_extends({ // separate out field actions actionTypes: actionTypes_namespaceObject }, actions_namespaceObject, { Field: es_Field(structure), Fields: es_Fields(structure), FieldArray: es_FieldArray(structure), Form: es_Form, FormSection: es_FormSection, formValueSelector: formValueSelector(structure), getFormNames: getFormNames(structure), getFormValues: getFormValues(structure), getFormInitialValues: getFormInitialValues(structure), getFormSyncErrors: getFormSyncErrors(structure), getFormAsyncErrors: getFormAsyncErrors(structure), getFormSyncWarnings: getFormSyncWarnings(structure), getFormSubmitErrors: getFormSubmitErrors(structure), isDirty: isDirty(structure), isInvalid: isInvalid(structure), isPristine: selectors_isPristine(structure), isValid: selectors_isValid(structure), isSubmitting: isSubmitting(structure), hasSubmitSucceeded: hasSubmitSucceeded(structure), hasSubmitFailed: hasSubmitFailed(structure), propTypes: es_propTypes, reduxForm: reduxForm(structure), reducer: es_reducer(structure), SubmissionError: es_SubmissionError, values: es_values(structure) }); }; /* harmony default export */ var es_createAll = (createAll_createAll); // CONCATENATED MODULE: ./node_modules/redux-form/es/index.js var _createAll = es_createAll(plain); var actionTypes = _createAll.actionTypes, es_arrayInsert = _createAll.arrayInsert, es_arrayMove = _createAll.arrayMove, es_arrayPop = _createAll.arrayPop, es_arrayPush = _createAll.arrayPush, es_arrayRemove = _createAll.arrayRemove, es_arrayRemoveAll = _createAll.arrayRemoveAll, es_arrayShift = _createAll.arrayShift, es_arraySplice = _createAll.arraySplice, es_arraySwap = _createAll.arraySwap, es_arrayUnshift = _createAll.arrayUnshift, es_autofill = _createAll.autofill, es_blur = _createAll.blur, es_change = _createAll.change, es_clearSubmitErrors = _createAll.clearSubmitErrors, es_destroy = _createAll.destroy, redux_form_es_Field = _createAll.Field, redux_form_es_Fields = _createAll.Fields, redux_form_es_FieldArray = _createAll.FieldArray, redux_form_es_Form = _createAll.Form, redux_form_es_FormSection = _createAll.FormSection, es_focus = _createAll.focus, es_formValueSelector = _createAll.formValueSelector, es_getFormNames = _createAll.getFormNames, es_getFormValues = _createAll.getFormValues, es_getFormInitialValues = _createAll.getFormInitialValues, es_getFormSyncErrors = _createAll.getFormSyncErrors, es_getFormAsyncErrors = _createAll.getFormAsyncErrors, es_getFormSyncWarnings = _createAll.getFormSyncWarnings, es_getFormSubmitErrors = _createAll.getFormSubmitErrors, es_initialize = _createAll.initialize, es_isDirty = _createAll.isDirty, es_isInvalid = _createAll.isInvalid, es_isPristine = _createAll.isPristine, es_isValid = _createAll.isValid, es_isSubmitting = _createAll.isSubmitting, es_hasSubmitSucceeded = _createAll.hasSubmitSucceeded, es_hasSubmitFailed = _createAll.hasSubmitFailed, redux_form_es_propTypes = _createAll.propTypes, redux_form_es_reducer = _createAll.reducer, es_reduxForm = _createAll.reduxForm, es_registerField = _createAll.registerField, es_reset = _createAll.reset, es_setSubmitFailed = _createAll.setSubmitFailed, es_setSubmitSucceeded = _createAll.setSubmitSucceeded, es_startAsyncValidation = _createAll.startAsyncValidation, es_startSubmit = _createAll.startSubmit, es_stopAsyncValidation = _createAll.stopAsyncValidation, es_stopSubmit = _createAll.stopSubmit, es_submit = _createAll.submit, redux_form_es_SubmissionError = _createAll.SubmissionError, es_touch = _createAll.touch, es_unregisterField = _createAll.unregisterField, es_untouch = _createAll.untouch, redux_form_es_values = _createAll.values; /***/ }), /* 16 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.utils = exports.effects = exports.CANCEL = exports.delay = exports.takeLatest = exports.takeEvery = exports.buffers = exports.channel = exports.eventChannel = exports.END = exports.runSaga = undefined; var _runSaga = __webpack_require__(1138); Object.defineProperty(exports, 'runSaga', { enumerable: true, get: function get() { return _runSaga.runSaga; } }); var _channel = __webpack_require__(322); Object.defineProperty(exports, 'END', { enumerable: true, get: function get() { return _channel.END; } }); Object.defineProperty(exports, 'eventChannel', { enumerable: true, get: function get() { return _channel.eventChannel; } }); Object.defineProperty(exports, 'channel', { enumerable: true, get: function get() { return _channel.channel; } }); var _buffers = __webpack_require__(420); Object.defineProperty(exports, 'buffers', { enumerable: true, get: function get() { return _buffers.buffers; } }); var _sagaHelpers = __webpack_require__(1140); Object.defineProperty(exports, 'takeEvery', { enumerable: true, get: function get() { return _sagaHelpers.takeEvery; } }); Object.defineProperty(exports, 'takeLatest', { enumerable: true, get: function get() { return _sagaHelpers.takeLatest; } }); var _utils = __webpack_require__(151); Object.defineProperty(exports, 'delay', { enumerable: true, get: function get() { return _utils.delay; } }); Object.defineProperty(exports, 'CANCEL', { enumerable: true, get: function get() { return _utils.CANCEL; } }); var _middleware = __webpack_require__(1141); var _middleware2 = _interopRequireDefault(_middleware); var _effects = __webpack_require__(567); var effects = _interopRequireWildcard(_effects); var _utils2 = __webpack_require__(1142); var utils = _interopRequireWildcard(_utils2); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _middleware2.default; exports.effects = effects; exports.utils = utils; /***/ }), /* 17 */ /***/ (function(module, exports, __webpack_require__) { /** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ if (false) { var throwOnDirectAccess, ReactIs; } else { // By explicitly using `prop-types` you are opting into new production behavior. // http://fb.me/prop-types-in-prod module.exports = __webpack_require__(1600)(); } /***/ }), /* 18 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; exports.default = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }; /***/ }), /* 19 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; var _defineProperty = __webpack_require__(802); var _defineProperty2 = _interopRequireDefault(_defineProperty); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; (0, _defineProperty2.default)(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /***/ }), /* 20 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(1457), __esModule: true }; /***/ }), /* 21 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; var _typeof2 = __webpack_require__(273); var _typeof3 = _interopRequireDefault(_typeof2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = function (self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self; }; /***/ }), /* 22 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; var _setPrototypeOf = __webpack_require__(1461); var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); var _create = __webpack_require__(1465); var _create2 = _interopRequireDefault(_create); var _typeof2 = __webpack_require__(273); var _typeof3 = _interopRequireDefault(_typeof2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = function (subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass))); } subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass; }; /***/ }), /* 23 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return gql; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return gqlNoCache; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return gqlMutation; }); /* harmony import */ var lodash_fp_replace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(837); /* harmony import */ var lodash_fp_replace__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_fp_replace__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(40); /* harmony import */ var _common_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14); function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } var compressQuery = lodash_fp_replace__WEBPACK_IMPORTED_MODULE_0___default()(/\s+/g, ' '); var handleResponse = function handleResponse(body) { if (body.errors) { throw body.errors[0]; // throw an error with a status code and a message } else { return body.data; } }; var gql = /*#__PURE__*/function () { var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) { var query, variables, _ref$withCache, withCache, condensedQuery, stringifiedVariables, gqlPath, res; return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: query = _ref.query, variables = _ref.variables, _ref$withCache = _ref.withCache, withCache = _ref$withCache === void 0 ? true : _ref$withCache; condensedQuery = compressQuery(query); stringifiedVariables = JSON.stringify(variables); gqlPath = withCache ? 'graphql-cached' : 'graphql'; _context.next = 6; return Object(___WEBPACK_IMPORTED_MODULE_1__[/* getRequest */ "b"])("".concat(_common_config__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].ESPER_API, "/").concat(gqlPath, "?query=").concat(condensedQuery, "&variables=").concat(stringifiedVariables)); case 6: res = _context.sent; return _context.abrupt("return", handleResponse(res)); case 8: case "end": return _context.stop(); } }, _callee); })); return function gql(_x) { return _ref2.apply(this, arguments); }; }(); var gqlNoCache = /*#__PURE__*/function () { var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) { var query, variables; return _regeneratorRuntime().wrap(function _callee2$(_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: query = _ref3.query, variables = _ref3.variables; return _context2.abrupt("return", gql({ query: query, variables: variables, withCache: false })); case 2: case "end": return _context2.stop(); } }, _callee2); })); return function gqlNoCache(_x2) { return _ref4.apply(this, arguments); }; }(); var gqlMutation = function gqlMutation(body) { return Object(___WEBPACK_IMPORTED_MODULE_1__[/* postRequest */ "c"])("".concat(_common_config__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].ESPER_API, "/graphql"), { data: body }).then(handleResponse); }; /***/ }), /* 24 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ALL_RESSOURCES; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return getQueryStatus; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getFilter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getFilterByType; }); /* unused harmony export getFilterData */ /* unused harmony export getFilterTitle */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getFilterResult; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getFilterTotal; }); /* unused harmony export getFormSequences */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return getRessourceSearchResults; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return getRessourceSearchFilter; }); /* unused harmony export getSequenceCoursList */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return getMySequenceCoursList; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getCurrentCours; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getCurrentCoursRessources; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getCurrentCoursRessource; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getCoursForm; }); /* unused harmony export getCours */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return getFormResources; }); /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6); /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(128); /* harmony import */ var lodash_filter__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_filter__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36); /* harmony import */ var _discipline__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(32); /** * Created by ferdinand on 01/06/2017. */ var ALL_RESSOURCES = 'toutes-les-ressources'; var getQueryStatus = function getQueryStatus(state, query) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(state, ['query', 'COURS', JSON.stringify(query)], {}); }; var getFilter = function getFilter(state) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(state, ['cours', 'filter'], {}); }; var getFilterByType = function getFilterByType(state, type) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(state, ['cours', 'filter', type], null); }; var getFilterData = function getFilterData(state, type) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(state, ['cours', 'filterData', type], []); }; var getFilterTitle = function getFilterTitle(state, type) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(state, ['cours', 'filterTitle', type]); }; var getFilterResult = function getFilterResult(state) { return lodash_filter__WEBPACK_IMPORTED_MODULE_1___default()(lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(state, ['cours', 'filterResult'], []), function (cours) { var discipline = Object(_discipline__WEBPACK_IMPORTED_MODULE_3__[/* getDiscipline */ "b"])(state, lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(getFilter(state), 'discipline')); return discipline ? cours.discipline === discipline.nom : true; }); }; var getFilterTotal = function getFilterTotal(state) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(state, ['cours', 'filterResultTotal'], 0); }; var getFormSequences = function getFormSequences(state) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(state, ['cours', 'form', 'sequences'], []); }; var getRessourceSearchResults = function getRessourceSearchResults(state) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(state, ['cours', 'ressourceResults'], {}); }; var getRessourceSearchFilter = function getRessourceSearchFilter(state) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(state, ['cours', 'ressourceFilter'], {}); }; var getSequenceCoursList = function getSequenceCoursList(sequence) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(sequence, 'coursList', []); }; var getMySequenceCoursList = function getMySequenceCoursList(state, sequence) { var currentUserId = Object(_user__WEBPACK_IMPORTED_MODULE_2__[/* getAuthenticatedUserId */ "b"])(state); if (!currentUserId) return []; return getSequenceCoursList(sequence).filter(function (cours) { return cours.userId === currentUserId; }); }; /** * Must return object if not found. other wise it will initilize the form and * after that we can not change the initial value even we have successfully loaded the cours. * @param state */ var getCurrentCours = function getCurrentCours(state) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(state, ['cours', 'currentCours'], null); }; var getCurrentCoursRessources = function getCurrentCoursRessources(cours) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(cours, 'ressources', []); }; /** * when creating, we dont have any resouceId (not yet created) * use their index instead * @param cours * @param resourceIndex */ var getCurrentCoursRessource = function getCurrentCoursRessource(cours, resourceIndex) { var resources = getCurrentCoursRessources(cours); return resources[resourceIndex] || { resourceType: ALL_RESSOURCES }; }; var getCoursForm = function getCoursForm(state) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(state, ['form', 'coursForm'], {}); }; var getCours = function getCours(state, coursId) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(state, ['cours', coursId]); }; var getFormResources = function getFormResources(coursForm) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(coursForm, ['values', 'ressources'], []); }; /***/ }), /* 25 */ /***/ (function(module, exports) { module.exports = function (exec) { try { return !!exec(); } catch (error) { return true; } }; /***/ }), /* 26 */ /***/ (function(module, exports, __webpack_require__) { var baseKeys = __webpack_require__(337), getTag = __webpack_require__(172), isArguments = __webpack_require__(276), isArray = __webpack_require__(63), isArrayLike = __webpack_require__(133), isBuffer = __webpack_require__(277), isPrototype = __webpack_require__(338), isTypedArray = __webpack_require__(335); /** `Object#toString` result references. */ var mapTag = '[object Map]', setTag = '[object Set]'; /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Checks if `value` is an empty object, collection, map, or set. * * Objects are considered empty if they have no own enumerable string keyed * properties. * * Array-like values such as `arguments` objects, arrays, buffers, strings, or * jQuery-like collections are considered empty if they have a `length` of `0`. * Similarly, maps and sets are considered empty if they have a `size` of `0`. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is empty, else `false`. * @example * * _.isEmpty(null); * // => true * * _.isEmpty(true); * // => true * * _.isEmpty(1); * // => true * * _.isEmpty([1, 2, 3]); * // => false * * _.isEmpty({ 'a': 1 }); * // => false */ function isEmpty(value) { if (value == null) { return true; } if (isArrayLike(value) && (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || isBuffer(value) || isTypedArray(value) || isArguments(value))) { return !value.length; } var tag = getTag(value); if (tag == mapTag || tag == setTag) { return !value.size; } if (isPrototype(value)) { return !baseKeys(value).length; } for (var key in value) { if (hasOwnProperty.call(value, key)) { return false; } } return true; } module.exports = isEmpty; /***/ }), /* 27 */ /***/ (function(module, exports) { module.exports = function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /***/ }), /* 28 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SEQUENCE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getSequence; }); /* unused harmony export getSequences */ /* unused harmony export getSequencesByYearAndDiscipline */ /* unused harmony export getSequenceActivity */ /* unused harmony export getSequenceActivitiesResourceBySlug */ /* unused harmony export getSequenceResourceBySlug */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getSequencesByObjectifId; }); /* unused harmony export getSequencesByYearId */ /* unused harmony export getSequenceBySequenceId */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getSequencesByYearAndObjectifId; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getYearsBySequenceId; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getSequenceBreadcrumb; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getBreadcrumbClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getQueryStatus; }); /* unused harmony export getSequenceList */ /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6); /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(366); /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_first__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79); /* harmony import */ var lodash_first__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_first__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(102); /* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var lodash_fp_flow__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(103); /* harmony import */ var lodash_fp_flow__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_fp_flow__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var lodash_fp_get__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(84); /* harmony import */ var lodash_fp_get__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_fp_get__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var lodash_fp_filter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(298); /* harmony import */ var lodash_fp_filter__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_fp_filter__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var lodash_fp_inRange__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(506); /* harmony import */ var lodash_fp_inRange__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_fp_inRange__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var lodash_fp_first__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(198); /* harmony import */ var lodash_fp_first__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_fp_first__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var lodash_fp_last__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(835); /* harmony import */ var lodash_fp_last__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_fp_last__WEBPACK_IMPORTED_MODULE_9__); /* harmony import */ var lodash_fp_find__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(292); /* harmony import */ var lodash_fp_find__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_fp_find__WEBPACK_IMPORTED_MODULE_10__); /* harmony import */ var _discipline__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(32); /* harmony import */ var _objectif__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(68); /* harmony import */ var _cycle__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(48); /* harmony import */ var _utils_route__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(10); /* harmony import */ var _specs_v2_discipline__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(11); var SEQUENCE = 'sequence'; var getSequence = function getSequence(state, sequenceId) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(state.sequence, sequenceId, null); }; var getSequences = function getSequences(state, sequenceIds) { return Array.isArray(sequenceIds) && sequenceIds.length > 0 ? sequenceIds.map(function (id) { return getSequence(state, id); }).filter(function (sequence) { return sequence !== null; }) : []; }; var getSequencesByYearAndDiscipline = function getSequencesByYearAndDiscipline(state, _ref) { var disciplineId = _ref.disciplineId, years = _ref.years; var start = lodash_fp_first__WEBPACK_IMPORTED_MODULE_8___default()(years); var end = lodash_fp_last__WEBPACK_IMPORTED_MODULE_9___default()(years) + 1; // lodash.inRange does not include end return lodash_fp_flow__WEBPACK_IMPORTED_MODULE_4___default()(lodash_fp_get__WEBPACK_IMPORTED_MODULE_5___default()(SEQUENCE), lodash_fp_filter__WEBPACK_IMPORTED_MODULE_6___default()({ disciplineId: disciplineId }), lodash_fp_filter__WEBPACK_IMPORTED_MODULE_6___default()(function (s) { return lodash_fp_inRange__WEBPACK_IMPORTED_MODULE_7___default()(start, end, s.anneeMin) || lodash_fp_inRange__WEBPACK_IMPORTED_MODULE_7___default()(start, end, s.anneeMax); }))(state); }; var getSequenceActivity = function getSequenceActivity(state, _ref2) { var sequenceId = _ref2.sequenceId, activityId = _ref2.activityId; return lodash_fp_flow__WEBPACK_IMPORTED_MODULE_4___default()(lodash_fp_get__WEBPACK_IMPORTED_MODULE_5___default()([SEQUENCE, sequenceId, 'activities']), lodash_fp_find__WEBPACK_IMPORTED_MODULE_10___default()({ id: activityId }))(state); }; var getSequenceActivitiesResourceBySlug = function getSequenceActivitiesResourceBySlug(state, _ref3) { var sequenceId = _ref3.sequenceId, activityId = _ref3.activityId, slug = _ref3.slug; return lodash_fp_flow__WEBPACK_IMPORTED_MODULE_4___default()(lodash_fp_get__WEBPACK_IMPORTED_MODULE_5___default()([SEQUENCE, sequenceId, 'activities']), lodash_fp_find__WEBPACK_IMPORTED_MODULE_10___default()({ id: activityId }), lodash_fp_get__WEBPACK_IMPORTED_MODULE_5___default()('resources'), lodash_fp_filter__WEBPACK_IMPORTED_MODULE_6___default()({ slug: slug }))(state); }; var getSequenceResourceBySlug = function getSequenceResourceBySlug(state, _ref4) { var sequenceId = _ref4.sequenceId, slug = _ref4.slug; return lodash_fp_flow__WEBPACK_IMPORTED_MODULE_4___default()(lodash_fp_get__WEBPACK_IMPORTED_MODULE_5___default()([SEQUENCE, sequenceId, 'resources']), lodash_fp_filter__WEBPACK_IMPORTED_MODULE_6___default()({ slug: slug }))(state); }; var getSequencesByObjectifId = function getSequencesByObjectifId(state, objectifId) { return Object.values(state.sequence).filter(function (s) { return s.objectifId === objectifId; }); }; var getSequencesByYearId = function getSequencesByYearId(state, yearId) { return Object.values(state.sequence).filter(function (s) { return s.anneeMin <= yearId && s.anneeMax >= yearId; }); }; var getSequenceBySequenceId = function getSequenceBySequenceId(state, yearId, sequenceId) { return state.sequence[yearId] ? state.sequence[yearId].find(function (s) { return s.id === sequenceId; }) : null; }; var getSequencesByYearAndObjectifId = function getSequencesByYearAndObjectifId(state, yearId, objectifId) { return getSequencesByYearId(state, yearId).filter(function (s) { return s.objectifId === objectifId; }); }; var getYearsBySequenceId = function getYearsBySequenceId(state, sequenceId) { var sequence = getSequence(state, sequenceId); var anneeMin = lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(sequence, 'anneeMin', null); var anneeMax = lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(sequence, 'anneeMax', null); if (!anneeMin && !anneeMax) { return []; } else if (!anneeMin && anneeMax) { return [anneeMax]; } else if (anneeMin && !anneeMax) { return [anneeMin]; } else if (anneeMax === anneeMin) { return [anneeMax]; } else { return lodash_range__WEBPACK_IMPORTED_MODULE_1___default()(anneeMin, anneeMax + 1); } }; var getSequenceBreadcrumb = function getSequenceBreadcrumb(state, sequenceId) { var discipline = Object(_discipline__WEBPACK_IMPORTED_MODULE_11__[/* getDisciplineBySequenceId */ "d"])(state, sequenceId); var objectif = Object(_objectif__WEBPACK_IMPORTED_MODULE_12__[/* getObjectifBySequenceId */ "d"])(state, sequenceId); var sequence = getSequence(state, sequenceId); var cycle = Object(_cycle__WEBPACK_IMPORTED_MODULE_13__[/* getCycleByYear */ "a"])(state, sequence.anneeMax || sequence.anneeMin); var disciplineId = lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(discipline, 'id'); var yearsId = getYearsBySequenceId(state, sequenceId); /* @TODO: facrorize the axe somewere (maby in state)*/ var axe = lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(objectif, 'thematique.nom', ''); // handle title by discipline var title = function (disciplineId) { switch (disciplineId) { case _specs_v2_discipline__WEBPACK_IMPORTED_MODULE_15__[/* MATH_DISCIPLINE_ID */ "b"]: return getMathSequenceBreadcrumb(state, discipline, yearsId); case _specs_v2_discipline__WEBPACK_IMPORTED_MODULE_15__[/* SN_DISCIPLINE_ID */ "c"]: return "".concat(discipline.nom, " Cycle ").concat(cycle.id); } }(disciplineId); var years = Object.keys(cycle.annees); // this is for the sideMenu (math, year 1/2) if (discipline.id === _specs_v2_discipline__WEBPACK_IMPORTED_MODULE_15__[/* MATH_DISCIPLINE_ID */ "b"] && lodash_includes__WEBPACK_IMPORTED_MODULE_3___default()(years, '2') && sequence.anneeMax <= 2) { years = [1, 2]; } if (discipline.id === _specs_v2_discipline__WEBPACK_IMPORTED_MODULE_15__[/* MATH_DISCIPLINE_ID */ "b"] && lodash_includes__WEBPACK_IMPORTED_MODULE_3___default()(years, '3') && sequence.anneeMax <= 3) { years = [3]; } if (discipline.id === _specs_v2_discipline__WEBPACK_IMPORTED_MODULE_15__[/* MATH_DISCIPLINE_ID */ "b"] && lodash_includes__WEBPACK_IMPORTED_MODULE_3___default()(years, '4') && sequence.anneeMax <= 4) { years = [4]; } if (discipline.id === _specs_v2_discipline__WEBPACK_IMPORTED_MODULE_15__[/* MATH_DISCIPLINE_ID */ "b"] && lodash_includes__WEBPACK_IMPORTED_MODULE_3___default()(years, '5') && sequence.anneeMax <= 5) { years = [5]; } if (discipline.id === _specs_v2_discipline__WEBPACK_IMPORTED_MODULE_15__[/* MATH_DISCIPLINE_ID */ "b"] && lodash_includes__WEBPACK_IMPORTED_MODULE_3___default()(years, '6') && sequence.anneeMax <= 6) { years = [6]; } if (discipline.id === _specs_v2_discipline__WEBPACK_IMPORTED_MODULE_15__[/* MATH_DISCIPLINE_ID */ "b"] && lodash_includes__WEBPACK_IMPORTED_MODULE_3___default()(years, '7') && sequence.anneeMax <= 7) { years = [7]; } if (discipline.id === _specs_v2_discipline__WEBPACK_IMPORTED_MODULE_15__[/* MATH_DISCIPLINE_ID */ "b"] && lodash_includes__WEBPACK_IMPORTED_MODULE_3___default()(years, '8') && sequence.anneeMax <= 8) { years = [8]; } return discipline && objectif && sequence ? [{ title: title, url: Object(_utils_route__WEBPACK_IMPORTED_MODULE_14__[/* getPath */ "c"])('discipline', { disciplineId: discipline.id, yearsId: years }) }, { title: axe, url: Object(_utils_route__WEBPACK_IMPORTED_MODULE_14__[/* getPath */ "c"])('objectif', { disciplineId: discipline.id, yearsId: years, objectifId: objectif.id }) }, { title: disciplineId === _specs_v2_discipline__WEBPACK_IMPORTED_MODULE_15__[/* MATH_DISCIPLINE_ID */ "b"] ? "Chap".concat(sequence.numero, " : ").concat(sequence.nom) : "S".concat(sequence.numero, " : ").concat(sequence.nom), url: Object(_utils_route__WEBPACK_IMPORTED_MODULE_14__[/* getPath */ "c"])('sequence', { sequenceId: sequenceId }) }] : []; }; var getBreadcrumbClass = function getBreadcrumbClass(state, sequenceId) { var discipline = Object(_discipline__WEBPACK_IMPORTED_MODULE_11__[/* getDisciplineBySequenceId */ "d"])(state, sequenceId); return _specs_v2_discipline__WEBPACK_IMPORTED_MODULE_15__[/* MATH_DISCIPLINE_ID */ "b"] === discipline.id ? ' Breadcrumb--math' : ''; }; /** * handle math specificity * * @param state * @param discipline * @param yearsId * * @returns {string} */ var getMathSequenceBreadcrumb = function getMathSequenceBreadcrumb(state, discipline, yearsId) { var year = Object(_cycle__WEBPACK_IMPORTED_MODULE_13__[/* getYearById */ "d"])(state, lodash_first__WEBPACK_IMPORTED_MODULE_2___default()(yearsId)); var title = "".concat(discipline.nom, " ").concat(year.html); if (year.id === 1 || year.id === 2) { title = "".concat(discipline.nom, " 1re et 2e"); } return title; }; var getQueryStatus = function getQueryStatus(state, query) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(state, ['query', SEQUENCE, JSON.stringify(query)], {}); }; var getSequenceList = function getSequenceList(state) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(state, ['sequence', 'sequenceList'], []); }; /***/ }), /* 29 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; exports.defaultMemoize = defaultMemoize; exports.createSelectorCreator = createSelectorCreator; exports.createStructuredSelector = createStructuredSelector; function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } function defaultEqualityCheck(a, b) { return a === b; } function defaultMemoize(func) { var equalityCheck = arguments.length <= 1 || arguments[1] === undefined ? defaultEqualityCheck : arguments[1]; var lastArgs = null; var lastResult = null; return function () { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } if (lastArgs === null || lastArgs.length !== args.length || !args.every(function (value, index) { return equalityCheck(value, lastArgs[index]); })) { lastResult = func.apply(undefined, args); } lastArgs = args; return lastResult; }; } function getDependencies(funcs) { var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs; if (!dependencies.every(function (dep) { return typeof dep === 'function'; })) { var dependencyTypes = dependencies.map(function (dep) { return typeof dep; }).join(', '); throw new Error('Selector creators expect all input-selectors to be functions, ' + ('instead received the following types: [' + dependencyTypes + ']')); } return dependencies; } function createSelectorCreator(memoize) { for (var _len2 = arguments.length, memoizeOptions = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { memoizeOptions[_key2 - 1] = arguments[_key2]; } return function () { for (var _len3 = arguments.length, funcs = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { funcs[_key3] = arguments[_key3]; } var recomputations = 0; var resultFunc = funcs.pop(); var dependencies = getDependencies(funcs); var memoizedResultFunc = memoize.apply(undefined, [function () { recomputations++; return resultFunc.apply(undefined, arguments); }].concat(memoizeOptions)); var selector = function selector(state, props) { for (var _len4 = arguments.length, args = Array(_len4 > 2 ? _len4 - 2 : 0), _key4 = 2; _key4 < _len4; _key4++) { args[_key4 - 2] = arguments[_key4]; } var params = dependencies.map(function (dependency) { return dependency.apply(undefined, [state, props].concat(args)); }); return memoizedResultFunc.apply(undefined, _toConsumableArray(params)); }; selector.resultFunc = resultFunc; selector.recomputations = function () { return recomputations; }; selector.resetRecomputations = function () { return recomputations = 0; }; return selector; }; } var createSelector = exports.createSelector = createSelectorCreator(defaultMemoize); function createStructuredSelector(selectors) { var selectorCreator = arguments.length <= 1 || arguments[1] === undefined ? createSelector : arguments[1]; if (typeof selectors !== 'object') { throw new Error('createStructuredSelector expects first argument to be an object ' + ('where each property is a selector, instead received a ' + typeof selectors)); } var objectKeys = Object.keys(selectors); return selectorCreator(objectKeys.map(function (key) { return selectors[key]; }), function () { for (var _len5 = arguments.length, values = Array(_len5), _key5 = 0; _key5 < _len5; _key5++) { values[_key5] = arguments[_key5]; } return values.reduce(function (composition, value, index) { composition[objectKeys[index]] = value; return composition; }, {}); }); } /***/ }), /* 30 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; var _assign = __webpack_require__(1453); var _assign2 = _interopRequireDefault(_assign); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _assign2.default || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /***/ }), /* 31 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; exports.default = function (obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }; /***/ }), /* 32 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXPORTS __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ DISCIPLINE; }); __webpack_require__.d(__webpack_exports__, "b", function() { return /* binding */ discipline_getDiscipline; }); __webpack_require__.d(__webpack_exports__, "d", function() { return /* binding */ discipline_getDisciplineBySequenceId; }); __webpack_require__.d(__webpack_exports__, "e", function() { return /* binding */ discipline_getDisciplineText; }); __webpack_require__.d(__webpack_exports__, "f", function() { return /* binding */ getDisciplines; }); __webpack_require__.d(__webpack_exports__, "h", function() { return /* binding */ discipline_getStaticDisciplines; }); __webpack_require__.d(__webpack_exports__, "i", function() { return /* binding */ discipline_getUserDisciplines; }); __webpack_require__.d(__webpack_exports__, "c", function() { return /* binding */ discipline_getDisciplineBreadcrumb; }); __webpack_require__.d(__webpack_exports__, "g", function() { return /* binding */ discipline_getQueryStatus; }); // UNUSED EXPORTS: getSideMenu, getUserDisciplinesData, getUserDisciplineThematiques, getDisciplinesBySequenceIds // EXTERNAL MODULE: ./node_modules/lodash/first.js var first = __webpack_require__(79); var first_default = /*#__PURE__*/__webpack_require__.n(first); // EXTERNAL MODULE: ./node_modules/lodash/get.js var get = __webpack_require__(6); var get_default = /*#__PURE__*/__webpack_require__.n(get); // EXTERNAL MODULE: ./node_modules/lodash/map.js var map = __webpack_require__(137); var map_default = /*#__PURE__*/__webpack_require__.n(map); // EXTERNAL MODULE: ./node_modules/lodash/isEmpty.js var isEmpty = __webpack_require__(26); var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty); // CONCATENATED MODULE: ./src/js/utils/menu.js var minifyMap = { mathématiques: 'maths', 'sciences de la nature': 'sn', 'éthique et cultures religieuses': 'éhtique', 'activités créatrices et manuelles': 'activités', 'éducation physique': 'physique', 'éducation nutritionnelle': 'nutrition', 'santé et bien-être': 'santé', 'choix et projets personnels': 'choix', 'vivre ensemble et exercice de la démocratie': 'démocratie', 'interdépendances (sociales, économiques et environnementales)': 'interdép', 'économie familiale': 'économie' }; var menu_minify = function minify(title) { return get_default()(minifyMap, ('' + title).toLowerCase(), title); }; // EXTERNAL MODULE: ./src/js/selectors/cycle.js var selectors_cycle = __webpack_require__(48); // EXTERNAL MODULE: ./src/js/utils/route.js var route = __webpack_require__(10); // EXTERNAL MODULE: ./src/js/specs/v2/discipline.js var v2_discipline = __webpack_require__(11); // EXTERNAL MODULE: ./src/js/selectors/sequence.js var sequence = __webpack_require__(28); // EXTERNAL MODULE: ./node_modules/lodash/fp/flow.js var flow = __webpack_require__(103); var flow_default = /*#__PURE__*/__webpack_require__.n(flow); // EXTERNAL MODULE: ./node_modules/lodash/fp/get.js var fp_get = __webpack_require__(84); var fp_get_default = /*#__PURE__*/__webpack_require__.n(fp_get); // EXTERNAL MODULE: ./node_modules/lodash/fp/flatMap.js var flatMap = __webpack_require__(836); var flatMap_default = /*#__PURE__*/__webpack_require__.n(flatMap); // EXTERNAL MODULE: ./node_modules/lodash/fp/find.js var find = __webpack_require__(292); var find_default = /*#__PURE__*/__webpack_require__.n(find); // EXTERNAL MODULE: ./src/common/config/index.js var config = __webpack_require__(14); // CONCATENATED MODULE: ./src/js/selectors/discipline.js function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } var DISCIPLINE = 'discipline'; var discipline_getDiscipline = function getDiscipline(state, disciplineId) { return get_default()(state.discipline, [disciplineId], null); }; var discipline_getDisciplineBySequenceId = function getDisciplineBySequenceId(state, sequenceId) { var discipline = get_default()(Object(sequence["d" /* getSequence */])(state, sequenceId), 'discipline', null) || discipline_getDiscipline(state, get_default()(Object(sequence["d" /* getSequence */])(state, sequenceId), 'disciplineId')); return discipline; }; var discipline_getDisciplineText = function getDisciplineText(state, slug) { return flow_default()(fp_get_default()(DISCIPLINE), flatMap_default()('texts'), find_default()({ slug: slug }))(state); }; var getDisciplines = function getDisciplines(state) { return Object.values(state.discipline); }; var discipline_getStaticDisciplines = function getStaticDisciplines() { return [{ id: v2_discipline["c" /* SN_DISCIPLINE_ID */], fullTitle: 'Sciences de la nature', nom: 'Sciences de la nature', title: 'sn', years: [{ id: 3, title: 'CYCLE 3', ids: [9, 10, 11] }] }, { id: v2_discipline["b" /* MATH_DISCIPLINE_ID */], fullTitle: 'Mathématiques', nom: 'Mathématiques', title: 'maths', years: [{ id: 1, title: '1re et 2e', ids: [1, 2] }, { id: 2, title: '3e', ids: [3] }, { id: 3, title: '4e', ids: [4] }, { id: 4, title: '5e', ids: [5] }, { id: 5, title: '6e', ids: [6] }, { id: 6, title: '7e', ids: [7] }, { id: 7, title: '8e', ids: [8] }] }, !config["a" /* default */].ENV.startsWith('prod') ? { id: v2_discipline["a" /* FRENCH_DISCIPLINE_ID */], fullTitle: 'Français', nom: 'Français', title: 'francais', years: [{ id: 1, title: '1re et 2e', ids: [1, 2] }] } : null].filter(Boolean); }; var discipline_getSideMenu = function getSideMenu(state) { return Object.values(state.userDiscipline).map(function (ud) { var d = discipline_getDiscipline(state, get_default()(ud, ['_links', 'discipline', 'id'])); if (d) { var years = Object(selectors_cycle["c" /* getFilteredMenuYears */])(state, ud.annees, d.id === v2_discipline["c" /* SN_DISCIPLINE_ID */]); if (d.id === v2_discipline["b" /* MATH_DISCIPLINE_ID */]) { years = regroupYearsForMath(years); } return { id: d.id, title: menu_minify(d.nom), fullTitle: d.nom, years: years }; } return null; }).filter(function (d) { return !!d; }); }; var discipline_getUserDisciplines = function getUserDisciplines(state) { return Object.keys(state.userDiscipline).map(function (udId) { return { id: parseInt(udId, 10), disciplineId: get_default()(state.userDiscipline, [udId, '_links', 'discipline', 'id']), annees: get_default()(state.userDiscipline, [udId, 'annees']) }; }); }; var discipline_getUserDisciplinesData = function getUserDisciplinesData(state) { if (!isEmpty_default()(state.discipline)) { return map_default()(state.userDiscipline, function (element) { var disciplineId = get_default()(element, ['_links', 'discipline', 'id'], null); return discipline_getDiscipline(state, disciplineId); }); } return []; }; var discipline_getUserDisciplineThematiques = function getUserDisciplineThematiques(state, disciplineId) { var discipline = discipline_getDiscipline(state, disciplineId); if (!isEmpty_default()(discipline)) { return discipline.thematiques; } return []; }; var discipline_getDisciplinesBySequenceIds = function getDisciplinesBySequenceIds(state, sequenceIds) { return sequenceIds.reduce(function (m, sequenceId) { var discipline = discipline_getDisciplineBySequenceId(state, sequenceId); if (discipline) { var ids = get_default()(m, [discipline.id, 'sequenceIds'], []); return _objectSpread(_objectSpread({}, m), {}, _defineProperty({}, discipline.id, { discipline: discipline, sequenceIds: [].concat(_toConsumableArray(ids), [sequenceId]) })); } return m; }, {}); }; var discipline_getDisciplineBreadcrumb = function getDisciplineBreadcrumb(state, disciplineId, yearsId) { var discipline = discipline_getDiscipline(state, disciplineId); var cycle = Object(selectors_cycle["a" /* getCycleByYear */])(state, first_default()(yearsId)); var title = ''; if (disciplineId == v2_discipline["c" /* SN_DISCIPLINE_ID */]) { title = "".concat(discipline.nom, " Cycle ").concat(cycle.id); } else if (disciplineId == v2_discipline["b" /* MATH_DISCIPLINE_ID */]) { title = discipline_getMathDisciplineBreadcrumb(state, discipline, yearsId); } return discipline ? [{ title: title, url: Object(route["c" /* getPath */])('discipline', { disciplineId: disciplineId, yearsId: yearsId }) }] : []; }; var discipline_getQueryStatus = function getQueryStatus(state, query) { return get_default()(state, ['query', DISCIPLINE, JSON.stringify(query)], {}); }; /** * Handle math specificity * @param {Array} years * * @returns {Array} */ function regroupYearsForMath(years) { var yearsForMath = [{ id: 1, title: '1ère et 2ème', ids: [1] }]; years.map(function (year) { if (year.id !== 1 && year.id !== 2) { yearsForMath.push(year); } }); return yearsForMath; } /** * handle math specificity * * @param state * @param discipline * @param yearsId * * @returns {string} */ var discipline_getMathDisciplineBreadcrumb = function getMathDisciplineBreadcrumb(state, discipline, yearsId) { var year = Object(selectors_cycle["d" /* getYearById */])(state, first_default()(yearsId)); var title = "".concat(discipline.nom, " ").concat(year.html); if (year.id == 1 || year.id == 2) { title = "".concat(discipline.nom, " 1re et 2e"); } return title; }; /***/ }), /* 33 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; function _interopRequire(obj) { return obj && obj.__esModule ? obj['default'] : obj; } var _Motion = __webpack_require__(1489); exports.Motion = _interopRequire(_Motion); var _StaggeredMotion = __webpack_require__(1490); exports.StaggeredMotion = _interopRequire(_StaggeredMotion); var _TransitionMotion = __webpack_require__(1491); exports.TransitionMotion = _interopRequire(_TransitionMotion); var _spring = __webpack_require__(1493); exports.spring = _interopRequire(_spring); var _presets = __webpack_require__(808); exports.presets = _interopRequire(_presets); var _stripStyle = __webpack_require__(352); exports.stripStyle = _interopRequire(_stripStyle); // deprecated, dummy warning function var _reorderKeys = __webpack_require__(1494); exports.reorderKeys = _interopRequire(_reorderKeys); /***/ }), /* 34 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {var check = function (it) { return it && it.Math == Math && it; }; // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 module.exports = /* global globalThis -- safe */ check(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) || check(typeof self == 'object' && self) || check(typeof global == 'object' && global) || // eslint-disable-next-line no-new-func -- fallback (function () { return this; })() || Function('return this')(); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(52))) /***/ }), /* 35 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ACTIVITE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getActivite; }); /* unused harmony export getActiviteIdsBySequence */ /* unused harmony export getActiviteIdsBySequenceId */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getActiviteType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return filterActivitiesByType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getActivitesDirectBySequence; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getActivitesBySequenceId; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getActivitesByTypeId; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return getQueryStatus; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getActiviteNeighborIds; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getActivitesByApprentissageViseId; }); /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6); /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _sequence__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28); /* harmony import */ var _utils_activite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(37); var ACTIVITE = 'activite'; var getActivite = function getActivite(state, activiteId) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(state, ['activite', activiteId], null); }; var getActiviteIdsBySequence = function getActiviteIdsBySequence(state, sequence) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(sequence, ['activites'], []).map(function (item) { return item.id; }); }; var getActiviteIdsBySequenceId = function getActiviteIdsBySequenceId(state, sequenceId) { return getActiviteIdsBySequence(state, Object(_sequence__WEBPACK_IMPORTED_MODULE_1__[/* getSequence */ "d"])(state, sequenceId)); }; var getActiviteType = function getActiviteType(activite) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(activite, ['typeActivite', 'id']); }; var filterActivitiesByType = function filterActivitiesByType(activites, typeId, apprentissageViseId) { return activites.filter(function (a) { return typeId === getActiviteType(a) && (!lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(a, 'apprentissageViseId') || apprentissageViseId === lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(a, 'apprentissageViseId')); }); }; var getActivitesDirectBySequence = function getActivitesDirectBySequence(sequence) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(sequence, ['activites']); }; var getActivitesBySequenceId = function getActivitesBySequenceId(state, sequenceId) { return getActivitesDirectBySequence(lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(state, ['sequence', sequenceId])); }; var getActivitesByTypeId = function getActivitesByTypeId(state, sequenceId, typeActiviteId) { return filterActivitiesByType(getActivitesBySequenceId(state, sequenceId), typeActiviteId); }; var getQueryStatus = function getQueryStatus(state, query) { return lodash_get__WEBPACK_IMPORTED_MODULE_0___default()(state, ['query', ACTIVITE, JSON.stringify(query)], {}); }; var getActiviteNeighborIds = function getActiviteNeighborIds(state, sequenceId, activiteId) { var ids = getActiviteIdsBySequenceId(state, sequenceId); return Object(_utils_activite__WEBPACK_IMPORTED_MODULE_2__[/* neighbors */ "l"])(ids, activiteId); }; /** * * @param activites * @param apprentissageViseId * @return {Array.} activites */ var getActivitesByApprentissageViseId = function getActivitesByApprentissageViseId(activites, apprentissageViseId) { return activites.filter(function (a) { return a.apprentissageViseId === apprentissageViseId; }) || []; }; /***/ }), /* 36 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getAuthenticatedUserId; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getAuthenticatedUser; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getIsAuthDone; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getUserToken; }); /* harmony import */ var lodash_fp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1); /* harmony import */ var lodash_fp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_fp__WEBPACK_IMPORTED_MODULE_0__); var getAuthenticatedUserId = lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.get('auth.userId'); var getAuthenticatedUser = function getAuthenticatedUser(state) { return lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.flow(lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.get('users'), lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.find({ id: getAuthenticatedUserId(state) }))(state); }; var getIsAuthDone = lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.get('auth.isAuthDone'); var getUserToken = lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.get('auth.token'); /***/ }), /* 37 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return TYPE_ACTIVITE_INTRODUCTION; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TYPE_ACTIVITE_ENTRAINEMENT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return TYPE_ACTIVITE_PROBLEME; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return TYPE_ACTIVITE_TUILAGE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return TYPE_ACTIVITE_LIEN; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return TYPE_ACTIVITE_FAMILIARISATION; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return TYPE_ACTIVITE_PROBLEME_LIE_A_APPRENTISSAGE_VISEE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return TYPE_ACTIVITE_INSTITUTIONNALISATION; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return neighbors; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return handleActivitiesProblemsTitle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return filterDisciplineTexts; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return filterLinkActivities; }); /* harmony import */ var lodash_fp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1); /* harmony import */ var lodash_fp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_fp__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _selectors_cours__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24); var TYPE_ACTIVITE_INTRODUCTION = 1; var TYPE_ACTIVITE_ENTRAINEMENT = 2; var TYPE_ACTIVITE_PROBLEME = 3; var TYPE_ACTIVITE_TUILAGE = 4; var TYPE_ACTIVITE_LIEN = 11; var TYPE_ACTIVITE_FAMILIARISATION = 5; var TYPE_ACTIVITE_PROBLEME_LIE_A_APPRENTISSAGE_VISEE = 9; var TYPE_ACTIVITE_INSTITUTIONNALISATION = 10; var neighbors = function neighbors(ids, id) { if (id === _selectors_cours__WEBPACK_IMPORTED_MODULE_1__[/* ALL_RESSOURCES */ "a"]) return [null, ids[0]]; var index = ids.map(function (i) { return parseInt(i, 10); }).indexOf(parseInt(id, 10)); return index === -1 ? [null, null] : [lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.getOr(null, [index - 1], ids), lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.getOr(null, [index + 1], ids)]; }; var handleActivitiesProblemsTitle = function handleActivitiesProblemsTitle(type) { return type.id === 9 ? 'Problèmes' : type.nom; }; var filterDisciplineTexts = function filterDisciplineTexts(dt) { return !!dt.contenu && !lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.includes(dt.title, ['calculatrice (oui/non/autorisée/-)', 'icône “activité rituelle” (oui/non)']); }; var filterLinkActivities = function filterLinkActivities(activities) { return lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.reject(function (a) { return lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.get('typeActivite.id', a) === TYPE_ACTIVITE_LIEN; }, activities); }; /***/ }), /* 38 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; }); /* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(247); function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Object(_objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } /***/ }), /* 39 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5); /* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_redux__WEBPACK_IMPORTED_MODULE_1__); var SimpleQuery = function SimpleQuery(_ref) { var _ref$query = _ref.query, query = _ref$query === void 0 ? {} : _ref$query, loaded = _ref.loaded, loading = _ref.loading, request = _ref.request; var queryHash = JSON.stringify(query); Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(function () { // when you start an action (query_start), always do the call if (!loaded && !loading) { request(JSON.parse(queryHash), loaded, loading); } }, [queryHash, loaded, loading, request]); return null; }; var simpleQueryBuilder = function simpleQueryBuilder(queryAction, statusSelector) { var mapStateToProps = function mapStateToProps(state, _ref2) { var query = _ref2.query; var _statusSelector = statusSelector(state, query), loading = _statusSelector.loading, loaded = _statusSelector.loaded; return { loading: loading, loaded: loaded, query: query }; }; var mapDispatchToProps = function mapDispatchToProps(dispatch) { return { request: function request(query) { return dispatch(queryAction(query)); } }; }; return Object(react_redux__WEBPACK_IMPORTED_MODULE_1__["connect"])(mapStateToProps, mapDispatchToProps)(SimpleQuery); }; /* harmony default export */ __webpack_exports__["a"] = (simpleQueryBuilder); /***/ }), /* 40 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXPORTS __webpack_require__.d(__webpack_exports__, "b", function() { return /* binding */ api_getRequest; }); __webpack_require__.d(__webpack_exports__, "c", function() { return /* binding */ api_postRequest; }); __webpack_require__.d(__webpack_exports__, "d", function() { return /* binding */ api_putRequest; }); __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ api_deleteRequest; }); // UNUSED EXPORTS: getOriginFromHost, fetchUrl // EXTERNAL MODULE: ./src/common/config/index.js var config = __webpack_require__(14); // EXTERNAL MODULE: ./node_modules/axios/index.js var axios = __webpack_require__(293); var axios_default = /*#__PURE__*/__webpack_require__.n(axios); // EXTERNAL MODULE: ./node_modules/url/url.js var url_url = __webpack_require__(1305); // CONCATENATED MODULE: ./src/js/api/ApiConfig.js function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /* eslint-disable */ var originalAxios = axios_default.a.create(); var embededAxios = axios_default.a.create(); if (false) { var _require, getFileFromPath; } var request = embededAxios; // EXTERNAL MODULE: ./node_modules/lodash/fp.js var fp = __webpack_require__(1); var fp_default = /*#__PURE__*/__webpack_require__.n(fp); // CONCATENATED MODULE: ./src/js/api/index.js function api_typeof(o) { "@babel/helpers - typeof"; return api_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, api_typeof(o); } function api_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function api_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? api_ownKeys(Object(t), !0).forEach(function (r) { api_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : api_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function api_defineProperty(obj, key, value) { key = api_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function api_toPropertyKey(t) { var i = api_toPrimitive(t, "string"); return "symbol" == api_typeof(i) ? i : i + ""; } function api_toPrimitive(t, r) { if ("object" != api_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != api_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } var getOriginFromHostTemp; if (false) {} else { getOriginFromHostTemp = function getOriginFromHostTemp() { switch (window.location.host) { case 'localhost:3000': case 'localhost:9080': case 'localhost:3051': return 2109; case 'preprod-www.ciip-esper.ch': return 37; case 'www.ciip-esper.ch': case 'ciip-esper.ch': return 38; case 'esper.lelivrescolaire.fr.s3-website-eu-west-1.amazonaws.com': return 39; default: return 40; } }; } var getOriginFromHost = getOriginFromHostTemp; var api_getRequest = function getRequest(url) { var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; return request.get(url, api_objectSpread(api_objectSpread({}, opts), {}, { params: api_objectSpread(api_objectSpread({}, opts.params), {}, { origin: getOriginFromHost() }) })).then(function (r) { return r.data; }); }; var api_postRequest = function postRequest(url) { var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; return request.post(url, opts.data, { params: api_objectSpread(api_objectSpread({}, opts.params), {}, { origin: getOriginFromHost() }) }).then(function (r) { return r.data; }); }; var api_putRequest = function putRequest(url) { var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; return request.put(url, opts.data, { params: api_objectSpread(api_objectSpread({}, opts.params), {}, { origin: getOriginFromHost() }) }).then(function (r) { return r.data; }); }; var api_deleteRequest = function deleteRequest(url) { var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; return request.delete(url, api_objectSpread(api_objectSpread({}, opts), {}, { params: api_objectSpread(api_objectSpread({}, opts.params), {}, { origin: getOriginFromHost() }) })).then(function (r) { return r.data; }); }; var api_fetchUrl = function fetchUrl(url) { return api_getRequest("".concat(config["a" /* default */].rootURL, "/") + fp_default.a.trimChars('/', url)).then(function (data) { if (data) return data;else console.log(" \n\n probleme avec l'url " + url); // eslint-disable-line return null; }); }; /***/ }), /* 41 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getStatic; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return setDefinitionTooltips; }); /* unused harmony export formatLinks */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return removeHTMLTags; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return handleBackgroundColor; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return parseHTML; }); /* unused harmony export threeCharsDigit */ /* unused harmony export hardWriteUrls */ /* harmony import */ var lodash_fp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1); /* harmony import */ var lodash_fp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_fp__WEBPACK_IMPORTED_MODULE_0__); function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function getStatic() { var relativePath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; var isDevelopment = "production" !== 'production'; if (false) { var staticPath; } else return relativePath; } var addHint = function addHint() { var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; if (!html) return html; var newHtml = html.replace(/'/g, "'").replace(/#(?: ){0,1}!(.*?)\/\/\//g, function (string, word) { return "".concat(word, " "); var temp = document.createElement('div'); temp.innerHTML = newHtml; return temp.innerHTML; }; var setDefinitionTooltips = function setDefinitionTooltips(str) { if (!lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.isString(str)) return str; var reg = new RegExp(']*>(.*?)', 'g'); return str.replace(reg, function (__, cap) { return "").concat(cap, ""); }); }; var replaceTitleAttrByHint = function replaceTitleAttrByHint() { var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; if (!html) return html; var temp = document.createElement('div'); temp.innerHTML = html; lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.forEach(function (el) { var word = el.textContent; var hint = el.title; var newEl = document.createElement('span'); newEl.innerHTML = "".concat(word, " "); el.parentNode.replaceChild(newEl, el); }, temp.querySelectorAll('.lex_term')); return temp.innerHTML; }; var handleHardWriteUrls = function handleHardWriteUrls() { var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; if (true) return html; var stripped = html.replace(/data\/public\/media/gi, getStatic("data/public/media")).replace(/https?:\/\/sos-ch-dk-2\.exo\.io\/esper-prod/gi, getStatic("data/public/media")).replace(/\/\/sos-ch-dk-2\.exo\.io\/esper-prod/gi, getStatic("data/public/media")).replace(/sos-ch-dk-2\.exo\.io\/esper-prod/gi, getStatic("data/public/media")); return stripped; }; var formatLinks = function formatLinks() { var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; if (!html) return html; var serializer = new XMLSerializer(); var parser = new DOMParser(); var docElement = parser.parseFromString(html, "text/html"); var htmlNode = docElement.body; var aElements = _toConsumableArray(docElement.querySelectorAll('a')); var _iterator = _createForOfIteratorHelper(aElements), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var aElement = _step.value; var href = aElement.getAttribute("href"); if (lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.isEmpty(href)) { continue; } // if absolute path && notEsper, let it as is var isEsper = lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.includes('ciip-esper.ch', href) || lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.includes('localhost', href); if (lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.includes('http', href) && !isEsper) { continue; } // if absolute path without direct anchor if (lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.includes('http', href) && (href.includes('#/') || !href.includes('#'))) { aElement.href = '/' + new URL(href).hash; continue; } // if relative path, let it as is // if only anchor, make relative + anchor if (lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.startsWith('#', href)) { var anchor = lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.get(1, location.href.match('(#[^/]+)')); if (anchor) { aElement.href = '/' + lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.replace(anchor, href, location.hash); } else { aElement.href = '/' + location.hash + href; } continue; } } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } return serializer.serializeToString(htmlNode).replace(/ xmlns=".*?"/m, '').replace(/([\s\S]*)<\/body>/m, '$1'); }; var removeHTMLTags = function removeHTMLTags(html) { if (!html) return html; return html.replace(/<(?:.|\n)*?>/gm, ''); }; var handleBackgroundColor = function handleBackgroundColor() { var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; if (!html) return html; return html.replace(/background-color:\s*(#[a-f0-9]{3,6})/gi, 'border: 1px solid $1').replace(/background-color:\s*rgb\((.*?)\)/gi, 'border: 1px solid rgb($1)').replace(/([^-])color:\s*#f{3,6}/gi, '$1color: #000'); }; var parseHTML = function parseHTML(html) { var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, printMode = _ref.printMode; return lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.flow(handleHardWriteUrls, replaceTitleAttrByHint, addHint, formatLinks, printMode ? handleBackgroundColor : lodash_fp__WEBPACK_IMPORTED_MODULE_0___default.a.identity)(html); }; var threeCharsDigit = function threeCharsDigit(digit) { return ('000' + digit).substr(-3); }; var hardWriteUrls = handleHardWriteUrls; /***/ }), /* 42 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** * Use invariant() to assert state which your program assumes to be true. * * Provide sprintf-style format (only %s is supported) and arguments * to provide information about what broke and what you were * expecting. * * The invariant message will be stripped in production, but the invariant * will remain to ensure logic does not differ in production. */ var invariant = function(condition, format, a, b, c, d, e, f) { if (false) {} if (!condition) { var error; if (format === undefined) { error = new Error( 'Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.' ); } else { var args = [a, b, c, d, e, f]; var argIndex = 0; error = new Error( format.replace(/%s/g, function() { return args[argIndex++]; }) ); error.name = 'Invariant Violation'; } error.framesToPop = 1; // we don't care about invariant's own frame throw error; } }; module.exports = invariant; /***/ }), /* 43 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _Toggle = __webpack_require__(1556); Object.defineProperty(exports, 'Toggle', { enumerable: true, get: function get() { return _interopRequireDefault(_Toggle).default; } }); var _Slider = __webpack_require__(1559); Object.defineProperty(exports, 'Slider', { enumerable: true, get: function get() { return _interopRequireDefault(_Slider).default; } }); var _Checkbox = __webpack_require__(1563); Object.defineProperty(exports, 'Checkbox', { enumerable: true, get: function get() { return _interopRequireDefault(_Checkbox).default; } }); var _TextField = __webpack_require__(1564); Object.defineProperty(exports, 'TextField', { enumerable: true, get: function get() { return _interopRequireDefault(_TextField).default; } }); var _TimePicker = __webpack_require__(1565); Object.defineProperty(exports, 'TimePicker', { enumerable: true, get: function get() { return _interopRequireDefault(_TimePicker).default; } }); var _DatePicker = __webpack_require__(1573); Object.defineProperty(exports, 'DatePicker', { enumerable: true, get: function get() { return _interopRequireDefault(_DatePicker).default; } }); var _SelectField = __webpack_require__(1588); Object.defineProperty(exports, 'SelectField', { enumerable: true, get: function get() { return _interopRequireDefault(_SelectField).default; } }); var _AutoComplete = __webpack_require__(1589); Object.defineProperty(exports, 'AutoComplete', { enumerable: true, get: function get() { return _interopRequireDefault(_AutoComplete).default; } }); var _RadioButtonGroup = __webpack_require__(1595); Object.defineProperty(exports, 'RadioButtonGroup', { enumerable: true, get: function get() { return _interopRequireDefault(_RadioButtonGroup).default; } }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /***/ }), /* 44 */ /***/ (function(module, exports, __webpack_require__) { /** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ if (false) { var throwOnDirectAccess, ReactIs; } else { // By explicitly using `prop-types` you are opting into new production behavior. // http://fb.me/prop-types-in-prod module.exports = __webpack_require__(1391)(); } /***/ }), /* 45 */ /***/ (function(module, exports) { module.exports = function (it) { return typeof it === 'object' ? it !== null : typeof it === 'function'; }; /***/ }), /* 46 */ /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__(45); module.exports = function (it) { if (!isObject(it)) { throw TypeError(String(it) + ' is not an object'); } return it; }; /***/ }), /* 47 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; function checkDCE() { /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function' ) { return; } if (false) {} try { // Verify that the code above has been dead code eliminated (DCE'd). __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE); } catch (err) { // DevTools shouldn't crash React, no matter what. // We should still report in case we break this code. console.error(err); } } if (true) { // DCE check should happen before ReactDOM bundle executes so that // DevTools can report bad minification during injection. checkDCE(); module.exports = __webpack_require__(1117); } else {} /***/ }), /* 48 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getCycles; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getCycleByYear; }); /* unused harmony export getYears */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getYearById; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getYearsByIds; }); /* unused harmony export getMenuYears */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getFilteredMenuYears; }); /* unused harmony export getYearsBySequenceIds */ /* harmony import */ var lodash_intersection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(834); /* harmony import */ var lodash_intersection__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_intersection__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26); /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6); /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _sequence__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(28); function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } var getCycles = function getCycles(state) { return state.cycle; }; var getCycleByYear = function getCycleByYear(state, yearId) { return Object.values(state.cycle).find(function (c) { return Object.keys(c.annees).map(function (id) { return parseInt(id, 10); }).indexOf(yearId) !== -1; }); }; var getYears = function getYears(state) { return Object.values(state.cycle).reduce(function (m, c) { return [].concat(_toConsumableArray(m), _toConsumableArray(Object.values(c.annees))); }, []); }; var getYearById = function getYearById(state, yearId) { return getYears(state).find(function (y) { return y.id === yearId; }); }; var getYearsByIds = function getYearsByIds(state, ids) { return getYears(state).filter(function (y) { return ids.indexOf(y.id) !== -1; }); }; var getMenuYears = function getMenuYears(state, cycles) { if (cycles) { return Object.values(state.cycle).map(function (c) { return { id: c.id, title: c.title, ids: Object.keys(c.annees).map(function (id) { return parseInt(id, 10); }) }; }); } else { return Object.values(state.cycle).reduce(function (m, c) { return [].concat(_toConsumableArray(m), _toConsumableArray(Object.values(c.annees))); }, []).map(function (y) { return _objectSpread(_objectSpread({}, y), {}, { ids: [y.id] }); }); } }; var getFilteredMenuYears = function getFilteredMenuYears(state, years, cycles) { return getMenuYears(state, cycles).filter(function (ym) { return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(lodash_intersection__WEBPACK_IMPORTED_MODULE_0___default()(ym.ids, years)); }); }; var getYearsBySequenceIds = function getYearsBySequenceIds(state, sequenceIds) { return sequenceIds.reduce(function (m, sequenceId) { var yearIds = Object(_sequence__WEBPACK_IMPORTED_MODULE_3__[/* getYearsBySequenceId */ "h"])(state, sequenceId); return _objectSpread(_objectSpread({}, m), yearIds.reduce(function (m1, yearId) { var ids = lodash_get__WEBPACK_IMPORTED_MODULE_2___default()(m1, [yearId, 'sequenceIds'], []); return _objectSpread(_objectSpread({}, m1), {}, _defineProperty({}, yearId, { annee: getYearById(state, yearId), sequenceIds: [].concat(_toConsumableArray(ids), [sequenceId]) })); }, m)); }, {}); }; /***/ }), /* 49 */ /***/ (function(module, exports, __webpack_require__) { var fails = __webpack_require__(25); // Detect IE8's incomplete defineProperty implementation module.exports = !fails(function () { return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; }); /***/ }), /* 50 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(34); var shared = __webpack_require__(393); var has = __webpack_require__(67); var uid = __webpack_require__(256); var NATIVE_SYMBOL = __webpack_require__(397); var USE_SYMBOL_AS_UID = __webpack_require__(522); var WellKnownSymbolsStore = shared('wks'); var Symbol = global.Symbol; var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid; module.exports = function (name) { if (!has(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) { if (NATIVE_SYMBOL && has(Symbol, name)) { WellKnownSymbolsStore[name] = Symbol[name]; } else { WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name); } } return WellKnownSymbolsStore[name]; }; /***/ }), /* 51 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var NATIVE_ARRAY_BUFFER = __webpack_require__(414); var DESCRIPTORS = __webpack_require__(49); var global = __webpack_require__(34); var isObject = __webpack_require__(45); var has = __webpack_require__(67); var classof = __webpack_require__(266); var createNonEnumerableProperty = __webpack_require__(87); var redefine = __webpack_require__(88); var defineProperty = __webpack_require__(57).f; var getPrototypeOf = __webpack_require__(114); var setPrototypeOf = __webpack_require__(163); var wellKnownSymbol = __webpack_require__(50); var uid = __webpack_require__(256); var Int8Array = global.Int8Array; var Int8ArrayPrototype = Int8Array && Int8Array.prototype; var Uint8ClampedArray = global.Uint8ClampedArray; var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype; var TypedArray = Int8Array && getPrototypeOf(Int8Array); var TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype); var ObjectPrototype = Object.prototype; var isPrototypeOf = ObjectPrototype.isPrototypeOf; var TO_STRING_TAG = wellKnownSymbol('toStringTag'); var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG'); // Fixing native typed arrays in Opera Presto crashes the browser, see #595 var NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(global.opera) !== 'Opera'; var TYPED_ARRAY_TAG_REQIRED = false; var NAME; var TypedArrayConstructorsList = { Int8Array: 1, Uint8Array: 1, Uint8ClampedArray: 1, Int16Array: 2, Uint16Array: 2, Int32Array: 4, Uint32Array: 4, Float32Array: 4, Float64Array: 8 }; var BigIntArrayConstructorsList = { BigInt64Array: 8, BigUint64Array: 8 }; var isView = function isView(it) { if (!isObject(it)) return false; var klass = classof(it); return klass === 'DataView' || has(TypedArrayConstructorsList, klass) || has(BigIntArrayConstructorsList, klass); }; var isTypedArray = function (it) { if (!isObject(it)) return false; var klass = classof(it); return has(TypedArrayConstructorsList, klass) || has(BigIntArrayConstructorsList, klass); }; var aTypedArray = function (it) { if (isTypedArray(it)) return it; throw TypeError('Target is not a typed array'); }; var aTypedArrayConstructor = function (C) { if (setPrototypeOf) { if (isPrototypeOf.call(TypedArray, C)) return C; } else for (var ARRAY in TypedArrayConstructorsList) if (has(TypedArrayConstructorsList, NAME)) { var TypedArrayConstructor = global[ARRAY]; if (TypedArrayConstructor && (C === TypedArrayConstructor || isPrototypeOf.call(TypedArrayConstructor, C))) { return C; } } throw TypeError('Target is not a typed array constructor'); }; var exportTypedArrayMethod = function (KEY, property, forced) { if (!DESCRIPTORS) return; if (forced) for (var ARRAY in TypedArrayConstructorsList) { var TypedArrayConstructor = global[ARRAY]; if (TypedArrayConstructor && has(TypedArrayConstructor.prototype, KEY)) { delete TypedArrayConstructor.prototype[KEY]; } } if (!TypedArrayPrototype[KEY] || forced) { redefine(TypedArrayPrototype, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property); } }; var exportTypedArrayStaticMethod = function (KEY, property, forced) { var ARRAY, TypedArrayConstructor; if (!DESCRIPTORS) return; if (setPrototypeOf) { if (forced) for (ARRAY in TypedArrayConstructorsList) { TypedArrayConstructor = global[ARRAY]; if (TypedArrayConstructor && has(TypedArrayConstructor, KEY)) { delete TypedArrayConstructor[KEY]; } } if (!TypedArray[KEY] || forced) { // V8 ~ Chrome 49-50 `%TypedArray%` methods are non-writable non-configurable try { return redefine(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && Int8Array[KEY] || property); } catch (error) { /* empty */ } } else return; } for (ARRAY in TypedArrayConstructorsList) { TypedArrayConstructor = global[ARRAY]; if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) { redefine(TypedArrayConstructor, KEY, property); } } }; for (NAME in TypedArrayConstructorsList) { if (!global[NAME]) NATIVE_ARRAY_BUFFER_VIEWS = false; } // WebKit bug - typed arrays constructors prototype is Object.prototype if (!NATIVE_ARRAY_BUFFER_VIEWS || typeof TypedArray != 'function' || TypedArray === Function.prototype) { // eslint-disable-next-line no-shadow -- safe TypedArray = function TypedArray() { throw TypeError('Incorrect invocation'); }; if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) { if (global[NAME]) setPrototypeOf(global[NAME], TypedArray); } } if (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) { TypedArrayPrototype = TypedArray.prototype; if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) { if (global[NAME]) setPrototypeOf(global[NAME].prototype, TypedArrayPrototype); } } // WebKit bug - one more object in Uint8ClampedArray prototype chain if (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) { setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype); } if (DESCRIPTORS && !has(TypedArrayPrototype, TO_STRING_TAG)) { TYPED_ARRAY_TAG_REQIRED = true; defineProperty(TypedArrayPrototype, TO_STRING_TAG, { get: function () { return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined; } }); for (NAME in TypedArrayConstructorsList) if (global[NAME]) { createNonEnumerableProperty(global[NAME], TYPED_ARRAY_TAG, NAME); } } module.exports = { NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS, TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQIRED && TYPED_ARRAY_TAG, aTypedArray: aTypedArray, aTypedArrayConstructor: aTypedArrayConstructor, exportTypedArrayMethod: exportTypedArrayMethod, exportTypedArrayStaticMethod: exportTypedArrayStaticMethod, isView: isView, isTypedArray: isTypedArray, TypedArray: TypedArray, TypedArrayPrototype: TypedArrayPrototype }; /***/ }), /* 52 */ /***/ (function(module, exports) { var g; // This works in non-strict mode g = (function() { return this; })(); try { // This works if eval is allowed (see CSP) g = g || new Function("return this")(); } catch (e) { // This works if the window reference is available if (typeof window === "object") g = window; } // g can still be undefined, but nothing to do about it... // We return undefined, instead of nothing here, so it's // easier to handle this case. if(!global) { ...} module.exports = g; /***/ }), /* 53 */ /***/ (function(module, exports, __webpack_require__) { var toInteger = __webpack_require__(113); var min = Math.min; // `ToLength` abstract operation // https://tc39.es/ecma262/#sec-tolength module.exports = function (argument) { return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 }; /***/ }), /* 54 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { easeOutFunction: 'cubic-bezier(0.23, 1, 0.32, 1)', easeInOutFunction: 'cubic-bezier(0.445, 0.05, 0.55, 0.95)', easeOut: function easeOut(duration, property, delay, easeFunction) { easeFunction = easeFunction || this.easeOutFunction; if (property && Object.prototype.toString.call(property) === '[object Array]') { var transitions = ''; for (var i = 0; i < property.length; i++) { if (transitions) transitions += ','; transitions += this.create(duration, property[i], delay, easeFunction); } return transitions; } else { return this.create(duration, property, delay, easeFunction); } }, create: function create(duration, property, delay, easeFunction) { duration = duration || '450ms'; property = property || 'all'; delay = delay || '0ms'; easeFunction = easeFunction || 'linear'; return property + ' ' + duration + ' ' + easeFunction + ' ' + delay; } }; /***/ }), /* 55 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /** * Checks if `value` is classified as an `Array` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array, else `false`. * @example * * _.isArray([1, 2, 3]); * // => true * * _.isArray(document.body.children); * // => false * * _.isArray('abc'); * // => false * * _.isArray(_.noop); * // => false */ var isArray = Array.isArray; /* harmony default export */ __webpack_exports__["a"] = (isArray); /***/ }), /* 56 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export clsx */ function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t 0) { return 'Unexpected ' + (unexpectedKeys.length > 1 ? 'keys' : 'key') + ' ' + ('"' + unexpectedKeys.join('", "') + '" found in ' + argumentName + '. ') + 'Expected to find one of the known reducer keys instead: ' + ('"' + reducerKeys.join('", "') + '". Unexpected keys will be ignored.'); } } function assertReducerSanity(reducers) { Object.keys(reducers).forEach(function (key) { var reducer = reducers[key]; var initialState = reducer(undefined, { type: ActionTypes.INIT }); if (typeof initialState === 'undefined') { throw new Error('Reducer "' + key + '" returned undefined during initialization. ' + 'If the state passed to the reducer is undefined, you must ' + 'explicitly return the initial state. The initial state may ' + 'not be undefined.'); } var type = '@@redux/PROBE_UNKNOWN_ACTION_' + Math.random().toString(36).substring(7).split('').join('.'); if (typeof reducer(undefined, { type: type }) === 'undefined') { throw new Error('Reducer "' + key + '" returned undefined when probed with a random type. ' + ('Don\'t try to handle ' + ActionTypes.INIT + ' or other actions in "redux/*" ') + 'namespace. They are considered private. Instead, you must return the ' + 'current state for any unknown actions, unless it is undefined, ' + 'in which case you must return the initial state, regardless of the ' + 'action type. The initial state may not be undefined.'); } }); } /** * Turns an object whose values are different reducer functions, into a single * reducer function. It will call every child reducer, and gather their results * into a single state object, whose keys correspond to the keys of the passed * reducer functions. * * @param {Object} reducers An object whose values correspond to different * reducer functions that need to be combined into one. One handy way to obtain * it is to use ES6 `import * as reducers` syntax. The reducers may never return * undefined for any action. Instead, they should return their initial state * if the state passed to them was undefined, and the current state for any * unrecognized action. * * @returns {Function} A reducer function that invokes every reducer inside the * passed object, and builds a state object with the same shape. */ function combineReducers(reducers) { var reducerKeys = Object.keys(reducers); var finalReducers = {}; for (var i = 0; i < reducerKeys.length; i++) { var key = reducerKeys[i]; if (false) {} if (typeof reducers[key] === 'function') { finalReducers[key] = reducers[key]; } } var finalReducerKeys = Object.keys(finalReducers); if (false) { var unexpectedKeyCache; } var sanityError; try { assertReducerSanity(finalReducers); } catch (e) { sanityError = e; } return function combination() { var state = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; var action = arguments[1]; if (sanityError) { throw sanityError; } if (false) { var warningMessage; } var hasChanged = false; var nextState = {}; for (var i = 0; i < finalReducerKeys.length; i++) { var key = finalReducerKeys[i]; var reducer = finalReducers[key]; var previousStateForKey = state[key]; var nextStateForKey = reducer(previousStateForKey, action); if (typeof nextStateForKey === 'undefined') { var errorMessage = getUndefinedStateErrorMessage(key, action); throw new Error(errorMessage); } nextState[key] = nextStateForKey; hasChanged = hasChanged || nextStateForKey !== previousStateForKey; } return hasChanged ? nextState : state; }; } // CONCATENATED MODULE: ./node_modules/redux/es/bindActionCreators.js function bindActionCreator(actionCreator, dispatch) { return function () { return dispatch(actionCreator.apply(undefined, arguments)); }; } /** * Turns an object whose values are action creators, into an object with the * same keys, but with every function wrapped into a `dispatch` call so they * may be invoked directly. This is just a convenience method, as you can call * `store.dispatch(MyActionCreators.doSomething())` yourself just fine. * * For convenience, you can also pass a single function as the first argument, * and get a function in return. * * @param {Function|Object} actionCreators An object whose values are action * creator functions. One handy way to obtain it is to use ES6 `import * as` * syntax. You may also pass a single function. * * @param {Function} dispatch The `dispatch` function available on your Redux * store. * * @returns {Function|Object} The object mimicking the original object, but with * every action creator wrapped into the `dispatch` call. If you passed a * function as `actionCreators`, the return value will also be a single * function. */ function bindActionCreators(actionCreators, dispatch) { if (typeof actionCreators === 'function') { return bindActionCreator(actionCreators, dispatch); } if (typeof actionCreators !== 'object' || actionCreators === null) { throw new Error('bindActionCreators expected an object or a function, instead received ' + (actionCreators === null ? 'null' : typeof actionCreators) + '. ' + 'Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?'); } var keys = Object.keys(actionCreators); var boundActionCreators = {}; for (var i = 0; i < keys.length; i++) { var key = keys[i]; var actionCreator = actionCreators[key]; if (typeof actionCreator === 'function') { boundActionCreators[key] = bindActionCreator(actionCreator, dispatch); } } return boundActionCreators; } // CONCATENATED MODULE: ./node_modules/redux/es/compose.js /** * Composes single-argument functions from right to left. The rightmost * function can take multiple arguments as it provides the signature for * the resulting composite function. * * @param {...Function} funcs The functions to compose. * @returns {Function} A function obtained by composing the argument functions * from right to left. For example, compose(f, g, h) is identical to doing * (...args) => f(g(h(...args))). */ function compose() { for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { funcs[_key] = arguments[_key]; } if (funcs.length === 0) { return function (arg) { return arg; }; } if (funcs.length === 1) { return funcs[0]; } var last = funcs[funcs.length - 1]; var rest = funcs.slice(0, -1); return function () { return rest.reduceRight(function (composed, f) { return f(composed); }, last.apply(undefined, arguments)); }; } // CONCATENATED MODULE: ./node_modules/redux/es/applyMiddleware.js var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /** * Creates a store enhancer that applies middleware to the dispatch method * of the Redux store. This is handy for a variety of tasks, such as expressing * asynchronous actions in a concise manner, or logging every action payload. * * See `redux-thunk` package as an example of the Redux middleware. * * Because middleware is potentially asynchronous, this should be the first * store enhancer in the composition chain. * * Note that each middleware will be given the `dispatch` and `getState` functions * as named arguments. * * @param {...Function} middlewares The middleware chain to be applied. * @returns {Function} A store enhancer applying the middleware. */ function applyMiddleware() { for (var _len = arguments.length, middlewares = Array(_len), _key = 0; _key < _len; _key++) { middlewares[_key] = arguments[_key]; } return function (createStore) { return function (reducer, preloadedState, enhancer) { var store = createStore(reducer, preloadedState, enhancer); var _dispatch = store.dispatch; var chain = []; var middlewareAPI = { getState: store.getState, dispatch: function dispatch(action) { return _dispatch(action); } }; chain = middlewares.map(function (middleware) { return middleware(middlewareAPI); }); _dispatch = compose.apply(undefined, chain)(store.dispatch); return _extends({}, store, { dispatch: _dispatch }); }; }; } // CONCATENATED MODULE: ./node_modules/redux/es/index.js /* * This is a dummy function to check if the function name has been altered by minification. * If the function has been minified and NODE_ENV !== 'production', warn the user. */ function isCrushed() {} if (false) {} /***/ }), /* 59 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; var _FlatButton = __webpack_require__(1484); var _FlatButton2 = _interopRequireDefault(_FlatButton); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _FlatButton2.default; /***/ }), /* 60 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return handleError; }); /* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2); /* harmony import */ var redux_saga_effects__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(redux_saga_effects__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _sagas_auth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(501); /* harmony import */ var _common_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14); function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } var _marked = /*#__PURE__*/_regeneratorRuntime().mark(handleError); /** * Created by ferdinand on 05/07/2017. */ function handleError(e) { var statusCode; return _regeneratorRuntime().wrap(function handleError$(_context) { while (1) switch (_context.prev = _context.next) { case 0: statusCode = e.statusCode; _context.t0 = true; _context.next = _context.t0 === (statusCode === 401) ? 4 : 7; break; case 4: _context.next = 6; return Object(redux_saga_effects__WEBPACK_IMPORTED_MODULE_0__["call"])(_sagas_auth__WEBPACK_IMPORTED_MODULE_1__["signOutSaga"]); case 6: return _context.abrupt("break", 8); case 7: if (_common_config__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].ENV !== 'production' && _common_config__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].ENV !== 'desktopProd') { console.log(e); // eslint-disable-line } case 8: case "end": return _context.stop(); } }, _marked); } /***/ }), /* 61 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; var _FontIcon = __webpack_require__(1498); var _FontIcon2 = _interopRequireDefault(_FontIcon); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _FontIcon2.default; /***/ }), /* 62 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return PLAYER_AUDIO_PLAY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return PLAYER_AUDIO_PLAYED; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return PLAYER_AUDIO_PAUSE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return PLAYER_AUDIO_PAUSED; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PLAYER_AUDIO_CLOSED; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return RANGES_LOAD_SUCCESS; }); /* unused harmony export RANGES_LOAD_ERROR */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return RANGES_CREATE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return RANGES_CREATE_SUCCESS; }); /* unused harmony export RANGES_CREATE_ERROR */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return RANGES_DELETE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return RANGES_DELETE_SUCCESS; }); /* unused harmony export RANGES_DELETE_ERROR */ var PLAYER_AUDIO_PLAY = 'player.audio.play'; var PLAYER_AUDIO_PLAYED = 'player.audio.played'; var PLAYER_AUDIO_PAUSE = 'player.audio.pause'; var PLAYER_AUDIO_PAUSED = 'player.audio.paused'; var PLAYER_AUDIO_CLOSED = 'player.audio.closed'; var RANGES_LOAD_SUCCESS = 'player.audio.range.load.success'; var RANGES_LOAD_ERROR = 'player.audio.range.load.error'; var RANGES_CREATE = 'player.audio.range.create'; var RANGES_CREATE_SUCCESS = 'player.audio.range.create.success'; var RANGES_CREATE_ERROR = 'player.audio.range.create.error'; var RANGES_DELETE = 'player.audio.range.delete'; var RANGES_DELETE_SUCCESS = 'player.audio.range.delete.success'; var RANGES_DELETE_ERROR = 'player.audio.range.delete.error'; /***/ }), /* 63 */ /***/ (function(module, exports) { /** * Checks if `value` is classified as an `Array` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array, else `false`. * @example * * _.isArray([1, 2, 3]); * // => true * * _.isArray(document.body.children); * // => false * * _.isArray('abc'); * // => false * * _.isArray(_.noop); * // => false */ var isArray = Array.isArray; module.exports = isArray; /***/ }), /* 64 */ /***/ (function(module, exports, __webpack_require__) { var requireObjectCoercible = __webpack_require__(86); // `ToObject` abstract operation // https://tc39.es/ecma262/#sec-toobject module.exports = function (argument) { return Object(requireObjectCoercible(argument)); }; /***/ }), /* 65 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return FETCH_COMMENTS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return fetchComments; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return FETCH_COMMENTS_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return fetchCommentsSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ADD_COMMENT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return addComment; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ADD_COMMENT_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return addCommentSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return EDIT_COMMENT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return editComment; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return EDIT_COMMENT_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return editCommentSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return DELETE_COMMENT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return deleteComment; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return DELETE_COMMENT_SUCCESS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return deleteCommentSuccess; }); var FETCH_COMMENTS = 'FETCH_COMMENTS'; var fetchComments = function fetchComments(query) { return { type: FETCH_COMMENTS, payload: query }; }; var FETCH_COMMENTS_SUCCESS = 'FETCH_COMMENTS_SUCCESS'; var fetchCommentsSuccess = function fetchCommentsSuccess(comments) { return { type: FETCH_COMMENTS_SUCCESS, payload: comments }; }; var ADD_COMMENT = 'ADD_COMMENT'; var addComment = function addComment(payload) { return { type: ADD_COMMENT, payload: payload }; }; var ADD_COMMENT_SUCCESS = 'ADD_COMMENT_SUCCESS'; var addCommentSuccess = function addCommentSuccess(payload) { return { type: ADD_COMMENT_SUCCESS, payload: payload }; }; var EDIT_COMMENT = 'EDIT_COMMENT'; var editComment = function editComment(payload) { return { type: EDIT_COMMENT, payload: payload }; }; var EDIT_COMMENT_SUCCESS = 'EDIT_COMMENT_SUCCESS'; var editCommentSuccess = function editCommentSuccess(comment) { return { type: EDIT_COMMENT_SUCCESS, payload: comment }; }; var DELETE_COMMENT = 'DELETE_COMMENT'; var deleteComment = function deleteComment(payload) { return { type: DELETE_COMMENT, payload: payload }; }; var DELETE_COMMENT_SUCCESS = 'DELETE_COMMENT_SUCCESS'; var deleteCommentSuccess = function deleteCommentSuccess(commentId) { return { type: DELETE_COMMENT_SUCCESS, payload: commentId }; }; /***/ }), /* 66 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.TableRowColumn = exports.TableRow = exports.TableHeaderColumn = exports.TableHeader = exports.TableFooter = exports.TableBody = exports.Table = undefined; var _Table2 = __webpack_require__(1528); var _Table3 = _interopRequireDefault(_Table2); var _TableBody2 = __webpack_require__(1529); var _TableBody3 = _interopRequireDefault(_TableBody2); var _TableFooter2 = __webpack_require__(1533); var _TableFooter3 = _interopRequireDefault(_TableFooter2); var _TableHeader2 = __webpack_require__(1534); var _TableHeader3 = _interopRequireDefault(_TableHeader2); var _TableHeaderColumn2 = __webpack_require__(815); var _TableHeaderColumn3 = _interopRequireDefault(_TableHeaderColumn2); var _TableRow2 = __webpack_require__(1535); var _TableRow3 = _interopRequireDefault(_TableRow2); var _TableRowColumn2 = __webpack_require__(492); var _TableRowColumn3 = _interopRequireDefault(_TableRowColumn2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.Table = _Table3.default; exports.TableBody = _TableBody3.default; exports.TableFooter = _TableFooter3.default; exports.TableHeader = _TableHeader3.default; exports.TableHeaderColumn = _TableHeaderColumn3.default; exports.TableRow = _TableRow3.default; exports.TableRowColumn = _TableRowColumn3.default; exports.default = _Table3.default; /***/ }), /* 67 */ /***/ (function(module, exports) { var hasOwnProperty = {}.hasOwnProperty; module.exports = function (it, key) { return hasOwnProperty.call(it, key); }; /***/ }), /* 68 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return OBJECTIF; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getObjectif; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getObjectifBySequenceId; }); /* unused harmony export getObjectifsByDisciplineId */ /* unused harmony export getObjectifsByDisciplineIdAndYearId */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getObjectifBreadcrumb; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getSecondObjectifs; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getQueryStatus; }); /* harmony import */ var _discipline__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(32); /* harmony import */ var _sequence__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28); /* harmony import */ var _cycle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48); /* harmony import */ var _utils_route__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10); /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6); /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var lodash_first__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(79); /* harmony import */ var lodash_first__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_first__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var lodash_filter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(128); /* harmony import */ var lodash_filter__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_filter__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _specs_v2_discipline__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(11); var OBJECTIF = 'objectif'; var getObjectif = function getObjectif(state, objectifId) { return objectifId ? state.objectif[objectifId] : null; }; var getObjectifBySequenceId = function getObjectifBySequenceId(state, sequenceId) { var sequence = Object(_sequence__WEBPACK_IMPORTED_MODULE_1__[/* getSequence */ "d"])(state, sequenceId); return getObjectif(state, lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(sequence, 'objectifId')); }; var getObjectifsByDisciplineId = function getObjectifsByDisciplineId(state, disciplineId) { // TODO: why thematique id should not equual to 18? // TODO: should pass disciplineId as integer, not string. var disId = parseInt(disciplineId, 10); var b = lodash_filter__WEBPACK_IMPORTED_MODULE_6___default()(lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(state, 'objectif'), function (o) { return lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(o, ['thematique', 'id'], null) !== 18; }); return b.filter(function (o) { return lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(o, ['disciplines'], []).filter(function (d) { return d.id === disId; }).length; }); }; var getObjectifsByDisciplineIdAndYearId = function getObjectifsByDisciplineIdAndYearId(state, disciplineId, yearId) { var cycle = Object(_cycle__WEBPACK_IMPORTED_MODULE_2__[/* getCycleByYear */ "a"])(state, yearId); return getObjectifsByDisciplineId(state, disciplineId).filter(function (o) { return o.cycle === cycle.id; }); }; var getObjectifBreadcrumb = function getObjectifBreadcrumb(state, disciplineId, yearsId, objectifId) { var discipline = Object(_discipline__WEBPACK_IMPORTED_MODULE_0__[/* getDiscipline */ "b"])(state, disciplineId); var objectif = getObjectif(state, objectifId); var cycle = Object(_cycle__WEBPACK_IMPORTED_MODULE_2__[/* getCycleByYear */ "a"])(state, lodash_first__WEBPACK_IMPORTED_MODULE_5___default()(yearsId)); var axe = lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(objectif, 'thematique.nom'); var title = ''; if (disciplineId == _specs_v2_discipline__WEBPACK_IMPORTED_MODULE_7__[/* SN_DISCIPLINE_ID */ "c"]) { title = "".concat(discipline.nom, " Cycle ").concat(cycle.id); } else if (disciplineId == _specs_v2_discipline__WEBPACK_IMPORTED_MODULE_7__[/* MATH_DISCIPLINE_ID */ "b"]) { title = getMathDisciplineBreadcrumb(state, discipline, yearsId); } return discipline && objectif ? [{ title: title, url: Object(_utils_route__WEBPACK_IMPORTED_MODULE_3__[/* getPath */ "c"])('discipline', { disciplineId: disciplineId, yearsId: yearsId }) }, { title: axe, url: Object(_utils_route__WEBPACK_IMPORTED_MODULE_3__[/* getPath */ "c"])('objectif', { disciplineId: disciplineId, yearsId: yearsId, objectifId: objectifId }) }] : []; }; var getSecondObjectifs = function getSecondObjectifs(state, objectifId) { var objectif = getObjectif(state, objectifId); return objectif && objectif.linkedObjectifIds.map(function (o) { return getObjectif(state, o); }); }; var getQueryStatus = function getQueryStatus(state, query) { return lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(state, ['query', OBJECTIF, JSON.stringify(query)], {}); }; /** * handle math specificity * * @param state * @param discipline * @param yearsId * * @returns {string} */ var getMathDisciplineBreadcrumb = function getMathDisciplineBreadcrumb(state, discipline, yearsId) { var year = Object(_cycle__WEBPACK_IMPORTED_MODULE_2__[/* getYearById */ "d"])(state, lodash_first__WEBPACK_IMPORTED_MODULE_5___default()(yearsId)); var title = "".concat(discipline.nom, " ").concat(year.html); if (year.id == 1 || year.id == 2) { title = "".concat(discipline.nom, " 1re et 2e"); } return title; }; /***/ }), /* 69 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Copyright 2014-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ /** * Similar to invariant but only logs a warning if the condition is not met. * This can be used to log issues in development environments in critical * paths. Removing the logging code for production environments will keep the * same logic and follow the same code paths. */ var warning = function() {}; if (false) {} module.exports = warning; /***/ }), /* 70 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; var _Dialog = __webpack_require__(1452); var _Dialog2 = _interopRequireDefault(_Dialog); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _Dialog2.default; /***/ }), /* 71 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(357); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; /** Used as a reference to the global object. */ var root = _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"] || freeSelf || Function('return this')(); /* harmony default export */ __webpack_exports__["a"] = (root); /***/ }), /* 72 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /** * Checks if `value` is object-like. A value is object-like if it's not `null` * and has a `typeof` result of "object". * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is object-like, else `false`. * @example * * _.isObjectLike({}); * // => true * * _.isObjectLike([1, 2, 3]); * // => true * * _.isObjectLike(_.noop); * // => false * * _.isObjectLike(null); * // => false */ function isObjectLike(value) { return value != null && typeof value == 'object'; } /* harmony default export */ __webpack_exports__["a"] = (isObjectLike); /***/ }), /* 73 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXPORTS __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ schema_normalize; }); // CONCATENATED MODULE: ./node_modules/normalizr/dist/normalizr.es.js function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } /** * Helpers to enable Immutable compatibility *without* bringing in * the 'immutable' package as a dependency. */ /** * Check if an object is immutable by checking if it has a key specific * to the immutable library. * * @param {any} object * @return {bool} */ function isImmutable(object) { return !!(object && typeof object.hasOwnProperty === 'function' && (object.hasOwnProperty('__ownerID') || // Immutable.Map object._map && object._map.hasOwnProperty('__ownerID'))); // Immutable.Record } /** * Denormalize an immutable entity. * * @param {Schema} schema * @param {Immutable.Map|Immutable.Record} input * @param {function} unvisit * @param {function} getDenormalizedEntity * @return {Immutable.Map|Immutable.Record} */ function denormalizeImmutable(schema, input, unvisit) { return Object.keys(schema).reduce(function (object, key) { // Immutable maps cast keys to strings on write so we need to ensure // we're accessing them using string keys. var stringKey = "" + key; if (object.has(stringKey)) { return object.set(stringKey, unvisit(object.get(stringKey), schema[stringKey])); } else { return object; } }, input); } var getDefaultGetId = function getDefaultGetId(idAttribute) { return function (input) { return isImmutable(input) ? input.get(idAttribute) : input[idAttribute]; }; }; var EntitySchema = /*#__PURE__*/function () { function EntitySchema(key, definition, options) { if (definition === void 0) { definition = {}; } if (options === void 0) { options = {}; } if (!key || typeof key !== 'string') { throw new Error("Expected a string key for Entity, but found " + key + "."); } var _options = options, _options$idAttribute = _options.idAttribute, idAttribute = _options$idAttribute === void 0 ? 'id' : _options$idAttribute, _options$mergeStrateg = _options.mergeStrategy, mergeStrategy = _options$mergeStrateg === void 0 ? function (entityA, entityB) { return _extends({}, entityA, entityB); } : _options$mergeStrateg, _options$processStrat = _options.processStrategy, processStrategy = _options$processStrat === void 0 ? function (input) { return _extends({}, input); } : _options$processStrat, _options$fallbackStra = _options.fallbackStrategy, fallbackStrategy = _options$fallbackStra === void 0 ? function (key, schema) { return undefined; } : _options$fallbackStra; this._key = key; this._getId = typeof idAttribute === 'function' ? idAttribute : getDefaultGetId(idAttribute); this._idAttribute = idAttribute; this._mergeStrategy = mergeStrategy; this._processStrategy = processStrategy; this._fallbackStrategy = fallbackStrategy; this.define(definition); } var _proto = EntitySchema.prototype; _proto.define = function define(definition) { this.schema = Object.keys(definition).reduce(function (entitySchema, key) { var _extends2; var schema = definition[key]; return _extends({}, entitySchema, (_extends2 = {}, _extends2[key] = schema, _extends2)); }, this.schema || {}); }; _proto.getId = function getId(input, parent, key) { return this._getId(input, parent, key); }; _proto.merge = function merge(entityA, entityB) { return this._mergeStrategy(entityA, entityB); }; _proto.fallback = function fallback(id, schema) { return this._fallbackStrategy(id, schema); }; _proto.normalize = function normalize(input, parent, key, visit, addEntity, visitedEntities) { var _this = this; var id = this.getId(input, parent, key); var entityType = this.key; if (!(entityType in visitedEntities)) { visitedEntities[entityType] = {}; } if (!(id in visitedEntities[entityType])) { visitedEntities[entityType][id] = []; } if (visitedEntities[entityType][id].some(function (entity) { return entity === input; })) { return id; } visitedEntities[entityType][id].push(input); var processedEntity = this._processStrategy(input, parent, key); Object.keys(this.schema).forEach(function (key) { if (processedEntity.hasOwnProperty(key) && typeof processedEntity[key] === 'object') { var schema = _this.schema[key]; var resolvedSchema = typeof schema === 'function' ? schema(input) : schema; processedEntity[key] = visit(processedEntity[key], processedEntity, key, resolvedSchema, addEntity, visitedEntities); } }); addEntity(this, processedEntity, input, parent, key); return id; }; _proto.denormalize = function denormalize(entity, unvisit) { var _this2 = this; if (isImmutable(entity)) { return denormalizeImmutable(this.schema, entity, unvisit); } Object.keys(this.schema).forEach(function (key) { if (entity.hasOwnProperty(key)) { var schema = _this2.schema[key]; entity[key] = unvisit(entity[key], schema); } }); return entity; }; _createClass(EntitySchema, [{ key: "key", get: function get() { return this._key; } }, { key: "idAttribute", get: function get() { return this._idAttribute; } }]); return EntitySchema; }(); var PolymorphicSchema = /*#__PURE__*/function () { function PolymorphicSchema(definition, schemaAttribute) { if (schemaAttribute) { this._schemaAttribute = typeof schemaAttribute === 'string' ? function (input) { return input[schemaAttribute]; } : schemaAttribute; } this.define(definition); } var _proto = PolymorphicSchema.prototype; _proto.define = function define(definition) { this.schema = definition; }; _proto.getSchemaAttribute = function getSchemaAttribute(input, parent, key) { return !this.isSingleSchema && this._schemaAttribute(input, parent, key); }; _proto.inferSchema = function inferSchema(input, parent, key) { if (this.isSingleSchema) { return this.schema; } var attr = this.getSchemaAttribute(input, parent, key); return this.schema[attr]; }; _proto.normalizeValue = function normalizeValue(value, parent, key, visit, addEntity, visitedEntities) { var schema = this.inferSchema(value, parent, key); if (!schema) { return value; } var normalizedValue = visit(value, parent, key, schema, addEntity, visitedEntities); return this.isSingleSchema || normalizedValue === undefined || normalizedValue === null ? normalizedValue : { id: normalizedValue, schema: this.getSchemaAttribute(value, parent, key) }; }; _proto.denormalizeValue = function denormalizeValue(value, unvisit) { var schemaKey = isImmutable(value) ? value.get('schema') : value.schema; if (!this.isSingleSchema && !schemaKey) { return value; } var id = this.isSingleSchema ? undefined : isImmutable(value) ? value.get('id') : value.id; var schema = this.isSingleSchema ? this.schema : this.schema[schemaKey]; return unvisit(id || value, schema); }; _createClass(PolymorphicSchema, [{ key: "isSingleSchema", get: function get() { return !this._schemaAttribute; } }]); return PolymorphicSchema; }(); var UnionSchema = /*#__PURE__*/function (_PolymorphicSchema) { _inheritsLoose(UnionSchema, _PolymorphicSchema); function UnionSchema(definition, schemaAttribute) { if (!schemaAttribute) { throw new Error('Expected option "schemaAttribute" not found on UnionSchema.'); } return _PolymorphicSchema.call(this, definition, schemaAttribute) || this; } var _proto = UnionSchema.prototype; _proto.normalize = function normalize(input, parent, key, visit, addEntity, visitedEntities) { return this.normalizeValue(input, parent, key, visit, addEntity, visitedEntities); }; _proto.denormalize = function denormalize(input, unvisit) { return this.denormalizeValue(input, unvisit); }; return UnionSchema; }(PolymorphicSchema); var ValuesSchema = /*#__PURE__*/function (_PolymorphicSchema) { _inheritsLoose(ValuesSchema, _PolymorphicSchema); function ValuesSchema() { return _PolymorphicSchema.apply(this, arguments) || this; } var _proto = ValuesSchema.prototype; _proto.normalize = function normalize(input, parent, key, visit, addEntity, visitedEntities) { var _this = this; return Object.keys(input).reduce(function (output, key, index) { var _extends2; var value = input[key]; return value !== undefined && value !== null ? _extends({}, output, (_extends2 = {}, _extends2[key] = _this.normalizeValue(value, input, key, visit, addEntity, visitedEntities), _extends2)) : output; }, {}); }; _proto.denormalize = function denormalize(input, unvisit) { var _this2 = this; return Object.keys(input).reduce(function (output, key) { var _extends3; var entityOrId = input[key]; return _extends({}, output, (_extends3 = {}, _extends3[key] = _this2.denormalizeValue(entityOrId, unvisit), _extends3)); }, {}); }; return ValuesSchema; }(PolymorphicSchema); var validateSchema = function validateSchema(definition) { var isArray = Array.isArray(definition); if (isArray && definition.length > 1) { throw new Error("Expected schema definition to be a single schema, but found " + definition.length + "."); } return definition[0]; }; var getValues = function getValues(input) { return Array.isArray(input) ? input : Object.keys(input).map(function (key) { return input[key]; }); }; var normalizr_es_normalize = function normalize(schema, input, parent, key, visit, addEntity, visitedEntities) { schema = validateSchema(schema); var values = getValues(input); // Special case: Arrays pass *their* parent on to their children, since there // is not any special information that can be gathered from themselves directly return values.map(function (value, index) { return visit(value, parent, key, schema, addEntity, visitedEntities); }); }; var denormalize = function denormalize(schema, input, unvisit) { schema = validateSchema(schema); return input && input.map ? input.map(function (entityOrId) { return unvisit(entityOrId, schema); }) : input; }; var ArraySchema = /*#__PURE__*/function (_PolymorphicSchema) { _inheritsLoose(ArraySchema, _PolymorphicSchema); function ArraySchema() { return _PolymorphicSchema.apply(this, arguments) || this; } var _proto = ArraySchema.prototype; _proto.normalize = function normalize(input, parent, key, visit, addEntity, visitedEntities) { var _this = this; var values = getValues(input); return values.map(function (value, index) { return _this.normalizeValue(value, parent, key, visit, addEntity, visitedEntities); }).filter(function (value) { return value !== undefined && value !== null; }); }; _proto.denormalize = function denormalize(input, unvisit) { var _this2 = this; return input && input.map ? input.map(function (value) { return _this2.denormalizeValue(value, unvisit); }) : input; }; return ArraySchema; }(PolymorphicSchema); var _normalize = function normalize(schema, input, parent, key, visit, addEntity, visitedEntities) { var object = _extends({}, input); Object.keys(schema).forEach(function (key) { var localSchema = schema[key]; var resolvedLocalSchema = typeof localSchema === 'function' ? localSchema(input) : localSchema; var value = visit(input[key], input, key, resolvedLocalSchema, addEntity, visitedEntities); if (value === undefined || value === null) { delete object[key]; } else { object[key] = value; } }); return object; }; var _denormalize = function denormalize(schema, input, unvisit) { if (isImmutable(input)) { return denormalizeImmutable(schema, input, unvisit); } var object = _extends({}, input); Object.keys(schema).forEach(function (key) { if (object[key] != null) { object[key] = unvisit(object[key], schema[key]); } }); return object; }; var ObjectSchema = /*#__PURE__*/function () { function ObjectSchema(definition) { this.define(definition); } var _proto = ObjectSchema.prototype; _proto.define = function define(definition) { this.schema = Object.keys(definition).reduce(function (entitySchema, key) { var _extends2; var schema = definition[key]; return _extends({}, entitySchema, (_extends2 = {}, _extends2[key] = schema, _extends2)); }, this.schema || {}); }; _proto.normalize = function normalize() { for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return _normalize.apply(void 0, [this.schema].concat(args)); }; _proto.denormalize = function denormalize() { for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { args[_key2] = arguments[_key2]; } return _denormalize.apply(void 0, [this.schema].concat(args)); }; return ObjectSchema; }(); var visit = function visit(value, parent, key, schema, addEntity, visitedEntities) { if (typeof value !== 'object' || !value) { return value; } if (typeof schema === 'object' && (!schema.normalize || typeof schema.normalize !== 'function')) { var method = Array.isArray(schema) ? normalizr_es_normalize : _normalize; return method(schema, value, parent, key, visit, addEntity, visitedEntities); } return schema.normalize(value, parent, key, visit, addEntity, visitedEntities); }; var addEntities = function addEntities(entities) { return function (schema, processedEntity, value, parent, key) { var schemaKey = schema.key; var id = schema.getId(value, parent, key); if (!(schemaKey in entities)) { entities[schemaKey] = {}; } var existingEntity = entities[schemaKey][id]; if (existingEntity) { entities[schemaKey][id] = schema.merge(existingEntity, processedEntity); } else { entities[schemaKey][id] = processedEntity; } }; }; var schema = { Array: ArraySchema, Entity: EntitySchema, Object: ObjectSchema, Union: UnionSchema, Values: ValuesSchema }; var normalize$1 = function normalize(input, schema) { if (!input || typeof input !== 'object') { throw new Error("Unexpected input given to normalize. Expected type to be \"object\", found \"" + (input === null ? 'null' : typeof input) + "\"."); } var entities = {}; var addEntity = addEntities(entities); var visitedEntities = {}; var result = visit(input, input, null, schema, addEntity, visitedEntities); return { entities: entities, result: result }; }; var unvisitEntity = function unvisitEntity(id, schema, unvisit, getEntity, cache) { var entity = getEntity(id, schema); if (entity === undefined && schema instanceof EntitySchema) { entity = schema.fallback(id, schema); } if (typeof entity !== 'object' || entity === null) { return entity; } if (!cache[schema.key]) { cache[schema.key] = {}; } if (!cache[schema.key][id]) { // Ensure we don't mutate it non-immutable objects var entityCopy = isImmutable(entity) ? entity : _extends({}, entity); // Need to set this first so that if it is referenced further within the // denormalization the reference will already exist. cache[schema.key][id] = entityCopy; cache[schema.key][id] = schema.denormalize(entityCopy, unvisit); } return cache[schema.key][id]; }; var getUnvisit = function getUnvisit(entities) { var cache = {}; var getEntity = getEntities(entities); return function unvisit(input, schema) { if (typeof schema === 'object' && (!schema.denormalize || typeof schema.denormalize !== 'function')) { var method = Array.isArray(schema) ? denormalize : _denormalize; return method(schema, input, unvisit); } if (input === undefined || input === null) { return input; } if (schema instanceof EntitySchema) { return unvisitEntity(input, schema, unvisit, getEntity, cache); } return schema.denormalize(input, unvisit); }; }; var getEntities = function getEntities(entities) { var isImmutable$1 = isImmutable(entities); return function (entityOrId, schema) { var schemaKey = schema.key; if (typeof entityOrId === 'object') { return entityOrId; } if (isImmutable$1) { return entities.getIn([schemaKey, entityOrId.toString()]); } return entities[schemaKey] && entities[schemaKey][entityOrId]; }; }; var denormalize$1 = function denormalize(input, schema, entities) { if (typeof input !== 'undefined') { return getUnvisit(entities)(input, schema); } }; // CONCATENATED MODULE: ./src/js/schema/index.js var discipline = new schema.Entity('disciplines'); var sequence = new schema.Entity('sequences'); var tutorial = new schema.Entity('tutorials'); var goal = new schema.Entity('goals'); var secondaryGoal = new schema.Entity('secondaryGoals'); var disciplineText = new schema.Entity('disciplineTexts'); var thematic = new schema.Entity('thematics'); var favorite = new schema.Entity('favorites'); var activity = new schema.Entity('activities'); var activityResource = new schema.Entity('activityResources'); var sequenceResource = new schema.Entity('sequenceResources'); var section = new schema.Entity('sections'); var news = new schema.Entity('news'); var user = new schema.Entity('user'); var definition = new schema.Entity('definitions'); sequence.define({ discipline: discipline, goal: goal, activities: [activity], sequenceResources: [sequenceResource] }); sequenceResource.define({ sequence: sequence, section: section }); activity.define({ activityResources: [activityResource] }); activityResource.define({ activity: activity }); goal.define({ sequences: [sequence], thematic: thematic, // a secondaryGoal does not contribute to the menu. Let it be in the secondaryGoal ns secondaryGoals: [secondaryGoal] }); discipline.define({ texts: [disciplineText], goals: [goal], sequences: [sequence], definitions: [definition] }); disciplineText.define({ thematic: thematic }); favorite.define({ sequence: sequence, activity: activity }); var schemas = { contents: { sequences: { hits: [sequence] }, disciplines: { hits: [discipline] }, tutorials: { hits: [tutorial] }, goals: { hits: [goal] }, favorites: { hits: [favorite] }, news: { hits: [news] }, me: user, updateUser: user } }; var schema_normalize = function normalize(data) { return normalize$1(data, schemas); }; /***/ }), /* 74 */ /***/ (function(module, exports) { /** * The default argument placeholder value for methods. * * @type {Object} */ module.exports = {}; /***/ }), /* 75 */ /***/ (function(module, exports) { function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /* 76 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ var React = __webpack_require__(0); var factory = __webpack_require__(1130); if (typeof React === 'undefined') { throw Error( 'create-react-class could not find the React object. If you are using script tags, ' + 'make sure that React is being loaded before create-react-class.' ); } // Hack to grab NoopUpdateQueue from isomorphic React var ReactNoopUpdateQueue = new React.Component().updater; module.exports = factory( React.Component, React.isValidElement, ReactNoopUpdateQueue ); /***/ }), /* 77 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /** * Checks if `value` is the * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. * @example * * _.isObject({}); * // => true * * _.isObject([1, 2, 3]); * // => true * * _.isObject(_.noop); * // => true * * _.isObject(null); * // => false */ function isObject(value) { var type = typeof value; return value != null && (type == 'object' || type == 'function'); } /* harmony default export */ __webpack_exports__["a"] = (isObject); /***/ }), /* 78 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(12); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js var objectWithoutProperties = __webpack_require__(38); // EXTERNAL MODULE: ./node_modules/react/index.js var react = __webpack_require__(0); var react_default = /*#__PURE__*/__webpack_require__.n(react); // EXTERNAL MODULE: ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js var hoist_non_react_statics_cjs = __webpack_require__(845); var hoist_non_react_statics_cjs_default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics_cjs); // CONCATENATED MODULE: ./node_modules/is-in-browser/dist/module.js var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof(document)) === 'object' && document.nodeType === 9; /* harmony default export */ var dist_module = (isBrowser); // CONCATENATED MODULE: ./node_modules/tiny-warning/dist/tiny-warning.esm.js var isProduction = "production" === 'production'; function tiny_warning_esm_warning(condition, message) { if (!isProduction) { if (condition) { return; } var text = "Warning: " + message; if (typeof console !== 'undefined') { console.warn(text); } try { throw Error(text); } catch (x) {} } } /* harmony default export */ var tiny_warning_esm = (tiny_warning_esm_warning); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js + 1 modules var toPropertyKey = __webpack_require__(387); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, Object(toPropertyKey["a" /* default */])(descriptor.key), descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js + 1 modules var inheritsLoose = __webpack_require__(297); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js var assertThisInitialized = __webpack_require__(295); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js var objectWithoutPropertiesLoose = __webpack_require__(247); // CONCATENATED MODULE: ./node_modules/jss/dist/jss.esm.js var plainObjectConstrurctor = {}.constructor; function cloneStyle(style) { if (style == null || typeof style !== 'object') return style; if (Array.isArray(style)) return style.map(cloneStyle); if (style.constructor !== plainObjectConstrurctor) return style; var newStyle = {}; for (var name in style) { newStyle[name] = cloneStyle(style[name]); } return newStyle; } /** * Create a rule instance. */ function createRule(name, decl, options) { if (name === void 0) { name = 'unnamed'; } var jss = options.jss; var declCopy = cloneStyle(decl); var rule = jss.plugins.onCreateRule(name, declCopy, options); if (rule) return rule; // It is an at-rule and it has no instance. if (name[0] === '@') { false ? undefined : void 0; } return null; } var join = function join(value, by) { var result = ''; for (var i = 0; i < value.length; i++) { // Remove !important from the value, it will be readded later. if (value[i] === '!important') break; if (result) result += by; result += value[i]; } return result; }; /** * Converts JSS array value to a CSS string. * * `margin: [['5px', '10px']]` > `margin: 5px 10px;` * `border: ['1px', '2px']` > `border: 1px, 2px;` * `margin: [['5px', '10px'], '!important']` > `margin: 5px 10px !important;` * `color: ['red', !important]` > `color: red !important;` */ var toCssValue = function toCssValue(value) { if (!Array.isArray(value)) return value; var cssValue = ''; // Support space separated values via `[['5px', '10px']]`. if (Array.isArray(value[0])) { for (var i = 0; i < value.length; i++) { if (value[i] === '!important') break; if (cssValue) cssValue += ', '; cssValue += join(value[i], ' '); } } else cssValue = join(value, ', '); // Add !important, because it was ignored. if (value[value.length - 1] === '!important') { cssValue += ' !important'; } return cssValue; }; function getWhitespaceSymbols(options) { if (options && options.format === false) { return { linebreak: '', space: '' }; } return { linebreak: '\n', space: ' ' }; } /** * Indent a string. * http://jsperf.com/array-join-vs-for */ function indentStr(str, indent) { var result = ''; for (var index = 0; index < indent; index++) { result += ' '; } return result + str; } /** * Converts a Rule to CSS string. */ function toCss(selector, style, options) { if (options === void 0) { options = {}; } var result = ''; if (!style) return result; var _options = options, _options$indent = _options.indent, indent = _options$indent === void 0 ? 0 : _options$indent; var fallbacks = style.fallbacks; if (options.format === false) { indent = -Infinity; } var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak, space = _getWhitespaceSymbols.space; if (selector) indent++; // Apply fallbacks first. if (fallbacks) { // Array syntax {fallbacks: [{prop: value}]} if (Array.isArray(fallbacks)) { for (var index = 0; index < fallbacks.length; index++) { var fallback = fallbacks[index]; for (var prop in fallback) { var value = fallback[prop]; if (value != null) { if (result) result += linebreak; result += indentStr(prop + ":" + space + toCssValue(value) + ";", indent); } } } } else { // Object syntax {fallbacks: {prop: value}} for (var _prop in fallbacks) { var _value = fallbacks[_prop]; if (_value != null) { if (result) result += linebreak; result += indentStr(_prop + ":" + space + toCssValue(_value) + ";", indent); } } } } for (var _prop2 in style) { var _value2 = style[_prop2]; if (_value2 != null && _prop2 !== 'fallbacks') { if (result) result += linebreak; result += indentStr(_prop2 + ":" + space + toCssValue(_value2) + ";", indent); } } // Allow empty style in this case, because properties will be added dynamically. if (!result && !options.allowEmpty) return result; // When rule is being stringified before selector was defined. if (!selector) return result; indent--; if (result) result = "" + linebreak + result + linebreak; return indentStr("" + selector + space + "{" + result, indent) + indentStr('}', indent); } var escapeRegex = /([[\].#*$><+~=|^:(),"'`\s])/g; var nativeEscape = typeof CSS !== 'undefined' && CSS.escape; var jss_esm_escape = (function (str) { return nativeEscape ? nativeEscape(str) : str.replace(escapeRegex, '\\$1'); }); var BaseStyleRule = /*#__PURE__*/ function () { function BaseStyleRule(key, style, options) { this.type = 'style'; this.isProcessed = false; var sheet = options.sheet, Renderer = options.Renderer; this.key = key; this.options = options; this.style = style; if (sheet) this.renderer = sheet.renderer;else if (Renderer) this.renderer = new Renderer(); } /** * Get or set a style property. */ var _proto = BaseStyleRule.prototype; _proto.prop = function prop(name, value, options) { // It's a getter. if (value === undefined) return this.style[name]; // Don't do anything if the value has not changed. var force = options ? options.force : false; if (!force && this.style[name] === value) return this; var newValue = value; if (!options || options.process !== false) { newValue = this.options.jss.plugins.onChangeValue(value, name, this); } var isEmpty = newValue == null || newValue === false; var isDefined = name in this.style; // Value is empty and wasn't defined before. if (isEmpty && !isDefined && !force) return this; // We are going to remove this value. var remove = isEmpty && isDefined; if (remove) delete this.style[name];else this.style[name] = newValue; // Renderable is defined if StyleSheet option `link` is true. if (this.renderable && this.renderer) { if (remove) this.renderer.removeProperty(this.renderable, name);else this.renderer.setProperty(this.renderable, name, newValue); return this; } var sheet = this.options.sheet; if (sheet && sheet.attached) { false ? undefined : void 0; } return this; }; return BaseStyleRule; }(); var jss_esm_StyleRule = /*#__PURE__*/ function (_BaseStyleRule) { Object(inheritsLoose["a" /* default */])(StyleRule, _BaseStyleRule); function StyleRule(key, style, options) { var _this; _this = _BaseStyleRule.call(this, key, style, options) || this; var selector = options.selector, scoped = options.scoped, sheet = options.sheet, generateId = options.generateId; if (selector) { _this.selectorText = selector; } else if (scoped !== false) { _this.id = generateId(Object(assertThisInitialized["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this)), sheet); _this.selectorText = "." + jss_esm_escape(_this.id); } return _this; } /** * Set selector string. * Attention: use this with caution. Most browsers didn't implement * selectorText setter, so this may result in rerendering of entire Style Sheet. */ var _proto2 = StyleRule.prototype; /** * Apply rule to an element inline. */ _proto2.applyTo = function applyTo(renderable) { var renderer = this.renderer; if (renderer) { var json = this.toJSON(); for (var prop in json) { renderer.setProperty(renderable, prop, json[prop]); } } return this; } /** * Returns JSON representation of the rule. * Fallbacks are not supported. * Useful for inline styles. */ ; _proto2.toJSON = function toJSON() { var json = {}; for (var prop in this.style) { var value = this.style[prop]; if (typeof value !== 'object') json[prop] = value;else if (Array.isArray(value)) json[prop] = toCssValue(value); } return json; } /** * Generates a CSS string. */ ; _proto2.toString = function toString(options) { var sheet = this.options.sheet; var link = sheet ? sheet.options.link : false; var opts = link ? Object(esm_extends["a" /* default */])({}, options, { allowEmpty: true }) : options; return toCss(this.selectorText, this.style, opts); }; _createClass(StyleRule, [{ key: "selector", set: function set(selector) { if (selector === this.selectorText) return; this.selectorText = selector; var renderer = this.renderer, renderable = this.renderable; if (!renderable || !renderer) return; var hasChanged = renderer.setSelector(renderable, selector); // If selector setter is not implemented, rerender the rule. if (!hasChanged) { renderer.replaceRule(renderable, this); } } /** * Get selector string. */ , get: function get() { return this.selectorText; } }]); return StyleRule; }(BaseStyleRule); var pluginStyleRule = { onCreateRule: function onCreateRule(key, style, options) { if (key[0] === '@' || options.parent && options.parent.type === 'keyframes') { return null; } return new jss_esm_StyleRule(key, style, options); } }; var defaultToStringOptions = { indent: 1, children: true }; var atRegExp = /@([\w-]+)/; /** * Conditional rule for @media, @supports */ var jss_esm_ConditionalRule = /*#__PURE__*/ function () { function ConditionalRule(key, styles, options) { this.type = 'conditional'; this.isProcessed = false; this.key = key; var atMatch = key.match(atRegExp); this.at = atMatch ? atMatch[1] : 'unknown'; // Key might contain a unique suffix in case the `name` passed by user was duplicate. this.query = options.name || "@" + this.at; this.options = options; this.rules = new jss_esm_RuleList(Object(esm_extends["a" /* default */])({}, options, { parent: this })); for (var name in styles) { this.rules.add(name, styles[name]); } this.rules.process(); } /** * Get a rule. */ var _proto = ConditionalRule.prototype; _proto.getRule = function getRule(name) { return this.rules.get(name); } /** * Get index of a rule. */ ; _proto.indexOf = function indexOf(rule) { return this.rules.indexOf(rule); } /** * Create and register rule, run plugins. */ ; _proto.addRule = function addRule(name, style, options) { var rule = this.rules.add(name, style, options); if (!rule) return null; this.options.jss.plugins.onProcessRule(rule); return rule; } /** * Replace rule, run plugins. */ ; _proto.replaceRule = function replaceRule(name, style, options) { var newRule = this.rules.replace(name, style, options); if (newRule) this.options.jss.plugins.onProcessRule(newRule); return newRule; } /** * Generates a CSS string. */ ; _proto.toString = function toString(options) { if (options === void 0) { options = defaultToStringOptions; } var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak; if (options.indent == null) options.indent = defaultToStringOptions.indent; if (options.children == null) options.children = defaultToStringOptions.children; if (options.children === false) { return this.query + " {}"; } var children = this.rules.toString(options); return children ? this.query + " {" + linebreak + children + linebreak + "}" : ''; }; return ConditionalRule; }(); var keyRegExp = /@container|@media|@supports\s+/; var pluginConditionalRule = { onCreateRule: function onCreateRule(key, styles, options) { return keyRegExp.test(key) ? new jss_esm_ConditionalRule(key, styles, options) : null; } }; var defaultToStringOptions$1 = { indent: 1, children: true }; var nameRegExp = /@keyframes\s+([\w-]+)/; /** * Rule for @keyframes */ var jss_esm_KeyframesRule = /*#__PURE__*/ function () { function KeyframesRule(key, frames, options) { this.type = 'keyframes'; this.at = '@keyframes'; this.isProcessed = false; var nameMatch = key.match(nameRegExp); if (nameMatch && nameMatch[1]) { this.name = nameMatch[1]; } else { this.name = 'noname'; false ? undefined : void 0; } this.key = this.type + "-" + this.name; this.options = options; var scoped = options.scoped, sheet = options.sheet, generateId = options.generateId; this.id = scoped === false ? this.name : jss_esm_escape(generateId(this, sheet)); this.rules = new jss_esm_RuleList(Object(esm_extends["a" /* default */])({}, options, { parent: this })); for (var name in frames) { this.rules.add(name, frames[name], Object(esm_extends["a" /* default */])({}, options, { parent: this })); } this.rules.process(); } /** * Generates a CSS string. */ var _proto = KeyframesRule.prototype; _proto.toString = function toString(options) { if (options === void 0) { options = defaultToStringOptions$1; } var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak; if (options.indent == null) options.indent = defaultToStringOptions$1.indent; if (options.children == null) options.children = defaultToStringOptions$1.children; if (options.children === false) { return this.at + " " + this.id + " {}"; } var children = this.rules.toString(options); if (children) children = "" + linebreak + children + linebreak; return this.at + " " + this.id + " {" + children + "}"; }; return KeyframesRule; }(); var keyRegExp$1 = /@keyframes\s+/; var refRegExp = /\$([\w-]+)/g; var findReferencedKeyframe = function findReferencedKeyframe(val, keyframes) { if (typeof val === 'string') { return val.replace(refRegExp, function (match, name) { if (name in keyframes) { return keyframes[name]; } false ? undefined : void 0; return match; }); } return val; }; /** * Replace the reference for a animation name. */ var jss_esm_replaceRef = function replaceRef(style, prop, keyframes) { var value = style[prop]; var refKeyframe = findReferencedKeyframe(value, keyframes); if (refKeyframe !== value) { style[prop] = refKeyframe; } }; var pluginKeyframesRule = { onCreateRule: function onCreateRule(key, frames, options) { return typeof key === 'string' && keyRegExp$1.test(key) ? new jss_esm_KeyframesRule(key, frames, options) : null; }, // Animation name ref replacer. onProcessStyle: function onProcessStyle(style, rule, sheet) { if (rule.type !== 'style' || !sheet) return style; if ('animation-name' in style) jss_esm_replaceRef(style, 'animation-name', sheet.keyframes); if ('animation' in style) jss_esm_replaceRef(style, 'animation', sheet.keyframes); return style; }, onChangeValue: function onChangeValue(val, prop, rule) { var sheet = rule.options.sheet; if (!sheet) { return val; } switch (prop) { case 'animation': return findReferencedKeyframe(val, sheet.keyframes); case 'animation-name': return findReferencedKeyframe(val, sheet.keyframes); default: return val; } } }; var jss_esm_KeyframeRule = /*#__PURE__*/ function (_BaseStyleRule) { Object(inheritsLoose["a" /* default */])(KeyframeRule, _BaseStyleRule); function KeyframeRule() { return _BaseStyleRule.apply(this, arguments) || this; } var _proto = KeyframeRule.prototype; /** * Generates a CSS string. */ _proto.toString = function toString(options) { var sheet = this.options.sheet; var link = sheet ? sheet.options.link : false; var opts = link ? Object(esm_extends["a" /* default */])({}, options, { allowEmpty: true }) : options; return toCss(this.key, this.style, opts); }; return KeyframeRule; }(BaseStyleRule); var pluginKeyframeRule = { onCreateRule: function onCreateRule(key, style, options) { if (options.parent && options.parent.type === 'keyframes') { return new jss_esm_KeyframeRule(key, style, options); } return null; } }; var FontFaceRule = /*#__PURE__*/ function () { function FontFaceRule(key, style, options) { this.type = 'font-face'; this.at = '@font-face'; this.isProcessed = false; this.key = key; this.style = style; this.options = options; } /** * Generates a CSS string. */ var _proto = FontFaceRule.prototype; _proto.toString = function toString(options) { var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak; if (Array.isArray(this.style)) { var str = ''; for (var index = 0; index < this.style.length; index++) { str += toCss(this.at, this.style[index]); if (this.style[index + 1]) str += linebreak; } return str; } return toCss(this.at, this.style, options); }; return FontFaceRule; }(); var keyRegExp$2 = /@font-face/; var pluginFontFaceRule = { onCreateRule: function onCreateRule(key, style, options) { return keyRegExp$2.test(key) ? new FontFaceRule(key, style, options) : null; } }; var ViewportRule = /*#__PURE__*/ function () { function ViewportRule(key, style, options) { this.type = 'viewport'; this.at = '@viewport'; this.isProcessed = false; this.key = key; this.style = style; this.options = options; } /** * Generates a CSS string. */ var _proto = ViewportRule.prototype; _proto.toString = function toString(options) { return toCss(this.key, this.style, options); }; return ViewportRule; }(); var pluginViewportRule = { onCreateRule: function onCreateRule(key, style, options) { return key === '@viewport' || key === '@-ms-viewport' ? new ViewportRule(key, style, options) : null; } }; var SimpleRule = /*#__PURE__*/ function () { function SimpleRule(key, value, options) { this.type = 'simple'; this.isProcessed = false; this.key = key; this.value = value; this.options = options; } /** * Generates a CSS string. */ // eslint-disable-next-line no-unused-vars var _proto = SimpleRule.prototype; _proto.toString = function toString(options) { if (Array.isArray(this.value)) { var str = ''; for (var index = 0; index < this.value.length; index++) { str += this.key + " " + this.value[index] + ";"; if (this.value[index + 1]) str += '\n'; } return str; } return this.key + " " + this.value + ";"; }; return SimpleRule; }(); var keysMap = { '@charset': true, '@import': true, '@namespace': true }; var pluginSimpleRule = { onCreateRule: function onCreateRule(key, value, options) { return key in keysMap ? new SimpleRule(key, value, options) : null; } }; var plugins = [pluginStyleRule, pluginConditionalRule, pluginKeyframesRule, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule]; var defaultUpdateOptions = { process: true }; var forceUpdateOptions = { force: true, process: true /** * Contains rules objects and allows adding/removing etc. * Is used for e.g. by `StyleSheet` or `ConditionalRule`. */ }; var jss_esm_RuleList = /*#__PURE__*/ function () { // Rules registry for access by .get() method. // It contains the same rule registered by name and by selector. // Original styles object. // Used to ensure correct rules order. function RuleList(options) { this.map = {}; this.raw = {}; this.index = []; this.counter = 0; this.options = options; this.classes = options.classes; this.keyframes = options.keyframes; } /** * Create and register rule. * * Will not render after Style Sheet was rendered the first time. */ var _proto = RuleList.prototype; _proto.add = function add(name, decl, ruleOptions) { var _this$options = this.options, parent = _this$options.parent, sheet = _this$options.sheet, jss = _this$options.jss, Renderer = _this$options.Renderer, generateId = _this$options.generateId, scoped = _this$options.scoped; var options = Object(esm_extends["a" /* default */])({ classes: this.classes, parent: parent, sheet: sheet, jss: jss, Renderer: Renderer, generateId: generateId, scoped: scoped, name: name, keyframes: this.keyframes, selector: undefined }, ruleOptions); // When user uses .createStyleSheet(), duplicate names are not possible, but // `sheet.addRule()` opens the door for any duplicate rule name. When this happens // we need to make the key unique within this RuleList instance scope. var key = name; if (name in this.raw) { key = name + "-d" + this.counter++; } // We need to save the original decl before creating the rule // because cache plugin needs to use it as a key to return a cached rule. this.raw[key] = decl; if (key in this.classes) { // E.g. rules inside of @media container options.selector = "." + jss_esm_escape(this.classes[key]); } var rule = createRule(key, decl, options); if (!rule) return null; this.register(rule); var index = options.index === undefined ? this.index.length : options.index; this.index.splice(index, 0, rule); return rule; } /** * Replace rule. * Create a new rule and remove old one instead of overwriting * because we want to invoke onCreateRule hook to make plugins work. */ ; _proto.replace = function replace(name, decl, ruleOptions) { var oldRule = this.get(name); var oldIndex = this.index.indexOf(oldRule); if (oldRule) { this.remove(oldRule); } var options = ruleOptions; if (oldIndex !== -1) options = Object(esm_extends["a" /* default */])({}, ruleOptions, { index: oldIndex }); return this.add(name, decl, options); } /** * Get a rule by name or selector. */ ; _proto.get = function get(nameOrSelector) { return this.map[nameOrSelector]; } /** * Delete a rule. */ ; _proto.remove = function remove(rule) { this.unregister(rule); delete this.raw[rule.key]; this.index.splice(this.index.indexOf(rule), 1); } /** * Get index of a rule. */ ; _proto.indexOf = function indexOf(rule) { return this.index.indexOf(rule); } /** * Run `onProcessRule()` plugins on every rule. */ ; _proto.process = function process() { var plugins = this.options.jss.plugins; // We need to clone array because if we modify the index somewhere else during a loop // we end up with very hard-to-track-down side effects. this.index.slice(0).forEach(plugins.onProcessRule, plugins); } /** * Register a rule in `.map`, `.classes` and `.keyframes` maps. */ ; _proto.register = function register(rule) { this.map[rule.key] = rule; if (rule instanceof jss_esm_StyleRule) { this.map[rule.selector] = rule; if (rule.id) this.classes[rule.key] = rule.id; } else if (rule instanceof jss_esm_KeyframesRule && this.keyframes) { this.keyframes[rule.name] = rule.id; } } /** * Unregister a rule. */ ; _proto.unregister = function unregister(rule) { delete this.map[rule.key]; if (rule instanceof jss_esm_StyleRule) { delete this.map[rule.selector]; delete this.classes[rule.key]; } else if (rule instanceof jss_esm_KeyframesRule) { delete this.keyframes[rule.name]; } } /** * Update the function values with a new data. */ ; _proto.update = function update() { var name; var data; var options; if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'string') { name = arguments.length <= 0 ? undefined : arguments[0]; data = arguments.length <= 1 ? undefined : arguments[1]; options = arguments.length <= 2 ? undefined : arguments[2]; } else { data = arguments.length <= 0 ? undefined : arguments[0]; options = arguments.length <= 1 ? undefined : arguments[1]; name = null; } if (name) { this.updateOne(this.get(name), data, options); } else { for (var index = 0; index < this.index.length; index++) { this.updateOne(this.index[index], data, options); } } } /** * Execute plugins, update rule props. */ ; _proto.updateOne = function updateOne(rule, data, options) { if (options === void 0) { options = defaultUpdateOptions; } var _this$options2 = this.options, plugins = _this$options2.jss.plugins, sheet = _this$options2.sheet; // It is a rules container like for e.g. ConditionalRule. if (rule.rules instanceof RuleList) { rule.rules.update(data, options); return; } var style = rule.style; plugins.onUpdate(data, rule, sheet, options); // We rely on a new `style` ref in case it was mutated during onUpdate hook. if (options.process && style && style !== rule.style) { // We need to run the plugins in case new `style` relies on syntax plugins. plugins.onProcessStyle(rule.style, rule, sheet); // Update and add props. for (var prop in rule.style) { var nextValue = rule.style[prop]; var prevValue = style[prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule. // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here. if (nextValue !== prevValue) { rule.prop(prop, nextValue, forceUpdateOptions); } } // Remove props. for (var _prop in style) { var _nextValue = rule.style[_prop]; var _prevValue = style[_prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule. // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here. if (_nextValue == null && _nextValue !== _prevValue) { rule.prop(_prop, null, forceUpdateOptions); } } } } /** * Convert rules to a CSS string. */ ; _proto.toString = function toString(options) { var str = ''; var sheet = this.options.sheet; var link = sheet ? sheet.options.link : false; var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak; for (var index = 0; index < this.index.length; index++) { var rule = this.index[index]; var css = rule.toString(options); // No need to render an empty rule. if (!css && !link) continue; if (str) str += linebreak; str += css; } return str; }; return RuleList; }(); var jss_esm_StyleSheet = /*#__PURE__*/ function () { function StyleSheet(styles, options) { this.attached = false; this.deployed = false; this.classes = {}; this.keyframes = {}; this.options = Object(esm_extends["a" /* default */])({}, options, { sheet: this, parent: this, classes: this.classes, keyframes: this.keyframes }); if (options.Renderer) { this.renderer = new options.Renderer(this); } this.rules = new jss_esm_RuleList(this.options); for (var name in styles) { this.rules.add(name, styles[name]); } this.rules.process(); } /** * Attach renderable to the render tree. */ var _proto = StyleSheet.prototype; _proto.attach = function attach() { if (this.attached) return this; if (this.renderer) this.renderer.attach(); this.attached = true; // Order is important, because we can't use insertRule API if style element is not attached. if (!this.deployed) this.deploy(); return this; } /** * Remove renderable from render tree. */ ; _proto.detach = function detach() { if (!this.attached) return this; if (this.renderer) this.renderer.detach(); this.attached = false; return this; } /** * Add a rule to the current stylesheet. * Will insert a rule also after the stylesheet has been rendered first time. */ ; _proto.addRule = function addRule(name, decl, options) { var queue = this.queue; // Plugins can create rules. // In order to preserve the right order, we need to queue all `.addRule` calls, // which happen after the first `rules.add()` call. if (this.attached && !queue) this.queue = []; var rule = this.rules.add(name, decl, options); if (!rule) return null; this.options.jss.plugins.onProcessRule(rule); if (this.attached) { if (!this.deployed) return rule; // Don't insert rule directly if there is no stringified version yet. // It will be inserted all together when .attach is called. if (queue) queue.push(rule);else { this.insertRule(rule); if (this.queue) { this.queue.forEach(this.insertRule, this); this.queue = undefined; } } return rule; } // We can't add rules to a detached style node. // We will redeploy the sheet once user will attach it. this.deployed = false; return rule; } /** * Replace a rule in the current stylesheet. */ ; _proto.replaceRule = function replaceRule(nameOrSelector, decl, options) { var oldRule = this.rules.get(nameOrSelector); if (!oldRule) return this.addRule(nameOrSelector, decl, options); var newRule = this.rules.replace(nameOrSelector, decl, options); if (newRule) { this.options.jss.plugins.onProcessRule(newRule); } if (this.attached) { if (!this.deployed) return newRule; // Don't replace / delete rule directly if there is no stringified version yet. // It will be inserted all together when .attach is called. if (this.renderer) { if (!newRule) { this.renderer.deleteRule(oldRule); } else if (oldRule.renderable) { this.renderer.replaceRule(oldRule.renderable, newRule); } } return newRule; } // We can't replace rules to a detached style node. // We will redeploy the sheet once user will attach it. this.deployed = false; return newRule; } /** * Insert rule into the StyleSheet */ ; _proto.insertRule = function insertRule(rule) { if (this.renderer) { this.renderer.insertRule(rule); } } /** * Create and add rules. * Will render also after Style Sheet was rendered the first time. */ ; _proto.addRules = function addRules(styles, options) { var added = []; for (var name in styles) { var rule = this.addRule(name, styles[name], options); if (rule) added.push(rule); } return added; } /** * Get a rule by name or selector. */ ; _proto.getRule = function getRule(nameOrSelector) { return this.rules.get(nameOrSelector); } /** * Delete a rule by name. * Returns `true`: if rule has been deleted from the DOM. */ ; _proto.deleteRule = function deleteRule(name) { var rule = typeof name === 'object' ? name : this.rules.get(name); if (!rule || // Style sheet was created without link: true and attached, in this case we // won't be able to remove the CSS rule from the DOM. this.attached && !rule.renderable) { return false; } this.rules.remove(rule); if (this.attached && rule.renderable && this.renderer) { return this.renderer.deleteRule(rule.renderable); } return true; } /** * Get index of a rule. */ ; _proto.indexOf = function indexOf(rule) { return this.rules.indexOf(rule); } /** * Deploy pure CSS string to a renderable. */ ; _proto.deploy = function deploy() { if (this.renderer) this.renderer.deploy(); this.deployed = true; return this; } /** * Update the function values with a new data. */ ; _proto.update = function update() { var _this$rules; (_this$rules = this.rules).update.apply(_this$rules, arguments); return this; } /** * Updates a single rule. */ ; _proto.updateOne = function updateOne(rule, data, options) { this.rules.updateOne(rule, data, options); return this; } /** * Convert rules to a CSS string. */ ; _proto.toString = function toString(options) { return this.rules.toString(options); }; return StyleSheet; }(); var PluginsRegistry = /*#__PURE__*/ function () { function PluginsRegistry() { this.plugins = { internal: [], external: [] }; this.registry = {}; } var _proto = PluginsRegistry.prototype; /** * Call `onCreateRule` hooks and return an object if returned by a hook. */ _proto.onCreateRule = function onCreateRule(name, decl, options) { for (var i = 0; i < this.registry.onCreateRule.length; i++) { var rule = this.registry.onCreateRule[i](name, decl, options); if (rule) return rule; } return null; } /** * Call `onProcessRule` hooks. */ ; _proto.onProcessRule = function onProcessRule(rule) { if (rule.isProcessed) return; var sheet = rule.options.sheet; for (var i = 0; i < this.registry.onProcessRule.length; i++) { this.registry.onProcessRule[i](rule, sheet); } if (rule.style) this.onProcessStyle(rule.style, rule, sheet); rule.isProcessed = true; } /** * Call `onProcessStyle` hooks. */ ; _proto.onProcessStyle = function onProcessStyle(style, rule, sheet) { for (var i = 0; i < this.registry.onProcessStyle.length; i++) { rule.style = this.registry.onProcessStyle[i](rule.style, rule, sheet); } } /** * Call `onProcessSheet` hooks. */ ; _proto.onProcessSheet = function onProcessSheet(sheet) { for (var i = 0; i < this.registry.onProcessSheet.length; i++) { this.registry.onProcessSheet[i](sheet); } } /** * Call `onUpdate` hooks. */ ; _proto.onUpdate = function onUpdate(data, rule, sheet, options) { for (var i = 0; i < this.registry.onUpdate.length; i++) { this.registry.onUpdate[i](data, rule, sheet, options); } } /** * Call `onChangeValue` hooks. */ ; _proto.onChangeValue = function onChangeValue(value, prop, rule) { var processedValue = value; for (var i = 0; i < this.registry.onChangeValue.length; i++) { processedValue = this.registry.onChangeValue[i](processedValue, prop, rule); } return processedValue; } /** * Register a plugin. */ ; _proto.use = function use(newPlugin, options) { if (options === void 0) { options = { queue: 'external' }; } var plugins = this.plugins[options.queue]; // Avoids applying same plugin twice, at least based on ref. if (plugins.indexOf(newPlugin) !== -1) { return; } plugins.push(newPlugin); this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function (registry, plugin) { for (var name in plugin) { if (name in registry) { registry[name].push(plugin[name]); } else { false ? undefined : void 0; } } return registry; }, { onCreateRule: [], onProcessRule: [], onProcessStyle: [], onProcessSheet: [], onChangeValue: [], onUpdate: [] }); }; return PluginsRegistry; }(); /** * Sheets registry to access all instances in one place. */ var jss_esm_SheetsRegistry = /*#__PURE__*/ function () { function SheetsRegistry() { this.registry = []; } var _proto = SheetsRegistry.prototype; /** * Register a Style Sheet. */ _proto.add = function add(sheet) { var registry = this.registry; var index = sheet.options.index; if (registry.indexOf(sheet) !== -1) return; if (registry.length === 0 || index >= this.index) { registry.push(sheet); return; } // Find a position. for (var i = 0; i < registry.length; i++) { if (registry[i].options.index > index) { registry.splice(i, 0, sheet); return; } } } /** * Reset the registry. */ ; _proto.reset = function reset() { this.registry = []; } /** * Remove a Style Sheet. */ ; _proto.remove = function remove(sheet) { var index = this.registry.indexOf(sheet); this.registry.splice(index, 1); } /** * Convert all attached sheets to a CSS string. */ ; _proto.toString = function toString(_temp) { var _ref = _temp === void 0 ? {} : _temp, attached = _ref.attached, options = Object(objectWithoutPropertiesLoose["a" /* default */])(_ref, ["attached"]); var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak; var css = ''; for (var i = 0; i < this.registry.length; i++) { var sheet = this.registry[i]; if (attached != null && sheet.attached !== attached) { continue; } if (css) css += linebreak; css += sheet.toString(options); } return css; }; _createClass(SheetsRegistry, [{ key: "index", /** * Current highest index number. */ get: function get() { return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index; } }]); return SheetsRegistry; }(); /** * This is a global sheets registry. Only DomRenderer will add sheets to it. * On the server one should use an own SheetsRegistry instance and add the * sheets to it, because you need to make sure to create a new registry for * each request in order to not leak sheets across requests. */ var sheets = new jss_esm_SheetsRegistry(); /* eslint-disable */ /** * Now that `globalThis` is available on most platforms * (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis#browser_compatibility) * we check for `globalThis` first. `globalThis` is necessary for jss * to run in Agoric's secure version of JavaScript (SES). Under SES, * `globalThis` exists, but `window`, `self`, and `Function('return * this')()` are all undefined for security reasons. * * https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 */ var globalThis$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' && window.Math === Math ? window : typeof self !== 'undefined' && self.Math === Math ? self : Function('return this')(); var ns = '2f1acc6c3a606b082e5eef5e54414ffb'; if (globalThis$1[ns] == null) globalThis$1[ns] = 0; // Bundle may contain multiple JSS versions at the same time. In order to identify // the current version with just one short number and use it for classes generation // we use a counter. Also it is more accurate, because user can manually reevaluate // the module. var moduleId = globalThis$1[ns]++; var maxRules = 1e10; /** * Returns a function which generates unique class names based on counters. * When new generator function is created, rule counter is reseted. * We need to reset the rule counter for SSR for each request. */ var createGenerateId = function createGenerateId(options) { if (options === void 0) { options = {}; } var ruleCounter = 0; var generateId = function generateId(rule, sheet) { ruleCounter += 1; if (ruleCounter > maxRules) { false ? undefined : void 0; } var jssId = ''; var prefix = ''; if (sheet) { if (sheet.options.classNamePrefix) { prefix = sheet.options.classNamePrefix; } if (sheet.options.jss.id != null) { jssId = String(sheet.options.jss.id); } } if (options.minify) { // Using "c" because a number can't be the first char in a class name. return "" + (prefix || 'c') + moduleId + jssId + ruleCounter; } return prefix + rule.key + "-" + moduleId + (jssId ? "-" + jssId : '') + "-" + ruleCounter; }; return generateId; }; /** * Cache the value from the first time a function is called. */ var memoize = function memoize(fn) { var value; return function () { if (!value) value = fn(); return value; }; }; /** * Get a style property value. */ var getPropertyValue = function getPropertyValue(cssRule, prop) { try { // Support CSSTOM. if (cssRule.attributeStyleMap) { return cssRule.attributeStyleMap.get(prop); } return cssRule.style.getPropertyValue(prop); } catch (err) { // IE may throw if property is unknown. return ''; } }; /** * Set a style property. */ var setProperty = function setProperty(cssRule, prop, value) { try { var cssValue = value; if (Array.isArray(value)) { cssValue = toCssValue(value); } // Support CSSTOM. if (cssRule.attributeStyleMap) { cssRule.attributeStyleMap.set(prop, cssValue); } else { var indexOfImportantFlag = cssValue ? cssValue.indexOf('!important') : -1; var cssValueWithoutImportantFlag = indexOfImportantFlag > -1 ? cssValue.substr(0, indexOfImportantFlag - 1) : cssValue; cssRule.style.setProperty(prop, cssValueWithoutImportantFlag, indexOfImportantFlag > -1 ? 'important' : ''); } } catch (err) { // IE may throw if property is unknown. return false; } return true; }; /** * Remove a style property. */ var removeProperty = function removeProperty(cssRule, prop) { try { // Support CSSTOM. if (cssRule.attributeStyleMap) { cssRule.attributeStyleMap.delete(prop); } else { cssRule.style.removeProperty(prop); } } catch (err) { false ? undefined : void 0; } }; /** * Set the selector. */ var setSelector = function setSelector(cssRule, selectorText) { cssRule.selectorText = selectorText; // Return false if setter was not successful. // Currently works in chrome only. return cssRule.selectorText === selectorText; }; /** * Gets the `head` element upon the first call and caches it. * We assume it can't be null. */ var getHead = memoize(function () { return document.querySelector('head'); }); /** * Find attached sheet with an index higher than the passed one. */ function findHigherSheet(registry, options) { for (var i = 0; i < registry.length; i++) { var sheet = registry[i]; if (sheet.attached && sheet.options.index > options.index && sheet.options.insertionPoint === options.insertionPoint) { return sheet; } } return null; } /** * Find attached sheet with the highest index. */ function findHighestSheet(registry, options) { for (var i = registry.length - 1; i >= 0; i--) { var sheet = registry[i]; if (sheet.attached && sheet.options.insertionPoint === options.insertionPoint) { return sheet; } } return null; } /** * Find a comment with "jss" inside. */ function findCommentNode(text) { var head = getHead(); for (var i = 0; i < head.childNodes.length; i++) { var node = head.childNodes[i]; if (node.nodeType === 8 && node.nodeValue.trim() === text) { return node; } } return null; } /** * Find a node before which we can insert the sheet. */ function findPrevNode(options) { var registry = sheets.registry; if (registry.length > 0) { // Try to insert before the next higher sheet. var sheet = findHigherSheet(registry, options); if (sheet && sheet.renderer) { return { parent: sheet.renderer.element.parentNode, node: sheet.renderer.element }; } // Otherwise insert after the last attached. sheet = findHighestSheet(registry, options); if (sheet && sheet.renderer) { return { parent: sheet.renderer.element.parentNode, node: sheet.renderer.element.nextSibling }; } } // Try to find a comment placeholder if registry is empty. var insertionPoint = options.insertionPoint; if (insertionPoint && typeof insertionPoint === 'string') { var comment = findCommentNode(insertionPoint); if (comment) { return { parent: comment.parentNode, node: comment.nextSibling }; } // If user specifies an insertion point and it can't be found in the document - // bad specificity issues may appear. false ? undefined : void 0; } return false; } /** * Insert style element into the DOM. */ function insertStyle(style, options) { var insertionPoint = options.insertionPoint; var nextNode = findPrevNode(options); if (nextNode !== false && nextNode.parent) { nextNode.parent.insertBefore(style, nextNode.node); return; } // Works with iframes and any node types. if (insertionPoint && typeof insertionPoint.nodeType === 'number') { var insertionPointElement = insertionPoint; var parentNode = insertionPointElement.parentNode; if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);else false ? undefined : void 0; return; } getHead().appendChild(style); } /** * Read jss nonce setting from the page if the user has set it. */ var getNonce = memoize(function () { var node = document.querySelector('meta[property="csp-nonce"]'); return node ? node.getAttribute('content') : null; }); var _insertRule = function insertRule(container, rule, index) { try { if ('insertRule' in container) { container.insertRule(rule, index); } // Keyframes rule. else if ('appendRule' in container) { container.appendRule(rule); } } catch (err) { false ? undefined : void 0; return false; } return container.cssRules[index]; }; var getValidRuleInsertionIndex = function getValidRuleInsertionIndex(container, index) { var maxIndex = container.cssRules.length; // In case previous insertion fails, passed index might be wrong if (index === undefined || index > maxIndex) { // eslint-disable-next-line no-param-reassign return maxIndex; } return index; }; var createStyle = function createStyle() { var el = document.createElement('style'); // Without it, IE will have a broken source order specificity if we // insert rules after we insert the style tag. // It seems to kick-off the source order specificity algorithm. el.textContent = '\n'; return el; }; var DomRenderer = /*#__PURE__*/ function () { // Will be empty if link: true option is not set, because // it is only for use together with insertRule API. function DomRenderer(sheet) { this.getPropertyValue = getPropertyValue; this.setProperty = setProperty; this.removeProperty = removeProperty; this.setSelector = setSelector; this.hasInsertedRules = false; this.cssRules = []; // There is no sheet when the renderer is used from a standalone StyleRule. if (sheet) sheets.add(sheet); this.sheet = sheet; var _ref = this.sheet ? this.sheet.options : {}, media = _ref.media, meta = _ref.meta, element = _ref.element; this.element = element || createStyle(); this.element.setAttribute('data-jss', ''); if (media) this.element.setAttribute('media', media); if (meta) this.element.setAttribute('data-meta', meta); var nonce = getNonce(); if (nonce) this.element.setAttribute('nonce', nonce); } /** * Insert style element into render tree. */ var _proto = DomRenderer.prototype; _proto.attach = function attach() { // In the case the element node is external and it is already in the DOM. if (this.element.parentNode || !this.sheet) return; insertStyle(this.element, this.sheet.options); // When rules are inserted using `insertRule` API, after `sheet.detach().attach()` // most browsers create a new CSSStyleSheet, except of all IEs. var deployed = Boolean(this.sheet && this.sheet.deployed); if (this.hasInsertedRules && deployed) { this.hasInsertedRules = false; this.deploy(); } } /** * Remove style element from render tree. */ ; _proto.detach = function detach() { if (!this.sheet) return; var parentNode = this.element.parentNode; if (parentNode) parentNode.removeChild(this.element); // In the most browsers, rules inserted using insertRule() API will be lost when style element is removed. // Though IE will keep them and we need a consistent behavior. if (this.sheet.options.link) { this.cssRules = []; this.element.textContent = '\n'; } } /** * Inject CSS string into element. */ ; _proto.deploy = function deploy() { var sheet = this.sheet; if (!sheet) return; if (sheet.options.link) { this.insertRules(sheet.rules); return; } this.element.textContent = "\n" + sheet.toString() + "\n"; } /** * Insert RuleList into an element. */ ; _proto.insertRules = function insertRules(rules, nativeParent) { for (var i = 0; i < rules.index.length; i++) { this.insertRule(rules.index[i], i, nativeParent); } } /** * Insert a rule into element. */ ; _proto.insertRule = function insertRule(rule, index, nativeParent) { if (nativeParent === void 0) { nativeParent = this.element.sheet; } if (rule.rules) { var parent = rule; var latestNativeParent = nativeParent; if (rule.type === 'conditional' || rule.type === 'keyframes') { var _insertionIndex = getValidRuleInsertionIndex(nativeParent, index); // We need to render the container without children first. latestNativeParent = _insertRule(nativeParent, parent.toString({ children: false }), _insertionIndex); if (latestNativeParent === false) { return false; } this.refCssRule(rule, _insertionIndex, latestNativeParent); } this.insertRules(parent.rules, latestNativeParent); return latestNativeParent; } var ruleStr = rule.toString(); if (!ruleStr) return false; var insertionIndex = getValidRuleInsertionIndex(nativeParent, index); var nativeRule = _insertRule(nativeParent, ruleStr, insertionIndex); if (nativeRule === false) { return false; } this.hasInsertedRules = true; this.refCssRule(rule, insertionIndex, nativeRule); return nativeRule; }; _proto.refCssRule = function refCssRule(rule, index, cssRule) { rule.renderable = cssRule; // We only want to reference the top level rules, deleteRule API doesn't support removing nested rules // like rules inside media queries or keyframes if (rule.options.parent instanceof jss_esm_StyleSheet) { this.cssRules.splice(index, 0, cssRule); } } /** * Delete a rule. */ ; _proto.deleteRule = function deleteRule(cssRule) { var sheet = this.element.sheet; var index = this.indexOf(cssRule); if (index === -1) return false; sheet.deleteRule(index); this.cssRules.splice(index, 1); return true; } /** * Get index of a CSS Rule. */ ; _proto.indexOf = function indexOf(cssRule) { return this.cssRules.indexOf(cssRule); } /** * Generate a new CSS rule and replace the existing one. */ ; _proto.replaceRule = function replaceRule(cssRule, rule) { var index = this.indexOf(cssRule); if (index === -1) return false; this.element.sheet.deleteRule(index); this.cssRules.splice(index, 1); return this.insertRule(rule, index); } /** * Get all rules elements. */ ; _proto.getRules = function getRules() { return this.element.sheet.cssRules; }; return DomRenderer; }(); var instanceCounter = 0; var jss_esm_Jss = /*#__PURE__*/ function () { function Jss(options) { this.id = instanceCounter++; this.version = "10.10.0"; this.plugins = new PluginsRegistry(); this.options = { id: { minify: false }, createGenerateId: createGenerateId, Renderer: dist_module ? DomRenderer : null, plugins: [] }; this.generateId = createGenerateId({ minify: false }); for (var i = 0; i < plugins.length; i++) { this.plugins.use(plugins[i], { queue: 'internal' }); } this.setup(options); } /** * Prepares various options, applies plugins. * Should not be used twice on the same instance, because there is no plugins * deduplication logic. */ var _proto = Jss.prototype; _proto.setup = function setup(options) { if (options === void 0) { options = {}; } if (options.createGenerateId) { this.options.createGenerateId = options.createGenerateId; } if (options.id) { this.options.id = Object(esm_extends["a" /* default */])({}, this.options.id, options.id); } if (options.createGenerateId || options.id) { this.generateId = this.options.createGenerateId(this.options.id); } if (options.insertionPoint != null) this.options.insertionPoint = options.insertionPoint; if ('Renderer' in options) { this.options.Renderer = options.Renderer; } // eslint-disable-next-line prefer-spread if (options.plugins) this.use.apply(this, options.plugins); return this; } /** * Create a Style Sheet. */ ; _proto.createStyleSheet = function createStyleSheet(styles, options) { if (options === void 0) { options = {}; } var _options = options, index = _options.index; if (typeof index !== 'number') { index = sheets.index === 0 ? 0 : sheets.index + 1; } var sheet = new jss_esm_StyleSheet(styles, Object(esm_extends["a" /* default */])({}, options, { jss: this, generateId: options.generateId || this.generateId, insertionPoint: this.options.insertionPoint, Renderer: this.options.Renderer, index: index })); this.plugins.onProcessSheet(sheet); return sheet; } /** * Detach the Style Sheet and remove it from the registry. */ ; _proto.removeStyleSheet = function removeStyleSheet(sheet) { sheet.detach(); sheets.remove(sheet); return this; } /** * Create a rule without a Style Sheet. * [Deprecated] will be removed in the next major version. */ ; _proto.createRule = function createRule$1(name, style, options) { if (style === void 0) { style = {}; } if (options === void 0) { options = {}; } // Enable rule without name for inline styles. if (typeof name === 'object') { return this.createRule(undefined, name, style); } var ruleOptions = Object(esm_extends["a" /* default */])({}, options, { name: name, jss: this, Renderer: this.options.Renderer }); if (!ruleOptions.generateId) ruleOptions.generateId = this.generateId; if (!ruleOptions.classes) ruleOptions.classes = {}; if (!ruleOptions.keyframes) ruleOptions.keyframes = {}; var rule = createRule(name, style, ruleOptions); if (rule) this.plugins.onProcessRule(rule); return rule; } /** * Register plugin. Passed function will be invoked with a rule instance. */ ; _proto.use = function use() { var _this = this; for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) { plugins[_key] = arguments[_key]; } plugins.forEach(function (plugin) { _this.plugins.use(plugin); }); return this; }; return Jss; }(); var createJss = function createJss(options) { return new jss_esm_Jss(options); }; /** * SheetsManager is like a WeakMap which is designed to count StyleSheet * instances and attach/detach automatically. * Used in react-jss. */ var jss_esm_SheetsManager = /*#__PURE__*/ function () { function SheetsManager() { this.length = 0; this.sheets = new WeakMap(); } var _proto = SheetsManager.prototype; _proto.get = function get(key) { var entry = this.sheets.get(key); return entry && entry.sheet; }; _proto.add = function add(key, sheet) { if (this.sheets.has(key)) return; this.length++; this.sheets.set(key, { sheet: sheet, refs: 0 }); }; _proto.manage = function manage(key) { var entry = this.sheets.get(key); if (entry) { if (entry.refs === 0) { entry.sheet.attach(); } entry.refs++; return entry.sheet; } tiny_warning_esm(false, "[JSS] SheetsManager: can't find sheet to manage"); return undefined; }; _proto.unmanage = function unmanage(key) { var entry = this.sheets.get(key); if (entry) { if (entry.refs > 0) { entry.refs--; if (entry.refs === 0) entry.sheet.detach(); } } else { tiny_warning_esm(false, "SheetsManager: can't find sheet to unmanage"); } }; _createClass(SheetsManager, [{ key: "size", get: function get() { return this.length; } }]); return SheetsManager; }(); /** * Export a constant indicating if this browser has CSSTOM support. * https://developers.google.com/web/updates/2018/03/cssom */ var hasCSSTOMSupport = typeof CSS === 'object' && CSS != null && 'number' in CSS; /** * Extracts a styles object with only props that contain function values. */ function getDynamicStyles(styles) { var to = null; for (var key in styles) { var value = styles[key]; var type = typeof value; if (type === 'function') { if (!to) to = {}; to[key] = value; } else if (type === 'object' && value !== null && !Array.isArray(value)) { var extracted = getDynamicStyles(value); if (extracted) { if (!to) to = {}; to[key] = extracted; } } } return to; } /** * A better abstraction over CSS. * * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present * @website https://github.com/cssinjs/jss * @license MIT */ var jss_esm_index = createJss(); /* harmony default export */ var jss_esm = (jss_esm_index); // CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/mergeClasses/mergeClasses.js function mergeClasses() { var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var baseClasses = options.baseClasses, newClasses = options.newClasses, Component = options.Component; if (!newClasses) { return baseClasses; } var nextClasses = Object(esm_extends["a" /* default */])({}, baseClasses); if (false) {} Object.keys(newClasses).forEach(function (key) { if (false) {} if (newClasses[key]) { nextClasses[key] = "".concat(baseClasses[key], " ").concat(newClasses[key]); } }); return nextClasses; } // CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/makeStyles/multiKeyStore.js // Used https://github.com/thinkloop/multi-key-cache as inspiration var multiKeyStore = { set: function set(cache, key1, key2, value) { var subCache = cache.get(key1); if (!subCache) { subCache = new Map(); cache.set(key1, subCache); } subCache.set(key2, value); }, get: function get(cache, key1, key2) { var subCache = cache.get(key1); return subCache ? subCache.get(key2) : undefined; }, delete: function _delete(cache, key1, key2) { var subCache = cache.get(key1); subCache.delete(key2); } }; /* harmony default export */ var makeStyles_multiKeyStore = (multiKeyStore); // EXTERNAL MODULE: ./node_modules/@material-ui/styles/esm/useTheme/useTheme.js + 1 modules var useTheme = __webpack_require__(1673); // CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/ThemeProvider/nested.js var hasSymbol = typeof Symbol === 'function' && Symbol.for; /* harmony default export */ var nested = (hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__'); // CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/createGenerateClassName/createGenerateClassName.js /** * This is the list of the style rule name we use as drop in replacement for the built-in * pseudo classes (:checked, :disabled, :focused, etc.). * * Why do they exist in the first place? * These classes are used at a specificity of 2. * It allows them to override previously definied styles as well as * being untouched by simple user overrides. */ var createGenerateClassName_pseudoClasses = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected']; // Returns a function which generates unique class names based on counters. // When new generator function is created, rule counter is reset. // We need to reset the rule counter for SSR for each request. // // It's inspired by // https://github.com/cssinjs/jss/blob/4e6a05dd3f7b6572fdd3ab216861d9e446c20331/src/utils/createGenerateClassName.js function createGenerateClassName() { var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var _options$disableGloba = options.disableGlobal, disableGlobal = _options$disableGloba === void 0 ? false : _options$disableGloba, _options$productionPr = options.productionPrefix, productionPrefix = _options$productionPr === void 0 ? 'jss' : _options$productionPr, _options$seed = options.seed, seed = _options$seed === void 0 ? '' : _options$seed; var seedPrefix = seed === '' ? '' : "".concat(seed, "-"); var ruleCounter = 0; var getNextCounterId = function getNextCounterId() { ruleCounter += 1; if (false) {} return ruleCounter; }; return function (rule, styleSheet) { var name = styleSheet.options.name; // Is a global static MUI style? if (name && name.indexOf('Mui') === 0 && !styleSheet.options.link && !disableGlobal) { // We can use a shorthand class name, we never use the keys to style the components. if (createGenerateClassName_pseudoClasses.indexOf(rule.key) !== -1) { return "Mui-".concat(rule.key); } var prefix = "".concat(seedPrefix).concat(name, "-").concat(rule.key); if (!styleSheet.options.theme[nested] || seed !== '') { return prefix; } return "".concat(prefix, "-").concat(getNextCounterId()); } if (true) { return "".concat(seedPrefix).concat(productionPrefix).concat(getNextCounterId()); } var suffix = "".concat(rule.key, "-").concat(getNextCounterId()); // Help with debuggability. if (styleSheet.options.classNamePrefix) { return "".concat(seedPrefix).concat(styleSheet.options.classNamePrefix, "-").concat(suffix); } return "".concat(seedPrefix).concat(suffix); }; } // CONCATENATED MODULE: ./node_modules/jss-plugin-rule-value-function/dist/jss-plugin-rule-value-function.esm.js var now = Date.now(); var fnValuesNs = "fnValues" + now; var fnRuleNs = "fnStyle" + ++now; var jss_plugin_rule_value_function_esm_functionPlugin = function functionPlugin() { return { onCreateRule: function onCreateRule(name, decl, options) { if (typeof decl !== 'function') return null; var rule = createRule(name, {}, options); rule[fnRuleNs] = decl; return rule; }, onProcessStyle: function onProcessStyle(style, rule) { // We need to extract function values from the declaration, so that we can keep core unaware of them. // We need to do that only once. // We don't need to extract functions on each style update, since this can happen only once. // We don't support function values inside of function rules. if (fnValuesNs in rule || fnRuleNs in rule) return style; var fnValues = {}; for (var prop in style) { var value = style[prop]; if (typeof value !== 'function') continue; delete style[prop]; fnValues[prop] = value; } rule[fnValuesNs] = fnValues; return style; }, onUpdate: function onUpdate(data, rule, sheet, options) { var styleRule = rule; var fnRule = styleRule[fnRuleNs]; // If we have a style function, the entire rule is dynamic and style object // will be returned from that function. if (fnRule) { // Empty object will remove all currently defined props // in case function rule returns a falsy value. styleRule.style = fnRule(data) || {}; if (false) { var prop; } } var fnValues = styleRule[fnValuesNs]; // If we have a fn values map, it is a rule with function values. if (fnValues) { for (var _prop in fnValues) { styleRule.prop(_prop, fnValues[_prop](data), options); } } } }; }; /* harmony default export */ var jss_plugin_rule_value_function_esm = (jss_plugin_rule_value_function_esm_functionPlugin); // CONCATENATED MODULE: ./node_modules/jss-plugin-global/dist/jss-plugin-global.esm.js var at = '@global'; var atPrefix = '@global '; var jss_plugin_global_esm_GlobalContainerRule = /*#__PURE__*/ function () { function GlobalContainerRule(key, styles, options) { this.type = 'global'; this.at = at; this.isProcessed = false; this.key = key; this.options = options; this.rules = new jss_esm_RuleList(Object(esm_extends["a" /* default */])({}, options, { parent: this })); for (var selector in styles) { this.rules.add(selector, styles[selector]); } this.rules.process(); } /** * Get a rule. */ var _proto = GlobalContainerRule.prototype; _proto.getRule = function getRule(name) { return this.rules.get(name); } /** * Create and register rule, run plugins. */ ; _proto.addRule = function addRule(name, style, options) { var rule = this.rules.add(name, style, options); if (rule) this.options.jss.plugins.onProcessRule(rule); return rule; } /** * Replace rule, run plugins. */ ; _proto.replaceRule = function replaceRule(name, style, options) { var newRule = this.rules.replace(name, style, options); if (newRule) this.options.jss.plugins.onProcessRule(newRule); return newRule; } /** * Get index of a rule. */ ; _proto.indexOf = function indexOf(rule) { return this.rules.indexOf(rule); } /** * Generates a CSS string. */ ; _proto.toString = function toString(options) { return this.rules.toString(options); }; return GlobalContainerRule; }(); var jss_plugin_global_esm_GlobalPrefixedRule = /*#__PURE__*/ function () { function GlobalPrefixedRule(key, style, options) { this.type = 'global'; this.at = at; this.isProcessed = false; this.key = key; this.options = options; var selector = key.substr(atPrefix.length); this.rule = options.jss.createRule(selector, style, Object(esm_extends["a" /* default */])({}, options, { parent: this })); } var _proto2 = GlobalPrefixedRule.prototype; _proto2.toString = function toString(options) { return this.rule ? this.rule.toString(options) : ''; }; return GlobalPrefixedRule; }(); var separatorRegExp = /\s*,\s*/g; function addScope(selector, scope) { var parts = selector.split(separatorRegExp); var scoped = ''; for (var i = 0; i < parts.length; i++) { scoped += scope + " " + parts[i].trim(); if (parts[i + 1]) scoped += ', '; } return scoped; } function handleNestedGlobalContainerRule(rule, sheet) { var options = rule.options, style = rule.style; var rules = style ? style[at] : null; if (!rules) return; for (var name in rules) { sheet.addRule(name, rules[name], Object(esm_extends["a" /* default */])({}, options, { selector: addScope(name, rule.selector) })); } delete style[at]; } function handlePrefixedGlobalRule(rule, sheet) { var options = rule.options, style = rule.style; for (var prop in style) { if (prop[0] !== '@' || prop.substr(0, at.length) !== at) continue; var selector = addScope(prop.substr(at.length), rule.selector); sheet.addRule(selector, style[prop], Object(esm_extends["a" /* default */])({}, options, { selector: selector })); delete style[prop]; } } /** * Convert nested rules to separate, remove them from original styles. */ function jssGlobal() { function onCreateRule(name, styles, options) { if (!name) return null; if (name === at) { return new jss_plugin_global_esm_GlobalContainerRule(name, styles, options); } if (name[0] === '@' && name.substr(0, atPrefix.length) === atPrefix) { return new jss_plugin_global_esm_GlobalPrefixedRule(name, styles, options); } var parent = options.parent; if (parent) { if (parent.type === 'global' || parent.options.parent && parent.options.parent.type === 'global') { options.scoped = false; } } if (!options.selector && options.scoped === false) { options.selector = name; } return null; } function onProcessRule(rule, sheet) { if (rule.type !== 'style' || !sheet) return; handleNestedGlobalContainerRule(rule, sheet); handlePrefixedGlobalRule(rule, sheet); } return { onCreateRule: onCreateRule, onProcessRule: onProcessRule }; } /* harmony default export */ var jss_plugin_global_esm = (jssGlobal); // CONCATENATED MODULE: ./node_modules/jss-plugin-nested/dist/jss-plugin-nested.esm.js var jss_plugin_nested_esm_separatorRegExp = /\s*,\s*/g; var parentRegExp = /&/g; var jss_plugin_nested_esm_refRegExp = /\$([\w-]+)/g; /** * Convert nested rules to separate, remove them from original styles. */ function jssNested() { // Get a function to be used for $ref replacement. function getReplaceRef(container, sheet) { return function (match, key) { var rule = container.getRule(key) || sheet && sheet.getRule(key); if (rule) { return rule.selector; } false ? undefined : void 0; return key; }; } function replaceParentRefs(nestedProp, parentProp) { var parentSelectors = parentProp.split(jss_plugin_nested_esm_separatorRegExp); var nestedSelectors = nestedProp.split(jss_plugin_nested_esm_separatorRegExp); var result = ''; for (var i = 0; i < parentSelectors.length; i++) { var parent = parentSelectors[i]; for (var j = 0; j < nestedSelectors.length; j++) { var nested = nestedSelectors[j]; if (result) result += ', '; // Replace all & by the parent or prefix & with the parent. result += nested.indexOf('&') !== -1 ? nested.replace(parentRegExp, parent) : parent + " " + nested; } } return result; } function getOptions(rule, container, prevOptions) { // Options has been already created, now we only increase index. if (prevOptions) return Object(esm_extends["a" /* default */])({}, prevOptions, { index: prevOptions.index + 1 }); var nestingLevel = rule.options.nestingLevel; nestingLevel = nestingLevel === undefined ? 1 : nestingLevel + 1; var options = Object(esm_extends["a" /* default */])({}, rule.options, { nestingLevel: nestingLevel, index: container.indexOf(rule) + 1 // We don't need the parent name to be set options for chlid. }); delete options.name; return options; } function onProcessStyle(style, rule, sheet) { if (rule.type !== 'style') return style; var styleRule = rule; var container = styleRule.options.parent; var options; var replaceRef; for (var prop in style) { var isNested = prop.indexOf('&') !== -1; var isNestedConditional = prop[0] === '@'; if (!isNested && !isNestedConditional) continue; options = getOptions(styleRule, container, options); if (isNested) { var selector = replaceParentRefs(prop, styleRule.selector); // Lazily create the ref replacer function just once for // all nested rules within the sheet. if (!replaceRef) replaceRef = getReplaceRef(container, sheet); // Replace all $refs. selector = selector.replace(jss_plugin_nested_esm_refRegExp, replaceRef); var name = styleRule.key + "-" + prop; if ('replaceRule' in container) { // for backward compatibility container.replaceRule(name, style[prop], Object(esm_extends["a" /* default */])({}, options, { selector: selector })); } else { container.addRule(name, style[prop], Object(esm_extends["a" /* default */])({}, options, { selector: selector })); } } else if (isNestedConditional) { // Place conditional right after the parent rule to ensure right ordering. container.addRule(prop, {}, options).addRule(styleRule.key, style[prop], { selector: styleRule.selector }); } delete style[prop]; } return style; } return { onProcessStyle: onProcessStyle }; } /* harmony default export */ var jss_plugin_nested_esm = (jssNested); // EXTERNAL MODULE: ./node_modules/hyphenate-style-name/index.js var hyphenate_style_name = __webpack_require__(370); // CONCATENATED MODULE: ./node_modules/jss-plugin-camel-case/dist/jss-plugin-camel-case.esm.js /** * Convert camel cased property names to dash separated. */ function convertCase(style) { var converted = {}; for (var prop in style) { var key = prop.indexOf('--') === 0 ? prop : Object(hyphenate_style_name["default"])(prop); converted[key] = style[prop]; } if (style.fallbacks) { if (Array.isArray(style.fallbacks)) converted.fallbacks = style.fallbacks.map(convertCase);else converted.fallbacks = convertCase(style.fallbacks); } return converted; } /** * Allow camel cased property names by converting them back to dasherized. */ function camelCase() { function onProcessStyle(style) { if (Array.isArray(style)) { // Handle rules like @font-face, which can have multiple styles in an array for (var index = 0; index < style.length; index++) { style[index] = convertCase(style[index]); } return style; } return convertCase(style); } function onChangeValue(value, prop, rule) { if (prop.indexOf('--') === 0) { return value; } var hyphenatedProp = Object(hyphenate_style_name["default"])(prop); // There was no camel case in place if (prop === hyphenatedProp) return value; rule.prop(hyphenatedProp, value); // Core will ignore that property value we set the proper one above. return null; } return { onProcessStyle: onProcessStyle, onChangeValue: onChangeValue }; } /* harmony default export */ var jss_plugin_camel_case_esm = (camelCase); // CONCATENATED MODULE: ./node_modules/jss-plugin-default-unit/dist/jss-plugin-default-unit.esm.js var px = hasCSSTOMSupport && CSS ? CSS.px : 'px'; var ms = hasCSSTOMSupport && CSS ? CSS.ms : 'ms'; var percent = hasCSSTOMSupport && CSS ? CSS.percent : '%'; /** * Generated jss-plugin-default-unit CSS property units */ var defaultUnits = { // Animation properties 'animation-delay': ms, 'animation-duration': ms, // Background properties 'background-position': px, 'background-position-x': px, 'background-position-y': px, 'background-size': px, // Border Properties border: px, 'border-bottom': px, 'border-bottom-left-radius': px, 'border-bottom-right-radius': px, 'border-bottom-width': px, 'border-left': px, 'border-left-width': px, 'border-radius': px, 'border-right': px, 'border-right-width': px, 'border-top': px, 'border-top-left-radius': px, 'border-top-right-radius': px, 'border-top-width': px, 'border-width': px, 'border-block': px, 'border-block-end': px, 'border-block-end-width': px, 'border-block-start': px, 'border-block-start-width': px, 'border-block-width': px, 'border-inline': px, 'border-inline-end': px, 'border-inline-end-width': px, 'border-inline-start': px, 'border-inline-start-width': px, 'border-inline-width': px, 'border-start-start-radius': px, 'border-start-end-radius': px, 'border-end-start-radius': px, 'border-end-end-radius': px, // Margin properties margin: px, 'margin-bottom': px, 'margin-left': px, 'margin-right': px, 'margin-top': px, 'margin-block': px, 'margin-block-end': px, 'margin-block-start': px, 'margin-inline': px, 'margin-inline-end': px, 'margin-inline-start': px, // Padding properties padding: px, 'padding-bottom': px, 'padding-left': px, 'padding-right': px, 'padding-top': px, 'padding-block': px, 'padding-block-end': px, 'padding-block-start': px, 'padding-inline': px, 'padding-inline-end': px, 'padding-inline-start': px, // Mask properties 'mask-position-x': px, 'mask-position-y': px, 'mask-size': px, // Width and height properties height: px, width: px, 'min-height': px, 'max-height': px, 'min-width': px, 'max-width': px, // Position properties bottom: px, left: px, top: px, right: px, inset: px, 'inset-block': px, 'inset-block-end': px, 'inset-block-start': px, 'inset-inline': px, 'inset-inline-end': px, 'inset-inline-start': px, // Shadow properties 'box-shadow': px, 'text-shadow': px, // Column properties 'column-gap': px, 'column-rule': px, 'column-rule-width': px, 'column-width': px, // Font and text properties 'font-size': px, 'font-size-delta': px, 'letter-spacing': px, 'text-decoration-thickness': px, 'text-indent': px, 'text-stroke': px, 'text-stroke-width': px, 'word-spacing': px, // Motion properties motion: px, 'motion-offset': px, // Outline properties outline: px, 'outline-offset': px, 'outline-width': px, // Perspective properties perspective: px, 'perspective-origin-x': percent, 'perspective-origin-y': percent, // Transform properties 'transform-origin': percent, 'transform-origin-x': percent, 'transform-origin-y': percent, 'transform-origin-z': percent, // Transition properties 'transition-delay': ms, 'transition-duration': ms, // Alignment properties 'vertical-align': px, 'flex-basis': px, // Some random properties 'shape-margin': px, size: px, gap: px, // Grid properties grid: px, 'grid-gap': px, 'row-gap': px, 'grid-row-gap': px, 'grid-column-gap': px, 'grid-template-rows': px, 'grid-template-columns': px, 'grid-auto-rows': px, 'grid-auto-columns': px, // Not existing properties. // Used to avoid issues with jss-plugin-expand integration. 'box-shadow-x': px, 'box-shadow-y': px, 'box-shadow-blur': px, 'box-shadow-spread': px, 'font-line-height': px, 'text-shadow-x': px, 'text-shadow-y': px, 'text-shadow-blur': px }; /** * Clones the object and adds a camel cased property version. */ function addCamelCasedVersion(obj) { var regExp = /(-[a-z])/g; var replace = function replace(str) { return str[1].toUpperCase(); }; var newObj = {}; for (var key in obj) { newObj[key] = obj[key]; newObj[key.replace(regExp, replace)] = obj[key]; } return newObj; } var units = addCamelCasedVersion(defaultUnits); /** * Recursive deep style passing function */ function iterate(prop, value, options) { if (value == null) return value; if (Array.isArray(value)) { for (var i = 0; i < value.length; i++) { value[i] = iterate(prop, value[i], options); } } else if (typeof value === 'object') { if (prop === 'fallbacks') { for (var innerProp in value) { value[innerProp] = iterate(innerProp, value[innerProp], options); } } else { for (var _innerProp in value) { value[_innerProp] = iterate(prop + "-" + _innerProp, value[_innerProp], options); } } // eslint-disable-next-line no-restricted-globals } else if (typeof value === 'number' && isNaN(value) === false) { var unit = options[prop] || units[prop]; // Add the unit if available, except for the special case of 0px. if (unit && !(value === 0 && unit === px)) { return typeof unit === 'function' ? unit(value).toString() : "" + value + unit; } return value.toString(); } return value; } /** * Add unit to numeric values. */ function defaultUnit(options) { if (options === void 0) { options = {}; } var camelCasedOptions = addCamelCasedVersion(options); function onProcessStyle(style, rule) { if (rule.type !== 'style') return style; for (var prop in style) { style[prop] = iterate(prop, style[prop], camelCasedOptions); } return style; } function onChangeValue(value, prop) { return iterate(prop, value, camelCasedOptions); } return { onProcessStyle: onProcessStyle, onChangeValue: onChangeValue }; } /* harmony default export */ var jss_plugin_default_unit_esm = (defaultUnit); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules var toConsumableArray = __webpack_require__(250); // CONCATENATED MODULE: ./node_modules/css-vendor/dist/css-vendor.esm.js // Export javascript style and css style vendor prefixes. var js = ''; var css_vendor_esm_css = ''; var vendor = ''; var browser = ''; var isTouch = dist_module && 'ontouchstart' in document.documentElement; // We should not do anything if required serverside. if (dist_module) { // Order matters. We need to check Webkit the last one because // other vendors use to add Webkit prefixes to some properties var jsCssMap = { Moz: '-moz-', ms: '-ms-', O: '-o-', Webkit: '-webkit-' }; var _document$createEleme = document.createElement('p'), css_vendor_esm_style = _document$createEleme.style; var testProp = 'Transform'; for (var css_vendor_esm_key in jsCssMap) { if (css_vendor_esm_key + testProp in css_vendor_esm_style) { js = css_vendor_esm_key; css_vendor_esm_css = jsCssMap[css_vendor_esm_key]; break; } } // Correctly detect the Edge browser. if (js === 'Webkit' && 'msHyphens' in css_vendor_esm_style) { js = 'ms'; css_vendor_esm_css = jsCssMap.ms; browser = 'edge'; } // Correctly detect the Safari browser. if (js === 'Webkit' && '-apple-trailing-word' in css_vendor_esm_style) { vendor = 'apple'; } } /** * Vendor prefix string for the current browser. * * @type {{js: String, css: String, vendor: String, browser: String}} * @api public */ var css_vendor_esm_prefix = { js: js, css: css_vendor_esm_css, vendor: vendor, browser: browser, isTouch: isTouch }; /** * Test if a keyframe at-rule should be prefixed or not * * @param {String} vendor prefix string for the current browser. * @return {String} * @api public */ function supportedKeyframes(key) { // Keyframes is already prefixed. e.g. key = '@-webkit-keyframes a' if (key[1] === '-') return key; // No need to prefix IE/Edge. Older browsers will ignore unsupported rules. // https://caniuse.com/#search=keyframes if (css_vendor_esm_prefix.js === 'ms') return key; return "@" + css_vendor_esm_prefix.css + "keyframes" + key.substr(10); } // https://caniuse.com/#search=appearance var appearence = { noPrefill: ['appearance'], supportedProperty: function supportedProperty(prop) { if (prop !== 'appearance') return false; if (css_vendor_esm_prefix.js === 'ms') return "-webkit-" + prop; return css_vendor_esm_prefix.css + prop; } }; // https://caniuse.com/#search=color-adjust var colorAdjust = { noPrefill: ['color-adjust'], supportedProperty: function supportedProperty(prop) { if (prop !== 'color-adjust') return false; if (css_vendor_esm_prefix.js === 'Webkit') return css_vendor_esm_prefix.css + "print-" + prop; return prop; } }; var regExp = /[-\s]+(.)?/g; /** * Replaces the letter with the capital letter * * @param {String} match * @param {String} c * @return {String} * @api private */ function toUpper(match, c) { return c ? c.toUpperCase() : ''; } /** * Convert dash separated strings to camel-cased. * * @param {String} str * @return {String} * @api private */ function camelize(str) { return str.replace(regExp, toUpper); } /** * Convert dash separated strings to pascal cased. * * @param {String} str * @return {String} * @api private */ function pascalize(str) { return camelize("-" + str); } // but we can use a longhand property instead. // https://caniuse.com/#search=mask var mask = { noPrefill: ['mask'], supportedProperty: function supportedProperty(prop, style) { if (!/^mask/.test(prop)) return false; if (css_vendor_esm_prefix.js === 'Webkit') { var longhand = 'mask-image'; if (camelize(longhand) in style) { return prop; } if (css_vendor_esm_prefix.js + pascalize(longhand) in style) { return css_vendor_esm_prefix.css + prop; } } return prop; } }; // https://caniuse.com/#search=text-orientation var textOrientation = { noPrefill: ['text-orientation'], supportedProperty: function supportedProperty(prop) { if (prop !== 'text-orientation') return false; if (css_vendor_esm_prefix.vendor === 'apple' && !css_vendor_esm_prefix.isTouch) { return css_vendor_esm_prefix.css + prop; } return prop; } }; // https://caniuse.com/#search=transform var css_vendor_esm_transform = { noPrefill: ['transform'], supportedProperty: function supportedProperty(prop, style, options) { if (prop !== 'transform') return false; if (options.transform) { return prop; } return css_vendor_esm_prefix.css + prop; } }; // https://caniuse.com/#search=transition var transition = { noPrefill: ['transition'], supportedProperty: function supportedProperty(prop, style, options) { if (prop !== 'transition') return false; if (options.transition) { return prop; } return css_vendor_esm_prefix.css + prop; } }; // https://caniuse.com/#search=writing-mode var writingMode = { noPrefill: ['writing-mode'], supportedProperty: function supportedProperty(prop) { if (prop !== 'writing-mode') return false; if (css_vendor_esm_prefix.js === 'Webkit' || css_vendor_esm_prefix.js === 'ms' && css_vendor_esm_prefix.browser !== 'edge') { return css_vendor_esm_prefix.css + prop; } return prop; } }; // https://caniuse.com/#search=user-select var userSelect = { noPrefill: ['user-select'], supportedProperty: function supportedProperty(prop) { if (prop !== 'user-select') return false; if (css_vendor_esm_prefix.js === 'Moz' || css_vendor_esm_prefix.js === 'ms' || css_vendor_esm_prefix.vendor === 'apple') { return css_vendor_esm_prefix.css + prop; } return prop; } }; // https://caniuse.com/#search=multicolumn // https://github.com/postcss/autoprefixer/issues/491 // https://github.com/postcss/autoprefixer/issues/177 var breakPropsOld = { supportedProperty: function supportedProperty(prop, style) { if (!/^break-/.test(prop)) return false; if (css_vendor_esm_prefix.js === 'Webkit') { var jsProp = "WebkitColumn" + pascalize(prop); return jsProp in style ? css_vendor_esm_prefix.css + "column-" + prop : false; } if (css_vendor_esm_prefix.js === 'Moz') { var _jsProp = "page" + pascalize(prop); return _jsProp in style ? "page-" + prop : false; } return false; } }; // See https://github.com/postcss/autoprefixer/issues/324. var inlineLogicalOld = { supportedProperty: function supportedProperty(prop, style) { if (!/^(border|margin|padding)-inline/.test(prop)) return false; if (css_vendor_esm_prefix.js === 'Moz') return prop; var newProp = prop.replace('-inline', ''); return css_vendor_esm_prefix.js + pascalize(newProp) in style ? css_vendor_esm_prefix.css + newProp : false; } }; // Camelization is required because we can't test using. // CSS syntax for e.g. in FF. var unprefixed = { supportedProperty: function supportedProperty(prop, style) { return camelize(prop) in style ? prop : false; } }; var prefixed = { supportedProperty: function supportedProperty(prop, style) { var pascalized = pascalize(prop); // Return custom CSS variable without prefixing. if (prop[0] === '-') return prop; // Return already prefixed value without prefixing. if (prop[0] === '-' && prop[1] === '-') return prop; if (css_vendor_esm_prefix.js + pascalized in style) return css_vendor_esm_prefix.css + prop; // Try webkit fallback. if (css_vendor_esm_prefix.js !== 'Webkit' && "Webkit" + pascalized in style) return "-webkit-" + prop; return false; } }; // https://caniuse.com/#search=scroll-snap var scrollSnap = { supportedProperty: function supportedProperty(prop) { if (prop.substring(0, 11) !== 'scroll-snap') return false; if (css_vendor_esm_prefix.js === 'ms') { return "" + css_vendor_esm_prefix.css + prop; } return prop; } }; // https://caniuse.com/#search=overscroll-behavior var overscrollBehavior = { supportedProperty: function supportedProperty(prop) { if (prop !== 'overscroll-behavior') return false; if (css_vendor_esm_prefix.js === 'ms') { return css_vendor_esm_prefix.css + "scroll-chaining"; } return prop; } }; var propMap = { 'flex-grow': 'flex-positive', 'flex-shrink': 'flex-negative', 'flex-basis': 'flex-preferred-size', 'justify-content': 'flex-pack', order: 'flex-order', 'align-items': 'flex-align', 'align-content': 'flex-line-pack' // 'align-self' is handled by 'align-self' plugin. }; // Support old flex spec from 2012. var flex2012 = { supportedProperty: function supportedProperty(prop, style) { var newProp = propMap[prop]; if (!newProp) return false; return css_vendor_esm_prefix.js + pascalize(newProp) in style ? css_vendor_esm_prefix.css + newProp : false; } }; var propMap$1 = { flex: 'box-flex', 'flex-grow': 'box-flex', 'flex-direction': ['box-orient', 'box-direction'], order: 'box-ordinal-group', 'align-items': 'box-align', 'flex-flow': ['box-orient', 'box-direction'], 'justify-content': 'box-pack' }; var propKeys = Object.keys(propMap$1); var prefixCss = function prefixCss(p) { return css_vendor_esm_prefix.css + p; }; // Support old flex spec from 2009. var flex2009 = { supportedProperty: function supportedProperty(prop, style, _ref) { var multiple = _ref.multiple; if (propKeys.indexOf(prop) > -1) { var newProp = propMap$1[prop]; if (!Array.isArray(newProp)) { return css_vendor_esm_prefix.js + pascalize(newProp) in style ? css_vendor_esm_prefix.css + newProp : false; } if (!multiple) return false; for (var i = 0; i < newProp.length; i++) { if (!(css_vendor_esm_prefix.js + pascalize(newProp[0]) in style)) { return false; } } return newProp.map(prefixCss); } return false; } }; // plugins = [ // ...plugins, // breakPropsOld, // inlineLogicalOld, // unprefixed, // prefixed, // scrollSnap, // flex2012, // flex2009 // ] // Plugins without 'noPrefill' value, going last. // 'flex-*' plugins should be at the bottom. // 'flex2009' going after 'flex2012'. // 'prefixed' going after 'unprefixed' var css_vendor_esm_plugins = [appearence, colorAdjust, mask, textOrientation, css_vendor_esm_transform, transition, writingMode, userSelect, breakPropsOld, inlineLogicalOld, unprefixed, prefixed, scrollSnap, overscrollBehavior, flex2012, flex2009]; var propertyDetectors = css_vendor_esm_plugins.filter(function (p) { return p.supportedProperty; }).map(function (p) { return p.supportedProperty; }); var noPrefill = css_vendor_esm_plugins.filter(function (p) { return p.noPrefill; }).reduce(function (a, p) { a.push.apply(a, Object(toConsumableArray["a" /* default */])(p.noPrefill)); return a; }, []); var el; var cache = {}; if (dist_module) { el = document.createElement('p'); // We test every property on vendor prefix requirement. // Once tested, result is cached. It gives us up to 70% perf boost. // http://jsperf.com/element-style-object-access-vs-plain-object // // Prefill cache with known css properties to reduce amount of // properties we need to feature test at runtime. // http://davidwalsh.name/vendor-prefix var computed = window.getComputedStyle(document.documentElement, ''); for (var key$1 in computed) { // eslint-disable-next-line no-restricted-globals if (!isNaN(key$1)) cache[computed[key$1]] = computed[key$1]; } // Properties that cannot be correctly detected using the // cache prefill method. noPrefill.forEach(function (x) { return delete cache[x]; }); } /** * Test if a property is supported, returns supported property with vendor * prefix if required. Returns `false` if not supported. * * @param {String} prop dash separated * @param {Object} [options] * @return {String|Boolean} * @api public */ function supportedProperty(prop, options) { if (options === void 0) { options = {}; } // For server-side rendering. if (!el) return prop; // Remove cache for benchmark tests or return property from the cache. if ( true && cache[prop] != null) { return cache[prop]; } // Check if 'transition' or 'transform' natively supported in browser. if (prop === 'transition' || prop === 'transform') { options[prop] = prop in el.style; } // Find a plugin for current prefix property. for (var i = 0; i < propertyDetectors.length; i++) { cache[prop] = propertyDetectors[i](prop, el.style, options); // Break loop, if value found. if (cache[prop]) break; } // Reset styles for current property. // Firefox can even throw an error for invalid properties, e.g., "0". try { el.style[prop] = ''; } catch (err) { return false; } return cache[prop]; } var cache$1 = {}; var transitionProperties = { transition: 1, 'transition-property': 1, '-webkit-transition': 1, '-webkit-transition-property': 1 }; var transPropsRegExp = /(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g; var el$1; /** * Returns prefixed value transition/transform if needed. * * @param {String} match * @param {String} p1 * @param {String} p2 * @return {String} * @api private */ function prefixTransitionCallback(match, p1, p2) { if (p1 === 'var') return 'var'; if (p1 === 'all') return 'all'; if (p2 === 'all') return ', all'; var prefixedValue = p1 ? supportedProperty(p1) : ", " + supportedProperty(p2); if (!prefixedValue) return p1 || p2; return prefixedValue; } if (dist_module) el$1 = document.createElement('p'); /** * Returns prefixed value if needed. Returns `false` if value is not supported. * * @param {String} property * @param {String} value * @return {String|Boolean} * @api public */ function supportedValue(property, value) { // For server-side rendering. var prefixedValue = value; if (!el$1 || property === 'content') return value; // It is a string or a number as a string like '1'. // We want only prefixable values here. // eslint-disable-next-line no-restricted-globals if (typeof prefixedValue !== 'string' || !isNaN(parseInt(prefixedValue, 10))) { return prefixedValue; } // Create cache key for current value. var cacheKey = property + prefixedValue; // Remove cache for benchmark tests or return value from cache. if ( true && cache$1[cacheKey] != null) { return cache$1[cacheKey]; } // IE can even throw an error in some cases, for e.g. style.content = 'bar'. try { // Test value as it is. el$1.style[property] = prefixedValue; } catch (err) { // Return false if value not supported. cache$1[cacheKey] = false; return false; } // If 'transition' or 'transition-property' property. if (transitionProperties[property]) { prefixedValue = prefixedValue.replace(transPropsRegExp, prefixTransitionCallback); } else if (el$1.style[property] === '') { // Value with a vendor prefix. prefixedValue = css_vendor_esm_prefix.css + prefixedValue; // Hardcode test to convert "flex" to "-ms-flexbox" for IE10. if (prefixedValue === '-ms-flex') el$1.style[property] = '-ms-flexbox'; // Test prefixed value. el$1.style[property] = prefixedValue; // Return false if value not supported. if (el$1.style[property] === '') { cache$1[cacheKey] = false; return false; } } // Reset styles for current property. el$1.style[property] = ''; // Write current value to cache. cache$1[cacheKey] = prefixedValue; return cache$1[cacheKey]; } // CONCATENATED MODULE: ./node_modules/jss-plugin-vendor-prefixer/dist/jss-plugin-vendor-prefixer.esm.js /** * Add vendor prefix to a property name when needed. */ function jssVendorPrefixer() { function onProcessRule(rule) { if (rule.type === 'keyframes') { var atRule = rule; atRule.at = supportedKeyframes(atRule.at); } } function prefixStyle(style) { for (var prop in style) { var value = style[prop]; if (prop === 'fallbacks' && Array.isArray(value)) { style[prop] = value.map(prefixStyle); continue; } var changeProp = false; var supportedProp = supportedProperty(prop); if (supportedProp && supportedProp !== prop) changeProp = true; var changeValue = false; var supportedValue$1 = supportedValue(supportedProp, toCssValue(value)); if (supportedValue$1 && supportedValue$1 !== value) changeValue = true; if (changeProp || changeValue) { if (changeProp) delete style[prop]; style[supportedProp || prop] = supportedValue$1 || value; } } return style; } function onProcessStyle(style, rule) { if (rule.type !== 'style') return style; return prefixStyle(style); } function onChangeValue(value, prop) { return supportedValue(prop, toCssValue(value)) || value; } return { onProcessRule: onProcessRule, onProcessStyle: onProcessStyle, onChangeValue: onChangeValue }; } /* harmony default export */ var jss_plugin_vendor_prefixer_esm = (jssVendorPrefixer); // CONCATENATED MODULE: ./node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.esm.js /** * Sort props by length. */ function jssPropsSort() { var sort = function sort(prop0, prop1) { if (prop0.length === prop1.length) { return prop0 > prop1 ? 1 : -1; } return prop0.length - prop1.length; }; return { onProcessStyle: function onProcessStyle(style, rule) { if (rule.type !== 'style') return style; var newStyle = {}; var props = Object.keys(style).sort(sort); for (var i = 0; i < props.length; i++) { newStyle[props[i]] = style[props[i]]; } return newStyle; } }; } /* harmony default export */ var jss_plugin_props_sort_esm = (jssPropsSort); // CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/jssPreset/jssPreset.js // Subset of jss-preset-default with only the plugins the Material-UI components are using. function jssPreset() { return { plugins: [jss_plugin_rule_value_function_esm(), jss_plugin_global_esm(), jss_plugin_nested_esm(), jss_plugin_camel_case_esm(), jss_plugin_default_unit_esm(), // Disable the vendor prefixer server-side, it does nothing. // This way, we can get a performance boost. // In the documentation, we are using `autoprefixer` to solve this problem. typeof window === 'undefined' ? null : jss_plugin_vendor_prefixer_esm(), jss_plugin_props_sort_esm()] }; } // CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js // Default JSS instance. var StylesProvider_jss = createJss(jssPreset()); // Use a singleton or the provided one by the context. // // The counter-based approach doesn't tolerate any mistake. // It's much safer to use the same counter everywhere. var generateClassName = createGenerateClassName(); // Exported for test purposes var sheetsManager = new Map(); var defaultOptions = { disableGeneration: false, generateClassName: generateClassName, jss: StylesProvider_jss, sheetsCache: null, sheetsManager: sheetsManager, sheetsRegistry: null }; var StylesContext = react_default.a.createContext(defaultOptions); if (false) {} var injectFirstNode; function StylesProvider(props) { var children = props.children, _props$injectFirst = props.injectFirst, injectFirst = _props$injectFirst === void 0 ? false : _props$injectFirst, _props$disableGenerat = props.disableGeneration, disableGeneration = _props$disableGenerat === void 0 ? false : _props$disableGenerat, localOptions = Object(objectWithoutProperties["a" /* default */])(props, ["children", "injectFirst", "disableGeneration"]); var outerOptions = react_default.a.useContext(StylesContext); var context = Object(esm_extends["a" /* default */])({}, outerOptions, { disableGeneration: disableGeneration }, localOptions); if (false) {} if (false) {} if (false) {} if (!context.jss.options.insertionPoint && injectFirst && typeof window !== 'undefined') { if (!injectFirstNode) { var head = document.head; injectFirstNode = document.createComment('mui-inject-first'); head.insertBefore(injectFirstNode, head.firstChild); } context.jss = createJss({ plugins: jssPreset().plugins, insertionPoint: injectFirstNode }); } return /*#__PURE__*/react_default.a.createElement(StylesContext.Provider, { value: context }, children); } false ? undefined : void 0; if (false) {} // CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/makeStyles/indexCounter.js /* eslint-disable import/prefer-default-export */ // Global index counter to preserve source order. // We create the style sheet during the creation of the component, // children are handled after the parents, so the order of style elements would be parent->child. // It is a problem though when a parent passes a className // which needs to override any child's styles. // StyleSheet of the child has a higher specificity, because of the source order. // So our solution is to render sheets them in the reverse order child->sheet, so // that parent has a higher specificity. var indexCounter = -1e9; function increment() { indexCounter += 1; if (false) {} return indexCounter; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js var esm_typeof = __webpack_require__(141); // CONCATENATED MODULE: ./node_modules/@material-ui/utils/esm/deepmerge.js function isPlainObject(item) { return item && Object(esm_typeof["a" /* default */])(item) === 'object' && item.constructor === Object; } function deepmerge(target, source) { var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : { clone: true }; var output = options.clone ? Object(esm_extends["a" /* default */])({}, target) : target; if (isPlainObject(target) && isPlainObject(source)) { Object.keys(source).forEach(function (key) { // Avoid prototype pollution if (key === '__proto__') { return; } if (isPlainObject(source[key]) && key in target) { output[key] = deepmerge(target[key], source[key], options); } else { output[key] = source[key]; } }); } return output; } // CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/getStylesCreator/getStylesCreator.js function getStylesCreator(stylesOrCreator) { var themingEnabled = typeof stylesOrCreator === 'function'; if (false) {} return { create: function create(theme, name) { var styles; try { styles = themingEnabled ? stylesOrCreator(theme) : stylesOrCreator; } catch (err) { if (false) {} throw err; } if (!name || !theme.overrides || !theme.overrides[name]) { return styles; } var overrides = theme.overrides[name]; var stylesWithOverrides = Object(esm_extends["a" /* default */])({}, styles); Object.keys(overrides).forEach(function (key) { if (false) {} stylesWithOverrides[key] = deepmerge(stylesWithOverrides[key], overrides[key]); }); return stylesWithOverrides; }, options: {} }; } // CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/getStylesCreator/noopTheme.js // We use the same empty object to ref count the styles that don't need a theme object. var noopTheme = {}; /* harmony default export */ var getStylesCreator_noopTheme = (noopTheme); // CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/makeStyles/makeStyles.js function getClasses(_ref, classes, Component) { var state = _ref.state, stylesOptions = _ref.stylesOptions; if (stylesOptions.disableGeneration) { return classes || {}; } if (!state.cacheClasses) { state.cacheClasses = { // Cache for the finalized classes value. value: null, // Cache for the last used classes prop pointer. lastProp: null, // Cache for the last used rendered classes pointer. lastJSS: {} }; } // Tracks if either the rendered classes or classes prop has changed, // requiring the generation of a new finalized classes object. var generate = false; if (state.classes !== state.cacheClasses.lastJSS) { state.cacheClasses.lastJSS = state.classes; generate = true; } if (classes !== state.cacheClasses.lastProp) { state.cacheClasses.lastProp = classes; generate = true; } if (generate) { state.cacheClasses.value = mergeClasses({ baseClasses: state.cacheClasses.lastJSS, newClasses: classes, Component: Component }); } return state.cacheClasses.value; } function attach(_ref2, props) { var state = _ref2.state, theme = _ref2.theme, stylesOptions = _ref2.stylesOptions, stylesCreator = _ref2.stylesCreator, name = _ref2.name; if (stylesOptions.disableGeneration) { return; } var sheetManager = makeStyles_multiKeyStore.get(stylesOptions.sheetsManager, stylesCreator, theme); if (!sheetManager) { sheetManager = { refs: 0, staticSheet: null, dynamicStyles: null }; makeStyles_multiKeyStore.set(stylesOptions.sheetsManager, stylesCreator, theme, sheetManager); } var options = Object(esm_extends["a" /* default */])({}, stylesCreator.options, stylesOptions, { theme: theme, flip: typeof stylesOptions.flip === 'boolean' ? stylesOptions.flip : theme.direction === 'rtl' }); options.generateId = options.serverGenerateClassName || options.generateClassName; var sheetsRegistry = stylesOptions.sheetsRegistry; if (sheetManager.refs === 0) { var staticSheet; if (stylesOptions.sheetsCache) { staticSheet = makeStyles_multiKeyStore.get(stylesOptions.sheetsCache, stylesCreator, theme); } var styles = stylesCreator.create(theme, name); if (!staticSheet) { staticSheet = stylesOptions.jss.createStyleSheet(styles, Object(esm_extends["a" /* default */])({ link: false }, options)); staticSheet.attach(); if (stylesOptions.sheetsCache) { makeStyles_multiKeyStore.set(stylesOptions.sheetsCache, stylesCreator, theme, staticSheet); } } if (sheetsRegistry) { sheetsRegistry.add(staticSheet); } sheetManager.staticSheet = staticSheet; sheetManager.dynamicStyles = getDynamicStyles(styles); } if (sheetManager.dynamicStyles) { var dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, Object(esm_extends["a" /* default */])({ link: true }, options)); dynamicSheet.update(props); dynamicSheet.attach(); state.dynamicSheet = dynamicSheet; state.classes = mergeClasses({ baseClasses: sheetManager.staticSheet.classes, newClasses: dynamicSheet.classes }); if (sheetsRegistry) { sheetsRegistry.add(dynamicSheet); } } else { state.classes = sheetManager.staticSheet.classes; } sheetManager.refs += 1; } function update(_ref3, props) { var state = _ref3.state; if (state.dynamicSheet) { state.dynamicSheet.update(props); } } function detach(_ref4) { var state = _ref4.state, theme = _ref4.theme, stylesOptions = _ref4.stylesOptions, stylesCreator = _ref4.stylesCreator; if (stylesOptions.disableGeneration) { return; } var sheetManager = makeStyles_multiKeyStore.get(stylesOptions.sheetsManager, stylesCreator, theme); sheetManager.refs -= 1; var sheetsRegistry = stylesOptions.sheetsRegistry; if (sheetManager.refs === 0) { makeStyles_multiKeyStore.delete(stylesOptions.sheetsManager, stylesCreator, theme); stylesOptions.jss.removeStyleSheet(sheetManager.staticSheet); if (sheetsRegistry) { sheetsRegistry.remove(sheetManager.staticSheet); } } if (state.dynamicSheet) { stylesOptions.jss.removeStyleSheet(state.dynamicSheet); if (sheetsRegistry) { sheetsRegistry.remove(state.dynamicSheet); } } } function useSynchronousEffect(func, values) { var key = react_default.a.useRef([]); var output; // Store "generation" key. Just returns a new object every time var currentKey = react_default.a.useMemo(function () { return {}; }, values); // eslint-disable-line react-hooks/exhaustive-deps // "the first render", or "memo dropped the value" if (key.current !== currentKey) { key.current = currentKey; output = func(); } react_default.a.useEffect(function () { return function () { if (output) { output(); } }; }, [currentKey] // eslint-disable-line react-hooks/exhaustive-deps ); } function makeStyles(stylesOrCreator) { var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var name = options.name, classNamePrefixOption = options.classNamePrefix, Component = options.Component, _options$defaultTheme = options.defaultTheme, defaultTheme = _options$defaultTheme === void 0 ? getStylesCreator_noopTheme : _options$defaultTheme, stylesOptions2 = Object(objectWithoutProperties["a" /* default */])(options, ["name", "classNamePrefix", "Component", "defaultTheme"]); var stylesCreator = getStylesCreator(stylesOrCreator); var classNamePrefix = name || classNamePrefixOption || 'makeStyles'; stylesCreator.options = { index: increment(), name: name, meta: classNamePrefix, classNamePrefix: classNamePrefix }; var useStyles = function useStyles() { var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var theme = Object(useTheme["a" /* default */])() || defaultTheme; var stylesOptions = Object(esm_extends["a" /* default */])({}, react_default.a.useContext(StylesContext), stylesOptions2); var instance = react_default.a.useRef(); var shouldUpdate = react_default.a.useRef(); useSynchronousEffect(function () { var current = { name: name, state: {}, stylesCreator: stylesCreator, stylesOptions: stylesOptions, theme: theme }; attach(current, props); shouldUpdate.current = false; instance.current = current; return function () { detach(current); }; }, [theme, stylesCreator]); react_default.a.useEffect(function () { if (shouldUpdate.current) { update(instance.current, props); } shouldUpdate.current = true; }); var classes = getClasses(instance.current, props.classes, Component); if (false) {} return classes; }; return useStyles; } // CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/getThemeProps/getThemeProps.js /* eslint-disable no-restricted-syntax */ function getThemeProps(params) { var theme = params.theme, name = params.name, props = params.props; if (!theme || !theme.props || !theme.props[name]) { return props; } // Resolve default props, code borrow from React source. // https://github.com/facebook/react/blob/15a8f031838a553e41c0b66eb1bcf1da8448104d/packages/react/src/ReactElement.js#L221 var defaultProps = theme.props[name]; var propName; for (propName in defaultProps) { if (props[propName] === undefined) { props[propName] = defaultProps[propName]; } } return props; } // CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/withStyles/withStyles.js // Link a style sheet with a component. // It does not modify the component passed to it; // instead, it returns a new component, with a `classes` property. var withStyles_withStyles = function withStyles(stylesOrCreator) { var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; return function (Component) { var defaultTheme = options.defaultTheme, _options$withTheme = options.withTheme, withTheme = _options$withTheme === void 0 ? false : _options$withTheme, name = options.name, stylesOptions = Object(objectWithoutProperties["a" /* default */])(options, ["defaultTheme", "withTheme", "name"]); if (false) {} var classNamePrefix = name; if (false) { var displayName; } var useStyles = makeStyles(stylesOrCreator, Object(esm_extends["a" /* default */])({ defaultTheme: defaultTheme, Component: Component, name: name || Component.displayName, classNamePrefix: classNamePrefix }, stylesOptions)); var WithStyles = /*#__PURE__*/react_default.a.forwardRef(function WithStyles(props, ref) { var classesProp = props.classes, innerRef = props.innerRef, other = Object(objectWithoutProperties["a" /* default */])(props, ["classes", "innerRef"]); // The wrapper receives only user supplied props, which could be a subset of // the actual props Component might receive due to merging with defaultProps. // So copying it here would give us the same result in the wrapper as well. var classes = useStyles(Object(esm_extends["a" /* default */])({}, Component.defaultProps, props)); var theme; var more = other; if (typeof name === 'string' || withTheme) { // name and withTheme are invariant in the outer scope // eslint-disable-next-line react-hooks/rules-of-hooks theme = Object(useTheme["a" /* default */])() || defaultTheme; if (name) { more = getThemeProps({ theme: theme, name: name, props: other }); } // Provide the theme to the wrapped component. // So we don't have to use the `withTheme()` Higher-order Component. if (withTheme && !more.theme) { more.theme = theme; } } return /*#__PURE__*/react_default.a.createElement(Component, Object(esm_extends["a" /* default */])({ ref: innerRef || ref, classes: classes }, more)); }); false ? undefined : void 0; if (false) {} hoist_non_react_statics_cjs_default()(WithStyles, Component); if (false) {} return WithStyles; }; }; /* harmony default export */ var esm_withStyles_withStyles = (withStyles_withStyles); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(200); // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/createBreakpoints.js // Sorted ASC by size. That's important. // It can't be configured as it's used statically for propTypes. var keys = ['xs', 'sm', 'md', 'lg', 'xl']; // Keep in mind that @media is inclusive by the CSS specification. function createBreakpoints(breakpoints) { var _breakpoints$values = breakpoints.values, values = _breakpoints$values === void 0 ? { xs: 0, sm: 600, md: 960, lg: 1280, xl: 1920 } : _breakpoints$values, _breakpoints$unit = breakpoints.unit, unit = _breakpoints$unit === void 0 ? 'px' : _breakpoints$unit, _breakpoints$step = breakpoints.step, step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, other = Object(objectWithoutProperties["a" /* default */])(breakpoints, ["values", "unit", "step"]); function up(key) { var value = typeof values[key] === 'number' ? values[key] : key; return "@media (min-width:".concat(value).concat(unit, ")"); } function down(key) { var endIndex = keys.indexOf(key) + 1; var upperbound = values[keys[endIndex]]; if (endIndex === keys.length) { // xl down applies to all sizes return up('xs'); } var value = typeof upperbound === 'number' && endIndex > 0 ? upperbound : key; return "@media (max-width:".concat(value - step / 100).concat(unit, ")"); } function between(start, end) { var endIndex = keys.indexOf(end); if (endIndex === keys.length - 1) { return up(start); } return "@media (min-width:".concat(typeof values[start] === 'number' ? values[start] : start).concat(unit, ") and ") + "(max-width:".concat((endIndex !== -1 && typeof values[keys[endIndex + 1]] === 'number' ? values[keys[endIndex + 1]] : end) - step / 100).concat(unit, ")"); } function only(key) { return between(key, key); } function width(key) { return values[key]; } return Object(esm_extends["a" /* default */])({ keys: keys, values: values, up: up, down: down, between: between, only: only, width: width }, other); } // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/createMixins.js function createMixins(breakpoints, spacing, mixins) { var _toolbar; return Object(esm_extends["a" /* default */])({ gutters: function gutters() { var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; // To deprecate in v4.1 // warning( // false, // [ // 'Material-UI: Theme.mixins.gutters() is deprecated.', // 'You can use the source of the mixin directly:', // ` // paddingLeft: theme.spacing(2), // paddingRight: theme.spacing(2), // [theme.breakpoints.up('sm')]: { // paddingLeft: theme.spacing(3), // paddingRight: theme.spacing(3), // }, // `, // ].join('\n'), // ); return Object(esm_extends["a" /* default */])(Object(esm_extends["a" /* default */])({ paddingLeft: spacing(2), paddingRight: spacing(2) }, styles), {}, Object(defineProperty["a" /* default */])({}, breakpoints.up('sm'), Object(esm_extends["a" /* default */])({ paddingLeft: spacing(3), paddingRight: spacing(3) }, styles[breakpoints.up('sm')]))); }, toolbar: (_toolbar = { minHeight: 56 }, Object(defineProperty["a" /* default */])(_toolbar, "".concat(breakpoints.up('xs'), " and (orientation: landscape)"), { minHeight: 48 }), Object(defineProperty["a" /* default */])(_toolbar, breakpoints.up('sm'), { minHeight: 64 }), _toolbar) }, mixins); } // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/colors/common.js var common = { black: '#000', white: '#fff' }; /* harmony default export */ var colors_common = (common); // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/colors/grey.js var grey = { 50: '#fafafa', 100: '#f5f5f5', 200: '#eeeeee', 300: '#e0e0e0', 400: '#bdbdbd', 500: '#9e9e9e', 600: '#757575', 700: '#616161', 800: '#424242', 900: '#212121', A100: '#d5d5d5', A200: '#aaaaaa', A400: '#303030', A700: '#616161' }; /* harmony default export */ var colors_grey = (grey); // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/colors/indigo.js var indigo = { 50: '#e8eaf6', 100: '#c5cae9', 200: '#9fa8da', 300: '#7986cb', 400: '#5c6bc0', 500: '#3f51b5', 600: '#3949ab', 700: '#303f9f', 800: '#283593', 900: '#1a237e', A100: '#8c9eff', A200: '#536dfe', A400: '#3d5afe', A700: '#304ffe' }; /* harmony default export */ var colors_indigo = (indigo); // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/colors/pink.js var pink = { 50: '#fce4ec', 100: '#f8bbd0', 200: '#f48fb1', 300: '#f06292', 400: '#ec407a', 500: '#e91e63', 600: '#d81b60', 700: '#c2185b', 800: '#ad1457', 900: '#880e4f', A100: '#ff80ab', A200: '#ff4081', A400: '#f50057', A700: '#c51162' }; /* harmony default export */ var colors_pink = (pink); // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/colors/red.js var red = { 50: '#ffebee', 100: '#ffcdd2', 200: '#ef9a9a', 300: '#e57373', 400: '#ef5350', 500: '#f44336', 600: '#e53935', 700: '#d32f2f', 800: '#c62828', 900: '#b71c1c', A100: '#ff8a80', A200: '#ff5252', A400: '#ff1744', A700: '#d50000' }; /* harmony default export */ var colors_red = (red); // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/colors/orange.js var orange = { 50: '#fff3e0', 100: '#ffe0b2', 200: '#ffcc80', 300: '#ffb74d', 400: '#ffa726', 500: '#ff9800', 600: '#fb8c00', 700: '#f57c00', 800: '#ef6c00', 900: '#e65100', A100: '#ffd180', A200: '#ffab40', A400: '#ff9100', A700: '#ff6d00' }; /* harmony default export */ var colors_orange = (orange); // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/colors/blue.js var blue = { 50: '#e3f2fd', 100: '#bbdefb', 200: '#90caf9', 300: '#64b5f6', 400: '#42a5f5', 500: '#2196f3', 600: '#1e88e5', 700: '#1976d2', 800: '#1565c0', 900: '#0d47a1', A100: '#82b1ff', A200: '#448aff', A400: '#2979ff', A700: '#2962ff' }; /* harmony default export */ var colors_blue = (blue); // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/colors/green.js var green = { 50: '#e8f5e9', 100: '#c8e6c9', 200: '#a5d6a7', 300: '#81c784', 400: '#66bb6a', 500: '#4caf50', 600: '#43a047', 700: '#388e3c', 800: '#2e7d32', 900: '#1b5e20', A100: '#b9f6ca', A200: '#69f0ae', A400: '#00e676', A700: '#00c853' }; /* harmony default export */ var colors_green = (green); // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/styles/colorManipulator.js var colorManipulator = __webpack_require__(120); // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/createPalette.js var light = { // The colors used to style the text. text: { // The most important text. primary: 'rgba(0, 0, 0, 0.87)', // Secondary text. secondary: 'rgba(0, 0, 0, 0.54)', // Disabled text have even lower visual prominence. disabled: 'rgba(0, 0, 0, 0.38)', // Text hints. hint: 'rgba(0, 0, 0, 0.38)' }, // The color used to divide different elements. divider: 'rgba(0, 0, 0, 0.12)', // The background colors used to style the surfaces. // Consistency between these values is important. background: { paper: colors_common.white, default: colors_grey[50] }, // The colors used to style the action elements. action: { // The color of an active action like an icon button. active: 'rgba(0, 0, 0, 0.54)', // The color of an hovered action. hover: 'rgba(0, 0, 0, 0.04)', hoverOpacity: 0.04, // The color of a selected action. selected: 'rgba(0, 0, 0, 0.08)', selectedOpacity: 0.08, // The color of a disabled action. disabled: 'rgba(0, 0, 0, 0.26)', // The background color of a disabled action. disabledBackground: 'rgba(0, 0, 0, 0.12)', disabledOpacity: 0.38, focus: 'rgba(0, 0, 0, 0.12)', focusOpacity: 0.12, activatedOpacity: 0.12 } }; var dark = { text: { primary: colors_common.white, secondary: 'rgba(255, 255, 255, 0.7)', disabled: 'rgba(255, 255, 255, 0.5)', hint: 'rgba(255, 255, 255, 0.5)', icon: 'rgba(255, 255, 255, 0.5)' }, divider: 'rgba(255, 255, 255, 0.12)', background: { paper: colors_grey[800], default: '#303030' }, action: { active: colors_common.white, hover: 'rgba(255, 255, 255, 0.08)', hoverOpacity: 0.08, selected: 'rgba(255, 255, 255, 0.16)', selectedOpacity: 0.16, disabled: 'rgba(255, 255, 255, 0.3)', disabledBackground: 'rgba(255, 255, 255, 0.12)', disabledOpacity: 0.38, focus: 'rgba(255, 255, 255, 0.12)', focusOpacity: 0.12, activatedOpacity: 0.24 } }; function addLightOrDark(intent, direction, shade, tonalOffset) { var tonalOffsetLight = tonalOffset.light || tonalOffset; var tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5; if (!intent[direction]) { if (intent.hasOwnProperty(shade)) { intent[direction] = intent[shade]; } else if (direction === 'light') { intent.light = Object(colorManipulator["d" /* lighten */])(intent.main, tonalOffsetLight); } else if (direction === 'dark') { intent.dark = Object(colorManipulator["a" /* darken */])(intent.main, tonalOffsetDark); } } } function createPalette(palette) { var _palette$primary = palette.primary, primary = _palette$primary === void 0 ? { light: colors_indigo[300], main: colors_indigo[500], dark: colors_indigo[700] } : _palette$primary, _palette$secondary = palette.secondary, secondary = _palette$secondary === void 0 ? { light: colors_pink.A200, main: colors_pink.A400, dark: colors_pink.A700 } : _palette$secondary, _palette$error = palette.error, error = _palette$error === void 0 ? { light: colors_red[300], main: colors_red[500], dark: colors_red[700] } : _palette$error, _palette$warning = palette.warning, warning = _palette$warning === void 0 ? { light: colors_orange[300], main: colors_orange[500], dark: colors_orange[700] } : _palette$warning, _palette$info = palette.info, info = _palette$info === void 0 ? { light: colors_blue[300], main: colors_blue[500], dark: colors_blue[700] } : _palette$info, _palette$success = palette.success, success = _palette$success === void 0 ? { light: colors_green[300], main: colors_green[500], dark: colors_green[700] } : _palette$success, _palette$type = palette.type, type = _palette$type === void 0 ? 'light' : _palette$type, _palette$contrastThre = palette.contrastThreshold, contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, _palette$tonalOffset = palette.tonalOffset, tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, other = Object(objectWithoutProperties["a" /* default */])(palette, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]); // Use the same logic as // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59 // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54 function getContrastText(background) { var contrastText = Object(colorManipulator["c" /* getContrastRatio */])(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary; if (false) { var contrast; } return contrastText; } var augmentColor = function augmentColor(color) { var mainShade = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500; var lightShade = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 300; var darkShade = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 700; color = Object(esm_extends["a" /* default */])({}, color); if (!color.main && color[mainShade]) { color.main = color[mainShade]; } if (!color.main) { throw new Error(['Material-UI: The color provided to augmentColor(color) is invalid.', "The color object needs to have a `main` property or a `".concat(mainShade, "` property.")].join('\n')); } if (typeof color.main !== 'string') { throw new Error(['Material-UI: The color provided to augmentColor(color) is invalid.', "`color.main` should be a string, but `".concat(JSON.stringify(color.main), "` was provided instead."), '', 'Did you intend to use one of the following approaches?', '', 'import { green } from "@material-ui/core/colors";', '', 'const theme1 = createMuiTheme({ palette: {', ' primary: green,', '} });', '', 'const theme2 = createMuiTheme({ palette: {', ' primary: { main: green[500] },', '} });'].join('\n')); } addLightOrDark(color, 'light', lightShade, tonalOffset); addLightOrDark(color, 'dark', darkShade, tonalOffset); if (!color.contrastText) { color.contrastText = getContrastText(color.main); } return color; }; var types = { dark: dark, light: light }; if (false) {} var paletteOutput = deepmerge(Object(esm_extends["a" /* default */])({ // A collection of common colors. common: colors_common, // The palette type, can be light or dark. type: type, // The colors used to represent primary interface elements for a user. primary: augmentColor(primary), // The colors used to represent secondary interface elements for a user. secondary: augmentColor(secondary, 'A400', 'A200', 'A700'), // The colors used to represent interface elements that the user should be made aware of. error: augmentColor(error), // The colors used to represent potentially dangerous actions or important messages. warning: augmentColor(warning), // The colors used to present information to the user that is neutral and not necessarily important. info: augmentColor(info), // The colors used to indicate the successful completion of an action that user triggered. success: augmentColor(success), // The grey colors. grey: colors_grey, // Used by `getContrastText()` to maximize the contrast between // the background and the text. contrastThreshold: contrastThreshold, // Takes a background color and returns the text color that maximizes the contrast. getContrastText: getContrastText, // Generate a rich color object. augmentColor: augmentColor, // Used by the functions below to shift a color's luminance by approximately // two indexes within its tonal palette. // E.g., shift from Red 500 to Red 300 or Red 700. tonalOffset: tonalOffset }, types[type]), other); return paletteOutput; } // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/createTypography.js function round(value) { return Math.round(value * 1e5) / 1e5; } var caseAllCaps = { textTransform: 'uppercase' }; var defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif'; /** * @see @link{https://material.io/design/typography/the-type-system.html} * @see @link{https://material.io/design/typography/understanding-typography.html} */ function createTypography(palette, typography) { var _ref = typeof typography === 'function' ? typography(palette) : typography, _ref$fontFamily = _ref.fontFamily, fontFamily = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, _ref$fontSize = _ref.fontSize, fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize, _ref$fontWeightLight = _ref.fontWeightLight, fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, _ref$fontWeightRegula = _ref.fontWeightRegular, fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, _ref$fontWeightMedium = _ref.fontWeightMedium, fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, _ref$fontWeightBold = _ref.fontWeightBold, fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, _ref$htmlFontSize = _ref.htmlFontSize, htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, allVariants = _ref.allVariants, pxToRem2 = _ref.pxToRem, other = Object(objectWithoutProperties["a" /* default */])(_ref, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]); if (false) {} var coef = fontSize / 14; var pxToRem = pxToRem2 || function (size) { return "".concat(size / htmlFontSize * coef, "rem"); }; var buildVariant = function buildVariant(fontWeight, size, lineHeight, letterSpacing, casing) { return Object(esm_extends["a" /* default */])(Object(esm_extends["a" /* default */])(Object(esm_extends["a" /* default */])({ fontFamily: fontFamily, fontWeight: fontWeight, fontSize: pxToRem(size), // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/ lineHeight: lineHeight }, fontFamily === defaultFontFamily ? { letterSpacing: "".concat(round(letterSpacing / size), "em") } : {}), casing), allVariants); }; var variants = { h1: buildVariant(fontWeightLight, 96, 1.167, -1.5), h2: buildVariant(fontWeightLight, 60, 1.2, -0.5), h3: buildVariant(fontWeightRegular, 48, 1.167, 0), h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25), h5: buildVariant(fontWeightRegular, 24, 1.334, 0), h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15), subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15), subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1), body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15), body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15), button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps), caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4), overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps) }; return deepmerge(Object(esm_extends["a" /* default */])({ htmlFontSize: htmlFontSize, pxToRem: pxToRem, round: round, // TODO v5: remove fontFamily: fontFamily, fontSize: fontSize, fontWeightLight: fontWeightLight, fontWeightRegular: fontWeightRegular, fontWeightMedium: fontWeightMedium, fontWeightBold: fontWeightBold }, variants), other, { clone: false // No need to clone deep }); } // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/shadows.js var shadowKeyUmbraOpacity = 0.2; var shadowKeyPenumbraOpacity = 0.14; var shadowAmbientShadowOpacity = 0.12; function createShadow() { return ["".concat(arguments.length <= 0 ? undefined : arguments[0], "px ").concat(arguments.length <= 1 ? undefined : arguments[1], "px ").concat(arguments.length <= 2 ? undefined : arguments[2], "px ").concat(arguments.length <= 3 ? undefined : arguments[3], "px rgba(0,0,0,").concat(shadowKeyUmbraOpacity, ")"), "".concat(arguments.length <= 4 ? undefined : arguments[4], "px ").concat(arguments.length <= 5 ? undefined : arguments[5], "px ").concat(arguments.length <= 6 ? undefined : arguments[6], "px ").concat(arguments.length <= 7 ? undefined : arguments[7], "px rgba(0,0,0,").concat(shadowKeyPenumbraOpacity, ")"), "".concat(arguments.length <= 8 ? undefined : arguments[8], "px ").concat(arguments.length <= 9 ? undefined : arguments[9], "px ").concat(arguments.length <= 10 ? undefined : arguments[10], "px ").concat(arguments.length <= 11 ? undefined : arguments[11], "px rgba(0,0,0,").concat(shadowAmbientShadowOpacity, ")")].join(','); } // Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss var shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)]; /* harmony default export */ var styles_shadows = (shadows); // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/shape.js var shape = { borderRadius: 4 }; /* harmony default export */ var styles_shape = (shape); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js var unsupportedIterableToArray = __webpack_require__(371); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || Object(unsupportedIterableToArray["a" /* default */])(arr, i) || _nonIterableRest(); } // CONCATENATED MODULE: ./node_modules/@material-ui/system/esm/merge.js function merge(acc, item) { if (!item) { return acc; } return deepmerge(acc, item, { clone: false // No need to clone deep, it's way faster. }); } /* harmony default export */ var esm_merge = (merge); // CONCATENATED MODULE: ./node_modules/@material-ui/system/esm/breakpoints.js // The breakpoint **start** at this value. // For instance with the first breakpoint xs: [xs, sm[. var breakpoints_values = { xs: 0, sm: 600, md: 960, lg: 1280, xl: 1920 }; var defaultBreakpoints = { // Sorted ASC by size. That's important. // It can't be configured as it's used statically for propTypes. keys: ['xs', 'sm', 'md', 'lg', 'xl'], up: function up(key) { return "@media (min-width:".concat(breakpoints_values[key], "px)"); } }; function handleBreakpoints(props, propValue, styleFromPropValue) { if (false) {} if (Array.isArray(propValue)) { var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints; return propValue.reduce(function (acc, item, index) { acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]); return acc; }, {}); } if (Object(esm_typeof["a" /* default */])(propValue) === 'object') { var _themeBreakpoints = props.theme.breakpoints || defaultBreakpoints; return Object.keys(propValue).reduce(function (acc, breakpoint) { acc[_themeBreakpoints.up(breakpoint)] = styleFromPropValue(propValue[breakpoint]); return acc; }, {}); } var output = styleFromPropValue(propValue); return output; } function breakpoints_breakpoints(styleFunction) { var newStyleFunction = function newStyleFunction(props) { var base = styleFunction(props); var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints; var extended = themeBreakpoints.keys.reduce(function (acc, key) { if (props[key]) { acc = acc || {}; acc[themeBreakpoints.up(key)] = styleFunction(Object(esm_extends["a" /* default */])({ theme: props.theme }, props[key])); } return acc; }, null); return esm_merge(base, extended); }; newStyleFunction.propTypes = false ? undefined : {}; newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl'].concat(Object(toConsumableArray["a" /* default */])(styleFunction.filterProps)); return newStyleFunction; } /* harmony default export */ var esm_breakpoints = (breakpoints_breakpoints); // CONCATENATED MODULE: ./node_modules/@material-ui/system/esm/memoize.js function memoize_memoize(fn) { var cache = {}; return function (arg) { if (cache[arg] === undefined) { cache[arg] = fn(arg); } return cache[arg]; }; } // CONCATENATED MODULE: ./node_modules/@material-ui/system/esm/spacing.js var properties = { m: 'margin', p: 'padding' }; var directions = { t: 'Top', r: 'Right', b: 'Bottom', l: 'Left', x: ['Left', 'Right'], y: ['Top', 'Bottom'] }; var aliases = { marginX: 'mx', marginY: 'my', paddingX: 'px', paddingY: 'py' }; // memoize() impact: // From 300,000 ops/sec // To 350,000 ops/sec var getCssProperties = memoize_memoize(function (prop) { // It's not a shorthand notation. if (prop.length > 2) { if (aliases[prop]) { prop = aliases[prop]; } else { return [prop]; } } var _prop$split = prop.split(''), _prop$split2 = _slicedToArray(_prop$split, 2), a = _prop$split2[0], b = _prop$split2[1]; var property = properties[a]; var direction = directions[b] || ''; return Array.isArray(direction) ? direction.map(function (dir) { return property + dir; }) : [property + direction]; }); var spacingKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY']; function createUnarySpacing(theme) { var themeSpacing = theme.spacing || 8; if (typeof themeSpacing === 'number') { return function (abs) { if (false) {} return themeSpacing * abs; }; } if (Array.isArray(themeSpacing)) { return function (abs) { if (false) {} return themeSpacing[abs]; }; } if (typeof themeSpacing === 'function') { return themeSpacing; } if (false) {} return function () { return undefined; }; } function getValue(transformer, propValue) { if (typeof propValue === 'string' || propValue == null) { return propValue; } var abs = Math.abs(propValue); var transformed = transformer(abs); if (propValue >= 0) { return transformed; } if (typeof transformed === 'number') { return -transformed; } return "-".concat(transformed); } function getStyleFromPropValue(cssProperties, transformer) { return function (propValue) { return cssProperties.reduce(function (acc, cssProperty) { acc[cssProperty] = getValue(transformer, propValue); return acc; }, {}); }; } function spacing_spacing(props) { var theme = props.theme; var transformer = createUnarySpacing(theme); return Object.keys(props).map(function (prop) { // Using a hash computation over an array iteration could be faster, but with only 28 items, // it's doesn't worth the bundle size. if (spacingKeys.indexOf(prop) === -1) { return null; } var cssProperties = getCssProperties(prop); var styleFromPropValue = getStyleFromPropValue(cssProperties, transformer); var propValue = props[prop]; return handleBreakpoints(props, propValue, styleFromPropValue); }).reduce(esm_merge, {}); } spacing_spacing.propTypes = false ? undefined : {}; spacing_spacing.filterProps = spacingKeys; /* harmony default export */ var esm_spacing = (spacing_spacing); // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/createSpacing.js var warnOnce; function createSpacing() { var spacingInput = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 8; // Already transformed. if (spacingInput.mui) { return spacingInput; } // Material Design layouts are visually balanced. Most measurements align to an 8dp grid applied, which aligns both spacing and the overall layout. // Smaller components, such as icons and type, can align to a 4dp grid. // https://material.io/design/layout/understanding-layout.html#usage var transform = createUnarySpacing({ spacing: spacingInput }); var spacing = function spacing() { for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } if (false) {} if (args.length === 0) { return transform(1); } if (args.length === 1) { return transform(args[0]); } return args.map(function (argument) { if (typeof argument === 'string') { return argument; } var output = transform(argument); return typeof output === 'number' ? "".concat(output, "px") : output; }).join(' '); }; // Backward compatibility, to remove in v5. Object.defineProperty(spacing, 'unit', { get: function get() { if (false) {} return spacingInput; } }); spacing.mui = true; return spacing; } // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/transitions.js // Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves // to learn the context in which each easing should be used. var easing = { // This is the most common easing curve. easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)', // Objects enter the screen at full velocity from off-screen and // slowly decelerate to a resting point. easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)', // Objects leave the screen at full velocity. They do not decelerate when off-screen. easeIn: 'cubic-bezier(0.4, 0, 1, 1)', // The sharp curve is used by objects that may return to the screen at any time. sharp: 'cubic-bezier(0.4, 0, 0.6, 1)' }; // Follow https://material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations // to learn when use what timing var duration = { shortest: 150, shorter: 200, short: 250, // most basic recommended timing standard: 300, // this is to be used in complex animations complex: 375, // recommended when something is entering screen enteringScreen: 225, // recommended when something is leaving screen leavingScreen: 195 }; function formatMs(milliseconds) { return "".concat(Math.round(milliseconds), "ms"); } /** * @param {string|Array} props * @param {object} param * @param {string} param.prop * @param {number} param.duration * @param {string} param.easing * @param {number} param.delay */ /* harmony default export */ var transitions = ({ easing: easing, duration: duration, create: function create() { var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['all']; var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var _options$duration = options.duration, durationOption = _options$duration === void 0 ? duration.standard : _options$duration, _options$easing = options.easing, easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, _options$delay = options.delay, delay = _options$delay === void 0 ? 0 : _options$delay, other = Object(objectWithoutProperties["a" /* default */])(options, ["duration", "easing", "delay"]); if (false) { var isNumber, isString; } return (Array.isArray(props) ? props : [props]).map(function (animatedProp) { return "".concat(animatedProp, " ").concat(typeof durationOption === 'string' ? durationOption : formatMs(durationOption), " ").concat(easingOption, " ").concat(typeof delay === 'string' ? delay : formatMs(delay)); }).join(','); }, getAutoHeightDuration: function getAutoHeightDuration(height) { if (!height) { return 0; } var constant = height / 36; // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10 return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10); } }); // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/zIndex.js // We need to centralize the zIndex definitions as they work // like global values in the browser. var zIndex = { mobileStepper: 1000, speedDial: 1050, appBar: 1100, drawer: 1200, modal: 1300, snackbar: 1400, tooltip: 1500 }; /* harmony default export */ var styles_zIndex = (zIndex); // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/createMuiTheme.js function createMuiTheme() { var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var _options$breakpoints = options.breakpoints, breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, _options$mixins = options.mixins, mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, _options$palette = options.palette, paletteInput = _options$palette === void 0 ? {} : _options$palette, spacingInput = options.spacing, _options$typography = options.typography, typographyInput = _options$typography === void 0 ? {} : _options$typography, other = Object(objectWithoutProperties["a" /* default */])(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]); var palette = createPalette(paletteInput); var breakpoints = createBreakpoints(breakpointsInput); var spacing = createSpacing(spacingInput); var muiTheme = deepmerge({ breakpoints: breakpoints, direction: 'ltr', mixins: createMixins(breakpoints, spacing, mixinsInput), overrides: {}, // Inject custom styles palette: palette, props: {}, // Provide default props shadows: styles_shadows, typography: createTypography(palette, typographyInput), spacing: spacing, shape: styles_shape, transitions: transitions, zIndex: styles_zIndex }, other); for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } muiTheme = args.reduce(function (acc, argument) { return deepmerge(acc, argument); }, muiTheme); if (false) { var traverse, pseudoClasses; } return muiTheme; } /* harmony default export */ var styles_createMuiTheme = (createMuiTheme); // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/defaultTheme.js var defaultTheme_defaultTheme = styles_createMuiTheme(); /* harmony default export */ var styles_defaultTheme = (defaultTheme_defaultTheme); // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/withStyles.js function styles_withStyles_withStyles(stylesOrCreator, options) { return esm_withStyles_withStyles(stylesOrCreator, Object(esm_extends["a" /* default */])({ defaultTheme: styles_defaultTheme }, options)); } /* harmony default export */ var styles_withStyles = __webpack_exports__["a"] = (styles_withStyles_withStyles); /***/ }), /* 79 */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(582); /***/ }), /* 80 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71); /** Built-in value references. */ var Symbol = _root_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].Symbol; /* harmony default export */ __webpack_exports__["a"] = (Symbol); /***/ }), /* 81 */ /***/ (function(module, exports, __webpack_require__) { var bind = __webpack_require__(162); var IndexedObject = __webpack_require__(255); var toObject = __webpack_require__(64); var toLength = __webpack_require__(53); var arraySpeciesCreate = __webpack_require__(263); var push = [].push; // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation var createMethod = function (TYPE) { var IS_MAP = TYPE == 1; var IS_FILTER = TYPE == 2; var IS_SOME = TYPE == 3; var IS_EVERY = TYPE == 4; var IS_FIND_INDEX = TYPE == 6; var IS_FILTER_OUT = TYPE == 7; var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; return function ($this, callbackfn, that, specificCreate) { var O = toObject($this); var self = IndexedObject(O); var boundFunction = bind(callbackfn, that, 3); var length = toLength(self.length); var index = 0; var create = specificCreate || arraySpeciesCreate; var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined; var value, result; for (;length > index; index++) if (NO_HOLES || index in self) { value = self[index]; result = boundFunction(value, index, O); if (TYPE) { if (IS_MAP) target[index] = result; // map else if (result) switch (TYPE) { case 3: return true; // some case 5: return value; // find case 6: return index; // findIndex case 2: push.call(target, value); // filter } else switch (TYPE) { case 4: return false; // every case 7: push.call(target, value); // filterOut } } } return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; }; }; module.exports = { // `Array.prototype.forEach` method // https://tc39.es/ecma262/#sec-array.prototype.foreach forEach: createMethod(0), // `Array.prototype.map` method // https://tc39.es/ecma262/#sec-array.prototype.map map: createMethod(1), // `Array.prototype.filter` method // https://tc39.es/ecma262/#sec-array.prototype.filter filter: createMethod(2), // `Array.prototype.some` method // https://tc39.es/ecma262/#sec-array.prototype.some some: createMethod(3), // `Array.prototype.every` method // https://tc39.es/ecma262/#sec-array.prototype.every every: createMethod(4), // `Array.prototype.find` method // https://tc39.es/ecma262/#sec-array.prototype.find find: createMethod(5), // `Array.prototype.findIndex` method // https://tc39.es/ecma262/#sec-array.prototype.findIndex findIndex: createMethod(6), // `Array.prototype.filterOut` method // https://github.com/tc39/proposal-array-filtering filterOut: createMethod(7) }; /***/ }), /* 82 */ /***/ (function(module, exports, __webpack_require__) { var baseConvert = __webpack_require__(609), util = __webpack_require__(1244); /** * Converts `func` of `name` to an immutable auto-curried iteratee-first data-last * version with conversion `options` applied. If `name` is an object its methods * will be converted. * * @param {string} name The name of the function to wrap. * @param {Function} [func] The function to wrap. * @param {Object} [options] The options object. See `baseConvert` for more details. * @returns {Function|Object} Returns the converted function or object. */ function convert(name, func, options) { return baseConvert(util, name, func, options); } module.exports = convert; /***/ }), /* 83 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.routerMiddleware = exports.routerActions = exports.goForward = exports.goBack = exports.go = exports.replace = exports.push = exports.CALL_HISTORY_METHOD = exports.routerReducer = exports.LOCATION_CHANGE = exports.syncHistoryWithStore = undefined; var _reducer = __webpack_require__(564); Object.defineProperty(exports, 'LOCATION_CHANGE', { enumerable: true, get: function get() { return _reducer.LOCATION_CHANGE; } }); Object.defineProperty(exports, 'routerReducer', { enumerable: true, get: function get() { return _reducer.routerReducer; } }); var _actions = __webpack_require__(565); Object.defineProperty(exports, 'CALL_HISTORY_METHOD', { enumerable: true, get: function get() { return _actions.CALL_HISTORY_METHOD; } }); Object.defineProperty(exports, 'push', { enumerable: true, get: function get() { return _actions.push; } }); Object.defineProperty(exports, 'replace', { enumerable: true, get: function get() { return _actions.replace; } }); Object.defineProperty(exports, 'go', { enumerable: true, get: function get() { return _actions.go; } }); Object.defineProperty(exports, 'goBack', { enumerable: true, get: function get() { return _actions.goBack; } }); Object.defineProperty(exports, 'goForward', { enumerable: true, get: function get() { return _actions.goForward; } }); Object.defineProperty(exports, 'routerActions', { enumerable: true, get: function get() { return _actions.routerActions; } }); var _sync = __webpack_require__(1136); var _sync2 = _interopRequireDefault(_sync); var _middleware = __webpack_require__(1137); var _middleware2 = _interopRequireDefault(_middleware); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports.syncHistoryWithStore = _sync2['default']; exports.routerMiddleware = _middleware2['default']; /***/ }), /* 84 */ /***/ (function(module, exports, __webpack_require__) { var convert = __webpack_require__(82), func = convert('get', __webpack_require__(6)); func.placeholder = __webpack_require__(74); module.exports = func; /***/ }), /* 85 */ /***/ (function(module, exports, __webpack_require__) { var DESCRIPTORS = __webpack_require__(49); var propertyIsEnumerableModule = __webpack_require__(300); var createPropertyDescriptor = __webpack_require__(145); var toIndexedObject = __webpack_require__(104); var toPrimitive = __webpack_require__(121); var has = __webpack_require__(67); var IE8_DOM_DEFINE = __webpack_require__(518); var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; // `Object.getOwnPropertyDescriptor` method // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor exports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { O = toIndexedObject(O); P = toPrimitive(P, true); if (IE8_DOM_DEFINE) try { return nativeGetOwnPropertyDescriptor(O, P); } catch (error) { /* empty */ } if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]); }; /***/ }), /* 86 */ /***/ (function(module, exports) { // `RequireObjectCoercible` abstract operation // https://tc39.es/ecma262/#sec-requireobjectcoercible module.exports = function (it) { if (it == undefined) throw TypeError("Can't call method on " + it); return it; }; /***/ }), /* 87 */ /***/ (function(module, exports, __webpack_require__) { var DESCRIPTORS = __webpack_require__(49); var definePropertyModule = __webpack_require__(57); var createPropertyDescriptor = __webpack_require__(145); module.exports = DESCRIPTORS ? function (object, key, value) { return definePropertyModule.f(object, key, createPropertyDescriptor(1, value)); } : function (object, key, value) { object[key] = value; return object; }; /***/ }), /* 88 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(34); var createNonEnumerableProperty = __webpack_require__(87); var has = __webpack_require__(67); var setGlobal = __webpack_require__(390); var inspectSource = __webpack_require__(391); var InternalStateModule = __webpack_require__(90); var getInternalState = InternalStateModule.get; var enforceInternalState = InternalStateModule.enforce; var TEMPLATE = String(String).split('String'); (module.exports = function (O, key, value, options) { var unsafe = options ? !!options.unsafe : false; var simple = options ? !!options.enumerable : false; var noTargetGet = options ? !!options.noTargetGet : false; var state; if (typeof value == 'function') { if (typeof key == 'string' && !has(value, 'name')) { createNonEnumerableProperty(value, 'name', key); } state = enforceInternalState(value); if (!state.source) { state.source = TEMPLATE.join(typeof key == 'string' ? key : ''); } } if (O === global) { if (simple) O[key] = value; else setGlobal(key, value); return; } else if (!unsafe) { delete O[key]; } else if (!noTargetGet && O[key]) { simple = true; } if (simple) O[key] = value; else createNonEnumerableProperty(O, key, value); // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative })(Function.prototype, 'toString', function toString() { return typeof this == 'function' && getInternalState(this).source || inspectSource(this); }); /***/ }), /* 89 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/** * Tween.js - Licensed under the MIT license * https://github.com/tweenjs/tween.js * ---------------------------------------------- * * See https://github.com/tweenjs/tween.js/graphs/contributors for the full list of contributors. * Thank you all, you're awesome! */ var TWEEN = TWEEN || (function () { var _tweens = []; return { getAll: function () { return _tweens; }, removeAll: function () { _tweens = []; }, add: function (tween) { _tweens.push(tween); }, remove: function (tween) { var i = _tweens.indexOf(tween); if (i !== -1) { _tweens.splice(i, 1); } }, update: function (time, preserve) { if (_tweens.length === 0) { return false; } var i = 0; time = time !== undefined ? time : TWEEN.now(); while (i < _tweens.length) { if (_tweens[i].update(time) || preserve) { i++; } else { _tweens.splice(i, 1); } } return true; } }; })(); // Include a performance.now polyfill. // In node.js, use process.hrtime. if (typeof (window) === 'undefined' && typeof (process) !== 'undefined') { TWEEN.now = function () { var time = process.hrtime(); // Convert [seconds, nanoseconds] to milliseconds. return time[0] * 1000 + time[1] / 1000000; }; } // In a browser, use window.performance.now if it is available. else if (typeof (window) !== 'undefined' && window.performance !== undefined && window.performance.now !== undefined) { // This must be bound, because directly assigning this function // leads to an invocation exception in Chrome. TWEEN.now = window.performance.now.bind(window.performance); } // Use Date.now if it is available. else if (Date.now !== undefined) { TWEEN.now = Date.now; } // Otherwise, use 'new Date().getTime()'. else { TWEEN.now = function () { return new Date().getTime(); }; } TWEEN.Tween = function (object) { var _object = object; var _valuesStart = {}; var _valuesEnd = {}; var _valuesStartRepeat = {}; var _duration = 1000; var _repeat = 0; var _repeatDelayTime; var _yoyo = false; var _isPlaying = false; var _reversed = false; var _delayTime = 0; var _startTime = null; var _easingFunction = TWEEN.Easing.Linear.None; var _interpolationFunction = TWEEN.Interpolation.Linear; var _chainedTweens = []; var _onStartCallback = null; var _onStartCallbackFired = false; var _onUpdateCallback = null; var _onCompleteCallback = null; var _onStopCallback = null; this.to = function (properties, duration) { _valuesEnd = properties; if (duration !== undefined) { _duration = duration; } return this; }; this.start = function (time) { TWEEN.add(this); _isPlaying = true; _onStartCallbackFired = false; _startTime = time !== undefined ? time : TWEEN.now(); _startTime += _delayTime; for (var property in _valuesEnd) { // Check if an Array was provided as property value if (_valuesEnd[property] instanceof Array) { if (_valuesEnd[property].length === 0) { continue; } // Create a local copy of the Array with the start value at the front _valuesEnd[property] = [_object[property]].concat(_valuesEnd[property]); } // If `to()` specifies a property that doesn't exist in the source object, // we should not set that property in the object if (_object[property] === undefined) { continue; } // Save the starting value. _valuesStart[property] = _object[property]; if ((_valuesStart[property] instanceof Array) === false) { _valuesStart[property] *= 1.0; // Ensures we're using numbers, not strings } _valuesStartRepeat[property] = _valuesStart[property] || 0; } return this; }; this.stop = function () { if (!_isPlaying) { return this; } TWEEN.remove(this); _isPlaying = false; if (_onStopCallback !== null) { _onStopCallback.call(_object, _object); } this.stopChainedTweens(); return this; }; this.end = function () { this.update(_startTime + _duration); return this; }; this.stopChainedTweens = function () { for (var i = 0, numChainedTweens = _chainedTweens.length; i < numChainedTweens; i++) { _chainedTweens[i].stop(); } }; this.delay = function (amount) { _delayTime = amount; return this; }; this.repeat = function (times) { _repeat = times; return this; }; this.repeatDelay = function (amount) { _repeatDelayTime = amount; return this; }; this.yoyo = function (yoyo) { _yoyo = yoyo; return this; }; this.easing = function (easing) { _easingFunction = easing; return this; }; this.interpolation = function (interpolation) { _interpolationFunction = interpolation; return this; }; this.chain = function () { _chainedTweens = arguments; return this; }; this.onStart = function (callback) { _onStartCallback = callback; return this; }; this.onUpdate = function (callback) { _onUpdateCallback = callback; return this; }; this.onComplete = function (callback) { _onCompleteCallback = callback; return this; }; this.onStop = function (callback) { _onStopCallback = callback; return this; }; this.update = function (time) { var property; var elapsed; var value; if (time < _startTime) { return true; } if (_onStartCallbackFired === false) { if (_onStartCallback !== null) { _onStartCallback.call(_object, _object); } _onStartCallbackFired = true; } elapsed = (time - _startTime) / _duration; elapsed = elapsed > 1 ? 1 : elapsed; value = _easingFunction(elapsed); for (property in _valuesEnd) { // Don't update properties that do not exist in the source object if (_valuesStart[property] === undefined) { continue; } var start = _valuesStart[property] || 0; var end = _valuesEnd[property]; if (end instanceof Array) { _object[property] = _interpolationFunction(end, value); } else { // Parses relative end values with start as base (e.g.: +10, -3) if (typeof (end) === 'string') { if (end.charAt(0) === '+' || end.charAt(0) === '-') { end = start + parseFloat(end); } else { end = parseFloat(end); } } // Protect against non numeric properties. if (typeof (end) === 'number') { _object[property] = start + (end - start) * value; } } } if (_onUpdateCallback !== null) { _onUpdateCallback.call(_object, value); } if (elapsed === 1) { if (_repeat > 0) { if (isFinite(_repeat)) { _repeat--; } // Reassign starting values, restart by making startTime = now for (property in _valuesStartRepeat) { if (typeof (_valuesEnd[property]) === 'string') { _valuesStartRepeat[property] = _valuesStartRepeat[property] + parseFloat(_valuesEnd[property]); } if (_yoyo) { var tmp = _valuesStartRepeat[property]; _valuesStartRepeat[property] = _valuesEnd[property]; _valuesEnd[property] = tmp; } _valuesStart[property] = _valuesStartRepeat[property]; } if (_yoyo) { _reversed = !_reversed; } if (_repeatDelayTime !== undefined) { _startTime = time + _repeatDelayTime; } else { _startTime = time + _delayTime; } return true; } else { if (_onCompleteCallback !== null) { _onCompleteCallback.call(_object, _object); } for (var i = 0, numChainedTweens = _chainedTweens.length; i < numChainedTweens; i++) { // Make the chained tweens start exactly at the time they should, // even if the `update()` method was called way past the duration of the tween _chainedTweens[i].start(_startTime + _duration); } return false; } } return true; }; }; TWEEN.Easing = { Linear: { None: function (k) { return k; } }, Quadratic: { In: function (k) { return k * k; }, Out: function (k) { return k * (2 - k); }, InOut: function (k) { if ((k *= 2) < 1) { return 0.5 * k * k; } return - 0.5 * (--k * (k - 2) - 1); } }, Cubic: { In: function (k) { return k * k * k; }, Out: function (k) { return --k * k * k + 1; }, InOut: function (k) { if ((k *= 2) < 1) { return 0.5 * k * k * k; } return 0.5 * ((k -= 2) * k * k + 2); } }, Quartic: { In: function (k) { return k * k * k * k; }, Out: function (k) { return 1 - (--k * k * k * k); }, InOut: function (k) { if ((k *= 2) < 1) { return 0.5 * k * k * k * k; } return - 0.5 * ((k -= 2) * k * k * k - 2); } }, Quintic: { In: function (k) { return k * k * k * k * k; }, Out: function (k) { return --k * k * k * k * k + 1; }, InOut: function (k) { if ((k *= 2) < 1) { return 0.5 * k * k * k * k * k; } return 0.5 * ((k -= 2) * k * k * k * k + 2); } }, Sinusoidal: { In: function (k) { return 1 - Math.cos(k * Math.PI / 2); }, Out: function (k) { return Math.sin(k * Math.PI / 2); }, InOut: function (k) { return 0.5 * (1 - Math.cos(Math.PI * k)); } }, Exponential: { In: function (k) { return k === 0 ? 0 : Math.pow(1024, k - 1); }, Out: function (k) { return k === 1 ? 1 : 1 - Math.pow(2, - 10 * k); }, InOut: function (k) { if (k === 0) { return 0; } if (k === 1) { return 1; } if ((k *= 2) < 1) { return 0.5 * Math.pow(1024, k - 1); } return 0.5 * (- Math.pow(2, - 10 * (k - 1)) + 2); } }, Circular: { In: function (k) { return 1 - Math.sqrt(1 - k * k); }, Out: function (k) { return Math.sqrt(1 - (--k * k)); }, InOut: function (k) { if ((k *= 2) < 1) { return - 0.5 * (Math.sqrt(1 - k * k) - 1); } return 0.5 * (Math.sqrt(1 - (k -= 2) * k) + 1); } }, Elastic: { In: function (k) { if (k === 0) { return 0; } if (k === 1) { return 1; } return -Math.pow(2, 10 * (k - 1)) * Math.sin((k - 1.1) * 5 * Math.PI); }, Out: function (k) { if (k === 0) { return 0; } if (k === 1) { return 1; } return Math.pow(2, -10 * k) * Math.sin((k - 0.1) * 5 * Math.PI) + 1; }, InOut: function (k) { if (k === 0) { return 0; } if (k === 1) { return 1; } k *= 2; if (k < 1) { return -0.5 * Math.pow(2, 10 * (k - 1)) * Math.sin((k - 1.1) * 5 * Math.PI); } return 0.5 * Math.pow(2, -10 * (k - 1)) * Math.sin((k - 1.1) * 5 * Math.PI) + 1; } }, Back: { In: function (k) { var s = 1.70158; return k * k * ((s + 1) * k - s); }, Out: function (k) { var s = 1.70158; return --k * k * ((s + 1) * k + s) + 1; }, InOut: function (k) { var s = 1.70158 * 1.525; if ((k *= 2) < 1) { return 0.5 * (k * k * ((s + 1) * k - s)); } return 0.5 * ((k -= 2) * k * ((s + 1) * k + s) + 2); } }, Bounce: { In: function (k) { return 1 - TWEEN.Easing.Bounce.Out(1 - k); }, Out: function (k) { if (k < (1 / 2.75)) { return 7.5625 * k * k; } else if (k < (2 / 2.75)) { return 7.5625 * (k -= (1.5 / 2.75)) * k + 0.75; } else if (k < (2.5 / 2.75)) { return 7.5625 * (k -= (2.25 / 2.75)) * k + 0.9375; } else { return 7.5625 * (k -= (2.625 / 2.75)) * k + 0.984375; } }, InOut: function (k) { if (k < 0.5) { return TWEEN.Easing.Bounce.In(k * 2) * 0.5; } return TWEEN.Easing.Bounce.Out(k * 2 - 1) * 0.5 + 0.5; } } }; TWEEN.Interpolation = { Linear: function (v, k) { var m = v.length - 1; var f = m * k; var i = Math.floor(f); var fn = TWEEN.Interpolation.Utils.Linear; if (k < 0) { return fn(v[0], v[1], f); } if (k > 1) { return fn(v[m], v[m - 1], m - f); } return fn(v[i], v[i + 1 > m ? m : i + 1], f - i); }, Bezier: function (v, k) { var b = 0; var n = v.length - 1; var pw = Math.pow; var bn = TWEEN.Interpolation.Utils.Bernstein; for (var i = 0; i <= n; i++) { b += pw(1 - k, n - i) * pw(k, i) * v[i] * bn(n, i); } return b; }, CatmullRom: function (v, k) { var m = v.length - 1; var f = m * k; var i = Math.floor(f); var fn = TWEEN.Interpolation.Utils.CatmullRom; if (v[0] === v[m]) { if (k < 0) { i = Math.floor(f = m * (1 + k)); } return fn(v[(i - 1 + m) % m], v[i], v[(i + 1) % m], v[(i + 2) % m], f - i); } else { if (k < 0) { return v[0] - (fn(v[0], v[0], v[1], v[1], -f) - v[0]); } if (k > 1) { return v[m] - (fn(v[m], v[m], v[m - 1], v[m - 1], f - m) - v[m]); } return fn(v[i ? i - 1 : 0], v[i], v[m < i + 1 ? m : i + 1], v[m < i + 2 ? m : i + 2], f - i); } }, Utils: { Linear: function (p0, p1, t) { return (p1 - p0) * t + p0; }, Bernstein: function (n, i) { var fc = TWEEN.Interpolation.Utils.Factorial; return fc(n) / fc(i) / fc(n - i); }, Factorial: (function () { var a = [1]; return function (n) { var s = 1; if (a[n]) { return a[n]; } for (var i = n; i > 1; i--) { s *= i; } a[n] = s; return s; }; })(), CatmullRom: function (p0, p1, p2, p3, t) { var v0 = (p2 - p0) * 0.5; var v1 = (p3 - p1) * 0.5; var t2 = t * t; var t3 = t * t2; return (2 * p1 - 2 * p2 + v0 + v1) * t3 + (- 3 * p1 + 3 * p2 - 2 * v0 - v1) * t2 + v0 * t + p1; } } }; // UMD (Universal Module Definition) (function (root) { if (true) { // AMD !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { return TWEEN; }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} })(this); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(126))) /***/ }), /* 90 */ /***/ (function(module, exports, __webpack_require__) { var NATIVE_WEAK_MAP = __webpack_require__(519); var global = __webpack_require__(34); var isObject = __webpack_require__(45); var createNonEnumerableProperty = __webpack_require__(87); var objectHas = __webpack_require__(67); var shared = __webpack_require__(392); var sharedKey = __webpack_require__(301); var hiddenKeys = __webpack_require__(257); var WeakMap = global.WeakMap; var set, get, has; var enforce = function (it) { return has(it) ? get(it) : set(it, {}); }; var getterFor = function (TYPE) { return function (it) { var state; if (!isObject(it) || (state = get(it)).type !== TYPE) { throw TypeError('Incompatible receiver, ' + TYPE + ' required'); } return state; }; }; if (NATIVE_WEAK_MAP) { var store = shared.state || (shared.state = new WeakMap()); var wmget = store.get; var wmhas = store.has; var wmset = store.set; set = function (it, metadata) { metadata.facade = it; wmset.call(store, it, metadata); return metadata; }; get = function (it) { return wmget.call(store, it) || {}; }; has = function (it) { return wmhas.call(store, it); }; } else { var STATE = sharedKey('state'); hiddenKeys[STATE] = true; set = function (it, metadata) { metadata.facade = it; createNonEnumerableProperty(it, STATE, metadata); return metadata; }; get = function (it) { return objectHas(it, STATE) ? it[STATE] : {}; }; has = function (it) { return objectHas(it, STATE); }; } module.exports = { set: set, get: get, has: has, enforce: enforce, getterFor: getterFor }; /***/ }), /* 91 */ /***/ (function(module, exports) { module.exports = function (it) { if (typeof it != 'function') { throw TypeError(String(it) + ' is not a function'); } return it; }; /***/ }), /* 92 */ /***/ (function(module, exports, __webpack_require__) { var freeGlobal = __webpack_require__(560); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; /** Used as a reference to the global object. */ var root = freeGlobal || freeSelf || Function('return this')(); module.exports = root; /***/ }), /* 93 */ /***/ (function(module, exports) { var core = module.exports = { version: '2.6.12' }; if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef /***/ }), /* 94 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseStartTime = parseStartTime; exports.parseEndTime = parseEndTime; exports.randomString = randomString; exports.queryString = queryString; exports.getSDK = getSDK; exports.getConfig = getConfig; exports.omit = omit; exports.callPlayer = callPlayer; exports.isMediaStream = isMediaStream; exports.isBlobUrl = isBlobUrl; exports.supportsWebKitPresentationMode = supportsWebKitPresentationMode; var _loadScript = _interopRequireDefault(__webpack_require__(1537)); var _deepmerge = _interopRequireDefault(__webpack_require__(816)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } var MATCH_START_QUERY = /[?&#](?:start|t)=([0-9hms]+)/; var MATCH_END_QUERY = /[?&#]end=([0-9hms]+)/; var MATCH_START_STAMP = /(\d+)(h|m|s)/g; var MATCH_NUMERIC = /^\d+$/; // Parse YouTube URL for a start time param, ie ?t=1h14m30s // and return the start time in seconds function parseTimeParam(url, pattern) { if (url instanceof Array) { return undefined; } var match = url.match(pattern); if (match) { var stamp = match[1]; if (stamp.match(MATCH_START_STAMP)) { return parseTimeString(stamp); } if (MATCH_NUMERIC.test(stamp)) { return parseInt(stamp); } } return undefined; } function parseTimeString(stamp) { var seconds = 0; var array = MATCH_START_STAMP.exec(stamp); while (array !== null) { var _array = array, _array2 = _slicedToArray(_array, 3), count = _array2[1], period = _array2[2]; if (period === 'h') seconds += parseInt(count, 10) * 60 * 60; if (period === 'm') seconds += parseInt(count, 10) * 60; if (period === 's') seconds += parseInt(count, 10); array = MATCH_START_STAMP.exec(stamp); } return seconds; } function parseStartTime(url) { return parseTimeParam(url, MATCH_START_QUERY); } function parseEndTime(url) { return parseTimeParam(url, MATCH_END_QUERY); } // http://stackoverflow.com/a/38622545 function randomString() { return Math.random().toString(36).substr(2, 5); } function queryString(object) { return Object.keys(object).map(function (key) { return "".concat(key, "=").concat(object[key]); }).join('&'); } function getGlobal(key) { if (window[key]) { return window[key]; } if (window.exports && window.exports[key]) { return window.exports[key]; } if (window.module && window.module.exports && window.module.exports[key]) { return window.module.exports[key]; } return null; } // Util function to load an external SDK // or return the SDK if it is already loaded var requests = {}; function getSDK(url, sdkGlobal) { var sdkReady = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; var isLoaded = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : function () { return true; }; var fetchScript = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : _loadScript["default"]; var existingGlobal = getGlobal(sdkGlobal); if (existingGlobal && isLoaded(existingGlobal)) { return Promise.resolve(existingGlobal); } return new Promise(function (resolve, reject) { // If we are already loading the SDK, add the resolve and reject // functions to the existing array of requests if (requests[url]) { requests[url].push({ resolve: resolve, reject: reject }); return; } requests[url] = [{ resolve: resolve, reject: reject }]; var onLoaded = function onLoaded(sdk) { // When loaded, resolve all pending request promises requests[url].forEach(function (request) { return request.resolve(sdk); }); }; if (sdkReady) { var previousOnReady = window[sdkReady]; window[sdkReady] = function () { if (previousOnReady) previousOnReady(); onLoaded(getGlobal(sdkGlobal)); }; } fetchScript(url, function (err) { if (err) { // Loading the SDK failed – reject all requests and // reset the array of requests for this SDK requests[url].forEach(function (request) { return request.reject(err); }); requests[url] = null; } else if (!sdkReady) { onLoaded(getGlobal(sdkGlobal)); } }); }); } function getConfig(props, defaultProps) { return (0, _deepmerge["default"])(defaultProps.config, props.config); } function omit(object) { var _ref; for (var _len = arguments.length, arrays = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { arrays[_key - 1] = arguments[_key]; } var omitKeys = (_ref = []).concat.apply(_ref, arrays); var output = {}; var keys = Object.keys(object); for (var _i2 = 0, _keys = keys; _i2 < _keys.length; _i2++) { var key = _keys[_i2]; if (omitKeys.indexOf(key) === -1) { output[key] = object[key]; } } return output; } function callPlayer(method) { var _this$player; // Util method for calling a method on this.player // but guard against errors and console.warn instead if (!this.player || !this.player[method]) { var message = "ReactPlayer: ".concat(this.constructor.displayName, " player could not call %c").concat(method, "%c \u2013 "); if (!this.player) { message += 'The player was not available'; } else if (!this.player[method]) { message += 'The method was not available'; } console.warn(message, 'font-weight: bold', ''); return null; } for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { args[_key2 - 1] = arguments[_key2]; } return (_this$player = this.player)[method].apply(_this$player, args); } function isMediaStream(url) { return typeof window !== 'undefined' && typeof window.MediaStream !== 'undefined' && url instanceof window.MediaStream; } function isBlobUrl(url) { return /^blob:/.test(url); } function supportsWebKitPresentationMode() { var video = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.createElement('video'); // Check if Safari supports PiP, and is not on mobile (other than iPad) // iPhone safari appears to "support" PiP through the check, however PiP does not function var notMobile = /iPhone|iPod/.test(navigator.userAgent) === false; return video.webkitSupportsPresentationMode && typeof video.webkitSetPresentationMode === 'function' && notMobile; } /***/ }), /* 95 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; var _RaisedButton = __webpack_require__(1497); var _RaisedButton2 = _interopRequireDefault(_RaisedButton); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _RaisedButton2.default; /***/ }), /* 96 */, /* 97 */, /* 98 */ /***/ (function(module, exports, __webpack_require__) { var path = __webpack_require__(258); var has = __webpack_require__(67); var wrappedWellKnownSymbolModule = __webpack_require__(525); var defineProperty = __webpack_require__(57).f; module.exports = function (NAME) { var Symbol = path.Symbol || (path.Symbol = {}); if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, { value: wrappedWellKnownSymbolModule.f(NAME) }); }; /***/ }), /* 99 */ /***/ (function(module, exports) { /** * Checks if `value` is object-like. A value is object-like if it's not `null` * and has a `typeof` result of "object". * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is object-like, else `false`. * @example * * _.isObjectLike({}); * // => true * * _.isObjectLike([1, 2, 3]); * // => true * * _.isObjectLike(_.noop); * // => false * * _.isObjectLike(null); * // => false */ function isObjectLike(value) { return value != null && typeof value == 'object'; } module.exports = isObjectLike; /***/ }), /* 100 */ /***/ (function(module, exports) { /** * Checks if `value` is the * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. * @example * * _.isObject({}); * // => true * * _.isObject([1, 2, 3]); * // => true * * _.isObject(_.noop); * // => true * * _.isObject(null); * // => false */ function isObject(value) { var type = typeof value; return value != null && (type == 'object' || type == 'function'); } module.exports = isObject; /***/ }), /* 101 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXTERNAL MODULE: ./node_modules/lodash-es/isFunction.js var isFunction = __webpack_require__(235); // EXTERNAL MODULE: ./node_modules/lodash-es/_root.js var _root = __webpack_require__(71); // CONCATENATED MODULE: ./node_modules/lodash-es/_coreJsData.js /** Used to detect overreaching core-js shims. */ var coreJsData = _root["a" /* default */]['__core-js_shared__']; /* harmony default export */ var _coreJsData = (coreJsData); // CONCATENATED MODULE: ./node_modules/lodash-es/_isMasked.js /** Used to detect methods masquerading as native. */ var maskSrcKey = (function() { var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || ''); return uid ? ('Symbol(src)_1.' + uid) : ''; }()); /** * Checks if `func` has its source masked. * * @private * @param {Function} func The function to check. * @returns {boolean} Returns `true` if `func` is masked, else `false`. */ function isMasked(func) { return !!maskSrcKey && (maskSrcKey in func); } /* harmony default export */ var _isMasked = (isMasked); // EXTERNAL MODULE: ./node_modules/lodash-es/isObject.js var isObject = __webpack_require__(77); // EXTERNAL MODULE: ./node_modules/lodash-es/_toSource.js var _toSource = __webpack_require__(160); // CONCATENATED MODULE: ./node_modules/lodash-es/_baseIsNative.js /** * Used to match `RegExp` * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). */ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; /** Used to detect host constructors (Safari). */ var reIsHostCtor = /^\[object .+?Constructor\]$/; /** Used for built-in method references. */ var funcProto = Function.prototype, objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var _baseIsNative_hasOwnProperty = objectProto.hasOwnProperty; /** Used to detect if a method is native. */ var reIsNative = RegExp('^' + funcToString.call(_baseIsNative_hasOwnProperty).replace(reRegExpChar, '\\$&') .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' ); /** * The base implementation of `_.isNative` without bad shim checks. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a native function, * else `false`. */ function baseIsNative(value) { if (!Object(isObject["a" /* default */])(value) || _isMasked(value)) { return false; } var pattern = Object(isFunction["a" /* default */])(value) ? reIsNative : reIsHostCtor; return pattern.test(Object(_toSource["a" /* default */])(value)); } /* harmony default export */ var _baseIsNative = (baseIsNative); // CONCATENATED MODULE: ./node_modules/lodash-es/_getValue.js /** * Gets the value at `key` of `object`. * * @private * @param {Object} [object] The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function getValue(object, key) { return object == null ? undefined : object[key]; } /* harmony default export */ var _getValue = (getValue); // CONCATENATED MODULE: ./node_modules/lodash-es/_getNative.js /** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { var value = _getValue(object, key); return _baseIsNative(value) ? value : undefined; } /* harmony default export */ var _getNative = __webpack_exports__["a"] = (getNative); /***/ }), /* 102 */ /***/ (function(module, exports, __webpack_require__) { var baseIndexOf = __webpack_require__(602), isArrayLike = __webpack_require__(133), isString = __webpack_require__(607), toInteger = __webpack_require__(220), values = __webpack_require__(608); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max; /** * Checks if `value` is in `collection`. If `collection` is a string, it's * checked for a substring of `value`, otherwise * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * is used for equality comparisons. If `fromIndex` is negative, it's used as * the offset from the end of `collection`. * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object|string} collection The collection to inspect. * @param {*} value The value to search for. * @param {number} [fromIndex=0] The index to search from. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. * @returns {boolean} Returns `true` if `value` is found, else `false`. * @example * * _.includes([1, 2, 3], 1); * // => true * * _.includes([1, 2, 3], 1, 2); * // => false * * _.includes({ 'a': 1, 'b': 2 }, 1); * // => true * * _.includes('abcd', 'bc'); * // => true */ function includes(collection, value, fromIndex, guard) { collection = isArrayLike(collection) ? collection : values(collection); fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0; var length = collection.length; if (fromIndex < 0) { fromIndex = nativeMax(length + fromIndex, 0); } return isString(collection) ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1) : (!!length && baseIndexOf(collection, value, fromIndex) > -1); } module.exports = includes; /***/ }), /* 103 */ /***/ (function(module, exports, __webpack_require__) { var convert = __webpack_require__(82), func = convert('flow', __webpack_require__(1281)); func.placeholder = __webpack_require__(74); module.exports = func; /***/ }), /* 104 */ /***/ (function(module, exports, __webpack_require__) { // toObject with fallback for non-array-like ES3 strings var IndexedObject = __webpack_require__(255); var requireObjectCoercible = __webpack_require__(86); module.exports = function (it) { return IndexedObject(requireObjectCoercible(it)); }; /***/ }), /* 105 */ /***/ (function(module, exports, __webpack_require__) { var path = __webpack_require__(258); var global = __webpack_require__(34); var aFunction = function (variable) { return typeof variable == 'function' ? variable : undefined; }; module.exports = function (namespace, method) { return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace]) : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method]; }; /***/ }), /* 106 */ /***/ (function(module, exports, __webpack_require__) { var requireObjectCoercible = __webpack_require__(86); var quot = /"/g; // B.2.3.2.1 CreateHTML(string, tag, attribute, value) // https://tc39.es/ecma262/#sec-createhtml module.exports = function (string, tag, attribute, value) { var S = String(requireObjectCoercible(string)); var p1 = '<' + tag; if (attribute !== '') p1 += ' ' + attribute + '="' + String(value).replace(quot, '"') + '"'; return p1 + '>' + S + ''; }; /***/ }), /* 107 */ /***/ (function(module, exports, __webpack_require__) { var fails = __webpack_require__(25); // check the existence of a method, lowercase // of a tag and escaping quotes in arguments module.exports = function (METHOD_NAME) { return fails(function () { var test = ''[METHOD_NAME]('"'); return test !== test.toLowerCase() || test.split('"').length > 3; }); }; /***/ }), /* 108 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var bind = __webpack_require__(630); /*global toString:true*/ // utils is a library of generic helper functions non-specific to axios var toString = Object.prototype.toString; /** * Determine if a value is an Array * * @param {Object} val The value to test * @returns {boolean} True if value is an Array, otherwise false */ function isArray(val) { return toString.call(val) === '[object Array]'; } /** * Determine if a value is undefined * * @param {Object} val The value to test * @returns {boolean} True if the value is undefined, otherwise false */ function isUndefined(val) { return typeof val === 'undefined'; } /** * Determine if a value is a Buffer * * @param {Object} val The value to test * @returns {boolean} True if value is a Buffer, otherwise false */ function isBuffer(val) { return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val); } /** * Determine if a value is an ArrayBuffer * * @param {Object} val The value to test * @returns {boolean} True if value is an ArrayBuffer, otherwise false */ function isArrayBuffer(val) { return toString.call(val) === '[object ArrayBuffer]'; } /** * Determine if a value is a FormData * * @param {Object} val The value to test * @returns {boolean} True if value is an FormData, otherwise false */ function isFormData(val) { return (typeof FormData !== 'undefined') && (val instanceof FormData); } /** * Determine if a value is a view on an ArrayBuffer * * @param {Object} val The value to test * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false */ function isArrayBufferView(val) { var result; if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { result = ArrayBuffer.isView(val); } else { result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); } return result; } /** * Determine if a value is a String * * @param {Object} val The value to test * @returns {boolean} True if value is a String, otherwise false */ function isString(val) { return typeof val === 'string'; } /** * Determine if a value is a Number * * @param {Object} val The value to test * @returns {boolean} True if value is a Number, otherwise false */ function isNumber(val) { return typeof val === 'number'; } /** * Determine if a value is an Object * * @param {Object} val The value to test * @returns {boolean} True if value is an Object, otherwise false */ function isObject(val) { return val !== null && typeof val === 'object'; } /** * Determine if a value is a Date * * @param {Object} val The value to test * @returns {boolean} True if value is a Date, otherwise false */ function isDate(val) { return toString.call(val) === '[object Date]'; } /** * Determine if a value is a File * * @param {Object} val The value to test * @returns {boolean} True if value is a File, otherwise false */ function isFile(val) { return toString.call(val) === '[object File]'; } /** * Determine if a value is a Blob * * @param {Object} val The value to test * @returns {boolean} True if value is a Blob, otherwise false */ function isBlob(val) { return toString.call(val) === '[object Blob]'; } /** * Determine if a value is a Function * * @param {Object} val The value to test * @returns {boolean} True if value is a Function, otherwise false */ function isFunction(val) { return toString.call(val) === '[object Function]'; } /** * Determine if a value is a Stream * * @param {Object} val The value to test * @returns {boolean} True if value is a Stream, otherwise false */ function isStream(val) { return isObject(val) && isFunction(val.pipe); } /** * Determine if a value is a URLSearchParams object * * @param {Object} val The value to test * @returns {boolean} True if value is a URLSearchParams object, otherwise false */ function isURLSearchParams(val) { return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams; } /** * Trim excess whitespace off the beginning and end of a string * * @param {String} str The String to trim * @returns {String} The String freed of excess whitespace */ function trim(str) { return str.replace(/^\s*/, '').replace(/\s*$/, ''); } /** * Determine if we're running in a standard browser environment * * This allows axios to run in a web worker, and react-native. * Both environments support XMLHttpRequest, but not fully standard globals. * * web workers: * typeof window -> undefined * typeof document -> undefined * * react-native: * navigator.product -> 'ReactNative' * nativescript * navigator.product -> 'NativeScript' or 'NS' */ function isStandardBrowserEnv() { if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) { return false; } return ( typeof window !== 'undefined' && typeof document !== 'undefined' ); } /** * Iterate over an Array or an Object invoking a function for each item. * * If `obj` is an Array callback will be called passing * the value, index, and complete array for each item. * * If 'obj' is an Object callback will be called passing * the value, key, and complete object for each property. * * @param {Object|Array} obj The object to iterate * @param {Function} fn The callback to invoke for each item */ function forEach(obj, fn) { // Don't bother if no value provided if (obj === null || typeof obj === 'undefined') { return; } // Force an array if not already something iterable if (typeof obj !== 'object') { /*eslint no-param-reassign:0*/ obj = [obj]; } if (isArray(obj)) { // Iterate over array values for (var i = 0, l = obj.length; i < l; i++) { fn.call(null, obj[i], i, obj); } } else { // Iterate over object keys for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { fn.call(null, obj[key], key, obj); } } } } /** * Accepts varargs expecting each argument to be an object, then * immutably merges the properties of each object and returns result. * * When multiple objects contain the same key the later object in * the arguments list will take precedence. * * Example: * * ```js * var result = merge({foo: 123}, {foo: 456}); * console.log(result.foo); // outputs 456 * ``` * * @param {Object} obj1 Object to merge * @returns {Object} Result of all merge properties */ function merge(/* obj1, obj2, obj3, ... */) { var result = {}; function assignValue(val, key) { if (typeof result[key] === 'object' && typeof val === 'object') { result[key] = merge(result[key], val); } else { result[key] = val; } } for (var i = 0, l = arguments.length; i < l; i++) { forEach(arguments[i], assignValue); } return result; } /** * Function equal to merge with the difference being that no reference * to original objects is kept. * * @see merge * @param {Object} obj1 Object to merge * @returns {Object} Result of all merge properties */ function deepMerge(/* obj1, obj2, obj3, ... */) { var result = {}; function assignValue(val, key) { if (typeof result[key] === 'object' && typeof val === 'object') { result[key] = deepMerge(result[key], val); } else if (typeof val === 'object') { result[key] = deepMerge({}, val); } else { result[key] = val; } } for (var i = 0, l = arguments.length; i < l; i++) { forEach(arguments[i], assignValue); } return result; } /** * Extends object a by mutably adding to it the properties of object b. * * @param {Object} a The object to be extended * @param {Object} b The object to copy properties from * @param {Object} thisArg The object to bind function to * @return {Object} The resulting value of object a */ function extend(a, b, thisArg) { forEach(b, function assignValue(val, key) { if (thisArg && typeof val === 'function') { a[key] = bind(val, thisArg); } else { a[key] = val; } }); return a; } module.exports = { isArray: isArray, isArrayBuffer: isArrayBuffer, isBuffer: isBuffer, isFormData: isFormData, isArrayBufferView: isArrayBufferView, isString: isString, isNumber: isNumber, isObject: isObject, isUndefined: isUndefined, isDate: isDate, isFile: isFile, isBlob: isBlob, isFunction: isFunction, isStream: isStream, isURLSearchParams: isURLSearchParams, isStandardBrowserEnv: isStandardBrowserEnv, forEach: forEach, merge: merge, deepMerge: deepMerge, extend: extend, trim: trim }; /***/ }), /* 109 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.canPlay = exports.FLV_EXTENSIONS = exports.DASH_EXTENSIONS = exports.HLS_EXTENSIONS = exports.VIDEO_EXTENSIONS = exports.AUDIO_EXTENSIONS = exports.MATCH_URL_KALTURA = exports.MATCH_URL_VIDYARD = exports.MATCH_URL_MIXCLOUD = exports.MATCH_URL_DAILYMOTION = exports.MATCH_URL_TWITCH_CHANNEL = exports.MATCH_URL_TWITCH_VIDEO = exports.MATCH_URL_WISTIA = exports.MATCH_URL_STREAMABLE = exports.MATCH_URL_FACEBOOK_WATCH = exports.MATCH_URL_FACEBOOK = exports.MATCH_URL_VIMEO = exports.MATCH_URL_SOUNDCLOUD = exports.MATCH_URL_YOUTUBE = void 0; var _utils = __webpack_require__(94); function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } var MATCH_URL_YOUTUBE = /(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//; exports.MATCH_URL_YOUTUBE = MATCH_URL_YOUTUBE; var MATCH_URL_SOUNDCLOUD = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/; exports.MATCH_URL_SOUNDCLOUD = MATCH_URL_SOUNDCLOUD; var MATCH_URL_VIMEO = /vimeo\.com\/.+/; exports.MATCH_URL_VIMEO = MATCH_URL_VIMEO; var MATCH_URL_FACEBOOK = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/; exports.MATCH_URL_FACEBOOK = MATCH_URL_FACEBOOK; var MATCH_URL_FACEBOOK_WATCH = /^https?:\/\/fb\.watch\/.+$/; exports.MATCH_URL_FACEBOOK_WATCH = MATCH_URL_FACEBOOK_WATCH; var MATCH_URL_STREAMABLE = /streamable\.com\/([a-z0-9]+)$/; exports.MATCH_URL_STREAMABLE = MATCH_URL_STREAMABLE; var MATCH_URL_WISTIA = /(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?(.*)$/; exports.MATCH_URL_WISTIA = MATCH_URL_WISTIA; var MATCH_URL_TWITCH_VIDEO = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/; exports.MATCH_URL_TWITCH_VIDEO = MATCH_URL_TWITCH_VIDEO; var MATCH_URL_TWITCH_CHANNEL = /(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/; exports.MATCH_URL_TWITCH_CHANNEL = MATCH_URL_TWITCH_CHANNEL; var MATCH_URL_DAILYMOTION = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/; exports.MATCH_URL_DAILYMOTION = MATCH_URL_DAILYMOTION; var MATCH_URL_MIXCLOUD = /mixcloud\.com\/([^/]+\/[^/]+)/; exports.MATCH_URL_MIXCLOUD = MATCH_URL_MIXCLOUD; var MATCH_URL_VIDYARD = /vidyard.com\/(?:watch\/)?([a-zA-Z0-9-]+)/; exports.MATCH_URL_VIDYARD = MATCH_URL_VIDYARD; var MATCH_URL_KALTURA = /^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_]+)$/; exports.MATCH_URL_KALTURA = MATCH_URL_KALTURA; var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i; exports.AUDIO_EXTENSIONS = AUDIO_EXTENSIONS; var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i; exports.VIDEO_EXTENSIONS = VIDEO_EXTENSIONS; var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i; exports.HLS_EXTENSIONS = HLS_EXTENSIONS; var DASH_EXTENSIONS = /\.(mpd)($|\?)/i; exports.DASH_EXTENSIONS = DASH_EXTENSIONS; var FLV_EXTENSIONS = /\.(flv)($|\?)/i; exports.FLV_EXTENSIONS = FLV_EXTENSIONS; var canPlayFile = function canPlayFile(url) { if (url instanceof Array) { var _iterator = _createForOfIteratorHelper(url), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var item = _step.value; if (typeof item === 'string' && canPlayFile(item)) { return true; } if (canPlayFile(item.src)) { return true; } } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } return false; } if ((0, _utils.isMediaStream)(url) || (0, _utils.isBlobUrl)(url)) { return true; } return AUDIO_EXTENSIONS.test(url) || VIDEO_EXTENSIONS.test(url) || HLS_EXTENSIONS.test(url) || DASH_EXTENSIONS.test(url) || FLV_EXTENSIONS.test(url); }; var canPlay = { youtube: function youtube(url) { if (url instanceof Array) { return url.every(function (item) { return MATCH_URL_YOUTUBE.test(item); }); } return MATCH_URL_YOUTUBE.test(url); }, soundcloud: function soundcloud(url) { return MATCH_URL_SOUNDCLOUD.test(url) && !AUDIO_EXTENSIONS.test(url); }, vimeo: function vimeo(url) { return MATCH_URL_VIMEO.test(url) && !VIDEO_EXTENSIONS.test(url) && !HLS_EXTENSIONS.test(url); }, facebook: function facebook(url) { return MATCH_URL_FACEBOOK.test(url) || MATCH_URL_FACEBOOK_WATCH.test(url); }, streamable: function streamable(url) { return MATCH_URL_STREAMABLE.test(url); }, wistia: function wistia(url) { return MATCH_URL_WISTIA.test(url); }, twitch: function twitch(url) { return MATCH_URL_TWITCH_VIDEO.test(url) || MATCH_URL_TWITCH_CHANNEL.test(url); }, dailymotion: function dailymotion(url) { return MATCH_URL_DAILYMOTION.test(url); }, mixcloud: function mixcloud(url) { return MATCH_URL_MIXCLOUD.test(url); }, vidyard: function vidyard(url) { return MATCH_URL_VIDYARD.test(url); }, kaltura: function kaltura(url) { return MATCH_URL_KALTURA.test(url); }, file: canPlayFile }; exports.canPlay = canPlay; /***/ }), /* 110 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; var _MenuItem = __webpack_require__(813); var _MenuItem2 = _interopRequireDefault(_MenuItem); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _MenuItem2.default; /***/ }), /* 111 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXTERNAL MODULE: ./node_modules/lodash-es/_Symbol.js var _Symbol = __webpack_require__(80); // CONCATENATED MODULE: ./node_modules/lodash-es/_getRawTag.js /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var _getRawTag_hasOwnProperty = objectProto.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** Built-in value references. */ var symToStringTag = _Symbol["a" /* default */] ? _Symbol["a" /* default */].toStringTag : undefined; /** * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. * * @private * @param {*} value The value to query. * @returns {string} Returns the raw `toStringTag`. */ function getRawTag(value) { var isOwn = _getRawTag_hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; try { value[symToStringTag] = undefined; var unmasked = true; } catch (e) {} var result = nativeObjectToString.call(value); if (unmasked) { if (isOwn) { value[symToStringTag] = tag; } else { delete value[symToStringTag]; } } return result; } /* harmony default export */ var _getRawTag = (getRawTag); // CONCATENATED MODULE: ./node_modules/lodash-es/_objectToString.js /** Used for built-in method references. */ var _objectToString_objectProto = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var _objectToString_nativeObjectToString = _objectToString_objectProto.toString; /** * Converts `value` to a string using `Object.prototype.toString`. * * @private * @param {*} value The value to convert. * @returns {string} Returns the converted string. */ function objectToString(value) { return _objectToString_nativeObjectToString.call(value); } /* harmony default export */ var _objectToString = (objectToString); // CONCATENATED MODULE: ./node_modules/lodash-es/_baseGetTag.js /** `Object#toString` result references. */ var nullTag = '[object Null]', undefinedTag = '[object Undefined]'; /** Built-in value references. */ var _baseGetTag_symToStringTag = _Symbol["a" /* default */] ? _Symbol["a" /* default */].toStringTag : undefined; /** * The base implementation of `getTag` without fallbacks for buggy environments. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ function baseGetTag(value) { if (value == null) { return value === undefined ? undefinedTag : nullTag; } return (_baseGetTag_symToStringTag && _baseGetTag_symToStringTag in Object(value)) ? _getRawTag(value) : _objectToString(value); } /* harmony default export */ var _baseGetTag = __webpack_exports__["a"] = (baseGetTag); /***/ }), /* 112 */ /***/ (function(module, exports) { module.exports = false; /***/ }), /* 113 */ /***/ (function(module, exports) { var ceil = Math.ceil; var floor = Math.floor; // `ToInteger` abstract operation // https://tc39.es/ecma262/#sec-tointeger module.exports = function (argument) { return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument); }; /***/ }), /* 114 */ /***/ (function(module, exports, __webpack_require__) { var has = __webpack_require__(67); var toObject = __webpack_require__(64); var sharedKey = __webpack_require__(301); var CORRECT_PROTOTYPE_GETTER = __webpack_require__(399); var IE_PROTO = sharedKey('IE_PROTO'); var ObjectPrototype = Object.prototype; // `Object.getPrototypeOf` method // https://tc39.es/ecma262/#sec-object.getprototypeof module.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) { O = toObject(O); if (has(O, IE_PROTO)) return O[IE_PROTO]; if (typeof O.constructor == 'function' && O instanceof O.constructor) { return O.constructor.prototype; } return O instanceof Object ? ObjectPrototype : null; }; /***/ }), /* 115 */ /***/ (function(module, exports) { var toString = {}.toString; module.exports = Array.isArray || function (arr) { return toString.call(arr) == '[object Array]'; }; /***/ }), /* 116 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _interopRequireDefault = __webpack_require__(75); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = createSvgIcon; var _extends2 = _interopRequireDefault(__webpack_require__(1371)); var _react = _interopRequireDefault(__webpack_require__(0)); var _SvgIcon = _interopRequireDefault(__webpack_require__(1650)); function createSvgIcon(path, displayName) { var Component = _react.default.memo(_react.default.forwardRef(function (props, ref) { return _react.default.createElement(_SvgIcon.default, (0, _extends2.default)({ ref: ref }, props), path); })); if (false) {} Component.muiName = _SvgIcon.default.muiName; return Component; } /***/ }), /* 117 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; var _SvgIcon = __webpack_require__(1516); var _SvgIcon2 = _interopRequireDefault(_SvgIcon); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _SvgIcon2.default; /***/ }), /* 118 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _isSymbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(173); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** * Converts `value` to a string key if it's not a string or symbol. * * @private * @param {*} value The value to inspect. * @returns {string|symbol} Returns the key. */ function toKey(value) { if (typeof value == 'string' || Object(_isSymbol_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(value)) { return value; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } /* harmony default export */ __webpack_exports__["a"] = (toKey); /***/ }), /* 119 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _assignValue_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(364); /* harmony import */ var _baseAssignValue_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(175); /** * Copies properties of `source` to `object`. * * @private * @param {Object} source The object to copy properties from. * @param {Array} props The property identifiers to copy. * @param {Object} [object={}] The object to copy properties to. * @param {Function} [customizer] The function to customize copied values. * @returns {Object} Returns `object`. */ function copyObject(source, props, object, customizer) { var isNew = !object; object || (object = {}); var index = -1, length = props.length; while (++index < length) { var key = props[index]; var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined; if (newValue === undefined) { newValue = source[key]; } if (isNew) { Object(_baseAssignValue_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(object, key, newValue); } else { Object(_assignValue_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(object, key, newValue); } } return object; } /* harmony default export */ __webpack_exports__["a"] = (copyObject); /***/ }), /* 120 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export hexToRgb */ /* unused harmony export rgbToHex */ /* unused harmony export hslToRgb */ /* unused harmony export decomposeColor */ /* unused harmony export recomposeColor */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getContrastRatio; }); /* unused harmony export getLuminance */ /* unused harmony export emphasize */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return fade; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return darken; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return lighten; }); /* eslint-disable no-use-before-define */ /** * Returns a number whose value is limited to the given range. * * @param {number} value The value to be clamped * @param {number} min The lower boundary of the output range * @param {number} max The upper boundary of the output range * @returns {number} A number in the range [min, max] */ function clamp(value) { var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; if (false) {} return Math.min(Math.max(min, value), max); } /** * Converts a color from CSS hex format to CSS rgb format. * * @param {string} color - Hex color, i.e. #nnn or #nnnnnn * @returns {string} A CSS rgb color string */ function hexToRgb(color) { color = color.substr(1); var re = new RegExp(".{1,".concat(color.length >= 6 ? 2 : 1, "}"), 'g'); var colors = color.match(re); if (colors && colors[0].length === 1) { colors = colors.map(function (n) { return n + n; }); } return colors ? "rgb".concat(colors.length === 4 ? 'a' : '', "(").concat(colors.map(function (n, index) { return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000; }).join(', '), ")") : ''; } function intToHex(int) { var hex = int.toString(16); return hex.length === 1 ? "0".concat(hex) : hex; } /** * Converts a color from CSS rgb format to CSS hex format. * * @param {string} color - RGB color, i.e. rgb(n, n, n) * @returns {string} A CSS rgb color string, i.e. #nnnnnn */ function rgbToHex(color) { // Idempotent if (color.indexOf('#') === 0) { return color; } var _decomposeColor = decomposeColor(color), values = _decomposeColor.values; return "#".concat(values.map(function (n) { return intToHex(n); }).join('')); } /** * Converts a color from hsl format to rgb format. * * @param {string} color - HSL color values * @returns {string} rgb color values */ function hslToRgb(color) { color = decomposeColor(color); var _color = color, values = _color.values; var h = values[0]; var s = values[1] / 100; var l = values[2] / 100; var a = s * Math.min(l, 1 - l); var f = function f(n) { var k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (n + h / 30) % 12; return l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1); }; var type = 'rgb'; var rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)]; if (color.type === 'hsla') { type += 'a'; rgb.push(values[3]); } return recomposeColor({ type: type, values: rgb }); } /** * Returns an object with the type and values of a color. * * Note: Does not support rgb % values. * * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() * @returns {object} - A MUI color object: {type: string, values: number[]} */ function decomposeColor(color) { // Idempotent if (color.type) { return color; } if (color.charAt(0) === '#') { return decomposeColor(hexToRgb(color)); } var marker = color.indexOf('('); var type = color.substring(0, marker); if (['rgb', 'rgba', 'hsl', 'hsla'].indexOf(type) === -1) { throw new Error(["Material-UI: Unsupported `".concat(color, "` color."), 'We support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla().'].join('\n')); } var values = color.substring(marker + 1, color.length - 1).split(','); values = values.map(function (value) { return parseFloat(value); }); return { type: type, values: values }; } /** * Converts a color object with type and values to a string. * * @param {object} color - Decomposed color * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla' * @param {array} color.values - [n,n,n] or [n,n,n,n] * @returns {string} A CSS color string */ function recomposeColor(color) { var type = color.type; var values = color.values; if (type.indexOf('rgb') !== -1) { // Only convert the first 3 values to int (i.e. not alpha) values = values.map(function (n, i) { return i < 3 ? parseInt(n, 10) : n; }); } else if (type.indexOf('hsl') !== -1) { values[1] = "".concat(values[1], "%"); values[2] = "".concat(values[2], "%"); } return "".concat(type, "(").concat(values.join(', '), ")"); } /** * Calculates the contrast ratio between two colors. * * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests * * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() * @returns {number} A contrast ratio value in the range 0 - 21. */ function getContrastRatio(foreground, background) { var lumA = getLuminance(foreground); var lumB = getLuminance(background); return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05); } /** * The relative brightness of any point in a color space, * normalized to 0 for darkest black and 1 for lightest white. * * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests * * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() * @returns {number} The relative brightness of the color in the range 0 - 1 */ function getLuminance(color) { color = decomposeColor(color); var rgb = color.type === 'hsl' ? decomposeColor(hslToRgb(color)).values : color.values; rgb = rgb.map(function (val) { val /= 255; // normalized return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4); }); // Truncate at 3 digits return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3)); } /** * Darken or lighten a color, depending on its luminance. * Light colors are darkened, dark colors are lightened. * * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() * @param {number} coefficient=0.15 - multiplier in the range 0 - 1 * @returns {string} A CSS color string. Hex input values are returned as rgb */ function emphasize(color) { var coefficient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15; return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient); } /** * Set the absolute transparency of a color. * Any existing alpha values are overwritten. * * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() * @param {number} value - value to set the alpha channel to in the range 0 -1 * @returns {string} A CSS color string. Hex input values are returned as rgb */ function fade(color, value) { color = decomposeColor(color); value = clamp(value); if (color.type === 'rgb' || color.type === 'hsl') { color.type += 'a'; } color.values[3] = value; return recomposeColor(color); } /** * Darkens a color. * * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() * @param {number} coefficient - multiplier in the range 0 - 1 * @returns {string} A CSS color string. Hex input values are returned as rgb */ function darken(color, coefficient) { color = decomposeColor(color); coefficient = clamp(coefficient); if (color.type.indexOf('hsl') !== -1) { color.values[2] *= 1 - coefficient; } else if (color.type.indexOf('rgb') !== -1) { for (var i = 0; i < 3; i += 1) { color.values[i] *= 1 - coefficient; } } return recomposeColor(color); } /** * Lightens a color. * * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() * @param {number} coefficient - multiplier in the range 0 - 1 * @returns {string} A CSS color string. Hex input values are returned as rgb */ function lighten(color, coefficient) { color = decomposeColor(color); coefficient = clamp(coefficient); if (color.type.indexOf('hsl') !== -1) { color.values[2] += (100 - color.values[2]) * coefficient; } else if (color.type.indexOf('rgb') !== -1) { for (var i = 0; i < 3; i += 1) { color.values[i] += (255 - color.values[i]) * coefficient; } } return recomposeColor(color); } /***/ }), /* 121 */ /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__(45); // `ToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-toprimitive // instead of the ES6 spec version, we didn't implement @@toPrimitive case // and the second argument - flag - preferred type is a string module.exports = function (input, PREFERRED_STRING) { if (!isObject(input)) return input; var fn, val; if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val; if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; throw TypeError("Can't convert object to primitive value"); }; /***/ }), /* 122 */ /***/ (function(module, exports, __webpack_require__) { var defineProperty = __webpack_require__(57).f; var has = __webpack_require__(67); var wellKnownSymbol = __webpack_require__(50); var TO_STRING_TAG = wellKnownSymbol('toStringTag'); module.exports = function (it, TAG, STATIC) { if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) { defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG }); } }; /***/ }), /* 123 */ /***/ (function(module, exports, __webpack_require__) { var store = __webpack_require__(429)('wks'); var uid = __webpack_require__(325); var Symbol = __webpack_require__(169).Symbol; var USE_SYMBOL = typeof Symbol == 'function'; var $exports = module.exports = function (name) { return store[name] || (store[name] = USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); }; $exports.store = store; /***/ }), /* 124 */ /***/ (function(module, exports) { /** * A specialized version of `_.map` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the new mapped array. */ function arrayMap(array, iteratee) { var index = -1, length = array == null ? 0 : array.length, result = Array(length); while (++index < length) { result[index] = iteratee(array[index], index, array); } return result; } module.exports = arrayMap; /***/ }), /* 125 */ /***/ (function(module, exports, __webpack_require__) { var baseMatches = __webpack_require__(1204), baseMatchesProperty = __webpack_require__(1223), identity = __webpack_require__(219), isArray = __webpack_require__(63), property = __webpack_require__(1227); /** * The base implementation of `_.iteratee`. * * @private * @param {*} [value=_.identity] The value to convert to an iteratee. * @returns {Function} Returns the iteratee. */ function baseIteratee(value) { // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details. if (typeof value == 'function') { return value; } if (value == null) { return identity; } if (typeof value == 'object') { return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value); } return property(value); } module.exports = baseIteratee; /***/ }), /* 126 */ /***/ (function(module, exports) { // shim for using process in browser var process = module.exports = {}; // cached from whatever global is present so that test runners that stub it // don't break things. But we need to wrap it in a try catch in case it is // wrapped in strict mode code which doesn't define any globals. It's inside a // function because try/catches deoptimize in certain engines. var cachedSetTimeout; var cachedClearTimeout; function defaultSetTimout() { throw new Error('setTimeout has not been defined'); } function defaultClearTimeout () { throw new Error('clearTimeout has not been defined'); } (function () { try { if (typeof setTimeout === 'function') { cachedSetTimeout = setTimeout; } else { cachedSetTimeout = defaultSetTimout; } } catch (e) { cachedSetTimeout = defaultSetTimout; } try { if (typeof clearTimeout === 'function') { cachedClearTimeout = clearTimeout; } else { cachedClearTimeout = defaultClearTimeout; } } catch (e) { cachedClearTimeout = defaultClearTimeout; } } ()) function runTimeout(fun) { if (cachedSetTimeout === setTimeout) { //normal enviroments in sane situations return setTimeout(fun, 0); } // if setTimeout wasn't available but was latter defined if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { cachedSetTimeout = setTimeout; return setTimeout(fun, 0); } try { // when when somebody has screwed with setTimeout but no I.E. maddness return cachedSetTimeout(fun, 0); } catch(e){ try { // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally return cachedSetTimeout.call(null, fun, 0); } catch(e){ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error return cachedSetTimeout.call(this, fun, 0); } } } function runClearTimeout(marker) { if (cachedClearTimeout === clearTimeout) { //normal enviroments in sane situations return clearTimeout(marker); } // if clearTimeout wasn't available but was latter defined if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { cachedClearTimeout = clearTimeout; return clearTimeout(marker); } try { // when when somebody has screwed with setTimeout but no I.E. maddness return cachedClearTimeout(marker); } catch (e){ try { // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally return cachedClearTimeout.call(null, marker); } catch (e){ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. // Some versions of I.E. have different rules for clearTimeout vs setTimeout return cachedClearTimeout.call(this, marker); } } } var queue = []; var draining = false; var currentQueue; var queueIndex = -1; function cleanUpNextTick() { if (!draining || !currentQueue) { return; } draining = false; if (currentQueue.length) { queue = currentQueue.concat(queue); } else { queueIndex = -1; } if (queue.length) { drainQueue(); } } function drainQueue() { if (draining) { return; } var timeout = runTimeout(cleanUpNextTick); draining = true; var len = queue.length; while(len) { currentQueue = queue; queue = []; while (++queueIndex < len) { if (currentQueue) { currentQueue[queueIndex].run(); } } queueIndex = -1; len = queue.length; } currentQueue = null; draining = false; runClearTimeout(timeout); } process.nextTick = function (fun) { var args = new Array(arguments.length - 1); if (arguments.length > 1) { for (var i = 1; i < arguments.length; i++) { args[i - 1] = arguments[i]; } } queue.push(new Item(fun, args)); if (queue.length === 1 && !draining) { runTimeout(drainQueue); } }; // v8 likes predictible objects function Item(fun, array) { this.fun = fun; this.array = array; } Item.prototype.run = function () { this.fun.apply(null, this.array); }; process.title = 'browser'; process.browser = true; process.env = {}; process.argv = []; process.version = ''; // empty string to avoid regexp issues process.versions = {}; function noop() {} process.on = noop; process.addListener = noop; process.once = noop; process.off = noop; process.removeListener = noop; process.removeAllListeners = noop; process.emit = noop; process.prependListener = noop; process.prependOnceListener = noop; process.listeners = function (name) { return [] } process.binding = function (name) { throw new Error('process.binding is not supported'); }; process.cwd = function () { return '/' }; process.chdir = function (dir) { throw new Error('process.chdir is not supported'); }; process.umask = function() { return 0; }; /***/ }), /* 127 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {var now = __webpack_require__(1373) , root = typeof window === 'undefined' ? global : window , vendors = ['moz', 'webkit'] , suffix = 'AnimationFrame' , raf = root['request' + suffix] , caf = root['cancel' + suffix] || root['cancelRequest' + suffix] for(var i = 0; !raf && i < vendors.length; i++) { raf = root[vendors[i] + 'Request' + suffix] caf = root[vendors[i] + 'Cancel' + suffix] || root[vendors[i] + 'CancelRequest' + suffix] } // Some versions of FF have rAF but not cAF if(!raf || !caf) { var last = 0 , id = 0 , queue = [] , frameDuration = 1000 / 60 raf = function(callback) { if(queue.length === 0) { var _now = now() , next = Math.max(0, frameDuration - (_now - last)) last = next + _now setTimeout(function() { var cp = queue.slice(0) // Clear queue here to prevent // callbacks from appending listeners // to the current frame's queue queue.length = 0 for(var i = 0; i < cp.length; i++) { if(!cp[i].cancelled) { try{ cp[i].callback(last) } catch(e) { setTimeout(function() { throw e }, 0) } } } }, Math.round(next)) } queue.push({ handle: ++id, callback: callback, cancelled: false }) return id } caf = function(handle) { for(var i = 0; i < queue.length; i++) { if(queue[i].handle === handle) { queue[i].cancelled = true } } } } module.exports = function(fn) { // Wrap in a new function to prevent // `cancel` potentially being assigned // to the native rAF function return raf.call(root, fn) } module.exports.cancel = function() { caf.apply(root, arguments) } module.exports.polyfill = function(object) { if (!object) { object = root; } object.requestAnimationFrame = raf object.cancelAnimationFrame = caf } /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(52))) /***/ }), /* 128 */ /***/ (function(module, exports, __webpack_require__) { var arrayFilter = __webpack_require__(444), baseFilter = __webpack_require__(627), baseIteratee = __webpack_require__(125), isArray = __webpack_require__(63); /** * Iterates over elements of `collection`, returning an array of all elements * `predicate` returns truthy for. The predicate is invoked with three * arguments: (value, index|key, collection). * * **Note:** Unlike `_.remove`, this method returns a new array. * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the new filtered array. * @see _.reject * @example * * var users = [ * { 'user': 'barney', 'age': 36, 'active': true }, * { 'user': 'fred', 'age': 40, 'active': false } * ]; * * _.filter(users, function(o) { return !o.active; }); * // => objects for ['fred'] * * // The `_.matches` iteratee shorthand. * _.filter(users, { 'age': 36, 'active': true }); * // => objects for ['barney'] * * // The `_.matchesProperty` iteratee shorthand. * _.filter(users, ['active', false]); * // => objects for ['fred'] * * // The `_.property` iteratee shorthand. * _.filter(users, 'active'); * // => objects for ['barney'] * * // Combining several predicates using `_.overEvery` or `_.overSome`. * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]])); * // => objects for ['fred', 'barney'] */ function filter(collection, predicate) { var func = isArray(collection) ? arrayFilter : baseFilter; return func(collection, baseIteratee(predicate, 3)); } module.exports = filter; /***/ }), /* 129 */ /***/ (function(module, exports, __webpack_require__) { var createFind = __webpack_require__(1285), findIndex = __webpack_require__(629); /** * Iterates over elements of `collection`, returning the first element * `predicate` returns truthy for. The predicate is invoked with three * arguments: (value, index|key, collection). * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to inspect. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param {number} [fromIndex=0] The index to search from. * @returns {*} Returns the matched element, else `undefined`. * @example * * var users = [ * { 'user': 'barney', 'age': 36, 'active': true }, * { 'user': 'fred', 'age': 40, 'active': false }, * { 'user': 'pebbles', 'age': 1, 'active': true } * ]; * * _.find(users, function(o) { return o.age < 40; }); * // => object for 'barney' * * // The `_.matches` iteratee shorthand. * _.find(users, { 'age': 1, 'active': true }); * // => object for 'pebbles' * * // The `_.matchesProperty` iteratee shorthand. * _.find(users, ['active', false]); * // => object for 'fred' * * // The `_.property` iteratee shorthand. * _.find(users, 'active'); * // => object for 'barney' */ var find = createFind(findIndex); module.exports = find; /***/ }), /* 130 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return KEY_PREFIX; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return REHYDRATE; }); var KEY_PREFIX = 'reduxPersist:'; var REHYDRATE = 'persist/REHYDRATE'; /***/ }), /* 131 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return capitalize; }); // It should to be noted that this function isn't equivalent to `text-transform: capitalize`. // // A strict capitalization should uppercase the first letter of each word a the sentence. // We only handle the first word. function capitalize(string) { if (false) {} return string.charAt(0).toUpperCase() + string.slice(1); } /***/ }), /* 132 */ /***/ (function(module, exports, __webpack_require__) { var anObject = __webpack_require__(46); var defineProperties = __webpack_require__(398); var enumBugKeys = __webpack_require__(395); var hiddenKeys = __webpack_require__(257); var html = __webpack_require__(523); var documentCreateElement = __webpack_require__(389); var sharedKey = __webpack_require__(301); var GT = '>'; var LT = '<'; var PROTOTYPE = 'prototype'; var SCRIPT = 'script'; var IE_PROTO = sharedKey('IE_PROTO'); var EmptyConstructor = function () { /* empty */ }; var scriptTag = function (content) { return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT; }; // Create object with fake `null` prototype: use ActiveX Object with cleared prototype var NullProtoObjectViaActiveX = function (activeXDocument) { activeXDocument.write(scriptTag('')); activeXDocument.close(); var temp = activeXDocument.parentWindow.Object; activeXDocument = null; // avoid memory leak return temp; }; // Create object with fake `null` prototype: use iframe Object with cleared prototype var NullProtoObjectViaIFrame = function () { // Thrash, waste and sodomy: IE GC bug var iframe = documentCreateElement('iframe'); var JS = 'java' + SCRIPT + ':'; var iframeDocument; iframe.style.display = 'none'; html.appendChild(iframe); // https://github.com/zloirock/core-js/issues/475 iframe.src = String(JS); iframeDocument = iframe.contentWindow.document; iframeDocument.open(); iframeDocument.write(scriptTag('document.F=Object')); iframeDocument.close(); return iframeDocument.F; }; // Check for document.domain and active x support // No need to use active x approach when document.domain is not set // see https://github.com/es-shims/es5-shim/issues/150 // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346 // avoid IE GC bug var activeXDocument; var NullProtoObject = function () { try { /* global ActiveXObject -- old IE */ activeXDocument = document.domain && new ActiveXObject('htmlfile'); } catch (error) { /* ignore */ } NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame(); var length = enumBugKeys.length; while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]]; return NullProtoObject(); }; hiddenKeys[IE_PROTO] = true; // `Object.create` method // https://tc39.es/ecma262/#sec-object.create module.exports = Object.create || function create(O, Properties) { var result; if (O !== null) { EmptyConstructor[PROTOTYPE] = anObject(O); result = new EmptyConstructor(); EmptyConstructor[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill result[IE_PROTO] = O; } else result = NullProtoObject(); return Properties === undefined ? result : defineProperties(result, Properties); }; /***/ }), /* 133 */ /***/ (function(module, exports, __webpack_require__) { var isFunction = __webpack_require__(328), isLength = __webpack_require__(445); /** * Checks if `value` is array-like. A value is considered array-like if it's * not a function and has a `value.length` that's an integer greater than or * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is array-like, else `false`. * @example * * _.isArrayLike([1, 2, 3]); * // => true * * _.isArrayLike(document.body.children); * // => true * * _.isArrayLike('abc'); * // => true * * _.isArrayLike(_.noop); * // => false */ function isArrayLike(value) { return value != null && isLength(value.length) && !isFunction(value); } module.exports = isArrayLike; /***/ }), /* 134 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule=true;exports.GREY=exports.BLUE=void 0;var BLUE="#00b3df";exports.BLUE=BLUE;var GREY="#999999";exports.GREY=GREY; /***/ }), /* 135 */ /***/ (function(module, exports) { // Source: http://jsfiddle.net/vWx8V/ // http://stackoverflow.com/questions/5603195/full-list-of-javascript-keycodes /** * Conenience method returns corresponding value for given keyName or keyCode. * * @param {Mixed} keyCode {Number} or keyName {String} * @return {Mixed} * @api public */ function keyCode(searchInput) { // Keyboard Events if (searchInput && 'object' === typeof searchInput) { var hasKeyCode = searchInput.which || searchInput.keyCode || searchInput.charCode if (hasKeyCode) searchInput = hasKeyCode } // Numbers if ('number' === typeof searchInput) return names[searchInput] // Everything else (cast to string) var search = String(searchInput) // check codes var foundNamedKey = codes[search.toLowerCase()] if (foundNamedKey) return foundNamedKey // check aliases var foundNamedKey = aliases[search.toLowerCase()] if (foundNamedKey) return foundNamedKey // weird character? if (search.length === 1) return search.charCodeAt(0) return undefined } /** * Compares a keyboard event with a given keyCode or keyName. * * @param {Event} event Keyboard event that should be tested * @param {Mixed} keyCode {Number} or keyName {String} * @return {Boolean} * @api public */ keyCode.isEventKey = function isEventKey(event, nameOrCode) { if (event && 'object' === typeof event) { var keyCode = event.which || event.keyCode || event.charCode if (keyCode === null || keyCode === undefined) { return false; } if (typeof nameOrCode === 'string') { // check codes var foundNamedKey = codes[nameOrCode.toLowerCase()] if (foundNamedKey) { return foundNamedKey === keyCode; } // check aliases var foundNamedKey = aliases[nameOrCode.toLowerCase()] if (foundNamedKey) { return foundNamedKey === keyCode; } } else if (typeof nameOrCode === 'number') { return nameOrCode === keyCode; } return false; } } exports = module.exports = keyCode; /** * Get by name * * exports.code['enter'] // => 13 */ var codes = exports.code = exports.codes = { 'backspace': 8, 'tab': 9, 'enter': 13, 'shift': 16, 'ctrl': 17, 'alt': 18, 'pause/break': 19, 'caps lock': 20, 'esc': 27, 'space': 32, 'page up': 33, 'page down': 34, 'end': 35, 'home': 36, 'left': 37, 'up': 38, 'right': 39, 'down': 40, 'insert': 45, 'delete': 46, 'command': 91, 'left command': 91, 'right command': 93, 'numpad *': 106, 'numpad +': 107, 'numpad -': 109, 'numpad .': 110, 'numpad /': 111, 'num lock': 144, 'scroll lock': 145, 'my computer': 182, 'my calculator': 183, ';': 186, '=': 187, ',': 188, '-': 189, '.': 190, '/': 191, '`': 192, '[': 219, '\\': 220, ']': 221, "'": 222 } // Helper aliases var aliases = exports.aliases = { 'windows': 91, '⇧': 16, '⌥': 18, '⌃': 17, '⌘': 91, 'ctl': 17, 'control': 17, 'option': 18, 'pause': 19, 'break': 19, 'caps': 20, 'return': 13, 'escape': 27, 'spc': 32, 'spacebar': 32, 'pgup': 33, 'pgdn': 34, 'ins': 45, 'del': 46, 'cmd': 91 } /*! * Programatically add the following */ // lower case chars for (i = 97; i < 123; i++) codes[String.fromCharCode(i)] = i - 32 // numbers for (var i = 48; i < 58; i++) codes[i - 48] = i // function keys for (i = 1; i < 13; i++) codes['f'+i] = i + 111 // numpad keys for (i = 0; i < 10; i++) codes['numpad '+i] = i + 96 /** * Get by code * * exports.name[13] // => 'Enter' */ var names = exports.names = exports.title = {} // title for backward compat // Create reverse mapping for (i in codes) names[codes[i]] = i // Add aliases for (var alias in aliases) { codes[alias] = aliases[alias] } /***/ }), /* 136 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; exports.__esModule = true; var _shouldUpdate = __webpack_require__(1513); var _shouldUpdate2 = _interopRequireDefault(_shouldUpdate); var _shallowEqual = __webpack_require__(195); var _shallowEqual2 = _interopRequireDefault(_shallowEqual); var _setDisplayName = __webpack_require__(809); var _setDisplayName2 = _interopRequireDefault(_setDisplayName); var _wrapDisplayName = __webpack_require__(810); var _wrapDisplayName2 = _interopRequireDefault(_wrapDisplayName); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var pure = function pure(BaseComponent) { var hoc = (0, _shouldUpdate2.default)(function (props, nextProps) { return !(0, _shallowEqual2.default)(props, nextProps); }); if (false) {} return hoc(BaseComponent); }; exports.default = pure; /***/ }), /* 137 */ /***/ (function(module, exports, __webpack_require__) { var arrayMap = __webpack_require__(124), baseIteratee = __webpack_require__(125), baseMap = __webpack_require__(600), isArray = __webpack_require__(63); /** * Creates an array of values by running each element in `collection` thru * `iteratee`. The iteratee is invoked with three arguments: * (value, index|key, collection). * * Many lodash methods are guarded to work as iteratees for methods like * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`. * * The guarded methods are: * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`, * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`, * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`, * `template`, `trim`, `trimEnd`, `trimStart`, and `words` * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Array} Returns the new mapped array. * @example * * function square(n) { * return n * n; * } * * _.map([4, 8], square); * // => [16, 64] * * _.map({ 'a': 4, 'b': 8 }, square); * // => [16, 64] (iteration order is not guaranteed) * * var users = [ * { 'user': 'barney' }, * { 'user': 'fred' } * ]; * * // The `_.property` iteratee shorthand. * _.map(users, 'user'); * // => ['barney', 'fred'] */ function map(collection, iteratee) { var func = isArray(collection) ? arrayMap : baseMap; return func(collection, baseIteratee(iteratee, 3)); } module.exports = map; /***/ }), /* 138 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _baseGetTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(111); /* harmony import */ var _getPrototype_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(232); /* harmony import */ var _isObjectLike_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72); /** `Object#toString` result references. */ var objectTag = '[object Object]'; /** Used for built-in method references. */ var funcProto = Function.prototype, objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Used to infer the `Object` constructor. */ var objectCtorString = funcToString.call(Object); /** * Checks if `value` is a plain object, that is, an object created by the * `Object` constructor or one with a `[[Prototype]]` of `null`. * * @static * @memberOf _ * @since 0.8.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. * @example * * function Foo() { * this.a = 1; * } * * _.isPlainObject(new Foo); * // => false * * _.isPlainObject([1, 2, 3]); * // => false * * _.isPlainObject({ 'x': 0, 'y': 0 }); * // => true * * _.isPlainObject(Object.create(null)); * // => true */ function isPlainObject(value) { if (!Object(_isObjectLike_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(value) || Object(_baseGetTag_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(value) != objectTag) { return false; } var proto = Object(_getPrototype_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(value); if (proto === null) { return true; } var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; } /* harmony default export */ __webpack_exports__["a"] = (isPlainObject); /***/ }), /* 139 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /** * Performs a * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * comparison between two values to determine if they are equivalent. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * var object = { 'a': 1 }; * var other = { 'a': 1 }; * * _.eq(object, object); * // => true * * _.eq(object, other); * // => false * * _.eq('a', 'a'); * // => true * * _.eq('a', Object('a')); * // => false * * _.eq(NaN, NaN); * // => true */ function eq(value, other) { return value === other || (value !== value && other !== other); } /* harmony default export */ __webpack_exports__["a"] = (eq); /***/ }), /* 140 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _isFunction_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(235); /* harmony import */ var _isLength_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(237); /** * Checks if `value` is array-like. A value is considered array-like if it's * not a function and has a `value.length` that's an integer greater than or * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is array-like, else `false`. * @example * * _.isArrayLike([1, 2, 3]); * // => true * * _.isArrayLike(document.body.children); * // => true * * _.isArrayLike('abc'); * // => true * * _.isArrayLike(_.noop); * // => false */ function isArrayLike(value) { return value != null && Object(_isLength_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(value.length) && !Object(_isFunction_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(value); } /* harmony default export */ __webpack_exports__["a"] = (isArrayLike); /***/ }), /* 141 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; }); function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } /***/ }), /* 142 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXTERNAL MODULE: ./node_modules/lodash-es/_arrayLikeKeys.js + 1 modules var _arrayLikeKeys = __webpack_require__(385); // EXTERNAL MODULE: ./node_modules/lodash-es/_isPrototype.js var _isPrototype = __webpack_require__(240); // EXTERNAL MODULE: ./node_modules/lodash-es/_overArg.js var _overArg = __webpack_require__(358); // CONCATENATED MODULE: ./node_modules/lodash-es/_nativeKeys.js /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeKeys = Object(_overArg["a" /* default */])(Object.keys, Object); /* harmony default export */ var _nativeKeys = (nativeKeys); // CONCATENATED MODULE: ./node_modules/lodash-es/_baseKeys.js /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var _baseKeys_hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeys(object) { if (!Object(_isPrototype["a" /* default */])(object)) { return _nativeKeys(object); } var result = []; for (var key in Object(object)) { if (_baseKeys_hasOwnProperty.call(object, key) && key != 'constructor') { result.push(key); } } return result; } /* harmony default export */ var _baseKeys = (baseKeys); // EXTERNAL MODULE: ./node_modules/lodash-es/isArrayLike.js var isArrayLike = __webpack_require__(140); // CONCATENATED MODULE: ./node_modules/lodash-es/keys.js /** * Creates an array of the own enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. See the * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * for more details. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keys(new Foo); * // => ['a', 'b'] (iteration order is not guaranteed) * * _.keys('hi'); * // => ['0', '1'] */ function keys(object) { return Object(isArrayLike["a" /* default */])(object) ? Object(_arrayLikeKeys["a" /* default */])(object) : _baseKeys(object); } /* harmony default export */ var lodash_es_keys = __webpack_exports__["a"] = (keys); /***/ }), /* 143 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXTERNAL MODULE: ./node_modules/lodash-es/_arrayLikeKeys.js + 1 modules var _arrayLikeKeys = __webpack_require__(385); // EXTERNAL MODULE: ./node_modules/lodash-es/isObject.js var isObject = __webpack_require__(77); // EXTERNAL MODULE: ./node_modules/lodash-es/_isPrototype.js var _isPrototype = __webpack_require__(240); // CONCATENATED MODULE: ./node_modules/lodash-es/_nativeKeysIn.js /** * This function is like * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * except that it includes inherited enumerable properties. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function nativeKeysIn(object) { var result = []; if (object != null) { for (var key in Object(object)) { result.push(key); } } return result; } /* harmony default export */ var _nativeKeysIn = (nativeKeysIn); // CONCATENATED MODULE: ./node_modules/lodash-es/_baseKeysIn.js /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var _baseKeysIn_hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeysIn(object) { if (!Object(isObject["a" /* default */])(object)) { return _nativeKeysIn(object); } var isProto = Object(_isPrototype["a" /* default */])(object), result = []; for (var key in object) { if (!(key == 'constructor' && (isProto || !_baseKeysIn_hasOwnProperty.call(object, key)))) { result.push(key); } } return result; } /* harmony default export */ var _baseKeysIn = (baseKeysIn); // EXTERNAL MODULE: ./node_modules/lodash-es/isArrayLike.js var isArrayLike = __webpack_require__(140); // CONCATENATED MODULE: ./node_modules/lodash-es/keysIn.js /** * Creates an array of the own and inherited enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. * * @static * @memberOf _ * @since 3.0.0 * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keysIn(new Foo); * // => ['a', 'b', 'c'] (iteration order is not guaranteed) */ function keysIn(object) { return Object(isArrayLike["a" /* default */])(object) ? Object(_arrayLikeKeys["a" /* default */])(object, true) : _baseKeysIn(object); } /* harmony default export */ var lodash_es_keysIn = __webpack_exports__["a"] = (keysIn); /***/ }), /* 144 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXTERNAL MODULE: ./node_modules/lodash-es/_ListCache.js + 6 modules var _ListCache = __webpack_require__(178); // CONCATENATED MODULE: ./node_modules/lodash-es/_stackClear.js /** * Removes all key-value entries from the stack. * * @private * @name clear * @memberOf Stack */ function stackClear() { this.__data__ = new _ListCache["a" /* default */]; this.size = 0; } /* harmony default export */ var _stackClear = (stackClear); // CONCATENATED MODULE: ./node_modules/lodash-es/_stackDelete.js /** * Removes `key` and its value from the stack. * * @private * @name delete * @memberOf Stack * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function stackDelete(key) { var data = this.__data__, result = data['delete'](key); this.size = data.size; return result; } /* harmony default export */ var _stackDelete = (stackDelete); // CONCATENATED MODULE: ./node_modules/lodash-es/_stackGet.js /** * Gets the stack value for `key`. * * @private * @name get * @memberOf Stack * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function stackGet(key) { return this.__data__.get(key); } /* harmony default export */ var _stackGet = (stackGet); // CONCATENATED MODULE: ./node_modules/lodash-es/_stackHas.js /** * Checks if a stack value for `key` exists. * * @private * @name has * @memberOf Stack * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function stackHas(key) { return this.__data__.has(key); } /* harmony default export */ var _stackHas = (stackHas); // EXTERNAL MODULE: ./node_modules/lodash-es/_Map.js var _Map = __webpack_require__(179); // EXTERNAL MODULE: ./node_modules/lodash-es/_MapCache.js + 14 modules var _MapCache = __webpack_require__(201); // CONCATENATED MODULE: ./node_modules/lodash-es/_stackSet.js /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; /** * Sets the stack `key` to `value`. * * @private * @name set * @memberOf Stack * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the stack cache instance. */ function stackSet(key, value) { var data = this.__data__; if (data instanceof _ListCache["a" /* default */]) { var pairs = data.__data__; if (!_Map["a" /* default */] || (pairs.length < LARGE_ARRAY_SIZE - 1)) { pairs.push([key, value]); this.size = ++data.size; return this; } data = this.__data__ = new _MapCache["a" /* default */](pairs); } data.set(key, value); this.size = data.size; return this; } /* harmony default export */ var _stackSet = (stackSet); // CONCATENATED MODULE: ./node_modules/lodash-es/_Stack.js /** * Creates a stack cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Stack(entries) { var data = this.__data__ = new _ListCache["a" /* default */](entries); this.size = data.size; } // Add methods to `Stack`. Stack.prototype.clear = _stackClear; Stack.prototype['delete'] = _stackDelete; Stack.prototype.get = _stackGet; Stack.prototype.has = _stackHas; Stack.prototype.set = _stackSet; /* harmony default export */ var _Stack = __webpack_exports__["a"] = (Stack); /***/ }), /* 145 */ /***/ (function(module, exports) { module.exports = function (bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value: value }; }; /***/ }), /* 146 */ /***/ (function(module, exports) { var toString = {}.toString; module.exports = function (it) { return toString.call(it).slice(8, -1); }; /***/ }), /* 147 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var fails = __webpack_require__(25); module.exports = function (METHOD_NAME, argument) { var method = [][METHOD_NAME]; return !!method && fails(function () { // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing method.call(null, argument || function () { throw 1; }, 1); }); }; /***/ }), /* 148 */ /***/ (function(module, exports, __webpack_require__) { var anObject = __webpack_require__(46); var aFunction = __webpack_require__(91); var wellKnownSymbol = __webpack_require__(50); var SPECIES = wellKnownSymbol('species'); // `SpeciesConstructor` abstract operation // https://tc39.es/ecma262/#sec-speciesconstructor module.exports = function (O, defaultConstructor) { var C = anObject(O).constructor; var S; return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S); }; /***/ }), /* 149 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(8); var global = __webpack_require__(34); var DESCRIPTORS = __webpack_require__(49); var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = __webpack_require__(415); var ArrayBufferViewCore = __webpack_require__(51); var ArrayBufferModule = __webpack_require__(317); var anInstance = __webpack_require__(166); var createPropertyDescriptor = __webpack_require__(145); var createNonEnumerableProperty = __webpack_require__(87); var toLength = __webpack_require__(53); var toIndex = __webpack_require__(552); var toOffset = __webpack_require__(553); var toPrimitive = __webpack_require__(121); var has = __webpack_require__(67); var classof = __webpack_require__(266); var isObject = __webpack_require__(45); var create = __webpack_require__(132); var setPrototypeOf = __webpack_require__(163); var getOwnPropertyNames = __webpack_require__(180).f; var typedArrayFrom = __webpack_require__(554); var forEach = __webpack_require__(81).forEach; var setSpecies = __webpack_require__(203); var definePropertyModule = __webpack_require__(57); var getOwnPropertyDescriptorModule = __webpack_require__(85); var InternalStateModule = __webpack_require__(90); var inheritIfRequired = __webpack_require__(313); var getInternalState = InternalStateModule.get; var setInternalState = InternalStateModule.set; var nativeDefineProperty = definePropertyModule.f; var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; var round = Math.round; var RangeError = global.RangeError; var ArrayBuffer = ArrayBufferModule.ArrayBuffer; var DataView = ArrayBufferModule.DataView; var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS; var TYPED_ARRAY_TAG = ArrayBufferViewCore.TYPED_ARRAY_TAG; var TypedArray = ArrayBufferViewCore.TypedArray; var TypedArrayPrototype = ArrayBufferViewCore.TypedArrayPrototype; var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor; var isTypedArray = ArrayBufferViewCore.isTypedArray; var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT'; var WRONG_LENGTH = 'Wrong length'; var fromList = function (C, list) { var index = 0; var length = list.length; var result = new (aTypedArrayConstructor(C))(length); while (length > index) result[index] = list[index++]; return result; }; var addGetter = function (it, key) { nativeDefineProperty(it, key, { get: function () { return getInternalState(this)[key]; } }); }; var isArrayBuffer = function (it) { var klass; return it instanceof ArrayBuffer || (klass = classof(it)) == 'ArrayBuffer' || klass == 'SharedArrayBuffer'; }; var isTypedArrayIndex = function (target, key) { return isTypedArray(target) && typeof key != 'symbol' && key in target && String(+key) == String(key); }; var wrappedGetOwnPropertyDescriptor = function getOwnPropertyDescriptor(target, key) { return isTypedArrayIndex(target, key = toPrimitive(key, true)) ? createPropertyDescriptor(2, target[key]) : nativeGetOwnPropertyDescriptor(target, key); }; var wrappedDefineProperty = function defineProperty(target, key, descriptor) { if (isTypedArrayIndex(target, key = toPrimitive(key, true)) && isObject(descriptor) && has(descriptor, 'value') && !has(descriptor, 'get') && !has(descriptor, 'set') // TODO: add validation descriptor w/o calling accessors && !descriptor.configurable && (!has(descriptor, 'writable') || descriptor.writable) && (!has(descriptor, 'enumerable') || descriptor.enumerable) ) { target[key] = descriptor.value; return target; } return nativeDefineProperty(target, key, descriptor); }; if (DESCRIPTORS) { if (!NATIVE_ARRAY_BUFFER_VIEWS) { getOwnPropertyDescriptorModule.f = wrappedGetOwnPropertyDescriptor; definePropertyModule.f = wrappedDefineProperty; addGetter(TypedArrayPrototype, 'buffer'); addGetter(TypedArrayPrototype, 'byteOffset'); addGetter(TypedArrayPrototype, 'byteLength'); addGetter(TypedArrayPrototype, 'length'); } $({ target: 'Object', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, { getOwnPropertyDescriptor: wrappedGetOwnPropertyDescriptor, defineProperty: wrappedDefineProperty }); module.exports = function (TYPE, wrapper, CLAMPED) { var BYTES = TYPE.match(/\d+$/)[0] / 8; var CONSTRUCTOR_NAME = TYPE + (CLAMPED ? 'Clamped' : '') + 'Array'; var GETTER = 'get' + TYPE; var SETTER = 'set' + TYPE; var NativeTypedArrayConstructor = global[CONSTRUCTOR_NAME]; var TypedArrayConstructor = NativeTypedArrayConstructor; var TypedArrayConstructorPrototype = TypedArrayConstructor && TypedArrayConstructor.prototype; var exported = {}; var getter = function (that, index) { var data = getInternalState(that); return data.view[GETTER](index * BYTES + data.byteOffset, true); }; var setter = function (that, index, value) { var data = getInternalState(that); if (CLAMPED) value = (value = round(value)) < 0 ? 0 : value > 0xFF ? 0xFF : value & 0xFF; data.view[SETTER](index * BYTES + data.byteOffset, value, true); }; var addElement = function (that, index) { nativeDefineProperty(that, index, { get: function () { return getter(this, index); }, set: function (value) { return setter(this, index, value); }, enumerable: true }); }; if (!NATIVE_ARRAY_BUFFER_VIEWS) { TypedArrayConstructor = wrapper(function (that, data, offset, $length) { anInstance(that, TypedArrayConstructor, CONSTRUCTOR_NAME); var index = 0; var byteOffset = 0; var buffer, byteLength, length; if (!isObject(data)) { length = toIndex(data); byteLength = length * BYTES; buffer = new ArrayBuffer(byteLength); } else if (isArrayBuffer(data)) { buffer = data; byteOffset = toOffset(offset, BYTES); var $len = data.byteLength; if ($length === undefined) { if ($len % BYTES) throw RangeError(WRONG_LENGTH); byteLength = $len - byteOffset; if (byteLength < 0) throw RangeError(WRONG_LENGTH); } else { byteLength = toLength($length) * BYTES; if (byteLength + byteOffset > $len) throw RangeError(WRONG_LENGTH); } length = byteLength / BYTES; } else if (isTypedArray(data)) { return fromList(TypedArrayConstructor, data); } else { return typedArrayFrom.call(TypedArrayConstructor, data); } setInternalState(that, { buffer: buffer, byteOffset: byteOffset, byteLength: byteLength, length: length, view: new DataView(buffer) }); while (index < length) addElement(that, index++); }); if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray); TypedArrayConstructorPrototype = TypedArrayConstructor.prototype = create(TypedArrayPrototype); } else if (TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS) { TypedArrayConstructor = wrapper(function (dummy, data, typedArrayOffset, $length) { anInstance(dummy, TypedArrayConstructor, CONSTRUCTOR_NAME); return inheritIfRequired(function () { if (!isObject(data)) return new NativeTypedArrayConstructor(toIndex(data)); if (isArrayBuffer(data)) return $length !== undefined ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES), $length) : typedArrayOffset !== undefined ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES)) : new NativeTypedArrayConstructor(data); if (isTypedArray(data)) return fromList(TypedArrayConstructor, data); return typedArrayFrom.call(TypedArrayConstructor, data); }(), dummy, TypedArrayConstructor); }); if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray); forEach(getOwnPropertyNames(NativeTypedArrayConstructor), function (key) { if (!(key in TypedArrayConstructor)) { createNonEnumerableProperty(TypedArrayConstructor, key, NativeTypedArrayConstructor[key]); } }); TypedArrayConstructor.prototype = TypedArrayConstructorPrototype; } if (TypedArrayConstructorPrototype.constructor !== TypedArrayConstructor) { createNonEnumerableProperty(TypedArrayConstructorPrototype, 'constructor', TypedArrayConstructor); } if (TYPED_ARRAY_TAG) { createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_TAG, CONSTRUCTOR_NAME); } exported[CONSTRUCTOR_NAME] = TypedArrayConstructor; $({ global: true, forced: TypedArrayConstructor != NativeTypedArrayConstructor, sham: !NATIVE_ARRAY_BUFFER_VIEWS }, exported); if (!(BYTES_PER_ELEMENT in TypedArrayConstructor)) { createNonEnumerableProperty(TypedArrayConstructor, BYTES_PER_ELEMENT, BYTES); } if (!(BYTES_PER_ELEMENT in TypedArrayConstructorPrototype)) { createNonEnumerableProperty(TypedArrayConstructorPrototype, BYTES_PER_ELEMENT, BYTES); } setSpecies(CONSTRUCTOR_NAME); }; } else module.exports = function () { /* empty */ }; /***/ }), /* 150 */ /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__(208), getRawTag = __webpack_require__(1127), objectToString = __webpack_require__(1128); /** `Object#toString` result references. */ var nullTag = '[object Null]', undefinedTag = '[object Undefined]'; /** Built-in value references. */ var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** * The base implementation of `getTag` without fallbacks for buggy environments. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ function baseGetTag(value) { if (value == null) { return value === undefined ? undefinedTag : nullTag; } return (symToStringTag && symToStringTag in Object(value)) ? getRawTag(value) : objectToString(value); } module.exports = baseGetTag; /***/ }), /* 151 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; exports.check = check; exports.remove = remove; exports.deferred = deferred; exports.arrayOfDeffered = arrayOfDeffered; exports.delay = delay; exports.createMockTask = createMockTask; exports.autoInc = autoInc; exports.makeIterator = makeIterator; exports.log = log; function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var sym = exports.sym = function sym(id) { return '@@redux-saga/' + id; }; var TASK = exports.TASK = sym('TASK'); var MATCH = exports.MATCH = sym('MATCH'); var CANCEL = exports.CANCEL = sym('cancelPromise'); var konst = exports.konst = function konst(v) { return function () { return v; }; }; var kTrue = exports.kTrue = konst(true); var kFalse = exports.kFalse = konst(false); var noop = exports.noop = function noop() {}; var ident = exports.ident = function ident(v) { return v; }; function check(value, predicate, error) { if (!predicate(value)) { log('error', 'uncaught at check', error); throw new Error(error); } } var is = exports.is = { undef: function undef(v) { return v === null || v === undefined; }, notUndef: function notUndef(v) { return v !== null && v !== undefined; }, func: function func(f) { return typeof f === 'function'; }, number: function number(n) { return typeof n === 'number'; }, array: Array.isArray, promise: function promise(p) { return p && is.func(p.then); }, iterator: function iterator(it) { return it && is.func(it.next) && is.func(it.throw); }, task: function task(t) { return t && t[TASK]; }, take: function take(ch) { return ch && is.func(ch.take); }, put: function put(ch) { return ch && is.func(ch.put); }, observable: function observable(ob) { return ob && is.func(ob.subscribe); }, buffer: function buffer(buf) { return buf && is.func(buf.isEmpty) && is.func(buf.take) && is.func(buf.put); }, pattern: function pattern(pat) { return pat && (typeof pat === 'string' || (typeof pat === 'undefined' ? 'undefined' : _typeof(pat)) === 'symbol' || is.func(pat) || is.array(pat)); } }; function remove(array, item) { var index = array.indexOf(item); if (index >= 0) { array.splice(index, 1); } } function deferred() { var props = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; var def = _extends({}, props); var promise = new Promise(function (resolve, reject) { def.resolve = resolve; def.reject = reject; }); def.promise = promise; return def; } function arrayOfDeffered(length) { var arr = []; for (var i = 0; i < length; i++) { arr.push(deferred()); } return arr; } function delay(ms) { var val = arguments.length <= 1 || arguments[1] === undefined ? true : arguments[1]; var timeoutId = void 0; var promise = new Promise(function (resolve) { timeoutId = setTimeout(function () { return resolve(val); }, ms); }); promise[CANCEL] = function () { return clearTimeout(timeoutId); }; return promise; } function createMockTask() { var _ref; var running = true; var _result = void 0, _error = void 0; return _ref = {}, _defineProperty(_ref, TASK, true), _defineProperty(_ref, 'isRunning', function isRunning() { return running; }), _defineProperty(_ref, 'result', function result() { return _result; }), _defineProperty(_ref, 'error', function error() { return _error; }), _defineProperty(_ref, 'setRunning', function setRunning(b) { return running = b; }), _defineProperty(_ref, 'setResult', function setResult(r) { return _result = r; }), _defineProperty(_ref, 'setError', function setError(e) { return _error = e; }), _ref; } function autoInc() { var seed = arguments.length <= 0 || arguments[0] === undefined ? 0 : arguments[0]; return function () { return ++seed; }; } var kThrow = function kThrow(err) { throw err; }; var kReturn = function kReturn(value) { return { value: value, done: true }; }; function makeIterator(next) { var thro = arguments.length <= 1 || arguments[1] === undefined ? kThrow : arguments[1]; var name = arguments.length <= 2 || arguments[2] === undefined ? '' : arguments[2]; var iterator = { name: name, next: next, throw: thro, return: kReturn }; if (typeof Symbol !== 'undefined') { iterator[Symbol.iterator] = function () { return iterator; }; } return iterator; } /** Print error in a useful way whether in a browser environment (with expandable error stack traces), or in a node.js environment (text-only log output) **/ function log(level, message, error) { /*eslint-disable no-console*/ if (typeof window === 'undefined') { console.log('redux-saga ' + level + ': ' + message + '\n' + (error && error.stack || error)); } else { console[level].call(console, message, error); } } var internalErr = exports.internalErr = function internalErr(err) { return new Error('\n redux-saga: Error checking hooks detected an inconsisten state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project\'s github repo.\n Error: ' + err + '\n'); }; /***/ }), /* 152 */ /***/ (function(module, exports, __webpack_require__) { var arrayLikeKeys = __webpack_require__(593), baseKeys = __webpack_require__(337), isArrayLike = __webpack_require__(133); /** * Creates an array of the own enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. See the * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * for more details. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keys(new Foo); * // => ['a', 'b'] (iteration order is not guaranteed) * * _.keys('hi'); * // => ['0', '1'] */ function keys(object) { return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); } module.exports = keys; /***/ }), /* 153 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _propTypes = __webpack_require__(3); var _propTypes2 = _interopRequireDefault(_propTypes); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var horizontal = _propTypes2.default.oneOf(['left', 'middle', 'right']); var vertical = _propTypes2.default.oneOf(['top', 'center', 'bottom']); exports.default = { corners: _propTypes2.default.oneOf(['bottom-left', 'bottom-right', 'top-left', 'top-right']), horizontal: horizontal, vertical: vertical, origin: _propTypes2.default.shape({ horizontal: horizontal, vertical: vertical }), cornersAndCenter: _propTypes2.default.oneOf(['bottom-center', 'bottom-left', 'bottom-right', 'top-center', 'top-left', 'top-right']), stringOrNumber: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]), zDepth: _propTypes2.default.oneOf([0, 1, 2, 3, 4, 5]) }; /***/ }), /* 154 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); exports.default = createComponent; var _react = __webpack_require__(0); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /** * Creates a component class that renders the given Material UI component * * @param MaterialUIComponent The material ui component to render * @param mapProps A mapping of props provided by redux-form to the props the Material UI * component needs */ function createComponent(MaterialUIComponent, mapProps) { var InputComponent = function (_Component) { _inherits(InputComponent, _Component); function InputComponent() { _classCallCheck(this, InputComponent); return _possibleConstructorReturn(this, (InputComponent.__proto__ || Object.getPrototypeOf(InputComponent)).apply(this, arguments)); } _createClass(InputComponent, [{ key: 'getRenderedComponent', value: function getRenderedComponent() { return this.refs.component; } }, { key: 'render', value: function render() { return (0, _react.createElement)(MaterialUIComponent, _extends({}, mapProps(this.props), { ref: 'component' })); } }]); return InputComponent; }(_react.Component); InputComponent.displayName = 'ReduxFormMaterialUI' + MaterialUIComponent.name; return InputComponent; } /***/ }), /* 155 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71); /* harmony import */ var _stubFalse_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(832); /** Detect free variable `exports`. */ var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Built-in value references. */ var Buffer = moduleExports ? _root_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].Buffer : undefined; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; /** * Checks if `value` is a buffer. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. * @example * * _.isBuffer(new Buffer(2)); * // => true * * _.isBuffer(new Uint8Array(2)); * // => false */ var isBuffer = nativeIsBuffer || _stubFalse_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"]; /* harmony default export */ __webpack_exports__["a"] = (isBuffer); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(318)(module))) /***/ }), /* 156 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXTERNAL MODULE: ./node_modules/lodash-es/_getNative.js + 4 modules var _getNative = __webpack_require__(101); // EXTERNAL MODULE: ./node_modules/lodash-es/_root.js var _root = __webpack_require__(71); // CONCATENATED MODULE: ./node_modules/lodash-es/_DataView.js /* Built-in method references that are verified to be native. */ var DataView = Object(_getNative["a" /* default */])(_root["a" /* default */], 'DataView'); /* harmony default export */ var _DataView = (DataView); // EXTERNAL MODULE: ./node_modules/lodash-es/_Map.js var _Map = __webpack_require__(179); // CONCATENATED MODULE: ./node_modules/lodash-es/_Promise.js /* Built-in method references that are verified to be native. */ var Promise = Object(_getNative["a" /* default */])(_root["a" /* default */], 'Promise'); /* harmony default export */ var _Promise = (Promise); // CONCATENATED MODULE: ./node_modules/lodash-es/_Set.js /* Built-in method references that are verified to be native. */ var Set = Object(_getNative["a" /* default */])(_root["a" /* default */], 'Set'); /* harmony default export */ var _Set = (Set); // CONCATENATED MODULE: ./node_modules/lodash-es/_WeakMap.js /* Built-in method references that are verified to be native. */ var WeakMap = Object(_getNative["a" /* default */])(_root["a" /* default */], 'WeakMap'); /* harmony default export */ var _WeakMap = (WeakMap); // EXTERNAL MODULE: ./node_modules/lodash-es/_baseGetTag.js + 2 modules var _baseGetTag = __webpack_require__(111); // EXTERNAL MODULE: ./node_modules/lodash-es/_toSource.js var _toSource = __webpack_require__(160); // CONCATENATED MODULE: ./node_modules/lodash-es/_getTag.js /** `Object#toString` result references. */ var mapTag = '[object Map]', objectTag = '[object Object]', promiseTag = '[object Promise]', setTag = '[object Set]', weakMapTag = '[object WeakMap]'; var dataViewTag = '[object DataView]'; /** Used to detect maps, sets, and weakmaps. */ var dataViewCtorString = Object(_toSource["a" /* default */])(_DataView), mapCtorString = Object(_toSource["a" /* default */])(_Map["a" /* default */]), promiseCtorString = Object(_toSource["a" /* default */])(_Promise), setCtorString = Object(_toSource["a" /* default */])(_Set), weakMapCtorString = Object(_toSource["a" /* default */])(_WeakMap); /** * Gets the `toStringTag` of `value`. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ var getTag = _baseGetTag["a" /* default */]; // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag) || (_Map["a" /* default */] && getTag(new _Map["a" /* default */]) != mapTag) || (_Promise && getTag(_Promise.resolve()) != promiseTag) || (_Set && getTag(new _Set) != setTag) || (_WeakMap && getTag(new _WeakMap) != weakMapTag)) { getTag = function(value) { var result = Object(_baseGetTag["a" /* default */])(value), Ctor = result == objectTag ? value.constructor : undefined, ctorString = Ctor ? Object(_toSource["a" /* default */])(Ctor) : ''; if (ctorString) { switch (ctorString) { case dataViewCtorString: return dataViewTag; case mapCtorString: return mapTag; case promiseCtorString: return promiseTag; case setCtorString: return setTag; case weakMapCtorString: return weakMapTag; } } return result; }; } /* harmony default export */ var _getTag = __webpack_exports__["a"] = (getTag); /***/ }), /* 157 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // EXTERNAL MODULE: ./node_modules/lodash-es/_baseGetTag.js + 2 modules var _baseGetTag = __webpack_require__(111); // EXTERNAL MODULE: ./node_modules/lodash-es/isObjectLike.js var isObjectLike = __webpack_require__(72); // CONCATENATED MODULE: ./node_modules/lodash-es/_baseIsArguments.js /** `Object#toString` result references. */ var argsTag = '[object Arguments]'; /** * The base implementation of `_.isArguments`. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, */ function baseIsArguments(value) { return Object(isObjectLike["a" /* default */])(value) && Object(_baseGetTag["a" /* default */])(value) == argsTag; } /* harmony default export */ var _baseIsArguments = (baseIsArguments); // CONCATENATED MODULE: ./node_modules/lodash-es/isArguments.js /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var isArguments_hasOwnProperty = objectProto.hasOwnProperty; /** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /** * Checks if `value` is likely an `arguments` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, * else `false`. * @example * * _.isArguments(function() { return arguments; }()); * // => true * * _.isArguments([1, 2, 3]); * // => false */ var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) { return Object(isObjectLike["a" /* default */])(value) && isArguments_hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee'); }; /* harmony default export */ var lodash_es_isArguments = __webpack_exports__["a"] = (isArguments); /***/ }), /* 158 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(357); /** Detect free variable `exports`. */ var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Detect free variable `process` from Node.js. */ var freeProcess = moduleExports && _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].process; /** Used to access faster Node.js helpers. */ var nodeUtil = (function() { try { // Use `util.types` for Node.js 10+. var types = freeModule && freeModule.require && freeModule.require('util').types; if (types) { return types; } // Legacy `process.binding('util')` for Node.js < 10. return freeProcess && freeProcess.binding && freeProcess.binding('util'); } catch (e) {} }()); /* harmony default export */ __webpack_exports__["a"] = (nodeUtil); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(318)(module))) /***/ }), /* 159 */ /***/ (function(module, exports, __webpack_require__) { !function e(t,r){ true?module.exports=r():undefined}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function t(){return e.default}:function t(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=23)}([function(e,t,r){var n=r(2);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){var n=r(17)("wks"),a=r(18),i=r(1).Symbol,o="function"==typeof i;(e.exports=function(e){return n[e]||(n[e]=o&&i[e]||(o?i:a)("Symbol."+e))}).store=n},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(7),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){"use strict";var n=r(26)(!0);e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},function(e,t,r){"use strict";var n=r(27),a=RegExp.prototype.exec;e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var i=r.call(e,t);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(e))throw new TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},function(e,t){var r=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},function(e,t,r){"use strict";r(29);var n=r(19),a=r(13),i=r(4),o=r(5),l=r(3),s=r(12),u=l("species"),c=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}),h=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();e.exports=function(e,t,r){var p=l(e),f=!i(function(){var t={};return t[p]=function(){return 7},7!=""[e](t)}),m=f?!i(function(){var t=!1,r=/a/;return r.exec=function(){return t=!0,null},"split"===e&&(r.constructor={},r.constructor[u]=function(){return r}),r[p](""),!t}):void 0;if(!f||!m||"replace"===e&&!c||"split"===e&&!h){var d=/./[p],v=r(o,p,""[e],function e(t,r,n,a,i){return r.exec===s?f&&!i?{done:!0,value:d.call(r,n,a)}:{done:!0,value:t.call(n,r,a)}:{done:!1}}),g=v[0],y=v[1];n(String.prototype,e,g),a(RegExp.prototype,p,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},function(e,t,r){"use strict";var n,a,i=r(30),o=RegExp.prototype.exec,l=String.prototype.replace,s=o,u=(n=/a/,a=/b*/g,o.call(n,"a"),o.call(a,"a"),0!==n.lastIndex||0!==a.lastIndex),c=void 0!==/()??/.exec("")[1];(u||c)&&(s=function e(t){var r,n,a,s,h=this;return c&&(n=new RegExp("^"+h.source+"$(?!\\s)",i.call(h))),u&&(r=h.lastIndex),a=o.call(h,t),u&&a&&(h.lastIndex=h.global?a.index+a[0].length:r),c&&a&&a.length>1&&l.call(a[0],n,function(){for(s=1;s]*>)/g,f=/\$([$&`']|\d\d?)/g;r(11)("replace",2,function(e,t,r,m){return[function n(a,i){var o=e(this),l=void 0==a?void 0:a[t];return void 0!==l?l.call(a,o,i):r.call(String(o),a,i)},function(e,t){var a=m(r,e,this,t);if(a.done)return a.value;var h=n(e),p=String(this),f="function"==typeof t;f||(t=String(t));var v=h.global;if(v){var g=h.unicode;h.lastIndex=0}for(var y=[];;){var b=s(h,p);if(null===b)break;if(y.push(b),!v)break;""===String(b[0])&&(h.lastIndex=l(p,i(h.lastIndex),g))}for(var x,w="",k=0,M=0;M=k&&(w+=p.slice(k,z)+B,k=z+S.length)}return w+p.slice(k)}];function d(e,t,n,i,o,l){var s=n+e.length,u=i.length,c=f;return void 0!==o&&(o=a(o),c=p),r.call(l,c,function(r,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(s);case"<":l=o[a.slice(1,-1)];break;default:var c=+a;if(0===c)return r;if(c>u){var p=h(c/10);return 0===p?r:p<=u?void 0===i[p-1]?a.charAt(1):i[p-1]+a.charAt(1):r}l=i[c-1]}return void 0===l?"":l})}})},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(10),a=r(1),i=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(28)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},function(e,t,r){var n=r(1),a=r(13),i=r(37),o=r(18)("src"),l=r(38),s=(""+l).split("toString");r(10).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,r,l){var u="function"==typeof r;u&&(i(r,"name")||a(r,"name",t)),e[t]!==r&&(u&&(i(r,o)||a(r,o,e[t]?""+e[t]:s.join(String(t)))),e===n?e[t]=r:l?e[t]?e[t]=r:a(e,t,r):(delete e[t],a(e,t,r)))})(Function.prototype,"toString",function e(){return"function"==typeof this&&this[o]||l.call(this)})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){var n=r(44),a=r(50),i=r(51);e.exports=function o(e){return"string"==typeof e||!a(e)&&i(e)&&"[object String]"==n(e)}},function(e,t,r){var n=r(45).Symbol;e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isMath",{enumerable:!0,get:function e(){return n.isMath}}),Object.defineProperty(t,"handleMath",{enumerable:!0,get:function e(){return n.handleMath}});var n=r(24)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeLatex=t.handleMath=t.isMath=void 0,r(15),r(40),r(41);var n=o(r(21)),a=r(52),i=o(r(54));function o(e){return e&&e.__esModule?e:{default:e}}var l=function e(t){var r;try{r="".concat(i.default.renderToString("\\displaystyle {"+(0,a.convertHtmlToText)(t.split("$$")[1])+"}"),"")}catch(e){console.log("ERROR RENDERING",t)}finally{return r}},s=function e(t){var r;try{r="".concat(i.default.renderToString((0,a.convertHtmlToText)(t.split("$$")[1])),"")}catch(e){console.log("ERROR RENDERING",t,e)}finally{return r}},u=function e(t){return!!t.match(/\$(.*?)\$/g)};t.isMath=u,t.handleMath=function e(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t&&(0,n.default)(t)){var a;if(t=c(t),u(t)){var i=/\$\$(.*?)\$\$/g;(t=t.replace(/>/g,">").replace(/</g,"<").replace(/ /g," ")).match(i)||(t=t.split("$").join("$$")),a=r?t.replace(i,s):t.replace(i,l)}else a=t;return a}return""};var c=function e(t){return(0,n.default)(t)?t.replace(/\\differentialD/g,"d").replace(/\\mleft/g,"\\left").replace(/\\mright/g,"\\right").replace(/\\frac/g,"\\dfrac").replace(/\\vec/g,"\\overrightarrow"):""};t.sanitizeLatex=c},function(e,t,r){var n=r(5);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(7),a=r(5);e.exports=function(e){return function(t,r){var i,o,l=String(a(t)),s=n(r),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s))<55296||i>56319||s+1===u||(o=l.charCodeAt(s+1))<56320||o>57343?e?l.charAt(s):i:e?l.slice(s,s+2):o-56320+(i-55296<<10)+65536}}},function(e,t,r){var n=r(16),a=r(3)("toStringTag"),i="Arguments"==n(function(){return arguments}());e.exports=function(e){var t,r,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?r:i?n(t):"Object"==(o=n(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t){e.exports=!1},function(e,t,r){"use strict";var n=r(12);r(31)({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},function(e,t,r){"use strict";var n=r(0);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,r){var n=r(1),a=r(10),i=r(13),o=r(19),l=r(39),s=function(e,t,r){var u,c,h,p,f=e&s.F,m=e&s.G,d=e&s.S,v=e&s.P,g=e&s.B,y=m?n:d?n[t]||(n[t]={}):(n[t]||{}).prototype,b=m?a:a[t]||(a[t]={}),x=b.prototype||(b.prototype={});for(u in m&&(r=t),r)h=((c=!f&&y&&void 0!==y[u])?y:r)[u],p=g&&c?l(h,n):v&&"function"==typeof h?l(Function.call,h):h,y&&o(y,u,h,e&s.U),b[u]!=h&&i(b,u,p),v&&x[u]!=h&&(x[u]=h)};n.core=a,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,r){var n=r(0),a=r(33),i=r(35),o=Object.defineProperty;t.f=r(14)?Object.defineProperty:function e(t,r,l){if(n(t),r=i(r,!0),n(l),a)try{return o(t,r,l)}catch(e){}if("get"in l||"set"in l)throw TypeError("Accessors not supported!");return"value"in l&&(t[r]=l.value),t}},function(e,t,r){e.exports=!r(14)&&!r(4)(function(){return 7!=Object.defineProperty(r(34)("div"),"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(2),a=r(1).document,i=n(a)&&n(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t,r){var n=r(2);e.exports=function(e,t){if(!n(e))return e;var r,a;if(t&&"function"==typeof(r=e.toString)&&!n(a=r.call(e)))return a;if("function"==typeof(r=e.valueOf)&&!n(a=r.call(e)))return a;if(!t&&"function"==typeof(r=e.toString)&&!n(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){e.exports=r(17)("native-function-to-string",Function.toString)},function(e,t,r){var n=r(20);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){"use strict";var n=r(0),a=r(6),i=r(8),o=r(9);r(11)("match",1,function(e,t,r,l){return[function r(n){var a=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,a):new RegExp(n)[t](String(a))},function(e){var t=l(r,e,this);if(t.done)return t.value;var s=n(e),u=String(this);if(!s.global)return o(s,u);var c=s.unicode;s.lastIndex=0;for(var h,p=[],f=0;null!==(h=o(s,u));){var m=String(h[0]);p[f]=m,""===m&&(s.lastIndex=i(u,a(s.lastIndex),c)),f++}return 0===f?null:p}]})},function(e,t,r){"use strict";var n=r(42),a=r(0),i=r(43),o=r(8),l=r(6),s=r(9),u=r(12),c=r(4),h=Math.min,p=[].push,f=!c(function(){RegExp(4294967295,"y")});r(11)("split",2,function(e,t,r,c){var m;return m="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var a=String(this);if(void 0===e&&0===t)return[];if(!n(e))return r.call(a,e,t);for(var i,o,l,s=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,f=void 0===t?4294967295:t>>>0,m=new RegExp(e.source,c+"g");(i=u.call(m,a))&&!((o=m.lastIndex)>h&&(s.push(a.slice(h,i.index)),i.length>1&&i.index=f));)m.lastIndex===i.index&&m.lastIndex++;return h===a.length?!l&&m.test("")||s.push(""):s.push(a.slice(h)),s.length>f?s.slice(0,f):s}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function r(n,a){var i=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i,a):m.call(String(i),n,a)},function(e,t){var n=c(m,e,this,t,m!==r);if(n.done)return n.value;var u=a(e),p=String(this),d=i(u,RegExp),v=u.unicode,g=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(f?"y":"g"),y=new d(f?u:"^(?:"+u.source+")",g),b=void 0===t?4294967295:t>>>0;if(0===b)return[];if(0===p.length)return null===s(y,p)?[p]:[];for(var x=0,w=0,k=[];w1&&void 0!==arguments[1]?arguments[1]:["div","ul","li","ol"];switch(!0){case(0,a.default)(t):return function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t&&""!=t&&(0,a.default)(t)?(r=Array.isArray(r)?r:[r]).reduce(function(e,t){return function e(t,r){var n=new RegExp("(]*/{0,1}>)","gi");return t.replace(n,"")}(e,t)},t):t}(t,r);case Array.isArray(t):return t.map(function(t){return e(t,r)});case(0,n.default)(t):return Object.keys(t).reduce(function(n,a){return n[a]=e(t[a],r),n},{});default:return t}},s=function e(t){return t.replace(/(\r\n|\n|\r)/gm," ").replace(/ /g," ").replace(/©/g,"©").replace(/®/g,"®").replace(/</g,"<").replace(/>/g,">").replace(/¢/g,"¢").replace(/£/g,"£").replace(/€/g,"€").replace(/¥/g,"¥").replace(/°/g,"°").replace(/¼/g,"¼").replace(/Œ/g,"Œ").replace(/½/g,"½").replace(/œ/g,"œ").replace(/¾/g,"¾").replace(/Ÿ/g,"Ÿ").replace(/¡/g,"¡").replace(/«/g,"«").replace(/»/g,"»").replace(/¿/g,"¿").replace(/À/g,"À").replace(/Á/g,"Á").replace(/Â/g,"Â").replace(/Ã/g,"Ã").replace(/Ä/g,"Ä").replace(/Å/g,"Å").replace(/Æ/g,"Æ").replace(/Ç/g,"Ç").replace(/È/g,"È").replace(/É/g,"É").replace(/Ê/g,"Ê").replace(/Ë/g,"Ë").replace(/Ì/g,"Ì").replace(/Í/g,"Í").replace(/Î/g,"Î").replace(/Ï/g,"Ï").replace(/Ð/g,"Ð").replace(/Ñ/g,"Ñ").replace(/Ò/g,"Ò").replace(/Ó/g,"Ó").replace(/Ô/g,"Ô").replace(/Õ/g,"Õ").replace(/Ö/g,"Ö").replace(/Ø/g,"Ø").replace(/Ù/g,"Ù").replace(/Ú/g,"Ú").replace(/Û/g,"Û").replace(/Ü/g,"Ü").replace(/Ý/g,"Ý").replace(/Þ/g,"Þ").replace(/ß/g,"ß").replace(/à/g,"à").replace(/á/g,"á").replace(/â/g,"â").replace(/ã/g,"ã").replace(/ä/g,"ä").replace(/å/g,"å").replace(/æ/g,"æ").replace(/ç/g,"ç").replace(/è/g,"è").replace(/é/g,"é").replace(/ê/g,"ê").replace(/ë/g,"ë").replace(/ì/g,"ì").replace(/í/g,"í").replace(/î/g,"î").replace(/ï/g,"ï").replace(/ð/g,"ð").replace(/ñ/g,"ñ").replace(/ò/g,"ò").replace(/ó/g,"ó").replace(/ô/g,"ô").replace(/õ/g,"õ").replace(/ö/g,"ö").replace(/ø/g,"ø").replace(/ù/g,"ù").replace(/ú/g,"ú").replace(/û/g,"û").replace(/ü/g,"ü").replace(/ý/g,"ý").replace(/þ/g,"þ").replace(/"/g,'"').replace(/&/g,"&").replace(/’/g,"'").replace(/'/g,"'").replace(/…/g,"…")}},function(e,t){e.exports=function r(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,r){!function t(r,n){e.exports=n()}(0,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function t(){return e.default}:function t(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=63)}([function(e,t,r){"use strict";var n=r(57),a=r.n(n),i=r(18),o=r.n(i),l=r(12),s=r(30),u=r(28),c=r(5),h=r(13),p=r(19),f=["\\imath","ı","\\jmath","ȷ","\\pounds","\\mathsterling","\\textsterling","£"],m=function e(t,r,n){return u.a[n][t]&&u.a[n][t].replace&&(t=u.a[n][t].replace),{value:t,metrics:s.a.getCharacterMetrics(t,r,n)}},d=function e(t,r,n,a,i){var o=m(t,r,n),s=o.metrics;t=o.value;var u=void 0;if(s){var c=s.italic;"text"===n&&(c=0),u=new l.a.symbolNode(t,s.height,s.depth,c,s.skew,s.width,i)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+t+"' in style '"+r+"'"),u=new l.a.symbolNode(t,0,0,0,0,0,i);if(a){u.maxFontSize=a.sizeMultiplier,a.style.isTight()&&u.classes.push("mtight");var h=a.getColor();h&&(u.style.color=h)}return u},v=function e(t,r,n,a,i){if("mathord"===i){var o=g(t,r,n,a);return d(t,o.fontName,r,n,a.concat([o.fontClass]))}if("textord"===i){if("ams"===(u.a[r][t]&&u.a[r][t].font)){var l=x("amsrm",n.fontWeight,n.fontShape);return d(t,l,r,n,a.concat("amsrm",n.fontWeight,n.fontShape))}var s=x("textrm",n.fontWeight,n.fontShape);return d(t,s,r,n,a.concat(n.fontWeight,n.fontShape))}throw new Error("unexpected type: "+i+" in mathDefault")},g=function e(t,r,n,a){return/[0-9]/.test(t.charAt(0))||c.a.contains(f,t)?{fontName:"Main-Italic",fontClass:"mainit"}:{fontName:"Math-Italic",fontClass:"mathit"}},y=function e(t){var r=0,n=0,a=0,i=!0,l=!1,s=void 0;try{for(var u,c=o()(t.children);!(i=(u=c.next()).done);i=!0){var h=u.value;h.height>r&&(r=h.height),h.depth>n&&(n=h.depth),h.maxFontSize>a&&(a=h.maxFontSize)}}catch(e){l=!0,s=e}finally{try{!i&&c.return&&c.return()}finally{if(l)throw s}}t.height=r,t.depth=n,t.maxFontSize=a},b=function e(t,r,n,a){var i=new l.a.span(t,r,n,a);return y(i),i},x=function e(t,r,n){return w(t)+"-"+k(r,n)},w=function e(t){var r="";switch(t){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:throw new Error("Invalid font provided: "+t)}return r},k=function e(t,r){var n="";return"textbf"===t&&(n+="Bold"),"textit"===r&&(n+="Italic"),n||"Regular"},M={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},S={vec:["vec",.471,.714]};t.a={fontMap:M,makeSymbol:d,mathsym:function e(t,r,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return n&&n.fontFamily&&"boldsymbol"===n.fontFamily&&m(t,"Main-Bold",r).metrics?d(t,"Main-Bold",r,n,a.concat(["mathbf"])):"\\"===t||"main"===u.a[r][t].font?d(t,"Main-Regular",r,n,a):d(t,"AMS-Regular",r,n,a.concat(["amsrm"]))},makeSpan:b,makeLineSpan:function e(t,r){var n=r.fontMetrics().defaultRuleThickness,a=h.a.ruleSpan(t,n,r);return a.height=n,a.style.height=5*a.height+"em",a.maxFontSize=1,a},makeAnchor:function e(t,r,n,a){var i=new l.a.anchor(t,r,n,a);return y(i),i},makeFragment:function e(t){var r=new l.a.documentFragment(t);return y(r),r},makeVList:function e(t,r){var n=function e(t){if("individualShift"===t.positionType){for(var r=t.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,l=1;l"}},{key:"toText",value:function e(){return"mspace"===this.type?"0.16667em"===this.attributes.width?" ":" ":this.children.map(function(e){return e.toText()}).join("")}}]),e}(),h=function(){function e(t){o()(this,e),this.text=t}return s()(e,[{key:"toNode",value:function e(){return document.createTextNode(this.text)}},{key:"toMarkup",value:function e(){return u.a.escape(this.text)}},{key:"toText",value:function e(){return this.text}}]),e}();t.a={MathNode:c,TextNode:h}},function(e,t,r){"use strict";r.d(t,"e",function(){return p}),r.d(t,"d",function(){return m}),r.d(t,"a",function(){return v}),r.d(t,"b",function(){return g}),t.c=function n(e,t,r){var n=v(e,r),i=new o.a.MathNode("mrow",n),l=new o.a.MathNode("annotation",[new o.a.TextNode(t)]);l.setAttribute("encoding","application/x-tex");var s=new o.a.MathNode("semantics",[i,l]),u=new o.a.MathNode("math",[s]);return a.a.makeSpan(["katex-mathml"],[u])};var a=r(0),i=r(30),o=r(1),l=r(6),s=r(9),u=r(28),c=r(5),h=r(13),p=function e(t,r){return u.a[r][t]&&u.a[r][t].replace&&(t=u.a[r][t].replace),new o.a.TextNode(t)},f=function e(t,r){var n=r.fontFamily;if(!n)return null;var o=t.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"bold-italic";var l=t.value;if(c.a.contains(["\\imath","\\jmath"],l))return null;u.a[o][l]&&u.a[o][l].replace&&(l=u.a[o][l].replace);var s=a.a.fontMap[n].fontName;return i.a.getCharacterMetrics(l,s,o)?a.a.fontMap[n].variant:null},m={},d={mi:"italic",mn:"normal",mtext:"normal"};m.mathord=function(e,t){var r=new o.a.MathNode("mi",[p(e.value,e.mode)]),n=f(e,t)||"italic";return n!==d[r.type]&&r.setAttribute("mathvariant",n),r},m.textord=function(e,t){var r=p(e.value,e.mode),n=f(e,t)||"normal",a=void 0;return a="text"===e.mode?new o.a.MathNode("mtext",[r]):/[0-9]/.test(e.value)?new o.a.MathNode("mn",[r]):"\\prime"===e.value?new o.a.MathNode("mo",[r]):new o.a.MathNode("mi",[r]),n!==d[a.type]&&a.setAttribute("mathvariant",n),a},m.bin=function(e,t){var r=new o.a.MathNode("mo",[p(e.value,e.mode)]),n=f(e,t);return"bold-italic"===n&&r.setAttribute("mathvariant",n),r},m.rel=function(e){return new o.a.MathNode("mo",[p(e.value,e.mode)])},m.open=function(e){return new o.a.MathNode("mo",[p(e.value,e.mode)])},m.close=function(e){return new o.a.MathNode("mo",[p(e.value,e.mode)])},m.inner=function(e){return new o.a.MathNode("mo",[p(e.value,e.mode)])},m.punct=function(e){var t=new o.a.MathNode("mo",[p(e.value,e.mode)]);return t.setAttribute("separator","true"),t},m.ordgroup=function(e,t){var r=v(e.value,t);return new o.a.MathNode("mrow",r)},m.supsub=function(e,t){var r=!1,n=void 0;e.value.base&&"horizBrace"===e.value.base.value.type&&!!e.value.sup===e.value.base.value.isOver&&(r=!0,n=e.value.base.value.isOver);var a=[g(e.value.base,t,!0)];e.value.sub&&a.push(g(e.value.sub,t,!0)),e.value.sup&&a.push(g(e.value.sup,t,!0));var i=void 0;if(r)i=n?"mover":"munder";else if(e.value.sub)if(e.value.sup){var l=e.value.base;i=l&&l.value.limits&&t.style===s.a.DISPLAY?"munderover":"msubsup"}else{var u=e.value.base;i=u&&u.value.limits&&t.style===s.a.DISPLAY?"munder":"msub"}else{var c=e.value.base;i=c&&c.value.limits&&t.style===s.a.DISPLAY?"mover":"msup"}return new o.a.MathNode(i,a)},m.spacing=function(e){var t=void 0;return"\\ "===e.value||"\\space"===e.value||" "===e.value||"~"===e.value?t=new o.a.MathNode("mtext",[new o.a.TextNode(" ")]):(t=new o.a.MathNode("mspace")).setAttribute("width",a.a.spacingFunctions[e.value].size),t},m.horizBrace=function(e,t){var r=h.a.mathMLnode(e.value.label);return new o.a.MathNode(e.value.isOver?"mover":"munder",[g(e.value.base,t),r])},m.xArrow=function(e,t){var r=h.a.mathMLnode(e.value.label),n=void 0,a=void 0;if(e.value.body){var i=g(e.value.body,t);e.value.below?(a=g(e.value.below,t),n=new o.a.MathNode("munderover",[r,a,i])):n=new o.a.MathNode("mover",[r,i])}else e.value.below?(a=g(e.value.below,t),n=new o.a.MathNode("munder",[r,a])):n=new o.a.MathNode("mover",[r]);return n},m.mclass=function(e,t){var r=v(e.value.value,t);return new o.a.MathNode("mstyle",r)},m.raisebox=function(e,t){var r=new o.a.MathNode("mpadded",[g(e.value.body,t)]),n=e.value.dy.value.number+e.value.dy.value.unit;return r.setAttribute("voffset",n),r};var v=function e(t,r){for(var n=[],a=0;a2&&void 0!==arguments[2]&&arguments[2];if(!t)return new o.a.MathNode("mrow");if(m[t.type]){var a=m[t.type](t,r);return n&&"mrow"===a.type&&1===a.children.length?a.children[0]:a}throw new l.a("Got group of unknown type: '"+t.type+"'")}},function(e,t,r){"use strict";r.d(t,"a",function(){return o}),t.b=function n(e){for(var t=e.type,r=e.names,n=e.props,l=e.handler,s=e.htmlBuilder,u=e.mathmlBuilder,c={numArgs:n.numArgs,argTypes:n.argTypes,greediness:void 0===n.greediness?1:n.greediness,allowedInText:!!n.allowedInText,allowedInMath:void 0===n.allowedInMath||n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,handler:l},h=0;h3&&void 0!==arguments[3]?arguments[3]:[null,null],i=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:"right";if((t instanceof h.a.documentFragment||t instanceof h.a.anchor)&&t.children.length){if("right"===r)return e(t.children[t.children.length-1]);if("left"===r)return e(t.children[0])}return t},k=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right";return t?(t=w(t,r),f.a.contains(["mord","mop","mbin","mrel","mopen","mclose","mpunct","minner"],t.classes[0])?t.classes[0]:null):null},M=function e(t){return t=w(t,"left"),f.a.contains(t.classes,"mtight")},S=function e(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return v(r.concat(n))},z={mathord:function(e,t){return c.a.makeOrd(e,t,"mathord")},textord:function(e,t){return c.a.makeOrd(e,t,"textord")},bin:function(e,t){return c.a.mathsym(e.value,e.mode,t,["mbin"])},rel:function(e,t){return c.a.mathsym(e.value,e.mode,t,["mrel"])},open:function(e,t){return c.a.mathsym(e.value,e.mode,t,["mopen"])},close:function(e,t){return c.a.mathsym(e.value,e.mode,t,["mclose"])},inner:function(e,t){return c.a.mathsym(e.value,e.mode,t,["minner"])},punct:function(e,t){return c.a.mathsym(e.value,e.mode,t,["mpunct"])},ordgroup:function(e,t){return v(["mord"],x(e.value,t,!0),t)},supsub:function(e,t){if(function e(t,r){if(t.value.base){var n=t.value.base;return"op"===n.type?n.value.limits&&(r.style.size===u.a.DISPLAY.size||n.value.alwaysHandleSupSub):"accent"===n.type?f.a.isCharacterBox(n.value.base):"horizBrace"===n.type?!t.value.sub===n.value.isOver:null}return!1}(e,t))return z[e.value.base.type](e,t);var r=O(e.value.base,t),n=void 0,a=void 0,i=t.fontMetrics(),o=void 0,l=0,s=0;e.value.sup&&(o=t.havingStyle(t.style.sup()),n=O(e.value.sup,o,t),f.a.isCharacterBox(e.value.base)||(l=r.height-o.fontMetrics().supDrop*o.sizeMultiplier/t.sizeMultiplier)),e.value.sub&&(o=t.havingStyle(t.style.sub()),a=O(e.value.sub,o,t),f.a.isCharacterBox(e.value.base)||(s=r.depth+o.fontMetrics().subDrop*o.sizeMultiplier/t.sizeMultiplier));var p;p=t.style===u.a.DISPLAY?i.sup1:t.style.cramped?i.sup3:i.sup2;var m=t.sizeMultiplier,d=.5/i.ptPerEm/m+"em",g=void 0;if(e.value.sup)if(e.value.sub){l=Math.max(l,p,n.depth+.25*i.xHeight),s=Math.max(s,i.sub2);var y=i.defaultRuleThickness;if(l-n.depth-(a.height-s)<4*y){s=4*y-(l-n.depth)+a.height;var b=.8*i.xHeight-(l-n.depth);b>0&&(l+=b,s-=b)}var x=[{type:"elem",elem:a,shift:s,marginRight:d},{type:"elem",elem:n,shift:-l,marginRight:d}];r instanceof h.a.symbolNode&&(x[0].marginLeft=-r.italic+"em"),g=c.a.makeVList({positionType:"individualShift",children:x},t)}else l=Math.max(l,p,n.depth+.25*i.xHeight),g=c.a.makeVList({positionType:"shift",positionData:-l,children:[{type:"elem",elem:n,marginRight:d}]},t);else{s=Math.max(s,i.sub1,a.height-.8*i.xHeight);var w=[{type:"elem",elem:a,marginRight:d}];r instanceof h.a.symbolNode&&(w[0].marginLeft=-r.italic+"em"),g=c.a.makeVList({positionType:"shift",positionData:s,children:w},t)}var M=k(r)||"mord";return v([M],[r,v(["msupsub"],[g])],t)},spacing:function(e,t){return"\\ "===e.value||"\\space"===e.value||" "===e.value||"~"===e.value?"text"===e.mode?c.a.makeOrd(e,t,"textord"):v(["mspace"],[c.a.mathsym(e.value,e.mode,t)],t):v(["mspace",c.a.spacingFunctions[e.value].className],[],t)},horizBrace:function(e,t){var r=t.style,n="supsub"===e.type,a=void 0,i=void 0;n&&(e.value.sup?(i=t.havingStyle(r.sup()),a=O(e.value.sup,i,t)):(i=t.havingStyle(r.sub()),a=O(e.value.sub,i,t)),e=e.value.base);var o=O(e.value.base,t.havingBaseStyle(u.a.DISPLAY)),l=m.a.svgSpan(e,t),s=void 0;if(e.value.isOver?(s=c.a.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:l}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(s=c.a.makeVList({positionType:"bottom",positionData:o.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:o}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var h=v(["mord",e.value.isOver?"mover":"munder"],[s],t);s=e.value.isOver?c.a.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:a}]},t):c.a.makeVList({positionType:"bottom",positionData:h.depth+.2+a.height,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:h}]},t)}return v(["mord",e.value.isOver?"mover":"munder"],[s],t)},xArrow:function(e,t){var r=t.style,n=t.havingStyle(r.sup()),a=O(e.value.body,n,t);a.classes.push("x-arrow-pad");var i=void 0;e.value.below&&(n=t.havingStyle(r.sub()),(i=O(e.value.below,n,t)).classes.push("x-arrow-pad"));var o=m.a.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*o.height,s=-t.fontMetrics().axisHeight-.5*o.height-.111;"\\xleftequilibrium"===e.value.label&&(s-=a.depth);var u=void 0;if(e.value.below){var h=-t.fontMetrics().axisHeight+i.height+.5*o.height+.111;u=c.a.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:o,shift:l},{type:"elem",elem:i,shift:h}]},t)}else u=c.a.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:o,shift:l}]},t);return u.children[0].children[0].children[1].classes.push("svg-align"),v(["mrel","x-arrow"],[u],t)},mclass:function(e,t){var r=x(e.value.value,t,!0);return v([e.value.mclass],r,t)},raisebox:function(e,t){var r=z.sizing({value:{value:[{type:"text",value:{body:e.value.value,font:"mathrm"}}],size:6}},t),n=Object(p.a)(e.value.dy.value,t);return c.a.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},t)}},O=function e(t,r,n){if(!t)return v();if(z[t.type]){var a=z[t.type](t,r);if(n&&r.size!==n.size){a=v(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}throw new s.a("Got group of unknown type: '"+t.type+"'")}},function(e,t,r){"use strict";var n=Array.prototype.indexOf,a=function e(t,r){if(null==t)return-1;if(n&&t.indexOf===n)return t.indexOf(r);for(var a=t.length,i=0;i":">","<":"<",'"':""","'":"'"},l=/[&><"']/g,s=void 0;if("undefined"!=typeof document){var u=document.createElement("span");s="textContent"in u?function e(t,r){t.textContent=r}:function e(t,r){t.innerText=r}}var c=function e(t){return!!t&&("ordgroup"===t.type?1===t.value.length?e(t.value[0]):t:"color"===t.type?1===t.value.value.length?e(t.value.value[0]):t:"font"===t.type?e(t.value.body):t)};t.a={contains:function e(t,r){return-1!==a(t,r)},deflt:function e(t,r){return void 0===t?r:t},escape:function h(e){return String(e).replace(l,function(e){return o[e]})},hyphenate:function e(t){return t.replace(i,"-$1").toLowerCase()},indexOf:a,setTextContent:s,clearNode:function p(e){s(e,"")},getBaseElem:c,isCharacterBox:function e(t){var r=c(t);return"mathord"===r.type||"textord"===r.type||"bin"===r.type||"rel"===r.type||"inner"===r.type||"open"===r.type||"close"===r.type||"punct"===r.type}}},function(e,t,r){"use strict";var n=r(7),a=r.n(n),i=(r(14),r(27),function e(t,r){a()(this,e);var n="KaTeX parse error: "+t,i=void 0,o=r&&r.loc;if(o&&o.start<=o.end){var l=o.lexer.input;i=o.start;var s=o.end;i===l.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var u=l.slice(i,s).replace(/[^]/g,"$&̲");n+=(i>15?"…"+l.slice(i-15,i):l.slice(0,i))+u+(s+15=2}}]),e}(),s=[new l(0,0,!1),new l(1,0,!0),new l(2,1,!1),new l(3,1,!0),new l(4,2,!1),new l(5,2,!0),new l(6,3,!1),new l(7,3,!0)],u=[4,5,4,5,6,7,6,7],c=[5,5,5,5,7,7,7,7],h=[2,3,4,5,6,7,6,7],p=[3,3,5,5,7,7,7,7],f=[1,1,3,3,5,5,7,7],m=[0,1,2,3,2,3,2,3];t.a={DISPLAY:s[0],TEXT:s[2],SCRIPT:s[4],SCRIPTSCRIPT:s[6]}},function(e,t,r){"use strict";t.__esModule=!0;var n=function a(e){return e&&e.__esModule?e:{default:e}}(r(73));t.default=function(){function e(e,t){for(var r=0;r=0;r--)t[r]||t.splice(r,1);return t.join(" ")},d=function(){function e(t,r,n,a){if(s()(this,e),this.classes=t||[],this.children=r||[],this.height=0,this.depth=0,this.maxFontSize=0,this.style=o()({},a),this.attributes={},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}}return c()(e,[{key:"setAttribute",value:function e(t,r){this.attributes[t]=r}},{key:"tryCombine",value:function e(t){return!1}},{key:"toNode",value:function e(){var t=document.createElement("span");for(var r in t.className=m(this.classes),this.style)Object.prototype.hasOwnProperty.call(this.style,r)&&(t.style[r]=this.style[r]);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);for(var a=0;a"}}]),e}(),v=function(){function e(t,r,n,a){s()(this,e),this.href=t,this.classes=r,this.children=n,this.height=0,this.depth=0,this.maxFontSize=0,this.style={},this.attributes={},a.style.isTight()&&this.classes.push("mtight");var i=a.getColor();i&&(this.style.color=i)}return c()(e,[{key:"setAttribute",value:function e(t,r){this.attributes[t]=r}},{key:"tryCombine",value:function e(t){return!1}},{key:"toNode",value:function e(){var t=document.createElement("a");for(var r in t.setAttribute("href",this.href),this.classes.length&&(t.className=m(this.classes)),this.style)Object.prototype.hasOwnProperty.call(this.style,r)&&(t.style[r]=this.style[r]);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);for(var a=0;a"}}]),e}(),g=function(){function e(t){s()(this,e),this.children=t||[],this.height=0,this.depth=0,this.maxFontSize=0}return c()(e,[{key:"toNode",value:function e(){for(var t=document.createDocumentFragment(),r=0;r0||m(this.classes)!==m(r.classes)||this.skew!==r.skew||this.maxFontSize!==r.maxFontSize)return!1;for(var n in this.style)if(this.style.hasOwnProperty(n)&&this.style[n]!==r.style[n])return!1;for(var a in r.style)if(r.style.hasOwnProperty(a)&&this.style[a]!==r.style[a])return!1;return this.value+=r.value,this.height=Math.max(this.height,r.height),this.depth=Math.max(this.depth,r.depth),this.italic=r.italic,!0}},{key:"toNode",value:function e(){var t=document.createTextNode(this.value),r=null;for(var n in this.italic>0&&((r=document.createElement("span")).style.marginRight=this.italic+"em"),this.classes.length>0&&((r=r||document.createElement("span")).className=m(this.classes)),this.style)this.style.hasOwnProperty(n)&&((r=r||document.createElement("span")).style[n]=this.style[n]);return r?(r.appendChild(t),r):t}},{key:"toMarkup",value:function e(){var t=!1,r="0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(a)&&(n+=p.a.hyphenate(a)+":"+this.style[a]+";");n&&(t=!0,r+=' style="'+p.a.escape(n)+'"');var i=p.a.escape(this.value);return t?(r+=">",r+=i,r+=""):i}}]),e}(),x=function(){function e(t,r){s()(this,e),this.children=t||[],this.attributes=r||{},this.height=0,this.depth=0,this.maxFontSize=0}return c()(e,[{key:"toNode",value:function e(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);for(var n=0;n"}}]),e}(),w=function(){function e(t,r){s()(this,e),this.pathName=t,this.alternate=r}return c()(e,[{key:"toNode",value:function e(){var t=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?t.setAttribute("d",this.alternate):t.setAttribute("d",f.a.path[this.pathName]),t}},{key:"toMarkup",value:function e(){return this.alternate?"":""}}]),e}(),k=function(){function e(t){s()(this,e),this.attributes=t||{}}return c()(e,[{key:"toNode",value:function e(){var t=document.createElementNS("http://www.w3.org/2000/svg","line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);return t}},{key:"toMarkup",value:function e(){var t=""}}]),e}();t.a={span:d,anchor:v,documentFragment:g,symbolNode:b,svgNode:x,pathNode:w,lineNode:k}},function(e,t,r){"use strict";var n=r(57),a=r.n(n),i=r(12),o=r(0),l=r(1),s=r(5),u={widehat:"^",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⎵",overbrace:"⏞",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋"},c={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,667],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]};t.a={encloseSpan:function e(t,r,n,a){var l=void 0,s=t.height+t.depth+2*n;if(/fbox|color/.test(r)){if(l=o.a.makeSpan(["stretchy",r],[],a),"fbox"===r){var u=a.color&&a.getColor();u&&(l.style.borderColor=u)}}else{var c=[];/^[bx]cancel$/.test(r)&&c.push(new i.a.lineNode({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&c.push(new i.a.lineNode({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var h=new i.a.svgNode(c,{width:"100%",height:s+"em"});l=o.a.makeSpan([],[h],a)}return l.height=s,l.style.height=s+"em",l},mathMLnode:function e(t){var r=new l.a.MathNode("mo",[new l.a.TextNode(u[t.substr(1)])]);return r.setAttribute("stretchy","true"),r},ruleSpan:function e(t,r,n){var a=void 0,l=void 0,s="stretchy";return"vertical-separator"===t?(a=new i.a.pathNode("vertSeparator"),l=new i.a.svgNode([a],{width:"0.25em",height:"400em",viewBox:"0 0 250 400000",preserveAspectRatio:"xMinYMin slice"}),s="vertical-separator"):(a=new i.a.pathNode("stdHorizRule"),l=new i.a.svgNode([a],{width:"400em",height:5*r+"em",viewBox:"0 0 400000 200",preserveAspectRatio:"xMinYMin slice"})),o.a.makeSpan([s],[l],n)},svgSpan:function e(t,r){var n=function l(){var e=4e5,n=t.value.label.substr(1);if(s.a.contains(["widehat","widetilde","utilde"],n)){var l=function e(t){return"ordgroup"===t.type?t.value.length:1}(t.value.base),u=void 0,h=void 0,p=void 0;if(l>5)u="widehat"===n?420:312,e="widehat"===n?2364:2340,p="widehat"===n?.42:.34,h=("widehat"===n?"widehat":"tilde")+"4";else{var f=[1,1,2,2,3,3][l];"widehat"===n?(e=[0,1062,2364,2364,2364][f],u=[0,239,300,360,420][f],p=[0,.24,.3,.3,.36,.42][f],h="widehat"+f):(e=[0,600,1033,2339,2340][f],u=[0,260,286,306,312][f],p=[0,.26,.286,.3,.306,.34][f],h="tilde"+f)}var m=new i.a.pathNode(h),d=new i.a.svgNode([m],{width:"100%",height:p+"em",viewBox:"0 0 "+e+" "+u,preserveAspectRatio:"none"});return{span:o.a.makeSpan([],[d],r),minWidth:0,height:p}}var v=[],g=a()(c[n],4),y=g[0],b=g[1],x=g[2],w=g[3],k=x/1e3,M=y.length,S=void 0,z=void 0;if(1===M)S=["hide-tail"],z=[w];else if(2===M)S=["halfarrow-left","halfarrow-right"],z=["xMinYMin","xMaxYMin"];else{if(3!==M)throw new Error("Correct katexImagesData or update code here to support\n "+M+" children.");S=["brace-left","brace-center","brace-right"],z=["xMinYMin","xMidYMin","xMaxYMin"]}for(var O=0;O0&&(u.style.minWidth=h+"em"),u}}},function(e,t,r){"use strict";var n=r(7),a=r.n(n),i=r(31);t.a=function e(t,r,n,o,l){a()(this,e),this.type=t,this.value=r,this.mode=n,this.loc=i.a.range(o,l)}},function(e,t,r){var n=r(22),a=r(70),i=r(71),o=Object.defineProperty;t.f=r(23)?Object.defineProperty:function e(t,r,l){if(n(t),r=i(r,!0),n(l),a)try{return o(t,r,l)}catch(e){}if("get"in l||"set"in l)throw TypeError("Accessors not supported!");return"value"in l&&(t[r]=l.value),t}},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t){e.exports={}},function(e,t,r){e.exports={default:r(103),__esModule:!0}},function(e,t,r){"use strict";r.d(t,"b",function(){return o}),r.d(t,"a",function(){return l});var n=r(6),a=(r(43),{pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375}),i={ex:!0,em:!0,mu:!0},o=function e(t){return"string"!=typeof t&&(t=t.unit),t in a||t in i||"ex"===t},l=function e(t,r){var i=void 0;if(t.unit in a)i=a[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if("mu"===t.unit)i=r.fontMetrics().cssEmPerMu;else{var o=void 0;if(o=r.style.isTight()?r.havingStyle(r.style.text()):r,"ex"===t.unit)i=o.fontMetrics().xHeight;else{if("em"!==t.unit)throw new n.a("Invalid unit: '"+t.unit+"'");i=o.fontMetrics().quad}o!==r&&(i*=o.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*i,r.maxSize)}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(20);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){e.exports=!r(24)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){var n=r(16),a=r(8),i=r(47),o=r(26),l=function(e,t,r){var s,u,c,h=e&l.F,p=e&l.G,f=e&l.S,m=e&l.P,d=e&l.B,v=e&l.W,g=p?a:a[t]||(a[t]={}),y=g.prototype,b=p?n:f?n[t]:(n[t]||{}).prototype;for(s in p&&(r=t),r)(u=!h&&b&&void 0!==b[s])&&s in g||(c=u?b[s]:r[s],g[s]=p&&"function"!=typeof b[s]?r[s]:d&&u?i(c,n):v&&b[s]==c?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(c):m&&"function"==typeof c?i(Function.call,c):c,m&&((g.virtual||(g.virtual={}))[s]=c,e&l.R&&y&&!y[s]&&o(y,s,c)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,r){var n=r(15),a=r(33);e.exports=r(23)?function(e,t,r){return n.f(e,t,a(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){"use strict";r.d(t,"a",function(){return s});var n=r(7),a=r.n(n),i=r(10),o=r.n(i),l=r(31),s=function(){function e(t,r){a()(this,e),this.text=t,this.loc=r}return o()(e,[{key:"range",value:function t(r,n){return new e(n,l.a.range(this,r))}}]),e}()},function(e,t,r){"use strict";var n={math:{},text:{}};function a(e,t,r,a,i,o){n[e][i]={font:t,group:r,replace:a},o&&a&&(n[e][a]=n[e][i])}t.a=n;var i="math",o="text",l="main",s="ams",u="accent",c="bin",h="close",p="mathord",f="op",m="open",d="rel",v="spacing",g="textord";a(i,l,d,"≡","\\equiv",!0),a(i,l,d,"≺","\\prec",!0),a(i,l,d,"≻","\\succ",!0),a(i,l,d,"∼","\\sim",!0),a(i,l,d,"⊥","\\perp"),a(i,l,d,"⪯","\\preceq",!0),a(i,l,d,"⪰","\\succeq",!0),a(i,l,d,"≃","\\simeq",!0),a(i,l,d,"∣","\\mid",!0),a(i,l,d,"≪","\\ll"),a(i,l,d,"≫","\\gg",!0),a(i,l,d,"≍","\\asymp",!0),a(i,l,d,"∥","\\parallel"),a(i,l,d,"⋈","\\bowtie",!0),a(i,l,d,"⌣","\\smile",!0),a(i,l,d,"⊑","\\sqsubseteq",!0),a(i,l,d,"⊒","\\sqsupseteq",!0),a(i,l,d,"≐","\\doteq",!0),a(i,l,d,"⌢","\\frown",!0),a(i,l,d,"∋","\\ni",!0),a(i,l,d,"∝","\\propto",!0),a(i,l,d,"⊢","\\vdash",!0),a(i,l,d,"⊣","\\dashv",!0),a(i,l,d,"∋","\\owns"),a(i,l,"punct",".","\\ldotp"),a(i,l,"punct","⋅","\\cdotp"),a(i,l,g,"#","\\#"),a(o,l,g,"#","\\#"),a(i,l,g,"&","\\&"),a(o,l,g,"&","\\&"),a(i,l,g,"ℵ","\\aleph",!0),a(i,l,g,"∀","\\forall",!0),a(i,l,g,"ℏ","\\hbar"),a(i,l,g,"∃","\\exists",!0),a(i,l,g,"∇","\\nabla",!0),a(i,l,g,"♭","\\flat",!0),a(i,l,g,"ℓ","\\ell",!0),a(i,l,g,"♮","\\natural",!0),a(i,l,g,"♣","\\clubsuit",!0),a(i,l,g,"℘","\\wp",!0),a(i,l,g,"♯","\\sharp",!0),a(i,l,g,"♢","\\diamondsuit",!0),a(i,l,g,"ℜ","\\Re",!0),a(i,l,g,"♡","\\heartsuit",!0),a(i,l,g,"ℑ","\\Im",!0),a(i,l,g,"♠","\\spadesuit",!0),a(o,l,g,"§","\\S",!0),a(o,l,g,"¶","\\P",!0),a(i,l,g,"†","\\dag"),a(o,l,g,"†","\\dag"),a(o,l,g,"†","\\textdagger"),a(i,l,g,"‡","\\ddag"),a(o,l,g,"‡","\\ddag"),a(o,l,g,"†","\\textdaggerdbl"),a(i,l,h,"⎱","\\rmoustache"),a(i,l,m,"⎰","\\lmoustache"),a(i,l,h,"⟯","\\rgroup"),a(i,l,m,"⟮","\\lgroup"),a(i,l,c,"∓","\\mp",!0),a(i,l,c,"⊖","\\ominus",!0),a(i,l,c,"⊎","\\uplus",!0),a(i,l,c,"⊓","\\sqcap",!0),a(i,l,c,"∗","\\ast"),a(i,l,c,"⊔","\\sqcup",!0),a(i,l,c,"◯","\\bigcirc"),a(i,l,c,"∙","\\bullet"),a(i,l,c,"‡","\\ddagger"),a(i,l,c,"≀","\\wr",!0),a(i,l,c,"⨿","\\amalg"),a(i,l,c,"&","\\And"),a(i,l,d,"⟵","\\longleftarrow",!0),a(i,l,d,"⇐","\\Leftarrow",!0),a(i,l,d,"⟸","\\Longleftarrow",!0),a(i,l,d,"⟶","\\longrightarrow",!0),a(i,l,d,"⇒","\\Rightarrow",!0),a(i,l,d,"⟹","\\Longrightarrow",!0),a(i,l,d,"↔","\\leftrightarrow",!0),a(i,l,d,"⟷","\\longleftrightarrow",!0),a(i,l,d,"⇔","\\Leftrightarrow",!0),a(i,l,d,"⟺","\\Longleftrightarrow",!0),a(i,l,d,"↦","\\mapsto",!0),a(i,l,d,"⟼","\\longmapsto",!0),a(i,l,d,"↗","\\nearrow",!0),a(i,l,d,"↩","\\hookleftarrow",!0),a(i,l,d,"↪","\\hookrightarrow",!0),a(i,l,d,"↘","\\searrow",!0),a(i,l,d,"↼","\\leftharpoonup",!0),a(i,l,d,"⇀","\\rightharpoonup",!0),a(i,l,d,"↙","\\swarrow",!0),a(i,l,d,"↽","\\leftharpoondown",!0),a(i,l,d,"⇁","\\rightharpoondown",!0),a(i,l,d,"↖","\\nwarrow",!0),a(i,l,d,"⇌","\\rightleftharpoons",!0),a(i,s,d,"≮","\\nless",!0),a(i,s,d,"","\\nleqslant"),a(i,s,d,"","\\nleqq"),a(i,s,d,"⪇","\\lneq",!0),a(i,s,d,"≨","\\lneqq",!0),a(i,s,d,"","\\lvertneqq"),a(i,s,d,"⋦","\\lnsim",!0),a(i,s,d,"⪉","\\lnapprox",!0),a(i,s,d,"⊀","\\nprec",!0),a(i,s,d,"⋠","\\npreceq",!0),a(i,s,d,"⋨","\\precnsim",!0),a(i,s,d,"⪹","\\precnapprox",!0),a(i,s,d,"≁","\\nsim",!0),a(i,s,d,"","\\nshortmid"),a(i,s,d,"∤","\\nmid",!0),a(i,s,d,"⊬","\\nvdash",!0),a(i,s,d,"⊭","\\nvDash",!0),a(i,s,d,"⋪","\\ntriangleleft"),a(i,s,d,"⋬","\\ntrianglelefteq",!0),a(i,s,d,"⊊","\\subsetneq",!0),a(i,s,d,"","\\varsubsetneq"),a(i,s,d,"⫋","\\subsetneqq",!0),a(i,s,d,"","\\varsubsetneqq"),a(i,s,d,"≯","\\ngtr",!0),a(i,s,d,"","\\ngeqslant"),a(i,s,d,"","\\ngeqq"),a(i,s,d,"⪈","\\gneq",!0),a(i,s,d,"≩","\\gneqq",!0),a(i,s,d,"","\\gvertneqq"),a(i,s,d,"⋧","\\gnsim",!0),a(i,s,d,"⪊","\\gnapprox",!0),a(i,s,d,"⊁","\\nsucc",!0),a(i,s,d,"⋡","\\nsucceq",!0),a(i,s,d,"⋩","\\succnsim",!0),a(i,s,d,"⪺","\\succnapprox",!0),a(i,s,d,"≆","\\ncong",!0),a(i,s,d,"","\\nshortparallel"),a(i,s,d,"∦","\\nparallel",!0),a(i,s,d,"⊯","\\nVDash",!0),a(i,s,d,"⋫","\\ntriangleright"),a(i,s,d,"⋭","\\ntrianglerighteq",!0),a(i,s,d,"","\\nsupseteqq"),a(i,s,d,"⊋","\\supsetneq",!0),a(i,s,d,"","\\varsupsetneq"),a(i,s,d,"⫌","\\supsetneqq",!0),a(i,s,d,"","\\varsupsetneqq"),a(i,s,d,"⊮","\\nVdash",!0),a(i,s,d,"⪵","\\precneqq",!0),a(i,s,d,"⪶","\\succneqq",!0),a(i,s,d,"","\\nsubseteqq"),a(i,s,c,"⊴","\\unlhd"),a(i,s,c,"⊵","\\unrhd"),a(i,s,d,"↚","\\nleftarrow",!0),a(i,s,d,"↛","\\nrightarrow",!0),a(i,s,d,"⇍","\\nLeftarrow",!0),a(i,s,d,"⇏","\\nRightarrow",!0),a(i,s,d,"↮","\\nleftrightarrow",!0),a(i,s,d,"⇎","\\nLeftrightarrow",!0),a(i,s,d,"△","\\vartriangle"),a(i,s,g,"ℏ","\\hslash"),a(i,s,g,"▽","\\triangledown"),a(i,s,g,"◊","\\lozenge"),a(i,s,g,"Ⓢ","\\circledS"),a(i,s,g,"®","\\circledR"),a(o,s,g,"®","\\circledR"),a(i,s,g,"∡","\\measuredangle",!0),a(i,s,g,"∄","\\nexists"),a(i,s,g,"℧","\\mho"),a(i,s,g,"Ⅎ","\\Finv",!0),a(i,s,g,"⅁","\\Game",!0),a(i,s,g,"k","\\Bbbk"),a(i,s,g,"‵","\\backprime"),a(i,s,g,"▲","\\blacktriangle"),a(i,s,g,"▼","\\blacktriangledown"),a(i,s,g,"■","\\blacksquare"),a(i,s,g,"⧫","\\blacklozenge"),a(i,s,g,"★","\\bigstar"),a(i,s,g,"∢","\\sphericalangle",!0),a(i,s,g,"∁","\\complement",!0),a(i,s,g,"ð","\\eth",!0),a(i,s,g,"╱","\\diagup"),a(i,s,g,"╲","\\diagdown"),a(i,s,g,"□","\\square"),a(i,s,g,"□","\\Box"),a(i,s,g,"◊","\\Diamond"),a(i,s,g,"¥","\\yen",!0),a(i,s,g,"✓","\\checkmark",!0),a(o,s,g,"✓","\\checkmark"),a(i,s,g,"ℶ","\\beth",!0),a(i,s,g,"ℸ","\\daleth",!0),a(i,s,g,"ℷ","\\gimel",!0),a(i,s,g,"ϝ","\\digamma"),a(i,s,g,"ϰ","\\varkappa"),a(i,s,m,"┌","\\ulcorner"),a(i,s,h,"┐","\\urcorner"),a(i,s,m,"└","\\llcorner"),a(i,s,h,"┘","\\lrcorner"),a(i,s,d,"≦","\\leqq",!0),a(i,s,d,"⩽","\\leqslant"),a(i,s,d,"⪕","\\eqslantless",!0),a(i,s,d,"≲","\\lesssim"),a(i,s,d,"⪅","\\lessapprox"),a(i,s,d,"≊","\\approxeq",!0),a(i,s,c,"⋖","\\lessdot"),a(i,s,d,"⋘","\\lll"),a(i,s,d,"≶","\\lessgtr"),a(i,s,d,"⋚","\\lesseqgtr"),a(i,s,d,"⪋","\\lesseqqgtr"),a(i,s,d,"≑","\\doteqdot"),a(i,s,d,"≓","\\risingdotseq",!0),a(i,s,d,"≒","\\fallingdotseq",!0),a(i,s,d,"∽","\\backsim",!0),a(i,s,d,"⋍","\\backsimeq",!0),a(i,s,d,"⫅","\\subseteqq",!0),a(i,s,d,"⋐","\\Subset",!0),a(i,s,d,"⊏","\\sqsubset",!0),a(i,s,d,"≼","\\preccurlyeq",!0),a(i,s,d,"⋞","\\curlyeqprec",!0),a(i,s,d,"≾","\\precsim",!0),a(i,s,d,"⪷","\\precapprox",!0),a(i,s,d,"⊲","\\vartriangleleft"),a(i,s,d,"⊴","\\trianglelefteq"),a(i,s,d,"⊨","\\vDash"),a(i,s,d,"⊪","\\Vvdash",!0),a(i,s,d,"⌣","\\smallsmile"),a(i,s,d,"⌢","\\smallfrown"),a(i,s,d,"≏","\\bumpeq",!0),a(i,s,d,"≎","\\Bumpeq",!0),a(i,s,d,"≧","\\geqq",!0),a(i,s,d,"⩾","\\geqslant",!0),a(i,s,d,"⪖","\\eqslantgtr",!0),a(i,s,d,"≳","\\gtrsim",!0),a(i,s,d,"⪆","\\gtrapprox",!0),a(i,s,c,"⋗","\\gtrdot"),a(i,s,d,"⋙","\\ggg",!0),a(i,s,d,"≷","\\gtrless",!0),a(i,s,d,"⋛","\\gtreqless",!0),a(i,s,d,"⪌","\\gtreqqless",!0),a(i,s,d,"≖","\\eqcirc",!0),a(i,s,d,"≗","\\circeq",!0),a(i,s,d,"≜","\\triangleq",!0),a(i,s,d,"∼","\\thicksim"),a(i,s,d,"≈","\\thickapprox"),a(i,s,d,"⫆","\\supseteqq",!0),a(i,s,d,"⋑","\\Supset",!0),a(i,s,d,"⊐","\\sqsupset",!0),a(i,s,d,"≽","\\succcurlyeq",!0),a(i,s,d,"⋟","\\curlyeqsucc",!0),a(i,s,d,"≿","\\succsim",!0),a(i,s,d,"⪸","\\succapprox",!0),a(i,s,d,"⊳","\\vartriangleright"),a(i,s,d,"⊵","\\trianglerighteq"),a(i,s,d,"⊩","\\Vdash",!0),a(i,s,d,"∣","\\shortmid"),a(i,s,d,"∥","\\shortparallel"),a(i,s,d,"≬","\\between",!0),a(i,s,d,"⋔","\\pitchfork",!0),a(i,s,d,"∝","\\varpropto"),a(i,s,d,"◀","\\blacktriangleleft"),a(i,s,d,"∴","\\therefore",!0),a(i,s,d,"∍","\\backepsilon"),a(i,s,d,"▶","\\blacktriangleright"),a(i,s,d,"∵","\\because",!0),a(i,s,d,"⋘","\\llless"),a(i,s,d,"⋙","\\gggtr"),a(i,s,c,"⊲","\\lhd"),a(i,s,c,"⊳","\\rhd"),a(i,s,d,"≂","\\eqsim",!0),a(i,l,d,"⋈","\\Join"),a(i,s,d,"≑","\\Doteq",!0),a(i,s,c,"∔","\\dotplus",!0),a(i,s,c,"∖","\\smallsetminus"),a(i,s,c,"⋒","\\Cap",!0),a(i,s,c,"⋓","\\Cup",!0),a(i,s,c,"⩞","\\doublebarwedge",!0),a(i,s,c,"⊟","\\boxminus",!0),a(i,s,c,"⊞","\\boxplus",!0),a(i,s,c,"⋇","\\divideontimes",!0),a(i,s,c,"⋉","\\ltimes",!0),a(i,s,c,"⋊","\\rtimes",!0),a(i,s,c,"⋋","\\leftthreetimes",!0),a(i,s,c,"⋌","\\rightthreetimes",!0),a(i,s,c,"⋏","\\curlywedge",!0),a(i,s,c,"⋎","\\curlyvee",!0),a(i,s,c,"⊝","\\circleddash",!0),a(i,s,c,"⊛","\\circledast",!0),a(i,s,c,"⋅","\\centerdot"),a(i,s,c,"⊺","\\intercal",!0),a(i,s,c,"⋒","\\doublecap"),a(i,s,c,"⋓","\\doublecup"),a(i,s,c,"⊠","\\boxtimes",!0),a(i,s,d,"⇢","\\dashrightarrow",!0),a(i,s,d,"⇠","\\dashleftarrow",!0),a(i,s,d,"⇇","\\leftleftarrows",!0),a(i,s,d,"⇆","\\leftrightarrows",!0),a(i,s,d,"⇚","\\Lleftarrow",!0),a(i,s,d,"↞","\\twoheadleftarrow",!0),a(i,s,d,"↢","\\leftarrowtail",!0),a(i,s,d,"↫","\\looparrowleft",!0),a(i,s,d,"⇋","\\leftrightharpoons",!0),a(i,s,d,"↶","\\curvearrowleft",!0),a(i,s,d,"↺","\\circlearrowleft",!0),a(i,s,d,"↰","\\Lsh",!0),a(i,s,d,"⇈","\\upuparrows",!0),a(i,s,d,"↿","\\upharpoonleft",!0),a(i,s,d,"⇃","\\downharpoonleft",!0),a(i,s,d,"⊸","\\multimap",!0),a(i,s,d,"↭","\\leftrightsquigarrow",!0),a(i,s,d,"⇉","\\rightrightarrows",!0),a(i,s,d,"⇄","\\rightleftarrows",!0),a(i,s,d,"↠","\\twoheadrightarrow",!0),a(i,s,d,"↣","\\rightarrowtail",!0),a(i,s,d,"↬","\\looparrowright",!0),a(i,s,d,"↷","\\curvearrowright",!0),a(i,s,d,"↻","\\circlearrowright",!0),a(i,s,d,"↱","\\Rsh",!0),a(i,s,d,"⇊","\\downdownarrows",!0),a(i,s,d,"↾","\\upharpoonright",!0),a(i,s,d,"⇂","\\downharpoonright",!0),a(i,s,d,"⇝","\\rightsquigarrow",!0),a(i,s,d,"⇝","\\leadsto"),a(i,s,d,"⇛","\\Rrightarrow",!0),a(i,s,d,"↾","\\restriction"),a(i,l,g,"‘","`"),a(i,l,g,"$","\\$"),a(o,l,g,"$","\\$"),a(o,l,g,"$","\\textdollar"),a(i,l,g,"%","\\%"),a(o,l,g,"%","\\%"),a(i,l,g,"_","\\_"),a(o,l,g,"_","\\_"),a(o,l,g,"_","\\textunderscore"),a(i,l,g,"∠","\\angle",!0),a(i,l,g,"∞","\\infty",!0),a(i,l,g,"′","\\prime"),a(i,l,g,"△","\\triangle"),a(i,l,g,"Γ","\\Gamma",!0),a(i,l,g,"Δ","\\Delta",!0),a(i,l,g,"Θ","\\Theta",!0),a(i,l,g,"Λ","\\Lambda",!0),a(i,l,g,"Ξ","\\Xi",!0),a(i,l,g,"Π","\\Pi",!0),a(i,l,g,"Σ","\\Sigma",!0),a(i,l,g,"Υ","\\Upsilon",!0),a(i,l,g,"Φ","\\Phi",!0),a(i,l,g,"Ψ","\\Psi",!0),a(i,l,g,"Ω","\\Omega",!0),a(i,l,g,"¬","\\neg"),a(i,l,g,"¬","\\lnot"),a(i,l,g,"⊤","\\top"),a(i,l,g,"⊥","\\bot"),a(i,l,g,"∅","\\emptyset"),a(i,s,g,"∅","\\varnothing"),a(i,l,p,"α","\\alpha",!0),a(i,l,p,"β","\\beta",!0),a(i,l,p,"γ","\\gamma",!0),a(i,l,p,"δ","\\delta",!0),a(i,l,p,"ϵ","\\epsilon",!0),a(i,l,p,"ζ","\\zeta",!0),a(i,l,p,"η","\\eta",!0),a(i,l,p,"θ","\\theta",!0),a(i,l,p,"ι","\\iota",!0),a(i,l,p,"κ","\\kappa",!0),a(i,l,p,"λ","\\lambda",!0),a(i,l,p,"μ","\\mu",!0),a(i,l,p,"ν","\\nu",!0),a(i,l,p,"ξ","\\xi",!0),a(i,l,p,"ο","\\omicron",!0),a(i,l,p,"π","\\pi",!0),a(i,l,p,"ρ","\\rho",!0),a(i,l,p,"σ","\\sigma",!0),a(i,l,p,"τ","\\tau",!0),a(i,l,p,"υ","\\upsilon",!0),a(i,l,p,"ϕ","\\phi",!0),a(i,l,p,"χ","\\chi",!0),a(i,l,p,"ψ","\\psi",!0),a(i,l,p,"ω","\\omega",!0),a(i,l,p,"ε","\\varepsilon",!0),a(i,l,p,"ϑ","\\vartheta",!0),a(i,l,p,"ϖ","\\varpi",!0),a(i,l,p,"ϱ","\\varrho",!0),a(i,l,p,"ς","\\varsigma",!0),a(i,l,p,"φ","\\varphi",!0),a(i,l,c,"∗","*"),a(i,l,c,"+","+"),a(i,l,c,"−","-"),a(i,l,c,"⋅","\\cdot",!0),a(i,l,c,"∘","\\circ"),a(i,l,c,"÷","\\div",!0),a(i,l,c,"±","\\pm",!0),a(i,l,c,"×","\\times",!0),a(i,l,c,"∩","\\cap",!0),a(i,l,c,"∪","\\cup",!0),a(i,l,c,"∖","\\setminus"),a(i,l,c,"∧","\\land"),a(i,l,c,"∨","\\lor"),a(i,l,c,"∧","\\wedge",!0),a(i,l,c,"∨","\\vee",!0),a(i,l,g,"√","\\surd"),a(i,l,m,"(","("),a(i,l,m,"[","["),a(i,l,m,"⟨","\\langle",!0),a(i,l,m,"∣","\\lvert"),a(i,l,m,"∥","\\lVert"),a(i,l,h,")",")"),a(i,l,h,"]","]"),a(i,l,h,"?","?"),a(i,l,h,"!","!"),a(i,l,h,"⟩","\\rangle",!0),a(i,l,h,"∣","\\rvert"),a(i,l,h,"∥","\\rVert"),a(i,l,d,"=","="),a(i,l,d,"<","<"),a(i,l,d,">",">"),a(i,l,d,":",":"),a(i,l,d,"≈","\\approx",!0),a(i,l,d,"≅","\\cong",!0),a(i,l,d,"≥","\\ge"),a(i,l,d,"≥","\\geq",!0),a(i,l,d,"←","\\gets"),a(i,l,d,">","\\gt"),a(i,l,d,"∈","\\in",!0),a(i,l,d,"∉","\\notin",!0),a(i,l,d,"̸","\\not"),a(i,l,d,"⊂","\\subset",!0),a(i,l,d,"⊃","\\supset",!0),a(i,l,d,"⊆","\\subseteq",!0),a(i,l,d,"⊇","\\supseteq",!0),a(i,s,d,"⊈","\\nsubseteq",!0),a(i,s,d,"⊉","\\nsupseteq",!0),a(i,l,d,"⊨","\\models"),a(i,l,d,"←","\\leftarrow",!0),a(i,l,d,"≤","\\le"),a(i,l,d,"≤","\\leq",!0),a(i,l,d,"<","\\lt"),a(i,l,d,"≠","\\ne",!0),a(i,l,d,"≠","\\neq"),a(i,l,d,"→","\\rightarrow",!0),a(i,l,d,"→","\\to"),a(i,s,d,"≱","\\ngeq",!0),a(i,s,d,"≰","\\nleq",!0),a(i,l,v,null,"\\!"),a(i,l,v," ","\\ "),a(i,l,v," ","~"),a(i,l,v,null,"\\,"),a(i,l,v,null,"\\:"),a(i,l,v,null,"\\;"),a(i,l,v,null,"\\enspace"),a(i,l,v,null,"\\qquad"),a(i,l,v,null,"\\quad"),a(i,l,v," ","\\space"),a(i,l,v," ","\\nobreakspace"),a(o,l,v,null,"\\!"),a(o,l,v," ","\\ "),a(o,l,v," ","~"),a(o,l,v,null,"\\,"),a(o,l,v,null,"\\:"),a(o,l,v,null,"\\;"),a(o,l,v,null,"\\enspace"),a(o,l,v,null,"\\qquad"),a(o,l,v,null,"\\quad"),a(o,l,v," ","\\space"),a(o,l,v," ","\\nobreakspace"),a(i,l,"punct",",",","),a(i,l,"punct",";",";"),a(i,l,"punct",":","\\colon"),a(i,s,c,"⊼","\\barwedge",!0),a(i,s,c,"⊻","\\veebar",!0),a(i,l,c,"⊙","\\odot",!0),a(i,l,c,"⊕","\\oplus",!0),a(i,l,c,"⊗","\\otimes",!0),a(i,l,g,"∂","\\partial",!0),a(i,l,c,"⊘","\\oslash",!0),a(i,s,c,"⊚","\\circledcirc",!0),a(i,s,c,"⊡","\\boxdot",!0),a(i,l,c,"△","\\bigtriangleup"),a(i,l,c,"▽","\\bigtriangledown"),a(i,l,c,"†","\\dagger"),a(i,l,c,"⋄","\\diamond"),a(i,l,c,"⋆","\\star"),a(i,l,c,"◃","\\triangleleft"),a(i,l,c,"▹","\\triangleright"),a(i,l,m,"{","\\{"),a(o,l,g,"{","\\{"),a(o,l,g,"{","\\textbraceleft"),a(i,l,h,"}","\\}"),a(o,l,g,"}","\\}"),a(o,l,g,"}","\\textbraceright"),a(i,l,m,"{","\\lbrace"),a(i,l,h,"}","\\rbrace"),a(i,l,m,"[","\\lbrack"),a(i,l,h,"]","\\rbrack"),a(o,l,g,"<","\\textless"),a(o,l,g,">","\\textgreater"),a(i,l,m,"⌊","\\lfloor"),a(i,l,h,"⌋","\\rfloor"),a(i,l,m,"⌈","\\lceil"),a(i,l,h,"⌉","\\rceil"),a(i,l,g,"\\","\\backslash"),a(i,l,g,"∣","|"),a(i,l,g,"∣","\\vert"),a(o,l,g,"|","\\textbar"),a(i,l,g,"∥","\\|"),a(i,l,g,"∥","\\Vert"),a(o,l,g,"∥","\\textbardbl"),a(i,l,d,"↑","\\uparrow",!0),a(i,l,d,"⇑","\\Uparrow",!0),a(i,l,d,"↓","\\downarrow",!0),a(i,l,d,"⇓","\\Downarrow",!0),a(i,l,d,"↕","\\updownarrow",!0),a(i,l,d,"⇕","\\Updownarrow",!0),a(i,l,f,"∐","\\coprod"),a(i,l,f,"⋁","\\bigvee"),a(i,l,f,"⋀","\\bigwedge"),a(i,l,f,"⨄","\\biguplus"),a(i,l,f,"⋂","\\bigcap"),a(i,l,f,"⋃","\\bigcup"),a(i,l,f,"∫","\\int"),a(i,l,f,"∫","\\intop"),a(i,l,f,"∬","\\iint"),a(i,l,f,"∭","\\iiint"),a(i,l,f,"∏","\\prod"),a(i,l,f,"∑","\\sum"),a(i,l,f,"⨂","\\bigotimes"),a(i,l,f,"⨁","\\bigoplus"),a(i,l,f,"⨀","\\bigodot"),a(i,l,f,"∮","\\oint"),a(i,l,f,"⨆","\\bigsqcup"),a(i,l,f,"∫","\\smallint"),a(o,l,"inner","…","\\textellipsis"),a(i,l,"inner","…","\\mathellipsis"),a(o,l,"inner","…","\\ldots",!0),a(i,l,"inner","…","\\ldots",!0),a(i,l,"inner","⋯","\\@cdots",!0),a(i,l,"inner","⋱","\\ddots",!0),a(i,l,g,"⋮","\\vdots",!0),a(i,l,u,"ˊ","\\acute"),a(i,l,u,"ˋ","\\grave"),a(i,l,u,"¨","\\ddot"),a(i,l,u,"~","\\tilde"),a(i,l,u,"ˉ","\\bar"),a(i,l,u,"˘","\\breve"),a(i,l,u,"ˇ","\\check"),a(i,l,u,"^","\\hat"),a(i,l,u,"⃗","\\vec"),a(i,l,u,"˙","\\dot"),a(i,l,u,"˚","\\mathring"),a(i,l,p,"ı","\\imath",!0),a(i,l,p,"ȷ","\\jmath",!0),a(o,l,g,"ı","\\i",!0),a(o,l,g,"ȷ","\\j",!0),a(o,l,g,"ß","\\ss",!0),a(o,l,g,"æ","\\ae",!0),a(o,l,g,"æ","\\ae",!0),a(o,l,g,"œ","\\oe",!0),a(o,l,g,"ø","\\o",!0),a(o,l,g,"Æ","\\AE",!0),a(o,l,g,"Œ","\\OE",!0),a(o,l,g,"Ø","\\O",!0),a(o,l,u,"ˊ","\\'"),a(o,l,u,"ˋ","\\`"),a(o,l,u,"ˆ","\\^"),a(o,l,u,"˜","\\~"),a(o,l,u,"ˉ","\\="),a(o,l,u,"˘","\\u"),a(o,l,u,"˙","\\."),a(o,l,u,"˚","\\r"),a(o,l,u,"ˇ","\\v"),a(o,l,u,"¨",'\\"'),a(o,l,u,"˝","\\H"),a(o,l,g,"–","--"),a(o,l,g,"–","\\textendash"),a(o,l,g,"—","---"),a(o,l,g,"—","\\textemdash"),a(o,l,g,"‘","`"),a(o,l,g,"‘","\\textquoteleft"),a(o,l,g,"’","'"),a(o,l,g,"’","\\textquoteright"),a(o,l,g,"“","``"),a(o,l,g,"“","\\textquotedblleft"),a(o,l,g,"”","''"),a(o,l,g,"”","\\textquotedblright"),a(i,l,g,"°","\\degree"),a(o,l,g,"°","\\degree"),a(i,l,p,"£","\\pounds"),a(i,l,p,"£","\\mathsterling",!0),a(o,l,p,"£","\\pounds"),a(o,l,p,"£","\\textsterling",!0),a(i,s,g,"✠","\\maltese"),a(o,s,g,"✠","\\maltese"),a(o,l,v," ","\\ "),a(o,l,v," "," "),a(o,l,v," ","~");for(var y=0;y<'0123456789/@."'.length;y++){var b='0123456789/@."'.charAt(y);a(i,l,g,b,b)}for(var x=0;x<'0123456789!@*()-=+[]<>|";:?/.,'.length;x++){var w='0123456789!@*()-=+[]<>|";:?/.,'.charAt(x);a(o,l,g,w,w)}for(var k="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",M=0;M=5?0:t>=3?1:2]){var n=l[r]={cssEmPerMu:i.quad[r]/18};for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a][r])}return l[r]},getCharacterMetrics:function e(t,r,i){if(!a.a[r])throw new Error("Font metrics not found for font: "+r+".");var l=t.charCodeAt(0);t[0]in o&&(l=o[t[0]].charCodeAt(0));var s=a.a[r][l];if(s||"text"!==i||Object(n.b)(l)&&(s=a.a[r][77]),s)return{depth:s[0],height:s[1],italic:s[2],skew:s[3],width:s[4]}}}},function(e,t,r){"use strict";var n=r(66),a=r.n(n),i=r(7),o=r.n(i),l=r(10),s=r.n(l),u=function(){function e(t,r,n){o()(this,e),this.lexer=t,this.start=r,this.end=n,a()(this)}return s()(e,null,[{key:"range",value:function t(r,n){return n?r&&r.loc&&n.loc&&r.loc.lexer===n.loc.lexer?new e(r.loc.lexer,r.loc.start,n.loc.end):null:r&&r.loc}}]),e}();t.a=u},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){"use strict";var n=r(7),a=r.n(n),i=r(5);t.a=function e(t){a()(this,e),t=t||{},this.displayMode=i.a.deflt(t.displayMode,!1),this.throwOnError=i.a.deflt(t.throwOnError,!0),this.errorColor=i.a.deflt(t.errorColor,"#cc0000"),this.macros=t.macros||{},this.colorIsTextColor=i.a.deflt(t.colorIsTextColor,!1),this.maxSize=Math.max(0,i.a.deflt(t.maxSize,Infinity))}},function(e,t,r){"use strict";t.__esModule=!0;var n=function a(e){return e&&e.__esModule?e:{default:e}}(r(79));t.default=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(87),a=r(53);e.exports=Object.keys||function e(t){return n(t,a)}},function(e,t,r){var n=r(49),a=r(38);e.exports=function(e){return n(a(e))}},function(e,t,r){var n=r(52)("keys"),a=r(32);e.exports=function(e){return n[e]||(n[e]=a(e))}},function(e,t,r){"use strict";t.a=function n(e){var t=!0,r=!1,n=void 0;try{for(var a,i=s()(u);!(t=(a=i.next()).done);t=!0){var o=a.value,l=!0,c=!1,h=void 0;try{for(var p,f=s()(o.blocks);!(l=(p=f.next()).done);l=!0){var m=p.value;if(e>=m[0]&&e<=m[1])return o.name}}catch(e){c=!0,h=e}finally{try{!l&&f.return&&f.return()}finally{if(c)throw h}}}}catch(e){r=!0,n=e}finally{try{!t&&i.return&&i.return()}finally{if(r)throw n}}return null},t.b=function a(e){for(var t=0;t=c[t]&&e<=c[t+1])return!0;return!1};var i=r(35),o=r.n(i),l=r(18),s=r.n(l),u=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],c=[];u.forEach(function(e){return e.blocks.forEach(function(e){return c.push.apply(c,o()(e))})})},function(e,t,r){"use strict";var n=r(7),a=r.n(n),i=r(10),o=r.n(i),l=r(30),s=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],u=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],c=function e(t,r){return r.size<2?t:s[t-1][r.size-1]},h=function(){function e(t){a()(this,e),this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.fontFamily=t.fontFamily,this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=u[this.size-1],this.maxSize=t.maxSize,this._fontMetrics=void 0}return o()(e,[{key:"extend",value:function t(r){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize};for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a]);return new e(n)}},{key:"havingStyle",value:function e(t){return this.style===t?this:this.extend({style:t,size:c(this.textSize,t)})}},{key:"havingCrampedStyle",value:function e(){return this.havingStyle(this.style.cramp())}},{key:"havingSize",value:function e(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:u[t-1]})}},{key:"havingBaseStyle",value:function t(r){r=r||this.style.text();var n=c(e.BASESIZE,r);return this.size===n&&this.textSize===e.BASESIZE&&this.style===r?this:this.extend({style:r,size:n})}},{key:"withColor",value:function e(t){return this.extend({color:t})}},{key:"withPhantom",value:function e(){return this.extend({phantom:!0})}},{key:"withFontFamily",value:function e(t){return this.extend({fontFamily:t||this.fontFamily})}},{key:"withFontWeight",value:function e(t){return this.extend({fontWeight:t})}},{key:"withFontShape",value:function e(t){return this.extend({fontShape:t})}},{key:"sizingClasses",value:function e(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}},{key:"baseSizingClasses",value:function t(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]}},{key:"fontMetrics",value:function e(){return this._fontMetrics||(this._fontMetrics=l.a.getFontMetrics(this.size)),this._fontMetrics}},{key:"getColor",value:function t(){return this.phantom?"transparent":null!=this.color&&e.colorMap.hasOwnProperty(this.color)?e.colorMap[this.color]:this.color}}]),e}();h.BASESIZE=6,h.colorMap={"katex-blue":"#6495ed","katex-orange":"#ffa500","katex-pink":"#ff00af","katex-red":"#df0030","katex-green":"#28ae7b","katex-gray":"gray","katex-purple":"#9d38bd","katex-blueA":"#ccfaff","katex-blueB":"#80f6ff","katex-blueC":"#63d9ea","katex-blueD":"#11accd","katex-blueE":"#0c7f99","katex-tealA":"#94fff5","katex-tealB":"#26edd5","katex-tealC":"#01d1c1","katex-tealD":"#01a995","katex-tealE":"#208170","katex-greenA":"#b6ffb0","katex-greenB":"#8af281","katex-greenC":"#74cf70","katex-greenD":"#1fab54","katex-greenE":"#0d923f","katex-goldA":"#ffd0a9","katex-goldB":"#ffbb71","katex-goldC":"#ff9c39","katex-goldD":"#e07d10","katex-goldE":"#a75a05","katex-redA":"#fca9a9","katex-redB":"#ff8482","katex-redC":"#f9685d","katex-redD":"#e84d39","katex-redE":"#bc2612","katex-maroonA":"#ffbde0","katex-maroonB":"#ff92c6","katex-maroonC":"#ed5fa6","katex-maroonD":"#ca337c","katex-maroonE":"#9e034e","katex-purpleA":"#ddd7ff","katex-purpleB":"#c6b9fc","katex-purpleC":"#aa87ff","katex-purpleD":"#7854ab","katex-purpleE":"#543b78","katex-mintA":"#f5f9e8","katex-mintB":"#edf2df","katex-mintC":"#e0e5cc","katex-grayA":"#f6f7f7","katex-grayB":"#f0f1f2","katex-grayC":"#e3e5e6","katex-grayD":"#d6d8da","katex-grayE":"#babec2","katex-grayF":"#888d93","katex-grayG":"#626569","katex-grayH":"#3b3e40","katex-grayI":"#21242c","katex-kaBlue":"#314453","katex-kaGreen":"#71B307"},t.a=h},function(e,t,r){"use strict";var n=r(6),a=r(9),i=r(12),o=r(0),l=r(30),s=r(28),u=r(5),c=function e(t,r,n){return s.a.math[t]&&s.a.math[t].replace?l.a.getCharacterMetrics(s.a.math[t].replace,r,n):l.a.getCharacterMetrics(t,r,n)},h=function e(t,r,n,a){var i=n.havingBaseStyle(r),l=o.a.makeSpan((a||[]).concat(i.sizingClasses(n)),[t],n);return l.delimSizeMultiplier=i.sizeMultiplier/n.sizeMultiplier,l.height*=l.delimSizeMultiplier,l.depth*=l.delimSizeMultiplier,l.maxFontSize=i.sizeMultiplier,l},p=function e(t,r,n){var a=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=i+"em",t.height-=i,t.depth+=i},f=function e(t,r,n,i,l,s){var u=function e(t,r,n,a){return o.a.makeSymbol(t,"Size"+r+"-Regular",n,a)}(t,r,l,i),c=h(o.a.makeSpan(["delimsizing","size"+r],[u],i),a.a.TEXT,i,s);return n&&p(c,i,a.a.TEXT),c},m=function e(t,r,n){var a=void 0;return"Size1-Regular"===r?a="delim-size1":"Size4-Regular"===r&&(a="delim-size4"),{type:"elem",elem:o.a.makeSpan(["delimsizinginner",a],[o.a.makeSpan([],[o.a.makeSymbol(t,r,n)])])}},d=function e(t,r,n,i,l,s){var u=void 0,p=void 0,f=void 0,d=void 0;u=f=d=t,p=null;var v="Size1-Regular";"\\uparrow"===t?f=d="⏐":"\\Uparrow"===t?f=d="‖":"\\downarrow"===t?u=f="⏐":"\\Downarrow"===t?u=f="‖":"\\updownarrow"===t?(u="\\uparrow",f="⏐",d="\\downarrow"):"\\Updownarrow"===t?(u="\\Uparrow",f="‖",d="\\Downarrow"):"["===t||"\\lbrack"===t?(u="⎡",f="⎢",d="⎣",v="Size4-Regular"):"]"===t||"\\rbrack"===t?(u="⎤",f="⎥",d="⎦",v="Size4-Regular"):"\\lfloor"===t?(f=u="⎢",d="⎣",v="Size4-Regular"):"\\lceil"===t?(u="⎡",f=d="⎢",v="Size4-Regular"):"\\rfloor"===t?(f=u="⎥",d="⎦",v="Size4-Regular"):"\\rceil"===t?(u="⎤",f=d="⎥",v="Size4-Regular"):"("===t?(u="⎛",f="⎜",d="⎝",v="Size4-Regular"):")"===t?(u="⎞",f="⎟",d="⎠",v="Size4-Regular"):"\\{"===t||"\\lbrace"===t?(u="⎧",p="⎨",d="⎩",f="⎪",v="Size4-Regular"):"\\}"===t||"\\rbrace"===t?(u="⎫",p="⎬",d="⎭",f="⎪",v="Size4-Regular"):"\\lgroup"===t?(u="⎧",d="⎩",f="⎪",v="Size4-Regular"):"\\rgroup"===t?(u="⎫",d="⎭",f="⎪",v="Size4-Regular"):"\\lmoustache"===t?(u="⎧",d="⎭",f="⎪",v="Size4-Regular"):"\\rmoustache"===t&&(u="⎫",d="⎩",f="⎪",v="Size4-Regular");var g=c(u,v,l),y=g.height+g.depth,b=c(f,v,l),x=b.height+b.depth,w=c(d,v,l),k=w.height+w.depth,M=0,S=1;if(null!==p){var z=c(p,v,l);M=z.height+z.depth,S=2}var O=y+k+M,T=Math.ceil((r-O)/(S*x)),A=O+T*S*x,N=i.fontMetrics().axisHeight;n&&(N*=i.sizeMultiplier);var B=A/2-N,E=[];if(E.push(m(d,v,l)),null===p)for(var j=0;j","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],x=[0,1.2,1.8,2.4,3],w=[{type:"small",style:a.a.SCRIPTSCRIPT},{type:"small",style:a.a.SCRIPT},{type:"small",style:a.a.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],k=[{type:"small",style:a.a.SCRIPTSCRIPT},{type:"small",style:a.a.SCRIPT},{type:"small",style:a.a.TEXT},{type:"stack"}],M=[{type:"small",style:a.a.SCRIPTSCRIPT},{type:"small",style:a.a.SCRIPT},{type:"small",style:a.a.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],S=function e(t){return"small"===t.type?"Main-Regular":"large"===t.type?"Size"+t.size+"-Regular":"stack"===t.type?"Size4-Regular":void 0},z=function e(t,r,n,a){for(var i=Math.min(2,3-a.style.size);ir)return n[i]}return n[n.length-1]},O=function e(t,r,n,a,i,l){"<"===t||"\\lt"===t||"⟨"===t?t="\\langle":">"!==t&&"\\gt"!==t&&"⟩"!==t||(t="\\rangle");var s;s=u.a.contains(b,t)?w:u.a.contains(g,t)?M:k;var c=z(t,r,s,a);return"small"===c.type?function e(t,r,n,a,i,l){var s=o.a.makeSymbol(t,"Main-Regular",i,a),u=h(s,r,a,l);return n&&p(u,a,r),u}(t,c.style,n,a,i,l):"large"===c.type?f(t,c.size,n,a,i,l):d(t,r,n,a,i,l)};t.a={sqrtImage:function e(t,r){var n=z("\\surd",t,M,r),a=void 0,i=r.sizeMultiplier,o=0,l=0,s=0;return"small"===n.type?(s=1080,l=1*(i=r.havingBaseStyle(n.style).sizeMultiplier/r.sizeMultiplier),(a=v("sqrtMain",o=1.08*i,s,r)).style.minWidth="0.853em",a.advanceWidth=.833*i):"large"===n.type?(s=1080*x[n.size],l=x[n.size]/i,o=(x[n.size]+.08)/i,(a=v("sqrtSize"+n.size,o,s,r)).style.minWidth="1.02em",a.advanceWidth=1/i):(o=t/i+.08,l=t/i,s=Math.floor(1e3*t)+80,(a=v("sqrtTall",o,s,r)).style.minWidth="0.742em",a.advanceWidth=1.056/i),a.height=l,a.style.height=o+"em",{span:a,ruleWidth:r.fontMetrics().sqrtRuleThickness*i}},sizedDelim:function e(t,r,a,i,o){if("<"===t||"\\lt"===t||"⟨"===t?t="\\langle":">"!==t&&"\\gt"!==t&&"⟩"!==t||(t="\\rangle"),u.a.contains(g,t)||u.a.contains(b,t))return f(t,r,!1,a,i,o);if(u.a.contains(y,t))return d(t,x[r],!1,a,i,o);throw new n.a("Illegal delimiter: '"+t+"'")},customSizedDelim:O,leftRightDelim:function e(t,r,n,a,i,o){var l=a.fontMetrics().axisHeight*a.sizeMultiplier,s=5/a.fontMetrics().ptPerEm,u=Math.max(r-l,n+l),c=Math.max(u/500*901,2*u-s);return O(t,c,!0,a,i,o)}}},function(e,t,r){var n=r(20),a=r(16).document,i=n(a)&&n(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t,r){var n=r(25),a=r(8),i=r(24);e.exports=function(e,t){var r=(a.Object||{})[e]||Object[e],o={};o[e]=t(r),n(n.S+n.F*i(function(){r(1)}),"Object",o)}},function(e,t,r){var n=r(72);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){"use strict";var n=r(82),a=r(25),i=r(83),o=r(26),l=r(21),s=r(17),u=r(84),c=r(54),h=r(91),p=r(11)("iterator"),f=!([].keys&&"next"in[].keys()),m=function(){return this};e.exports=function(e,t,r,d,v,g,y){u(r,t,d);var b,x,w,k=function(e){if(!f&&e in O)return O[e];switch(e){case"keys":return function t(){return new r(this,e)};case"values":return function t(){return new r(this,e)}}return function t(){return new r(this,e)}},M=t+" Iterator",S="values"==v,z=!1,O=e.prototype,T=O[p]||O["@@iterator"]||v&&O[v],A=T||k(v),N=v?S?k("entries"):A:void 0,B="Array"==t&&O.entries||T;if(B&&(w=h(B.call(new e)))!==Object.prototype&&(c(w,M,!0),n||l(w,p)||o(w,p,m)),S&&T&&"values"!==T.name&&(z=!0,A=function e(){return T.call(this)}),n&&!y||!f&&!z&&O[p]||o(O,p,A),s[t]=A,s[M]=m,v)if(b={values:S?A:k("values"),keys:g?A:k("keys"),entries:N},y)for(x in b)x in O||i(O,x,b[x]);else a(a.P+a.F*(f||z),t,b);return b}},function(e,t,r){var n=r(50);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(37),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},function(e,t,r){var n=r(16),a=n["__core-js_shared__"]||(n["__core-js_shared__"]={});e.exports=function(e){return a[e]||(a[e]={})}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(15).f,a=r(21),i=r(11)("toStringTag");e.exports=function(e,t,r){e&&!a(e=r?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},function(e,t,r){var n=r(56),a=r(11)("iterator"),i=r(17);e.exports=r(8).getIteratorMethod=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||i[n(e)]}},function(e,t,r){var n=r(50),a=r(11)("toStringTag"),i="Arguments"==n(function(){return arguments}());e.exports=function(e){var t,r,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?r:i?n(t):"Object"==(o=n(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,r){"use strict";t.__esModule=!0;var n=i(r(97)),a=i(r(18));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(Array.isArray(e))return e;if((0,n.default)(Object(e)))return function r(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var l,s=(0,a.default)(e);!(n=(l=s.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,r){r(99);for(var n=r(16),a=r(26),i=r(17),o=r(11)("toStringTag"),l=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var u=l[s],c=n[u],h=c&&c.prototype;h&&!h[o]&&a(h,o,u),i[u]=i.Array}},function(e,t,r){"use strict";t.a={"AMS-Regular":{65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1187],8674:[-.064,.437,0,0,1167],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473]},"Fraktur-Regular":{33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],824:[.19444,.69444,0,0,0],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444]},"Main-BoldItalic":{33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],163:[0,.69444,0,0,.86853],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],163:[0,.69444,0,0,.76909],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],305:[0,.43056,0,.02778,.32246],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],567:[.19444,.43056,0,.08334,.38403],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,0],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,0],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],824:[.19444,.69444,0,0,0],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.12,0,0,1015],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,889],8617:[.011,.511,0,0,1015],8618:[.011,.511,0,0,1015],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,889],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,667],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.67,0,0,666],8800:[.215,.716,0,0,666],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,692],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,847],8942:[.03,.9,0,0,121],8943:[-.19,.31,0,0,1015],8945:[-.1,.82,0,0,1015],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,301],9137:[.244,.744,0,0,301],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,184],10223:[.244,.744,0,0,184],10229:[.011,.511,0,0,1470],10230:[.011,.511,0,0,1469],10231:[.011,.511,0,0,1748],10232:[.024,.525,0,0,1497],10233:[.024,.525,0,0,1526],10234:[.024,.525,0,0,1746],10236:[.011,.511,0,0,1498],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778]},"Math-BoldItalic":{47:[.19444,.69444,0,0,0],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333]},"Math-Italic":{47:[.19444,.69444,0,0,0],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"Math-Regular":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],176:[0,.69444,0,0,.66667],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],733:[0,.69444,0,0,.5],771:[0,.67659,0,0,.5],776:[0,.67937,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212]},"Size1-Regular":{40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],176:[0,.61111,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}}},function(e,t,r){"use strict";t.a=u;var n=r(0),a=r(3),i=r(1),o=r(5),l=r(4),s=r(2);function u(e,t,r){for(var a=l.a(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,s=0;s=u?e?"":void 0:(i=l.charCodeAt(s))<55296||i>56319||s+1===u||(o=l.charCodeAt(s+1))<56320||o>57343?e?l.charAt(s):i:e?l.slice(s,s+2):o-56320+(i-55296<<10)+65536}}},function(e,t){e.exports=!0},function(e,t,r){e.exports=r(26)},function(e,t,r){"use strict";var n=r(85),a=r(33),i=r(54),o={};r(26)(o,r(11)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(o,{next:a(1,r)}),i(e,t+" Iterator")}},function(e,t,r){var n=r(22),a=r(86),i=r(53),o=r(41)("IE_PROTO"),l=function(){},s=function(){var e,t=r(45)("iframe"),n=i.length;for(t.style.display="none",r(90).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("