1/******/ (function(modules) { // webpackBootstrap 2/******/ // install a JSONP callback for chunk loading 3/******/ var parentJsonpFunction = window["webpackJsonp"]; 4/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) { 5/******/ // add "moreModules" to the modules object, 6/******/ // then flag all "chunkIds" as loaded and fire callback 7/******/ var moduleId, chunkId, i = 0, resolves = [], result; 8/******/ for(;i < chunkIds.length; i++) { 9/******/ chunkId = chunkIds[i]; 10/******/ if(installedChunks[chunkId]) { 11/******/ resolves.push(installedChunks[chunkId][0]); 12/******/ } 13/******/ installedChunks[chunkId] = 0; 14/******/ } 15/******/ for(moduleId in moreModules) { 16/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) { 17/******/ modules[moduleId] = moreModules[moduleId]; 18/******/ } 19/******/ } 20/******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules); 21/******/ while(resolves.length) { 22/******/ resolves.shift()(); 23/******/ } 24/******/ if(executeModules) { 25/******/ for(i=0; i < executeModules.length; i++) { 26/******/ result = __webpack_require__(__webpack_require__.s = executeModules[i]); 27/******/ } 28/******/ } 29/******/ return result; 30/******/ }; 31/******/ 32/******/ // The module cache 33/******/ var installedModules = {}; 34/******/ 35/******/ // objects to store loaded and loading chunks 36/******/ var installedChunks = { 37/******/ 1: 0 38/******/ }; 39/******/ 40/******/ // The require function 41/******/ function __webpack_require__(moduleId) { 42/******/ 43/******/ // Check if module is in cache 44/******/ if(installedModules[moduleId]) { 45/******/ return installedModules[moduleId].exports; 46/******/ } 47/******/ // Create a new module (and put it into the cache) 48/******/ var module = installedModules[moduleId] = { 49/******/ i: moduleId, 50/******/ l: false, 51/******/ exports: {} 52/******/ }; 53/******/ 54/******/ // Execute the module function 55/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 56/******/ 57/******/ // Flag the module as loaded 58/******/ module.l = true; 59/******/ 60/******/ // Return the exports of the module 61/******/ return module.exports; 62/******/ } 63/******/ 64/******/ 65/******/ // expose the modules object (__webpack_modules__) 66/******/ __webpack_require__.m = modules; 67/******/ 68/******/ // expose the module cache 69/******/ __webpack_require__.c = installedModules; 70/******/ 71/******/ // define getter function for harmony exports 72/******/ __webpack_require__.d = function(exports, name, getter) { 73/******/ if(!__webpack_require__.o(exports, name)) { 74/******/ Object.defineProperty(exports, name, { 75/******/ configurable: false, 76/******/ enumerable: true, 77/******/ get: getter 78/******/ }); 79/******/ } 80/******/ }; 81/******/ 82/******/ // getDefaultExport function for compatibility with non-harmony modules 83/******/ __webpack_require__.n = function(module) { 84/******/ var getter = module && module.__esModule ? 85/******/ function getDefault() { return module['default']; } : 86/******/ function getModuleExports() { return module; }; 87/******/ __webpack_require__.d(getter, 'a', getter); 88/******/ return getter; 89/******/ }; 90/******/ 91/******/ // Object.prototype.hasOwnProperty.call 92/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 93/******/ 94/******/ // __webpack_public_path__ 95/******/ __webpack_require__.p = ""; 96/******/ 97/******/ // on error function for async loading 98/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; 99/******/ 100/******/ // Load entry module and return exports 101/******/ return __webpack_require__(__webpack_require__.s = 778); 102/******/ }) 103/************************************************************************/ 104/******/ ([ 105/* 0 */ 106/***/ (function(module, exports, __webpack_require__) { 107 108"use strict"; 109 110 111module.exports = __webpack_require__(48); 112 113 114/***/ }), 115/* 1 */ 116/***/ (function(module, exports, __webpack_require__) { 117 118/* WEBPACK VAR INJECTION */(function(module) {var require;//! moment.js 119 120;(function (global, factory) { 121 true ? module.exports = factory() : 122 typeof define === 'function' && define.amd ? define(factory) : 123 global.moment = factory()
vendor: 35,273 bytes, lines 123-1262
123 124}(this, (function () { 'use strict'; 125 126 var hookCallback; 127 128 function hooks () { 129 return hookCallback.apply(null, arguments); 130 } 131 132 // This is done to register the method called with moment() 133 // without creating circular dependencies. 134 function setHookCallback (callback) { 135 hookCallback = callback; 136 } 137 138 function isArray(input) { 139 return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]'; 140 } 141 142 function isObject(input) { 143 // IE8 will treat undefined and null as object if it wasn't for 144 // input != null 145 return input != null && Object.prototype.toString.call(input) === '[object Object]'; 146 } 147 148 function isObjectEmpty(obj) { 149 if (Object.getOwnPropertyNames) { 150 return (Object.getOwnPropertyNames(obj).length === 0); 151 } else { 152 var k; 153 for (k in obj) { 154 if (obj.hasOwnProperty(k)) { 155 return false; 156 } 157 } 158 return true; 159 } 160 } 161 162 function isUndefined(input) { 163 return input === void 0; 164 } 165 166 function isNumber(input) { 167 return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]'; 168 } 169 170 function isDate(input) { 171 return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]'; 172 } 173 174 function map(arr, fn) { 175 var res = [], i; 176 for (i = 0; i < arr.length; ++i) { 177 res.push(fn(arr[i], i)); 178 } 179 return res; 180 } 181 182 function hasOwnProp(a, b) { 183 return Object.prototype.hasOwnProperty.call(a, b); 184 } 185 186 function extend(a, b) { 187 for (var i in b) { 188 if (hasOwnProp(b, i)) { 189 a[i] = b[i]; 190 } 191 } 192 193 if (hasOwnProp(b, 'toString')) { 194 a.toString = b.toString; 195 } 196 197 if (hasOwnProp(b, 'valueOf')) { 198 a.valueOf = b.valueOf; 199 } 200 201 return a; 202 } 203 204 function createUTC (input, format, locale, strict) { 205 return createLocalOrUTC(input, format, locale, strict, true).utc(); 206 } 207 208 function defaultParsingFlags() { 209 // We need to deep clone this object. 210 return { 211 empty : false, 212 unusedTokens : [], 213 unusedInput : [], 214 overflow : -2, 215 charsLeftOver : 0, 216 nullInput : false, 217 invalidMonth : null, 218 invalidFormat : false, 219 userInvalidated : false, 220 iso : false, 221 parsedDateParts : [], 222 meridiem : null, 223 rfc2822 : false, 224 weekdayMismatch : false 225 }; 226 } 227 228 function getParsingFlags(m) { 229 if (m._pf == null) { 230 m._pf = defaultParsingFlags(); 231 } 232 return m._pf; 233 } 234 235 var some; 236 if (Array.prototype.some) { 237 some = Array.prototype.some; 238 } else { 239 some = function (fun) { 240 var t = Object(this); 241 var len = t.length >>> 0; 242 243 for (var i = 0; i < len; i++) { 244 if (i in t && fun.call(this, t[i], i, t)) { 245 return true; 246 } 247 } 248 249 return false; 250 }; 251 } 252 253 function isValid(m) { 254 if (m._isValid == null) { 255 var flags = getParsingFlags(m); 256 var parsedParts = some.call(flags.parsedDateParts, function (i) { 257 return i != null; 258 }); 259 var isNowValid = !isNaN(m._d.getTime()) && 260 flags.overflow < 0 && 261 !flags.empty && 262 !flags.invalidMonth && 263 !flags.invalidWeekday && 264 !flags.weekdayMismatch && 265 !flags.nullInput && 266 !flags.invalidFormat && 267 !flags.userInvalidated && 268 (!flags.meridiem || (flags.meridiem && parsedParts)); 269 270 if (m._strict) { 271 isNowValid = isNowValid && 272 flags.charsLeftOver === 0 && 273 flags.unusedTokens.length === 0 && 274 flags.bigHour === undefined; 275 } 276 277 if (Object.isFrozen == null || !Object.isFrozen(m)) { 278 m._isValid = isNowValid; 279 } 280 else { 281 return isNowValid; 282 } 283 } 284 return m._isValid; 285 } 286 287 function createInvalid (flags) { 288 var m = createUTC(NaN); 289 if (flags != null) { 290 extend(getParsingFlags(m), flags); 291 } 292 else { 293 getParsingFlags(m).userInvalidated = true; 294 } 295 296 return m; 297 } 298 299 // Plugins that add properties should also add the key here (null value), 300 // so we can properly clone ourselves. 301 var momentProperties = hooks.momentProperties = []; 302 303 function copyConfig(to, from) { 304 var i, prop, val; 305 306 if (!isUndefined(from._isAMomentObject)) { 307 to._isAMomentObject = from._isAMomentObject; 308 } 309 if (!isUndefined(from._i)) { 310 to._i = from._i; 311 } 312 if (!isUndefined(from._f)) { 313 to._f = from._f; 314 } 315 if (!isUndefined(from._l)) { 316 to._l = from._l; 317 } 318 if (!isUndefined(from._strict)) { 319 to._strict = from._strict; 320 } 321 if (!isUndefined(from._tzm)) { 322 to._tzm = from._tzm; 323 } 324 if (!isUndefined(from._isUTC)) { 325 to._isUTC = from._isUTC; 326 } 327 if (!isUndefined(from._offset)) { 328 to._offset = from._offset; 329 } 330 if (!isUndefined(from._pf)) { 331 to._pf = getParsingFlags(from); 332 } 333 if (!isUndefined(from._locale)) { 334 to._locale = from._locale; 335 } 336 337 if (momentProperties.length > 0) { 338 for (i = 0; i < momentProperties.length; i++) { 339 prop = momentProperties[i]; 340 val = from[prop]; 341 if (!isUndefined(val)) { 342 to[prop] = val; 343 } 344 } 345 } 346 347 return to; 348 } 349 350 var updateInProgress = false; 351 352 // Moment prototype object 353 function Moment(config) { 354 copyConfig(this, config); 355 this._d = new Date(config._d != null ? config._d.getTime() : NaN); 356 if (!this.isValid()) { 357 this._d = new Date(NaN); 358 } 359 // Prevent infinite loop in case updateOffset creates new moment 360 // objects. 361 if (updateInProgress === false) { 362 updateInProgress = true; 363 hooks.updateOffset(this); 364 updateInProgress = false; 365 } 366 } 367 368 function isMoment (obj) { 369 return obj instanceof Moment || (obj != null && obj._isAMomentObject != null); 370 } 371 372 function absFloor (number) { 373 if (number < 0) { 374 // -0 -> 0 375 return Math.ceil(number) || 0; 376 } else { 377 return Math.floor(number); 378 } 379 } 380 381 function toInt(argumentForCoercion) { 382 var coercedNumber = +argumentForCoercion, 383 value = 0; 384 385 if (coercedNumber !== 0 && isFinite(coercedNumber)) { 386 value = absFloor(coercedNumber); 387 } 388 389 return value; 390 } 391 392 // compare two arrays, return the number of differences 393 function compareArrays(array1, array2, dontConvert) { 394 var len = Math.min(array1.length, array2.length), 395 lengthDiff = Math.abs(array1.length - array2.length), 396 diffs = 0, 397 i; 398 for (i = 0; i < len; i++) { 399 if ((dontConvert && array1[i] !== array2[i]) || 400 (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) { 401 diffs++; 402 } 403 } 404 return diffs + lengthDiff; 405 } 406 407 function warn(msg) { 408 if (hooks.suppressDeprecationWarnings === false && 409 (typeof console !== 'undefined') && console.warn) { 410 console.warn('Deprecation warning: ' + msg); 411 } 412 } 413 414 function deprecate(msg, fn) { 415 var firstTime = true; 416 417 return extend(function () { 418 if (hooks.deprecationHandler != null) { 419 hooks.deprecationHandler(null, msg); 420 } 421 if (firstTime) { 422 var args = []; 423 var arg; 424 for (var i = 0; i < arguments.length; i++) { 425 arg = ''; 426 if (typeof arguments[i] === 'object') { 427 arg += '\n[' + i + '] '; 428 for (var key in arguments[0]) { 429 arg += key + ': ' + arguments[0][key] + ', '; 430 } 431 arg = arg.slice(0, -2); // Remove trailing comma and space 432 } else { 433 arg = arguments[i]; 434 } 435 args.push(arg); 436 } 437 warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + (new Error()).stack); 438 firstTime = false; 439 } 440 return fn.apply(this, arguments); 441 }, fn); 442 } 443 444 var deprecations = {}; 445 446 function deprecateSimple(name, msg) { 447 if (hooks.deprecationHandler != null) { 448 hooks.deprecationHandler(name, msg); 449 } 450 if (!deprecations[name]) { 451 warn(msg); 452 deprecations[name] = true; 453 } 454 } 455 456 hooks.suppressDeprecationWarnings = false; 457 hooks.deprecationHandler = null; 458 459 function isFunction(input) { 460 return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]'; 461 } 462 463 function set (config) { 464 var prop, i; 465 for (i in config) { 466 prop = config[i]; 467 if (isFunction(prop)) { 468 this[i] = prop; 469 } else { 470 this['_' + i] = prop; 471 } 472 } 473 this._config = config; 474 // Lenient ordinal parsing accepts just a number in addition to 475 // number + (possibly) stuff coming from _dayOfMonthOrdinalParse. 476 // TODO: Remove "ordinalParse" fallback in next major release. 477 this._dayOfMonthOrdinalParseLenient = new RegExp( 478 (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + 479 '|' + (/\d{1,2}/).source); 480 } 481 482 function mergeConfigs(parentConfig, childConfig) { 483 var res = extend({}, parentConfig), prop; 484 for (prop in childConfig) { 485 if (hasOwnProp(childConfig, prop)) { 486 if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) { 487 res[prop] = {}; 488 extend(res[prop], parentConfig[prop]); 489 extend(res[prop], childConfig[prop]); 490 } else if (childConfig[prop] != null) { 491 res[prop] = childConfig[prop]; 492 } else { 493 delete res[prop]; 494 } 495 } 496 } 497 for (prop in parentConfig) { 498 if (hasOwnProp(parentConfig, prop) && 499 !hasOwnProp(childConfig, prop) && 500 isObject(parentConfig[prop])) { 501 // make sure changes to properties don't modify parent config 502 res[prop] = extend({}, res[prop]); 503 } 504 } 505 return res; 506 } 507 508 function Locale(config) { 509 if (config != null) { 510 this.set(config); 511 } 512 } 513 514 var keys; 515 516 if (Object.keys) { 517 keys = Object.keys; 518 } else { 519 keys = function (obj) { 520 var i, res = []; 521 for (i in obj) { 522 if (hasOwnProp(obj, i)) { 523 res.push(i); 524 } 525 } 526 return res; 527 }; 528 } 529 530 var defaultCalendar = { 531 sameDay : '[Today at] LT', 532 nextDay : '[Tomorrow at] LT', 533 nextWeek : 'dddd [at] LT', 534 lastDay : '[Yesterday at] LT', 535 lastWeek : '[Last] dddd [at] LT', 536 sameElse : 'L' 537 }; 538 539 function calendar (key, mom, now) { 540 var output = this._calendar[key] || this._calendar['sameElse']; 541 return isFunction(output) ? output.call(mom, now) : output; 542 } 543 544 var defaultLongDateFormat = { 545 LTS : 'h:mm:ss A', 546 LT : 'h:mm A', 547 L : 'MM/DD/YYYY', 548 LL : 'MMMM D, YYYY', 549 LLL : 'MMMM D, YYYY h:mm A', 550 LLLL : 'dddd, MMMM D, YYYY h:mm A' 551 }; 552 553 function longDateFormat (key) { 554 var format = this._longDateFormat[key], 555 formatUpper = this._longDateFormat[key.toUpperCase()]; 556 557 if (format || !formatUpper) { 558 return format; 559 } 560 561 this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) { 562 return val.slice(1); 563 }); 564 565 return this._longDateFormat[key]; 566 } 567 568 var defaultInvalidDate = 'Invalid date'; 569 570 function invalidDate () { 571 return this._invalidDate; 572 } 573 574 var defaultOrdinal = '%d'; 575 var defaultDayOfMonthOrdinalParse = /\d{1,2}/; 576 577 function ordinal (number) { 578 return this._ordinal.replace('%d', number); 579 } 580 581 var defaultRelativeTime = { 582 future : 'in %s', 583 past : '%s ago', 584 s : 'a few seconds', 585 ss : '%d seconds', 586 m : 'a minute', 587 mm : '%d minutes', 588 h : 'an hour', 589 hh : '%d hours', 590 d : 'a day', 591 dd : '%d days', 592 M : 'a month', 593 MM : '%d months', 594 y : 'a year', 595 yy : '%d years' 596 }; 597 598 function relativeTime (number, withoutSuffix, string, isFuture) { 599 var output = this._relativeTime[string]; 600 return (isFunction(output)) ? 601 output(number, withoutSuffix, string, isFuture) : 602 output.replace(/%d/i, number); 603 } 604 605 function pastFuture (diff, output) { 606 var format = this._relativeTime[diff > 0 ? 'future' : 'past']; 607 return isFunction(format) ? format(output) : format.replace(/%s/i, output); 608 } 609 610 var aliases = {}; 611 612 function addUnitAlias (unit, shorthand) { 613 var lowerCase = unit.toLowerCase(); 614 aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit; 615 } 616 617 function normalizeUnits(units) { 618 return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined; 619 } 620 621 function normalizeObjectUnits(inputObject) { 622 var normalizedInput = {}, 623 normalizedProp, 624 prop; 625 626 for (prop in inputObject) { 627 if (hasOwnProp(inputObject, prop)) { 628 normalizedProp = normalizeUnits(prop); 629 if (normalizedProp) { 630 normalizedInput[normalizedProp] = inputObject[prop]; 631 } 632 } 633 } 634 635 return normalizedInput; 636 } 637 638 var priorities = {}; 639 640 function addUnitPriority(unit, priority) { 641 priorities[unit] = priority; 642 } 643 644 function getPrioritizedUnits(unitsObj) { 645 var units = []; 646 for (var u in unitsObj) { 647 units.push({unit: u, priority: priorities[u]}); 648 } 649 units.sort(function (a, b) { 650 return a.priority - b.priority; 651 }); 652 return units; 653 } 654 655 function zeroFill(number, targetLength, forceSign) { 656 var absNumber = '' + Math.abs(number), 657 zerosToFill = targetLength - absNumber.length, 658 sign = number >= 0; 659 return (sign ? (forceSign ? '+' : '') : '-') + 660 Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber; 661 } 662 663 var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g; 664 665 var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g; 666 667 var formatFunctions = {}; 668 669 var formatTokenFunctions = {}; 670 671 // token: 'M' 672 // padded: ['MM', 2] 673 // ordinal: 'Mo' 674 // callback: function () { this.month() + 1 } 675 function addFormatToken (token, padded, ordinal, callback) { 676 var func = callback; 677 if (typeof callback === 'string') { 678 func = function () { 679 return this[callback](); 680 }; 681 } 682 if (token) { 683 formatTokenFunctions[token] = func; 684 } 685 if (padded) { 686 formatTokenFunctions[padded[0]] = function () { 687 return zeroFill(func.apply(this, arguments), padded[1], padded[2]); 688 }; 689 } 690 if (ordinal) { 691 formatTokenFunctions[ordinal] = function () { 692 return this.localeData().ordinal(func.apply(this, arguments), token); 693 }; 694 } 695 } 696 697 function removeFormattingTokens(input) { 698 if (input.match(/\[[\s\S]/)) { 699 return input.replace(/^\[|\]$/g, ''); 700 } 701 return input.replace(/\\/g, ''); 702 } 703 704 function makeFormatFunction(format) { 705 var array = format.match(formattingTokens), i, length; 706 707 for (i = 0, length = array.length; i < length; i++) { 708 if (formatTokenFunctions[array[i]]) { 709 array[i] = formatTokenFunctions[array[i]]; 710 } else { 711 array[i] = removeFormattingTokens(array[i]); 712 } 713 } 714 715 return function (mom) { 716 var output = '', i; 717 for (i = 0; i < length; i++) { 718 output += isFunction(array[i]) ? array[i].call(mom, format) : array[i]; 719 } 720 return output; 721 }; 722 } 723 724 // format date using native date object 725 function formatMoment(m, format) { 726 if (!m.isValid()) { 727 return m.localeData().invalidDate(); 728 } 729 730 format = expandFormat(format, m.localeData()); 731 formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format); 732 733 return formatFunctions[format](m); 734 } 735 736 function expandFormat(format, locale) { 737 var i = 5; 738 739 function replaceLongDateFormatTokens(input) { 740 return locale.longDateFormat(input) || input; 741 } 742 743 localFormattingTokens.lastIndex = 0; 744 while (i >= 0 && localFormattingTokens.test(format)) { 745 format = format.replace(localFormattingTokens, replaceLongDateFormatTokens); 746 localFormattingTokens.lastIndex = 0; 747 i -= 1; 748 } 749 750 return format; 751 } 752 753 var match1 = /\d/; // 0 - 9 754 var match2 = /\d\d/; // 00 - 99 755 var match3 = /\d{3}/; // 000 - 999 756 var match4 = /\d{4}/; // 0000 - 9999 757 var match6 = /[+-]?\d{6}/; // -999999 - 999999 758 var match1to2 = /\d\d?/; // 0 - 99 759 var match3to4 = /\d\d\d\d?/; // 999 - 9999 760 var match5to6 = /\d\d\d\d\d\d?/; // 99999 - 999999 761 var match1to3 = /\d{1,3}/; // 0 - 999 762 var match1to4 = /\d{1,4}/; // 0 - 9999 763 var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999 764 765 var matchUnsigned = /\d+/; // 0 - inf 766 var matchSigned = /[+-]?\d+/; // -inf - inf 767 768 var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z 769 var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z 770 771 var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123 772 773 // any word (or two) characters or numbers including two/three word month in arabic. 774 // includes scottish gaelic two word and hyphenated months 775 var 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; 776 777 var regexes = {}; 778 779 function addRegexToken (token, regex, strictRegex) { 780 regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) { 781 return (isStrict && strictRegex) ? strictRegex : regex; 782 }; 783 } 784 785 function getParseRegexForToken (token, config) { 786 if (!hasOwnProp(regexes, token)) { 787 return new RegExp(unescapeFormat(token)); 788 } 789 790 return regexes[token](config._strict, config._locale); 791 } 792 793 // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript 794 function unescapeFormat(s) { 795 return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) { 796 return p1 || p2 || p3 || p4; 797 })); 798 } 799 800 function regexEscape(s) { 801 return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); 802 } 803 804 var tokens = {}; 805 806 function addParseToken (token, callback) { 807 var i, func = callback; 808 if (typeof token === 'string') { 809 token = [token]; 810 } 811 if (isNumber(callback)) { 812 func = function (input, array) { 813 array[callback] = toInt(input); 814 }; 815 } 816 for (i = 0; i < token.length; i++) { 817 tokens[token[i]] = func; 818 } 819 } 820 821 function addWeekParseToken (token, callback) { 822 addParseToken(token, function (input, array, config, token) { 823 config._w = config._w || {}; 824 callback(input, config._w, config, token); 825 }); 826 } 827 828 function addTimeToArrayFromToken(token, input, config) { 829 if (input != null && hasOwnProp(tokens, token)) { 830 tokens[token](input, config._a, config, token); 831 } 832 } 833 834 var YEAR = 0; 835 var MONTH = 1; 836 var DATE = 2; 837 var HOUR = 3; 838 var MINUTE = 4; 839 var SECOND = 5; 840 var MILLISECOND = 6; 841 var WEEK = 7; 842 var WEEKDAY = 8; 843 844 // FORMATTING 845 846 addFormatToken('Y', 0, 0, function () { 847 var y = this.year(); 848 return y <= 9999 ? '' + y : '+' + y; 849 }); 850 851 addFormatToken(0, ['YY', 2], 0, function () { 852 return this.year() % 100; 853 }); 854 855 addFormatToken(0, ['YYYY', 4], 0, 'year'); 856 addFormatToken(0, ['YYYYY', 5], 0, 'year'); 857 addFormatToken(0, ['YYYYYY', 6, true], 0, 'year'); 858 859 // ALIASES 860 861 addUnitAlias('year', 'y'); 862 863 // PRIORITIES 864 865 addUnitPriority('year', 1); 866 867 // PARSING 868 869 addRegexToken('Y', matchSigned); 870 addRegexToken('YY', match1to2, match2); 871 addRegexToken('YYYY', match1to4, match4); 872 addRegexToken('YYYYY', match1to6, match6); 873 addRegexToken('YYYYYY', match1to6, match6); 874 875 addParseToken(['YYYYY', 'YYYYYY'], YEAR); 876 addParseToken('YYYY', function (input, array) { 877 array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input); 878 }); 879 addParseToken('YY', function (input, array) { 880 array[YEAR] = hooks.parseTwoDigitYear(input); 881 }); 882 addParseToken('Y', function (input, array) { 883 array[YEAR] = parseInt(input, 10); 884 }); 885 886 // HELPERS 887 888 function daysInYear(year) { 889 return isLeapYear(year) ? 366 : 365; 890 } 891 892 function isLeapYear(year) { 893 return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0; 894 } 895 896 // HOOKS 897 898 hooks.parseTwoDigitYear = function (input) { 899 return toInt(input) + (toInt(input) > 68 ? 1900 : 2000); 900 }; 901 902 // MOMENTS 903 904 var getSetYear = makeGetSet('FullYear', true); 905 906 function getIsLeapYear () { 907 return isLeapYear(this.year()); 908 } 909 910 function makeGetSet (unit, keepTime) { 911 return function (value) { 912 if (value != null) { 913 set$1(this, unit, value); 914 hooks.updateOffset(this, keepTime); 915 return this; 916 } else { 917 return get(this, unit); 918 } 919 }; 920 } 921 922 function get (mom, unit) { 923 return mom.isValid() ? 924 mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN; 925 } 926 927 function set$1 (mom, unit, value) { 928 if (mom.isValid() && !isNaN(value)) { 929 if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) { 930 mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month())); 931 } 932 else { 933 mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value); 934 } 935 } 936 } 937 938 // MOMENTS 939 940 function stringGet (units) { 941 units = normalizeUnits(units); 942 if (isFunction(this[units])) { 943 return this[units](); 944 } 945 return this; 946 } 947 948 949 function stringSet (units, value) { 950 if (typeof units === 'object') { 951 units = normalizeObjectUnits(units); 952 var prioritized = getPrioritizedUnits(units); 953 for (var i = 0; i < prioritized.length; i++) { 954 this[prioritized[i].unit](units[prioritized[i].unit]); 955 } 956 } else { 957 units = normalizeUnits(units); 958 if (isFunction(this[units])) { 959 return this[units](value); 960 } 961 } 962 return this; 963 } 964 965 function mod(n, x) { 966 return ((n % x) + x) % x; 967 } 968 969 var indexOf; 970 971 if (Array.prototype.indexOf) { 972 indexOf = Array.prototype.indexOf; 973 } else { 974 indexOf = function (o) { 975 // I know 976 var i; 977 for (i = 0; i < this.length; ++i) { 978 if (this[i] === o) { 979 return i; 980 } 981 } 982 return -1; 983 }; 984 } 985 986 function daysInMonth(year, month) { 987 if (isNaN(year) || isNaN(month)) { 988 return NaN; 989 } 990 var modMonth = mod(month, 12); 991 year += (month - modMonth) / 12; 992 return modMonth === 1 ? (isLeapYear(year) ? 29 : 28) : (31 - modMonth % 7 % 2); 993 } 994 995 // FORMATTING 996 997 addFormatToken('M', ['MM', 2], 'Mo', function () { 998 return this.month() + 1; 999 }); 1000 1001 addFormatToken('MMM', 0, 0, function (format) { 1002 return this.localeData().monthsShort(this, format); 1003 }); 1004 1005 addFormatToken('MMMM', 0, 0, function (format) { 1006 return this.localeData().months(this, format); 1007 }); 1008 1009 // ALIASES 1010 1011 addUnitAlias('month', 'M'); 1012 1013 // PRIORITY 1014 1015 addUnitPriority('month', 8); 1016 1017 // PARSING 1018 1019 addRegexToken('M', match1to2); 1020 addRegexToken('MM', match1to2, match2); 1021 addRegexToken('MMM', function (isStrict, locale) { 1022 return locale.monthsShortRegex(isStrict); 1023 }); 1024 addRegexToken('MMMM', function (isStrict, locale) { 1025 return locale.monthsRegex(isStrict); 1026 }); 1027 1028 addParseToken(['M', 'MM'], function (input, array) { 1029 array[MONTH] = toInt(input) - 1; 1030 }); 1031 1032 addParseToken(['MMM', 'MMMM'], function (input, array, config, token) { 1033 var month = config._locale.monthsParse(input, token, config._strict); 1034 // if we didn't find a month name, mark the date as invalid. 1035 if (month != null) { 1036 array[MONTH] = month; 1037 } else { 1038 getParsingFlags(config).invalidMonth = input; 1039 } 1040 }); 1041 1042 // LOCALES 1043 1044 var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/; 1045 var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'); 1046 function localeMonths (m, format) { 1047 if (!m) { 1048 return isArray(this._months) ? this._months : 1049 this._months['standalone']; 1050 } 1051 return isArray(this._months) ? this._months[m.month()] : 1052 this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()]; 1053 } 1054 1055 var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'); 1056 function localeMonthsShort (m, format) { 1057 if (!m) { 1058 return isArray(this._monthsShort) ? this._monthsShort : 1059 this._monthsShort['standalone']; 1060 } 1061 return isArray(this._monthsShort) ? this._monthsShort[m.month()] : 1062 this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()]; 1063 } 1064 1065 function handleStrictParse(monthName, format, strict) { 1066 var i, ii, mom, llc = monthName.toLocaleLowerCase(); 1067 if (!this._monthsParse) { 1068 // this is not used 1069 this._monthsParse = []; 1070 this._longMonthsParse = []; 1071 this._shortMonthsParse = []; 1072 for (i = 0; i < 12; ++i) { 1073 mom = createUTC([2000, i]); 1074 this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase(); 1075 this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase(); 1076 } 1077 } 1078 1079 if (strict) { 1080 if (format === 'MMM') { 1081 ii = indexOf.call(this._shortMonthsParse, llc); 1082 return ii !== -1 ? ii : null; 1083 } else { 1084 ii = indexOf.call(this._longMonthsParse, llc); 1085 return ii !== -1 ? ii : null; 1086 } 1087 } else { 1088 if (format === 'MMM') { 1089 ii = indexOf.call(this._shortMonthsParse, llc); 1090 if (ii !== -1) { 1091 return ii; 1092 } 1093 ii = indexOf.call(this._longMonthsParse, llc); 1094 return ii !== -1 ? ii : null; 1095 } else { 1096 ii = indexOf.call(this._longMonthsParse, llc); 1097 if (ii !== -1) { 1098 return ii; 1099 } 1100 ii = indexOf.call(this._shortMonthsParse, llc); 1101 return ii !== -1 ? ii : null; 1102 } 1103 } 1104 } 1105 1106 function localeMonthsParse (monthName, format, strict) { 1107 var i, mom, regex; 1108 1109 if (this._monthsParseExact) { 1110 return handleStrictParse.call(this, monthName, format, strict); 1111 } 1112 1113 if (!this._monthsParse) { 1114 this._monthsParse = []; 1115 this._longMonthsParse = []; 1116 this._shortMonthsParse = []; 1117 } 1118 1119 // TODO: add sorting 1120 // Sorting makes sure if one month (or abbr) is a prefix of another 1121 // see sorting in computeMonthsParse 1122 for (i = 0; i < 12; i++) { 1123 // make the regex if we don't have it already 1124 mom = createUTC([2000, i]); 1125 if (strict && !this._longMonthsParse[i]) { 1126 this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i'); 1127 this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i'); 1128 } 1129 if (!strict && !this._monthsParse[i]) { 1130 regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, ''); 1131 this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i'); 1132 } 1133 // test the regex 1134 if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) { 1135 return i; 1136 } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) { 1137 return i; 1138 } else if (!strict && this._monthsParse[i].test(monthName)) { 1139 return i; 1140 } 1141 } 1142 } 1143 1144 // MOMENTS 1145 1146 function setMonth (mom, value) { 1147 var dayOfMonth; 1148 1149 if (!mom.isValid()) { 1150 // No op 1151 return mom; 1152 } 1153 1154 if (typeof value === 'string') { 1155 if (/^\d+$/.test(value)) { 1156 value = toInt(value); 1157 } else { 1158 value = mom.localeData().monthsParse(value); 1159 // TODO: Another silent failure? 1160 if (!isNumber(value)) { 1161 return mom; 1162 } 1163 } 1164 } 1165 1166 dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value)); 1167 mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth); 1168 return mom; 1169 } 1170 1171 function getSetMonth (value) { 1172 if (value != null) { 1173 setMonth(this, value); 1174 hooks.updateOffset(this, true); 1175 return this; 1176 } else { 1177 return get(this, 'Month'); 1178 } 1179 } 1180 1181 function getDaysInMonth () { 1182 return daysInMonth(this.year(), this.month()); 1183 } 1184 1185 var defaultMonthsShortRegex = matchWord; 1186 function monthsShortRegex (isStrict) { 1187 if (this._monthsParseExact) { 1188 if (!hasOwnProp(this, '_monthsRegex')) { 1189 computeMonthsParse.call(this); 1190 } 1191 if (isStrict) { 1192 return this._monthsShortStrictRegex; 1193 } else { 1194 return this._monthsShortRegex; 1195 } 1196 } else { 1197 if (!hasOwnProp(this, '_monthsShortRegex')) { 1198 this._monthsShortRegex = defaultMonthsShortRegex; 1199 } 1200 return this._monthsShortStrictRegex && isStrict ? 1201 this._monthsShortStrictRegex : this._monthsShortRegex; 1202 } 1203 } 1204 1205 var defaultMonthsRegex = matchWord; 1206 function monthsRegex (isStrict) { 1207 if (this._monthsParseExact) { 1208 if (!hasOwnProp(this, '_monthsRegex')) { 1209 computeMonthsParse.call(this); 1210 } 1211 if (isStrict) { 1212 return this._monthsStrictRegex; 1213 } else { 1214 return this._monthsRegex; 1215 } 1216 } else { 1217 if (!hasOwnProp(this, '_monthsRegex')) { 1218 this._monthsRegex = defaultMonthsRegex; 1219 } 1220 return this._monthsStrictRegex && isStrict ? 1221 this._monthsStrictRegex : this._monthsRegex; 1222 } 1223 } 1224 1225 function computeMonthsParse () { 1226 function cmpLenRev(a, b) { 1227 return b.length - a.length; 1228 } 1229 1230 var shortPieces = [], longPieces = [], mixedPieces = [], 1231 i, mom; 1232 for (i = 0; i < 12; i++) { 1233 // make the regex if we don't have it already 1234 mom = createUTC([2000, i]); 1235 shortPieces.push(this.monthsShort(mom, '')); 1236 longPieces.push(this.months(mom, '')); 1237 mixedPieces.push(this.months(mom, '')); 1238 mixedPieces.push(this.monthsShort(mom, '')); 1239 } 1240 // Sorting makes sure if one month (or abbr) is a prefix of another it 1241 // will match the longer piece. 1242 shortPieces.sort(cmpLenRev); 1243 longPieces.sort(cmpLenRev); 1244 mixedPieces.sort(cmpLenRev); 1245 for (i = 0; i < 12; i++) { 1246 shortPieces[i] = regexEscape(shortPieces[i]); 1247 longPieces[i] = regexEscape(longPieces[i]); 1248 } 1249 for (i = 0; i < 24; i++) { 1250 mixedPieces[i] = regexEscape(mixedPieces[i]); 1251 } 1252 1253 this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); 1254 this._monthsShortRegex = this._monthsRegex; 1255 this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i'); 1256 this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i'); 1257 } 1258 1259 function createDate (y, m, d, h, M, s, ms) { 1260 // can't just apply() to create a date: 1261 // https://stackoverflow.com/q/181348 1262 var date
vendor: 3,190 bytes, lines 1262-1364
1262 = new Date(y, m, d, h, M, s, ms); 1263 1264 // the date constructor remaps years 0-99 to 1900-1999 1265 if (y < 100 && y >= 0 && isFinite(date.getFullYear())) { 1266 date.setFullYear(y); 1267 } 1268 return date; 1269 } 1270 1271 function createUTCDate (y) { 1272 var date = new Date(Date.UTC.apply(null, arguments)); 1273 1274 // the Date.UTC function remaps years 0-99 to 1900-1999 1275 if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) { 1276 date.setUTCFullYear(y); 1277 } 1278 return date; 1279 } 1280 1281 // start-of-first-week - start-of-year 1282 function firstWeekOffset(year, dow, doy) { 1283 var // first-week day -- which january is always in the first week (4 for iso, 1 for other) 1284 fwd = 7 + dow - doy, 1285 // first-week day local weekday -- which local weekday is fwd 1286 fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7; 1287 1288 return -fwdlw + fwd - 1; 1289 } 1290 1291 // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday 1292 function dayOfYearFromWeeks(year, week, weekday, dow, doy) { 1293 var localWeekday = (7 + weekday - dow) % 7, 1294 weekOffset = firstWeekOffset(year, dow, doy), 1295 dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, 1296 resYear, resDayOfYear; 1297 1298 if (dayOfYear <= 0) { 1299 resYear = year - 1; 1300 resDayOfYear = daysInYear(resYear) + dayOfYear; 1301 } else if (dayOfYear > daysInYear(year)) { 1302 resYear = year + 1; 1303 resDayOfYear = dayOfYear - daysInYear(year); 1304 } else { 1305 resYear = year; 1306 resDayOfYear = dayOfYear; 1307 } 1308 1309 return { 1310 year: resYear, 1311 dayOfYear: resDayOfYear 1312 }; 1313 } 1314 1315 function weekOfYear(mom, dow, doy) { 1316 var weekOffset = firstWeekOffset(mom.year(), dow, doy), 1317 week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, 1318 resWeek, resYear; 1319 1320 if (week < 1) { 1321 resYear = mom.year() - 1; 1322 resWeek = week + weeksInYear(resYear, dow, doy); 1323 } else if (week > weeksInYear(mom.year(), dow, doy)) { 1324 resWeek = week - weeksInYear(mom.year(), dow, doy); 1325 resYear = mom.year() + 1; 1326 } else { 1327 resYear = mom.year(); 1328 resWeek = week; 1329 } 1330 1331 return { 1332 week: resWeek, 1333 year: resYear 1334 }; 1335 } 1336 1337 function weeksInYear(year, dow, doy) { 1338 var weekOffset = firstWeekOffset(year, dow, doy), 1339 weekOffsetNext = firstWeekOffset(year + 1, dow, doy); 1340 return (daysInYear(year) - weekOffset + weekOffsetNext) / 7; 1341 } 1342 1343 // FORMATTING 1344 1345 addFormatToken('w', ['ww', 2], 'wo', 'week'); 1346 addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek'); 1347 1348 // ALIASES 1349 1350 addUnitAlias('week', 'w'); 1351 addUnitAlias('isoWeek', 'W'); 1352 1353 // PRIORITIES 1354 1355 addUnitPriority('week', 5); 1356 addUnitPriority('isoWeek', 5); 1357 1358 // PARSING 1359 1360 addRegexToken('w', match1to2); 1361 addRegexToken('ww', match1to2, match2); 1362 addRegexToken('W', match1to2); 1363 addRegexToken('WW', match1to2, match2); 1364
vendor: 16,384 bytes, lines 1365-1847
1365 addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) { 1366 week[token.substr(0, 1)] = toInt(input); 1367 }); 1368 1369 // HELPERS 1370 1371 // LOCALES 1372 1373 function localeWeek (mom) { 1374 return weekOfYear(mom, this._week.dow, this._week.doy).week; 1375 } 1376 1377 var defaultLocaleWeek = { 1378 dow : 0, // Sunday is the first day of the week. 1379 doy : 6 // The week that contains Jan 1st is the first week of the year. 1380 }; 1381 1382 function localeFirstDayOfWeek () { 1383 return this._week.dow; 1384 } 1385 1386 function localeFirstDayOfYear () { 1387 return this._week.doy; 1388 } 1389 1390 // MOMENTS 1391 1392 function getSetWeek (input) { 1393 var week = this.localeData().week(this); 1394 return input == null ? week : this.add((input - week) * 7, 'd'); 1395 } 1396 1397 function getSetISOWeek (input) { 1398 var week = weekOfYear(this, 1, 4).week; 1399 return input == null ? week : this.add((input - week) * 7, 'd'); 1400 } 1401 1402 // FORMATTING 1403 1404 addFormatToken('d', 0, 'do', 'day'); 1405 1406 addFormatToken('dd', 0, 0, function (format) { 1407 return this.localeData().weekdaysMin(this, format); 1408 }); 1409 1410 addFormatToken('ddd', 0, 0, function (format) { 1411 return this.localeData().weekdaysShort(this, format); 1412 }); 1413 1414 addFormatToken('dddd', 0, 0, function (format) { 1415 return this.localeData().weekdays(this, format); 1416 }); 1417 1418 addFormatToken('e', 0, 0, 'weekday'); 1419 addFormatToken('E', 0, 0, 'isoWeekday'); 1420 1421 // ALIASES 1422 1423 addUnitAlias('day', 'd'); 1424 addUnitAlias('weekday', 'e'); 1425 addUnitAlias('isoWeekday', 'E'); 1426 1427 // PRIORITY 1428 addUnitPriority('day', 11); 1429 addUnitPriority('weekday', 11); 1430 addUnitPriority('isoWeekday', 11); 1431 1432 // PARSING 1433 1434 addRegexToken('d', match1to2); 1435 addRegexToken('e', match1to2); 1436 addRegexToken('E', match1to2); 1437 addRegexToken('dd', function (isStrict, locale) { 1438 return locale.weekdaysMinRegex(isStrict); 1439 }); 1440 addRegexToken('ddd', function (isStrict, locale) { 1441 return locale.weekdaysShortRegex(isStrict); 1442 }); 1443 addRegexToken('dddd', function (isStrict, locale) { 1444 return locale.weekdaysRegex(isStrict); 1445 }); 1446 1447 addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) { 1448 var weekday = config._locale.weekdaysParse(input, token, config._strict); 1449 // if we didn't get a weekday name, mark the date as invalid 1450 if (weekday != null) { 1451 week.d = weekday; 1452 } else { 1453 getParsingFlags(config).invalidWeekday = input; 1454 } 1455 }); 1456 1457 addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) { 1458 week[token] = toInt(input); 1459 }); 1460 1461 // HELPERS 1462 1463 function parseWeekday(input, locale) { 1464 if (typeof input !== 'string') { 1465 return input; 1466 } 1467 1468 if (!isNaN(input)) { 1469 return parseInt(input, 10); 1470 } 1471 1472 input = locale.weekdaysParse(input); 1473 if (typeof input === 'number') { 1474 return input; 1475 } 1476 1477 return null; 1478 } 1479 1480 function parseIsoWeekday(input, locale) { 1481 if (typeof input === 'string') { 1482 return locale.weekdaysParse(input) % 7 || 7; 1483 } 1484 return isNaN(input) ? null : input; 1485 } 1486 1487 // LOCALES 1488 1489 var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'); 1490 function localeWeekdays (m, format) { 1491 if (!m) { 1492 return isArray(this._weekdays) ? this._weekdays : 1493 this._weekdays['standalone']; 1494 } 1495 return isArray(this._weekdays) ? this._weekdays[m.day()] : 1496 this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()]; 1497 } 1498 1499 var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'); 1500 function localeWeekdaysShort (m) { 1501 return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort; 1502 } 1503 1504 var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'); 1505 function localeWeekdaysMin (m) { 1506 return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin; 1507 } 1508 1509 function handleStrictParse$1(weekdayName, format, strict) { 1510 var i, ii, mom, llc = weekdayName.toLocaleLowerCase(); 1511 if (!this._weekdaysParse) { 1512 this._weekdaysParse = []; 1513 this._shortWeekdaysParse = []; 1514 this._minWeekdaysParse = []; 1515 1516 for (i = 0; i < 7; ++i) { 1517 mom = createUTC([2000, 1]).day(i); 1518 this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase(); 1519 this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase(); 1520 this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase(); 1521 } 1522 } 1523 1524 if (strict) { 1525 if (format === 'dddd') { 1526 ii = indexOf.call(this._weekdaysParse, llc); 1527 return ii !== -1 ? ii : null; 1528 } else if (format === 'ddd') { 1529 ii = indexOf.call(this._shortWeekdaysParse, llc); 1530 return ii !== -1 ? ii : null; 1531 } else { 1532 ii = indexOf.call(this._minWeekdaysParse, llc); 1533 return ii !== -1 ? ii : null; 1534 } 1535 } else { 1536 if (format === 'dddd') { 1537 ii = indexOf.call(this._weekdaysParse, llc); 1538 if (ii !== -1) { 1539 return ii; 1540 } 1541 ii = indexOf.call(this._shortWeekdaysParse, llc); 1542 if (ii !== -1) { 1543 return ii; 1544 } 1545 ii = indexOf.call(this._minWeekdaysParse, llc); 1546 return ii !== -1 ? ii : null; 1547 } else if (format === 'ddd') { 1548 ii = indexOf.call(this._shortWeekdaysParse, llc); 1549 if (ii !== -1) { 1550 return ii; 1551 } 1552 ii = indexOf.call(this._weekdaysParse, llc); 1553 if (ii !== -1) { 1554 return ii; 1555 } 1556 ii = indexOf.call(this._minWeekdaysParse, llc); 1557 return ii !== -1 ? ii : null; 1558 } else { 1559 ii = indexOf.call(this._minWeekdaysParse, llc); 1560 if (ii !== -1) { 1561 return ii; 1562 } 1563 ii = indexOf.call(this._weekdaysParse, llc); 1564 if (ii !== -1) { 1565 return ii; 1566 } 1567 ii = indexOf.call(this._shortWeekdaysParse, llc); 1568 return ii !== -1 ? ii : null; 1569 } 1570 } 1571 } 1572 1573 function localeWeekdaysParse (weekdayName, format, strict) { 1574 var i, mom, regex; 1575 1576 if (this._weekdaysParseExact) { 1577 return handleStrictParse$1.call(this, weekdayName, format, strict); 1578 } 1579 1580 if (!this._weekdaysParse) { 1581 this._weekdaysParse = []; 1582 this._minWeekdaysParse = []; 1583 this._shortWeekdaysParse = []; 1584 this._fullWeekdaysParse = []; 1585 } 1586 1587 for (i = 0; i < 7; i++) { 1588 // make the regex if we don't have it already 1589 1590 mom = createUTC([2000, 1]).day(i); 1591 if (strict && !this._fullWeekdaysParse[i]) { 1592 this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', 'i'); 1593 this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', 'i'); 1594 this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', 'i'); 1595 } 1596 if (!this._weekdaysParse[i]) { 1597 regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, ''); 1598 this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i'); 1599 } 1600 // test the regex 1601 if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) { 1602 return i; 1603 } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) { 1604 return i; 1605 } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) { 1606 return i; 1607 } else if (!strict && this._weekdaysParse[i].test(weekdayName)) { 1608 return i; 1609 } 1610 } 1611 } 1612 1613 // MOMENTS 1614 1615 function getSetDayOfWeek (input) { 1616 if (!this.isValid()) { 1617 return input != null ? this : NaN; 1618 } 1619 var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); 1620 if (input != null) { 1621 input = parseWeekday(input, this.localeData()); 1622 return this.add(input - day, 'd'); 1623 } else { 1624 return day; 1625 } 1626 } 1627 1628 function getSetLocaleDayOfWeek (input) { 1629 if (!this.isValid()) { 1630 return input != null ? this : NaN; 1631 } 1632 var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; 1633 return input == null ? weekday : this.add(input - weekday, 'd'); 1634 } 1635 1636 function getSetISODayOfWeek (input) { 1637 if (!this.isValid()) { 1638 return input != null ? this : NaN; 1639 } 1640 1641 // behaves the same as moment#day except 1642 // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6) 1643 // as a setter, sunday should belong to the previous week. 1644 1645 if (input != null) { 1646 var weekday = parseIsoWeekday(input, this.localeData()); 1647 return this.day(this.day() % 7 ? weekday : weekday - 7); 1648 } else { 1649 return this.day() || 7; 1650 } 1651 } 1652 1653 var defaultWeekdaysRegex = matchWord; 1654 function weekdaysRegex (isStrict) { 1655 if (this._weekdaysParseExact) { 1656 if (!hasOwnProp(this, '_weekdaysRegex')) { 1657 computeWeekdaysParse.call(this); 1658 } 1659 if (isStrict) { 1660 return this._weekdaysStrictRegex; 1661 } else { 1662 return this._weekdaysRegex; 1663 } 1664 } else { 1665 if (!hasOwnProp(this, '_weekdaysRegex')) { 1666 this._weekdaysRegex = defaultWeekdaysRegex; 1667 } 1668 return this._weekdaysStrictRegex && isStrict ? 1669 this._weekdaysStrictRegex : this._weekdaysRegex; 1670 } 1671 } 1672 1673 var defaultWeekdaysShortRegex = matchWord; 1674 function weekdaysShortRegex (isStrict) { 1675 if (this._weekdaysParseExact) { 1676 if (!hasOwnProp(this, '_weekdaysRegex')) { 1677 computeWeekdaysParse.call(this); 1678 } 1679 if (isStrict) { 1680 return this._weekdaysShortStrictRegex; 1681 } else { 1682 return this._weekdaysShortRegex; 1683 } 1684 } else { 1685 if (!hasOwnProp(this, '_weekdaysShortRegex')) { 1686 this._weekdaysShortRegex = defaultWeekdaysShortRegex; 1687 } 1688 return this._weekdaysShortStrictRegex && isStrict ? 1689 this._weekdaysShortStrictRegex : this._weekdaysShortRegex; 1690 } 1691 } 1692 1693 var defaultWeekdaysMinRegex = matchWord; 1694 function weekdaysMinRegex (isStrict) { 1695 if (this._weekdaysParseExact) { 1696 if (!hasOwnProp(this, '_weekdaysRegex')) { 1697 computeWeekdaysParse.call(this); 1698 } 1699 if (isStrict) { 1700 return this._weekdaysMinStrictRegex; 1701 } else { 1702 return this._weekdaysMinRegex; 1703 } 1704 } else { 1705 if (!hasOwnProp(this, '_weekdaysMinRegex')) { 1706 this._weekdaysMinRegex = defaultWeekdaysMinRegex; 1707 } 1708 return this._weekdaysMinStrictRegex && isStrict ? 1709 this._weekdaysMinStrictRegex : this._weekdaysMinRegex; 1710 } 1711 } 1712 1713 1714 function computeWeekdaysParse () { 1715 function cmpLenRev(a, b) { 1716 return b.length - a.length; 1717 } 1718 1719 var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [], 1720 i, mom, minp, shortp, longp; 1721 for (i = 0; i < 7; i++) { 1722 // make the regex if we don't have it already 1723 mom = createUTC([2000, 1]).day(i); 1724 minp = this.weekdaysMin(mom, ''); 1725 shortp = this.weekdaysShort(mom, ''); 1726 longp = this.weekdays(mom, ''); 1727 minPieces.push(minp); 1728 shortPieces.push(shortp); 1729 longPieces.push(longp); 1730 mixedPieces.push(minp); 1731 mixedPieces.push(shortp); 1732 mixedPieces.push(longp); 1733 } 1734 // Sorting makes sure if one weekday (or abbr) is a prefix of another it 1735 // will match the longer piece. 1736 minPieces.sort(cmpLenRev); 1737 shortPieces.sort(cmpLenRev); 1738 longPieces.sort(cmpLenRev); 1739 mixedPieces.sort(cmpLenRev); 1740 for (i = 0; i < 7; i++) { 1741 shortPieces[i] = regexEscape(shortPieces[i]); 1742 longPieces[i] = regexEscape(longPieces[i]); 1743 mixedPieces[i] = regexEscape(mixedPieces[i]); 1744 } 1745 1746 this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); 1747 this._weekdaysShortRegex = this._weekdaysRegex; 1748 this._weekdaysMinRegex = this._weekdaysRegex; 1749 1750 this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i'); 1751 this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i'); 1752 this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i'); 1753 } 1754 1755 // FORMATTING 1756 1757 function hFormat() { 1758 return this.hours() % 12 || 12; 1759 } 1760 1761 function kFormat() { 1762 return this.hours() || 24; 1763 } 1764 1765 addFormatToken('H', ['HH', 2], 0, 'hour'); 1766 addFormatToken('h', ['hh', 2], 0, hFormat); 1767 addFormatToken('k', ['kk', 2], 0, kFormat); 1768 1769 addFormatToken('hmm', 0, 0, function () { 1770 return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2); 1771 }); 1772 1773 addFormatToken('hmmss', 0, 0, function () { 1774 return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) + 1775 zeroFill(this.seconds(), 2); 1776 }); 1777 1778 addFormatToken('Hmm', 0, 0, function () { 1779 return '' + this.hours() + zeroFill(this.minutes(), 2); 1780 }); 1781 1782 addFormatToken('Hmmss', 0, 0, function () { 1783 return '' + this.hours() + zeroFill(this.minutes(), 2) + 1784 zeroFill(this.seconds(), 2); 1785 }); 1786 1787 function meridiem (token, lowercase) { 1788 addFormatToken(token, 0, 0, function () { 1789 return this.localeData().meridiem(this.hours(), this.minutes(), lowercase); 1790 }); 1791 } 1792 1793 meridiem('a', true); 1794 meridiem('A', false); 1795 1796 // ALIASES 1797 1798 addUnitAlias('hour', 'h'); 1799 1800 // PRIORITY 1801 addUnitPriority('hour', 13); 1802 1803 // PARSING 1804 1805 function matchMeridiem (isStrict, locale) { 1806 return locale._meridiemParse; 1807 } 1808 1809 addRegexToken('a', matchMeridiem); 1810 addRegexToken('A', matchMeridiem); 1811 addRegexToken('H', match1to2); 1812 addRegexToken('h', match1to2); 1813 addRegexToken('k', match1to2); 1814 addRegexToken('HH', match1to2, match2); 1815 addRegexToken('hh', match1to2, match2); 1816 addRegexToken('kk', match1to2, match2); 1817 1818 addRegexToken('hmm', match3to4); 1819 addRegexToken('hmmss', match5to6); 1820 addRegexToken('Hmm', match3to4); 1821 addRegexToken('Hmmss', match5to6); 1822 1823 addParseToken(['H', 'HH'], HOUR); 1824 addParseToken(['k', 'kk'], function (input, array, config) { 1825 var kInput = toInt(input); 1826 array[HOUR] = kInput === 24 ? 0 : kInput; 1827 }); 1828 addParseToken(['a', 'A'], function (input, array, config) { 1829 config._isPm = config._locale.isPM(input); 1830 config._meridiem = input; 1831 }); 1832 addParseToken(['h', 'hh'], function (input, array, config) { 1833 array[HOUR] = toInt(input); 1834 getParsingFlags(config).bigHour = true; 1835 }); 1836 addParseToken('hmm', function (input, array, config) { 1837 var pos = input.length - 2; 1838 array[HOUR] = toInt(input.substr(0, pos)); 1839 array[MINUTE] = toInt(input.substr(pos)); 1840 getParsingFlags(config).bigHour = true; 1841 }); 1842 addParseToken('hmmss', function (input, array, config) { 1843 var pos1 = input.length - 4; 1844 var pos2 = input.length - 2; 1845 array[HOUR] = toInt(input.substr(0, pos1)); 1846 array[MINUTE] = toInt(input.substr(pos1, 2)); 1847 array[SECOND] = toInt(input
vendor: 11,809 bytes, lines 1847-2182
1847.substr(pos2)); 1848 getParsingFlags(config).bigHour = true; 1849 }); 1850 addParseToken('Hmm', function (input, array, config) { 1851 var pos = input.length - 2; 1852 array[HOUR] = toInt(input.substr(0, pos)); 1853 array[MINUTE] = toInt(input.substr(pos)); 1854 }); 1855 addParseToken('Hmmss', function (input, array, config) { 1856 var pos1 = input.length - 4; 1857 var pos2 = input.length - 2; 1858 array[HOUR] = toInt(input.substr(0, pos1)); 1859 array[MINUTE] = toInt(input.substr(pos1, 2)); 1860 array[SECOND] = toInt(input.substr(pos2)); 1861 }); 1862 1863 // LOCALES 1864 1865 function localeIsPM (input) { 1866 // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays 1867 // Using charAt should be more compatible. 1868 return ((input + '').toLowerCase().charAt(0) === 'p'); 1869 } 1870 1871 var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i; 1872 function localeMeridiem (hours, minutes, isLower) { 1873 if (hours > 11) { 1874 return isLower ? 'pm' : 'PM'; 1875 } else { 1876 return isLower ? 'am' : 'AM'; 1877 } 1878 } 1879 1880 1881 // MOMENTS 1882 1883 // Setting the hour should keep the time, because the user explicitly 1884 // specified which hour they want. So trying to maintain the same hour (in 1885 // a new timezone) makes sense. Adding/subtracting hours does not follow 1886 // this rule. 1887 var getSetHour = makeGetSet('Hours', true); 1888 1889 var baseConfig = { 1890 calendar: defaultCalendar, 1891 longDateFormat: defaultLongDateFormat, 1892 invalidDate: defaultInvalidDate, 1893 ordinal: defaultOrdinal, 1894 dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse, 1895 relativeTime: defaultRelativeTime, 1896 1897 months: defaultLocaleMonths, 1898 monthsShort: defaultLocaleMonthsShort, 1899 1900 week: defaultLocaleWeek, 1901 1902 weekdays: defaultLocaleWeekdays, 1903 weekdaysMin: defaultLocaleWeekdaysMin, 1904 weekdaysShort: defaultLocaleWeekdaysShort, 1905 1906 meridiemParse: defaultLocaleMeridiemParse 1907 }; 1908 1909 // internal storage for locale config files 1910 var locales = {}; 1911 var localeFamilies = {}; 1912 var globalLocale; 1913 1914 function normalizeLocale(key) { 1915 return key ? key.toLowerCase().replace('_', '-') : key; 1916 } 1917 1918 // pick the locale from the array 1919 // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each 1920 // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root 1921 function chooseLocale(names) { 1922 var i = 0, j, next, locale, split; 1923 1924 while (i < names.length) { 1925 split = normalizeLocale(names[i]).split('-'); 1926 j = split.length; 1927 next = normalizeLocale(names[i + 1]); 1928 next = next ? next.split('-') : null; 1929 while (j > 0) { 1930 locale = loadLocale(split.slice(0, j).join('-')); 1931 if (locale) { 1932 return locale; 1933 } 1934 if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) { 1935 //the next array item is better than a shallower substring of this one 1936 break; 1937 } 1938 j--; 1939 } 1940 i++; 1941 } 1942 return globalLocale; 1943 } 1944 1945 function loadLocale(name) { 1946 var oldLocale = null; 1947 // TODO: Find a better way to register and load all the locales in Node 1948 if (!locales[name] && (typeof module !== 'undefined') && 1949 module && module.exports) { 1950 try { 1951 oldLocale = globalLocale._abbr; 1952 var aliasedRequire = require; 1953 __webpack_require__(566)("./" + name); 1954 getSetGlobalLocale(oldLocale); 1955 } catch (e) {} 1956 } 1957 return locales[name]; 1958 } 1959 1960 // This function will load locale and then set the global locale. If 1961 // no arguments are passed in, it will simply return the current global 1962 // locale key. 1963 function getSetGlobalLocale (key, values) { 1964 var data; 1965 if (key) { 1966 if (isUndefined(values)) { 1967 data = getLocale(key); 1968 } 1969 else { 1970 data = defineLocale(key, values); 1971 } 1972 1973 if (data) { 1974 // moment.duration._locale = moment._locale = data; 1975 globalLocale = data; 1976 } 1977 else { 1978 if ((typeof console !== 'undefined') && console.warn) { 1979 //warn user if arguments are passed but the locale could not be set 1980 console.warn('Locale ' + key + ' not found. Did you forget to load it?'); 1981 } 1982 } 1983 } 1984 1985 return globalLocale._abbr; 1986 } 1987 1988 function defineLocale (name, config) { 1989 if (config !== null) { 1990 var locale, parentConfig = baseConfig; 1991 config.abbr = name; 1992 if (locales[name] != null) { 1993 deprecateSimple('defineLocaleOverride', 1994 'use moment.updateLocale(localeName, config) to change ' + 1995 'an existing locale. moment.defineLocale(localeName, ' + 1996 'config) should only be used for creating a new locale ' + 1997 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'); 1998 parentConfig = locales[name]._config; 1999 } else if (config.parentLocale != null) { 2000 if (locales[config.parentLocale] != null) { 2001 parentConfig = locales[config.parentLocale]._config; 2002 } else { 2003 locale = loadLocale(config.parentLocale); 2004 if (locale != null) { 2005 parentConfig = locale._config; 2006 } else { 2007 if (!localeFamilies[config.parentLocale]) { 2008 localeFamilies[config.parentLocale] = []; 2009 } 2010 localeFamilies[config.parentLocale].push({ 2011 name: name, 2012 config: config 2013 }); 2014 return null; 2015 } 2016 } 2017 } 2018 locales[name] = new Locale(mergeConfigs(parentConfig, config)); 2019 2020 if (localeFamilies[name]) { 2021 localeFamilies[name].forEach(function (x) { 2022 defineLocale(x.name, x.config); 2023 }); 2024 } 2025 2026 // backwards compat for now: also set the locale 2027 // make sure we set the locale AFTER all child locales have been 2028 // created, so we won't end up with the child locale set. 2029 getSetGlobalLocale(name); 2030 2031 2032 return locales[name]; 2033 } else { 2034 // useful for testing 2035 delete locales[name]; 2036 return null; 2037 } 2038 } 2039 2040 function updateLocale(name, config) { 2041 if (config != null) { 2042 var locale, tmpLocale, parentConfig = baseConfig; 2043 // MERGE 2044 tmpLocale = loadLocale(name); 2045 if (tmpLocale != null) { 2046 parentConfig = tmpLocale._config; 2047 } 2048 config = mergeConfigs(parentConfig, config); 2049 locale = new Locale(config); 2050 locale.parentLocale = locales[name]; 2051 locales[name] = locale; 2052 2053 // backwards compat for now: also set the locale 2054 getSetGlobalLocale(name); 2055 } else { 2056 // pass null for config to unupdate, useful for tests 2057 if (locales[name] != null) { 2058 if (locales[name].parentLocale != null) { 2059 locales[name] = locales[name].parentLocale; 2060 } else if (locales[name] != null) { 2061 delete locales[name]; 2062 } 2063 } 2064 } 2065 return locales[name]; 2066 } 2067 2068 // returns locale data 2069 function getLocale (key) { 2070 var locale; 2071 2072 if (key && key._locale && key._locale._abbr) { 2073 key = key._locale._abbr; 2074 } 2075 2076 if (!key) { 2077 return globalLocale; 2078 } 2079 2080 if (!isArray(key)) { 2081 //short-circuit everything else 2082 locale = loadLocale(key); 2083 if (locale) { 2084 return locale; 2085 } 2086 key = [key]; 2087 } 2088 2089 return chooseLocale(key); 2090 } 2091 2092 function listLocales() { 2093 return keys(locales); 2094 } 2095 2096 function checkOverflow (m) { 2097 var overflow; 2098 var a = m._a; 2099 2100 if (a && getParsingFlags(m).overflow === -2) { 2101 overflow = 2102 a[MONTH] < 0 || a[MONTH] > 11 ? MONTH : 2103 a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE : 2104 a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR : 2105 a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE : 2106 a[SECOND] < 0 || a[SECOND] > 59 ? SECOND : 2107 a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND : 2108 -1; 2109 2110 if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) { 2111 overflow = DATE; 2112 } 2113 if (getParsingFlags(m)._overflowWeeks && overflow === -1) { 2114 overflow = WEEK; 2115 } 2116 if (getParsingFlags(m)._overflowWeekday && overflow === -1) { 2117 overflow = WEEKDAY; 2118 } 2119 2120 getParsingFlags(m).overflow = overflow; 2121 } 2122 2123 return m; 2124 } 2125 2126 // Pick the first defined of two or three arguments. 2127 function defaults(a, b, c) { 2128 if (a != null) { 2129 return a; 2130 } 2131 if (b != null) { 2132 return b; 2133 } 2134 return c; 2135 } 2136 2137 function currentDateArray(config) { 2138 // hooks is actually the exported moment object 2139 var nowValue = new Date(hooks.now()); 2140 if (config._useUTC) { 2141 return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()]; 2142 } 2143 return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()]; 2144 } 2145 2146 // convert an array to a date. 2147 // the array should mirror the parameters below 2148 // note: all values past the year are optional and will default to the lowest possible value. 2149 // [year, month, day , hour, minute, second, millisecond] 2150 function configFromArray (config) { 2151 var i, date, input = [], currentDate, expectedWeekday, yearToUse; 2152 2153 if (config._d) { 2154 return; 2155 } 2156 2157 currentDate = currentDateArray(config); 2158 2159 //compute day of the year from weeks and weekdays 2160 if (config._w && config._a[DATE] == null && config._a[MONTH] == null) { 2161 dayOfYearFromWeekInfo(config); 2162 } 2163 2164 //if the day of the year is set, figure out what it is 2165 if (config._dayOfYear != null) { 2166 yearToUse = defaults(config._a[YEAR], currentDate[YEAR]); 2167 2168 if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) { 2169 getParsingFlags(config)._overflowDayOfYear = true; 2170 } 2171 2172 date = createUTCDate(yearToUse, 0, config._dayOfYear); 2173 config._a[MONTH] = date.getUTCMonth(); 2174 config._a[DATE] = date.getUTCDate(); 2175 } 2176 2177 // Default to current date. 2178 // * if no year, month, day of month are given, default to today 2179 // * if day of month is given, default month and year 2180 // * if month is given, default only year 2181 // * if year is given, don't default anything 2182 for (i = 0; i < 3 && config._a[i] == null; ++i) {
vendor: 2,915 bytes, lines 2183-2261
2183 config._a[i] = input[i] = currentDate[i]; 2184 } 2185 2186 // Zero out whatever was not defaulted, including time 2187 for (; i < 7; i++) { 2188 config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i]; 2189 } 2190 2191 // Check for 24:00:00.000 2192 if (config._a[HOUR] === 24 && 2193 config._a[MINUTE] === 0 && 2194 config._a[SECOND] === 0 && 2195 config._a[MILLISECOND] === 0) { 2196 config._nextDay = true; 2197 config._a[HOUR] = 0; 2198 } 2199 2200 config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input); 2201 expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay(); 2202 2203 // Apply timezone offset from input. The actual utcOffset can be changed 2204 // with parseZone. 2205 if (config._tzm != null) { 2206 config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); 2207 } 2208 2209 if (config._nextDay) { 2210 config._a[HOUR] = 24; 2211 } 2212 2213 // check for mismatching day of week 2214 if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) { 2215 getParsingFlags(config).weekdayMismatch = true; 2216 } 2217 } 2218 2219 function dayOfYearFromWeekInfo(config) { 2220 var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow; 2221 2222 w = config._w; 2223 if (w.GG != null || w.W != null || w.E != null) { 2224 dow = 1; 2225 doy = 4; 2226 2227 // TODO: We need to take the current isoWeekYear, but that depends on 2228 // how we interpret now (local, utc, fixed offset). So create 2229 // a now version of current config (take local/utc/offset flags, and 2230 // create now). 2231 weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year); 2232 week = defaults(w.W, 1); 2233 weekday = defaults(w.E, 1); 2234 if (weekday < 1 || weekday > 7) { 2235 weekdayOverflow = true; 2236 } 2237 } else { 2238 dow = config._locale._week.dow; 2239 doy = config._locale._week.doy; 2240 2241 var curWeek = weekOfYear(createLocal(), dow, doy); 2242 2243 weekYear = defaults(w.gg, config._a[YEAR], curWeek.year); 2244 2245 // Default to current week. 2246 week = defaults(w.w, curWeek.week); 2247 2248 if (w.d != null) { 2249 // weekday -- low day numbers are considered next week 2250 weekday = w.d; 2251 if (weekday < 0 || weekday > 6) { 2252 weekdayOverflow = true; 2253 } 2254 } else if (w.e != null) { 2255 // local weekday -- counting starts from begining of week 2256 weekday = w.e + dow; 2257 if (w.e < 0 || w.e > 6) { 2258 weekdayOverflow = true; 2259 } 2260 } else { 2261 // default to begi
vendor: 19,665 bytes, lines 2261-2855
2261ning of week 2262 weekday = dow; 2263 } 2264 } 2265 if (week < 1 || week > weeksInYear(weekYear, dow, doy)) { 2266 getParsingFlags(config)._overflowWeeks = true; 2267 } else if (weekdayOverflow != null) { 2268 getParsingFlags(config)._overflowWeekday = true; 2269 } else { 2270 temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy); 2271 config._a[YEAR] = temp.year; 2272 config._dayOfYear = temp.dayOfYear; 2273 } 2274 } 2275 2276 // iso 8601 regex 2277 // 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) 2278 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)?)?$/; 2279 var 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)?)?$/; 2280 2281 var tzRegex = /Z|[+-]\d\d(?::?\d\d)?/; 2282 2283 var isoDates = [ 2284 ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], 2285 ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], 2286 ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], 2287 ['GGGG-[W]WW', /\d{4}-W\d\d/, false], 2288 ['YYYY-DDD', /\d{4}-\d{3}/], 2289 ['YYYY-MM', /\d{4}-\d\d/, false], 2290 ['YYYYYYMMDD', /[+-]\d{10}/], 2291 ['YYYYMMDD', /\d{8}/], 2292 // YYYYMM is NOT allowed by the standard 2293 ['GGGG[W]WWE', /\d{4}W\d{3}/], 2294 ['GGGG[W]WW', /\d{4}W\d{2}/, false], 2295 ['YYYYDDD', /\d{7}/] 2296 ]; 2297 2298 // iso time formats and regexes 2299 var isoTimes = [ 2300 ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], 2301 ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], 2302 ['HH:mm:ss', /\d\d:\d\d:\d\d/], 2303 ['HH:mm', /\d\d:\d\d/], 2304 ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], 2305 ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], 2306 ['HHmmss', /\d\d\d\d\d\d/], 2307 ['HHmm', /\d\d\d\d/], 2308 ['HH', /\d\d/] 2309 ]; 2310 2311 var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i; 2312 2313 // date from iso format 2314 function configFromISO(config) { 2315 var i, l, 2316 string = config._i, 2317 match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), 2318 allowTime, dateFormat, timeFormat, tzFormat; 2319 2320 if (match) { 2321 getParsingFlags(config).iso = true; 2322 2323 for (i = 0, l = isoDates.length; i < l; i++) { 2324 if (isoDates[i][1].exec(match[1])) { 2325 dateFormat = isoDates[i][0]; 2326 allowTime = isoDates[i][2] !== false; 2327 break; 2328 } 2329 } 2330 if (dateFormat == null) { 2331 config._isValid = false; 2332 return; 2333 } 2334 if (match[3]) { 2335 for (i = 0, l = isoTimes.length; i < l; i++) { 2336 if (isoTimes[i][1].exec(match[3])) { 2337 // match[2] should be 'T' or space 2338 timeFormat = (match[2] || ' ') + isoTimes[i][0]; 2339 break; 2340 } 2341 } 2342 if (timeFormat == null) { 2343 config._isValid = false; 2344 return; 2345 } 2346 } 2347 if (!allowTime && timeFormat != null) { 2348 config._isValid = false; 2349 return; 2350 } 2351 if (match[4]) { 2352 if (tzRegex.exec(match[4])) { 2353 tzFormat = 'Z'; 2354 } else { 2355 config._isValid = false; 2356 return; 2357 } 2358 } 2359 config._f = dateFormat + (timeFormat || '') + (tzFormat || ''); 2360 configFromStringAndFormat(config); 2361 } else { 2362 config._isValid = false; 2363 } 2364 } 2365 2366 // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3 2367 var 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}))$/; 2368 2369 function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) { 2370 var result = [ 2371 untruncateYear(yearStr), 2372 defaultLocaleMonthsShort.indexOf(monthStr), 2373 parseInt(dayStr, 10), 2374 parseInt(hourStr, 10), 2375 parseInt(minuteStr, 10) 2376 ]; 2377 2378 if (secondStr) { 2379 result.push(parseInt(secondStr, 10)); 2380 } 2381 2382 return result; 2383 } 2384 2385 function untruncateYear(yearStr) { 2386 var year = parseInt(yearStr, 10); 2387 if (year <= 49) { 2388 return 2000 + year; 2389 } else if (year <= 999) { 2390 return 1900 + year; 2391 } 2392 return year; 2393 } 2394 2395 function preprocessRFC2822(s) { 2396 // Remove comments and folding whitespace and replace multiple-spaces with a single space 2397 return s.replace(/\([^)]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').replace(/^\s\s*/, '').replace(/\s\s*$/, ''); 2398 } 2399 2400 function checkWeekday(weekdayStr, parsedInput, config) { 2401 if (weekdayStr) { 2402 // TODO: Replace the vanilla JS Date object with an indepentent day-of-week check. 2403 var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr), 2404 weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay(); 2405 if (weekdayProvided !== weekdayActual) { 2406 getParsingFlags(config).weekdayMismatch = true; 2407 config._isValid = false; 2408 return false; 2409 } 2410 } 2411 return true; 2412 } 2413 2414 var obsOffsets = { 2415 UT: 0, 2416 GMT: 0, 2417 EDT: -4 * 60, 2418 EST: -5 * 60, 2419 CDT: -5 * 60, 2420 CST: -6 * 60, 2421 MDT: -6 * 60, 2422 MST: -7 * 60, 2423 PDT: -7 * 60, 2424 PST: -8 * 60 2425 }; 2426 2427 function calculateOffset(obsOffset, militaryOffset, numOffset) { 2428 if (obsOffset) { 2429 return obsOffsets[obsOffset]; 2430 } else if (militaryOffset) { 2431 // the only allowed military tz is Z 2432 return 0; 2433 } else { 2434 var hm = parseInt(numOffset, 10); 2435 var m = hm % 100, h = (hm - m) / 100; 2436 return h * 60 + m; 2437 } 2438 } 2439 2440 // date and time from ref 2822 format 2441 function configFromRFC2822(config) { 2442 var match = rfc2822.exec(preprocessRFC2822(config._i)); 2443 if (match) { 2444 var parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]); 2445 if (!checkWeekday(match[1], parsedArray, config)) { 2446 return; 2447 } 2448 2449 config._a = parsedArray; 2450 config._tzm = calculateOffset(match[8], match[9], match[10]); 2451 2452 config._d = createUTCDate.apply(null, config._a); 2453 config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); 2454 2455 getParsingFlags(config).rfc2822 = true; 2456 } else { 2457 config._isValid = false; 2458 } 2459 } 2460 2461 // date from iso format or fallback 2462 function configFromString(config) { 2463 var matched = aspNetJsonRegex.exec(config._i); 2464 2465 if (matched !== null) { 2466 config._d = new Date(+matched[1]); 2467 return; 2468 } 2469 2470 configFromISO(config); 2471 if (config._isValid === false) { 2472 delete config._isValid; 2473 } else { 2474 return; 2475 } 2476 2477 configFromRFC2822(config); 2478 if (config._isValid === false) { 2479 delete config._isValid; 2480 } else { 2481 return; 2482 } 2483 2484 // Final attempt, use Input Fallback 2485 hooks.createFromInputFallback(config); 2486 } 2487 2488 hooks.createFromInputFallback = deprecate( 2489 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' + 2490 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' + 2491 'discouraged and will be removed in an upcoming major release. Please refer to ' + 2492 'http://momentjs.com/guides/#/warnings/js-date/ for more info.', 2493 function (config) { 2494 config._d = new Date(config._i + (config._useUTC ? ' UTC' : '')); 2495 } 2496 ); 2497 2498 // constant that refers to the ISO standard 2499 hooks.ISO_8601 = function () {}; 2500 2501 // constant that refers to the RFC 2822 form 2502 hooks.RFC_2822 = function () {}; 2503 2504 // date from string and format string 2505 function configFromStringAndFormat(config) { 2506 // TODO: Move this to another part of the creation flow to prevent circular deps 2507 if (config._f === hooks.ISO_8601) { 2508 configFromISO(config); 2509 return; 2510 } 2511 if (config._f === hooks.RFC_2822) { 2512 configFromRFC2822(config); 2513 return; 2514 } 2515 config._a = []; 2516 getParsingFlags(config).empty = true; 2517 2518 // This array is used to make a Date, either with `new Date` or `Date.UTC` 2519 var string = '' + config._i, 2520 i, parsedInput, tokens, token, skipped, 2521 stringLength = string.length, 2522 totalParsedInputLength = 0; 2523 2524 tokens = expandFormat(config._f, config._locale).match(formattingTokens) || []; 2525 2526 for (i = 0; i < tokens.length; i++) { 2527 token = tokens[i]; 2528 parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0]; 2529 // console.log('token', token, 'parsedInput', parsedInput, 2530 // 'regex', getParseRegexForToken(token, config)); 2531 if (parsedInput) { 2532 skipped = string.substr(0, string.indexOf(parsedInput)); 2533 if (skipped.length > 0) { 2534 getParsingFlags(config).unusedInput.push(skipped); 2535 } 2536 string = string.slice(string.indexOf(parsedInput) + parsedInput.length); 2537 totalParsedInputLength += parsedInput.length; 2538 } 2539 // don't parse if it's not a known token 2540 if (formatTokenFunctions[token]) { 2541 if (parsedInput) { 2542 getParsingFlags(config).empty = false; 2543 } 2544 else { 2545 getParsingFlags(config).unusedTokens.push(token); 2546 } 2547 addTimeToArrayFromToken(token, parsedInput, config); 2548 } 2549 else if (config._strict && !parsedInput) { 2550 getParsingFlags(config).unusedTokens.push(token); 2551 } 2552 } 2553 2554 // add remaining unparsed input length to the string 2555 getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength; 2556 if (string.length > 0) { 2557 getParsingFlags(config).unusedInput.push(string); 2558 } 2559 2560 // clear _12h flag if hour is <= 12 2561 if (config._a[HOUR] <= 12 && 2562 getParsingFlags(config).bigHour === true && 2563 config._a[HOUR] > 0) { 2564 getParsingFlags(config).bigHour = undefined; 2565 } 2566 2567 getParsingFlags(config).parsedDateParts = config._a.slice(0); 2568 getParsingFlags(config).meridiem = config._meridiem; 2569 // handle meridiem 2570 config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem); 2571 2572 configFromArray(config); 2573 checkOverflow(config); 2574 } 2575 2576 2577 function meridiemFixWrap (locale, hour, meridiem) { 2578 var isPm; 2579 2580 if (meridiem == null) { 2581 // nothing to do 2582 return hour; 2583 } 2584 if (locale.meridiemHour != null) { 2585 return locale.meridiemHour(hour, meridiem); 2586 } else if (locale.isPM != null) { 2587 // Fallback 2588 isPm = locale.isPM(meridiem); 2589 if (isPm && hour < 12) { 2590 hour += 12; 2591 } 2592 if (!isPm && hour === 12) { 2593 hour = 0; 2594 } 2595 return hour; 2596 } else { 2597 // this is not supposed to happen 2598 return hour; 2599 } 2600 } 2601 2602 // date from string and array of format strings 2603 function configFromStringAndArray(config) { 2604 var tempConfig, 2605 bestMoment, 2606 2607 scoreToBeat, 2608 i, 2609 currentScore; 2610 2611 if (config._f.length === 0) { 2612 getParsingFlags(config).invalidFormat = true; 2613 config._d = new Date(NaN); 2614 return; 2615 } 2616 2617 for (i = 0; i < config._f.length; i++) { 2618 currentScore = 0; 2619 tempConfig = copyConfig({}, config); 2620 if (config._useUTC != null) { 2621 tempConfig._useUTC = config._useUTC; 2622 } 2623 tempConfig._f = config._f[i]; 2624 configFromStringAndFormat(tempConfig); 2625 2626 if (!isValid(tempConfig)) { 2627 continue; 2628 } 2629 2630 // if there is any input that was not parsed add a penalty for that format 2631 currentScore += getParsingFlags(tempConfig).charsLeftOver; 2632 2633 //or tokens 2634 currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10; 2635 2636 getParsingFlags(tempConfig).score = currentScore; 2637 2638 if (scoreToBeat == null || currentScore < scoreToBeat) { 2639 scoreToBeat = currentScore; 2640 bestMoment = tempConfig; 2641 } 2642 } 2643 2644 extend(config, bestMoment || tempConfig); 2645 } 2646 2647 function configFromObject(config) { 2648 if (config._d) { 2649 return; 2650 } 2651 2652 var i = normalizeObjectUnits(config._i); 2653 config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) { 2654 return obj && parseInt(obj, 10); 2655 }); 2656 2657 configFromArray(config); 2658 } 2659 2660 function createFromConfig (config) { 2661 var res = new Moment(checkOverflow(prepareConfig(config))); 2662 if (res._nextDay) { 2663 // Adding is smart enough around DST 2664 res.add(1, 'd'); 2665 res._nextDay = undefined; 2666 } 2667 2668 return res; 2669 } 2670 2671 function prepareConfig (config) { 2672 var input = config._i, 2673 format = config._f; 2674 2675 config._locale = config._locale || getLocale(config._l); 2676 2677 if (input === null || (format === undefined && input === '')) { 2678 return createInvalid({nullInput: true}); 2679 } 2680 2681 if (typeof input === 'string') { 2682 config._i = input = config._locale.preparse(input); 2683 } 2684 2685 if (isMoment(input)) { 2686 return new Moment(checkOverflow(input)); 2687 } else if (isDate(input)) { 2688 config._d = input; 2689 } else if (isArray(format)) { 2690 configFromStringAndArray(config); 2691 } else if (format) { 2692 configFromStringAndFormat(config); 2693 } else { 2694 configFromInput(config); 2695 } 2696 2697 if (!isValid(config)) { 2698 config._d = null; 2699 } 2700 2701 return config; 2702 } 2703 2704 function configFromInput(config) { 2705 var input = config._i; 2706 if (isUndefined(input)) { 2707 config._d = new Date(hooks.now()); 2708 } else if (isDate(input)) { 2709 config._d = new Date(input.valueOf()); 2710 } else if (typeof input === 'string') { 2711 configFromString(config); 2712 } else if (isArray(input)) { 2713 config._a = map(input.slice(0), function (obj) { 2714 return parseInt(obj, 10); 2715 }); 2716 configFromArray(config); 2717 } else if (isObject(input)) { 2718 configFromObject(config); 2719 } else if (isNumber(input)) { 2720 // from milliseconds 2721 config._d = new Date(input); 2722 } else { 2723 hooks.createFromInputFallback(config); 2724 } 2725 } 2726 2727 function createLocalOrUTC (input, format, locale, strict, isUTC) { 2728 var c = {}; 2729 2730 if (locale === true || locale === false) { 2731 strict = locale; 2732 locale = undefined; 2733 } 2734 2735 if ((isObject(input) && isObjectEmpty(input)) || 2736 (isArray(input) && input.length === 0)) { 2737 input = undefined; 2738 } 2739 // object construction must be done this way. 2740 // https://github.com/moment/moment/issues/1423 2741 c._isAMomentObject = true; 2742 c._useUTC = c._isUTC = isUTC; 2743 c._l = locale; 2744 c._i = input; 2745 c._f = format; 2746 c._strict = strict; 2747 2748 return createFromConfig(c); 2749 } 2750 2751 function createLocal (input, format, locale, strict) { 2752 return createLocalOrUTC(input, format, locale, strict, false); 2753 } 2754 2755 var prototypeMin = deprecate( 2756 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', 2757 function () { 2758 var other = createLocal.apply(null, arguments); 2759 if (this.isValid() && other.isValid()) { 2760 return other < this ? this : other; 2761 } else { 2762 return createInvalid(); 2763 } 2764 } 2765 ); 2766 2767 var prototypeMax = deprecate( 2768 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', 2769 function () { 2770 var other = createLocal.apply(null, arguments); 2771 if (this.isValid() && other.isValid()) { 2772 return other > this ? this : other; 2773 } else { 2774 return createInvalid(); 2775 } 2776 } 2777 ); 2778 2779 // Pick a moment m from moments so that m[fn](other) is true for all 2780 // other. This relies on the function fn to be transitive. 2781 // 2782 // moments should either be an array of moment objects or an array, whose 2783 // first element is an array of moment objects. 2784 function pickBy(fn, moments) { 2785 var res, i; 2786 if (moments.length === 1 && isArray(moments[0])) { 2787 moments = moments[0]; 2788 } 2789 if (!moments.length) { 2790 return createLocal(); 2791 } 2792 res = moments[0]; 2793 for (i = 1; i < moments.length; ++i) { 2794 if (!moments[i].isValid() || moments[i][fn](res)) { 2795 res = moments[i]; 2796 } 2797 } 2798 return res; 2799 } 2800 2801 // TODO: Use [].sort instead? 2802 function min () { 2803 var args = [].slice.call(arguments, 0); 2804 2805 return pickBy('isBefore', args); 2806 } 2807 2808 function max () { 2809 var args = [].slice.call(arguments, 0); 2810 2811 return pickBy('isAfter', args); 2812 } 2813 2814 var now = function () { 2815 return Date.now ? Date.now() : +(new Date()); 2816 }; 2817 2818 var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond']; 2819 2820 function isDurationValid(m) { 2821 for (var key in m) { 2822 if (!(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) { 2823 return false; 2824 } 2825 } 2826 2827 var unitHasDecimal = false; 2828 for (var i = 0; i < ordering.length; ++i) { 2829 if (m[ordering[i]]) { 2830 if (unitHasDecimal) { 2831 return false; // only allow non-integers for smallest unit 2832 } 2833 if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) { 2834 unitHasDecimal = true; 2835 } 2836 } 2837 } 2838 2839 return true; 2840 } 2841 2842 function isValid$1() { 2843 return this._isValid; 2844 } 2845 2846 function createInvalid$1() { 2847 return createDuration(NaN); 2848 } 2849 2850 function Duration (duration) { 2851 var normalizedInput = normalizeObjectUnits(duration), 2852 years = normalizedInput.year || 0, 2853 quarters = normalizedInput.quarter || 0, 2854 months = normalizedInput.month || 0, 2855 weeks = normalizedInput.week ||
vendor: 4,158 bytes, lines 2855-2982
28550, 2856 days = normalizedInput.day || 0, 2857 hours = normalizedInput.hour || 0, 2858 minutes = normalizedInput.minute || 0, 2859 seconds = normalizedInput.second || 0, 2860 milliseconds = normalizedInput.millisecond || 0; 2861 2862 this._isValid = isDurationValid(normalizedInput); 2863 2864 // representation for dateAddRemove 2865 this._milliseconds = +milliseconds + 2866 seconds * 1e3 + // 1000 2867 minutes * 6e4 + // 1000 * 60 2868 hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978 2869 // Because of dateAddRemove treats 24 hours as different from a 2870 // day when working around DST, we need to store them separately 2871 this._days = +days + 2872 weeks * 7; 2873 // It is impossible to translate months into days without knowing 2874 // which months you are are talking about, so we have to store 2875 // it separately. 2876 this._months = +months + 2877 quarters * 3 + 2878 years * 12; 2879 2880 this._data = {}; 2881 2882 this._locale = getLocale(); 2883 2884 this._bubble(); 2885 } 2886 2887 function isDuration (obj) { 2888 return obj instanceof Duration; 2889 } 2890 2891 function absRound (number) { 2892 if (number < 0) { 2893 return Math.round(-1 * number) * -1; 2894 } else { 2895 return Math.round(number); 2896 } 2897 } 2898 2899 // FORMATTING 2900 2901 function offset (token, separator) { 2902 addFormatToken(token, 0, 0, function () { 2903 var offset = this.utcOffset(); 2904 var sign = '+'; 2905 if (offset < 0) { 2906 offset = -offset; 2907 sign = '-'; 2908 } 2909 return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2); 2910 }); 2911 } 2912 2913 offset('Z', ':'); 2914 offset('ZZ', ''); 2915 2916 // PARSING 2917 2918 addRegexToken('Z', matchShortOffset); 2919 addRegexToken('ZZ', matchShortOffset); 2920 addParseToken(['Z', 'ZZ'], function (input, array, config) { 2921 config._useUTC = true; 2922 config._tzm = offsetFromString(matchShortOffset, input); 2923 }); 2924 2925 // HELPERS 2926 2927 // timezone chunker 2928 // '+10:00' > ['10', '00'] 2929 // '-1530' > ['-15', '30'] 2930 var chunkOffset = /([\+\-]|\d\d)/gi; 2931 2932 function offsetFromString(matcher, string) { 2933 var matches = (string || '').match(matcher); 2934 2935 if (matches === null) { 2936 return null; 2937 } 2938 2939 var chunk = matches[matches.length - 1] || []; 2940 var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0]; 2941 var minutes = +(parts[1] * 60) + toInt(parts[2]); 2942 2943 return minutes === 0 ? 2944 0 : 2945 parts[0] === '+' ? minutes : -minutes; 2946 } 2947 2948 // Return a moment from input, that is local/utc/zone equivalent to model. 2949 function cloneWithOffset(input, model) { 2950 var res, diff; 2951 if (model._isUTC) { 2952 res = model.clone(); 2953 diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf(); 2954 // Use low-level api, because this fn is low-level api. 2955 res._d.setTime(res._d.valueOf() + diff); 2956 hooks.updateOffset(res, false); 2957 return res; 2958 } else { 2959 return createLocal(input).local(); 2960 } 2961 } 2962 2963 function getDateOffset (m) { 2964 // On Firefox.24 Date#getTimezoneOffset returns a floating point. 2965 // https://github.com/moment/moment/pull/1871 2966 return -Math.round(m._d.getTimezoneOffset() / 15) * 15; 2967 } 2968 2969 // HOOKS 2970 2971 // This function will be called whenever a moment is mutated. 2972 // It is intended to keep the offset in sync with the timezone. 2973 hooks.updateOffset = function () {}; 2974 2975 // MOMENTS 2976 2977 // keepLocalTime = true means only change the timezone, without 2978 // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]--> 2979 // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset 2980 // +0200, so we adjust the time as needed, to be valid. 2981 // 2982 // Keeping the time actually adds/subtracts (one hour)
vendor: 20,735 bytes, lines 2983-3589
2983 // from the actual represented time. That is why we call updateOffset 2984 // a second time. In case it wants us to change the offset again 2985 // _changeInProgress == true case, then we have to adjust, because 2986 // there is no such time in the given timezone. 2987 function getSetOffset (input, keepLocalTime, keepMinutes) { 2988 var offset = this._offset || 0, 2989 localAdjust; 2990 if (!this.isValid()) { 2991 return input != null ? this : NaN; 2992 } 2993 if (input != null) { 2994 if (typeof input === 'string') { 2995 input = offsetFromString(matchShortOffset, input); 2996 if (input === null) { 2997 return this; 2998 } 2999 } else if (Math.abs(input) < 16 && !keepMinutes) { 3000 input = input * 60; 3001 } 3002 if (!this._isUTC && keepLocalTime) { 3003 localAdjust = getDateOffset(this); 3004 } 3005 this._offset = input; 3006 this._isUTC = true; 3007 if (localAdjust != null) { 3008 this.add(localAdjust, 'm'); 3009 } 3010 if (offset !== input) { 3011 if (!keepLocalTime || this._changeInProgress) { 3012 addSubtract(this, createDuration(input - offset, 'm'), 1, false); 3013 } else if (!this._changeInProgress) { 3014 this._changeInProgress = true; 3015 hooks.updateOffset(this, true); 3016 this._changeInProgress = null; 3017 } 3018 } 3019 return this; 3020 } else { 3021 return this._isUTC ? offset : getDateOffset(this); 3022 } 3023 } 3024 3025 function getSetZone (input, keepLocalTime) { 3026 if (input != null) { 3027 if (typeof input !== 'string') { 3028 input = -input; 3029 } 3030 3031 this.utcOffset(input, keepLocalTime); 3032 3033 return this; 3034 } else { 3035 return -this.utcOffset(); 3036 } 3037 } 3038 3039 function setOffsetToUTC (keepLocalTime) { 3040 return this.utcOffset(0, keepLocalTime); 3041 } 3042 3043 function setOffsetToLocal (keepLocalTime) { 3044 if (this._isUTC) { 3045 this.utcOffset(0, keepLocalTime); 3046 this._isUTC = false; 3047 3048 if (keepLocalTime) { 3049 this.subtract(getDateOffset(this), 'm'); 3050 } 3051 } 3052 return this; 3053 } 3054 3055 function setOffsetToParsedOffset () { 3056 if (this._tzm != null) { 3057 this.utcOffset(this._tzm, false, true); 3058 } else if (typeof this._i === 'string') { 3059 var tZone = offsetFromString(matchOffset, this._i); 3060 if (tZone != null) { 3061 this.utcOffset(tZone); 3062 } 3063 else { 3064 this.utcOffset(0, true); 3065 } 3066 } 3067 return this; 3068 } 3069 3070 function hasAlignedHourOffset (input) { 3071 if (!this.isValid()) { 3072 return false; 3073 } 3074 input = input ? createLocal(input).utcOffset() : 0; 3075 3076 return (this.utcOffset() - input) % 60 === 0; 3077 } 3078 3079 function isDaylightSavingTime () { 3080 return ( 3081 this.utcOffset() > this.clone().month(0).utcOffset() || 3082 this.utcOffset() > this.clone().month(5).utcOffset() 3083 ); 3084 } 3085 3086 function isDaylightSavingTimeShifted () { 3087 if (!isUndefined(this._isDSTShifted)) { 3088 return this._isDSTShifted; 3089 } 3090 3091 var c = {}; 3092 3093 copyConfig(c, this); 3094 c = prepareConfig(c); 3095 3096 if (c._a) { 3097 var other = c._isUTC ? createUTC(c._a) : createLocal(c._a); 3098 this._isDSTShifted = this.isValid() && 3099 compareArrays(c._a, other.toArray()) > 0; 3100 } else { 3101 this._isDSTShifted = false; 3102 } 3103 3104 return this._isDSTShifted; 3105 } 3106 3107 function isLocal () { 3108 return this.isValid() ? !this._isUTC : false; 3109 } 3110 3111 function isUtcOffset () { 3112 return this.isValid() ? this._isUTC : false; 3113 } 3114 3115 function isUtc () { 3116 return this.isValid() ? this._isUTC && this._offset === 0 : false; 3117 } 3118 3119 // ASP.NET json date format regex 3120 var aspNetRegex = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/; 3121 3122 // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html 3123 // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere 3124 // and further modified to allow for strings containing both week and day 3125 var isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; 3126 3127 function createDuration (input, key) { 3128 var duration = input, 3129 // matching against regexp is expensive, do it on demand 3130 match = null, 3131 sign, 3132 ret, 3133 diffRes; 3134 3135 if (isDuration(input)) { 3136 duration = { 3137 ms : input._milliseconds, 3138 d : input._days, 3139 M : input._months 3140 }; 3141 } else if (isNumber(input)) { 3142 duration = {}; 3143 if (key) { 3144 duration[key] = input; 3145 } else { 3146 duration.milliseconds = input; 3147 } 3148 } else if (!!(match = aspNetRegex.exec(input))) { 3149 sign = (match[1] === '-') ? -1 : 1; 3150 duration = { 3151 y : 0, 3152 d : toInt(match[DATE]) * sign, 3153 h : toInt(match[HOUR]) * sign, 3154 m : toInt(match[MINUTE]) * sign, 3155 s : toInt(match[SECOND]) * sign, 3156 ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match 3157 }; 3158 } else if (!!(match = isoRegex.exec(input))) { 3159 sign = (match[1] === '-') ? -1 : (match[1] === '+') ? 1 : 1; 3160 duration = { 3161 y : parseIso(match[2], sign), 3162 M : parseIso(match[3], sign), 3163 w : parseIso(match[4], sign), 3164 d : parseIso(match[5], sign), 3165 h : parseIso(match[6], sign), 3166 m : parseIso(match[7], sign), 3167 s : parseIso(match[8], sign) 3168 }; 3169 } else if (duration == null) {// checks for null or undefined 3170 duration = {}; 3171 } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) { 3172 diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to)); 3173 3174 duration = {}; 3175 duration.ms = diffRes.milliseconds; 3176 duration.M = diffRes.months; 3177 } 3178 3179 ret = new Duration(duration); 3180 3181 if (isDuration(input) && hasOwnProp(input, '_locale')) { 3182 ret._locale = input._locale; 3183 } 3184 3185 return ret; 3186 } 3187 3188 createDuration.fn = Duration.prototype; 3189 createDuration.invalid = createInvalid$1; 3190 3191 function parseIso (inp, sign) { 3192 // We'd normally use ~~inp for this, but unfortunately it also 3193 // converts floats to ints. 3194 // inp may be undefined, so careful calling replace on it. 3195 var res = inp && parseFloat(inp.replace(',', '.')); 3196 // apply sign while we're at it 3197 return (isNaN(res) ? 0 : res) * sign; 3198 } 3199 3200 function positiveMomentsDifference(base, other) { 3201 var res = {milliseconds: 0, months: 0}; 3202 3203 res.months = other.month() - base.month() + 3204 (other.year() - base.year()) * 12; 3205 if (base.clone().add(res.months, 'M').isAfter(other)) { 3206 --res.months; 3207 } 3208 3209 res.milliseconds = +other - +(base.clone().add(res.months, 'M')); 3210 3211 return res; 3212 } 3213 3214 function momentsDifference(base, other) { 3215 var res; 3216 if (!(base.isValid() && other.isValid())) { 3217 return {milliseconds: 0, months: 0}; 3218 } 3219 3220 other = cloneWithOffset(other, base); 3221 if (base.isBefore(other)) { 3222 res = positiveMomentsDifference(base, other); 3223 } else { 3224 res = positiveMomentsDifference(other, base); 3225 res.milliseconds = -res.milliseconds; 3226 res.months = -res.months; 3227 } 3228 3229 return res; 3230 } 3231 3232 // TODO: remove 'name' arg after deprecation is removed 3233 function createAdder(direction, name) { 3234 return function (val, period) { 3235 var dur, tmp; 3236 //invert the arguments, but complain about it 3237 if (period !== null && !isNaN(+period)) { 3238 deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' + 3239 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'); 3240 tmp = val; val = period; period = tmp; 3241 } 3242 3243 val = typeof val === 'string' ? +val : val; 3244 dur = createDuration(val, period); 3245 addSubtract(this, dur, direction); 3246 return this; 3247 }; 3248 } 3249 3250 function addSubtract (mom, duration, isAdding, updateOffset) { 3251 var milliseconds = duration._milliseconds, 3252 days = absRound(duration._days), 3253 months = absRound(duration._months); 3254 3255 if (!mom.isValid()) { 3256 // No op 3257 return; 3258 } 3259 3260 updateOffset = updateOffset == null ? true : updateOffset; 3261 3262 if (months) { 3263 setMonth(mom, get(mom, 'Month') + months * isAdding); 3264 } 3265 if (days) { 3266 set$1(mom, 'Date', get(mom, 'Date') + days * isAdding); 3267 } 3268 if (milliseconds) { 3269 mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding); 3270 } 3271 if (updateOffset) { 3272 hooks.updateOffset(mom, days || months); 3273 } 3274 } 3275 3276 var add = createAdder(1, 'add'); 3277 var subtract = createAdder(-1, 'subtract'); 3278 3279 function getCalendarFormat(myMoment, now) { 3280 var diff = myMoment.diff(now, 'days', true); 3281 return diff < -6 ? 'sameElse' : 3282 diff < -1 ? 'lastWeek' : 3283 diff < 0 ? 'lastDay' : 3284 diff < 1 ? 'sameDay' : 3285 diff < 2 ? 'nextDay' : 3286 diff < 7 ? 'nextWeek' : 'sameElse'; 3287 } 3288 3289 function calendar$1 (time, formats) { 3290 // We want to compare the start of today, vs this. 3291 // Getting start-of-today depends on whether we're local/utc/offset or not. 3292 var now = time || createLocal(), 3293 sod = cloneWithOffset(now, this).startOf('day'), 3294 format = hooks.calendarFormat(this, sod) || 'sameElse'; 3295 3296 var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]); 3297 3298 return this.format(output || this.localeData().calendar(format, this, createLocal(now))); 3299 } 3300 3301 function clone () { 3302 return new Moment(this); 3303 } 3304 3305 function isAfter (input, units) { 3306 var localInput = isMoment(input) ? input : createLocal(input); 3307 if (!(this.isValid() && localInput.isValid())) { 3308 return false; 3309 } 3310 units = normalizeUnits(!isUndefined(units) ? units : 'millisecond'); 3311 if (units === 'millisecond') { 3312 return this.valueOf() > localInput.valueOf(); 3313 } else { 3314 return localInput.valueOf() < this.clone().startOf(units).valueOf(); 3315 } 3316 } 3317 3318 function isBefore (input, units) { 3319 var localInput = isMoment(input) ? input : createLocal(input); 3320 if (!(this.isValid() && localInput.isValid())) { 3321 return false; 3322 } 3323 units = normalizeUnits(!isUndefined(units) ? units : 'millisecond'); 3324 if (units === 'millisecond') { 3325 return this.valueOf() < localInput.valueOf(); 3326 } else { 3327 return this.clone().endOf(units).valueOf() < localInput.valueOf(); 3328 } 3329 } 3330 3331 function isBetween (from, to, units, inclusivity) { 3332 inclusivity = inclusivity || '()'; 3333 return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) && 3334 (inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units)); 3335 } 3336 3337 function isSame (input, units) { 3338 var localInput = isMoment(input) ? input : createLocal(input), 3339 inputMs; 3340 if (!(this.isValid() && localInput.isValid())) { 3341 return false; 3342 } 3343 units = normalizeUnits(units || 'millisecond'); 3344 if (units === 'millisecond') { 3345 return this.valueOf() === localInput.valueOf(); 3346 } else { 3347 inputMs = localInput.valueOf(); 3348 return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf(); 3349 } 3350 } 3351 3352 function isSameOrAfter (input, units) { 3353 return this.isSame(input, units) || this.isAfter(input,units); 3354 } 3355 3356 function isSameOrBefore (input, units) { 3357 return this.isSame(input, units) || this.isBefore(input,units); 3358 } 3359 3360 function diff (input, units, asFloat) { 3361 var that, 3362 zoneDelta, 3363 output; 3364 3365 if (!this.isValid()) { 3366 return NaN; 3367 } 3368 3369 that = cloneWithOffset(input, this); 3370 3371 if (!that.isValid()) { 3372 return NaN; 3373 } 3374 3375 zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4; 3376 3377 units = normalizeUnits(units); 3378 3379 switch (units) { 3380 case 'year': output = monthDiff(this, that) / 12; break; 3381 case 'month': output = monthDiff(this, that); break; 3382 case 'quarter': output = monthDiff(this, that) / 3; break; 3383 case 'second': output = (this - that) / 1e3; break; // 1000 3384 case 'minute': output = (this - that) / 6e4; break; // 1000 * 60 3385 case 'hour': output = (this - that) / 36e5; break; // 1000 * 60 * 60 3386 case 'day': output = (this - that - zoneDelta) / 864e5; break; // 1000 * 60 * 60 * 24, negate dst 3387 case 'week': output = (this - that - zoneDelta) / 6048e5; break; // 1000 * 60 * 60 * 24 * 7, negate dst 3388 default: output = this - that; 3389 } 3390 3391 return asFloat ? output : absFloor(output); 3392 } 3393 3394 function monthDiff (a, b) { 3395 // difference in months 3396 var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()), 3397 // b is in (anchor - 1 month, anchor + 1 month) 3398 anchor = a.clone().add(wholeMonthDiff, 'months'), 3399 anchor2, adjust; 3400 3401 if (b - anchor < 0) { 3402 anchor2 = a.clone().add(wholeMonthDiff - 1, 'months'); 3403 // linear across the month 3404 adjust = (b - anchor) / (anchor - anchor2); 3405 } else { 3406 anchor2 = a.clone().add(wholeMonthDiff + 1, 'months'); 3407 // linear across the month 3408 adjust = (b - anchor) / (anchor2 - anchor); 3409 } 3410 3411 //check for negative zero, return zero if negative zero 3412 return -(wholeMonthDiff + adjust) || 0; 3413 } 3414 3415 hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'; 3416 hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]'; 3417 3418 function toString () { 3419 return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); 3420 } 3421 3422 function toISOString(keepOffset) { 3423 if (!this.isValid()) { 3424 return null; 3425 } 3426 var utc = keepOffset !== true; 3427 var m = utc ? this.clone().utc() : this; 3428 if (m.year() < 0 || m.year() > 9999) { 3429 return formatMoment(m, utc ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'); 3430 } 3431 if (isFunction(Date.prototype.toISOString)) { 3432 // native implementation is ~50x faster, use it when we can 3433 if (utc) { 3434 return this.toDate().toISOString(); 3435 } else { 3436 return new Date(this.valueOf() + this.utcOffset() * 60 * 1000).toISOString().replace('Z', formatMoment(m, 'Z')); 3437 } 3438 } 3439 return formatMoment(m, utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'); 3440 } 3441 3442 /** 3443 * Return a human readable representation of a moment that can 3444 * also be evaluated to get a new moment which is the same 3445 * 3446 * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects 3447 */ 3448 function inspect () { 3449 if (!this.isValid()) { 3450 return 'moment.invalid(/* ' + this._i + ' */)'; 3451 } 3452 var func = 'moment'; 3453 var zone = ''; 3454 if (!this.isLocal()) { 3455 func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone'; 3456 zone = 'Z'; 3457 } 3458 var prefix = '[' + func + '("]'; 3459 var year = (0 <= this.year() && this.year() <= 9999) ? 'YYYY' : 'YYYYYY'; 3460 var datetime = '-MM-DD[T]HH:mm:ss.SSS'; 3461 var suffix = zone + '[")]'; 3462 3463 return this.format(prefix + year + datetime + suffix); 3464 } 3465 3466 function format (inputString) { 3467 if (!inputString) { 3468 inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat; 3469 } 3470 var output = formatMoment(this, inputString); 3471 return this.localeData().postformat(output); 3472 } 3473 3474 function from (time, withoutSuffix) { 3475 if (this.isValid() && 3476 ((isMoment(time) && time.isValid()) || 3477 createLocal(time).isValid())) { 3478 return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix); 3479 } else { 3480 return this.localeData().invalidDate(); 3481 } 3482 } 3483 3484 function fromNow (withoutSuffix) { 3485 return this.from(createLocal(), withoutSuffix); 3486 } 3487 3488 function to (time, withoutSuffix) { 3489 if (this.isValid() && 3490 ((isMoment(time) && time.isValid()) || 3491 createLocal(time).isValid())) { 3492 return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix); 3493 } else { 3494 return this.localeData().invalidDate(); 3495 } 3496 } 3497 3498 function toNow (withoutSuffix) { 3499 return this.to(createLocal(), withoutSuffix); 3500 } 3501 3502 // If passed a locale key, it will set the locale for this 3503 // instance. Otherwise, it will return the locale configuration 3504 // variables for this instance. 3505 function locale (key) { 3506 var newLocaleData; 3507 3508 if (key === undefined) { 3509 return this._locale._abbr; 3510 } else { 3511 newLocaleData = getLocale(key); 3512 if (newLocaleData != null) { 3513 this._locale = newLocaleData; 3514 } 3515 return this; 3516 } 3517 } 3518 3519 var lang = deprecate( 3520 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', 3521 function (key) { 3522 if (key === undefined) { 3523 return this.localeData(); 3524 } else { 3525 return this.locale(key); 3526 } 3527 } 3528 ); 3529 3530 function localeData () { 3531 return this._locale; 3532 } 3533 3534 function startOf (units) { 3535 units = normalizeUnits(units); 3536 // the following switch intentionally omits break keywords 3537 // to utilize falling through the cases. 3538 switch (units) { 3539 case 'year': 3540 this.month(0); 3541 /* falls through */ 3542 case 'quarter': 3543 case 'month': 3544 this.date(1); 3545 /* falls through */ 3546 case 'week': 3547 case 'isoWeek': 3548 case 'day': 3549 case 'date': 3550 this.hours(0); 3551 /* falls through */ 3552 case 'hour': 3553 this.minutes(0); 3554 /* falls through */ 3555 case 'minute': 3556 this.seconds(0); 3557 /* falls through */ 3558 case 'second': 3559 this.milliseconds(0); 3560 } 3561 3562 // weeks are a special case 3563 if (units === 'week') { 3564 this.weekday(0); 3565 } 3566 if (units === 'isoWeek') { 3567 this.isoWeekday(1); 3568 } 3569 3570 // quarters are also special 3571 if (units === 'quarter') { 3572 this.month(Math.floor(this.month() / 3) * 3); 3573 } 3574 3575 return this; 3576 } 3577 3578 function endOf (units) { 3579 units = normalizeUnits(units); 3580 if (units === undefined || units === 'millisecond') { 3581 return this; 3582 } 3583 3584 // 'date' is an alias for 'day', so it should be considered as such. 3585 if (units === 'date') { 3586 units = 'day'; 3587 } 3588 3589 return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms')
vendor: 20,515 bytes, lines 3589-4295
3589; 3590 } 3591 3592 function valueOf () { 3593 return this._d.valueOf() - ((this._offset || 0) * 60000); 3594 } 3595 3596 function unix () { 3597 return Math.floor(this.valueOf() / 1000); 3598 } 3599 3600 function toDate () { 3601 return new Date(this.valueOf()); 3602 } 3603 3604 function toArray () { 3605 var m = this; 3606 return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()]; 3607 } 3608 3609 function toObject () { 3610 var m = this; 3611 return { 3612 years: m.year(), 3613 months: m.month(), 3614 date: m.date(), 3615 hours: m.hours(), 3616 minutes: m.minutes(), 3617 seconds: m.seconds(), 3618 milliseconds: m.milliseconds() 3619 }; 3620 } 3621 3622 function toJSON () { 3623 // new Date(NaN).toJSON() === null 3624 return this.isValid() ? this.toISOString() : null; 3625 } 3626 3627 function isValid$2 () { 3628 return isValid(this); 3629 } 3630 3631 function parsingFlags () { 3632 return extend({}, getParsingFlags(this)); 3633 } 3634 3635 function invalidAt () { 3636 return getParsingFlags(this).overflow; 3637 } 3638 3639 function creationData() { 3640 return { 3641 input: this._i, 3642 format: this._f, 3643 locale: this._locale, 3644 isUTC: this._isUTC, 3645 strict: this._strict 3646 }; 3647 } 3648 3649 // FORMATTING 3650 3651 addFormatToken(0, ['gg', 2], 0, function () { 3652 return this.weekYear() % 100; 3653 }); 3654 3655 addFormatToken(0, ['GG', 2], 0, function () { 3656 return this.isoWeekYear() % 100; 3657 }); 3658 3659 function addWeekYearFormatToken (token, getter) { 3660 addFormatToken(0, [token, token.length], 0, getter); 3661 } 3662 3663 addWeekYearFormatToken('gggg', 'weekYear'); 3664 addWeekYearFormatToken('ggggg', 'weekYear'); 3665 addWeekYearFormatToken('GGGG', 'isoWeekYear'); 3666 addWeekYearFormatToken('GGGGG', 'isoWeekYear'); 3667 3668 // ALIASES 3669 3670 addUnitAlias('weekYear', 'gg'); 3671 addUnitAlias('isoWeekYear', 'GG'); 3672 3673 // PRIORITY 3674 3675 addUnitPriority('weekYear', 1); 3676 addUnitPriority('isoWeekYear', 1); 3677 3678 3679 // PARSING 3680 3681 addRegexToken('G', matchSigned); 3682 addRegexToken('g', matchSigned); 3683 addRegexToken('GG', match1to2, match2); 3684 addRegexToken('gg', match1to2, match2); 3685 addRegexToken('GGGG', match1to4, match4); 3686 addRegexToken('gggg', match1to4, match4); 3687 addRegexToken('GGGGG', match1to6, match6); 3688 addRegexToken('ggggg', match1to6, match6); 3689 3690 addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) { 3691 week[token.substr(0, 2)] = toInt(input); 3692 }); 3693 3694 addWeekParseToken(['gg', 'GG'], function (input, week, config, token) { 3695 week[token] = hooks.parseTwoDigitYear(input); 3696 }); 3697 3698 // MOMENTS 3699 3700 function getSetWeekYear (input) { 3701 return getSetWeekYearHelper.call(this, 3702 input, 3703 this.week(), 3704 this.weekday(), 3705 this.localeData()._week.dow, 3706 this.localeData()._week.doy); 3707 } 3708 3709 function getSetISOWeekYear (input) { 3710 return getSetWeekYearHelper.call(this, 3711 input, this.isoWeek(), this.isoWeekday(), 1, 4); 3712 } 3713 3714 function getISOWeeksInYear () { 3715 return weeksInYear(this.year(), 1, 4); 3716 } 3717 3718 function getWeeksInYear () { 3719 var weekInfo = this.localeData()._week; 3720 return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); 3721 } 3722 3723 function getSetWeekYearHelper(input, week, weekday, dow, doy) { 3724 var weeksTarget; 3725 if (input == null) { 3726 return weekOfYear(this, dow, doy).year; 3727 } else { 3728 weeksTarget = weeksInYear(input, dow, doy); 3729 if (week > weeksTarget) { 3730 week = weeksTarget; 3731 } 3732 return setWeekAll.call(this, input, week, weekday, dow, doy); 3733 } 3734 } 3735 3736 function setWeekAll(weekYear, week, weekday, dow, doy) { 3737 var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), 3738 date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear); 3739 3740 this.year(date.getUTCFullYear()); 3741 this.month(date.getUTCMonth()); 3742 this.date(date.getUTCDate()); 3743 return this; 3744 } 3745 3746 // FORMATTING 3747 3748 addFormatToken('Q', 0, 'Qo', 'quarter'); 3749 3750 // ALIASES 3751 3752 addUnitAlias('quarter', 'Q'); 3753 3754 // PRIORITY 3755 3756 addUnitPriority('quarter', 7); 3757 3758 // PARSING 3759 3760 addRegexToken('Q', match1); 3761 addParseToken('Q', function (input, array) { 3762 array[MONTH] = (toInt(input) - 1) * 3; 3763 }); 3764 3765 // MOMENTS 3766 3767 function getSetQuarter (input) { 3768 return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3); 3769 } 3770 3771 // FORMATTING 3772 3773 addFormatToken('D', ['DD', 2], 'Do', 'date'); 3774 3775 // ALIASES 3776 3777 addUnitAlias('date', 'D'); 3778 3779 // PRIORITY 3780 addUnitPriority('date', 9); 3781 3782 // PARSING 3783 3784 addRegexToken('D', match1to2); 3785 addRegexToken('DD', match1to2, match2); 3786 addRegexToken('Do', function (isStrict, locale) { 3787 // TODO: Remove "ordinalParse" fallback in next major release. 3788 return isStrict ? 3789 (locale._dayOfMonthOrdinalParse || locale._ordinalParse) : 3790 locale._dayOfMonthOrdinalParseLenient; 3791 }); 3792 3793 addParseToken(['D', 'DD'], DATE); 3794 addParseToken('Do', function (input, array) { 3795 array[DATE] = toInt(input.match(match1to2)[0]); 3796 }); 3797 3798 // MOMENTS 3799 3800 var getSetDayOfMonth = makeGetSet('Date', true); 3801 3802 // FORMATTING 3803 3804 addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'); 3805 3806 // ALIASES 3807 3808 addUnitAlias('dayOfYear', 'DDD'); 3809 3810 // PRIORITY 3811 addUnitPriority('dayOfYear', 4); 3812 3813 // PARSING 3814 3815 addRegexToken('DDD', match1to3); 3816 addRegexToken('DDDD', match3); 3817 addParseToken(['DDD', 'DDDD'], function (input, array, config) { 3818 config._dayOfYear = toInt(input); 3819 }); 3820 3821 // HELPERS 3822 3823 // MOMENTS 3824 3825 function getSetDayOfYear (input) { 3826 var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1; 3827 return input == null ? dayOfYear : this.add((input - dayOfYear), 'd'); 3828 } 3829 3830 // FORMATTING 3831 3832 addFormatToken('m', ['mm', 2], 0, 'minute'); 3833 3834 // ALIASES 3835 3836 addUnitAlias('minute', 'm'); 3837 3838 // PRIORITY 3839 3840 addUnitPriority('minute', 14); 3841 3842 // PARSING 3843 3844 addRegexToken('m', match1to2); 3845 addRegexToken('mm', match1to2, match2); 3846 addParseToken(['m', 'mm'], MINUTE); 3847 3848 // MOMENTS 3849 3850 var getSetMinute = makeGetSet('Minutes', false); 3851 3852 // FORMATTING 3853 3854 addFormatToken('s', ['ss', 2], 0, 'second'); 3855 3856 // ALIASES 3857 3858 addUnitAlias('second', 's'); 3859 3860 // PRIORITY 3861 3862 addUnitPriority('second', 15); 3863 3864 // PARSING 3865 3866 addRegexToken('s', match1to2); 3867 addRegexToken('ss', match1to2, match2); 3868 addParseToken(['s', 'ss'], SECOND); 3869 3870 // MOMENTS 3871 3872 var getSetSecond = makeGetSet('Seconds', false); 3873 3874 // FORMATTING 3875 3876 addFormatToken('S', 0, 0, function () { 3877 return ~~(this.millisecond() / 100); 3878 }); 3879 3880 addFormatToken(0, ['SS', 2], 0, function () { 3881 return ~~(this.millisecond() / 10); 3882 }); 3883 3884 addFormatToken(0, ['SSS', 3], 0, 'millisecond'); 3885 addFormatToken(0, ['SSSS', 4], 0, function () { 3886 return this.millisecond() * 10; 3887 }); 3888 addFormatToken(0, ['SSSSS', 5], 0, function () { 3889 return this.millisecond() * 100; 3890 }); 3891 addFormatToken(0, ['SSSSSS', 6], 0, function () { 3892 return this.millisecond() * 1000; 3893 }); 3894 addFormatToken(0, ['SSSSSSS', 7], 0, function () { 3895 return this.millisecond() * 10000; 3896 }); 3897 addFormatToken(0, ['SSSSSSSS', 8], 0, function () { 3898 return this.millisecond() * 100000; 3899 }); 3900 addFormatToken(0, ['SSSSSSSSS', 9], 0, function () { 3901 return this.millisecond() * 1000000; 3902 }); 3903 3904 3905 // ALIASES 3906 3907 addUnitAlias('millisecond', 'ms'); 3908 3909 // PRIORITY 3910 3911 addUnitPriority('millisecond', 16); 3912 3913 // PARSING 3914 3915 addRegexToken('S', match1to3, match1); 3916 addRegexToken('SS', match1to3, match2); 3917 addRegexToken('SSS', match1to3, match3); 3918 3919 var token; 3920 for (token = 'SSSS'; token.length <= 9; token += 'S') { 3921 addRegexToken(token, matchUnsigned); 3922 } 3923 3924 function parseMs(input, array) { 3925 array[MILLISECOND] = toInt(('0.' + input) * 1000); 3926 } 3927 3928 for (token = 'S'; token.length <= 9; token += 'S') { 3929 addParseToken(token, parseMs); 3930 } 3931 // MOMENTS 3932 3933 var getSetMillisecond = makeGetSet('Milliseconds', false); 3934 3935 // FORMATTING 3936 3937 addFormatToken('z', 0, 0, 'zoneAbbr'); 3938 addFormatToken('zz', 0, 0, 'zoneName'); 3939 3940 // MOMENTS 3941 3942 function getZoneAbbr () { 3943 return this._isUTC ? 'UTC' : ''; 3944 } 3945 3946 function getZoneName () { 3947 return this._isUTC ? 'Coordinated Universal Time' : ''; 3948 } 3949 3950 var proto = Moment.prototype; 3951 3952 proto.add = add; 3953 proto.calendar = calendar$1; 3954 proto.clone = clone; 3955 proto.diff = diff; 3956 proto.endOf = endOf; 3957 proto.format = format; 3958 proto.from = from; 3959 proto.fromNow = fromNow; 3960 proto.to = to; 3961 proto.toNow = toNow; 3962 proto.get = stringGet; 3963 proto.invalidAt = invalidAt; 3964 proto.isAfter = isAfter; 3965 proto.isBefore = isBefore; 3966 proto.isBetween = isBetween; 3967 proto.isSame = isSame; 3968 proto.isSameOrAfter = isSameOrAfter; 3969 proto.isSameOrBefore = isSameOrBefore; 3970 proto.isValid = isValid$2; 3971 proto.lang = lang; 3972 proto.locale = locale; 3973 proto.localeData = localeData; 3974 proto.max = prototypeMax; 3975 proto.min = prototypeMin; 3976 proto.parsingFlags = parsingFlags; 3977 proto.set = stringSet; 3978 proto.startOf = startOf; 3979 proto.subtract = subtract; 3980 proto.toArray = toArray; 3981 proto.toObject = toObject; 3982 proto.toDate = toDate; 3983 proto.toISOString = toISOString; 3984 proto.inspect = inspect; 3985 proto.toJSON = toJSON; 3986 proto.toString = toString; 3987 proto.unix = unix; 3988 proto.valueOf = valueOf; 3989 proto.creationData = creationData; 3990 proto.year = getSetYear; 3991 proto.isLeapYear = getIsLeapYear; 3992 proto.weekYear = getSetWeekYear; 3993 proto.isoWeekYear = getSetISOWeekYear; 3994 proto.quarter = proto.quarters = getSetQuarter; 3995 proto.month = getSetMonth; 3996 proto.daysInMonth = getDaysInMonth; 3997 proto.week = proto.weeks = getSetWeek; 3998 proto.isoWeek = proto.isoWeeks = getSetISOWeek; 3999 proto.weeksInYear = getWeeksInYear; 4000 proto.isoWeeksInYear = getISOWeeksInYear; 4001 proto.date = getSetDayOfMonth; 4002 proto.day = proto.days = getSetDayOfWeek; 4003 proto.weekday = getSetLocaleDayOfWeek; 4004 proto.isoWeekday = getSetISODayOfWeek; 4005 proto.dayOfYear = getSetDayOfYear; 4006 proto.hour = proto.hours = getSetHour; 4007 proto.minute = proto.minutes = getSetMinute; 4008 proto.second = proto.seconds = getSetSecond; 4009 proto.millisecond = proto.milliseconds = getSetMillisecond; 4010 proto.utcOffset = getSetOffset; 4011 proto.utc = setOffsetToUTC; 4012 proto.local = setOffsetToLocal; 4013 proto.parseZone = setOffsetToParsedOffset; 4014 proto.hasAlignedHourOffset = hasAlignedHourOffset; 4015 proto.isDST = isDaylightSavingTime; 4016 proto.isLocal = isLocal; 4017 proto.isUtcOffset = isUtcOffset; 4018 proto.isUtc = isUtc; 4019 proto.isUTC = isUtc; 4020 proto.zoneAbbr = getZoneAbbr; 4021 proto.zoneName = getZoneName; 4022 proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth); 4023 proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth); 4024 proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear); 4025 proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone); 4026 proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted); 4027 4028 function createUnix (input) { 4029 return createLocal(input * 1000); 4030 } 4031 4032 function createInZone () { 4033 return createLocal.apply(null, arguments).parseZone(); 4034 } 4035 4036 function preParsePostFormat (string) { 4037 return string; 4038 } 4039 4040 var proto$1 = Locale.prototype; 4041 4042 proto$1.calendar = calendar; 4043 proto$1.longDateFormat = longDateFormat; 4044 proto$1.invalidDate = invalidDate; 4045 proto$1.ordinal = ordinal; 4046 proto$1.preparse = preParsePostFormat; 4047 proto$1.postformat = preParsePostFormat; 4048 proto$1.relativeTime = relativeTime; 4049 proto$1.pastFuture = pastFuture; 4050 proto$1.set = set; 4051 4052 proto$1.months = localeMonths; 4053 proto$1.monthsShort = localeMonthsShort; 4054 proto$1.monthsParse = localeMonthsParse; 4055 proto$1.monthsRegex = monthsRegex; 4056 proto$1.monthsShortRegex = monthsShortRegex; 4057 proto$1.week = localeWeek; 4058 proto$1.firstDayOfYear = localeFirstDayOfYear; 4059 proto$1.firstDayOfWeek = localeFirstDayOfWeek; 4060 4061 proto$1.weekdays = localeWeekdays; 4062 proto$1.weekdaysMin = localeWeekdaysMin; 4063 proto$1.weekdaysShort = localeWeekdaysShort; 4064 proto$1.weekdaysParse = localeWeekdaysParse; 4065 4066 proto$1.weekdaysRegex = weekdaysRegex; 4067 proto$1.weekdaysShortRegex = weekdaysShortRegex; 4068 proto$1.weekdaysMinRegex = weekdaysMinRegex; 4069 4070 proto$1.isPM = localeIsPM; 4071 proto$1.meridiem = localeMeridiem; 4072 4073 function get$1 (format, index, field, setter) { 4074 var locale = getLocale(); 4075 var utc = createUTC().set(setter, index); 4076 return locale[field](utc, format); 4077 } 4078 4079 function listMonthsImpl (format, index, field) { 4080 if (isNumber(format)) { 4081 index = format; 4082 format = undefined; 4083 } 4084 4085 format = format || ''; 4086 4087 if (index != null) { 4088 return get$1(format, index, field, 'month'); 4089 } 4090 4091 var i; 4092 var out = []; 4093 for (i = 0; i < 12; i++) { 4094 out[i] = get$1(format, i, field, 'month'); 4095 } 4096 return out; 4097 } 4098 4099 // () 4100 // (5) 4101 // (fmt, 5) 4102 // (fmt) 4103 // (true) 4104 // (true, 5) 4105 // (true, fmt, 5) 4106 // (true, fmt) 4107 function listWeekdaysImpl (localeSorted, format, index, field) { 4108 if (typeof localeSorted === 'boolean') { 4109 if (isNumber(format)) { 4110 index = format; 4111 format = undefined; 4112 } 4113 4114 format = format || ''; 4115 } else { 4116 format = localeSorted; 4117 index = format; 4118 localeSorted = false; 4119 4120 if (isNumber(format)) { 4121 index = format; 4122 format = undefined; 4123 } 4124 4125 format = format || ''; 4126 } 4127 4128 var locale = getLocale(), 4129 shift = localeSorted ? locale._week.dow : 0; 4130 4131 if (index != null) { 4132 return get$1(format, (index + shift) % 7, field, 'day'); 4133 } 4134 4135 var i; 4136 var out = []; 4137 for (i = 0; i < 7; i++) { 4138 out[i] = get$1(format, (i + shift) % 7, field, 'day'); 4139 } 4140 return out; 4141 } 4142 4143 function listMonths (format, index) { 4144 return listMonthsImpl(format, index, 'months'); 4145 } 4146 4147 function listMonthsShort (format, index) { 4148 return listMonthsImpl(format, index, 'monthsShort'); 4149 } 4150 4151 function listWeekdays (localeSorted, format, index) { 4152 return listWeekdaysImpl(localeSorted, format, index, 'weekdays'); 4153 } 4154 4155 function listWeekdaysShort (localeSorted, format, index) { 4156 return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort'); 4157 } 4158 4159 function listWeekdaysMin (localeSorted, format, index) { 4160 return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin'); 4161 } 4162 4163 getSetGlobalLocale('en', { 4164 dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, 4165 ordinal : function (number) { 4166 var b = number % 10, 4167 output = (toInt(number % 100 / 10) === 1) ? 'th' : 4168 (b === 1) ? 'st' : 4169 (b === 2) ? 'nd' : 4170 (b === 3) ? 'rd' : 'th'; 4171 return number + output; 4172 } 4173 }); 4174 4175 // Side effect imports 4176 4177 hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale); 4178 hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale); 4179 4180 var mathAbs = Math.abs; 4181 4182 function abs () { 4183 var data = this._data; 4184 4185 this._milliseconds = mathAbs(this._milliseconds); 4186 this._days = mathAbs(this._days); 4187 this._months = mathAbs(this._months); 4188 4189 data.milliseconds = mathAbs(data.milliseconds); 4190 data.seconds = mathAbs(data.seconds); 4191 data.minutes = mathAbs(data.minutes); 4192 data.hours = mathAbs(data.hours); 4193 data.months = mathAbs(data.months); 4194 data.years = mathAbs(data.years); 4195 4196 return this; 4197 } 4198 4199 function addSubtract$1 (duration, input, value, direction) { 4200 var other = createDuration(input, value); 4201 4202 duration._milliseconds += direction * other._milliseconds; 4203 duration._days += direction * other._days; 4204 duration._months += direction * other._months; 4205 4206 return duration._bubble(); 4207 } 4208 4209 // supports only 2.0-style add(1, 's') or add(duration) 4210 function add$1 (input, value) { 4211 return addSubtract$1(this, input, value, 1); 4212 } 4213 4214 // supports only 2.0-style subtract(1, 's') or subtract(duration) 4215 function subtract$1 (input, value) { 4216 return addSubtract$1(this, input, value, -1); 4217 } 4218 4219 function absCeil (number) { 4220 if (number < 0) { 4221 return Math.floor(number); 4222 } else { 4223 return Math.ceil(number); 4224 } 4225 } 4226 4227 function bubble () { 4228 var milliseconds = this._milliseconds; 4229 var days = this._days; 4230 var months = this._months; 4231 var data = this._data; 4232 var seconds, minutes, hours, years, monthsFromDays; 4233 4234 // if we have a mix of positive and negative values, bubble down first 4235 // check: https://github.com/moment/moment/issues/2166 4236 if (!((milliseconds >= 0 && days >= 0 && months >= 0) || 4237 (milliseconds <= 0 && days <= 0 && months <= 0))) { 4238 milliseconds += absCeil(monthsToDays(months) + days) * 864e5; 4239 days = 0; 4240 months = 0; 4241 } 4242 4243 // The following code bubbles up values, see the tests for 4244 // examples of what that means. 4245 data.milliseconds = milliseconds % 1000; 4246 4247 seconds = absFloor(milliseconds / 1000); 4248 data.seconds = seconds % 60; 4249 4250 minutes = absFloor(seconds / 60); 4251 data.minutes = minutes % 60; 4252 4253 hours = absFloor(minutes / 60); 4254 data.hours = hours % 24; 4255 4256 days += absFloor(hours / 24); 4257 4258 // convert days to months 4259 monthsFromDays = absFloor(daysToMonths(days)); 4260 months += monthsFromDays; 4261 days -= absCeil(monthsToDays(monthsFromDays)); 4262 4263 // 12 months -> 1 year 4264 years = absFloor(months / 12); 4265 months %= 12; 4266 4267 data.days = days; 4268 data.months = months; 4269 data.years = years; 4270 4271 return this; 4272 } 4273 4274 function daysToMonths (days) { 4275 // 400 years have 146097 days (taking into account leap year rules) 4276 // 400 years have 12 months === 4800 4277 return days * 4800 / 146097; 4278 } 4279 4280 function monthsToDays (months) { 4281 // the reverse of daysToMonths 4282 return months * 146097 / 4800; 4283 } 4284 4285 function as (units) { 4286 if (!this.isValid()) { 4287 return NaN; 4288 } 4289 var days; 4290 var months; 4291 var milliseconds = this._milliseconds; 4292 4293 units = normalizeUnits(units); 4294 4295 if (units === 'month' || units === '
vendor: 1,721 bytes, lines 4295-4340
4295year') { 4296 days = this._days + milliseconds / 864e5; 4297 months = this._months + daysToMonths(days); 4298 return units === 'month' ? months : months / 12; 4299 } else { 4300 // handle milliseconds separately because of floating point math errors (issue #1867) 4301 days = this._days + Math.round(monthsToDays(this._months)); 4302 switch (units) { 4303 case 'week' : return days / 7 + milliseconds / 6048e5; 4304 case 'day' : return days + milliseconds / 864e5; 4305 case 'hour' : return days * 24 + milliseconds / 36e5; 4306 case 'minute' : return days * 1440 + milliseconds / 6e4; 4307 case 'second' : return days * 86400 + milliseconds / 1000; 4308 // Math.floor prevents floating point math errors here 4309 case 'millisecond': return Math.floor(days * 864e5) + milliseconds; 4310 default: throw new Error('Unknown unit ' + units); 4311 } 4312 } 4313 } 4314 4315 // TODO: Use this.as('ms')? 4316 function valueOf$1 () { 4317 if (!this.isValid()) { 4318 return NaN; 4319 } 4320 return ( 4321 this._milliseconds + 4322 this._days * 864e5 + 4323 (this._months % 12) * 2592e6 + 4324 toInt(this._months / 12) * 31536e6 4325 ); 4326 } 4327 4328 function makeAs (alias) { 4329 return function () { 4330 return this.as(alias); 4331 }; 4332 } 4333 4334 var asMilliseconds = makeAs('ms'); 4335 var asSeconds = makeAs('s'); 4336 var asMinutes = makeAs('m'); 4337 var asHours = makeAs('h'); 4338 var asDays = makeAs('d'); 4339 var asWeeks = makeAs('w'); 4340 var asMonths = makeAs('M
vendor: 6,605 bytes, lines 4340-4532
4340'); 4341 var asYears = makeAs('y'); 4342 4343 function clone$1 () { 4344 return createDuration(this); 4345 } 4346 4347 function get$2 (units) { 4348 units = normalizeUnits(units); 4349 return this.isValid() ? this[units + 's']() : NaN; 4350 } 4351 4352 function makeGetter(name) { 4353 return function () { 4354 return this.isValid() ? this._data[name] : NaN; 4355 }; 4356 } 4357 4358 var milliseconds = makeGetter('milliseconds'); 4359 var seconds = makeGetter('seconds'); 4360 var minutes = makeGetter('minutes'); 4361 var hours = makeGetter('hours'); 4362 var days = makeGetter('days'); 4363 var months = makeGetter('months'); 4364 var years = makeGetter('years'); 4365 4366 function weeks () { 4367 return absFloor(this.days() / 7); 4368 } 4369 4370 var round = Math.round; 4371 var thresholds = { 4372 ss: 44, // a few seconds to seconds 4373 s : 45, // seconds to minute 4374 m : 45, // minutes to hour 4375 h : 22, // hours to day 4376 d : 26, // days to month 4377 M : 11 // months to year 4378 }; 4379 4380 // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize 4381 function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) { 4382 return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture); 4383 } 4384 4385 function relativeTime$1 (posNegDuration, withoutSuffix, locale) { 4386 var duration = createDuration(posNegDuration).abs(); 4387 var seconds = round(duration.as('s')); 4388 var minutes = round(duration.as('m')); 4389 var hours = round(duration.as('h')); 4390 var days = round(duration.as('d')); 4391 var months = round(duration.as('M')); 4392 var years = round(duration.as('y')); 4393 4394 var a = seconds <= thresholds.ss && ['s', seconds] || 4395 seconds < thresholds.s && ['ss', seconds] || 4396 minutes <= 1 && ['m'] || 4397 minutes < thresholds.m && ['mm', minutes] || 4398 hours <= 1 && ['h'] || 4399 hours < thresholds.h && ['hh', hours] || 4400 days <= 1 && ['d'] || 4401 days < thresholds.d && ['dd', days] || 4402 months <= 1 && ['M'] || 4403 months < thresholds.M && ['MM', months] || 4404 years <= 1 && ['y'] || ['yy', years]; 4405 4406 a[2] = withoutSuffix; 4407 a[3] = +posNegDuration > 0; 4408 a[4] = locale; 4409 return substituteTimeAgo.apply(null, a); 4410 } 4411 4412 // This function allows you to set the rounding function for relative time strings 4413 function getSetRelativeTimeRounding (roundingFunction) { 4414 if (roundingFunction === undefined) { 4415 return round; 4416 } 4417 if (typeof(roundingFunction) === 'function') { 4418 round = roundingFunction; 4419 return true; 4420 } 4421 return false; 4422 } 4423 4424 // This function allows you to set a threshold for relative time strings 4425 function getSetRelativeTimeThreshold (threshold, limit) { 4426 if (thresholds[threshold] === undefined) { 4427 return false; 4428 } 4429 if (limit === undefined) { 4430 return thresholds[threshold]; 4431 } 4432 thresholds[threshold] = limit; 4433 if (threshold === 's') { 4434 thresholds.ss = limit - 1; 4435 } 4436 return true; 4437 } 4438 4439 function humanize (withSuffix) { 4440 if (!this.isValid()) { 4441 return this.localeData().invalidDate(); 4442 } 4443 4444 var locale = this.localeData(); 4445 var output = relativeTime$1(this, !withSuffix, locale); 4446 4447 if (withSuffix) { 4448 output = locale.pastFuture(+this, output); 4449 } 4450 4451 return locale.postformat(output); 4452 } 4453 4454 var abs$1 = Math.abs; 4455 4456 function sign(x) { 4457 return ((x > 0) - (x < 0)) || +x; 4458 } 4459 4460 function toISOString$1() { 4461 // for ISO strings we do not use the normal bubbling rules: 4462 // * milliseconds bubble up until they become hours 4463 // * days do not bubble at all 4464 // * months bubble up until they become years 4465 // This is because there is no context-free conversion between hours and days 4466 // (think of clock changes) 4467 // and also not between days and months (28-31 days per month) 4468 if (!this.isValid()) { 4469 return this.localeData().invalidDate(); 4470 } 4471 4472 var seconds = abs$1(this._milliseconds) / 1000; 4473 var days = abs$1(this._days); 4474 var months = abs$1(this._months); 4475 var minutes, hours, years; 4476 4477 // 3600 seconds -> 60 minutes -> 1 hour 4478 minutes = absFloor(seconds / 60); 4479 hours = absFloor(minutes / 60); 4480 seconds %= 60; 4481 minutes %= 60; 4482 4483 // 12 months -> 1 year 4484 years = absFloor(months / 12); 4485 months %= 12; 4486 4487 4488 // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js 4489 var Y = years; 4490 var M = months; 4491 var D = days; 4492 var h = hours; 4493 var m = minutes; 4494 var s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : ''; 4495 var total = this.asSeconds(); 4496 4497 if (!total) { 4498 // this is the same as C#'s (Noda) and python (isodate)... 4499 // but not other JS (goog.date) 4500 return 'P0D'; 4501 } 4502 4503 var totalSign = total < 0 ? '-' : ''; 4504 var ymSign = sign(this._months) !== sign(total) ? '-' : ''; 4505 var daysSign = sign(this._days) !== sign(total) ? '-' : ''; 4506 var hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : ''; 4507 4508 return totalSign + 'P' + 4509 (Y ? ymSign + Y + 'Y' : '') + 4510 (M ? ymSign + M + 'M' : '') + 4511 (D ? daysSign + D + 'D' : '') + 4512 ((h || m || s) ? 'T' : '') + 4513 (h ? hmsSign + h + 'H' : '') + 4514 (m ? hmsSign + m + 'M' : '') + 4515 (s ? hmsSign + s + 'S' : ''); 4516 } 4517 4518 var proto$2 = Duration.prototype; 4519 4520 proto$2.isValid = isValid$1; 4521 proto$2.abs = abs; 4522 proto$2.add = add$1; 4523 proto$2.subtract = subtract$1; 4524 proto$2.as = as; 4525 proto$2.asMilliseconds = asMilliseconds; 4526 proto$2.asSeconds = asSeconds; 4527 proto$2.asMinutes = asMinutes; 4528 proto$2.asHours = asHours; 4529 proto$2.asDays = asDays; 4530 proto$2.asWeeks = asWeeks; 4531 proto$2.asMonths = asMonths; 4532 proto$2.as
vendor: 8,270 bytes, lines 4532-4812
4532Years = asYears; 4533 proto$2.valueOf = valueOf$1; 4534 proto$2._bubble = bubble; 4535 proto$2.clone = clone$1; 4536 proto$2.get = get$2; 4537 proto$2.milliseconds = milliseconds; 4538 proto$2.seconds = seconds; 4539 proto$2.minutes = minutes; 4540 proto$2.hours = hours; 4541 proto$2.days = days; 4542 proto$2.weeks = weeks; 4543 proto$2.months = months; 4544 proto$2.years = years; 4545 proto$2.humanize = humanize; 4546 proto$2.toISOString = toISOString$1; 4547 proto$2.toString = toISOString$1; 4548 proto$2.toJSON = toISOString$1; 4549 proto$2.locale = locale; 4550 proto$2.localeData = localeData; 4551 4552 proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1); 4553 proto$2.lang = lang; 4554 4555 // Side effect imports 4556 4557 // FORMATTING 4558 4559 addFormatToken('X', 0, 0, 'unix'); 4560 addFormatToken('x', 0, 0, 'valueOf'); 4561 4562 // PARSING 4563 4564 addRegexToken('x', matchSigned); 4565 addRegexToken('X', matchTimestamp); 4566 addParseToken('X', function (input, array, config) { 4567 config._d = new Date(parseFloat(input, 10) * 1000); 4568 }); 4569 addParseToken('x', function (input, array, config) { 4570 config._d = new Date(toInt(input)); 4571 }); 4572 4573 // Side effect imports 4574 4575 4576 hooks.version = '2.22.2'; 4577 4578 setHookCallback(createLocal); 4579 4580 hooks.fn = proto; 4581 hooks.min = min; 4582 hooks.max = max; 4583 hooks.now = now; 4584 hooks.utc = createUTC; 4585 hooks.unix = createUnix; 4586 hooks.months = listMonths; 4587 hooks.isDate = isDate; 4588 hooks.locale = getSetGlobalLocale; 4589 hooks.invalid = createInvalid; 4590 hooks.duration = createDuration; 4591 hooks.isMoment = isMoment; 4592 hooks.weekdays = listWeekdays; 4593 hooks.parseZone = createInZone; 4594 hooks.localeData = getLocale; 4595 hooks.isDuration = isDuration; 4596 hooks.monthsShort = listMonthsShort; 4597 hooks.weekdaysMin = listWeekdaysMin; 4598 hooks.defineLocale = defineLocale; 4599 hooks.updateLocale = updateLocale; 4600 hooks.locales = listLocales; 4601 hooks.weekdaysShort = listWeekdaysShort; 4602 hooks.normalizeUnits = normalizeUnits; 4603 hooks.relativeTimeRounding = getSetRelativeTimeRounding; 4604 hooks.relativeTimeThreshold = getSetRelativeTimeThreshold; 4605 hooks.calendarFormat = getCalendarFormat; 4606 hooks.prototype = proto; 4607 4608 // currently HTML5 input type only supports 24-hour formats 4609 hooks.HTML5_FMT = { 4610 DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" /> 4611 DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" /> 4612 DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" /> 4613 DATE: 'YYYY-MM-DD', // <input type="date" /> 4614 TIME: 'HH:mm', // <input type="time" /> 4615 TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" /> 4616 TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" /> 4617 WEEK: 'YYYY-[W]WW', // <input type="week" /> 4618 MONTH: 'YYYY-MM' // <input type="month" /> 4619 }; 4620 4621 return hooks; 4622 4623}))); 4624 4625/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(565)(module))) 4626 4627/***/ }), 4628/* 2 */ 4629/***/ (function(module, exports, __webpack_require__) { 4630 4631/** 4632 * Copyright (c) 2013-present, Facebook, Inc. 4633 * 4634 * This source code is licensed under the MIT license found in the 4635 * LICENSE file in the root directory of this source tree. 4636 */ 4637 4638if (true) { 4639 var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' && 4640 Symbol.for && 4641 Symbol.for('react.element')) || 4642 0xeac7; 4643 4644 var isValidElement = function(object) { 4645 return typeof object === 'object' && 4646 object !== null && 4647 object.$$typeof === REACT_ELEMENT_TYPE; 4648 }; 4649 4650 // By explicitly using `prop-types` you are opting into new development behavior. 4651 // http://fb.me/prop-types-in-prod 4652 var throwOnDirectAccess = true; 4653 module.exports = __webpack_require__(166)(isValidElement, throwOnDirectAccess); 4654} else { 4655 // By explicitly using `prop-types` you are opting into new production behavior. 4656 // http://fb.me/prop-types-in-prod 4657 module.exports = require('./factoryWithThrowingShims')(); 4658} 4659 4660 4661/***/ }), 4662/* 3 */ 4663/***/ (function(module, exports, __webpack_require__) { 4664 4665"use strict"; 4666 4667 4668exports.__esModule = true; 4669 4670exports.default = function (instance, Constructor) { 4671 if (!(instance instanceof Constructor)) { 4672 throw new TypeError("Cannot call a class as a function"); 4673 } 4674}; 4675 4676/***/ }), 4677/* 4 */ 4678/***/ (function(module, exports, __webpack_require__) { 4679 4680"use strict"; 4681 4682 4683exports.__esModule = true; 4684 4685var _typeof2 = __webpack_require__(147); 4686 4687var _typeof3 = _interopRequireDefault(_typeof2); 4688 4689function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 4690 4691exports.default = function (self, call) { 4692 if (!self) { 4693 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 4694 } 4695 4696 return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self; 4697}; 4698 4699/***/ }), 4700/* 5 */ 4701/***/ (function(module, exports, __webpack_require__) { 4702 4703"use strict"; 4704 4705 4706exports.__esModule = true; 4707 4708var _setPrototypeOf = __webpack_require__(663); 4709 4710var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); 4711 4712var _create = __webpack_require__(667); 4713 4714var _create2 = _interopRequireDefault(_create); 4715 4716var _typeof2 = __webpack_require__(147); 4717 4718var _typeof3 = _interopRequireDefault(_typeof2); 4719 4720function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 4721 4722exports.default = function (subClass, superClass) { 4723 if (typeof superClass !== "function" && superClass !== null) { 4724 throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass))); 4725 } 4726 4727 subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { 4728 constructor: { 4729 value: subClass, 4730 enumerable: false, 4731 writable: true, 4732 configurable: true 4733 } 4734 }); 4735 if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass; 4736}; 4737 4738/***/ }), 4739/* 6 */ 4740/***/ (function(module, exports, __webpack_require__) { 4741 4742"use strict"; 4743 4744 4745exports.__esModule = true; 4746 4747var _assign = __webpack_require__(360); 4748 4749var _assign2 = _interopRequireDefault(_assign); 4750 4751function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 4752 4753exports.default = _assign2.default || function (target) { 4754 for (var i = 1; i < arguments.length; i++) { 4755 var source = arguments[i]; 4756 4757 for (var key in source) { 4758 if (Object.prototype.hasOwnProperty.call(source, key)) { 4759 target[key] = source[key]; 4760 } 4761 } 4762 } 4763 4764 return target; 4765}; 4766 4767/***/ }), 4768/* 7 */ 4769/***/ (function(module, exports, __webpack_require__) { 4770 4771"use strict"; 4772 4773 4774exports.__esModule = true; 4775 4776exports.default = function (obj, keys) { 4777 var target = {}; 4778 4779 for (var i in obj) { 4780 if (keys.indexOf(i) >= 0) continue; 4781 if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; 4782 target[i] = obj[i]; 4783 } 4784 4785 return target; 4786}; 4787 4788/***/ }), 4789/* 8 */ 4790/***/ (function(module, exports, __webpack_require__) { 4791 4792var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! 4793 Copyright (c) 2017 Jed Watson. 4794 Licensed under the MIT License (MIT), see 4795 http://jedwatson.github.io/classnames 4796*/ 4797/* global define */ 4798 4799(function () { 4800 'use strict'; 4801 4802 var hasOwn = {}.hasOwnProperty; 4803 4804 function classNames () { 4805 var classes = []; 4806 4807 for (var i = 0; i < arguments.length; i++) { 4808 var arg = arguments[i]; 4809 if (!arg) continue; 4810 4811 var argType = typeof arg; 4812
4813 if (argType === 'string' || argType === 'number') { 4814 classes.push(arg); 4815 } else if (Array.isArray(arg) && arg.length) { 4816 var inner = classNames.apply(null, arg); 4817 if (inner) { 4818 classes.push(inner); 4819 } 4820 } else if (argType === 'object') { 4821 for (var key in arg) { 4822 if (hasOwn.call(arg, key) && arg[key]) { 4823 classes.push(key); 4824 } 4825 } 4826 } 4827 } 4828 4829 return classes.join(' '); 4830 } 4831 4832 if (typeof module !== 'undefined' && module.exports) { 4833 classNames.default = classNames; 4834 module.exports = classNames; 4835 } else if (true) { 4836 // register as 'classnames', consistent with npm package name 4837 !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { 4838 return classNames; 4839 }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), 4840 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); 4841 } else { 4842 window.classNames = classNames; 4843 } 4844}()); 4845 4846 4847/***/ }), 4848/* 9 */ 4849/***/ (function(module, __webpack_exports__, __webpack_require__) { 4850 4851"use strict"; 4852Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); 4853/* harmony export (immutable) */ __webpack_exports__["prefix"] = prefix; 4854/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bsClass", function() { return bsClass; }); 4855/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bsStyles", function() { return bsStyles; }); 4856/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bsSizes", function() { return bsSizes; }); 4857/* harmony export (immutable) */ __webpack_exports__["getClassSet"] = getClassSet; 4858/* harmony export (immutable) */ __webpack_exports__["splitBsProps"] = splitBsProps; 4859/* harmony export (immutable) */ __webpack_exports__["splitBsPropsAndOmit"] = splitBsPropsAndOmit; 4860/* harmony export (immutable) */ __webpack_exports__["addStyle"] = addStyle; 4861/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_curry", function() { return _curry; }); 4862/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_entries__ = __webpack_require__(372); 4863/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_entries___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_entries__); 4864/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(6); 4865/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__); 4866/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_invariant__ = __webpack_require__(21); 4867/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_invariant__); 4868/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2); 4869/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__); 4870/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__StyleConfig__ = __webpack_require__(20); 4871 4872 4873// TODO: The publicly exposed parts of this should be in lib/BootstrapUtils. 4874 4875 4876 4877 4878 4879 4880function curry(fn) { 4881 return function () { 4882 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { 4883 args[_key] = arguments[_key]; 4884 } 4885 4886 var last = args[args.length - 1]; 4887 if (typeof last === 'function') { 4888 return fn.apply(undefined, args); 4889 } 4890 return function (Component) { 4891 return fn.apply(undefined, args.concat([Component])); 4892 }; 4893 }; 4894} 4895 4896function prefix(props, variant) { 4897 !(props.bsClass != null) ? true ? __WEBPACK_IMPORTED_MODULE_2_invariant___default()(false, 'A `bsClass` prop is required for this component') : invariant(false) : void 0; 4898 return props.bsClass + (variant ? '-' + variant : ''); 4899} 4900 4901var bsClass = curry(function (defaultClass, Component) { 4902 var propTypes = Component.propTypes || (Component.propTypes = {}); 4903 var defaultProps = Component.defaultProps || (Component.defaultProps = {}); 4904 4905 propTypes.bsClass = __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string; 4906 defaultProps.bsClass = defaultClass; 4907 4908 return Component; 4909}); 4910 4911var bsStyles = curry(function (styles, defaultStyle, Component) { 4912 if (typeof defaultStyle !== 'string') { 4913 Component = defaultStyle; 4914 defaultStyle = undefined; 4915 } 4916 4917 var existing = Component.STYLES || []; 4918 var propTypes = Component.propTypes || {}; 4919
4920 styles.forEach(function (style) { 4921 if (existing.indexOf(style) === -1) { 4922 existing.push(style); 4923 } 4924 }); 4925 4926 var propType = __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(existing); 4927 4928 // expose the values on the propType function for documentation 4929 Component.STYLES = existing; 4930 propType._values = existing; 4931 4932 Component.propTypes = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, propTypes, { 4933 bsStyle: propType 4934 }); 4935 4936 if (defaultStyle !== undefined) { 4937 var defaultProps = Component.defaultProps || (Component.defaultProps = {}); 4938 defaultProps.bsStyle = defaultStyle; 4939 } 4940 4941 return Component; 4942}); 4943 4944var bsSizes = curry(function (sizes, defaultSize, Component) { 4945 if (typeof defaultSize !== 'string') { 4946 Component = defaultSize; 4947 defaultSize = undefined; 4948 } 4949 4950 var existing = Component.SIZES || []; 4951 var propTypes = Component.propTypes || {}; 4952 4953 sizes.forEach(function (size) { 4954 if (existing.indexOf(size) === -1) { 4955 existing.push(size); 4956 } 4957 }); 4958 4959 var values = []; 4960 existing.forEach(function (size) { 4961 var mappedSize = __WEBPACK_IMPORTED_MODULE_4__StyleConfig__["b" /* SIZE_MAP */][size]; 4962 if (mappedSize && mappedSize !== size) { 4963 values.push(mappedSize); 4964 } 4965 4966 values.push(size); 4967 }); 4968 4969 var propType = __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(values); 4970 propType._values = values; 4971 4972 // expose the values on the propType function for documentation 4973 Component.SIZES = existing; 4974 4975 Component.propTypes = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, propTypes, { 4976 bsSize: propType 4977 }); 4978 4979 if (defaultSize !== undefined) { 4980 if (!Component.defaultProps) { 4981 Component.defaultProps = {}; 4982 } 4983 Component.defaultProps.bsSize = defaultSize; 4984 } 4985 4986 return Component; 4987}); 4988 4989function getClassSet(props) { 4990 var _classes; 4991 4992 var classes = (_classes = {}, _classes[prefix(props)] = true, _classes); 4993 4994 if (props.bsSize) { 4995 var bsSize = __WEBPACK_IMPORTED_MODULE_4__StyleConfig__["b" /* SIZE_MAP */][props.bsSize] || props.bsSize; 4996 classes[prefix(props, bsSize)] = true; 4997 } 4998 4999 if (props.bsStyle) { 5000 classes[prefix(props, props.bsStyle)] = true; 5001 } 5002 5003 return classes; 5004} 5005 5006function getBsProps(props) { 5007 return { 5008 bsClass: props.bsClass, 5009 bsSize: props.bsSize, 5010 bsStyle: props.bsStyle, 5011 bsRole: props.bsRole 5012 }; 5013} 5014 5015function isBsProp(propName) { 5016 return propName === 'bsClass' || propName === 'bsSize' || propName === 'bsStyle' || propName === 'bsRole'; 5017} 5018 5019function splitBsProps(props) { 5020 var elementProps = {}; 5021 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_entries___default()(props).forEach(function (_ref) { 5022 var propName = _ref[0], 5023 propValue = _ref[1]; 5024 5025 if (!isBsProp(propName)) { 5026 elementProps[propName] = propValue; 5027 } 5028 }); 5029 5030 return [getBsProps(props), elementProps]; 5031} 5032 5033function splitBsPropsAndOmit(props, omittedPropNames) { 5034 var isOmittedProp = {}; 5035 omittedPropNames.forEach(function (propName) { 5036 isOmittedProp[propName] = true; 5037 }); 5038 5039 var elementProps = {}; 5040 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_entries___default()(props).forEach(function (_ref2) { 5041 var propName = _ref2[0], 5042 propValue = _ref2[1]; 5043 5044 if (!isBsProp(propName) && !isOmittedProp[propName]) { 5045 elementProps[propName] = propValue; 5046 } 5047 }); 5048 5049 return [getBsProps(props), elementProps]; 5050} 5051 5052/** 5053 * Add a style variant to a Component. Mutates the propTypes of the component 5054 * in order to validate the new variant. 5055 */ 5056function addStyle(Component) { 5057 for (var _len2 = arguments.length, styleVariant = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { 5058 styleVariant[_key2 - 1] = arguments[_key2]; 5059 } 5060 5061 bsStyles(styleVariant, Component); 5062} 5063 5064var _curry = curry; 5065 5066/***/ }), 5067/* 10 */ 5068/***/ (function(module, exports, __webpack_require__) { 5069 5070"use strict"; 5071/** 5072 * Copyright (c) 2013-present, Facebook, Inc. 5073 * 5074 * This source code is licensed under the MIT license found in the 5075 * LICENSE file in the root directory of this source tree. 5076 * 5077 */ 5078 5079 5080 5081/** 5082 * Use invariant() to assert state which your program assumes to be true. 5083 * 5084 * Provide sprintf-style format (only %s is supported) and arguments 5085 * to provide information about what broke and what you were 5086 * expecting. 5087 * 5088 * The invariant message will be stripped in production, but the invariant 5089 * will remain to ensure logic does not differ in production. 5090 */ 5091 5092var validateFormat = function validateFormat(format) {}; 5093 5094if (true) { 5095 validateFormat = function validateFormat(format) { 5096 if (format === undefined) { 5097 throw new Error('invariant requires an error message argument'); 5098 } 5099 }; 5100} 5101 5102function invariant(condition, format, a, b, c, d, e, f) { 5103 validateFormat(format); 5104 5105 if (!condition) { 5106 var error; 5107 if (format === undefined) { 5108 error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); 5109 } else { 5110 var args = [a, b, c, d, e, f]; 5111 var argIndex = 0; 5112 error = new Error(format.replace(/%s/g, function () { 5113 return args[argIndex++]; 5114 }));
5115 error.name = 'Invariant Violation'; 5116 } 5117 5118 error.framesToPop = 1; // we don't care about invariant's own frame 5119 throw error; 5120 } 5121} 5122 5123module.exports = invariant; 5124 5125/***/ }), 5126/* 11 */ 5127/***/ (function(module, exports, __webpack_require__) { 5128 5129"use strict"; 5130/** 5131 * Copyright (c) 2014-present, Facebook, Inc. 5132 * 5133 * This source code is licensed under the MIT license found in the 5134 * LICENSE file in the root directory of this source tree. 5135 * 5136 */ 5137 5138 5139 5140var emptyFunction = __webpack_require__(29); 5141 5142/** 5143 * Similar to invariant but only logs a warning if the condition is not met. 5144 * This can be used to log issues in development environments in critical 5145 * paths. Removing the logging code for production environments will keep the 5146 * same logic and follow the same code paths. 5147 */ 5148 5149var warning = emptyFunction; 5150 5151if (true) { 5152 var printWarning = function printWarning(format) { 5153 for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { 5154 args[_key - 1] = arguments[_key]; 5155 } 5156 5157 var argIndex = 0; 5158 var message = 'Warning: ' + format.replace(/%s/g, function () { 5159 return args[argIndex++]; 5160 }); 5161 if (typeof console !== 'undefined') { 5162 console.error(message); 5163 } 5164 try { 5165 // --- Welcome to debugging React --- 5166 // This error was thrown as a convenience so that you can use this stack 5167 // to find the callsite that caused this warning to fire. 5168 throw new Error(message); 5169 } catch (x) {} 5170 }; 5171 5172 warning = function warning(condition, format) { 5173 if (format === undefined) { 5174 throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); 5175 } 5176 5177 if (format.indexOf('Failed Composite propType: ') === 0) { 5178 return; // Ignore CompositeComponent proptype check. 5179 } 5180 5181 if (!condition) { 5182 for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { 5183 args[_key2 - 2] = arguments[_key2]; 5184 } 5185 5186 printWarning.apply(undefined, [format].concat(args)); 5187 } 5188 }; 5189} 5190 5191module.exports = warning; 5192 5193/***/ }), 5194/* 12 */ 5195/***/ (function(module, exports, __webpack_require__) { 5196 5197"use strict"; 5198/** 5199 * Copyright (c) 2013-present, Facebook, Inc. 5200 * 5201 * This source code is licensed under the MIT license found in the 5202 * LICENSE file in the root directory of this source tree. 5203 * 5204 * 5205 */ 5206 5207 5208/** 5209 * WARNING: DO NOT manually require this module. 5210 * This is a replacement for `invariant(...)` used by the error code system 5211 * and will _only_ be required by the corresponding babel pass. 5212 * It always throws. 5213 */ 5214 5215function reactProdInvariant(code) { 5216 var argCount = arguments.length - 1; 5217 5218 var message = 'Minified React error #' + code + '; visit ' + 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + code; 5219 5220 for (var argIdx = 0; argIdx < argCount; argIdx++) { 5221 message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]); 5222 } 5223 5224 message += ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.'; 5225 5226 var error = new Error(message); 5227 error.name = 'Invariant Violation'; 5228 error.framesToPop = 1; // we don't care about reactProdInvariant's own frame 5229 5230 throw error; 5231} 5232 5233module.exports = reactProdInvariant; 5234 5235/***/ }), 5236/* 13 */ 5237/***/ (function(module, exports, __webpack_require__) { 5238 5239"use strict"; 5240 5241 5242Object.defineProperty(exports, "__esModule", { 5243 value: true 5244}); 5245 5246var _react = __webpack_require__(0); 5247 5248var _react2 = _interopRequireDefault(_react); 5249 5250var _reactIs = __webpack_require__(677); 5251 5252var _createChainableTypeChecker = __webpack_require__(93); 5253 5254var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); 5255 5256function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 5257 5258function elementType(props, propName, componentName, location, propFullName) { 5259 var propValue = props[propName]; 5260 5261 if (_react2.default.isValidElement(propValue)) { 5262 return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`,expected an element type (a string ') + ', component class, or function component).'); 5263 } 5264 5265 if (!(0, _reactIs.isValidElementType)(propValue)) { 5266 return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + ', component class, or function component).'); 5267 } 5268 5269 return null; 5270} 5271 5272exports.default = (0, _createChainableTypeChecker2.default)(elementType); 5273module.exports = exports['default']; 5274 5275/***/ }), 5276/* 14 */ 5277/***/ (function(module, exports, __webpack_require__) { 5278 5279"use strict"; 5280/* 5281object-assign 5282(c) Sindre Sorhus 5283@license MIT
5284*/ 5285 5286 5287/* eslint-disable no-unused-vars */ 5288var getOwnPropertySymbols = Object.getOwnPropertySymbols; 5289var hasOwnProperty = Object.prototype.hasOwnProperty; 5290var propIsEnumerable = Object.prototype.propertyIsEnumerable; 5291 5292function toObject(val) { 5293 if (val === null || val === undefined) { 5294 throw new TypeError('Object.assign cannot be called with null or undefined'); 5295 } 5296 5297 return Object(val); 5298} 5299 5300function shouldUseNative() { 5301 try { 5302 if (!Object.assign) { 5303 return false; 5304 } 5305 5306 // Detect buggy property enumeration order in older V8 versions. 5307 5308 // https://bugs.chromium.org/p/v8/issues/detail?id=4118 5309 var test1 = new String('abc'); // eslint-disable-line no-new-wrappers 5310 test1[5] = 'de'; 5311 if (Object.getOwnPropertyNames(test1)[0] === '5') { 5312 return false; 5313 } 5314 5315 // https://bugs.chromium.org/p/v8/issues/detail?id=3056 5316 var test2 = {}; 5317 for (var i = 0; i < 10; i++) { 5318 test2['_' + String.fromCharCode(i)] = i; 5319 } 5320 var order2 = Object.getOwnPropertyNames(test2).map(function (n) { 5321 return test2[n]; 5322 }); 5323 if (order2.join('') !== '0123456789') { 5324 return false; 5325 } 5326 5327 // https://bugs.chromium.org/p/v8/issues/detail?id=3056 5328 var test3 = {}; 5329 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { 5330 test3[letter] = letter; 5331 }); 5332 if (Object.keys(Object.assign({}, test3)).join('') !== 5333 'abcdefghijklmnopqrst') { 5334 return false; 5335 } 5336 5337 return true; 5338 } catch (err) { 5339 // We don't expect any of the above to throw, but better to be safe. 5340 return false; 5341 } 5342} 5343 5344module.exports = shouldUseNative() ? Object.assign : function (target, source) { 5345 var from; 5346 var to = toObject(target); 5347 var symbols; 5348 5349 for (var s = 1; s < arguments.length; s++) { 5350 from = Object(arguments[s]); 5351 5352 for (var key in from) { 5353 if (hasOwnProperty.call(from, key)) { 5354 to[key] = from[key]; 5355 } 5356 } 5357 5358 if (getOwnPropertySymbols) { 5359 symbols = getOwnPropertySymbols(from); 5360 for (var i = 0; i < symbols.length; i++) { 5361 if (propIsEnumerable.call(from, symbols[i])) { 5362 to[symbols[i]] = from[symbols[i]]; 5363 } 5364 } 5365 } 5366 } 5367 5368 return to; 5369}; 5370 5371 5372/***/ }), 5373/* 15 */ 5374/***/ (function(module, exports, __webpack_require__) { 5375 5376"use strict"; 5377/** 5378 * Copyright (c) 2013-present, Facebook, Inc. 5379 * 5380 * This source code is licensed under the MIT license found in the 5381 * LICENSE file in the root directory of this source tree. 5382 * 5383 */ 5384 5385 5386 5387var _prodInvariant = __webpack_require__(12); 5388 5389var DOMProperty = __webpack_require__(36); 5390var ReactDOMComponentFlags = __webpack_require__(168); 5391 5392var invariant = __webpack_require__(10); 5393 5394var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME; 5395var Flags = ReactDOMComponentFlags; 5396 5397var internalInstanceKey = '__reactInternalInstance$' + Math.random().toString(36).slice(2); 5398 5399/** 5400 * Check if a given node should be cached. 5401 */ 5402function shouldPrecacheNode(node, nodeID) { 5403 return node.nodeType === 1 && node.getAttribute(ATTR_NAME) === String(nodeID) || node.nodeType === 8 && node.nodeValue === ' react-text: ' + nodeID + ' ' || node.nodeType === 8 && node.nodeValue === ' react-empty: ' + nodeID + ' '; 5404} 5405 5406/** 5407 * Drill down (through composites and empty components) until we get a host or 5408 * host text component. 5409 * 5410 * This is pretty polymorphic but unavoidable with the current structure we have 5411 * for `_renderedChildren`. 5412 */ 5413function getRenderedHostOrTextFromComponent(component) { 5414 var rendered; 5415 while (rendered = component._renderedComponent) { 5416 component = rendered; 5417 } 5418 return component; 5419} 5420 5421/** 5422 * Populate `_hostNode` on the rendered host/text component with the given 5423 * DOM node. The passed `inst` can be a composite. 5424 */ 5425function precacheNode(inst, node) { 5426 var hostInst = getRenderedHostOrTextFromComponent(inst); 5427 hostInst._hostNode = node; 5428 node[internalInstanceKey] = hostInst; 5429} 5430 5431function uncacheNode(inst) { 5432 var node = inst._hostNode; 5433 if (node) { 5434 delete node[internalInstanceKey]; 5435 inst._hostNode = null; 5436 } 5437} 5438 5439/** 5440 * Populate `_hostNode` on each child of `inst`, assuming that the children 5441 * match up with the DOM (element) children of `node`. 5442 * 5443 * We cache entire levels at once to avoid an n^2 problem where we access the 5444 * children of a node sequentially and have to walk from the start to our target 5445 * node every time. 5446 * 5447 * Since we update `_renderedChildren` and the actual DOM at (slightly) 5448 * different times, we could race here and see a newer `_renderedChildren` than 5449 * the DOM nodes we see. To avoid this, ReactMultiChild calls 5450 * `prepareToManageChildren` before we change `_renderedChildren`, at which 5451 * time the container's child nodes are always cached (until it unmounts). 5452 */ 5453function precacheChildNodes(inst, node) { 5454 if (inst._flags & Flags.hasCachedChildNodes) { 5455 return; 5456 } 5457 var children = inst._renderedChildren; 5458 var childNode = node.firstChild; 5459 outer: for (var name in children) { 5460 if (!children.hasOwnProperty(name)) { 5461 continue; 5462 } 5463 var childInst = children[name]; 5464 var childID = getRenderedHostOrTextFromComponent(childInst)._domID; 5465 if (childID === 0) { 5466 // We're currently unmounting this child in ReactMultiChild; skip it. 5467 continue; 5468 } 5469 // We assume the child nodes are in the same order as the child instances. 5470 for (; childNode !== null; childNode = childNode.nextSibling) { 5471 if (shouldPrecacheNode(childNode, childID)) { 5472 precacheNode(childInst, childNode); 5473 continue outer; 5474 } 5475 } 5476 // We reached the end of the DOM children without finding an ID match. 5477 true ? true ? invariant(false, 'Unable to find element with ID %s.', childID) : _prodInvariant('32', childID) : void 0; 5478 } 5479 inst._flags |= Flags.hasCachedChildNodes; 5480} 5481 5482/** 5483 * Given a DOM node, return the closest ReactDOMComponent or 5484 * ReactDOMTextComponent instance ancestor. 5485 */ 5486function getClosestInstanceFromNode(node) { 5487 if (node[internalInstanceKey]) { 5488 return node[internalInstanceKey]; 5489 } 5490 5491 // Walk up the tree until we find an ancestor whose instance we have cached. 5492 var parents = []; 5493 while (!node[internalInstanceKey]) { 5494 parents.push(node); 5495 if (node.parentNode) { 5496 node = node.parentNode; 5497 } else { 5498 // Top of the tree. This node must not be part of a React tree (or is 5499 // unmounted, potentially). 5500 return null; 5501 } 5502 } 5503 5504 var closest; 5505 var inst; 5506 for (; node && (inst = node[internalInstanceKey]); node = parents.pop()) { 5507 closest = inst; 5508 if (parents.length) { 5509 precacheChildNodes(inst, node); 5510 } 5511 } 5512 5513 return closest; 5514} 5515
5516/** 5517 * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent 5518 * instance, or null if the node was not rendered by this React. 5519 */ 5520function getInstanceFromNode(node) { 5521 var inst = getClosestInstanceFromNode(node); 5522 if (inst != null && inst._hostNode === node) { 5523 return inst; 5524 } else { 5525 return null; 5526 } 5527} 5528 5529/** 5530 * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding 5531 * DOM node. 5532 */ 5533function getNodeFromInstance(inst) { 5534 // Without this first invariant, passing a non-DOM-component triggers the next 5535 // invariant for a missing parent, which is super confusing. 5536 !(inst._hostNode !== undefined) ? true ? invariant(false, 'getNodeFromInstance: Invalid argument.') : _prodInvariant('33') : void 0; 5537 5538 if (inst._hostNode) { 5539 return inst._hostNode; 5540 } 5541 5542 // Walk up the tree until we find an ancestor whose DOM node we have cached. 5543 var parents = []; 5544 while (!inst._hostNode) { 5545 parents.push(inst); 5546 !inst._hostParent ? true ? invariant(false, 'React DOM tree root should always have a node reference.') : _prodInvariant('34') : void 0; 5547 inst = inst._hostParent; 5548 } 5549 5550 // Now parents contains each ancestor that does *not* have a cached native 5551 // node, and `inst` is the deepest ancestor that does. 5552 for (; parents.length; inst = parents.pop()) { 5553 precacheChildNodes(inst, inst._hostNode); 5554 } 5555 5556 return inst._hostNode; 5557} 5558 5559var ReactDOMComponentTree = { 5560 getClosestInstanceFromNode: getClosestInstanceFromNode, 5561 getInstanceFromNode: getInstanceFromNode, 5562 getNodeFromInstance: getNodeFromInstance, 5563 precacheChildNodes: precacheChildNodes, 5564 precacheNode: precacheNode, 5565 uncacheNode: uncacheNode 5566}; 5567 5568module.exports = ReactDOMComponentTree; 5569 5570/***/ }), 5571/* 16 */ 5572/***/ (function(module, __webpack_exports__, __webpack_require__) { 5573 5574"use strict"; 5575/** 5576 * Safe chained function 5577 * 5578 * Will only create a new function if needed, 5579 * otherwise will pass back existing functions or null. 5580 * 5581 * @param {function} functions to chain 5582 * @returns {function|null} 5583 */ 5584function createChainedFunction() { 5585 for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { 5586 funcs[_key] = arguments[_key]; 5587 } 5588 5589 return funcs.filter(function (f) { 5590 return f != null; 5591 }).reduce(function (acc, f) { 5592 if (typeof f !== 'function') { 5593 throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.'); 5594 } 5595 5596 if (acc === null) { 5597 return f; 5598 } 5599 5600 return function chainedFunction() { 5601 for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { 5602 args[_key2] = arguments[_key2]; 5603 } 5604 5605 acc.apply(this, args); 5606 f.apply(this, args); 5607 }; 5608 }, null); 5609} 5610 5611/* harmony default export */ __webpack_exports__["a"] = (createChainedFunction); 5612 5613/***/ }), 5614/* 17 */ 5615/***/ (function(module, exports, __webpack_require__) { 5616 5617"use strict"; 5618 5619 5620module.exports = __webpack_require__(422); 5621 5622 5623/***/ }), 5624/* 18 */ 5625/***/ (function(module, exports, __webpack_require__) { 5626 5627"use strict"; 5628/** 5629 * Copyright (c) 2013-present, Facebook, Inc. 5630 * 5631 * This source code is licensed under the MIT license found in the 5632 * LICENSE file in the root directory of this source tree. 5633 * 5634 */ 5635 5636 5637 5638var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); 5639 5640/** 5641 * Simple, lightweight module assisting with the detection and context of 5642 * Worker. Helps avoid circular dependencies and allows code to reason about 5643 * whether or not they are in a Worker, even if they never include the main 5644 * `ReactWorker` dependency. 5645 */ 5646var ExecutionEnvironment = { 5647 5648 canUseDOM: canUseDOM, 5649 5650 canUseWorkers: typeof Worker !== 'undefined', 5651 5652 canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent), 5653 5654 canUseViewport: canUseDOM && !!window.screen, 5655 5656 isInWorker: !canUseDOM // For now, this is true - might change in the future. 5657 5658}; 5659 5660module.exports = ExecutionEnvironment; 5661 5662/***/ }), 5663/* 19 */ 5664/***/ (function(module, exports, __webpack_require__) { 5665 5666"use strict"; 5667/** 5668 * Copyright 2014-2015, Facebook, Inc. 5669 * All rights reserved. 5670 * 5671 * This source code is licensed under the BSD-style license found in the 5672 * LICENSE file in the root directory of this source tree. An additional grant 5673 * of patent rights can be found in the PATENTS file in the same directory. 5674 */ 5675 5676 5677 5678/** 5679 * Similar to invariant but only logs a warning if the condition is not met. 5680 * This can be used to log issues in development environments in critical 5681 * paths. Removing the logging code for production environments will keep the 5682 * same logic and follow the same code paths. 5683 */ 5684 5685var warning = function() {}; 5686 5687if (true) {
vendor: 4,306 bytes, lines 5688-5843
5688 warning = function(condition, format, args) { 5689 var len = arguments.length; 5690 args = new Array(len > 2 ? len - 2 : 0); 5691 for (var key = 2; key < len; key++) { 5692 args[key - 2] = arguments[key]; 5693 } 5694 if (format === undefined) { 5695 throw new Error( 5696 '`warning(condition, format, ...args)` requires a warning ' + 5697 'message argument' 5698 ); 5699 } 5700 5701 if (format.length < 10 || (/^[s\W]*$/).test(format)) { 5702 throw new Error( 5703 'The warning format should be able to uniquely identify this ' + 5704 'warning. Please, use a more descriptive format than: ' + format 5705 ); 5706 } 5707 5708 if (!condition) { 5709 var argIndex = 0; 5710 var message = 'Warning: ' + 5711 format.replace(/%s/g, function() { 5712 return args[argIndex++]; 5713 }); 5714 if (typeof console !== 'undefined') { 5715 console.error(message); 5716 } 5717 try { 5718 // This error was thrown as a convenience so that you can use this stack 5719 // to find the callsite that caused this warning to fire. 5720 throw new Error(message); 5721 } catch(x) {} 5722 } 5723 }; 5724} 5725 5726module.exports = warning; 5727 5728 5729/***/ }), 5730/* 20 */ 5731/***/ (function(module, __webpack_exports__, __webpack_require__) { 5732 5733"use strict"; 5734/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return Size; }); 5735/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return SIZE_MAP; }); 5736/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DEVICE_SIZES; }); 5737/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return State; }); 5738/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return Style; }); 5739var Size = { 5740 LARGE: 'large', 5741 SMALL: 'small', 5742 XSMALL: 'xsmall' 5743}; 5744 5745var SIZE_MAP = { 5746 large: 'lg', 5747 medium: 'md', 5748 small: 'sm', 5749 xsmall: 'xs', 5750 lg: 'lg', 5751 md: 'md', 5752 sm: 'sm', 5753 xs: 'xs' 5754}; 5755 5756var DEVICE_SIZES = ['lg', 'md', 'sm', 'xs']; 5757 5758var State = { 5759 SUCCESS: 'success', 5760 WARNING: 'warning', 5761 DANGER: 'danger', 5762 INFO: 'info' 5763}; 5764 5765var Style = { 5766 DEFAULT: 'default', 5767 PRIMARY: 'primary', 5768 LINK: 'link', 5769 INVERSE: 'inverse' 5770}; 5771 5772/***/ }), 5773/* 21 */ 5774/***/ (function(module, exports, __webpack_require__) { 5775 5776"use strict"; 5777/** 5778 * Copyright (c) 2013-present, Facebook, Inc. 5779 * 5780 * This source code is licensed under the MIT license found in the 5781 * LICENSE file in the root directory of this source tree. 5782 */ 5783 5784 5785 5786/** 5787 * Use invariant() to assert state which your program assumes to be true. 5788 * 5789 * Provide sprintf-style format (only %s is supported) and arguments 5790 * to provide information about what broke and what you were 5791 * expecting. 5792 * 5793 * The invariant message will be stripped in production, but the invariant 5794 * will remain to ensure logic does not differ in production. 5795 */ 5796 5797var invariant = function(condition, format, a, b, c, d, e, f) { 5798 if (true) { 5799 if (format === undefined) { 5800 throw new Error('invariant requires an error message argument'); 5801 } 5802 } 5803 5804 if (!condition) { 5805 var error; 5806 if (format === undefined) { 5807 error = new Error( 5808 'Minified exception occurred; use the non-minified dev environment ' + 5809 'for the full error message and additional helpful warnings.' 5810 ); 5811 } else { 5812 var args = [a, b, c, d, e, f]; 5813 var argIndex = 0; 5814 error = new Error( 5815 format.replace(/%s/g, function() { return args[argIndex++]; }) 5816 ); 5817 error.name = 'Invariant Violation'; 5818 } 5819 5820 error.framesToPop = 1; // we don't care about invariant's own frame 5821 throw error; 5822 } 5823}; 5824 5825module.exports = invariant; 5826 5827 5828/***/ }), 5829/* 22 */ 5830/***/ (function(module, __webpack_exports__, __webpack_require__) { 5831 5832"use strict"; 5833/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); 5834/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); 5835// TODO: This module should be ElementChildren, and should use named exports. 5836 5837 5838 5839/** 5840 * Iterates through children that are typically specified as `props.children`, 5841 * but only maps over children that are "valid components". 5842 * 5843 * The mapFunction provided index will be normalised to the components mapped,
5844 * so an invalid component would not increase the index. 5845 * 5846 * @param {?*} children Children tree container. 5847 * @param {function(*, int)} func. 5848 * @param {*} context Context for func. 5849 * @return {object} Object containing the ordered map of results. 5850 */ 5851function map(children, func, context) { 5852 var index = 0; 5853 5854 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.map(children, function (child) { 5855 if (!__WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(child)) { 5856 return child; 5857 } 5858 5859 return func.call(context, child, index++); 5860 }); 5861} 5862 5863/** 5864 * Iterates through children that are "valid components". 5865 * 5866 * The provided forEachFunc(child, index) will be called for each 5867 * leaf child with the index reflecting the position relative to "valid components". 5868 * 5869 * @param {?*} children Children tree container. 5870 * @param {function(*, int)} func. 5871 * @param {*} context Context for context. 5872 */ 5873function forEach(children, func, context) { 5874 var index = 0; 5875 5876 __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (child) { 5877 if (!__WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(child)) { 5878 return; 5879 } 5880 5881 func.call(context, child, index++); 5882 }); 5883} 5884 5885/** 5886 * Count the number of "valid components" in the Children container. 5887 * 5888 * @param {?*} children Children tree container. 5889 * @returns {number} 5890 */ 5891function count(children) { 5892 var result = 0; 5893 5894 __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (child) { 5895 if (!__WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(child)) { 5896 return; 5897 } 5898 5899 ++result; 5900 }); 5901 5902 return result; 5903} 5904 5905/** 5906 * Finds children that are typically specified as `props.children`, 5907 * but only iterates over children that are "valid components". 5908 * 5909 * The provided forEachFunc(child, index) will be called for each 5910 * leaf child with the index reflecting the position relative to "valid components". 5911 * 5912 * @param {?*} children Children tree container. 5913 * @param {function(*, int)} func. 5914 * @param {*} context Context for func. 5915 * @returns {array} of children that meet the func return statement 5916 */ 5917function filter(children, func, context) { 5918 var index = 0; 5919 var result = []; 5920 5921 __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (child) { 5922 if (!__WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(child)) { 5923 return; 5924 } 5925 5926 if (func.call(context, child, index++)) { 5927 result.push(child); 5928 } 5929 }); 5930 5931 return result; 5932} 5933 5934function find(children, func, context) { 5935 var index = 0; 5936 var result = void 0; 5937 5938 __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (child) { 5939 if (result) { 5940 return; 5941 } 5942 if (!__WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(child)) { 5943 return; 5944 } 5945 5946 if (func.call(context, child, index++)) { 5947 result = child; 5948 } 5949 }); 5950 5951 return result; 5952} 5953 5954function every(children, func, context) { 5955 var index = 0; 5956 var result = true; 5957 5958 __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (child) { 5959 if (!result) { 5960 return; 5961 } 5962 if (!__WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(child)) { 5963 return; 5964 } 5965 5966 if (!func.call(context, child, index++)) { 5967 result = false;
5968 } 5969 }); 5970 5971 return result; 5972} 5973 5974function some(children, func, context) { 5975 var index = 0; 5976 var result = false; 5977 5978 __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (child) { 5979 if (result) { 5980 return; 5981 } 5982 if (!__WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(child)) { 5983 return; 5984 } 5985 5986 if (func.call(context, child, index++)) { 5987 result = true; 5988 } 5989 }); 5990 5991 return result; 5992} 5993 5994function toArray(children) { 5995 var result = []; 5996 5997 __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (child) { 5998 if (!__WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(child)) { 5999 return; 6000 } 6001 6002 result.push(child); 6003 }); 6004 6005 return result; 6006} 6007 6008/* harmony default export */ __webpack_exports__["a"] = ({ 6009 map: map, 6010 forEach: forEach, 6011 count: count, 6012 find: find, 6013 filter: filter, 6014 every: every, 6015 some: some, 6016 toArray: toArray 6017}); 6018 6019/***/ }), 6020/* 23 */ 6021/***/ (function(module, exports, __webpack_require__) { 6022 6023"use strict"; 6024/** 6025 * Copyright (c) 2016-present, Facebook, Inc. 6026 * 6027 * This source code is licensed under the MIT license found in the 6028 * LICENSE file in the root directory of this source tree. 6029 * 6030 * 6031 */ 6032 6033 6034 6035var _prodInvariant = __webpack_require__(49); 6036 6037var ReactCurrentOwner = __webpack_require__(30); 6038 6039var invariant = __webpack_require__(10); 6040var warning = __webpack_require__(11); 6041 6042function isNative(fn) { 6043 // Based on isNative() from Lodash 6044 var funcToString = Function.prototype.toString; 6045 var hasOwnProperty = Object.prototype.hasOwnProperty; 6046 var reIsNative = RegExp('^' + funcToString 6047 // Take an example native function source for comparison 6048 .call(hasOwnProperty 6049 // Strip regex characters so we can use it for regex 6050 ).replace(/[\\^$.*+?()[\]{}|]/g, '\\$&' 6051 // Remove hasOwnProperty from the template to make it generic 6052 ).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'); 6053 try { 6054 var source = funcToString.call(fn); 6055 return reIsNative.test(source); 6056 } catch (err) { 6057 return false; 6058 } 6059} 6060 6061var canUseCollections = 6062// Array.from 6063typeof Array.from === 'function' && 6064// Map 6065typeof Map === 'function' && isNative(Map) && 6066// Map.prototype.keys 6067Map.prototype != null && typeof Map.prototype.keys === 'function' && isNative(Map.prototype.keys) && 6068// Set 6069typeof Set === 'function' && isNative(Set) && 6070// Set.prototype.keys 6071Set.prototype != null && typeof Set.prototype.keys === 'function' && isNative(Set.prototype.keys); 6072 6073var setItem; 6074var getItem; 6075var removeItem; 6076var getItemIDs; 6077var addRoot; 6078var removeRoot; 6079var getRootIDs; 6080 6081if (canUseCollections) { 6082 var itemMap = new Map(); 6083 var rootIDSet = new Set(); 6084 6085 setItem = function (id, item) { 6086 itemMap.set(id, item); 6087 }; 6088 getItem = function (id) { 6089 return itemMap.get(id); 6090 }; 6091 removeItem = function (id) { 6092 itemMap['delete'](id); 6093 }; 6094 getItemIDs = function () { 6095 return Array.from(itemMap.keys()); 6096 }; 6097 6098 addRoot = function (id) { 6099 rootIDSet.add(id); 6100 }; 6101 removeRoot = function (id) { 6102 rootIDSet['delete'](id); 6103 }; 6104 getRootIDs = function () { 6105 return Array.from(rootIDSet.keys()); 6106 }; 6107} else { 6108 var itemByKey = {}; 6109 var rootByKey = {}; 6110 6111 // Use non-numeric keys to prevent V8 performance issues: 6112 // https://github.com/facebook/react/pull/7232 6113 var getKeyFromID = function (id) { 6114 return '.' + id; 6115 }; 6116 var getIDFromKey = function (key) { 6117 return parseInt(key.substr(1), 10); 6118 }; 6119 6120 setItem = function (id, item) { 6121 var key = getKeyFromID(id); 6122 itemByKey[key] = item; 6123 }; 6124 getItem = function (id) { 6125 var key = getKeyFromID(id); 6126 return itemByKey[key]; 6127 }; 6128 removeItem = function (id) { 6129 var key = getKeyFromID(id); 6130 delete itemByKey[key]; 6131 }; 6132 getItemIDs = function () { 6133 return Object.keys(itemByKey).map(getIDFromKey); 6134 }; 6135 6136 addRoot = function (id) { 6137 var key = getKeyFromID(id); 6138 rootByKey[key] = true; 6139 }; 6140 removeRoot = function (id) { 6141 var key = getKeyFromID(id); 6142 delete rootByKey[key]; 6143 }; 6144 getRootIDs = function () { 6145 return Object.keys(rootByKey).map(getIDFromKey); 6146 }; 6147} 6148 6149var unmountedIDs = []; 6150 6151function purgeDeep(id) { 6152 var item = getItem(id); 6153 if (item) { 6154 var childIDs = item.childIDs; 6155 6156 removeItem(id); 6157 childIDs.forEach(purgeDeep); 6158 } 6159} 6160 6161function describeComponentFrame(name, source, ownerName) { 6162 return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : ''); 6163} 6164 6165function getDisplayName(element) { 6166 if (element == null) { 6167 return '#empty'; 6168 } else if (typeof element === 'string' || typeof element === 'number') { 6169 return '#text'; 6170 } else if (typeof element.type === 'string') { 6171 return element.type; 6172 } else { 6173 return element.type.displayName || element.type.name || 'Unknown'; 6174 } 6175} 6176 6177function describeID(id) { 6178 var name = ReactComponentTreeHook.getDisplayName(id); 6179 var element = ReactComponentTreeHook.getElement(id); 6180 var ownerID = ReactComponentTreeHook.getOwnerID(id); 6181 var ownerName; 6182 if (ownerID) { 6183 ownerName = ReactComponentTreeHook.getDisplayName(ownerID); 6184 } 6185 true ? warning(element, 'ReactComponentTreeHook: Missing React element for debugID %s when ' + 'building stack', id) : void 0; 6186 return describeComponentFrame(name, element && element._source, ownerName); 6187} 6188 6189var ReactComponentTreeHook = { 6190 onSetChildren: function (id, nextChildIDs) { 6191 var item = getItem(id); 6192 !item ? true ? invariant(false, 'Item must have been set') : _prodInvariant('144') : void 0; 6193 item.childIDs = nextChildIDs; 6194 6195 for (var i = 0; i < nextChildIDs.length; i++) { 6196 var nextChildID = nextChildIDs[i]; 6197 var nextChild = getItem(nextChildID); 6198 !nextChild ? true ? invariant(false, 'Expected hook events to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('140') : void 0; 6199 !(nextChild.childIDs != null || typeof nextChild.element !== 'object' || nextChild.element == null) ? true ? invariant(false, 'Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().') : _prodInvariant('141') : void 0; 6200 !nextChild.isMounted ? true ? invariant(false, 'Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('71') : void 0; 6201 if (nextChild.parentID == null) { 6202 nextChild.parentID = id; 6203 // TODO: This shouldn't be necessary but mounting a new root during in 6204 // componentWillMount currently causes not-yet-mounted components to 6205 // be purged from our tree data so their parent id is missing. 6206 } 6207 !(nextChild.parentID === id) ? true ? invariant(false, 'Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).', nextChildID, nextChild.parentID, id) : _prodInvariant('142', nextChildID, nextChild.parentID, id) : void 0; 6208 } 6209 }, 6210 onBeforeMountComponent: function (id, element, parentID) { 6211 var item = { 6212 element: element, 6213 parentID: parentID, 6214 text: null, 6215 childIDs: [], 6216 isMounted: false, 6217 updateCount: 0 6218 }; 6219 setItem(id, item); 6220 }, 6221 onBeforeUpdateComponent: function (id, element) { 6222 var item = getItem(id); 6223 if (!item || !item.isMounted) { 6224 // We may end up here as a result of setState() in componentWillUnmount(). 6225 // In this case, ignore the element. 6226 return; 6227 } 6228 item.element = element; 6229 }, 6230 onMountComponent: function (id) { 6231 var item = getItem(id); 6232 !item ? true ? invariant(false, 'Item must have been set') : _prodInvariant('144') : void 0; 6233 item.isMounted = true;
6234 var isRoot = item.parentID === 0; 6235 if (isRoot) { 6236 addRoot(id); 6237 } 6238 }, 6239 onUpdateComponent: function (id) { 6240 var item = getItem(id); 6241 if (!item || !item.isMounted) { 6242 // We may end up here as a result of setState() in componentWillUnmount(). 6243 // In this case, ignore the element. 6244 return; 6245 } 6246 item.updateCount++; 6247 }, 6248 onUnmountComponent: function (id) { 6249 var item = getItem(id); 6250 if (item) { 6251 // We need to check if it exists. 6252 // `item` might not exist if it is inside an error boundary, and a sibling 6253 // error boundary child threw while mounting. Then this instance never 6254 // got a chance to mount, but it still gets an unmounting event during 6255 // the error boundary cleanup. 6256 item.isMounted = false; 6257 var isRoot = item.parentID === 0; 6258 if (isRoot) { 6259 removeRoot(id); 6260 } 6261 } 6262 unmountedIDs.push(id); 6263 }, 6264 purgeUnmountedComponents: function () { 6265 if (ReactComponentTreeHook._preventPurging) { 6266 // Should only be used for testing. 6267 return; 6268 } 6269 6270 for (var i = 0; i < unmountedIDs.length; i++) { 6271 var id = unmountedIDs[i]; 6272 purgeDeep(id); 6273 } 6274 unmountedIDs.length = 0; 6275 }, 6276 isMounted: function (id) { 6277 var item = getItem(id); 6278 return item ? item.isMounted : false; 6279 }, 6280 getCurrentStackAddendum: function (topElement) { 6281 var info = ''; 6282 if (topElement) { 6283 var name = getDisplayName(topElement); 6284 var owner = topElement._owner; 6285 info += describeComponentFrame(name, topElement._source, owner && owner.getName()); 6286 } 6287 6288 var currentOwner = ReactCurrentOwner.current; 6289 var id = currentOwner && currentOwner._debugID; 6290 6291 info += ReactComponentTreeHook.getStackAddendumByID(id); 6292 return info; 6293 }, 6294 getStackAddendumByID: function (id) { 6295 var info = ''; 6296 while (id) { 6297 info += describeID(id); 6298 id = ReactComponentTreeHook.getParentID(id); 6299 } 6300 return info; 6301 }, 6302 getChildIDs: function (id) { 6303 var item = getItem(id); 6304 return item ? item.childIDs : []; 6305 }, 6306 getDisplayName: function (id) { 6307 var element = ReactComponentTreeHook.getElement(id); 6308 if (!element) { 6309 return null; 6310 } 6311 return getDisplayName(element); 6312 }, 6313 getElement: function (id) { 6314 var item = getItem(id); 6315 return item ? item.element : null; 6316 }, 6317 getOwnerID: function (id) { 6318 var element = ReactComponentTreeHook.getElement(id); 6319 if (!element || !element._owner) { 6320 return null; 6321 } 6322 return element._owner._debugID; 6323 }, 6324 getParentID: function (id) { 6325 var item = getItem(id); 6326 return item ? item.parentID : null; 6327 }, 6328 getSource: function (id) { 6329 var item = getItem(id); 6330 var element = item ? item.element : null; 6331 var source = element != null ? element._source : null; 6332 return source; 6333 }, 6334 getText: function (id) { 6335 var element = ReactComponentTreeHook.getElement(id); 6336 if (typeof element === 'string') { 6337 return element; 6338 } else if (typeof element === 'number') { 6339 return '' + element; 6340 } else { 6341 return null; 6342 } 6343 }, 6344 getUpdateCount: function (id) { 6345 var item = getItem(id); 6346 return item ? item.updateCount : 0; 6347 }, 6348 6349 6350 getRootIDs: getRootIDs, 6351 getRegisteredIDs: getItemIDs, 6352 6353 pushNonStandardWarningStack: function (isCreatingElement, currentSource) { 6354 if (typeof console.reactStack !== 'function') { 6355 return; 6356 } 6357 6358 var stack = []; 6359 var currentOwner = ReactCurrentOwner.current; 6360 var id = currentOwner && currentOwner._debugID; 6361 6362 try { 6363 if (isCreatingElement) { 6364 stack.push({ 6365 name: id ? ReactComponentTreeHook.getDisplayName(id) : null, 6366 fileName: currentSource ? currentSource.fileName : null, 6367 lineNumber: currentSource ? currentSource.lineNumber : null 6368 }); 6369 } 6370 6371 while (id) { 6372 var element = ReactComponentTreeHook.getElement(id); 6373 var parentID = ReactComponentTreeHook.getParentID(id); 6374 var ownerID = ReactComponentTreeHook.getOwnerID(id); 6375 var ownerName = ownerID ? ReactComponentTreeHook.getDisplayName(ownerID) : null; 6376 var source = element && element._source; 6377 stack.push({ 6378 name: ownerName, 6379 fileName: source ? source.fileName : null, 6380 lineNumber: source ? source.lineNumber : null 6381 }); 6382 id = parentID; 6383 } 6384 } catch (err) { 6385 // Internal state is messed up. 6386 // Stop building the stack (it's just a nice to have). 6387 } 6388 6389 console.reactStack(stack); 6390 }, 6391 popNonStandardWarningStack: function () { 6392 if (typeof console.reactStackEnd !== 'function') { 6393 return; 6394 } 6395 console.reactStackEnd(); 6396 } 6397}; 6398 6399module.exports = ReactComponentTreeHook; 6400 6401/***/ }), 6402/* 24 */ 6403/***/ (function(module, exports, __webpack_require__) { 6404 6405"use strict"; 6406/** 6407 * Copyright (c) 2016-present, Facebook, Inc. 6408 * 6409 * This source code is licensed under the MIT license found in the 6410 * LICENSE file in the root directory of this source tree. 6411 * 6412 * 6413 */ 6414 6415 6416 6417// Trust the developer to only use ReactInstrumentation with a __DEV__ check 6418 6419var debugTool = null; 6420 6421if (true) { 6422 var ReactDebugTool = __webpack_require__(432); 6423 debugTool = ReactDebugTool; 6424} 6425 6426module.exports = { debugTool: debugTool }; 6427 6428/***/ }), 6429/* 25 */ 6430/***/ (function(module, exports, __webpack_require__) { 6431 6432var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! 6433 * jQuery JavaScript Library v3.3.1 6434 * https://jquery.com/ 6435 * 6436 * Includes Sizzle.js 6437 * https://sizzlejs.com/ 6438 * 6439 * Copyright JS Foundation and other contributors 6440 * Released under the MIT license 6441 * https://jquery.org/license 6442 * 6443 * Date: 2018-01-20T17:24Z 6444 */ 6445( function( global, factory ) { 6446 6447 "use strict"; 6448 6449 if ( typeof module === "object" && typeof module.exports === "object" ) { 6450 6451 // For CommonJS and CommonJS-like environments where a proper `window` 6452 // is present, execute the factory and get jQuery. 6453 // For environments that do not have a `window` with a `document` 6454 // (such as Node.js), expose a factory as module.exports. 6455 // This accentuates the need for the creation of a real `window`. 6456 // e.g. var jQuery = require("jquery")(window); 6457 // See ticket #14549 for more info. 6458 module.exports = global.document ? 6459 factory( global, true ) : 6460 function( w ) { 6461 if ( !w.document ) { 6462 throw new Error( "jQuery requires a window with a document" ); 6463 } 6464 return factory( w ); 6465 }; 6466 } else { 6467 factory( global ); 6468 } 6469 6470// Pass this if window is not defined yet 6471} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) { 6472 6473// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 6474// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode 6475// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), str
vendor: 33,472 bytes, lines 6475-7720
6475ict mode should be common 6476// enough that all such attempts are guarded in a try block. 6477"use strict"; 6478 6479var arr = []; 6480 6481var document = window.document; 6482 6483var getProto = Object.getPrototypeOf; 6484 6485var slice = arr.slice; 6486 6487var concat = arr.concat; 6488 6489var push = arr.push; 6490 6491var indexOf = arr.indexOf; 6492 6493var class2type = {}; 6494 6495var toString = class2type.toString; 6496 6497var hasOwn = class2type.hasOwnProperty; 6498 6499var fnToString = hasOwn.toString; 6500 6501var ObjectFunctionString = fnToString.call( Object ); 6502 6503var support = {}; 6504 6505var isFunction = function isFunction( obj ) { 6506 6507 // Support: Chrome <=57, Firefox <=52 6508 // In some browsers, typeof returns "function" for HTML <object> elements 6509 // (i.e., `typeof document.createElement( "object" ) === "function"`). 6510 // We don't want to classify *any* DOM node as a function. 6511 return typeof obj === "function" && typeof obj.nodeType !== "number"; 6512 }; 6513 6514 6515var isWindow = function isWindow( obj ) { 6516 return obj != null && obj === obj.window; 6517 }; 6518 6519 6520 6521 6522 var preservedScriptAttributes = { 6523 type: true, 6524 src: true, 6525 noModule: true 6526 }; 6527 6528 function DOMEval( code, doc, node ) { 6529 doc = doc || document; 6530 6531 var i, 6532 script = doc.createElement( "script" ); 6533 6534 script.text = code; 6535 if ( node ) { 6536 for ( i in preservedScriptAttributes ) { 6537 if ( node[ i ] ) { 6538 script[ i ] = node[ i ]; 6539 } 6540 } 6541 } 6542 doc.head.appendChild( script ).parentNode.removeChild( script ); 6543 } 6544 6545 6546function toType( obj ) { 6547 if ( obj == null ) { 6548 return obj + ""; 6549 } 6550 6551 // Support: Android <=2.3 only (functionish RegExp) 6552 return typeof obj === "object" || typeof obj === "function" ? 6553 class2type[ toString.call( obj ) ] || "object" : 6554 typeof obj; 6555} 6556/* global Symbol */ 6557// Defining this global in .eslintrc.json would create a danger of using the global 6558// unguarded in another place, it seems safer to define global only for this module 6559 6560 6561 6562var 6563 version = "3.3.1", 6564 6565 // Define a local copy of jQuery 6566 jQuery = function( selector, context ) { 6567 6568 // The jQuery object is actually just the init constructor 'enhanced' 6569 // Need init if jQuery is called (just allow error to be thrown if not included) 6570 return new jQuery.fn.init( selector, context ); 6571 }, 6572 6573 // Support: Android <=4.0 only 6574 // Make sure we trim BOM and NBSP 6575 rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g; 6576 6577jQuery.fn = jQuery.prototype = { 6578 6579 // The current version of jQuery being used 6580 jquery: version, 6581 6582 constructor: jQuery, 6583 6584 // The default length of a jQuery object is 0 6585 length: 0, 6586 6587 toArray: function() { 6588 return slice.call( this ); 6589 }, 6590 6591 // Get the Nth element in the matched element set OR 6592 // Get the whole matched element set as a clean array 6593 get: function( num ) { 6594 6595 // Return all the elements in a clean array 6596 if ( num == null ) { 6597 return slice.call( this ); 6598 } 6599 6600 // Return just the one element from the set 6601 return num < 0 ? this[ num + this.length ] : this[ num ]; 6602 }, 6603 6604 // Take an array of elements and push it onto the stack 6605 // (returning the new matched element set) 6606 pushStack: function( elems ) { 6607 6608 // Build a new jQuery matched element set 6609 var ret = jQuery.merge( this.constructor(), elems ); 6610 6611 // Add the old object onto the stack (as a reference) 6612 ret.prevObject = this; 6613 6614 // Return the newly-formed element set 6615 return ret; 6616 }, 6617 6618 // Execute a callback for every element in the matched set. 6619 each: function( callback ) { 6620 return jQuery.each( this, callback ); 6621 }, 6622 6623 map: function( callback ) { 6624 return this.pushStack( jQuery.map( this, function( elem, i ) { 6625 return callback.call( elem, i, elem ); 6626 } ) ); 6627 }, 6628 6629 slice: function() { 6630 return this.pushStack( slice.apply( this, arguments ) ); 6631 }, 6632 6633 first: function() { 6634 return this.eq( 0 ); 6635 }, 6636 6637 last: function() { 6638 return this.eq( -1 ); 6639 }, 6640 6641 eq: function( i ) { 6642 var len = this.length, 6643 j = +i + ( i < 0 ? len : 0 ); 6644 return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] ); 6645 }, 6646 6647 end: function() { 6648 return this.prevObject || this.constructor(); 6649 }, 6650 6651 // For internal use only. 6652 // Behaves like an Array's method, not like a jQuery method. 6653 push: push, 6654 sort: arr.sort, 6655 splice: arr.splice 6656}; 6657 6658jQuery.extend = jQuery.fn.extend = function() { 6659 var options, name, src, copy, copyIsArray, clone, 6660 target = arguments[ 0 ] || {}, 6661 i = 1, 6662 length = arguments.length, 6663 deep = false; 6664 6665 // Handle a deep copy situation 6666 if ( typeof target === "boolean" ) { 6667 deep = target; 6668 6669 // Skip the boolean and the target 6670 target = arguments[ i ] || {}; 6671 i++; 6672 } 6673 6674 // Handle case when target is a string or something (possible in deep copy) 6675 if ( typeof target !== "object" && !isFunction( target ) ) { 6676 target = {}; 6677 } 6678 6679 // Extend jQuery itself if only one argument is passed 6680 if ( i === length ) { 6681 target = this; 6682 i--; 6683 } 6684 6685 for ( ; i < length; i++ ) { 6686 6687 // Only deal with non-null/undefined values 6688 if ( ( options = arguments[ i ] ) != null ) { 6689 6690 // Extend the base object 6691 for ( name in options ) { 6692 src = target[ name ]; 6693 copy = options[ name ]; 6694 6695 // Prevent never-ending loop 6696 if ( target === copy ) { 6697 continue; 6698 } 6699 6700 // Recurse if we're merging plain objects or arrays 6701 if ( deep && copy && ( jQuery.isPlainObject( copy ) || 6702 ( copyIsArray = Array.isArray( copy ) ) ) ) { 6703 6704 if ( copyIsArray ) { 6705 copyIsArray = false; 6706 clone = src && Array.isArray( src ) ? src : []; 6707 6708 } else { 6709 clone = src && jQuery.isPlainObject( src ) ? src : {}; 6710 } 6711 6712 // Never move original objects, clone them 6713 target[ name ] = jQuery.extend( deep, clone, copy ); 6714 6715 // Don't bring in undefined values 6716 } else if ( copy !== undefined ) { 6717 target[ name ] = copy; 6718 } 6719 } 6720 } 6721 } 6722 6723 // Return the modified object 6724 return target; 6725}; 6726 6727jQuery.extend( { 6728 6729 // Unique for each copy of jQuery on the page 6730 expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), 6731 6732 // Assume jQuery is ready without the ready module 6733 isReady: true, 6734 6735 error: function( msg ) { 6736 throw new Error( msg ); 6737 }, 6738 6739 noop: function() {}, 6740 6741 isPlainObject: function( obj ) { 6742 var proto, Ctor; 6743 6744 // Detect obvious negatives 6745 // Use toString instead of jQuery.type to catch host objects 6746 if ( !obj || toString.call( obj ) !== "[object Object]" ) { 6747 return false; 6748 } 6749 6750 proto = getProto( obj ); 6751 6752 // Objects with no prototype (e.g., `Object.create( null )`) are plain 6753 if ( !proto ) { 6754 return true; 6755 } 6756 6757 // Objects with prototype are plain iff they were constructed by a global Object function 6758 Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor; 6759 return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString; 6760 }, 6761 6762 isEmptyObject: function( obj ) { 6763 6764 /* eslint-disable no-unused-vars */ 6765 // See https://github.com/eslint/eslint/issues/6125 6766 var name; 6767 6768 for ( name in obj ) { 6769 return false; 6770 } 6771 return true; 6772 }, 6773 6774 // Evaluates a script in a global context 6775 globalEval: function( code ) { 6776 DOMEval( code ); 6777 }, 6778 6779 each: function( obj, callback ) { 6780 var length, i = 0; 6781 6782 if ( isArrayLike( obj ) ) { 6783 length = obj.length; 6784 for ( ; i < length; i++ ) { 6785 if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { 6786 break; 6787 } 6788 } 6789 } else { 6790 for ( i in obj ) { 6791 if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { 6792 break; 6793 } 6794 } 6795 } 6796 6797 return obj; 6798 }, 6799 6800 // Support: Android <=4.0 only 6801 trim: function( text ) { 6802 return text == null ? 6803 "" : 6804 ( text + "" ).replace( rtrim, "" ); 6805 }, 6806 6807 // results is for internal usage only 6808 makeArray: function( arr, results ) { 6809 var ret = results || []; 6810 6811 if ( arr != null ) { 6812 if ( isArrayLike( Object( arr ) ) ) { 6813 jQuery.merge( ret, 6814 typeof arr === "string" ? 6815 [ arr ] : arr 6816 ); 6817 } else { 6818 push.call( ret, arr ); 6819 } 6820 } 6821 6822 return ret; 6823 }, 6824 6825 inArray: function( elem, arr, i ) { 6826 return arr == null ? -1 : indexOf.call( arr, elem, i ); 6827 }, 6828 6829 // Support: Android <=4.0 only, PhantomJS 1 only 6830 // push.apply(_, arraylike) throws on ancient WebKit 6831 merge: function( first, second ) { 6832 var len = +second.length, 6833 j = 0, 6834 i = first.length; 6835 6836 for ( ; j < len; j++ ) { 6837 first[ i++ ] = second[ j ]; 6838 } 6839 6840 first.length = i; 6841 6842 return first; 6843 }, 6844 6845 grep: function( elems, callback, invert ) { 6846 var callbackInverse, 6847 matches = [], 6848 i = 0, 6849 length = elems.length, 6850 callbackExpect = !invert; 6851 6852 // Go through the array, only saving the items 6853 // that pass the validator function 6854 for ( ; i < length; i++ ) { 6855 callbackInverse = !callback( elems[ i ], i ); 6856 if ( callbackInverse !== callbackExpect ) { 6857 matches.push( elems[ i ] ); 6858 } 6859 } 6860 6861 return matches; 6862 }, 6863 6864 // arg is for internal usage only 6865 map: function( elems, callback, arg ) { 6866 var length, value, 6867 i = 0, 6868 ret = []; 6869 6870 // Go through the array, translating each of the items to their new values 6871 if ( isArrayLike( elems ) ) { 6872 length = elems.length; 6873 for ( ; i < length; i++ ) { 6874 value = callback( elems[ i ], i, arg ); 6875 6876 if ( value != null ) { 6877 ret.push( value ); 6878 } 6879 } 6880 6881 // Go through every key on the object, 6882 } else { 6883 for ( i in elems ) { 6884 value = callback( elems[ i ], i, arg ); 6885 6886 if ( value != null ) { 6887 ret.push( value ); 6888 } 6889 } 6890 } 6891 6892 // Flatten any nested arrays 6893 return concat.apply( [], ret ); 6894 }, 6895 6896 // A global GUID counter for objects 6897 guid: 1, 6898 6899 // jQuery.support is not used in Core but other projects attach their 6900 // properties to it so it needs to exist. 6901 support: support 6902} ); 6903 6904if ( typeof Symbol === "function" ) { 6905 jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; 6906} 6907 6908// Populate the class2type map 6909jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), 6910function( i, name ) { 6911 class2type[ "[object " + name + "]" ] = name.toLowerCase(); 6912} ); 6913 6914function isArrayLike( obj ) { 6915 6916 // Support: real iOS 8.2 only (not reproducible in simulator) 6917 // `in` check used to prevent JIT error (gh-2145) 6918 // hasOwn isn't used here due to false negatives 6919 // regarding Nodelist length in IE 6920 var length = !!obj && "length" in obj && obj.length, 6921 type = toType( obj ); 6922 6923 if ( isFunction( obj ) || isWindow( obj ) ) { 6924 return false; 6925 } 6926 6927 return type === "array" || length === 0 || 6928 typeof length === "number" && length > 0 && ( length - 1 ) in obj; 6929} 6930var Sizzle = 6931/*! 6932 * Sizzle CSS Selector Engine v2.3.3 6933 * https://sizzlejs.com/ 6934 * 6935 * Copyright jQuery Foundation and other contributors 6936 * Released under the MIT license 6937 * http://jquery.org/license 6938 * 6939 * Date: 2016-08-08 6940 */ 6941(function( window ) { 6942 6943var i, 6944 support, 6945 Expr, 6946 getText, 6947 isXML, 6948 tokenize, 6949 compile, 6950 select, 6951 outermostContext, 6952 sortInput, 6953 hasDuplicate, 6954 6955 // Local document vars 6956 setDocument, 6957 document, 6958 docElem, 6959 documentIsHTML, 6960 rbuggyQSA, 6961 rbuggyMatches, 6962 matches, 6963 contains, 6964 6965 // Instance-specific data 6966 expando = "sizzle" + 1 * new Date(), 6967 preferredDoc = window.document, 6968 dirruns = 0, 6969 done = 0, 6970 classCache = createCache(), 6971 tokenCache = createCache(), 6972 compilerCache = createCache(), 6973 sortOrder = function( a, b ) { 6974 if ( a === b ) { 6975 hasDuplicate = true; 6976 } 6977 return 0; 6978 }, 6979 6980 // Instance methods 6981 hasOwn = ({}).hasOwnProperty, 6982 arr = [], 6983 pop = arr.pop, 6984 push_native = arr.push, 6985 push = arr.push, 6986 slice = arr.slice, 6987 // Use a stripped-down indexOf as it's faster than native 6988 // https://jsperf.com/thor-indexof-vs-for/5 6989 indexOf = function( list, elem ) { 6990 var i = 0, 6991 len = list.length; 6992 for ( ; i < len; i++ ) { 6993 if ( list[i] === elem ) { 6994 return i; 6995 } 6996 } 6997 return -1; 6998 }, 6999 7000 booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", 7001 7002 // Regular expressions 7003 7004 // http://www.w3.org/TR/css3-selectors/#whitespace 7005 whitespace = "[\\x20\\t\\r\\n\\f]", 7006 7007 // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier 7008 identifier = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+", 7009 7010 // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors 7011 attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + 7012 // Operator (capture 2) 7013 "*([*^$|!~]?=)" + whitespace + 7014 // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]" 7015 "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + 7016 "*\\]", 7017 7018 pseudos = ":(" + identifier + ")(?:\\((" + 7019 // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: 7020 // 1. quoted (capture 3; capture 4 or capture 5) 7021 "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + 7022 // 2. simple (capture 6) 7023 "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + 7024 // 3. anything else (capture 2) 7025 ".*" + 7026 ")\\)|)", 7027 7028 // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter 7029 rwhitespace = new RegExp( whitespace + "+", "g" ), 7030 rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), 7031 7032 rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), 7033 rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), 7034 7035 rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ), 7036 7037 rpseudo = new RegExp( pseudos ), 7038 ridentifier = new RegExp( "^" + identifier + "$" ), 7039 7040 matchExpr = { 7041 "ID": new RegExp( "^#(" + identifier + ")" ), 7042 "CLASS": new RegExp( "^\\.(" + identifier + ")" ), 7043 "TAG": new RegExp( "^(" + identifier + "|[*])" ), 7044 "ATTR": new RegExp( "^" + attributes ), 7045 "PSEUDO": new RegExp( "^" + pseudos ), 7046 "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + 7047 "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + 7048 "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), 7049 "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), 7050 // For use in libraries implementing .is() 7051 // We use this for POS matching in `select` 7052 "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + 7053 whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) 7054 }, 7055 7056 rinputs = /^(?:input|select|textarea|button)$/i, 7057 rheader = /^h\d$/i, 7058 7059 rnative = /^[^{]+\{\s*\[native \w/, 7060 7061 // Easily-parseable/retrievable ID or TAG or CLASS selectors 7062 rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, 7063 7064 rsibling = /[+~]/, 7065 7066 // CSS escapes 7067 // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters 7068 runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), 7069 funescape = function( _, escaped, escapedWhitespace ) { 7070 var high = "0x" + escaped - 0x10000; 7071 // NaN means non-codepoint 7072 // Support: Firefox<24 7073 // Workaround erroneous numeric interpretation of +"0x" 7074 return high !== high || escapedWhitespace ? 7075 escaped : 7076 high < 0 ? 7077 // BMP codepoint 7078 String.fromCharCode( high + 0x10000 ) : 7079 // Supplemental Plane codepoint (surrogate pair) 7080 String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); 7081 }, 7082 7083 // CSS string/identifier serialization 7084 // https://drafts.csswg.org/cssom/#common-serializing-idioms 7085 rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, 7086 fcssescape = function( ch, asCodePoint ) { 7087 if ( asCodePoint ) { 7088 7089 // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER 7090 if ( ch === "\0" ) { 7091 return "\uFFFD"; 7092 } 7093 7094 // Control characters and (dependent upon position) numbers get escaped as code points 7095 return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; 7096 } 7097 7098 // Other potentially-special ASCII characters get backslash-escaped 7099 return "\\" + ch; 7100 }, 7101 7102 // Used for iframes 7103 // See setDocument() 7104 // Removing the function wrapper causes a "Permission Denied" 7105 // error in IE 7106 unloadHandler = function() { 7107 setDocument(); 7108 }, 7109 7110 disabledAncestor = addCombinator( 7111 function( elem ) { 7112 return elem.disabled === true && ("form" in elem || "label" in elem); 7113 }, 7114 { dir: "parentNode", next: "legend" } 7115 ); 7116 7117// Optimize for push.apply( _, NodeList ) 7118try { 7119 push.apply( 7120 (arr = slice.call( preferredDoc.childNodes )), 7121 preferredDoc.childNodes 7122 ); 7123 // Support: Android<4.0 7124 // Detect silently failing push.apply 7125 arr[ preferredDoc.childNodes.length ].nodeType; 7126} catch ( e ) { 7127 push = { apply: arr.length ? 7128 7129 // Leverage slice if possible 7130 function( target, els ) { 7131 push_native.apply( target, slice.call(els) ); 7132 } : 7133 7134 // Support: IE<9 7135 // Otherwise append directly 7136 function( target, els ) { 7137 var j = target.length, 7138 i = 0; 7139 // Can't trust NodeList.length 7140 while ( (target[j++] = els[i++]) ) {} 7141 target.length = j - 1; 7142 } 7143 }; 7144} 7145 7146function Sizzle( selector, context, results, seed ) { 7147 var m, i, elem, nid, match, groups, newSelector, 7148 newContext = context && context.ownerDocument, 7149 7150 // nodeType defaults to 9, since context defaults to document 7151 nodeType = context ? context.nodeType : 9; 7152 7153 results = results || []; 7154 7155 // Return early from calls with invalid selector or context 7156 if ( typeof selector !== "string" || !selector || 7157 nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { 7158 7159 return results; 7160 } 7161 7162 // Try to shortcut find operations (as opposed to filters) in HTML documents 7163 if ( !seed ) { 7164 7165 if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { 7166 setDocument( context ); 7167 } 7168 context = context || document; 7169 7170 if ( documentIsHTML ) { 7171 7172 // If the selector is sufficiently simple, try using a "get*By*" DOM method 7173 // (excepting DocumentFragment context, where the methods don't exist) 7174 if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) { 7175 7176 // ID selector 7177 if ( (m = match[1]) ) { 7178 7179 // Document context 7180 if ( nodeType === 9 ) { 7181 if ( (elem = context.getElementById( m )) ) { 7182 7183 // Support: IE, Opera, Webkit 7184 // TODO: identify versions 7185 // getElementById can match elements by name instead of ID 7186 if ( elem.id === m ) { 7187 results.push( elem ); 7188 return results; 7189 } 7190 } else { 7191 return results; 7192 } 7193 7194 // Element context 7195 } else { 7196 7197 // Support: IE, Opera, Webkit 7198 // TODO: identify versions 7199 // getElementById can match elements by name instead of ID 7200 if ( newContext && (elem = newContext.getElementById( m )) && 7201 contains( context, elem ) && 7202 elem.id === m ) { 7203 7204 results.push( elem ); 7205 return results; 7206 } 7207 } 7208 7209 // Type selector 7210 } else if ( match[2] ) { 7211 push.apply( results, context.getElementsByTagName( selector ) ); 7212 return results; 7213 7214 // Class selector 7215 } else if ( (m = match[3]) && support.getElementsByClassName && 7216 context.getElementsByClassName ) { 7217 7218 push.apply( results, context.getElementsByClassName( m ) ); 7219 return results; 7220 } 7221 } 7222 7223 // Take advantage of querySelectorAll 7224 if ( support.qsa && 7225 !compilerCache[ selector + " " ] && 7226 (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { 7227 7228 if ( nodeType !== 1 ) { 7229 newContext = context; 7230 newSelector = selector; 7231 7232 // qSA looks outside Element context, which is not what we want 7233 // Thanks to Andrew Dupont for this workaround technique 7234 // Support: IE <=8 7235 // Exclude object elements 7236 } else if ( context.nodeName.toLowerCase() !== "object" ) { 7237 7238 // Capture the context ID, setting it first if necessary 7239 if ( (nid = context.getAttribute( "id" )) ) { 7240 nid = nid.replace( rcssescape, fcssescape ); 7241 } else { 7242 context.setAttribute( "id", (nid = expando) ); 7243 } 7244 7245 // Prefix every selector in the list 7246 groups = tokenize( selector ); 7247 i = groups.length; 7248 while ( i-- ) { 7249 groups[i] = "#" + nid + " " + toSelector( groups[i] ); 7250 } 7251 newSelector = groups.join( "," ); 7252 7253 // Expand context for sibling selectors 7254 newContext = rsibling.test( selector ) && testContext( context.parentNode ) || 7255 context; 7256 } 7257 7258 if ( newSelector ) { 7259 try { 7260 push.apply( results, 7261 newContext.querySelectorAll( newSelector ) 7262 ); 7263 return results; 7264 } catch ( qsaError ) { 7265 } finally { 7266 if ( nid === expando ) { 7267 context.removeAttribute( "id" ); 7268 } 7269 } 7270 } 7271 } 7272 } 7273 } 7274 7275 // All others 7276 return select( selector.replace( rtrim, "$1" ), context, results, seed ); 7277} 7278 7279/** 7280 * Create key-value caches of limited size 7281 * @returns {function(string, object)} Returns the Object data after storing it on itself with 7282 * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) 7283 * deleting the oldest entry 7284 */ 7285function createCache() { 7286 var keys = []; 7287 7288 function cache( key, value ) { 7289 // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) 7290 if ( keys.push( key + " " ) > Expr.cacheLength ) { 7291 // Only keep the most recent entries 7292 delete cache[ keys.shift() ]; 7293 } 7294 return (cache[ key + " " ] = value); 7295 } 7296 return cache; 7297} 7298 7299/** 7300 * Mark a function for special use by Sizzle 7301 * @param {Function} fn The function to mark 7302 */ 7303function markFunction( fn ) { 7304 fn[ expando ] = true; 7305 return fn; 7306} 7307 7308/** 7309 * Support testing using an element 7310 * @param {Function} fn Passed the created element and returns a boolean result 7311 */ 7312function assert( fn ) { 7313 var el = document.createElement("fieldset"); 7314 7315 try { 7316 return !!fn( el ); 7317 } catch (e) { 7318 return false; 7319 } finally { 7320 // Remove from its parent by default 7321 if ( el.parentNode ) { 7322 el.parentNode.removeChild( el ); 7323 } 7324 // release memory in IE 7325 el = null; 7326 } 7327} 7328 7329/** 7330 * Adds the same handler for all of the specified attrs 7331 * @param {String} attrs Pipe-separated list of attributes 7332 * @param {Function} handler The method that will be applied 7333 */ 7334function addHandle( attrs, handler ) { 7335 var arr = attrs.split("|"), 7336 i = arr.length; 7337 7338 while ( i-- ) { 7339 Expr.attrHandle[ arr[i] ] = handler; 7340 } 7341} 7342 7343/** 7344 * Checks document order of two siblings 7345 * @param {Element} a 7346 * @param {Element} b 7347 * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b 7348 */ 7349function siblingCheck( a, b ) { 7350 var cur = b && a, 7351 diff = cur && a.nodeType === 1 && b.nodeType === 1 && 7352 a.sourceIndex - b.sourceIndex; 7353 7354 // Use IE sourceIndex if available on both nodes 7355 if ( diff ) { 7356 return diff; 7357 } 7358 7359 // Check if b follows a 7360 if ( cur ) { 7361 while ( (cur = cur.nextSibling) ) { 7362 if ( cur === b ) { 7363 return -1; 7364 } 7365 } 7366 } 7367 7368 return a ? 1 : -1; 7369} 7370 7371/** 7372 * Returns a function to use in pseudos for input types 7373 * @param {String} type 7374 */ 7375function createInputPseudo( type ) { 7376 return function( elem ) { 7377 var name = elem.nodeName.toLowerCase(); 7378 return name === "input" && elem.type === type; 7379 }; 7380} 7381 7382/** 7383 * Returns a function to use in pseudos for buttons 7384 * @param {String} type 7385 */ 7386function createButtonPseudo( type ) { 7387 return function( elem ) { 7388 var name = elem.nodeName.toLowerCase(); 7389 return (name === "input" || name === "button") && elem.type === type; 7390 }; 7391} 7392 7393/** 7394 * Returns a function to use in pseudos for :enabled/:disabled 7395 * @param {Boolean} disabled true for :disabled; false for :enabled 7396 */ 7397function createDisabledPseudo( disabled ) { 7398 7399 // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable 7400 return function( elem ) { 7401 7402 // Only certain elements can match :enabled or :disabled 7403 // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled 7404 // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled 7405 if ( "form" in elem ) { 7406 7407 // Check for inherited disabledness on relevant non-disabled elements: 7408 // * listed form-associated elements in a disabled fieldset 7409 // https://html.spec.whatwg.org/multipage/forms.html#category-listed 7410 // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled 7411 // * option elements in a disabled optgroup 7412 // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled 7413 // All such elements have a "form" property. 7414 if ( elem.parentNode && elem.disabled === false ) { 7415 7416 // Option elements defer to a parent optgroup if present 7417 if ( "label" in elem ) { 7418 if ( "label" in elem.parentNode ) { 7419 return elem.parentNode.disabled === disabled; 7420 } else { 7421 return elem.disabled === disabled; 7422 } 7423 } 7424 7425 // Support: IE 6 - 11 7426 // Use the isDisabled shortcut property to check for disabled fieldset ancestors 7427 return elem.isDisabled === disabled || 7428 7429 // Where there is no isDisabled, check manually 7430 /* jshint -W018 */ 7431 elem.isDisabled !== !disabled && 7432 disabledAncestor( elem ) === disabled; 7433 } 7434 7435 return elem.disabled === disabled; 7436 7437 // Try to winnow out elements that can't be disabled before trusting the disabled property. 7438 // Some victims get caught in our net (label, legend, menu, track), but it shouldn't 7439 // even exist on them, let alone have a boolean value. 7440 } else if ( "label" in elem ) { 7441 return elem.disabled === disabled; 7442 } 7443 7444 // Remaining elements are neither :enabled nor :disabled 7445 return false; 7446 }; 7447} 7448 7449/** 7450 * Returns a function to use in pseudos for positionals 7451 * @param {Function} fn 7452 */ 7453function createPositionalPseudo( fn ) { 7454 return markFunction(function( argument ) { 7455 argument = +argument; 7456 return markFunction(function( seed, matches ) { 7457 var j, 7458 matchIndexes = fn( [], seed.length, argument ), 7459 i = matchIndexes.length; 7460 7461 // Match elements found at the specified indexes 7462 while ( i-- ) { 7463 if ( seed[ (j = matchIndexes[i]) ] ) { 7464 seed[j] = !(matches[j] = seed[j]); 7465 } 7466 } 7467 }); 7468 }); 7469} 7470 7471/** 7472 * Checks a node for validity as a Sizzle context 7473 * @param {Element|Object=} context 7474 * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value 7475 */ 7476function testContext( context ) { 7477 return context && typeof context.getElementsByTagName !== "undefined" && context; 7478} 7479 7480// Expose support vars for convenience 7481support = Sizzle.support = {}; 7482 7483/** 7484 * Detects XML nodes 7485 * @param {Element|Object} elem An element or a document 7486 * @returns {Boolean} True iff elem is a non-HTML XML node 7487 */ 7488isXML = Sizzle.isXML = function( elem ) { 7489 // documentElement is verified for cases where it doesn't yet exist 7490 // (such as loading iframes in IE - #4833) 7491 var documentElement = elem && (elem.ownerDocument || elem).documentElement; 7492 return documentElement ? documentElement.nodeName !== "HTML" : false; 7493}; 7494 7495/** 7496 * Sets document-related variables once based on the current document 7497 * @param {Element|Object} [doc] An element or document object to use to set the document 7498 * @returns {Object} Returns the current document 7499 */ 7500setDocument = Sizzle.setDocument = function( node ) { 7501 var hasCompare, subWindow, 7502 doc = node ? node.ownerDocument || node : preferredDoc; 7503 7504 // Return early if doc is invalid or already selected 7505 if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { 7506 return document; 7507 } 7508 7509 // Update global variables 7510 document = doc; 7511 docElem = document.documentElement; 7512 documentIsHTML = !isXML( document ); 7513 7514 // Support: IE 9-11, Edge 7515 // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) 7516 if ( preferredDoc !== document && 7517 (subWindow = document.defaultView) && subWindow.top !== subWindow ) { 7518 7519 // Support: IE 11, Edge 7520 if ( subWindow.addEventListener ) { 7521 subWindow.addEventListener( "unload", unloadHandler, false ); 7522 7523 // Support: IE 9 - 10 only 7524 } else if ( subWindow.attachEvent ) { 7525 subWindow.attachEvent( "onunload", unloadHandler ); 7526 } 7527 } 7528 7529 /* Attributes 7530 ---------------------------------------------------------------------- */ 7531 7532 // Support: IE<8 7533 // Verify that getAttribute really returns attributes and not properties 7534 // (excepting IE8 booleans) 7535 support.attributes = assert(function( el ) { 7536 el.className = "i"; 7537 return !el.getAttribute("className"); 7538 }); 7539 7540 /* getElement(s)By* 7541 ---------------------------------------------------------------------- */ 7542 7543 // Check if getElementsByTagName("*") returns only elements 7544 support.getElementsByTagName = assert(function( el ) { 7545 el.appendChild( document.createComment("") ); 7546 return !el.getElementsByTagName("*").length; 7547 }); 7548 7549 // Support: IE<9 7550 support.getElementsByClassName = rnative.test( document.getElementsByClassName ); 7551 7552 // Support: IE<10 7553 // Check if getElementById returns elements by name 7554 // The broken getElementById methods don't pick up programmatically-set names, 7555 // so use a roundabout getElementsByName test 7556 support.getById = assert(function( el ) { 7557 docElem.appendChild( el ).id = expando; 7558 return !document.getElementsByName || !document.getElementsByName( expando ).length; 7559 }); 7560 7561 // ID filter and find 7562 if ( support.getById ) { 7563 Expr.filter["ID"] = function( id ) { 7564 var attrId = id.replace( runescape, funescape ); 7565 return function( elem ) { 7566 return elem.getAttribute("id") === attrId; 7567 }; 7568 }; 7569 Expr.find["ID"] = function( id, context ) { 7570 if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { 7571 var elem = context.getElementById( id ); 7572 return elem ? [ elem ] : []; 7573 } 7574 }; 7575 } else { 7576 Expr.filter["ID"] = function( id ) { 7577 var attrId = id.replace( runescape, funescape ); 7578 return function( elem ) { 7579 var node = typeof elem.getAttributeNode !== "undefined" && 7580 elem.getAttributeNode("id"); 7581 return node && node.value === attrId; 7582 }; 7583 }; 7584 7585 // Support: IE 6 - 7 only 7586 // getElementById is not reliable as a find shortcut 7587 Expr.find["ID"] = function( id, context ) { 7588 if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { 7589 var node, i, elems, 7590 elem = context.getElementById( id ); 7591 7592 if ( elem ) { 7593 7594 // Verify the id attribute 7595 node = elem.getAttributeNode("id"); 7596 if ( node && node.value === id ) { 7597 return [ elem ]; 7598 } 7599 7600 // Fall back on getElementsByName 7601 elems = context.getElementsByName( id ); 7602 i = 0; 7603 while ( (elem = elems[i++]) ) { 7604 node = elem.getAttributeNode("id"); 7605 if ( node && node.value === id ) { 7606 return [ elem ]; 7607 } 7608 } 7609 } 7610 7611 return []; 7612 } 7613 }; 7614 } 7615 7616 // Tag 7617 Expr.find["TAG"] = support.getElementsByTagName ? 7618 function( tag, context ) { 7619 if ( typeof context.getElementsByTagName !== "undefined" ) { 7620 return context.getElementsByTagName( tag ); 7621 7622 // DocumentFragment nodes don't have gEBTN 7623 } else if ( support.qsa ) { 7624 return context.querySelectorAll( tag ); 7625 } 7626 } : 7627 7628 function( tag, context ) { 7629 var elem, 7630 tmp = [], 7631 i = 0, 7632 // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too 7633 results = context.getElementsByTagName( tag ); 7634 7635 // Filter out possible comments 7636 if ( tag === "*" ) { 7637 while ( (elem = results[i++]) ) { 7638 if ( elem.nodeType === 1 ) { 7639 tmp.push( elem ); 7640 } 7641 } 7642 7643 return tmp; 7644 } 7645 return results; 7646 }; 7647 7648 // Class 7649 Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { 7650 if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) { 7651 return context.getElementsByClassName( className ); 7652 } 7653 }; 7654 7655 /* QSA/matchesSelector 7656 ---------------------------------------------------------------------- */ 7657 7658 // QSA and matchesSelector support 7659 7660 // matchesSelector(:active) reports false when true (IE9/Opera 11.5) 7661 rbuggyMatches = []; 7662 7663 // qSa(:focus) reports false when true (Chrome 21) 7664 // We allow this because of a bug in IE8/9 that throws an error 7665 // whenever `document.activeElement` is accessed on an iframe 7666 // So, we allow :focus to pass through QSA all the time to avoid the IE error 7667 // See https://bugs.jquery.com/ticket/13378 7668 rbuggyQSA = []; 7669 7670 if ( (support.qsa = rnative.test( document.querySelectorAll )) ) { 7671 // Build QSA regex 7672 // Regex strategy adopted from Diego Perini 7673 assert(function( el ) { 7674 // Select is set to empty string on purpose 7675 // This is to test IE's treatment of not explicitly 7676 // setting a boolean content attribute, 7677 // since its presence should be enough 7678 // https://bugs.jquery.com/ticket/12359 7679 docElem.appendChild( el ).innerHTML = "<a id='" + expando + "'></a>" + 7680 "<select id='" + expando + "-\r\\' msallowcapture=''>" + 7681 "<option selected=''></option></select>"; 7682 7683 // Support: IE8, Opera 11-12.16 7684 // Nothing should be selected when empty strings follow ^= or $= or *= 7685 // The test attribute must be unknown in Opera but "safe" for WinRT 7686 // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section 7687 if ( el.querySelectorAll("[msallowcapture^='']").length ) { 7688 rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); 7689 } 7690 7691 // Support: IE8 7692 // Boolean attributes and "value" are not treated correctly 7693 if ( !el.querySelectorAll("[selected]").length ) { 7694 rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); 7695 } 7696 7697 // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+ 7698 if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) { 7699 rbuggyQSA.push("~="); 7700 } 7701 7702 // Webkit/Opera - :checked should return selected option elements 7703 // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked 7704 // IE8 throws error here and will not see later tests 7705 if ( !el.querySelectorAll(":checked").length ) { 7706 rbuggyQSA.push(":checked"); 7707 } 7708 7709 // Support: Safari 8+, iOS 8+ 7710 // https://bugs.webkit.org/show_bug.cgi?id=136851 7711 // In-page `selector#id sibling-combinator selector` fails 7712 if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) { 7713 rbuggyQSA.push(".#.+[+~]"); 7714 } 7715 }); 7716 7717 assert(function( el ) { 7718 el.innerHTML = "<a href='' disabled='disabled'></a>" + 7719 "<select disabled='disabled'><option/></select>"; 7720
vendor: 6,849 bytes, lines 7721-7968
7721 // Support: Windows 8 Native Apps 7722 // The type and name attributes are restricted during .innerHTML assignment 7723 var input = document.createElement("input"); 7724 input.setAttribute( "type", "hidden" ); 7725 el.appendChild( input ).setAttribute( "name", "D" ); 7726 7727 // Support: IE8 7728 // Enforce case-sensitivity of name attribute 7729 if ( el.querySelectorAll("[name=d]").length ) { 7730 rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); 7731 } 7732 7733 // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) 7734 // IE8 throws error here and will not see later tests 7735 if ( el.querySelectorAll(":enabled").length !== 2 ) { 7736 rbuggyQSA.push( ":enabled", ":disabled" ); 7737 } 7738 7739 // Support: IE9-11+ 7740 // IE's :disabled selector does not pick up the children of disabled fieldsets 7741 docElem.appendChild( el ).disabled = true; 7742 if ( el.querySelectorAll(":disabled").length !== 2 ) { 7743 rbuggyQSA.push( ":enabled", ":disabled" ); 7744 } 7745 7746 // Opera 10-11 does not throw on post-comma invalid pseudos 7747 el.querySelectorAll("*,:x"); 7748 rbuggyQSA.push(",.*:"); 7749 }); 7750 } 7751 7752 if ( (support.matchesSelector = rnative.test( (matches = docElem.matches || 7753 docElem.webkitMatchesSelector || 7754 docElem.mozMatchesSelector || 7755 docElem.oMatchesSelector || 7756 docElem.msMatchesSelector) )) ) { 7757 7758 assert(function( el ) { 7759 // Check to see if it's possible to do matchesSelector 7760 // on a disconnected node (IE 9) 7761 support.disconnectedMatch = matches.call( el, "*" ); 7762 7763 // This should fail with an exception 7764 // Gecko does not error, returns false instead 7765 matches.call( el, "[s!='']:x" ); 7766 rbuggyMatches.push( "!=", pseudos ); 7767 }); 7768 } 7769 7770 rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); 7771 rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); 7772 7773 /* Contains 7774 ---------------------------------------------------------------------- */ 7775 hasCompare = rnative.test( docElem.compareDocumentPosition ); 7776 7777 // Element contains another 7778 // Purposefully self-exclusive 7779 // As in, an element does not contain itself 7780 contains = hasCompare || rnative.test( docElem.contains ) ? 7781 function( a, b ) { 7782 var adown = a.nodeType === 9 ? a.documentElement : a, 7783 bup = b && b.parentNode; 7784 return a === bup || !!( bup && bup.nodeType === 1 && ( 7785 adown.contains ? 7786 adown.contains( bup ) : 7787 a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 7788 )); 7789 } : 7790 function( a, b ) { 7791 if ( b ) { 7792 while ( (b = b.parentNode) ) { 7793 if ( b === a ) { 7794 return true; 7795 } 7796 } 7797 } 7798 return false; 7799 }; 7800 7801 /* Sorting 7802 ---------------------------------------------------------------------- */ 7803 7804 // Document order sorting 7805 sortOrder = hasCompare ? 7806 function( a, b ) { 7807 7808 // Flag for duplicate removal 7809 if ( a === b ) { 7810 hasDuplicate = true; 7811 return 0; 7812 } 7813 7814 // Sort on method existence if only one input has compareDocumentPosition 7815 var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; 7816 if ( compare ) { 7817 return compare; 7818 } 7819 7820 // Calculate position if both inputs belong to the same document 7821 compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? 7822 a.compareDocumentPosition( b ) : 7823 7824 // Otherwise we know they are disconnected 7825 1; 7826 7827 // Disconnected nodes 7828 if ( compare & 1 || 7829 (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { 7830 7831 // Choose the first element that is related to our preferred document 7832 if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { 7833 return -1; 7834 } 7835 if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { 7836 return 1; 7837 } 7838 7839 // Maintain original order 7840 return sortInput ? 7841 ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : 7842 0; 7843 } 7844 7845 return compare & 4 ? -1 : 1; 7846 } : 7847 function( a, b ) { 7848 // Exit early if the nodes are identical 7849 if ( a === b ) { 7850 hasDuplicate = true; 7851 return 0; 7852 } 7853 7854 var cur, 7855 i = 0, 7856 aup = a.parentNode, 7857 bup = b.parentNode, 7858 ap = [ a ], 7859 bp = [ b ]; 7860 7861 // Parentless nodes are either documents or disconnected 7862 if ( !aup || !bup ) { 7863 return a === document ? -1 : 7864 b === document ? 1 : 7865 aup ? -1 : 7866 bup ? 1 : 7867 sortInput ? 7868 ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : 7869 0; 7870 7871 // If the nodes are siblings, we can do a quick check 7872 } else if ( aup === bup ) { 7873 return siblingCheck( a, b ); 7874 } 7875 7876 // Otherwise we need full lists of their ancestors for comparison 7877 cur = a; 7878 while ( (cur = cur.parentNode) ) { 7879 ap.unshift( cur ); 7880 } 7881 cur = b; 7882 while ( (cur = cur.parentNode) ) { 7883 bp.unshift( cur ); 7884 } 7885 7886 // Walk down the tree looking for a discrepancy 7887 while ( ap[i] === bp[i] ) { 7888 i++; 7889 } 7890 7891 return i ? 7892 // Do a sibling check if the nodes have a common ancestor 7893 siblingCheck( ap[i], bp[i] ) : 7894 7895 // Otherwise nodes in our document sort first 7896 ap[i] === preferredDoc ? -1 : 7897 bp[i] === preferredDoc ? 1 : 7898 0; 7899 }; 7900 7901 return document; 7902}; 7903 7904Sizzle.matches = function( expr, elements ) { 7905 return Sizzle( expr, null, null, elements ); 7906}; 7907 7908Sizzle.matchesSelector = function( elem, expr ) { 7909 // Set document vars if needed 7910 if ( ( elem.ownerDocument || elem ) !== document ) { 7911 setDocument( elem ); 7912 } 7913 7914 // Make sure that attribute selectors are quoted 7915 expr = expr.replace( rattributeQuotes, "='$1']" ); 7916 7917 if ( support.matchesSelector && documentIsHTML && 7918 !compilerCache[ expr + " " ] && 7919 ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && 7920 ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { 7921 7922 try { 7923 var ret = matches.call( elem, expr ); 7924 7925 // IE 9's matchesSelector returns false on disconnected nodes 7926 if ( ret || support.disconnectedMatch || 7927 // As well, disconnected nodes are said to be in a document 7928 // fragment in IE 9 7929 elem.document && elem.document.nodeType !== 11 ) { 7930 return ret; 7931 } 7932 } catch (e) {} 7933 } 7934 7935 return Sizzle( expr, document, null, [ elem ] ).length > 0; 7936}; 7937 7938Sizzle.contains = function( context, elem ) { 7939 // Set document vars if needed 7940 if ( ( context.ownerDocument || context ) !== document ) { 7941 setDocument( context ); 7942 } 7943 return contains( context, elem ); 7944}; 7945 7946Sizzle.attr = function( elem, name ) { 7947 // Set document vars if needed 7948 if ( ( elem.ownerDocument || elem ) !== document ) { 7949 setDocument( elem ); 7950 } 7951 7952 var fn = Expr.attrHandle[ name.toLowerCase() ], 7953 // Don't get fooled by Object.prototype properties (jQuery #13807) 7954 val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? 7955 fn( elem, name, !documentIsHTML ) : 7956 undefined; 7957 7958 return val !== undefined ? 7959 val : 7960 support.attributes || !documentIsHTML ? 7961 elem.getAttribute( name ) : 7962 (val = elem.getAttributeNode(name)) && val.specified ? 7963 val.value : 7964 null; 7965}; 7966 7967Sizzle.escape = function( sel ) { 7968 return (sel + "").replace( rcssescape, fcssescape )
vendor: 13,124 bytes, lines 7968-8419
7968; 7969}; 7970 7971Sizzle.error = function( msg ) { 7972 throw new Error( "Syntax error, unrecognized expression: " + msg ); 7973}; 7974 7975/** 7976 * Document sorting and removing duplicates 7977 * @param {ArrayLike} results 7978 */ 7979Sizzle.uniqueSort = function( results ) { 7980 var elem, 7981 duplicates = [], 7982 j = 0, 7983 i = 0; 7984 7985 // Unless we *know* we can detect duplicates, assume their presence 7986 hasDuplicate = !support.detectDuplicates; 7987 sortInput = !support.sortStable && results.slice( 0 ); 7988 results.sort( sortOrder ); 7989 7990 if ( hasDuplicate ) { 7991 while ( (elem = results[i++]) ) { 7992 if ( elem === results[ i ] ) { 7993 j = duplicates.push( i ); 7994 } 7995 } 7996 while ( j-- ) { 7997 results.splice( duplicates[ j ], 1 ); 7998 } 7999 } 8000 8001 // Clear input after sorting to release objects 8002 // See https://github.com/jquery/sizzle/pull/225 8003 sortInput = null; 8004 8005 return results; 8006}; 8007 8008/** 8009 * Utility function for retrieving the text value of an array of DOM nodes 8010 * @param {Array|Element} elem 8011 */ 8012getText = Sizzle.getText = function( elem ) { 8013 var node, 8014 ret = "", 8015 i = 0, 8016 nodeType = elem.nodeType; 8017 8018 if ( !nodeType ) { 8019 // If no nodeType, this is expected to be an array 8020 while ( (node = elem[i++]) ) { 8021 // Do not traverse comment nodes 8022 ret += getText( node ); 8023 } 8024 } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { 8025 // Use textContent for elements 8026 // innerText usage removed for consistency of new lines (jQuery #11153) 8027 if ( typeof elem.textContent === "string" ) { 8028 return elem.textContent; 8029 } else { 8030 // Traverse its children 8031 for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { 8032 ret += getText( elem ); 8033 } 8034 } 8035 } else if ( nodeType === 3 || nodeType === 4 ) { 8036 return elem.nodeValue; 8037 } 8038 // Do not include comment or processing instruction nodes 8039 8040 return ret; 8041}; 8042 8043Expr = Sizzle.selectors = { 8044 8045 // Can be adjusted by the user 8046 cacheLength: 50, 8047 8048 createPseudo: markFunction, 8049 8050 match: matchExpr, 8051 8052 attrHandle: {}, 8053 8054 find: {}, 8055 8056 relative: { 8057 ">": { dir: "parentNode", first: true }, 8058 " ": { dir: "parentNode" }, 8059 "+": { dir: "previousSibling", first: true }, 8060 "~": { dir: "previousSibling" } 8061 }, 8062 8063 preFilter: { 8064 "ATTR": function( match ) { 8065 match[1] = match[1].replace( runescape, funescape ); 8066 8067 // Move the given value to match[3] whether quoted or unquoted 8068 match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape ); 8069 8070 if ( match[2] === "~=" ) { 8071 match[3] = " " + match[3] + " "; 8072 } 8073 8074 return match.slice( 0, 4 ); 8075 }, 8076 8077 "CHILD": function( match ) { 8078 /* matches from matchExpr["CHILD"] 8079 1 type (only|nth|...) 8080 2 what (child|of-type) 8081 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) 8082 4 xn-component of xn+y argument ([+-]?\d*n|) 8083 5 sign of xn-component 8084 6 x of xn-component 8085 7 sign of y-component 8086 8 y of y-component 8087 */ 8088 match[1] = match[1].toLowerCase(); 8089 8090 if ( match[1].slice( 0, 3 ) === "nth" ) { 8091 // nth-* requires argument 8092 if ( !match[3] ) { 8093 Sizzle.error( match[0] ); 8094 } 8095 8096 // numeric x and y parameters for Expr.filter.CHILD 8097 // remember that false/true cast respectively to 0/1 8098 match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); 8099 match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); 8100 8101 // other types prohibit arguments 8102 } else if ( match[3] ) { 8103 Sizzle.error( match[0] ); 8104 } 8105 8106 return match; 8107 }, 8108 8109 "PSEUDO": function( match ) { 8110 var excess, 8111 unquoted = !match[6] && match[2]; 8112 8113 if ( matchExpr["CHILD"].test( match[0] ) ) { 8114 return null; 8115 } 8116 8117 // Accept quoted arguments as-is 8118 if ( match[3] ) { 8119 match[2] = match[4] || match[5] || ""; 8120 8121 // Strip excess characters from unquoted arguments 8122 } else if ( unquoted && rpseudo.test( unquoted ) && 8123 // Get excess from tokenize (recursively) 8124 (excess = tokenize( unquoted, true )) && 8125 // advance to the next closing parenthesis 8126 (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { 8127 8128 // excess is a negative index 8129 match[0] = match[0].slice( 0, excess ); 8130 match[2] = unquoted.slice( 0, excess ); 8131 } 8132 8133 // Return only captures needed by the pseudo filter method (type and argument) 8134 return match.slice( 0, 3 ); 8135 } 8136 }, 8137 8138 filter: { 8139 8140 "TAG": function( nodeNameSelector ) { 8141 var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); 8142 return nodeNameSelector === "*" ? 8143 function() { return true; } : 8144 function( elem ) { 8145 return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; 8146 }; 8147 }, 8148 8149 "CLASS": function( className ) { 8150 var pattern = classCache[ className + " " ]; 8151 8152 return pattern || 8153 (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && 8154 classCache( className, function( elem ) { 8155 return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" ); 8156 }); 8157 }, 8158 8159 "ATTR": function( name, operator, check ) { 8160 return function( elem ) { 8161 var result = Sizzle.attr( elem, name ); 8162 8163 if ( result == null ) { 8164 return operator === "!="; 8165 } 8166 if ( !operator ) { 8167 return true; 8168 } 8169 8170 result += ""; 8171 8172 return operator === "=" ? result === check : 8173 operator === "!=" ? result !== check : 8174 operator === "^=" ? check && result.indexOf( check ) === 0 : 8175 operator === "*=" ? check && result.indexOf( check ) > -1 : 8176 operator === "$=" ? check && result.slice( -check.length ) === check : 8177 operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : 8178 operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : 8179 false; 8180 }; 8181 }, 8182 8183 "CHILD": function( type, what, argument, first, last ) { 8184 var simple = type.slice( 0, 3 ) !== "nth", 8185 forward = type.slice( -4 ) !== "last", 8186 ofType = what === "of-type"; 8187 8188 return first === 1 && last === 0 ? 8189 8190 // Shortcut for :nth-*(n) 8191 function( elem ) { 8192 return !!elem.parentNode; 8193 } : 8194 8195 function( elem, context, xml ) { 8196 var cache, uniqueCache, outerCache, node, nodeIndex, start, 8197 dir = simple !== forward ? "nextSibling" : "previousSibling", 8198 parent = elem.parentNode, 8199 name = ofType && elem.nodeName.toLowerCase(), 8200 useCache = !xml && !ofType, 8201 diff = false; 8202 8203 if ( parent ) { 8204 8205 // :(first|last|only)-(child|of-type) 8206 if ( simple ) { 8207 while ( dir ) { 8208 node = elem; 8209 while ( (node = node[ dir ]) ) { 8210 if ( ofType ? 8211 node.nodeName.toLowerCase() === name : 8212 node.nodeType === 1 ) { 8213 8214 return false; 8215 } 8216 } 8217 // Reverse direction for :only-* (if we haven't yet done so) 8218 start = dir = type === "only" && !start && "nextSibling"; 8219 } 8220 return true; 8221 } 8222 8223 start = [ forward ? parent.firstChild : parent.lastChild ]; 8224 8225 // non-xml :nth-child(...) stores cache data on `parent` 8226 if ( forward && useCache ) { 8227 8228 // Seek `elem` from a previously-cached index 8229 8230 // ...in a gzip-friendly way 8231 node = parent; 8232 outerCache = node[ expando ] || (node[ expando ] = {}); 8233 8234 // Support: IE <9 only 8235 // Defend against cloned attroperties (jQuery gh-1709) 8236 uniqueCache = outerCache[ node.uniqueID ] || 8237 (outerCache[ node.uniqueID ] = {}); 8238 8239 cache = uniqueCache[ type ] || []; 8240 nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; 8241 diff = nodeIndex && cache[ 2 ]; 8242 node = nodeIndex && parent.childNodes[ nodeIndex ]; 8243 8244 while ( (node = ++nodeIndex && node && node[ dir ] || 8245 8246 // Fallback to seeking `elem` from the start 8247 (diff = nodeIndex = 0) || start.pop()) ) { 8248 8249 // When found, cache indexes on `parent` and break 8250 if ( node.nodeType === 1 && ++diff && node === elem ) { 8251 uniqueCache[ type ] = [ dirruns, nodeIndex, diff ]; 8252 break; 8253 } 8254 } 8255 8256 } else { 8257 // Use previously-cached element index if available 8258 if ( useCache ) { 8259 // ...in a gzip-friendly way 8260 node = elem; 8261 outerCache = node[ expando ] || (node[ expando ] = {}); 8262 8263 // Support: IE <9 only 8264 // Defend against cloned attroperties (jQuery gh-1709) 8265 uniqueCache = outerCache[ node.uniqueID ] || 8266 (outerCache[ node.uniqueID ] = {}); 8267 8268 cache = uniqueCache[ type ] || []; 8269 nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; 8270 diff = nodeIndex; 8271 } 8272 8273 // xml :nth-child(...) 8274 // or :nth-last-child(...) or :nth(-last)?-of-type(...) 8275 if ( diff === false ) { 8276 // Use the same loop as above to seek `elem` from the start 8277 while ( (node = ++nodeIndex && node && node[ dir ] || 8278 (diff = nodeIndex = 0) || start.pop()) ) { 8279 8280 if ( ( ofType ? 8281 node.nodeName.toLowerCase() === name : 8282 node.nodeType === 1 ) && 8283 ++diff ) { 8284 8285 // Cache the index of each encountered element 8286 if ( useCache ) { 8287 outerCache = node[ expando ] || (node[ expando ] = {}); 8288 8289 // Support: IE <9 only 8290 // Defend against cloned attroperties (jQuery gh-1709) 8291 uniqueCache = outerCache[ node.uniqueID ] || 8292 (outerCache[ node.uniqueID ] = {}); 8293 8294 uniqueCache[ type ] = [ dirruns, diff ]; 8295 } 8296 8297 if ( node === elem ) { 8298 break; 8299 } 8300 } 8301 } 8302 } 8303 } 8304 8305 // Incorporate the offset, then check against cycle size 8306 diff -= last; 8307 return diff === first || ( diff % first === 0 && diff / first >= 0 ); 8308 } 8309 }; 8310 }, 8311 8312 "PSEUDO": function( pseudo, argument ) { 8313 // pseudo-class names are case-insensitive 8314 // http://www.w3.org/TR/selectors/#pseudo-classes 8315 // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters 8316 // Remember that setFilters inherits from pseudos 8317 var args, 8318 fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || 8319 Sizzle.error( "unsupported pseudo: " + pseudo ); 8320 8321 // The user may use createPseudo to indicate that 8322 // arguments are needed to create the filter function 8323 // just as Sizzle does 8324 if ( fn[ expando ] ) { 8325 return fn( argument ); 8326 } 8327 8328 // But maintain support for old signatures 8329 if ( fn.length > 1 ) { 8330 args = [ pseudo, pseudo, "", argument ]; 8331 return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? 8332 markFunction(function( seed, matches ) { 8333 var idx, 8334 matched = fn( seed, argument ), 8335 i = matched.length; 8336 while ( i-- ) { 8337 idx = indexOf( seed, matched[i] ); 8338 seed[ idx ] = !( matches[ idx ] = matched[i] ); 8339 } 8340 }) : 8341 function( elem ) { 8342 return fn( elem, 0, args ); 8343 }; 8344 } 8345 8346 return fn; 8347 } 8348 }, 8349 8350 pseudos: { 8351 // Potentially complex pseudos 8352 "not": markFunction(function( selector ) { 8353 // Trim the selector passed to compile 8354 // to avoid treating leading and trailing 8355 // spaces as combinators 8356 var input = [], 8357 results = [], 8358 matcher = compile( selector.replace( rtrim, "$1" ) ); 8359 8360 return matcher[ expando ] ? 8361 markFunction(function( seed, matches, context, xml ) { 8362 var elem, 8363 unmatched = matcher( seed, null, xml, [] ), 8364 i = seed.length; 8365 8366 // Match elements unmatched by `matcher` 8367 while ( i-- ) { 8368 if ( (elem = unmatched[i]) ) { 8369 seed[i] = !(matches[i] = elem); 8370 } 8371 } 8372 }) : 8373 function( elem, context, xml ) { 8374 input[0] = elem; 8375 matcher( input, null, xml, results ); 8376 // Don't keep the element (issue #299) 8377 input[0] = null; 8378 return !results.pop(); 8379 }; 8380 }), 8381 8382 "has": markFunction(function( selector ) { 8383 return function( elem ) { 8384 return Sizzle( selector, elem ).length > 0; 8385 }; 8386 }), 8387 8388 "contains": markFunction(function( text ) { 8389 text = text.replace( runescape, funescape ); 8390 return function( elem ) { 8391 return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; 8392 }; 8393 }), 8394 8395 // "Whether an element is represented by a :lang() selector 8396 // is based solely on the element's language value 8397 // being equal to the identifier C, 8398 // or beginning with the identifier C immediately followed by "-". 8399 // The matching of C against the element's language value is performed case-insensitively. 8400 // The identifier C does not have to be a valid language name." 8401 // http://www.w3.org/TR/selectors/#lang-pseudo 8402 "lang": markFunction( function( lang ) { 8403 // lang value must be a valid identifier 8404 if ( !ridentifier.test(lang || "") ) { 8405 Sizzle.error( "unsupported lang: " + lang ); 8406 } 8407 lang = lang.replace( runescape, funescape ).toLowerCase(); 8408 return function( elem ) { 8409 var elemLang; 8410 do { 8411 if ( (elemLang = documentIsHTML ? 8412 elem.lang : 8413 elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { 8414 8415 elemLang = elemLang.toLowerCase(); 8416 return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; 8417 } 8418 } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); 8419 return false;
vendor: 23,967 bytes, lines 8420-9291
8420 }; 8421 }), 8422 8423 // Miscellaneous 8424 "target": function( elem ) { 8425 var hash = window.location && window.location.hash; 8426 return hash && hash.slice( 1 ) === elem.id; 8427 }, 8428 8429 "root": function( elem ) { 8430 return elem === docElem; 8431 }, 8432 8433 "focus": function( elem ) { 8434 return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); 8435 }, 8436 8437 // Boolean properties 8438 "enabled": createDisabledPseudo( false ), 8439 "disabled": createDisabledPseudo( true ), 8440 8441 "checked": function( elem ) { 8442 // In CSS3, :checked should return both checked and selected elements 8443 // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked 8444 var nodeName = elem.nodeName.toLowerCase(); 8445 return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); 8446 }, 8447 8448 "selected": function( elem ) { 8449 // Accessing this property makes selected-by-default 8450 // options in Safari work properly 8451 if ( elem.parentNode ) { 8452 elem.parentNode.selectedIndex; 8453 } 8454 8455 return elem.selected === true; 8456 }, 8457 8458 // Contents 8459 "empty": function( elem ) { 8460 // http://www.w3.org/TR/selectors/#empty-pseudo 8461 // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), 8462 // but not by others (comment: 8; processing instruction: 7; etc.) 8463 // nodeType < 6 works because attributes (2) do not appear as children 8464 for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { 8465 if ( elem.nodeType < 6 ) { 8466 return false; 8467 } 8468 } 8469 return true; 8470 }, 8471 8472 "parent": function( elem ) { 8473 return !Expr.pseudos["empty"]( elem ); 8474 }, 8475 8476 // Element/input types 8477 "header": function( elem ) { 8478 return rheader.test( elem.nodeName ); 8479 }, 8480 8481 "input": function( elem ) { 8482 return rinputs.test( elem.nodeName ); 8483 }, 8484 8485 "button": function( elem ) { 8486 var name = elem.nodeName.toLowerCase(); 8487 return name === "input" && elem.type === "button" || name === "button"; 8488 }, 8489 8490 "text": function( elem ) { 8491 var attr; 8492 return elem.nodeName.toLowerCase() === "input" && 8493 elem.type === "text" && 8494 8495 // Support: IE<8 8496 // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" 8497 ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); 8498 }, 8499 8500 // Position-in-collection 8501 "first": createPositionalPseudo(function() { 8502 return [ 0 ]; 8503 }), 8504 8505 "last": createPositionalPseudo(function( matchIndexes, length ) { 8506 return [ length - 1 ]; 8507 }), 8508 8509 "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { 8510 return [ argument < 0 ? argument + length : argument ]; 8511 }), 8512 8513 "even": createPositionalPseudo(function( matchIndexes, length ) { 8514 var i = 0; 8515 for ( ; i < length; i += 2 ) { 8516 matchIndexes.push( i ); 8517 } 8518 return matchIndexes; 8519 }), 8520 8521 "odd": createPositionalPseudo(function( matchIndexes, length ) { 8522 var i = 1; 8523 for ( ; i < length; i += 2 ) { 8524 matchIndexes.push( i ); 8525 } 8526 return matchIndexes; 8527 }), 8528 8529 "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { 8530 var i = argument < 0 ? argument + length : argument; 8531 for ( ; --i >= 0; ) { 8532 matchIndexes.push( i ); 8533 } 8534 return matchIndexes; 8535 }), 8536 8537 "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { 8538 var i = argument < 0 ? argument + length : argument; 8539 for ( ; ++i < length; ) { 8540 matchIndexes.push( i ); 8541 } 8542 return matchIndexes; 8543 }) 8544 } 8545}; 8546 8547Expr.pseudos["nth"] = Expr.pseudos["eq"]; 8548 8549// Add button/input type pseudos 8550for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { 8551 Expr.pseudos[ i ] = createInputPseudo( i ); 8552} 8553for ( i in { submit: true, reset: true } ) { 8554 Expr.pseudos[ i ] = createButtonPseudo( i ); 8555} 8556 8557// Easy API for creating new setFilters 8558function setFilters() {} 8559setFilters.prototype = Expr.filters = Expr.pseudos; 8560Expr.setFilters = new setFilters(); 8561 8562tokenize = Sizzle.tokenize = function( selector, parseOnly ) { 8563 var matched, match, tokens, type, 8564 soFar, groups, preFilters, 8565 cached = tokenCache[ selector + " " ]; 8566 8567 if ( cached ) { 8568 return parseOnly ? 0 : cached.slice( 0 ); 8569 } 8570 8571 soFar = selector; 8572 groups = []; 8573 preFilters = Expr.preFilter; 8574 8575 while ( soFar ) { 8576 8577 // Comma and first run 8578 if ( !matched || (match = rcomma.exec( soFar )) ) { 8579 if ( match ) { 8580 // Don't consume trailing commas as valid 8581 soFar = soFar.slice( match[0].length ) || soFar; 8582 } 8583 groups.push( (tokens = []) ); 8584 } 8585 8586 matched = false; 8587 8588 // Combinators 8589 if ( (match = rcombinators.exec( soFar )) ) { 8590 matched = match.shift(); 8591 tokens.push({ 8592 value: matched, 8593 // Cast descendant combinators to space 8594 type: match[0].replace( rtrim, " " ) 8595 }); 8596 soFar = soFar.slice( matched.length ); 8597 } 8598 8599 // Filters 8600 for ( type in Expr.filter ) { 8601 if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || 8602 (match = preFilters[ type ]( match ))) ) { 8603 matched = match.shift(); 8604 tokens.push({ 8605 value: matched, 8606 type: type, 8607 matches: match 8608 }); 8609 soFar = soFar.slice( matched.length ); 8610 } 8611 } 8612 8613 if ( !matched ) { 8614 break; 8615 } 8616 } 8617 8618 // Return the length of the invalid excess 8619 // if we're just parsing 8620 // Otherwise, throw an error or return tokens 8621 return parseOnly ? 8622 soFar.length : 8623 soFar ? 8624 Sizzle.error( selector ) : 8625 // Cache the tokens 8626 tokenCache( selector, groups ).slice( 0 ); 8627}; 8628 8629function toSelector( tokens ) { 8630 var i = 0, 8631 len = tokens.length, 8632 selector = ""; 8633 for ( ; i < len; i++ ) { 8634 selector += tokens[i].value; 8635 } 8636 return selector; 8637} 8638 8639function addCombinator( matcher, combinator, base ) { 8640 var dir = combinator.dir, 8641 skip = combinator.next, 8642 key = skip || dir, 8643 checkNonElements = base && key === "parentNode", 8644 doneName = done++; 8645 8646 return combinator.first ? 8647 // Check against closest ancestor/preceding element 8648 function( elem, context, xml ) { 8649 while ( (elem = elem[ dir ]) ) { 8650 if ( elem.nodeType === 1 || checkNonElements ) { 8651 return matcher( elem, context, xml ); 8652 } 8653 } 8654 return false; 8655 } : 8656 8657 // Check against all ancestor/preceding elements 8658 function( elem, context, xml ) { 8659 var oldCache, uniqueCache, outerCache, 8660 newCache = [ dirruns, doneName ]; 8661 8662 // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching 8663 if ( xml ) { 8664 while ( (elem = elem[ dir ]) ) { 8665 if ( elem.nodeType === 1 || checkNonElements ) { 8666 if ( matcher( elem, context, xml ) ) { 8667 return true; 8668 } 8669 } 8670 } 8671 } else { 8672 while ( (elem = elem[ dir ]) ) { 8673 if ( elem.nodeType === 1 || checkNonElements ) { 8674 outerCache = elem[ expando ] || (elem[ expando ] = {}); 8675 8676 // Support: IE <9 only 8677 // Defend against cloned attroperties (jQuery gh-1709) 8678 uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {}); 8679 8680 if ( skip && skip === elem.nodeName.toLowerCase() ) { 8681 elem = elem[ dir ] || elem; 8682 } else if ( (oldCache = uniqueCache[ key ]) && 8683 oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { 8684 8685 // Assign to newCache so results back-propagate to previous elements 8686 return (newCache[ 2 ] = oldCache[ 2 ]); 8687 } else { 8688 // Reuse newcache so results back-propagate to previous elements 8689 uniqueCache[ key ] = newCache; 8690 8691 // A match means we're done; a fail means we have to keep checking 8692 if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { 8693 return true; 8694 } 8695 } 8696 } 8697 } 8698 } 8699 return false; 8700 }; 8701} 8702 8703function elementMatcher( matchers ) { 8704 return matchers.length > 1 ? 8705 function( elem, context, xml ) { 8706 var i = matchers.length; 8707 while ( i-- ) { 8708 if ( !matchers[i]( elem, context, xml ) ) { 8709 return false; 8710 } 8711 } 8712 return true; 8713 } : 8714 matchers[0]; 8715} 8716 8717function multipleContexts( selector, contexts, results ) { 8718 var i = 0, 8719 len = contexts.length; 8720 for ( ; i < len; i++ ) { 8721 Sizzle( selector, contexts[i], results ); 8722 } 8723 return results; 8724} 8725 8726function condense( unmatched, map, filter, context, xml ) { 8727 var elem, 8728 newUnmatched = [], 8729 i = 0, 8730 len = unmatched.length, 8731 mapped = map != null; 8732 8733 for ( ; i < len; i++ ) { 8734 if ( (elem = unmatched[i]) ) { 8735 if ( !filter || filter( elem, context, xml ) ) { 8736 newUnmatched.push( elem ); 8737 if ( mapped ) { 8738 map.push( i ); 8739 } 8740 } 8741 } 8742 } 8743 8744 return newUnmatched; 8745} 8746 8747function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { 8748 if ( postFilter && !postFilter[ expando ] ) { 8749 postFilter = setMatcher( postFilter ); 8750 } 8751 if ( postFinder && !postFinder[ expando ] ) { 8752 postFinder = setMatcher( postFinder, postSelector ); 8753 } 8754 return markFunction(function( seed, results, context, xml ) { 8755 var temp, i, elem, 8756 preMap = [], 8757 postMap = [], 8758 preexisting = results.length, 8759 8760 // Get initial elements from seed or context 8761 elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), 8762 8763 // Prefilter to get matcher input, preserving a map for seed-results synchronization 8764 matcherIn = preFilter && ( seed || !selector ) ? 8765 condense( elems, preMap, preFilter, context, xml ) : 8766 elems, 8767 8768 matcherOut = matcher ? 8769 // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, 8770 postFinder || ( seed ? preFilter : preexisting || postFilter ) ? 8771 8772 // ...intermediate processing is necessary 8773 [] : 8774 8775 // ...otherwise use results directly 8776 results : 8777 matcherIn; 8778 8779 // Find primary matches 8780 if ( matcher ) { 8781 matcher( matcherIn, matcherOut, context, xml ); 8782 } 8783 8784 // Apply postFilter 8785 if ( postFilter ) { 8786 temp = condense( matcherOut, postMap ); 8787 postFilter( temp, [], context, xml ); 8788 8789 // Un-match failing elements by moving them back to matcherIn 8790 i = temp.length; 8791 while ( i-- ) { 8792 if ( (elem = temp[i]) ) { 8793 matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); 8794 } 8795 } 8796 } 8797 8798 if ( seed ) { 8799 if ( postFinder || preFilter ) { 8800 if ( postFinder ) { 8801 // Get the final matcherOut by condensing this intermediate into postFinder contexts 8802 temp = []; 8803 i = matcherOut.length; 8804 while ( i-- ) { 8805 if ( (elem = matcherOut[i]) ) { 8806 // Restore matcherIn since elem is not yet a final match 8807 temp.push( (matcherIn[i] = elem) ); 8808 } 8809 } 8810 postFinder( null, (matcherOut = []), temp, xml ); 8811 } 8812 8813 // Move matched elements from seed to results to keep them synchronized 8814 i = matcherOut.length; 8815 while ( i-- ) { 8816 if ( (elem = matcherOut[i]) && 8817 (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) { 8818 8819 seed[temp] = !(results[temp] = elem); 8820 } 8821 } 8822 } 8823 8824 // Add elements to results, through postFinder if defined 8825 } else { 8826 matcherOut = condense( 8827 matcherOut === results ? 8828 matcherOut.splice( preexisting, matcherOut.length ) : 8829 matcherOut 8830 ); 8831 if ( postFinder ) { 8832 postFinder( null, results, matcherOut, xml ); 8833 } else { 8834 push.apply( results, matcherOut ); 8835 } 8836 } 8837 }); 8838} 8839 8840function matcherFromTokens( tokens ) { 8841 var checkContext, matcher, j, 8842 len = tokens.length, 8843 leadingRelative = Expr.relative[ tokens[0].type ], 8844 implicitRelative = leadingRelative || Expr.relative[" "], 8845 i = leadingRelative ? 1 : 0, 8846 8847 // The foundational matcher ensures that elements are reachable from top-level context(s) 8848 matchContext = addCombinator( function( elem ) { 8849 return elem === checkContext; 8850 }, implicitRelative, true ), 8851 matchAnyContext = addCombinator( function( elem ) { 8852 return indexOf( checkContext, elem ) > -1; 8853 }, implicitRelative, true ), 8854 matchers = [ function( elem, context, xml ) { 8855 var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( 8856 (checkContext = context).nodeType ? 8857 matchContext( elem, context, xml ) : 8858 matchAnyContext( elem, context, xml ) ); 8859 // Avoid hanging onto element (issue #299) 8860 checkContext = null; 8861 return ret; 8862 } ]; 8863 8864 for ( ; i < len; i++ ) { 8865 if ( (matcher = Expr.relative[ tokens[i].type ]) ) { 8866 matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; 8867 } else { 8868 matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); 8869 8870 // Return special upon seeing a positional matcher 8871 if ( matcher[ expando ] ) { 8872 // Find the next relative operator (if any) for proper handling 8873 j = ++i; 8874 for ( ; j < len; j++ ) { 8875 if ( Expr.relative[ tokens[j].type ] ) { 8876 break; 8877 } 8878 } 8879 return setMatcher( 8880 i > 1 && elementMatcher( matchers ), 8881 i > 1 && toSelector( 8882 // If the preceding token was a descendant combinator, insert an implicit any-element `*` 8883 tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) 8884 ).replace( rtrim, "$1" ), 8885 matcher, 8886 i < j && matcherFromTokens( tokens.slice( i, j ) ), 8887 j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), 8888 j < len && toSelector( tokens ) 8889 ); 8890 } 8891 matchers.push( matcher ); 8892 } 8893 } 8894 8895 return elementMatcher( matchers ); 8896} 8897 8898function matcherFromGroupMatchers( elementMatchers, setMatchers ) { 8899 var bySet = setMatchers.length > 0, 8900 byElement = elementMatchers.length > 0, 8901 superMatcher = function( seed, context, xml, results, outermost ) { 8902 var elem, j, matcher, 8903 matchedCount = 0, 8904 i = "0", 8905 unmatched = seed && [], 8906 setMatched = [], 8907 contextBackup = outermostContext, 8908 // We must always have either seed elements or outermost context 8909 elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), 8910 // Use integer dirruns iff this is the outermost matcher 8911 dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), 8912 len = elems.length; 8913 8914 if ( outermost ) { 8915 outermostContext = context === document || context || outermost; 8916 } 8917 8918 // Add elements passing elementMatchers directly to results 8919 // Support: IE<9, Safari 8920 // Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id 8921 for ( ; i !== len && (elem = elems[i]) != null; i++ ) { 8922 if ( byElement && elem ) { 8923 j = 0; 8924 if ( !context && elem.ownerDocument !== document ) { 8925 setDocument( elem ); 8926 xml = !documentIsHTML; 8927 } 8928 while ( (matcher = elementMatchers[j++]) ) { 8929 if ( matcher( elem, context || document, xml) ) { 8930 results.push( elem ); 8931 break; 8932 } 8933 } 8934 if ( outermost ) { 8935 dirruns = dirrunsUnique; 8936 } 8937 } 8938 8939 // Track unmatched elements for set filters 8940 if ( bySet ) { 8941 // They will have gone through all possible matchers 8942 if ( (elem = !matcher && elem) ) { 8943 matchedCount--; 8944 } 8945 8946 // Lengthen the array for every element, matched or not 8947 if ( seed ) { 8948 unmatched.push( elem ); 8949 } 8950 } 8951 } 8952 8953 // `i` is now the count of elements visited above, and adding it to `matchedCount` 8954 // makes the latter nonnegative. 8955 matchedCount += i; 8956 8957 // Apply set filters to unmatched elements 8958 // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount` 8959 // equals `i`), unless we didn't visit _any_ elements in the above loop because we have 8960 // no element matchers and no seed. 8961 // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that 8962 // case, which will result in a "00" `matchedCount` that differs from `i` but is also 8963 // numerically zero. 8964 if ( bySet && i !== matchedCount ) { 8965 j = 0; 8966 while ( (matcher = setMatchers[j++]) ) { 8967 matcher( unmatched, setMatched, context, xml ); 8968 } 8969 8970 if ( seed ) { 8971 // Reintegrate element matches to eliminate the need for sorting 8972 if ( matchedCount > 0 ) { 8973 while ( i-- ) { 8974 if ( !(unmatched[i] || setMatched[i]) ) { 8975 setMatched[i] = pop.call( results ); 8976 } 8977 } 8978 } 8979 8980 // Discard index placeholder values to get only actual matches 8981 setMatched = condense( setMatched ); 8982 } 8983 8984 // Add matches to results 8985 push.apply( results, setMatched ); 8986 8987 // Seedless set matches succeeding multiple successful matchers stipulate sorting 8988 if ( outermost && !seed && setMatched.length > 0 && 8989 ( matchedCount + setMatchers.length ) > 1 ) { 8990 8991 Sizzle.uniqueSort( results ); 8992 } 8993 } 8994 8995 // Override manipulation of globals by nested matchers 8996 if ( outermost ) { 8997 dirruns = dirrunsUnique; 8998 outermostContext = contextBackup; 8999 } 9000 9001 return unmatched; 9002 }; 9003 9004 return bySet ? 9005 markFunction( superMatcher ) : 9006 superMatcher; 9007} 9008 9009compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { 9010 var i, 9011 setMatchers = [], 9012 elementMatchers = [], 9013 cached = compilerCache[ selector + " " ]; 9014 9015 if ( !cached ) { 9016 // Generate a function of recursive functions that can be used to check each element 9017 if ( !match ) { 9018 match = tokenize( selector ); 9019 } 9020 i = match.length; 9021 while ( i-- ) { 9022 cached = matcherFromTokens( match[i] ); 9023 if ( cached[ expando ] ) { 9024 setMatchers.push( cached ); 9025 } else { 9026 elementMatchers.push( cached ); 9027 } 9028 } 9029 9030 // Cache the compiled function 9031 cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); 9032 9033 // Save selector and tokenization 9034 cached.selector = selector; 9035 } 9036 return cached; 9037}; 9038 9039/** 9040 * A low-level selection function that works with Sizzle's compiled 9041 * selector functions 9042 * @param {String|Function} selector A selector or a pre-compiled 9043 * selector function built with Sizzle.compile 9044 * @param {Element} context 9045 * @param {Array} [results] 9046 * @param {Array} [seed] A set of elements to match against 9047 */ 9048select = Sizzle.select = function( selector, context, results, seed ) { 9049 var i, tokens, token, type, find, 9050 compiled = typeof selector === "function" && selector, 9051 match = !seed && tokenize( (selector = compiled.selector || selector) ); 9052 9053 results = results || []; 9054 9055 // Try to minimize operations if there is only one selector in the list and no seed 9056 // (the latter of which guarantees us context) 9057 if ( match.length === 1 ) { 9058 9059 // Reduce context if the leading compound selector is an ID 9060 tokens = match[0] = match[0].slice( 0 ); 9061 if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && 9062 context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) { 9063 9064 context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; 9065 if ( !context ) { 9066 return results; 9067 9068 // Precompiled matchers will still verify ancestry, so step up a level 9069 } else if ( compiled ) { 9070 context = context.parentNode; 9071 } 9072 9073 selector = selector.slice( tokens.shift().value.length ); 9074 } 9075 9076 // Fetch a seed set for right-to-left matching 9077 i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; 9078 while ( i-- ) { 9079 token = tokens[i]; 9080 9081 // Abort if we hit a combinator 9082 if ( Expr.relative[ (type = token.type) ] ) { 9083 break; 9084 } 9085 if ( (find = Expr.find[ type ]) ) { 9086 // Search, expanding context for leading sibling combinators 9087 if ( (seed = find( 9088 token.matches[0].replace( runescape, funescape ), 9089 rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context 9090 )) ) { 9091 9092 // If seed is empty or no tokens remain, we can return early 9093 tokens.splice( i, 1 ); 9094 selector = seed.length && toSelector( tokens ); 9095 if ( !selector ) { 9096 push.apply( results, seed ); 9097 return results; 9098 } 9099 9100 break; 9101 } 9102 } 9103 } 9104 } 9105 9106 // Compile and execute a filtering function if one is not provided 9107 // Provide `match` to avoid retokenization if we modified the selector above 9108 ( compiled || compile( selector, match ) )( 9109 seed, 9110 context, 9111 !documentIsHTML, 9112 results, 9113 !context || rsibling.test( selector ) && testContext( context.parentNode ) || context 9114 ); 9115 return results; 9116}; 9117 9118// One-time assignments 9119 9120// Sort stability 9121support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; 9122 9123// Support: Chrome 14-35+ 9124// Always assume duplicates if they aren't passed to the comparison function 9125support.detectDuplicates = !!hasDuplicate; 9126 9127// Initialize against the default document 9128setDocument(); 9129 9130// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) 9131// Detached nodes confoundingly follow *each other* 9132support.sortDetached = assert(function( el ) { 9133 // Should return 1, but returns 4 (following) 9134 return el.compareDocumentPosition( document.createElement("fieldset") ) & 1; 9135}); 9136 9137// Support: IE<8 9138// Prevent attribute/property "interpolation" 9139// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx 9140if ( !assert(function( el ) { 9141 el.innerHTML = "<a href='#'></a>"; 9142 return el.firstChild.getAttribute("href") === "#" ; 9143}) ) { 9144 addHandle( "type|href|height|width", function( elem, name, isXML ) { 9145 if ( !isXML ) { 9146 return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); 9147 } 9148 }); 9149} 9150 9151// Support: IE<9 9152// Use defaultValue in place of getAttribute("value") 9153if ( !support.attributes || !assert(function( el ) { 9154 el.innerHTML = "<input/>"; 9155 el.firstChild.setAttribute( "value", "" ); 9156 return el.firstChild.getAttribute( "value" ) === ""; 9157}) ) { 9158 addHandle( "value", function( elem, name, isXML ) { 9159 if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { 9160 return elem.defaultValue; 9161 } 9162 }); 9163} 9164 9165// Support: IE<9 9166// Use getAttributeNode to fetch booleans when getAttribute lies 9167if ( !assert(function( el ) { 9168 return el.getAttribute("disabled") == null; 9169}) ) { 9170 addHandle( booleans, function( elem, name, isXML ) { 9171 var val; 9172 if ( !isXML ) { 9173 return elem[ name ] === true ? name.toLowerCase() : 9174 (val = elem.getAttributeNode( name )) && val.specified ? 9175 val.value : 9176 null; 9177 } 9178 }); 9179} 9180 9181return Sizzle; 9182 9183})( window ); 9184 9185 9186 9187jQuery.find = Sizzle; 9188jQuery.expr = Sizzle.selectors; 9189 9190// Deprecated 9191jQuery.expr[ ":" ] = jQuery.expr.pseudos; 9192jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort; 9193jQuery.text = Sizzle.getText; 9194jQuery.isXMLDoc = Sizzle.isXML; 9195jQuery.contains = Sizzle.contains; 9196jQuery.escapeSelector = Sizzle.escape; 9197 9198 9199 9200 9201var dir = function( elem, dir, until ) { 9202 var matched = [], 9203 truncate = until !== undefined; 9204 9205 while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { 9206 if ( elem.nodeType === 1 ) { 9207 if ( truncate && jQuery( elem ).is( until ) ) { 9208 break; 9209 } 9210 matched.push( elem ); 9211 } 9212 } 9213 return matched; 9214}; 9215 9216 9217var siblings = function( n, elem ) { 9218 var matched = []; 9219 9220 for ( ; n; n = n.nextSibling ) { 9221 if ( n.nodeType === 1 && n !== elem ) { 9222 matched.push( n ); 9223 } 9224 } 9225 9226 return matched; 9227}; 9228 9229 9230var rneedsContext = jQuery.expr.match.needsContext; 9231 9232 9233 9234function nodeName( elem, name ) { 9235 9236 return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); 9237 9238}; 9239var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); 9240 9241 9242 9243// Implement the identical functionality for filter and not 9244function winnow( elements, qualifier, not ) { 9245 if ( isFunction( qualifier ) ) { 9246 return jQuery.grep( elements, function( elem, i ) { 9247 return !!qualifier.call( elem, i, elem ) !== not; 9248 } ); 9249 } 9250 9251 // Single element 9252 if ( qualifier.nodeType ) { 9253 return jQuery.grep( elements, function( elem ) { 9254 return ( elem === qualifier ) !== not; 9255 } ); 9256 } 9257 9258 // Arraylike of elements (jQuery, arguments, Array) 9259 if ( typeof qualifier !== "string" ) { 9260 return jQuery.grep( elements, function( elem ) { 9261 return ( indexOf.call( qualifier, elem ) > -1 ) !== not; 9262 } ); 9263 } 9264 9265 // Filtered directly for both simple and complex selectors 9266 return jQuery.filter( qualifier, elements, not ); 9267} 9268 9269jQuery.filter = function( expr, elems, not ) { 9270 var elem = elems[ 0 ]; 9271 9272 if ( not ) { 9273 expr = ":not(" + expr + ")"; 9274 } 9275 9276 if ( elems.length === 1 && elem.nodeType === 1 ) { 9277 return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : []; 9278 } 9279 9280 return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { 9281 return elem.nodeType === 1; 9282 } ) ); 9283}; 9284 9285jQuery.fn.extend( { 9286 find: function( selector ) { 9287 var i, ret, 9288 len = this.length, 9289 self = this; 9290 9291 if ( typeof selector !== "string" ) {
vendor: 4,662 bytes, lines 9292-9477
9292 return this.pushStack( jQuery( selector ).filter( function() { 9293 for ( i = 0; i < len; i++ ) { 9294 if ( jQuery.contains( self[ i ], this ) ) { 9295 return true; 9296 } 9297 } 9298 } ) ); 9299 } 9300 9301 ret = this.pushStack( [] ); 9302 9303 for ( i = 0; i < len; i++ ) { 9304 jQuery.find( selector, self[ i ], ret ); 9305 } 9306 9307 return len > 1 ? jQuery.uniqueSort( ret ) : ret; 9308 }, 9309 filter: function( selector ) { 9310 return this.pushStack( winnow( this, selector || [], false ) ); 9311 }, 9312 not: function( selector ) { 9313 return this.pushStack( winnow( this, selector || [], true ) ); 9314 }, 9315 is: function( selector ) { 9316 return !!winnow( 9317 this, 9318 9319 // If this is a positional/relative selector, check membership in the returned set 9320 // so $("p:first").is("p:last") won't return true for a doc with two "p". 9321 typeof selector === "string" && rneedsContext.test( selector ) ? 9322 jQuery( selector ) : 9323 selector || [], 9324 false 9325 ).length; 9326 } 9327} ); 9328 9329 9330// Initialize a jQuery object 9331 9332 9333// A central reference to the root jQuery(document) 9334var rootjQuery, 9335 9336 // A simple way to check for HTML strings 9337 // Prioritize #id over <tag> to avoid XSS via location.hash (#9521) 9338 // Strict HTML recognition (#11290: must start with <) 9339 // Shortcut simple #id case for speed 9340 rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, 9341 9342 init = jQuery.fn.init = function( selector, context, root ) { 9343 var match, elem; 9344 9345 // HANDLE: $(""), $(null), $(undefined), $(false) 9346 if ( !selector ) { 9347 return this; 9348 } 9349 9350 // Method init() accepts an alternate rootjQuery 9351 // so migrate can support jQuery.sub (gh-2101) 9352 root = root || rootjQuery; 9353 9354 // Handle HTML strings 9355 if ( typeof selector === "string" ) { 9356 if ( selector[ 0 ] === "<" && 9357 selector[ selector.length - 1 ] === ">" && 9358 selector.length >= 3 ) { 9359 9360 // Assume that strings that start and end with <> are HTML and skip the regex check 9361 match = [ null, selector, null ]; 9362 9363 } else { 9364 match = rquickExpr.exec( selector ); 9365 } 9366 9367 // Match html or make sure no context is specified for #id 9368 if ( match && ( match[ 1 ] || !context ) ) { 9369 9370 // HANDLE: $(html) -> $(array) 9371 if ( match[ 1 ] ) { 9372 context = context instanceof jQuery ? context[ 0 ] : context; 9373 9374 // Option to run scripts is true for back-compat 9375 // Intentionally let the error be thrown if parseHTML is not present 9376 jQuery.merge( this, jQuery.parseHTML( 9377 match[ 1 ], 9378 context && context.nodeType ? context.ownerDocument || context : document, 9379 true 9380 ) ); 9381 9382 // HANDLE: $(html, props) 9383 if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) { 9384 for ( match in context ) { 9385 9386 // Properties of context are called as methods if possible 9387 if ( isFunction( this[ match ] ) ) { 9388 this[ match ]( context[ match ] ); 9389 9390 // ...and otherwise set as attributes 9391 } else { 9392 this.attr( match, context[ match ] ); 9393 } 9394 } 9395 } 9396 9397 return this; 9398 9399 // HANDLE: $(#id) 9400 } else { 9401 elem = document.getElementById( match[ 2 ] ); 9402 9403 if ( elem ) { 9404 9405 // Inject the element directly into the jQuery object 9406 this[ 0 ] = elem; 9407 this.length = 1; 9408 } 9409 return this; 9410 } 9411 9412 // HANDLE: $(expr, $(...)) 9413 } else if ( !context || context.jquery ) { 9414 return ( context || root ).find( selector ); 9415 9416 // HANDLE: $(expr, context) 9417 // (which is just equivalent to: $(context).find(expr) 9418 } else { 9419 return this.constructor( context ).find( selector ); 9420 } 9421 9422 // HANDLE: $(DOMElement) 9423 } else if ( selector.nodeType ) { 9424 this[ 0 ] = selector; 9425 this.length = 1; 9426 return this; 9427 9428 // HANDLE: $(function) 9429 // Shortcut for document ready 9430 } else if ( isFunction( selector ) ) { 9431 return root.ready !== undefined ? 9432 root.ready( selector ) : 9433 9434 // Execute immediately if ready is not present 9435 selector( jQuery ); 9436 } 9437 9438 return jQuery.makeArray( selector, this ); 9439 }; 9440 9441// Give the init function the jQuery prototype for later instantiation 9442init.prototype = jQuery.fn; 9443 9444// Initialize central reference 9445rootjQuery = jQuery( document ); 9446 9447 9448var rparentsprev = /^(?:parents|prev(?:Until|All))/, 9449 9450 // Methods guaranteed to produce a unique set when starting from a unique set 9451 guaranteedUnique = { 9452 children: true, 9453 contents: true, 9454 next: true, 9455 prev: true 9456 }; 9457 9458jQuery.fn.extend( { 9459 has: function( target ) { 9460 var targets = jQuery( target, this ), 9461 l = targets.length; 9462 9463 return this.filter( function() { 9464 var i = 0; 9465 for ( ; i < l; i++ ) { 9466 if ( jQuery.contains( this, targets[ i ] ) ) { 9467 return true; 9468 } 9469 } 9470 } ); 9471 }, 9472 9473 closest: function( selectors, context ) { 9474 var cur, 9475 i = 0, 9476 l = this.length, 9477 matched = [],
vendor: 6,003 bytes, lines 9478-9704
9478 targets = typeof selectors !== "string" && jQuery( selectors ); 9479 9480 // Positional selectors never match, since there's no _selection_ context 9481 if ( !rneedsContext.test( selectors ) ) { 9482 for ( ; i < l; i++ ) { 9483 for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) { 9484 9485 // Always skip document fragments 9486 if ( cur.nodeType < 11 && ( targets ? 9487 targets.index( cur ) > -1 : 9488 9489 // Don't pass non-elements to Sizzle 9490 cur.nodeType === 1 && 9491 jQuery.find.matchesSelector( cur, selectors ) ) ) { 9492 9493 matched.push( cur ); 9494 break; 9495 } 9496 } 9497 } 9498 } 9499 9500 return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched ); 9501 }, 9502 9503 // Determine the position of an element within the set 9504 index: function( elem ) { 9505 9506 // No argument, return index in parent 9507 if ( !elem ) { 9508 return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; 9509 } 9510 9511 // Index in selector 9512 if ( typeof elem === "string" ) { 9513 return indexOf.call( jQuery( elem ), this[ 0 ] ); 9514 } 9515 9516 // Locate the position of the desired element 9517 return indexOf.call( this, 9518 9519 // If it receives a jQuery object, the first element is used 9520 elem.jquery ? elem[ 0 ] : elem 9521 ); 9522 }, 9523 9524 add: function( selector, context ) { 9525 return this.pushStack( 9526 jQuery.uniqueSort( 9527 jQuery.merge( this.get(), jQuery( selector, context ) ) 9528 ) 9529 ); 9530 }, 9531 9532 addBack: function( selector ) { 9533 return this.add( selector == null ? 9534 this.prevObject : this.prevObject.filter( selector ) 9535 ); 9536 } 9537} ); 9538 9539function sibling( cur, dir ) { 9540 while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} 9541 return cur; 9542} 9543 9544jQuery.each( { 9545 parent: function( elem ) { 9546 var parent = elem.parentNode; 9547 return parent && parent.nodeType !== 11 ? parent : null; 9548 }, 9549 parents: function( elem ) { 9550 return dir( elem, "parentNode" ); 9551 }, 9552 parentsUntil: function( elem, i, until ) { 9553 return dir( elem, "parentNode", until ); 9554 }, 9555 next: function( elem ) { 9556 return sibling( elem, "nextSibling" ); 9557 }, 9558 prev: function( elem ) { 9559 return sibling( elem, "previousSibling" ); 9560 }, 9561 nextAll: function( elem ) { 9562 return dir( elem, "nextSibling" ); 9563 }, 9564 prevAll: function( elem ) { 9565 return dir( elem, "previousSibling" ); 9566 }, 9567 nextUntil: function( elem, i, until ) { 9568 return dir( elem, "nextSibling", until ); 9569 }, 9570 prevUntil: function( elem, i, until ) { 9571 return dir( elem, "previousSibling", until ); 9572 }, 9573 siblings: function( elem ) { 9574 return siblings( ( elem.parentNode || {} ).firstChild, elem ); 9575 }, 9576 children: function( elem ) { 9577 return siblings( elem.firstChild ); 9578 }, 9579 contents: function( elem ) { 9580 if ( nodeName( elem, "iframe" ) ) { 9581 return elem.contentDocument; 9582 } 9583 9584 // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only 9585 // Treat the template element as a regular one in browsers that 9586 // don't support it. 9587 if ( nodeName( elem, "template" ) ) { 9588 elem = elem.content || elem; 9589 } 9590 9591 return jQuery.merge( [], elem.childNodes ); 9592 } 9593}, function( name, fn ) { 9594 jQuery.fn[ name ] = function( until, selector ) { 9595 var matched = jQuery.map( this, fn, until ); 9596 9597 if ( name.slice( -5 ) !== "Until" ) { 9598 selector = until; 9599 } 9600 9601 if ( selector && typeof selector === "string" ) { 9602 matched = jQuery.filter( selector, matched ); 9603 } 9604 9605 if ( this.length > 1 ) { 9606 9607 // Remove duplicates 9608 if ( !guaranteedUnique[ name ] ) { 9609 jQuery.uniqueSort( matched ); 9610 } 9611 9612 // Reverse order for parents* and prev-derivatives 9613 if ( rparentsprev.test( name ) ) { 9614 matched.reverse(); 9615 } 9616 } 9617 9618 return this.pushStack( matched ); 9619 }; 9620} ); 9621var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g ); 9622 9623 9624 9625// Convert String-formatted options into Object-formatted ones 9626function createOptions( options ) { 9627 var object = {}; 9628 jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) { 9629 object[ flag ] = true; 9630 } ); 9631 return object; 9632} 9633 9634/* 9635 * Create a callback list using the following parameters: 9636 * 9637 * options: an optional list of space-separated options that will change how 9638 * the callback list behaves or a more traditional option object 9639 * 9640 * By default a callback list will act like an event callback list and can be 9641 * "fired" multiple times. 9642 * 9643 * Possible options: 9644 * 9645 * once: will ensure the callback list can only be fired once (like a Deferred) 9646 * 9647 * memory: will keep track of previous values and will call any callback added 9648 * after the list has been fired right away with the latest "memorized" 9649 * values (like a Deferred) 9650 * 9651 * unique: will ensure a callback can only be added once (no duplicate in the list) 9652 * 9653 * stopOnFalse: interrupt callings when a callback returns false 9654 * 9655 */ 9656jQuery.Callbacks = function( options ) { 9657 9658 // Convert options from String-formatted to Object-formatted if needed 9659 // (we check in cache first) 9660 options = typeof options === "string" ? 9661 createOptions( options ) : 9662 jQuery.extend( {}, options ); 9663 9664 var // Flag to know if list is currently firing 9665 firing, 9666 9667 // Last fire value for non-forgettable lists 9668 memory, 9669 9670 // Flag to know if list was already fired 9671 fired, 9672 9673 // Flag to prevent firing 9674 locked, 9675 9676 // Actual callback list 9677 list = [], 9678 9679 // Queue of execution data for repeatable lists 9680 queue = [], 9681 9682 // Index of currently firing callback (modified by add/remove as needed) 9683 firingIndex = -1, 9684 9685 // Fire callbacks 9686 fire = function() { 9687 9688 // Enforce single-firing 9689 locked = locked || options.once; 9690 9691 // Execute callbacks for all pending executions, 9692 // respecting firingIndex overrides and runtime changes 9693 fired = firing = true; 9694 for ( ; queue.length; firingIndex = -1 ) { 9695 memory = queue.shift(); 9696 while ( ++firingIndex < list.length ) { 9697 9698 // Run callback and check for early termination 9699 if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false && 9700 options.stopOnFalse ) { 9701 9702 // Jump to end and forget the data so .add doesn't re-fire 9703 firingIndex = list.length; 9704 memory = false;
vendor: 4,918 bytes, lines 9705-9914
9705 } 9706 } 9707 } 9708 9709 // Forget the data if we're done with it 9710 if ( !options.memory ) { 9711 memory = false; 9712 } 9713 9714 firing = false; 9715 9716 // Clean up if we're done firing for good 9717 if ( locked ) { 9718 9719 // Keep an empty list if we have data for future add calls 9720 if ( memory ) { 9721 list = []; 9722 9723 // Otherwise, this object is spent 9724 } else { 9725 list = ""; 9726 } 9727 } 9728 }, 9729 9730 // Actual Callbacks object 9731 self = { 9732 9733 // Add a callback or a collection of callbacks to the list 9734 add: function() { 9735 if ( list ) { 9736 9737 // If we have memory from a past run, we should fire after adding 9738 if ( memory && !firing ) { 9739 firingIndex = list.length - 1; 9740 queue.push( memory ); 9741 } 9742 9743 ( function add( args ) { 9744 jQuery.each( args, function( _, arg ) { 9745 if ( isFunction( arg ) ) { 9746 if ( !options.unique || !self.has( arg ) ) { 9747 list.push( arg ); 9748 } 9749 } else if ( arg && arg.length && toType( arg ) !== "string" ) { 9750 9751 // Inspect recursively 9752 add( arg ); 9753 } 9754 } ); 9755 } )( arguments ); 9756 9757 if ( memory && !firing ) { 9758 fire(); 9759 } 9760 } 9761 return this; 9762 }, 9763 9764 // Remove a callback from the list 9765 remove: function() { 9766 jQuery.each( arguments, function( _, arg ) { 9767 var index; 9768 while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { 9769 list.splice( index, 1 ); 9770 9771 // Handle firing indexes 9772 if ( index <= firingIndex ) { 9773 firingIndex--; 9774 } 9775 } 9776 } ); 9777 return this; 9778 }, 9779 9780 // Check if a given callback is in the list. 9781 // If no argument is given, return whether or not list has callbacks attached. 9782 has: function( fn ) { 9783 return fn ? 9784 jQuery.inArray( fn, list ) > -1 : 9785 list.length > 0; 9786 }, 9787 9788 // Remove all callbacks from the list 9789 empty: function() { 9790 if ( list ) { 9791 list = []; 9792 } 9793 return this; 9794 }, 9795 9796 // Disable .fire and .add 9797 // Abort any current/pending executions 9798 // Clear all callbacks and values 9799 disable: function() { 9800 locked = queue = []; 9801 list = memory = ""; 9802 return this; 9803 }, 9804 disabled: function() { 9805 return !list; 9806 }, 9807 9808 // Disable .fire 9809 // Also disable .add unless we have memory (since it would have no effect) 9810 // Abort any pending executions 9811 lock: function() { 9812 locked = queue = []; 9813 if ( !memory && !firing ) { 9814 list = memory = ""; 9815 } 9816 return this; 9817 }, 9818 locked: function() { 9819 return !!locked; 9820 }, 9821 9822 // Call all callbacks with the given context and arguments 9823 fireWith: function( context, args ) { 9824 if ( !locked ) { 9825 args = args || []; 9826 args = [ context, args.slice ? args.slice() : args ]; 9827 queue.push( args ); 9828 if ( !firing ) { 9829 fire(); 9830 } 9831 } 9832 return this; 9833 }, 9834 9835 // Call all the callbacks with the given arguments 9836 fire: function() { 9837 self.fireWith( this, arguments ); 9838 return this; 9839 }, 9840 9841 // To know if the callbacks have already been called at least once 9842 fired: function() { 9843 return !!fired; 9844 } 9845 }; 9846 9847 return self; 9848}; 9849 9850 9851function Identity( v ) { 9852 return v; 9853} 9854function Thrower( ex ) { 9855 throw ex; 9856} 9857 9858function adoptValue( value, resolve, reject, noValue ) { 9859 var method; 9860 9861 try { 9862 9863 // Check for promise aspect first to privilege synchronous behavior 9864 if ( value && isFunction( ( method = value.promise ) ) ) { 9865 method.call( value ).done( resolve ).fail( reject ); 9866 9867 // Other thenables 9868 } else if ( value && isFunction( ( method = value.then ) ) ) { 9869 method.call( value, resolve, reject ); 9870 9871 // Other non-thenables 9872 } else { 9873 9874 // Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer: 9875 // * false: [ value ].slice( 0 ) => resolve( value ) 9876 // * true: [ value ].slice( 1 ) => resolve() 9877 resolve.apply( undefined, [ value ].slice( noValue ) ); 9878 } 9879 9880 // For Promises/A+, convert exceptions into rejections 9881 // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in 9882 // Deferred#then to conditionally suppress rejection. 9883 } catch ( value ) { 9884 9885 // Support: Android 4.0 only 9886 // Strict mode functions invoked without .call/.apply get global-object context 9887 reject.apply( undefined, [ value ] ); 9888 } 9889} 9890 9891jQuery.extend( { 9892 9893 Deferred: function( func ) { 9894 var tuples = [ 9895 9896 // action, add listener, callbacks, 9897 // ... .then handlers, argument index, [final state] 9898 [ "notify", "progress", jQuery.Callbacks( "memory" ), 9899 jQuery.Callbacks( "memory" ), 2 ], 9900 [ "resolve", "done", jQuery.Callbacks( "once memory" ), 9901 jQuery.Callbacks( "once memory" ), 0, "resolved" ], 9902 [ "reject", "fail", jQuery.Callbacks( "once memory" ), 9903 jQuery.Callbacks( "once memory" ), 1, "rejected" ] 9904 ], 9905 state = "pending", 9906 promise = { 9907 state: function() { 9908 return state; 9909 }, 9910 always: function() { 9911 deferred.done( arguments ).fail( arguments ); 9912 return this; 9913 }, 9914 "catch": function( fn ) {
vendor: 15,167 bytes, lines 9915-10506
9915 return promise.then( null, fn ); 9916 }, 9917 9918 // Keep pipe for back-compat 9919 pipe: function( /* fnDone, fnFail, fnProgress */ ) { 9920 var fns = arguments; 9921 9922 return jQuery.Deferred( function( newDefer ) { 9923 jQuery.each( tuples, function( i, tuple ) { 9924 9925 // Map tuples (progress, done, fail) to arguments (done, fail, progress) 9926 var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ]; 9927 9928 // deferred.progress(function() { bind to newDefer or newDefer.notify }) 9929 // deferred.done(function() { bind to newDefer or newDefer.resolve }) 9930 // deferred.fail(function() { bind to newDefer or newDefer.reject }) 9931 deferred[ tuple[ 1 ] ]( function() { 9932 var returned = fn && fn.apply( this, arguments ); 9933 if ( returned && isFunction( returned.promise ) ) { 9934 returned.promise() 9935 .progress( newDefer.notify ) 9936 .done( newDefer.resolve ) 9937 .fail( newDefer.reject ); 9938 } else { 9939 newDefer[ tuple[ 0 ] + "With" ]( 9940 this, 9941 fn ? [ returned ] : arguments 9942 ); 9943 } 9944 } ); 9945 } ); 9946 fns = null; 9947 } ).promise(); 9948 }, 9949 then: function( onFulfilled, onRejected, onProgress ) { 9950 var maxDepth = 0; 9951 function resolve( depth, deferred, handler, special ) { 9952 return function() { 9953 var that = this, 9954 args = arguments, 9955 mightThrow = function() { 9956 var returned, then; 9957 9958 // Support: Promises/A+ section 2.3.3.3.3 9959 // https://promisesaplus.com/#point-59 9960 // Ignore double-resolution attempts 9961 if ( depth < maxDepth ) { 9962 return; 9963 } 9964 9965 returned = handler.apply( that, args ); 9966 9967 // Support: Promises/A+ section 2.3.1 9968 // https://promisesaplus.com/#point-48 9969 if ( returned === deferred.promise() ) { 9970 throw new TypeError( "Thenable self-resolution" ); 9971 } 9972 9973 // Support: Promises/A+ sections 2.3.3.1, 3.5 9974 // https://promisesaplus.com/#point-54 9975 // https://promisesaplus.com/#point-75 9976 // Retrieve `then` only once 9977 then = returned && 9978 9979 // Support: Promises/A+ section 2.3.4 9980 // https://promisesaplus.com/#point-64 9981 // Only check objects and functions for thenability 9982 ( typeof returned === "object" || 9983 typeof returned === "function" ) && 9984 returned.then; 9985 9986 // Handle a returned thenable 9987 if ( isFunction( then ) ) { 9988 9989 // Special processors (notify) just wait for resolution 9990 if ( special ) { 9991 then.call( 9992 returned, 9993 resolve( maxDepth, deferred, Identity, special ), 9994 resolve( maxDepth, deferred, Thrower, special ) 9995 ); 9996 9997 // Normal processors (resolve) also hook into progress 9998 } else { 9999 10000 // ...and disregard older resolution values 10001 maxDepth++; 10002 10003 then.call( 10004 returned, 10005 resolve( maxDepth, deferred, Identity, special ), 10006 resolve( maxDepth, deferred, Thrower, special ), 10007 resolve( maxDepth, deferred, Identity, 10008 deferred.notifyWith ) 10009 ); 10010 } 10011 10012 // Handle all other returned values 10013 } else { 10014 10015 // Only substitute handlers pass on context 10016 // and multiple values (non-spec behavior) 10017 if ( handler !== Identity ) { 10018 that = undefined; 10019 args = [ returned ]; 10020 } 10021 10022 // Process the value(s) 10023 // Default process is resolve 10024 ( special || deferred.resolveWith )( that, args ); 10025 } 10026 }, 10027 10028 // Only normal processors (resolve) catch and reject exceptions 10029 process = special ? 10030 mightThrow : 10031 function() { 10032 try { 10033 mightThrow(); 10034 } catch ( e ) { 10035 10036 if ( jQuery.Deferred.exceptionHook ) { 10037 jQuery.Deferred.exceptionHook( e, 10038 process.stackTrace ); 10039 } 10040 10041 // Support: Promises/A+ section 2.3.3.3.4.1 10042 // https://promisesaplus.com/#point-61 10043 // Ignore post-resolution exceptions 10044 if ( depth + 1 >= maxDepth ) { 10045 10046 // Only substitute handlers pass on context 10047 // and multiple values (non-spec behavior) 10048 if ( handler !== Thrower ) { 10049 that = undefined; 10050 args = [ e ]; 10051 } 10052 10053 deferred.rejectWith( that, args ); 10054 } 10055 } 10056 }; 10057 10058 // Support: Promises/A+ section 2.3.3.3.1 10059 // https://promisesaplus.com/#point-57 10060 // Re-resolve promises immediately to dodge false rejection from 10061 // subsequent errors 10062 if ( depth ) { 10063 process(); 10064 } else { 10065 10066 // Call an optional hook to record the stack, in case of exception 10067 // since it's otherwise lost when execution goes async 10068 if ( jQuery.Deferred.getStackHook ) { 10069 process.stackTrace = jQuery.Deferred.getStackHook(); 10070 } 10071 window.setTimeout( process ); 10072 } 10073 }; 10074 } 10075 10076 return jQuery.Deferred( function( newDefer ) { 10077 10078 // progress_handlers.add( ... ) 10079 tuples[ 0 ][ 3 ].add( 10080 resolve( 10081 0, 10082 newDefer, 10083 isFunction( onProgress ) ? 10084 onProgress : 10085 Identity, 10086 newDefer.notifyWith 10087 ) 10088 ); 10089 10090 // fulfilled_handlers.add( ... ) 10091 tuples[ 1 ][ 3 ].add( 10092 resolve( 10093 0, 10094 newDefer, 10095 isFunction( onFulfilled ) ? 10096 onFulfilled : 10097 Identity 10098 ) 10099 ); 10100 10101 // rejected_handlers.add( ... ) 10102 tuples[ 2 ][ 3 ].add( 10103 resolve( 10104 0, 10105 newDefer, 10106 isFunction( onRejected ) ? 10107 onRejected : 10108 Thrower 10109 ) 10110 ); 10111 } ).promise(); 10112 }, 10113 10114 // Get a promise for this deferred 10115 // If obj is provided, the promise aspect is added to the object 10116 promise: function( obj ) { 10117 return obj != null ? jQuery.extend( obj, promise ) : promise; 10118 } 10119 }, 10120 deferred = {}; 10121 10122 // Add list-specific methods 10123 jQuery.each( tuples, function( i, tuple ) { 10124 var list = tuple[ 2 ], 10125 stateString = tuple[ 5 ]; 10126 10127 // promise.progress = list.add 10128 // promise.done = list.add 10129 // promise.fail = list.add 10130 promise[ tuple[ 1 ] ] = list.add; 10131 10132 // Handle state 10133 if ( stateString ) { 10134 list.add( 10135 function() { 10136 10137 // state = "resolved" (i.e., fulfilled) 10138 // state = "rejected" 10139 state = stateString; 10140 }, 10141 10142 // rejected_callbacks.disable 10143 // fulfilled_callbacks.disable 10144 tuples[ 3 - i ][ 2 ].disable, 10145 10146 // rejected_handlers.disable 10147 // fulfilled_handlers.disable 10148 tuples[ 3 - i ][ 3 ].disable, 10149 10150 // progress_callbacks.lock 10151 tuples[ 0 ][ 2 ].lock, 10152 10153 // progress_handlers.lock 10154 tuples[ 0 ][ 3 ].lock 10155 ); 10156 } 10157 10158 // progress_handlers.fire 10159 // fulfilled_handlers.fire 10160 // rejected_handlers.fire 10161 list.add( tuple[ 3 ].fire ); 10162 10163 // deferred.notify = function() { deferred.notifyWith(...) } 10164 // deferred.resolve = function() { deferred.resolveWith(...) } 10165 // deferred.reject = function() { deferred.rejectWith(...) } 10166 deferred[ tuple[ 0 ] ] = function() { 10167 deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments ); 10168 return this; 10169 }; 10170 10171 // deferred.notifyWith = list.fireWith 10172 // deferred.resolveWith = list.fireWith 10173 // deferred.rejectWith = list.fireWith 10174 deferred[ tuple[ 0 ] + "With" ] = list.fireWith; 10175 } ); 10176 10177 // Make the deferred a promise 10178 promise.promise( deferred ); 10179 10180 // Call given func if any 10181 if ( func ) { 10182 func.call( deferred, deferred ); 10183 } 10184 10185 // All done! 10186 return deferred; 10187 }, 10188 10189 // Deferred helper 10190 when: function( singleValue ) { 10191 var 10192 10193 // count of uncompleted subordinates 10194 remaining = arguments.length, 10195 10196 // count of unprocessed arguments 10197 i = remaining, 10198 10199 // subordinate fulfillment data 10200 resolveContexts = Array( i ), 10201 resolveValues = slice.call( arguments ), 10202 10203 // the master Deferred 10204 master = jQuery.Deferred(), 10205 10206 // subordinate callback factory 10207 updateFunc = function( i ) { 10208 return function( value ) { 10209 resolveContexts[ i ] = this; 10210 resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; 10211 if ( !( --remaining ) ) { 10212 master.resolveWith( resolveContexts, resolveValues ); 10213 } 10214 }; 10215 }; 10216 10217 // Single- and empty arguments are adopted like Promise.resolve 10218 if ( remaining <= 1 ) { 10219 adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject, 10220 !remaining ); 10221 10222 // Use .then() to unwrap secondary thenables (cf. gh-3000) 10223 if ( master.state() === "pending" || 10224 isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) { 10225 10226 return master.then(); 10227 } 10228 } 10229 10230 // Multiple arguments are aggregated like Promise.all array elements 10231 while ( i-- ) { 10232 adoptValue( resolveValues[ i ], updateFunc( i ), master.reject ); 10233 } 10234 10235 return master.promise(); 10236 } 10237} ); 10238 10239 10240// These usually indicate a programmer mistake during development, 10241// warn about them ASAP rather than swallowing them by default. 10242var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; 10243 10244jQuery.Deferred.exceptionHook = function( error, stack ) { 10245 10246 // Support: IE 8 - 9 only 10247 // Console exists when dev tools are open, which can happen at any time 10248 if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) { 10249 window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack ); 10250 } 10251}; 10252 10253 10254 10255 10256jQuery.readyException = function( error ) { 10257 window.setTimeout( function() { 10258 throw error; 10259 } ); 10260}; 10261 10262 10263 10264 10265// The deferred used on DOM ready 10266var readyList = jQuery.Deferred(); 10267 10268jQuery.fn.ready = function( fn ) { 10269 10270 readyList 10271 .then( fn ) 10272 10273 // Wrap jQuery.readyException in a function so that the lookup 10274 // happens at the time of error handling instead of callback 10275 // registration. 10276 .catch( function( error ) { 10277 jQuery.readyException( error ); 10278 } ); 10279 10280 return this; 10281}; 10282 10283jQuery.extend( { 10284 10285 // Is the DOM ready to be used? Set to true once it occurs. 10286 isReady: false, 10287 10288 // A counter to track how many items to wait for before 10289 // the ready event fires. See #6781 10290 readyWait: 1, 10291 10292 // Handle when the DOM is ready 10293 ready: function( wait ) { 10294 10295 // Abort if there are pending holds or we're already ready 10296 if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { 10297 return; 10298 } 10299 10300 // Remember that the DOM is ready 10301 jQuery.isReady = true; 10302 10303 // If a normal DOM Ready event fired, decrement, and wait if need be 10304 if ( wait !== true && --jQuery.readyWait > 0 ) { 10305 return; 10306 } 10307 10308 // If there are functions bound, to execute 10309 readyList.resolveWith( document, [ jQuery ] ); 10310 } 10311} ); 10312 10313jQuery.ready.then = readyList.then; 10314 10315// The ready event handler and self cleanup method 10316function completed() { 10317 document.removeEventListener( "DOMContentLoaded", completed ); 10318 window.removeEventListener( "load", completed ); 10319 jQuery.ready(); 10320} 10321 10322// Catch cases where $(document).ready() is called 10323// after the browser event has already occurred. 10324// Support: IE <=9 - 10 only 10325// Older IE sometimes signals "interactive" too soon 10326if ( document.readyState === "complete" || 10327 ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) { 10328 10329 // Handle it asynchronously to allow scripts the opportunity to delay ready 10330 window.setTimeout( jQuery.ready ); 10331 10332} else { 10333 10334 // Use the handy event callback 10335 document.addEventListener( "DOMContentLoaded", completed ); 10336 10337 // A fallback to window.onload, that will always work 10338 window.addEventListener( "load", completed ); 10339} 10340 10341 10342 10343 10344// Multifunctional method to get and set values of a collection 10345// The value/s can optionally be executed if it's a function 10346var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { 10347 var i = 0, 10348 len = elems.length, 10349 bulk = key == null; 10350 10351 // Sets many values 10352 if ( toType( key ) === "object" ) { 10353 chainable = true; 10354 for ( i in key ) { 10355 access( elems, fn, i, key[ i ], true, emptyGet, raw ); 10356 } 10357 10358 // Sets one value 10359 } else if ( value !== undefined ) { 10360 chainable = true; 10361 10362 if ( !isFunction( value ) ) { 10363 raw = true; 10364 } 10365 10366 if ( bulk ) { 10367 10368 // Bulk operations run against the entire set 10369 if ( raw ) { 10370 fn.call( elems, value ); 10371 fn = null; 10372 10373 // ...except when executing function values 10374 } else { 10375 bulk = fn; 10376 fn = function( elem, key, value ) { 10377 return bulk.call( jQuery( elem ), value ); 10378 }; 10379 } 10380 } 10381 10382 if ( fn ) { 10383 for ( ; i < len; i++ ) { 10384 fn( 10385 elems[ i ], key, raw ? 10386 value : 10387 value.call( elems[ i ], i, fn( elems[ i ], key ) ) 10388 ); 10389 } 10390 } 10391 } 10392 10393 if ( chainable ) { 10394 return elems; 10395 } 10396 10397 // Gets 10398 if ( bulk ) { 10399 return fn.call( elems ); 10400 } 10401 10402 return len ? fn( elems[ 0 ], key ) : emptyGet; 10403}; 10404 10405 10406// Matches dashed string for camelizing 10407var rmsPrefix = /^-ms-/, 10408 rdashAlpha = /-([a-z])/g; 10409 10410// Used by camelCase as callback to replace() 10411function fcamelCase( all, letter ) { 10412 return letter.toUpperCase(); 10413} 10414 10415// Convert dashed to camelCase; used by the css and data modules 10416// Support: IE <=9 - 11, Edge 12 - 15 10417// Microsoft forgot to hump their vendor prefix (#9572) 10418function camelCase( string ) { 10419 return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); 10420} 10421var acceptData = function( owner ) { 10422 10423 // Accepts only: 10424 // - Node 10425 // - Node.ELEMENT_NODE 10426 // - Node.DOCUMENT_NODE 10427 // - Object 10428 // - Any 10429 return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); 10430}; 10431 10432 10433 10434 10435function Data() { 10436 this.expando = jQuery.expando + Data.uid++; 10437} 10438 10439Data.uid = 1; 10440 10441Data.prototype = { 10442 10443 cache: function( owner ) { 10444 10445 // Check if the owner object already has a cache 10446 var value = owner[ this.expando ]; 10447 10448 // If not, create one 10449 if ( !value ) { 10450 value = {}; 10451 10452 // We can accept data for non-element nodes in modern browsers, 10453 // but we should not, see #8335. 10454 // Always return an empty object. 10455 if ( acceptData( owner ) ) { 10456 10457 // If it is a node unlikely to be stringify-ed or looped over 10458 // use plain assignment 10459 if ( owner.nodeType ) { 10460 owner[ this.expando ] = value; 10461 10462 // Otherwise secure it in a non-enumerable property 10463 // configurable must be true to allow the property to be 10464 // deleted when data is removed 10465 } else { 10466 Object.defineProperty( owner, this.expando, { 10467 value: value, 10468 configurable: true 10469 } ); 10470 } 10471 } 10472 } 10473 10474 return value; 10475 }, 10476 set: function( owner, data, value ) { 10477 var prop, 10478 cache = this.cache( owner ); 10479 10480 // Handle: [ owner, key, value ] args 10481 // Always use camelCase key (gh-2257) 10482 if ( typeof data === "string" ) { 10483 cache[ camelCase( data ) ] = value; 10484 10485 // Handle: [ owner, { properties } ] args 10486 } else { 10487 10488 // Copy the properties one-by-one to the cache object 10489 for ( prop in data ) { 10490 cache[ camelCase( prop ) ] = data[ prop ]; 10491 } 10492 } 10493 return cache; 10494 }, 10495 get: function( owner, key ) { 10496 return key === undefined ? 10497 this.cache( owner ) : 10498 10499 // Always use camelCase key (gh-2257) 10500 owner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ]; 10501 }, 10502 access: function( owner, key, value ) { 10503 10504 // In cases where either: 10505 // 10506 // 1. No key was specified
vendor: 8,694 bytes, lines 10507-10865
10507 // 2. A string key was specified, but no value provided 10508 // 10509 // Take the "read" path and allow the get method to determine 10510 // which value to return, respectively either: 10511 // 10512 // 1. The entire cache object 10513 // 2. The data stored at the key 10514 // 10515 if ( key === undefined || 10516 ( ( key && typeof key === "string" ) && value === undefined ) ) { 10517 10518 return this.get( owner, key ); 10519 } 10520 10521 // When the key is not a string, or both a key and value 10522 // are specified, set or extend (existing objects) with either: 10523 // 10524 // 1. An object of properties 10525 // 2. A key and value 10526 // 10527 this.set( owner, key, value ); 10528 10529 // Since the "set" path can have two possible entry points 10530 // return the expected data based on which path was taken[*] 10531 return value !== undefined ? value : key; 10532 }, 10533 remove: function( owner, key ) { 10534 var i, 10535 cache = owner[ this.expando ]; 10536 10537 if ( cache === undefined ) { 10538 return; 10539 } 10540 10541 if ( key !== undefined ) { 10542 10543 // Support array or space separated string of keys 10544 if ( Array.isArray( key ) ) { 10545 10546 // If key is an array of keys... 10547 // We always set camelCase keys, so remove that. 10548 key = key.map( camelCase ); 10549 } else { 10550 key = camelCase( key ); 10551 10552 // If a key with the spaces exists, use it. 10553 // Otherwise, create an array by matching non-whitespace 10554 key = key in cache ? 10555 [ key ] : 10556 ( key.match( rnothtmlwhite ) || [] ); 10557 } 10558 10559 i = key.length; 10560 10561 while ( i-- ) { 10562 delete cache[ key[ i ] ]; 10563 } 10564 } 10565 10566 // Remove the expando if there's no more data 10567 if ( key === undefined || jQuery.isEmptyObject( cache ) ) { 10568 10569 // Support: Chrome <=35 - 45 10570 // Webkit & Blink performance suffers when deleting properties 10571 // from DOM nodes, so set to undefined instead 10572 // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted) 10573 if ( owner.nodeType ) { 10574 owner[ this.expando ] = undefined; 10575 } else { 10576 delete owner[ this.expando ]; 10577 } 10578 } 10579 }, 10580 hasData: function( owner ) { 10581 var cache = owner[ this.expando ]; 10582 return cache !== undefined && !jQuery.isEmptyObject( cache ); 10583 } 10584}; 10585var dataPriv = new Data(); 10586 10587var dataUser = new Data(); 10588 10589 10590 10591// Implementation Summary 10592// 10593// 1. Enforce API surface and semantic compatibility with 1.9.x branch 10594// 2. Improve the module's maintainability by reducing the storage 10595// paths to a single mechanism. 10596// 3. Use the same single mechanism to support "private" and "user" data. 10597// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) 10598// 5. Avoid exposing implementation details on user objects (eg. expando properties) 10599// 6. Provide a clear path for implementation upgrade to WeakMap in 2014 10600 10601var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, 10602 rmultiDash = /[A-Z]/g; 10603 10604function getData( data ) { 10605 if ( data === "true" ) { 10606 return true; 10607 } 10608 10609 if ( data === "false" ) { 10610 return false; 10611 } 10612 10613 if ( data === "null" ) { 10614 return null; 10615 } 10616 10617 // Only convert to a number if it doesn't change the string 10618 if ( data === +data + "" ) { 10619 return +data; 10620 } 10621 10622 if ( rbrace.test( data ) ) { 10623 return JSON.parse( data ); 10624 } 10625 10626 return data; 10627} 10628 10629function dataAttr( elem, key, data ) { 10630 var name; 10631 10632 // If nothing was found internally, try to fetch any 10633 // data from the HTML5 data-* attribute 10634 if ( data === undefined && elem.nodeType === 1 ) { 10635 name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase(); 10636 data = elem.getAttribute( name ); 10637 10638 if ( typeof data === "string" ) { 10639 try { 10640 data = getData( data ); 10641 } catch ( e ) {} 10642 10643 // Make sure we set the data so it isn't changed later 10644 dataUser.set( elem, key, data ); 10645 } else { 10646 data = undefined; 10647 } 10648 } 10649 return data; 10650} 10651 10652jQuery.extend( { 10653 hasData: function( elem ) { 10654 return dataUser.hasData( elem ) || dataPriv.hasData( elem ); 10655 }, 10656 10657 data: function( elem, name, data ) { 10658 return dataUser.access( elem, name, data ); 10659 }, 10660 10661 removeData: function( elem, name ) { 10662 dataUser.remove( elem, name ); 10663 }, 10664 10665 // TODO: Now that all calls to _data and _removeData have been replaced 10666 // with direct calls to dataPriv methods, these can be deprecated. 10667 _data: function( elem, name, data ) { 10668 return dataPriv.access( elem, name, data ); 10669 }, 10670 10671 _removeData: function( elem, name ) { 10672 dataPriv.remove( elem, name ); 10673 } 10674} ); 10675 10676jQuery.fn.extend( { 10677 data: function( key, value ) { 10678 var i, name, data, 10679 elem = this[ 0 ], 10680 attrs = elem && elem.attributes; 10681 10682 // Gets all values 10683 if ( key === undefined ) { 10684 if ( this.length ) { 10685 data = dataUser.get( elem ); 10686 10687 if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) { 10688 i = attrs.length; 10689 while ( i-- ) { 10690 10691 // Support: IE 11 only 10692 // The attrs elements can be null (#14894) 10693 if ( attrs[ i ] ) { 10694 name = attrs[ i ].name; 10695 if ( name.indexOf( "data-" ) === 0 ) { 10696 name = camelCase( name.slice( 5 ) ); 10697 dataAttr( elem, name, data[ name ] ); 10698 } 10699 } 10700 } 10701 dataPriv.set( elem, "hasDataAttrs", true ); 10702 } 10703 } 10704 10705 return data; 10706 } 10707 10708 // Sets multiple values 10709 if ( typeof key === "object" ) { 10710 return this.each( function() { 10711 dataUser.set( this, key ); 10712 } ); 10713 } 10714 10715 return access( this, function( value ) { 10716 var data; 10717 10718 // The calling jQuery object (element matches) is not empty 10719 // (and therefore has an element appears at this[ 0 ]) and the 10720 // `value` parameter was not undefined. An empty jQuery object 10721 // will result in `undefined` for elem = this[ 0 ] which will 10722 // throw an exception if an attempt to read a data cache is made. 10723 if ( elem && value === undefined ) { 10724 10725 // Attempt to get data from the cache 10726 // The key will always be camelCased in Data 10727 data = dataUser.get( elem, key ); 10728 if ( data !== undefined ) { 10729 return data; 10730 } 10731 10732 // Attempt to "discover" the data in 10733 // HTML5 custom data-* attrs 10734 data = dataAttr( elem, key ); 10735 if ( data !== undefined ) { 10736 return data; 10737 } 10738 10739 // We tried really hard, but the data doesn't exist. 10740 return; 10741 } 10742 10743 // Set the data... 10744 this.each( function() { 10745 10746 // We always store the camelCased key 10747 dataUser.set( this, key, value ); 10748 } ); 10749 }, null, value, arguments.length > 1, null, true ); 10750 }, 10751 10752 removeData: function( key ) { 10753 return this.each( function() { 10754 dataUser.remove( this, key ); 10755 } ); 10756 } 10757} ); 10758 10759 10760jQuery.extend( { 10761 queue: function( elem, type, data ) { 10762 var queue; 10763 10764 if ( elem ) { 10765 type = ( type || "fx" ) + "queue"; 10766 queue = dataPriv.get( elem, type ); 10767 10768 // Speed up dequeue by getting out quickly if this is just a lookup 10769 if ( data ) { 10770 if ( !queue || Array.isArray( data ) ) { 10771 queue = dataPriv.access( elem, type, jQuery.makeArray( data ) ); 10772 } else { 10773 queue.push( data ); 10774 } 10775 } 10776 return queue || []; 10777 } 10778 }, 10779 10780 dequeue: function( elem, type ) { 10781 type = type || "fx"; 10782 10783 var queue = jQuery.queue( elem, type ), 10784 startLength = queue.length, 10785 fn = queue.shift(), 10786 hooks = jQuery._queueHooks( elem, type ), 10787 next = function() { 10788 jQuery.dequeue( elem, type ); 10789 }; 10790 10791 // If the fx queue is dequeued, always remove the progress sentinel 10792 if ( fn === "inprogress" ) { 10793 fn = queue.shift(); 10794 startLength--; 10795 } 10796 10797 if ( fn ) { 10798 10799 // Add a progress sentinel to prevent the fx queue from being 10800 // automatically dequeued 10801 if ( type === "fx" ) { 10802 queue.unshift( "inprogress" ); 10803 } 10804 10805 // Clear up the last queue stop function 10806 delete hooks.stop; 10807 fn.call( elem, next, hooks ); 10808 } 10809 10810 if ( !startLength && hooks ) { 10811 hooks.empty.fire(); 10812 } 10813 }, 10814 10815 // Not public - generate a queueHooks object, or return the current one 10816 _queueHooks: function( elem, type ) { 10817 var key = type + "queueHooks"; 10818 return dataPriv.get( elem, key ) || dataPriv.access( elem, key, { 10819 empty: jQuery.Callbacks( "once memory" ).add( function() { 10820 dataPriv.remove( elem, [ type + "queue", key ] ); 10821 } ) 10822 } ); 10823 } 10824} ); 10825 10826jQuery.fn.extend( { 10827 queue: function( type, data ) { 10828 var setter = 2; 10829 10830 if ( typeof type !== "string" ) { 10831 data = type; 10832 type = "fx"; 10833 setter--; 10834 } 10835 10836 if ( arguments.length < setter ) { 10837 return jQuery.queue( this[ 0 ], type ); 10838 } 10839 10840 return data === undefined ? 10841 this : 10842 this.each( function() { 10843 var queue = jQuery.queue( this, type, data ); 10844 10845 // Ensure a hooks for this queue 10846 jQuery._queueHooks( this, type ); 10847 10848 if ( type === "fx" && queue[ 0 ] !== "inprogress" ) { 10849 jQuery.dequeue( this, type ); 10850 } 10851 } ); 10852 }, 10853 dequeue: function( type ) { 10854 return this.each( function() { 10855 jQuery.dequeue( this, type ); 10856 } ); 10857 }, 10858 clearQueue: function( type ) { 10859 return this.queue( type || "fx", [] ); 10860 }, 10861 10862 // Get a promise resolved when queues of a certain type 10863 // are emptied (fx is the type by default) 10864 promise: function( type, obj ) { 10865 var tmp,
vendor: 37,137 bytes, lines 10866-12291
10866 count = 1, 10867 defer = jQuery.Deferred(), 10868 elements = this, 10869 i = this.length, 10870 resolve = function() { 10871 if ( !( --count ) ) { 10872 defer.resolveWith( elements, [ elements ] ); 10873 } 10874 }; 10875 10876 if ( typeof type !== "string" ) { 10877 obj = type; 10878 type = undefined; 10879 } 10880 type = type || "fx"; 10881 10882 while ( i-- ) { 10883 tmp = dataPriv.get( elements[ i ], type + "queueHooks" ); 10884 if ( tmp && tmp.empty ) { 10885 count++; 10886 tmp.empty.add( resolve ); 10887 } 10888 } 10889 resolve(); 10890 return defer.promise( obj ); 10891 } 10892} ); 10893var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; 10894 10895var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); 10896 10897 10898var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; 10899 10900var isHiddenWithinTree = function( elem, el ) { 10901 10902 // isHiddenWithinTree might be called from jQuery#filter function; 10903 // in that case, element will be second argument 10904 elem = el || elem; 10905 10906 // Inline style trumps all 10907 return elem.style.display === "none" || 10908 elem.style.display === "" && 10909 10910 // Otherwise, check computed style 10911 // Support: Firefox <=43 - 45 10912 // Disconnected elements can have computed display: none, so first confirm that elem is 10913 // in the document. 10914 jQuery.contains( elem.ownerDocument, elem ) && 10915 10916 jQuery.css( elem, "display" ) === "none"; 10917 }; 10918 10919var swap = function( elem, options, callback, args ) { 10920 var ret, name, 10921 old = {}; 10922 10923 // Remember the old values, and insert the new ones 10924 for ( name in options ) { 10925 old[ name ] = elem.style[ name ]; 10926 elem.style[ name ] = options[ name ]; 10927 } 10928 10929 ret = callback.apply( elem, args || [] ); 10930 10931 // Revert the old values 10932 for ( name in options ) { 10933 elem.style[ name ] = old[ name ]; 10934 } 10935 10936 return ret; 10937}; 10938 10939 10940 10941 10942function adjustCSS( elem, prop, valueParts, tween ) { 10943 var adjusted, scale, 10944 maxIterations = 20, 10945 currentValue = tween ? 10946 function() { 10947 return tween.cur(); 10948 } : 10949 function() { 10950 return jQuery.css( elem, prop, "" ); 10951 }, 10952 initial = currentValue(), 10953 unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), 10954 10955 // Starting value computation is required for potential unit mismatches 10956 initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && 10957 rcssNum.exec( jQuery.css( elem, prop ) ); 10958 10959 if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { 10960 10961 // Support: Firefox <=54 10962 // Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144) 10963 initial = initial / 2; 10964 10965 // Trust units reported by jQuery.css 10966 unit = unit || initialInUnit[ 3 ]; 10967 10968 // Iteratively approximate from a nonzero starting point 10969 initialInUnit = +initial || 1; 10970 10971 while ( maxIterations-- ) { 10972 10973 // Evaluate and update our best guess (doubling guesses that zero out). 10974 // Finish if the scale equals or crosses 1 (making the old*new product non-positive). 10975 jQuery.style( elem, prop, initialInUnit + unit ); 10976 if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) { 10977 maxIterations = 0; 10978 } 10979 initialInUnit = initialInUnit / scale; 10980 10981 } 10982 10983 initialInUnit = initialInUnit * 2; 10984 jQuery.style( elem, prop, initialInUnit + unit ); 10985 10986 // Make sure we update the tween properties later on 10987 valueParts = valueParts || []; 10988 } 10989 10990 if ( valueParts ) { 10991 initialInUnit = +initialInUnit || +initial || 0; 10992 10993 // Apply relative offset (+=/-=) if specified 10994 adjusted = valueParts[ 1 ] ? 10995 initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] : 10996 +valueParts[ 2 ]; 10997 if ( tween ) { 10998 tween.unit = unit; 10999 tween.start = initialInUnit; 11000 tween.end = adjusted; 11001 } 11002 } 11003 return adjusted; 11004} 11005 11006 11007var defaultDisplayMap = {}; 11008 11009function getDefaultDisplay( elem ) { 11010 var temp, 11011 doc = elem.ownerDocument, 11012 nodeName = elem.nodeName, 11013 display = defaultDisplayMap[ nodeName ]; 11014 11015 if ( display ) { 11016 return display; 11017 } 11018 11019 temp = doc.body.appendChild( doc.createElement( nodeName ) ); 11020 display = jQuery.css( temp, "display" ); 11021 11022 temp.parentNode.removeChild( temp ); 11023 11024 if ( display === "none" ) { 11025 display = "block"; 11026 } 11027 defaultDisplayMap[ nodeName ] = display; 11028 11029 return display; 11030} 11031 11032function showHide( elements, show ) { 11033 var display, elem, 11034 values = [], 11035 index = 0, 11036 length = elements.length; 11037 11038 // Determine new display value for elements that need to change 11039 for ( ; index < length; index++ ) { 11040 elem = elements[ index ]; 11041 if ( !elem.style ) { 11042 continue; 11043 } 11044 11045 display = elem.style.display; 11046 if ( show ) { 11047 11048 // Since we force visibility upon cascade-hidden elements, an immediate (and slow) 11049 // check is required in this first loop unless we have a nonempty display value (either 11050 // inline or about-to-be-restored) 11051 if ( display === "none" ) { 11052 values[ index ] = dataPriv.get( elem, "display" ) || null; 11053 if ( !values[ index ] ) { 11054 elem.style.display = ""; 11055 } 11056 } 11057 if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) { 11058 values[ index ] = getDefaultDisplay( elem ); 11059 } 11060 } else { 11061 if ( display !== "none" ) { 11062 values[ index ] = "none"; 11063 11064 // Remember what we're overwriting 11065 dataPriv.set( elem, "display", display ); 11066 } 11067 } 11068 } 11069 11070 // Set the display of the elements in a second loop to avoid constant reflow 11071 for ( index = 0; index < length; index++ ) { 11072 if ( values[ index ] != null ) { 11073 elements[ index ].style.display = values[ index ]; 11074 } 11075 } 11076 11077 return elements; 11078} 11079 11080jQuery.fn.extend( { 11081 show: function() { 11082 return showHide( this, true ); 11083 }, 11084 hide: function() { 11085 return showHide( this ); 11086 }, 11087 toggle: function( state ) { 11088 if ( typeof state === "boolean" ) { 11089 return state ? this.show() : this.hide(); 11090 } 11091 11092 return this.each( function() { 11093 if ( isHiddenWithinTree( this ) ) { 11094 jQuery( this ).show(); 11095 } else { 11096 jQuery( this ).hide(); 11097 } 11098 } ); 11099 } 11100} ); 11101var rcheckableType = ( /^(?:checkbox|radio)$/i ); 11102 11103var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]+)/i ); 11104 11105var rscriptType = ( /^$|^module$|\/(?:java|ecma)script/i ); 11106 11107 11108 11109// We have to close these tags to support XHTML (#13200) 11110var wrapMap = { 11111 11112 // Support: IE <=9 only 11113 option: [ 1, "<select multiple='multiple'>", "</select>" ], 11114 11115 // XHTML parsers do not magically insert elements in the 11116 // same way that tag soup parsers do. So we cannot shorten 11117 // this by omitting <tbody> or other required elements. 11118 thead: [ 1, "<table>", "</table>" ], 11119 col: [ 2, "<table><colgroup>", "</colgroup></table>" ], 11120 tr: [ 2, "<table><tbody>", "</tbody></table>" ], 11121 td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ], 11122 11123 _default: [ 0, "", "" ] 11124}; 11125 11126// Support: IE <=9 only 11127wrapMap.optgroup = wrapMap.option; 11128 11129wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; 11130wrapMap.th = wrapMap.td; 11131 11132 11133function getAll( context, tag ) { 11134 11135 // Support: IE <=9 - 11 only 11136 // Use typeof to avoid zero-argument method invocation on host objects (#15151) 11137 var ret; 11138 11139 if ( typeof context.getElementsByTagName !== "undefined" ) { 11140 ret = context.getElementsByTagName( tag || "*" ); 11141 11142 } else if ( typeof context.querySelectorAll !== "undefined" ) { 11143 ret = context.querySelectorAll( tag || "*" ); 11144 11145 } else { 11146 ret = []; 11147 } 11148 11149 if ( tag === undefined || tag && nodeName( context, tag ) ) { 11150 return jQuery.merge( [ context ], ret ); 11151 } 11152 11153 return ret; 11154} 11155 11156 11157// Mark scripts as having already been evaluated 11158function setGlobalEval( elems, refElements ) { 11159 var i = 0, 11160 l = elems.length; 11161 11162 for ( ; i < l; i++ ) { 11163 dataPriv.set( 11164 elems[ i ], 11165 "globalEval", 11166 !refElements || dataPriv.get( refElements[ i ], "globalEval" ) 11167 ); 11168 } 11169} 11170 11171 11172var rhtml = /<|&#?\w+;/; 11173 11174function buildFragment( elems, context, scripts, selection, ignored ) { 11175 var elem, tmp, tag, wrap, contains, j, 11176 fragment = context.createDocumentFragment(), 11177 nodes = [], 11178 i = 0, 11179 l = elems.length; 11180 11181 for ( ; i < l; i++ ) { 11182 elem = elems[ i ]; 11183 11184 if ( elem || elem === 0 ) { 11185 11186 // Add nodes directly 11187 if ( toType( elem ) === "object" ) { 11188 11189 // Support: Android <=4.0 only, PhantomJS 1 only 11190 // push.apply(_, arraylike) throws on ancient WebKit 11191 jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); 11192 11193 // Convert non-html into a text node 11194 } else if ( !rhtml.test( elem ) ) { 11195 nodes.push( context.createTextNode( elem ) ); 11196 11197 // Convert html into DOM nodes 11198 } else { 11199 tmp = tmp || fragment.appendChild( context.createElement( "div" ) ); 11200 11201 // Deserialize a standard representation 11202 tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase(); 11203 wrap = wrapMap[ tag ] || wrapMap._default; 11204 tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ]; 11205 11206 // Descend through wrappers to the right content 11207 j = wrap[ 0 ]; 11208 while ( j-- ) { 11209 tmp = tmp.lastChild; 11210 } 11211 11212 // Support: Android <=4.0 only, PhantomJS 1 only 11213 // push.apply(_, arraylike) throws on ancient WebKit 11214 jQuery.merge( nodes, tmp.childNodes ); 11215 11216 // Remember the top-level container 11217 tmp = fragment.firstChild; 11218 11219 // Ensure the created nodes are orphaned (#12392) 11220 tmp.textContent = ""; 11221 } 11222 } 11223 } 11224 11225 // Remove wrapper from fragment 11226 fragment.textContent = ""; 11227 11228 i = 0; 11229 while ( ( elem = nodes[ i++ ] ) ) { 11230 11231 // Skip elements already in the context collection (trac-4087) 11232 if ( selection && jQuery.inArray( elem, selection ) > -1 ) { 11233 if ( ignored ) { 11234 ignored.push( elem ); 11235 } 11236 continue; 11237 } 11238 11239 contains = jQuery.contains( elem.ownerDocument, elem ); 11240 11241 // Append to fragment 11242 tmp = getAll( fragment.appendChild( elem ), "script" ); 11243 11244 // Preserve script evaluation history 11245 if ( contains ) { 11246 setGlobalEval( tmp ); 11247 } 11248 11249 // Capture executables 11250 if ( scripts ) { 11251 j = 0; 11252 while ( ( elem = tmp[ j++ ] ) ) { 11253 if ( rscriptType.test( elem.type || "" ) ) { 11254 scripts.push( elem ); 11255 } 11256 } 11257 } 11258 } 11259 11260 return fragment; 11261} 11262 11263 11264( function() { 11265 var fragment = document.createDocumentFragment(), 11266 div = fragment.appendChild( document.createElement( "div" ) ), 11267 input = document.createElement( "input" ); 11268 11269 // Support: Android 4.0 - 4.3 only 11270 // Check state lost if the name is set (#11217) 11271 // Support: Windows Web Apps (WWA) 11272 // `name` and `type` must use .setAttribute for WWA (#14901) 11273 input.setAttribute( "type", "radio" ); 11274 input.setAttribute( "checked", "checked" ); 11275 input.setAttribute( "name", "t" ); 11276 11277 div.appendChild( input ); 11278 11279 // Support: Android <=4.1 only 11280 // Older WebKit doesn't clone checked state correctly in fragments 11281 support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; 11282 11283 // Support: IE <=11 only 11284 // Make sure textarea (and checkbox) defaultValue is properly cloned 11285 div.innerHTML = "<textarea>x</textarea>"; 11286 support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; 11287} )(); 11288var documentElement = document.documentElement; 11289 11290 11291 11292var 11293 rkeyEvent = /^key/, 11294 rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, 11295 rtypenamespace = /^([^.]*)(?:\.(.+)|)/; 11296 11297function returnTrue() { 11298 return true; 11299} 11300 11301function returnFalse() { 11302 return false; 11303} 11304 11305// Support: IE <=9 only 11306// See #13393 for more info 11307function safeActiveElement() { 11308 try { 11309 return document.activeElement; 11310 } catch ( err ) { } 11311} 11312 11313function on( elem, types, selector, data, fn, one ) { 11314 var origFn, type; 11315 11316 // Types can be a map of types/handlers 11317 if ( typeof types === "object" ) { 11318 11319 // ( types-Object, selector, data ) 11320 if ( typeof selector !== "string" ) { 11321 11322 // ( types-Object, data ) 11323 data = data || selector; 11324 selector = undefined; 11325 } 11326 for ( type in types ) { 11327 on( elem, type, selector, data, types[ type ], one ); 11328 } 11329 return elem; 11330 } 11331 11332 if ( data == null && fn == null ) { 11333 11334 // ( types, fn ) 11335 fn = selector; 11336 data = selector = undefined; 11337 } else if ( fn == null ) { 11338 if ( typeof selector === "string" ) { 11339 11340 // ( types, selector, fn ) 11341 fn = data; 11342 data = undefined; 11343 } else { 11344 11345 // ( types, data, fn ) 11346 fn = data; 11347 data = selector; 11348 selector = undefined; 11349 } 11350 } 11351 if ( fn === false ) { 11352 fn = returnFalse; 11353 } else if ( !fn ) { 11354 return elem; 11355 } 11356 11357 if ( one === 1 ) { 11358 origFn = fn; 11359 fn = function( event ) { 11360 11361 // Can use an empty set, since event contains the info 11362 jQuery().off( event ); 11363 return origFn.apply( this, arguments ); 11364 }; 11365 11366 // Use same guid so caller can remove using origFn 11367 fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); 11368 } 11369 return elem.each( function() { 11370 jQuery.event.add( this, types, fn, data, selector ); 11371 } ); 11372} 11373 11374/* 11375 * Helper functions for managing events -- not part of the public interface. 11376 * Props to Dean Edwards' addEvent library for many of the ideas. 11377 */ 11378jQuery.event = { 11379 11380 global: {}, 11381 11382 add: function( elem, types, handler, data, selector ) { 11383 11384 var handleObjIn, eventHandle, tmp, 11385 events, t, handleObj, 11386 special, handlers, type, namespaces, origType, 11387 elemData = dataPriv.get( elem ); 11388 11389 // Don't attach events to noData or text/comment nodes (but allow plain objects) 11390 if ( !elemData ) { 11391 return; 11392 } 11393 11394 // Caller can pass in an object of custom data in lieu of the handler 11395 if ( handler.handler ) { 11396 handleObjIn = handler; 11397 handler = handleObjIn.handler; 11398 selector = handleObjIn.selector; 11399 } 11400 11401 // Ensure that invalid selectors throw exceptions at attach time 11402 // Evaluate against documentElement in case elem is a non-element node (e.g., document) 11403 if ( selector ) { 11404 jQuery.find.matchesSelector( documentElement, selector ); 11405 } 11406 11407 // Make sure that the handler has a unique ID, used to find/remove it later 11408 if ( !handler.guid ) { 11409 handler.guid = jQuery.guid++; 11410 } 11411 11412 // Init the element's event structure and main handler, if this is the first 11413 if ( !( events = elemData.events ) ) { 11414 events = elemData.events = {}; 11415 } 11416 if ( !( eventHandle = elemData.handle ) ) { 11417 eventHandle = elemData.handle = function( e ) { 11418 11419 // Discard the second event of a jQuery.event.trigger() and 11420 // when an event is called after a page has unloaded 11421 return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? 11422 jQuery.event.dispatch.apply( elem, arguments ) : undefined; 11423 }; 11424 } 11425 11426 // Handle multiple events separated by a space 11427 types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; 11428 t = types.length; 11429 while ( t-- ) { 11430 tmp = rtypenamespace.exec( types[ t ] ) || []; 11431 type = origType = tmp[ 1 ]; 11432 namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); 11433 11434 // There *must* be a type, no attaching namespace-only handlers 11435 if ( !type ) { 11436 continue; 11437 } 11438 11439 // If event changes its type, use the special event handlers for the changed type 11440 special = jQuery.event.special[ type ] || {}; 11441 11442 // If selector defined, determine special event api type, otherwise given type 11443 type = ( selector ? special.delegateType : special.bindType ) || type; 11444 11445 // Update special based on newly reset type 11446 special = jQuery.event.special[ type ] || {}; 11447 11448 // handleObj is passed to all event handlers 11449 handleObj = jQuery.extend( { 11450 type: type, 11451 origType: origType, 11452 data: data, 11453 handler: handler, 11454 guid: handler.guid, 11455 selector: selector, 11456 needsContext: selector && jQuery.expr.match.needsContext.test( selector ), 11457 namespace: namespaces.join( "." ) 11458 }, handleObjIn ); 11459 11460 // Init the event handler queue if we're the first 11461 if ( !( handlers = events[ type ] ) ) { 11462 handlers = events[ type ] = []; 11463 handlers.delegateCount = 0; 11464 11465 // Only use addEventListener if the special events handler returns false 11466 if ( !special.setup || 11467 special.setup.call( elem, data, namespaces, eventHandle ) === false ) { 11468 11469 if ( elem.addEventListener ) { 11470 elem.addEventListener( type, eventHandle ); 11471 } 11472 } 11473 } 11474 11475 if ( special.add ) { 11476 special.add.call( elem, handleObj ); 11477 11478 if ( !handleObj.handler.guid ) { 11479 handleObj.handler.guid = handler.guid; 11480 } 11481 } 11482 11483 // Add to the element's handler list, delegates in front 11484 if ( selector ) { 11485 handlers.splice( handlers.delegateCount++, 0, handleObj ); 11486 } else { 11487 handlers.push( handleObj ); 11488 } 11489 11490 // Keep track of which events have ever been used, for event optimization 11491 jQuery.event.global[ type ] = true; 11492 } 11493 11494 }, 11495 11496 // Detach an event or set of events from an element 11497 remove: function( elem, types, handler, selector, mappedTypes ) { 11498 11499 var j, origCount, tmp, 11500 events, t, handleObj, 11501 special, handlers, type, namespaces, origType, 11502 elemData = dataPriv.hasData( elem ) && dataPriv.get( elem ); 11503 11504 if ( !elemData || !( events = elemData.events ) ) { 11505 return; 11506 } 11507 11508 // Once for each type.namespace in types; type may be omitted 11509 types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; 11510 t = types.length; 11511 while ( t-- ) { 11512 tmp = rtypenamespace.exec( types[ t ] ) || []; 11513 type = origType = tmp[ 1 ]; 11514 namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); 11515 11516 // Unbind all events (on this namespace, if provided) for the element 11517 if ( !type ) { 11518 for ( type in events ) { 11519 jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); 11520 } 11521 continue; 11522 } 11523 11524 special = jQuery.event.special[ type ] || {}; 11525 type = ( selector ? special.delegateType : special.bindType ) || type; 11526 handlers = events[ type ] || []; 11527 tmp = tmp[ 2 ] && 11528 new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ); 11529 11530 // Remove matching events 11531 origCount = j = handlers.length; 11532 while ( j-- ) { 11533 handleObj = handlers[ j ]; 11534 11535 if ( ( mappedTypes || origType === handleObj.origType ) && 11536 ( !handler || handler.guid === handleObj.guid ) && 11537 ( !tmp || tmp.test( handleObj.namespace ) ) && 11538 ( !selector || selector === handleObj.selector || 11539 selector === "**" && handleObj.selector ) ) { 11540 handlers.splice( j, 1 ); 11541 11542 if ( handleObj.selector ) { 11543 handlers.delegateCount--; 11544 } 11545 if ( special.remove ) { 11546 special.remove.call( elem, handleObj ); 11547 } 11548 } 11549 } 11550 11551 // Remove generic event handler if we removed something and no more handlers exist 11552 // (avoids potential for endless recursion during removal of special event handlers) 11553 if ( origCount && !handlers.length ) { 11554 if ( !special.teardown || 11555 special.teardown.call( elem, namespaces, elemData.handle ) === false ) { 11556 11557 jQuery.removeEvent( elem, type, elemData.handle ); 11558 } 11559 11560 delete events[ type ]; 11561 } 11562 } 11563 11564 // Remove data and the expando if it's no longer used 11565 if ( jQuery.isEmptyObject( events ) ) { 11566 dataPriv.remove( elem, "handle events" ); 11567 } 11568 }, 11569 11570 dispatch: function( nativeEvent ) { 11571 11572 // Make a writable jQuery.Event from the native event object 11573 var event = jQuery.event.fix( nativeEvent ); 11574 11575 var i, j, ret, matched, handleObj, handlerQueue, 11576 args = new Array( arguments.length ), 11577 handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [], 11578 special = jQuery.event.special[ event.type ] || {}; 11579 11580 // Use the fix-ed jQuery.Event rather than the (read-only) native event 11581 args[ 0 ] = event; 11582 11583 for ( i = 1; i < arguments.length; i++ ) { 11584 args[ i ] = arguments[ i ]; 11585 } 11586 11587 event.delegateTarget = this; 11588 11589 // Call the preDispatch hook for the mapped type, and let it bail if desired 11590 if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { 11591 return; 11592 } 11593 11594 // Determine handlers 11595 handlerQueue = jQuery.event.handlers.call( this, event, handlers ); 11596 11597 // Run delegates first; they may want to stop propagation beneath us 11598 i = 0; 11599 while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) { 11600 event.currentTarget = matched.elem; 11601 11602 j = 0; 11603 while ( ( handleObj = matched.handlers[ j++ ] ) && 11604 !event.isImmediatePropagationStopped() ) { 11605 11606 // Triggered event must either 1) have no namespace, or 2) have namespace(s) 11607 // a subset or equal to those in the bound event (both can have no namespace). 11608 if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) { 11609 11610 event.handleObj = handleObj; 11611 event.data = handleObj.data; 11612 11613 ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle || 11614 handleObj.handler ).apply( matched.elem, args ); 11615 11616 if ( ret !== undefined ) { 11617 if ( ( event.result = ret ) === false ) { 11618 event.preventDefault(); 11619 event.stopPropagation(); 11620 } 11621 } 11622 } 11623 } 11624 } 11625 11626 // Call the postDispatch hook for the mapped type 11627 if ( special.postDispatch ) { 11628 special.postDispatch.call( this, event ); 11629 } 11630 11631 return event.result; 11632 }, 11633 11634 handlers: function( event, handlers ) { 11635 var i, handleObj, sel, matchedHandlers, matchedSelectors, 11636 handlerQueue = [], 11637 delegateCount = handlers.delegateCount, 11638 cur = event.target; 11639 11640 // Find delegate handlers 11641 if ( delegateCount && 11642 11643 // Support: IE <=9 11644 // Black-hole SVG <use> instance trees (trac-13180) 11645 cur.nodeType && 11646 11647 // Support: Firefox <=42 11648 // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861) 11649 // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click 11650 // Support: IE 11 only 11651 // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343) 11652 !( event.type === "click" && event.button >= 1 ) ) { 11653 11654 for ( ; cur !== this; cur = cur.parentNode || this ) { 11655 11656 // Don't check non-elements (#13208) 11657 // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) 11658 if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) { 11659 matchedHandlers = []; 11660 matchedSelectors = {}; 11661 for ( i = 0; i < delegateCount; i++ ) { 11662 handleObj = handlers[ i ]; 11663 11664 // Don't conflict with Object.prototype properties (#13203) 11665 sel = handleObj.selector + " "; 11666 11667 if ( matchedSelectors[ sel ] === undefined ) { 11668 matchedSelectors[ sel ] = handleObj.needsContext ? 11669 jQuery( sel, this ).index( cur ) > -1 : 11670 jQuery.find( sel, this, null, [ cur ] ).length; 11671 } 11672 if ( matchedSelectors[ sel ] ) { 11673 matchedHandlers.push( handleObj ); 11674 } 11675 } 11676 if ( matchedHandlers.length ) { 11677 handlerQueue.push( { elem: cur, handlers: matchedHandlers } ); 11678 } 11679 } 11680 } 11681 } 11682 11683 // Add the remaining (directly-bound) handlers 11684 cur = this; 11685 if ( delegateCount < handlers.length ) { 11686 handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } ); 11687 } 11688 11689 return handlerQueue; 11690 }, 11691 11692 addProp: function( name, hook ) { 11693 Object.defineProperty( jQuery.Event.prototype, name, { 11694 enumerable: true, 11695 configurable: true, 11696 11697 get: isFunction( hook ) ? 11698 function() { 11699 if ( this.originalEvent ) { 11700 return hook( this.originalEvent ); 11701 } 11702 } : 11703 function() { 11704 if ( this.originalEvent ) { 11705 return this.originalEvent[ name ]; 11706 } 11707 }, 11708 11709 set: function( value ) { 11710 Object.defineProperty( this, name, { 11711 enumerable: true, 11712 configurable: true, 11713 writable: true, 11714 value: value 11715 } ); 11716 } 11717 } ); 11718 }, 11719 11720 fix: function( originalEvent ) { 11721 return originalEvent[ jQuery.expando ] ? 11722 originalEvent : 11723 new jQuery.Event( originalEvent ); 11724 }, 11725 11726 special: { 11727 load: { 11728 11729 // Prevent triggered image.load events from bubbling to window.load 11730 noBubble: true 11731 }, 11732 focus: { 11733 11734 // Fire native event if possible so blur/focus sequence is correct 11735 trigger: function() { 11736 if ( this !== safeActiveElement() && this.focus ) { 11737 this.focus(); 11738 return false; 11739 } 11740 }, 11741 delegateType: "focusin" 11742 }, 11743 blur: { 11744 trigger: function() { 11745 if ( this === safeActiveElement() && this.blur ) { 11746 this.blur(); 11747 return false; 11748 } 11749 }, 11750 delegateType: "focusout" 11751 }, 11752 click: { 11753 11754 // For checkbox, fire native event so checked state will be right 11755 trigger: function() { 11756 if ( this.type === "checkbox" && this.click && nodeName( this, "input" ) ) { 11757 this.click(); 11758 return false; 11759 } 11760 }, 11761 11762 // For cross-browser consistency, don't fire native .click() on links 11763 _default: function( event ) { 11764 return nodeName( event.target, "a" ); 11765 } 11766 }, 11767 11768 beforeunload: { 11769 postDispatch: function( event ) { 11770 11771 // Support: Firefox 20+ 11772 // Firefox doesn't alert if the returnValue field is not set. 11773 if ( event.result !== undefined && event.originalEvent ) { 11774 event.originalEvent.returnValue = event.result; 11775 } 11776 } 11777 } 11778 } 11779}; 11780 11781jQuery.removeEvent = function( elem, type, handle ) { 11782 11783 // This "if" is needed for plain objects 11784 if ( elem.removeEventListener ) { 11785 elem.removeEventListener( type, handle ); 11786 } 11787}; 11788 11789jQuery.Event = function( src, props ) { 11790 11791 // Allow instantiation without the 'new' keyword 11792 if ( !( this instanceof jQuery.Event ) ) { 11793 return new jQuery.Event( src, props ); 11794 } 11795 11796 // Event object 11797 if ( src && src.type ) { 11798 this.originalEvent = src; 11799 this.type = src.type; 11800 11801 // Events bubbling up the document may have been marked as prevented 11802 // by a handler lower down the tree; reflect the correct value. 11803 this.isDefaultPrevented = src.defaultPrevented || 11804 src.defaultPrevented === undefined && 11805 11806 // Support: Android <=2.3 only 11807 src.returnValue === false ? 11808 returnTrue : 11809 returnFalse; 11810 11811 // Create target properties 11812 // Support: Safari <=6 - 7 only 11813 // Target should not be a text node (#504, #13143) 11814 this.target = ( src.target && src.target.nodeType === 3 ) ? 11815 src.target.parentNode : 11816 src.target; 11817 11818 this.currentTarget = src.currentTarget; 11819 this.relatedTarget = src.relatedTarget; 11820 11821 // Event type 11822 } else { 11823 this.type = src; 11824 } 11825 11826 // Put explicitly provided properties onto the event object 11827 if ( props ) { 11828 jQuery.extend( this, props ); 11829 } 11830 11831 // Create a timestamp if incoming event doesn't have one 11832 this.timeStamp = src && src.timeStamp || Date.now(); 11833 11834 // Mark it as fixed 11835 this[ jQuery.expando ] = true; 11836}; 11837 11838// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding 11839// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html 11840jQuery.Event.prototype = { 11841 constructor: jQuery.Event, 11842 isDefaultPrevented: returnFalse, 11843 isPropagationStopped: returnFalse, 11844 isImmediatePropagationStopped: returnFalse, 11845 isSimulated: false, 11846 11847 preventDefault: function() { 11848 var e = this.originalEvent; 11849 11850 this.isDefaultPrevented = returnTrue; 11851 11852 if ( e && !this.isSimulated ) { 11853 e.preventDefault(); 11854 } 11855 }, 11856 stopPropagation: function() { 11857 var e = this.originalEvent; 11858 11859 this.isPropagationStopped = returnTrue; 11860 11861 if ( e && !this.isSimulated ) { 11862 e.stopPropagation(); 11863 } 11864 }, 11865 stopImmediatePropagation: function() { 11866 var e = this.originalEvent; 11867 11868 this.isImmediatePropagationStopped = returnTrue; 11869 11870 if ( e && !this.isSimulated ) { 11871 e.stopImmediatePropagation(); 11872 } 11873 11874 this.stopPropagation(); 11875 } 11876}; 11877 11878// Includes all common event props including KeyEvent and MouseEvent specific props 11879jQuery.each( { 11880 altKey: true, 11881 bubbles: true, 11882 cancelable: true, 11883 changedTouches: true, 11884 ctrlKey: true, 11885 detail: true, 11886 eventPhase: true, 11887 metaKey: true, 11888 pageX: true, 11889 pageY: true, 11890 shiftKey: true, 11891 view: true, 11892 "char": true, 11893 charCode: true, 11894 key: true, 11895 keyCode: true, 11896 button: true, 11897 buttons: true, 11898 clientX: true, 11899 clientY: true, 11900 offsetX: true, 11901 offsetY: true, 11902 pointerId: true, 11903 pointerType: true, 11904 screenX: true, 11905 screenY: true, 11906 targetTouches: true, 11907 toElement: true, 11908 touches: true, 11909 11910 which: function( event ) { 11911 var button = event.button; 11912 11913 // Add which for key events 11914 if ( event.which == null && rkeyEvent.test( event.type ) ) { 11915 return event.charCode != null ? event.charCode : event.keyCode; 11916 } 11917 11918 // Add which for click: 1 === left; 2 === middle; 3 === right 11919 if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) { 11920 if ( button & 1 ) { 11921 return 1; 11922 } 11923 11924 if ( button & 2 ) { 11925 return 3; 11926 } 11927 11928 if ( button & 4 ) { 11929 return 2; 11930 } 11931 11932 return 0; 11933 } 11934 11935 return event.which; 11936 } 11937}, jQuery.event.addProp ); 11938 11939// Create mouseenter/leave events using mouseover/out and event-time checks 11940// so that event delegation works in jQuery. 11941// Do the same for pointerenter/pointerleave and pointerover/pointerout 11942// 11943// Support: Safari 7 only 11944// Safari sends mouseenter too often; see: 11945// https://bugs.chromium.org/p/chromium/issues/detail?id=470258 11946// for the description of the bug (it existed in older Chrome versions as well). 11947jQuery.each( { 11948 mouseenter: "mouseover", 11949 mouseleave: "mouseout", 11950 pointerenter: "pointerover", 11951 pointerleave: "pointerout" 11952}, function( orig, fix ) { 11953 jQuery.event.special[ orig ] = { 11954 delegateType: fix, 11955 bindType: fix, 11956 11957 handle: function( event ) { 11958 var ret, 11959 target = this, 11960 related = event.relatedTarget, 11961 handleObj = event.handleObj; 11962 11963 // For mouseenter/leave call the handler if related is outside the target. 11964 // NB: No relatedTarget if the mouse left/entered the browser window 11965 if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) { 11966 event.type = handleObj.origType; 11967 ret = handleObj.handler.apply( this, arguments ); 11968 event.type = fix; 11969 } 11970 return ret; 11971 } 11972 }; 11973} ); 11974 11975jQuery.fn.extend( { 11976 11977 on: function( types, selector, data, fn ) { 11978 return on( this, types, selector, data, fn ); 11979 }, 11980 one: function( types, selector, data, fn ) { 11981 return on( this, types, selector, data, fn, 1 ); 11982 }, 11983 off: function( types, selector, fn ) { 11984 var handleObj, type; 11985 if ( types && types.preventDefault && types.handleObj ) { 11986 11987 // ( event ) dispatched jQuery.Event 11988 handleObj = types.handleObj; 11989 jQuery( types.delegateTarget ).off( 11990 handleObj.namespace ? 11991 handleObj.origType + "." + handleObj.namespace : 11992 handleObj.origType, 11993 handleObj.selector, 11994 handleObj.handler 11995 ); 11996 return this; 11997 } 11998 if ( typeof types === "object" ) { 11999 12000 // ( types-object [, selector] ) 12001 for ( type in types ) { 12002 this.off( type, selector, types[ type ] ); 12003 } 12004 return this; 12005 } 12006 if ( selector === false || typeof selector === "function" ) { 12007 12008 // ( types [, fn] ) 12009 fn = selector; 12010 selector = undefined; 12011 } 12012 if ( fn === false ) { 12013 fn = returnFalse; 12014 } 12015 return this.each( function() { 12016 jQuery.event.remove( this, types, fn, selector ); 12017 } ); 12018 } 12019} ); 12020 12021 12022var 12023 12024 /* eslint-disable max-len */ 12025 12026 // See https://github.com/eslint/eslint/issues/3229 12027 rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, 12028 12029 /* eslint-enable */ 12030 12031 // Support: IE <=10 - 11, Edge 12 - 13 only 12032 // In IE/Edge using regex groups here causes severe slowdowns. 12033 // See https://connect.microsoft.com/IE/feedback/details/1736512/ 12034 rnoInnerhtml = /<script|<style|<link/i, 12035 12036 // checked="checked" or checked 12037 rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, 12038 rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g; 12039 12040// Prefer a tbody over its parent table for containing new rows 12041function manipulationTarget( elem, content ) { 12042 if ( nodeName( elem, "table" ) && 12043 nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { 12044 12045 return jQuery( elem ).children( "tbody" )[ 0 ] || elem; 12046 } 12047 12048 return elem; 12049} 12050 12051// Replace/restore the type attribute of script elements for safe DOM manipulation 12052function disableScript( elem ) { 12053 elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; 12054 return elem; 12055} 12056function restoreScript( elem ) { 12057 if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) { 12058 elem.type = elem.type.slice( 5 ); 12059 } else { 12060 elem.removeAttribute( "type" ); 12061 } 12062 12063 return elem; 12064} 12065 12066function cloneCopyEvent( src, dest ) { 12067 var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events; 12068 12069 if ( dest.nodeType !== 1 ) { 12070 return; 12071 } 12072 12073 // 1. Copy private data: events, handlers, etc. 12074 if ( dataPriv.hasData( src ) ) { 12075 pdataOld = dataPriv.access( src ); 12076 pdataCur = dataPriv.set( dest, pdataOld ); 12077 events = pdataOld.events; 12078 12079 if ( events ) { 12080 delete pdataCur.handle; 12081 pdataCur.events = {}; 12082 12083 for ( type in events ) { 12084 for ( i = 0, l = events[ type ].length; i < l; i++ ) { 12085 jQuery.event.add( dest, type, events[ type ][ i ] ); 12086 } 12087 } 12088 } 12089 } 12090 12091 // 2. Copy user data 12092 if ( dataUser.hasData( src ) ) { 12093 udataOld = dataUser.access( src ); 12094 udataCur = jQuery.extend( {}, udataOld ); 12095 12096 dataUser.set( dest, udataCur ); 12097 } 12098} 12099 12100// Fix IE bugs, see support tests 12101function fixInput( src, dest ) { 12102 var nodeName = dest.nodeName.toLowerCase(); 12103 12104 // Fails to persist the checked state of a cloned checkbox or radio button. 12105 if ( nodeName === "input" && rcheckableType.test( src.type ) ) { 12106 dest.checked = src.checked; 12107 12108 // Fails to return the selected option to the default selected state when cloning options 12109 } else if ( nodeName === "input" || nodeName === "textarea" ) { 12110 dest.defaultValue = src.defaultValue; 12111 } 12112} 12113 12114function domManip( collection, args, callback, ignored ) { 12115 12116 // Flatten any nested arrays 12117 args = concat.apply( [], args ); 12118 12119 var fragment, first, scripts, hasScripts, node, doc, 12120 i = 0, 12121 l = collection.length, 12122 iNoClone = l - 1, 12123 value = args[ 0 ], 12124 valueIsFunction = isFunction( value ); 12125 12126 // We can't cloneNode fragments that contain checked, in WebKit 12127 if ( valueIsFunction || 12128 ( l > 1 && typeof value === "string" && 12129 !support.checkClone && rchecked.test( value ) ) ) { 12130 return collection.each( function( index ) { 12131 var self = collection.eq( index ); 12132 if ( valueIsFunction ) { 12133 args[ 0 ] = value.call( this, index, self.html() ); 12134 } 12135 domManip( self, args, callback, ignored ); 12136 } ); 12137 } 12138 12139 if ( l ) { 12140 fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored ); 12141 first = fragment.firstChild; 12142 12143 if ( fragment.childNodes.length === 1 ) { 12144 fragment = first; 12145 } 12146 12147 // Require either new content or an interest in ignored elements to invoke the callback 12148 if ( first || ignored ) { 12149 scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); 12150 hasScripts = scripts.length; 12151 12152 // Use the original fragment for the last item 12153 // instead of the first because it can end up 12154 // being emptied incorrectly in certain situations (#8070). 12155 for ( ; i < l; i++ ) { 12156 node = fragment; 12157 12158 if ( i !== iNoClone ) { 12159 node = jQuery.clone( node, true, true ); 12160 12161 // Keep references to cloned scripts for later restoration 12162 if ( hasScripts ) { 12163 12164 // Support: Android <=4.0 only, PhantomJS 1 only 12165 // push.apply(_, arraylike) throws on ancient WebKit 12166 jQuery.merge( scripts, getAll( node, "script" ) ); 12167 } 12168 } 12169 12170 callback.call( collection[ i ], node, i ); 12171 } 12172 12173 if ( hasScripts ) { 12174 doc = scripts[ scripts.length - 1 ].ownerDocument; 12175 12176 // Reenable scripts 12177 jQuery.map( scripts, restoreScript ); 12178 12179 // Evaluate executable scripts on first document insertion 12180 for ( i = 0; i < hasScripts; i++ ) { 12181 node = scripts[ i ]; 12182 if ( rscriptType.test( node.type || "" ) && 12183 !dataPriv.access( node, "globalEval" ) && 12184 jQuery.contains( doc, node ) ) { 12185 12186 if ( node.src && ( node.type || "" ).toLowerCase() !== "module" ) { 12187 12188 // Optional AJAX dependency, but won't run scripts if not present 12189 if ( jQuery._evalUrl ) { 12190 jQuery._evalUrl( node.src ); 12191 } 12192 } else { 12193 DOMEval( node.textContent.replace( rcleanScript, "" ), doc, node ); 12194 } 12195 } 12196 } 12197 } 12198 } 12199 } 12200 12201 return collection; 12202} 12203 12204function remove( elem, selector, keepData ) { 12205 var node, 12206 nodes = selector ? jQuery.filter( selector, elem ) : elem, 12207 i = 0; 12208 12209 for ( ; ( node = nodes[ i ] ) != null; i++ ) { 12210 if ( !keepData && node.nodeType === 1 ) { 12211 jQuery.cleanData( getAll( node ) ); 12212 } 12213 12214 if ( node.parentNode ) { 12215 if ( keepData && jQuery.contains( node.ownerDocument, node ) ) { 12216 setGlobalEval( getAll( node, "script" ) ); 12217 } 12218 node.parentNode.removeChild( node ); 12219 } 12220 } 12221 12222 return elem; 12223} 12224 12225jQuery.extend( { 12226 htmlPrefilter: function( html ) { 12227 return html.replace( rxhtmlTag, "<$1></$2>" ); 12228 }, 12229 12230 clone: function( elem, dataAndEvents, deepDataAndEvents ) { 12231 var i, l, srcElements, destElements, 12232 clone = elem.cloneNode( true ), 12233 inPage = jQuery.contains( elem.ownerDocument, elem ); 12234 12235 // Fix IE cloning issues 12236 if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && 12237 !jQuery.isXMLDoc( elem ) ) { 12238 12239 // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2 12240 destElements = getAll( clone ); 12241 srcElements = getAll( elem ); 12242 12243 for ( i = 0, l = srcElements.length; i < l; i++ ) { 12244 fixInput( srcElements[ i ], destElements[ i ] ); 12245 } 12246 } 12247 12248 // Copy the events from the original to the clone 12249 if ( dataAndEvents ) { 12250 if ( deepDataAndEvents ) { 12251 srcElements = srcElements || getAll( elem ); 12252 destElements = destElements || getAll( clone ); 12253 12254 for ( i = 0, l = srcElements.length; i < l; i++ ) { 12255 cloneCopyEvent( srcElements[ i ], destElements[ i ] ); 12256 } 12257 } else { 12258 cloneCopyEvent( elem, clone ); 12259 } 12260 } 12261 12262 // Preserve script evaluation history 12263 destElements = getAll( clone, "script" ); 12264 if ( destElements.length > 0 ) { 12265 setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); 12266 } 12267 12268 // Return the cloned set 12269 return clone; 12270 }, 12271 12272 cleanData: function( elems ) { 12273 var data, elem, type, 12274 special = jQuery.event.special, 12275 i = 0; 12276 12277 for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) { 12278 if ( acceptData( elem ) ) { 12279 if ( ( data = elem[ dataPriv.expando ] ) ) { 12280 if ( data.events ) { 12281 for ( type in data.events ) { 12282 if ( special[ type ] ) { 12283 jQuery.event.remove( elem, type ); 12284 12285 // This is a shortcut to avoid jQuery.event.remove's overhead 12286 } else { 12287 jQuery.removeEvent( elem, type, data.handle ); 12288 } 12289 } 12290 } 12291
vendor: 1,119 bytes, lines 12292-12336
12292 // Support: Chrome <=35 - 45+ 12293 // Assign undefined instead of using delete, see Data#remove 12294 elem[ dataPriv.expando ] = undefined; 12295 } 12296 if ( elem[ dataUser.expando ] ) { 12297 12298 // Support: Chrome <=35 - 45+ 12299 // Assign undefined instead of using delete, see Data#remove 12300 elem[ dataUser.expando ] = undefined; 12301 } 12302 } 12303 } 12304 } 12305} ); 12306 12307jQuery.fn.extend( { 12308 detach: function( selector ) { 12309 return remove( this, selector, true ); 12310 }, 12311 12312 remove: function( selector ) { 12313 return remove( this, selector ); 12314 }, 12315 12316 text: function( value ) { 12317 return access( this, function( value ) { 12318 return value === undefined ? 12319 jQuery.text( this ) : 12320 this.empty().each( function() { 12321 if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { 12322 this.textContent = value; 12323 } 12324 } ); 12325 }, null, value, arguments.length ); 12326 }, 12327 12328 append: function() { 12329 return domManip( this, arguments, function( elem ) { 12330 if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { 12331 var target = manipulationTarget( this, elem ); 12332 target.appendChild( elem ); 12333 } 12334 } ); 12335 }, 12336
vendor: 52,786 bytes, lines 12337-14391
12337 prepend: function() { 12338 return domManip( this, arguments, function( elem ) { 12339 if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { 12340 var target = manipulationTarget( this, elem ); 12341 target.insertBefore( elem, target.firstChild ); 12342 } 12343 } ); 12344 }, 12345 12346 before: function() { 12347 return domManip( this, arguments, function( elem ) { 12348 if ( this.parentNode ) { 12349 this.parentNode.insertBefore( elem, this ); 12350 } 12351 } ); 12352 }, 12353 12354 after: function() { 12355 return domManip( this, arguments, function( elem ) { 12356 if ( this.parentNode ) { 12357 this.parentNode.insertBefore( elem, this.nextSibling ); 12358 } 12359 } ); 12360 }, 12361 12362 empty: function() { 12363 var elem, 12364 i = 0; 12365 12366 for ( ; ( elem = this[ i ] ) != null; i++ ) { 12367 if ( elem.nodeType === 1 ) { 12368 12369 // Prevent memory leaks 12370 jQuery.cleanData( getAll( elem, false ) ); 12371 12372 // Remove any remaining nodes 12373 elem.textContent = ""; 12374 } 12375 } 12376 12377 return this; 12378 }, 12379 12380 clone: function( dataAndEvents, deepDataAndEvents ) { 12381 dataAndEvents = dataAndEvents == null ? false : dataAndEvents; 12382 deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; 12383 12384 return this.map( function() { 12385 return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); 12386 } ); 12387 }, 12388 12389 html: function( value ) { 12390 return access( this, function( value ) { 12391 var elem = this[ 0 ] || {}, 12392 i = 0, 12393 l = this.length; 12394 12395 if ( value === undefined && elem.nodeType === 1 ) { 12396 return elem.innerHTML; 12397 } 12398 12399 // See if we can take a shortcut and just use innerHTML 12400 if ( typeof value === "string" && !rnoInnerhtml.test( value ) && 12401 !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { 12402 12403 value = jQuery.htmlPrefilter( value ); 12404 12405 try { 12406 for ( ; i < l; i++ ) { 12407 elem = this[ i ] || {}; 12408 12409 // Remove element nodes and prevent memory leaks 12410 if ( elem.nodeType === 1 ) { 12411 jQuery.cleanData( getAll( elem, false ) ); 12412 elem.innerHTML = value; 12413 } 12414 } 12415 12416 elem = 0; 12417 12418 // If using innerHTML throws an exception, use the fallback method 12419 } catch ( e ) {} 12420 } 12421 12422 if ( elem ) { 12423 this.empty().append( value ); 12424 } 12425 }, null, value, arguments.length ); 12426 }, 12427 12428 replaceWith: function() { 12429 var ignored = []; 12430 12431 // Make the changes, replacing each non-ignored context element with the new content 12432 return domManip( this, arguments, function( elem ) { 12433 var parent = this.parentNode; 12434 12435 if ( jQuery.inArray( this, ignored ) < 0 ) { 12436 jQuery.cleanData( getAll( this ) ); 12437 if ( parent ) { 12438 parent.replaceChild( elem, this ); 12439 } 12440 } 12441 12442 // Force callback invocation 12443 }, ignored ); 12444 } 12445} ); 12446 12447jQuery.each( { 12448 appendTo: "append", 12449 prependTo: "prepend", 12450 insertBefore: "before", 12451 insertAfter: "after", 12452 replaceAll: "replaceWith" 12453}, function( name, original ) { 12454 jQuery.fn[ name ] = function( selector ) { 12455 var elems, 12456 ret = [], 12457 insert = jQuery( selector ), 12458 last = insert.length - 1, 12459 i = 0; 12460 12461 for ( ; i <= last; i++ ) { 12462 elems = i === last ? this : this.clone( true ); 12463 jQuery( insert[ i ] )[ original ]( elems ); 12464 12465 // Support: Android <=4.0 only, PhantomJS 1 only 12466 // .get() because push.apply(_, arraylike) throws on ancient WebKit 12467 push.apply( ret, elems.get() ); 12468 } 12469 12470 return this.pushStack( ret ); 12471 }; 12472} ); 12473var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); 12474 12475var getStyles = function( elem ) { 12476 12477 // Support: IE <=11 only, Firefox <=30 (#15098, #14150) 12478 // IE throws on elements created in popups 12479 // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" 12480 var view = elem.ownerDocument.defaultView; 12481 12482 if ( !view || !view.opener ) { 12483 view = window; 12484 } 12485 12486 return view.getComputedStyle( elem ); 12487 }; 12488 12489var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" ); 12490 12491 12492 12493( function() { 12494 12495 // Executing both pixelPosition & boxSizingReliable tests require only one layout 12496 // so they're executed at the same time to save the second computation. 12497 function computeStyleTests() { 12498 12499 // This is a singleton, we need to execute it only once 12500 if ( !div ) { 12501 return; 12502 } 12503 12504 container.style.cssText = "position:absolute;left:-11111px;width:60px;" + 12505 "margin-top:1px;padding:0;border:0"; 12506 div.style.cssText = 12507 "position:relative;display:block;box-sizing:border-box;overflow:scroll;" + 12508 "margin:auto;border:1px;padding:1px;" + 12509 "width:60%;top:1%"; 12510 documentElement.appendChild( container ).appendChild( div ); 12511 12512 var divStyle = window.getComputedStyle( div ); 12513 pixelPositionVal = divStyle.top !== "1%"; 12514 12515 // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44 12516 reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12; 12517 12518 // Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3 12519 // Some styles come back with percentage values, even though they shouldn't 12520 div.style.right = "60%"; 12521 pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36; 12522 12523 // Support: IE 9 - 11 only 12524 // Detect misreporting of content dimensions for box-sizing:border-box elements 12525 boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36; 12526 12527 // Support: IE 9 only 12528 // Detect overflow:scroll screwiness (gh-3699) 12529 div.style.position = "absolute"; 12530 scrollboxSizeVal = div.offsetWidth === 36 || "absolute"; 12531 12532 documentElement.removeChild( container ); 12533 12534 // Nullify the div so it wouldn't be stored in the memory and 12535 // it will also be a sign that checks already performed 12536 div = null; 12537 } 12538 12539 function roundPixelMeasures( measure ) { 12540 return Math.round( parseFloat( measure ) ); 12541 } 12542 12543 var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal, 12544 reliableMarginLeftVal, 12545 container = document.createElement( "div" ), 12546 div = document.createElement( "div" ); 12547 12548 // Finish early in limited (non-browser) environments 12549 if ( !div.style ) { 12550 return; 12551 } 12552 12553 // Support: IE <=9 - 11 only 12554 // Style of cloned element affects source element cloned (#8908) 12555 div.style.backgroundClip = "content-box"; 12556 div.cloneNode( true ).style.backgroundClip = ""; 12557 support.clearCloneStyle = div.style.backgroundClip === "content-box"; 12558 12559 jQuery.extend( support, { 12560 boxSizingReliable: function() { 12561 computeStyleTests(); 12562 return boxSizingReliableVal; 12563 }, 12564 pixelBoxStyles: function() { 12565 computeStyleTests(); 12566 return pixelBoxStylesVal; 12567 }, 12568 pixelPosition: function() { 12569 computeStyleTests(); 12570 return pixelPositionVal; 12571 }, 12572 reliableMarginLeft: function() { 12573 computeStyleTests(); 12574 return reliableMarginLeftVal; 12575 }, 12576 scrollboxSize: function() { 12577 computeStyleTests(); 12578 return scrollboxSizeVal; 12579 } 12580 } ); 12581} )(); 12582 12583 12584function curCSS( elem, name, computed ) { 12585 var width, minWidth, maxWidth, ret, 12586 12587 // Support: Firefox 51+ 12588 // Retrieving style before computed somehow 12589 // fixes an issue with getting wrong values 12590 // on detached elements 12591 style = elem.style; 12592 12593 computed = computed || getStyles( elem ); 12594 12595 // getPropertyValue is needed for: 12596 // .css('filter') (IE 9 only, #12537) 12597 // .css('--customProperty) (#3144) 12598 if ( computed ) { 12599 ret = computed.getPropertyValue( name ) || computed[ name ]; 12600 12601 if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { 12602 ret = jQuery.style( elem, name ); 12603 } 12604 12605 // A tribute to the "awesome hack by Dean Edwards" 12606 // Android Browser returns percentage for some values, 12607 // but width seems to be reliably pixels. 12608 // This is against the CSSOM draft spec: 12609 // https://drafts.csswg.org/cssom/#resolved-values 12610 if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) { 12611 12612 // Remember the original values 12613 width = style.width; 12614 minWidth = style.minWidth; 12615 maxWidth = style.maxWidth; 12616 12617 // Put in the new values to get a computed value out 12618 style.minWidth = style.maxWidth = style.width = ret; 12619 ret = computed.width; 12620 12621 // Revert the changed values 12622 style.width = width; 12623 style.minWidth = minWidth; 12624 style.maxWidth = maxWidth; 12625 } 12626 } 12627 12628 return ret !== undefined ? 12629 12630 // Support: IE <=9 - 11 only 12631 // IE returns zIndex value as an integer. 12632 ret + "" : 12633 ret; 12634} 12635 12636 12637function addGetHookIf( conditionFn, hookFn ) { 12638 12639 // Define the hook, we'll check on the first run if it's really needed. 12640 return { 12641 get: function() { 12642 if ( conditionFn() ) { 12643 12644 // Hook not needed (or it's not possible to use it due 12645 // to missing dependency), remove it. 12646 delete this.get; 12647 return; 12648 } 12649 12650 // Hook needed; redefine it so that the support test is not executed again. 12651 return ( this.get = hookFn ).apply( this, arguments ); 12652 } 12653 }; 12654} 12655 12656 12657var 12658 12659 // Swappable if display is none or starts with table 12660 // except "table", "table-cell", or "table-caption" 12661 // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display 12662 rdisplayswap = /^(none|table(?!-c[ea]).+)/, 12663 rcustomProp = /^--/, 12664 cssShow = { position: "absolute", visibility: "hidden", display: "block" }, 12665 cssNormalTransform = { 12666 letterSpacing: "0", 12667 fontWeight: "400" 12668 }, 12669 12670 cssPrefixes = [ "Webkit", "Moz", "ms" ], 12671 emptyStyle = document.createElement( "div" ).style; 12672 12673// Return a css property mapped to a potentially vendor prefixed property 12674function vendorPropName( name ) { 12675 12676 // Shortcut for names that are not vendor prefixed 12677 if ( name in emptyStyle ) { 12678 return name; 12679 } 12680 12681 // Check for vendor prefixed names 12682 var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), 12683 i = cssPrefixes.length; 12684 12685 while ( i-- ) { 12686 name = cssPrefixes[ i ] + capName; 12687 if ( name in emptyStyle ) { 12688 return name; 12689 } 12690 } 12691} 12692 12693// Return a property mapped along what jQuery.cssProps suggests or to 12694// a vendor prefixed property. 12695function finalPropName( name ) { 12696 var ret = jQuery.cssProps[ name ]; 12697 if ( !ret ) { 12698 ret = jQuery.cssProps[ name ] = vendorPropName( name ) || name; 12699 } 12700 return ret; 12701} 12702 12703function setPositiveNumber( elem, value, subtract ) { 12704 12705 // Any relative (+/-) values have already been 12706 // normalized at this point 12707 var matches = rcssNum.exec( value ); 12708 return matches ? 12709 12710 // Guard against undefined "subtract", e.g., when used as in cssHooks 12711 Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) : 12712 value; 12713} 12714 12715function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) { 12716 var i = dimension === "width" ? 1 : 0, 12717 extra = 0, 12718 delta = 0; 12719 12720 // Adjustment may not be necessary 12721 if ( box === ( isBorderBox ? "border" : "content" ) ) { 12722 return 0; 12723 } 12724 12725 for ( ; i < 4; i += 2 ) { 12726 12727 // Both box models exclude margin 12728 if ( box === "margin" ) { 12729 delta += jQuery.css( elem, box + cssExpand[ i ], true, styles ); 12730 } 12731 12732 // If we get here with a content-box, we're seeking "padding" or "border" or "margin" 12733 if ( !isBorderBox ) { 12734 12735 // Add padding 12736 delta += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); 12737 12738 // For "border" or "margin", add border 12739 if ( box !== "padding" ) { 12740 delta += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); 12741 12742 // But still keep track of it otherwise 12743 } else { 12744 extra += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); 12745 } 12746 12747 // If we get here with a border-box (content + padding + border), we're seeking "content" or 12748 // "padding" or "margin" 12749 } else { 12750 12751 // For "content", subtract padding 12752 if ( box === "content" ) { 12753 delta -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); 12754 } 12755 12756 // For "content" or "padding", subtract border 12757 if ( box !== "margin" ) { 12758 delta -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); 12759 } 12760 } 12761 } 12762 12763 // Account for positive content-box scroll gutter when requested by providing computedVal 12764 if ( !isBorderBox && computedVal >= 0 ) { 12765 12766 // offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border 12767 // Assuming integer scroll gutter, subtract the rest and round down 12768 delta += Math.max( 0, Math.ceil( 12769 elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - 12770 computedVal - 12771 delta - 12772 extra - 12773 0.5 12774 ) ); 12775 } 12776 12777 return delta; 12778} 12779 12780function getWidthOrHeight( elem, dimension, extra ) { 12781 12782 // Start with computed style 12783 var styles = getStyles( elem ), 12784 val = curCSS( elem, dimension, styles ), 12785 isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box", 12786 valueIsBorderBox = isBorderBox; 12787 12788 // Support: Firefox <=54 12789 // Return a confounding non-pixel value or feign ignorance, as appropriate. 12790 if ( rnumnonpx.test( val ) ) { 12791 if ( !extra ) { 12792 return val; 12793 } 12794 val = "auto"; 12795 } 12796 12797 // Check for style in case a browser which returns unreliable values 12798 // for getComputedStyle silently falls back to the reliable elem.style 12799 valueIsBorderBox = valueIsBorderBox && 12800 ( support.boxSizingReliable() || val === elem.style[ dimension ] ); 12801 12802 // Fall back to offsetWidth/offsetHeight when value is "auto" 12803 // This happens for inline elements with no explicit setting (gh-3571) 12804 // Support: Android <=4.1 - 4.3 only 12805 // Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602) 12806 if ( val === "auto" || 12807 !parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) { 12808 12809 val = elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ]; 12810 12811 // offsetWidth/offsetHeight provide border-box values 12812 valueIsBorderBox = true; 12813 } 12814 12815 // Normalize "" and auto 12816 val = parseFloat( val ) || 0; 12817 12818 // Adjust for the element's box model 12819 return ( val + 12820 boxModelAdjustment( 12821 elem, 12822 dimension, 12823 extra || ( isBorderBox ? "border" : "content" ), 12824 valueIsBorderBox, 12825 styles, 12826 12827 // Provide the current computed size to request scroll gutter calculation (gh-3589) 12828 val 12829 ) 12830 ) + "px"; 12831} 12832 12833jQuery.extend( { 12834 12835 // Add in style property hooks for overriding the default 12836 // behavior of getting and setting a style property 12837 cssHooks: { 12838 opacity: { 12839 get: function( elem, computed ) { 12840 if ( computed ) { 12841 12842 // We should always get a number back from opacity 12843 var ret = curCSS( elem, "opacity" ); 12844 return ret === "" ? "1" : ret; 12845 } 12846 } 12847 } 12848 }, 12849 12850 // Don't automatically add "px" to these possibly-unitless properties 12851 cssNumber: { 12852 "animationIterationCount": true, 12853 "columnCount": true, 12854 "fillOpacity": true, 12855 "flexGrow": true, 12856 "flexShrink": true, 12857 "fontWeight": true, 12858 "lineHeight": true, 12859 "opacity": true, 12860 "order": true, 12861 "orphans": true, 12862 "widows": true, 12863 "zIndex": true, 12864 "zoom": true 12865 }, 12866 12867 // Add in properties whose names you wish to fix before 12868 // setting or getting the value 12869 cssProps: {}, 12870 12871 // Get and set the style property on a DOM Node 12872 style: function( elem, name, value, extra ) { 12873 12874 // Don't set styles on text and comment nodes 12875 if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { 12876 return; 12877 } 12878 12879 // Make sure that we're working with the right name 12880 var ret, type, hooks, 12881 origName = camelCase( name ), 12882 isCustomProp = rcustomProp.test( name ), 12883 style = elem.style; 12884 12885 // Make sure that we're working with the right name. We don't 12886 // want to query the value if it is a CSS custom property 12887 // since they are user-defined. 12888 if ( !isCustomProp ) { 12889 name = finalPropName( origName ); 12890 } 12891 12892 // Gets hook for the prefixed version, then unprefixed version 12893 hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; 12894 12895 // Check if we're setting a value 12896 if ( value !== undefined ) { 12897 type = typeof value; 12898 12899 // Convert "+=" or "-=" to relative numbers (#7345) 12900 if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) { 12901 value = adjustCSS( elem, name, ret ); 12902 12903 // Fixes bug #9237 12904 type = "number"; 12905 } 12906 12907 // Make sure that null and NaN values aren't set (#7116) 12908 if ( value == null || value !== value ) { 12909 return; 12910 } 12911 12912 // If a number was passed in, add the unit (except for certain CSS properties) 12913 if ( type === "number" ) { 12914 value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); 12915 } 12916 12917 // background-* props affect original clone's values 12918 if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { 12919 style[ name ] = "inherit"; 12920 } 12921 12922 // If a hook was provided, use that value, otherwise just set the specified value 12923 if ( !hooks || !( "set" in hooks ) || 12924 ( value = hooks.set( elem, value, extra ) ) !== undefined ) { 12925 12926 if ( isCustomProp ) { 12927 style.setProperty( name, value ); 12928 } else { 12929 style[ name ] = value; 12930 } 12931 } 12932 12933 } else { 12934 12935 // If a hook was provided get the non-computed value from there 12936 if ( hooks && "get" in hooks && 12937 ( ret = hooks.get( elem, false, extra ) ) !== undefined ) { 12938 12939 return ret; 12940 } 12941 12942 // Otherwise just get the value from the style object 12943 return style[ name ]; 12944 } 12945 }, 12946 12947 css: function( elem, name, extra, styles ) { 12948 var val, num, hooks, 12949 origName = camelCase( name ), 12950 isCustomProp = rcustomProp.test( name ); 12951 12952 // Make sure that we're working with the right name. We don't 12953 // want to modify the value if it is a CSS custom property 12954 // since they are user-defined. 12955 if ( !isCustomProp ) { 12956 name = finalPropName( origName ); 12957 } 12958 12959 // Try prefixed name followed by the unprefixed name 12960 hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; 12961 12962 // If a hook was provided get the computed value from there 12963 if ( hooks && "get" in hooks ) { 12964 val = hooks.get( elem, true, extra ); 12965 } 12966 12967 // Otherwise, if a way to get the computed value exists, use that 12968 if ( val === undefined ) { 12969 val = curCSS( elem, name, styles ); 12970 } 12971 12972 // Convert "normal" to computed value 12973 if ( val === "normal" && name in cssNormalTransform ) { 12974 val = cssNormalTransform[ name ]; 12975 } 12976 12977 // Make numeric if forced or a qualifier was provided and val looks numeric 12978 if ( extra === "" || extra ) { 12979 num = parseFloat( val ); 12980 return extra === true || isFinite( num ) ? num || 0 : val; 12981 } 12982 12983 return val; 12984 } 12985} ); 12986 12987jQuery.each( [ "height", "width" ], function( i, dimension ) { 12988 jQuery.cssHooks[ dimension ] = { 12989 get: function( elem, computed, extra ) { 12990 if ( computed ) { 12991 12992 // Certain elements can have dimension info if we invisibly show them 12993 // but it must have a current display style that would benefit 12994 return rdisplayswap.test( jQuery.css( elem, "display" ) ) && 12995 12996 // Support: Safari 8+ 12997 // Table columns in Safari have non-zero offsetWidth & zero 12998 // getBoundingClientRect().width unless display is changed. 12999 // Support: IE <=11 only 13000 // Running getBoundingClientRect on a disconnected node 13001 // in IE throws an error. 13002 ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? 13003 swap( elem, cssShow, function() { 13004 return getWidthOrHeight( elem, dimension, extra ); 13005 } ) : 13006 getWidthOrHeight( elem, dimension, extra ); 13007 } 13008 }, 13009 13010 set: function( elem, value, extra ) { 13011 var matches, 13012 styles = getStyles( elem ), 13013 isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box", 13014 subtract = extra && boxModelAdjustment( 13015 elem, 13016 dimension, 13017 extra, 13018 isBorderBox, 13019 styles 13020 ); 13021 13022 // Account for unreliable border-box dimensions by comparing offset* to computed and 13023 // faking a content-box to get border and padding (gh-3699) 13024 if ( isBorderBox && support.scrollboxSize() === styles.position ) { 13025 subtract -= Math.ceil( 13026 elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - 13027 parseFloat( styles[ dimension ] ) - 13028 boxModelAdjustment( elem, dimension, "border", false, styles ) - 13029 0.5 13030 ); 13031 } 13032 13033 // Convert to pixels if value adjustment is needed 13034 if ( subtract && ( matches = rcssNum.exec( value ) ) && 13035 ( matches[ 3 ] || "px" ) !== "px" ) { 13036 13037 elem.style[ dimension ] = value; 13038 value = jQuery.css( elem, dimension ); 13039 } 13040 13041 return setPositiveNumber( elem, value, subtract ); 13042 } 13043 }; 13044} ); 13045 13046jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft, 13047 function( elem, computed ) { 13048 if ( computed ) { 13049 return ( parseFloat( curCSS( elem, "marginLeft" ) ) || 13050 elem.getBoundingClientRect().left - 13051 swap( elem, { marginLeft: 0 }, function() { 13052 return elem.getBoundingClientRect().left; 13053 } ) 13054 ) + "px"; 13055 } 13056 } 13057); 13058 13059// These hooks are used by animate to expand properties 13060jQuery.each( { 13061 margin: "", 13062 padding: "", 13063 border: "Width" 13064}, function( prefix, suffix ) { 13065 jQuery.cssHooks[ prefix + suffix ] = { 13066 expand: function( value ) { 13067 var i = 0, 13068 expanded = {}, 13069 13070 // Assumes a single number if not a string 13071 parts = typeof value === "string" ? value.split( " " ) : [ value ]; 13072 13073 for ( ; i < 4; i++ ) { 13074 expanded[ prefix + cssExpand[ i ] + suffix ] = 13075 parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; 13076 } 13077 13078 return expanded; 13079 } 13080 }; 13081 13082 if ( prefix !== "margin" ) { 13083 jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; 13084 } 13085} ); 13086 13087jQuery.fn.extend( { 13088 css: function( name, value ) { 13089 return access( this, function( elem, name, value ) { 13090 var styles, len, 13091 map = {}, 13092 i = 0; 13093 13094 if ( Array.isArray( name ) ) { 13095 styles = getStyles( elem ); 13096 len = name.length; 13097 13098 for ( ; i < len; i++ ) { 13099 map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); 13100 } 13101 13102 return map; 13103 } 13104 13105 return value !== undefined ? 13106 jQuery.style( elem, name, value ) : 13107 jQuery.css( elem, name ); 13108 }, name, value, arguments.length > 1 ); 13109 } 13110} ); 13111 13112 13113function Tween( elem, options, prop, end, easing ) { 13114 return new Tween.prototype.init( elem, options, prop, end, easing ); 13115} 13116jQuery.Tween = Tween; 13117 13118Tween.prototype = { 13119 constructor: Tween, 13120 init: function( elem, options, prop, end, easing, unit ) { 13121 this.elem = elem; 13122 this.prop = prop; 13123 this.easing = easing || jQuery.easing._default; 13124 this.options = options; 13125 this.start = this.now = this.cur(); 13126 this.end = end; 13127 this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); 13128 }, 13129 cur: function() { 13130 var hooks = Tween.propHooks[ this.prop ]; 13131 13132 return hooks && hooks.get ? 13133 hooks.get( this ) : 13134 Tween.propHooks._default.get( this ); 13135 }, 13136 run: function( percent ) { 13137 var eased, 13138 hooks = Tween.propHooks[ this.prop ]; 13139 13140 if ( this.options.duration ) { 13141 this.pos = eased = jQuery.easing[ this.easing ]( 13142 percent, this.options.duration * percent, 0, 1, this.options.duration 13143 ); 13144 } else { 13145 this.pos = eased = percent; 13146 } 13147 this.now = ( this.end - this.start ) * eased + this.start; 13148 13149 if ( this.options.step ) { 13150 this.options.step.call( this.elem, this.now, this ); 13151 } 13152 13153 if ( hooks && hooks.set ) { 13154 hooks.set( this ); 13155 } else { 13156 Tween.propHooks._default.set( this ); 13157 } 13158 return this; 13159 } 13160}; 13161 13162Tween.prototype.init.prototype = Tween.prototype; 13163 13164Tween.propHooks = { 13165 _default: { 13166 get: function( tween ) { 13167 var result; 13168 13169 // Use a property on the element directly when it is not a DOM element, 13170 // or when there is no matching style property that exists. 13171 if ( tween.elem.nodeType !== 1 || 13172 tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) { 13173 return tween.elem[ tween.prop ]; 13174 } 13175 13176 // Passing an empty string as a 3rd parameter to .css will automatically 13177 // attempt a parseFloat and fallback to a string if the parse fails. 13178 // Simple values such as "10px" are parsed to Float; 13179 // complex values such as "rotate(1rad)" are returned as-is. 13180 result = jQuery.css( tween.elem, tween.prop, "" ); 13181 13182 // Empty strings, null, undefined and "auto" are converted to 0. 13183 return !result || result === "auto" ? 0 : result; 13184 }, 13185 set: function( tween ) { 13186 13187 // Use step hook for back compat. 13188 // Use cssHook if its there. 13189 // Use .style if available and use plain properties where available. 13190 if ( jQuery.fx.step[ tween.prop ] ) { 13191 jQuery.fx.step[ tween.prop ]( tween ); 13192 } else if ( tween.elem.nodeType === 1 && 13193 ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || 13194 jQuery.cssHooks[ tween.prop ] ) ) { 13195 jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); 13196 } else { 13197 tween.elem[ tween.prop ] = tween.now; 13198 } 13199 } 13200 } 13201}; 13202 13203// Support: IE <=9 only 13204// Panic based approach to setting things on disconnected nodes 13205Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { 13206 set: function( tween ) { 13207 if ( tween.elem.nodeType && tween.elem.parentNode ) { 13208 tween.elem[ tween.prop ] = tween.now; 13209 } 13210 } 13211}; 13212 13213jQuery.easing = { 13214 linear: function( p ) { 13215 return p; 13216 }, 13217 swing: function( p ) { 13218 return 0.5 - Math.cos( p * Math.PI ) / 2; 13219 }, 13220 _default: "swing" 13221}; 13222 13223jQuery.fx = Tween.prototype.init; 13224 13225// Back compat <1.8 extension point 13226jQuery.fx.step = {}; 13227 13228 13229 13230 13231var 13232 fxNow, inProgress, 13233 rfxtypes = /^(?:toggle|show|hide)$/, 13234 rrun = /queueHooks$/; 13235 13236function schedule() { 13237 if ( inProgress ) { 13238 if ( document.hidden === false && window.requestAnimationFrame ) { 13239 window.requestAnimationFrame( schedule ); 13240 } else { 13241 window.setTimeout( schedule, jQuery.fx.interval ); 13242 } 13243 13244 jQuery.fx.tick(); 13245 } 13246} 13247 13248// Animations created synchronously will run synchronously 13249function createFxNow() { 13250 window.setTimeout( function() { 13251 fxNow = undefined; 13252 } ); 13253 return ( fxNow = Date.now() ); 13254} 13255 13256// Generate parameters to create a standard animation 13257function genFx( type, includeWidth ) { 13258 var which, 13259 i = 0, 13260 attrs = { height: type }; 13261 13262 // If we include width, step value is 1 to do all cssExpand values, 13263 // otherwise step value is 2 to skip over Left and Right 13264 includeWidth = includeWidth ? 1 : 0; 13265 for ( ; i < 4; i += 2 - includeWidth ) { 13266 which = cssExpand[ i ]; 13267 attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; 13268 } 13269 13270 if ( includeWidth ) { 13271 attrs.opacity = attrs.width = type; 13272 } 13273 13274 return attrs; 13275} 13276 13277function createTween( value, prop, animation ) { 13278 var tween, 13279 collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ), 13280 index = 0, 13281 length = collection.length; 13282 for ( ; index < length; index++ ) { 13283 if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) { 13284 13285 // We're done with this property 13286 return tween; 13287 } 13288 } 13289} 13290 13291function defaultPrefilter( elem, props, opts ) { 13292 var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, 13293 isBox = "width" in props || "height" in props, 13294 anim = this, 13295 orig = {}, 13296 style = elem.style, 13297 hidden = elem.nodeType && isHiddenWithinTree( elem ), 13298 dataShow = dataPriv.get( elem, "fxshow" ); 13299 13300 // Queue-skipping animations hijack the fx hooks 13301 if ( !opts.queue ) { 13302 hooks = jQuery._queueHooks( elem, "fx" ); 13303 if ( hooks.unqueued == null ) { 13304 hooks.unqueued = 0; 13305 oldfire = hooks.empty.fire; 13306 hooks.empty.fire = function() { 13307 if ( !hooks.unqueued ) { 13308 oldfire(); 13309 } 13310 }; 13311 } 13312 hooks.unqueued++; 13313 13314 anim.always( function() { 13315 13316 // Ensure the complete handler is called before this completes 13317 anim.always( function() { 13318 hooks.unqueued--; 13319 if ( !jQuery.queue( elem, "fx" ).length ) { 13320 hooks.empty.fire(); 13321 } 13322 } ); 13323 } ); 13324 } 13325 13326 // Detect show/hide animations 13327 for ( prop in props ) { 13328 value = props[ prop ]; 13329 if ( rfxtypes.test( value ) ) { 13330 delete props[ prop ]; 13331 toggle = toggle || value === "toggle"; 13332 if ( value === ( hidden ? "hide" : "show" ) ) { 13333 13334 // Pretend to be hidden if this is a "show" and 13335 // there is still data from a stopped show/hide 13336 if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { 13337 hidden = true; 13338 13339 // Ignore all other no-op show/hide data 13340 } else { 13341 continue; 13342 } 13343 } 13344 orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); 13345 } 13346 } 13347 13348 // Bail out if this is a no-op like .hide().hide() 13349 propTween = !jQuery.isEmptyObject( props ); 13350 if ( !propTween && jQuery.isEmptyObject( orig ) ) { 13351 return; 13352 } 13353 13354 // Restrict "overflow" and "display" styles during box animations 13355 if ( isBox && elem.nodeType === 1 ) { 13356 13357 // Support: IE <=9 - 11, Edge 12 - 15 13358 // Record all 3 overflow attributes because IE does not infer the shorthand 13359 // from identically-valued overflowX and overflowY and Edge just mirrors 13360 // the overflowX value there. 13361 opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; 13362 13363 // Identify a display type, preferring old show/hide data over the CSS cascade 13364 restoreDisplay = dataShow && dataShow.display; 13365 if ( restoreDisplay == null ) { 13366 restoreDisplay = dataPriv.get( elem, "display" ); 13367 } 13368 display = jQuery.css( elem, "display" ); 13369 if ( display === "none" ) { 13370 if ( restoreDisplay ) { 13371 display = restoreDisplay; 13372 } else { 13373 13374 // Get nonempty value(s) by temporarily forcing visibility 13375 showHide( [ elem ], true ); 13376 restoreDisplay = elem.style.display || restoreDisplay; 13377 display = jQuery.css( elem, "display" ); 13378 showHide( [ elem ] ); 13379 } 13380 } 13381 13382 // Animate inline elements as inline-block 13383 if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) { 13384 if ( jQuery.css( elem, "float" ) === "none" ) { 13385 13386 // Restore the original display value at the end of pure show/hide animations 13387 if ( !propTween ) { 13388 anim.done( function() { 13389 style.display = restoreDisplay; 13390 } ); 13391 if ( restoreDisplay == null ) { 13392 display = style.display; 13393 restoreDisplay = display === "none" ? "" : display; 13394 } 13395 } 13396 style.display = "inline-block"; 13397 } 13398 } 13399 } 13400 13401 if ( opts.overflow ) { 13402 style.overflow = "hidden"; 13403 anim.always( function() { 13404 style.overflow = opts.overflow[ 0 ]; 13405 style.overflowX = opts.overflow[ 1 ]; 13406 style.overflowY = opts.overflow[ 2 ]; 13407 } ); 13408 } 13409 13410 // Implement show/hide animations 13411 propTween = false; 13412 for ( prop in orig ) { 13413 13414 // General show/hide setup for this element animation 13415 if ( !propTween ) { 13416 if ( dataShow ) { 13417 if ( "hidden" in dataShow ) { 13418 hidden = dataShow.hidden; 13419 } 13420 } else { 13421 dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } ); 13422 } 13423 13424 // Store hidden/visible for toggle so `.stop().toggle()` "reverses" 13425 if ( toggle ) { 13426 dataShow.hidden = !hidden; 13427 } 13428 13429 // Show elements before animating them 13430 if ( hidden ) { 13431 showHide( [ elem ], true ); 13432 } 13433 13434 /* eslint-disable no-loop-func */ 13435 13436 anim.done( function() { 13437 13438 /* eslint-enable no-loop-func */ 13439 13440 // The final step of a "hide" animation is actually hiding the element 13441 if ( !hidden ) { 13442 showHide( [ elem ] ); 13443 } 13444 dataPriv.remove( elem, "fxshow" ); 13445 for ( prop in orig ) { 13446 jQuery.style( elem, prop, orig[ prop ] ); 13447 } 13448 } ); 13449 } 13450 13451 // Per-property setup 13452 propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); 13453 if ( !( prop in dataShow ) ) { 13454 dataShow[ prop ] = propTween.start; 13455 if ( hidden ) { 13456 propTween.end = propTween.start; 13457 propTween.start = 0; 13458 } 13459 } 13460 } 13461} 13462 13463function propFilter( props, specialEasing ) { 13464 var index, name, easing, value, hooks; 13465 13466 // camelCase, specialEasing and expand cssHook pass 13467 for ( index in props ) { 13468 name = camelCase( index ); 13469 easing = specialEasing[ name ]; 13470 value = props[ index ]; 13471 if ( Array.isArray( value ) ) { 13472 easing = value[ 1 ]; 13473 value = props[ index ] = value[ 0 ]; 13474 } 13475 13476 if ( index !== name ) { 13477 props[ name ] = value; 13478 delete props[ index ]; 13479 } 13480 13481 hooks = jQuery.cssHooks[ name ]; 13482 if ( hooks && "expand" in hooks ) { 13483 value = hooks.expand( value ); 13484 delete props[ name ]; 13485 13486 // Not quite $.extend, this won't overwrite existing keys. 13487 // Reusing 'index' because we have the correct "name" 13488 for ( index in value ) { 13489 if ( !( index in props ) ) { 13490 props[ index ] = value[ index ]; 13491 specialEasing[ index ] = easing; 13492 } 13493 } 13494 } else { 13495 specialEasing[ name ] = easing; 13496 } 13497 } 13498} 13499 13500function Animation( elem, properties, options ) { 13501 var result, 13502 stopped, 13503 index = 0, 13504 length = Animation.prefilters.length, 13505 deferred = jQuery.Deferred().always( function() { 13506 13507 // Don't match elem in the :animated selector 13508 delete tick.elem; 13509 } ), 13510 tick = function() { 13511 if ( stopped ) { 13512 return false; 13513 } 13514 var currentTime = fxNow || createFxNow(), 13515 remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), 13516 13517 // Support: Android 2.3 only 13518 // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) 13519 temp = remaining / animation.duration || 0, 13520 percent = 1 - temp, 13521 index = 0, 13522 length = animation.tweens.length; 13523 13524 for ( ; index < length; index++ ) { 13525 animation.tweens[ index ].run( percent ); 13526 } 13527 13528 deferred.notifyWith( elem, [ animation, percent, remaining ] ); 13529 13530 // If there's more to do, yield 13531 if ( percent < 1 && length ) { 13532 return remaining; 13533 } 13534 13535 // If this was an empty animation, synthesize a final progress notification 13536 if ( !length ) { 13537 deferred.notifyWith( elem, [ animation, 1, 0 ] ); 13538 } 13539 13540 // Resolve the animation and report its conclusion 13541 deferred.resolveWith( elem, [ animation ] ); 13542 return false; 13543 }, 13544 animation = deferred.promise( { 13545 elem: elem, 13546 props: jQuery.extend( {}, properties ), 13547 opts: jQuery.extend( true, { 13548 specialEasing: {}, 13549 easing: jQuery.easing._default 13550 }, options ), 13551 originalProperties: properties, 13552 originalOptions: options, 13553 startTime: fxNow || createFxNow(), 13554 duration: options.duration, 13555 tweens: [], 13556 createTween: function( prop, end ) { 13557 var tween = jQuery.Tween( elem, animation.opts, prop, end, 13558 animation.opts.specialEasing[ prop ] || animation.opts.easing ); 13559 animation.tweens.push( tween ); 13560 return tween; 13561 }, 13562 stop: function( gotoEnd ) { 13563 var index = 0, 13564 13565 // If we are going to the end, we want to run all the tweens 13566 // otherwise we skip this part 13567 length = gotoEnd ? animation.tweens.length : 0; 13568 if ( stopped ) { 13569 return this; 13570 } 13571 stopped = true; 13572 for ( ; index < length; index++ ) { 13573 animation.tweens[ index ].run( 1 ); 13574 } 13575 13576 // Resolve when we played the last frame; otherwise, reject 13577 if ( gotoEnd ) { 13578 deferred.notifyWith( elem, [ animation, 1, 0 ] ); 13579 deferred.resolveWith( elem, [ animation, gotoEnd ] ); 13580 } else { 13581 deferred.rejectWith( elem, [ animation, gotoEnd ] ); 13582 } 13583 return this; 13584 } 13585 } ), 13586 props = animation.props; 13587 13588 propFilter( props, animation.opts.specialEasing ); 13589 13590 for ( ; index < length; index++ ) { 13591 result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts ); 13592 if ( result ) { 13593 if ( isFunction( result.stop ) ) { 13594 jQuery._queueHooks( animation.elem, animation.opts.queue ).stop = 13595 result.stop.bind( result ); 13596 } 13597 return result; 13598 } 13599 } 13600 13601 jQuery.map( props, createTween, animation ); 13602 13603 if ( isFunction( animation.opts.start ) ) { 13604 animation.opts.start.call( elem, animation ); 13605 } 13606 13607 // Attach callbacks from options 13608 animation 13609 .progress( animation.opts.progress ) 13610 .done( animation.opts.done, animation.opts.complete ) 13611 .fail( animation.opts.fail ) 13612 .always( animation.opts.always ); 13613 13614 jQuery.fx.timer( 13615 jQuery.extend( tick, { 13616 elem: elem, 13617 anim: animation, 13618 queue: animation.opts.queue 13619 } ) 13620 ); 13621 13622 return animation; 13623} 13624 13625jQuery.Animation = jQuery.extend( Animation, { 13626 13627 tweeners: { 13628 "*": [ function( prop, value ) { 13629 var tween = this.createTween( prop, value ); 13630 adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween ); 13631 return tween; 13632 } ] 13633 }, 13634 13635 tweener: function( props, callback ) { 13636 if ( isFunction( props ) ) { 13637 callback = props; 13638 props = [ "*" ]; 13639 } else { 13640 props = props.match( rnothtmlwhite ); 13641 } 13642 13643 var prop, 13644 index = 0, 13645 length = props.length; 13646 13647 for ( ; index < length; index++ ) { 13648 prop = props[ index ]; 13649 Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || []; 13650 Animation.tweeners[ prop ].unshift( callback ); 13651 } 13652 }, 13653 13654 prefilters: [ defaultPrefilter ], 13655 13656 prefilter: function( callback, prepend ) { 13657 if ( prepend ) { 13658 Animation.prefilters.unshift( callback ); 13659 } else { 13660 Animation.prefilters.push( callback ); 13661 } 13662 } 13663} ); 13664 13665jQuery.speed = function( speed, easing, fn ) { 13666 var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { 13667 complete: fn || !fn && easing || 13668 isFunction( speed ) && speed, 13669 duration: speed, 13670 easing: fn && easing || easing && !isFunction( easing ) && easing 13671 }; 13672 13673 // Go to the end state if fx are off 13674 if ( jQuery.fx.off ) { 13675 opt.duration = 0; 13676 13677 } else { 13678 if ( typeof opt.duration !== "number" ) { 13679 if ( opt.duration in jQuery.fx.speeds ) { 13680 opt.duration = jQuery.fx.speeds[ opt.duration ]; 13681 13682 } else { 13683 opt.duration = jQuery.fx.speeds._default; 13684 } 13685 } 13686 } 13687 13688 // Normalize opt.queue - true/undefined/null -> "fx" 13689 if ( opt.queue == null || opt.queue === true ) { 13690 opt.queue = "fx"; 13691 } 13692 13693 // Queueing 13694 opt.old = opt.complete; 13695 13696 opt.complete = function() { 13697 if ( isFunction( opt.old ) ) { 13698 opt.old.call( this ); 13699 } 13700 13701 if ( opt.queue ) { 13702 jQuery.dequeue( this, opt.queue ); 13703 } 13704 }; 13705 13706 return opt; 13707}; 13708 13709jQuery.fn.extend( { 13710 fadeTo: function( speed, to, easing, callback ) { 13711 13712 // Show any hidden elements after setting opacity to 0 13713 return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show() 13714 13715 // Animate to the value specified 13716 .end().animate( { opacity: to }, speed, easing, callback ); 13717 }, 13718 animate: function( prop, speed, easing, callback ) { 13719 var empty = jQuery.isEmptyObject( prop ), 13720 optall = jQuery.speed( speed, easing, callback ), 13721 doAnimation = function() { 13722 13723 // Operate on a copy of prop so per-property easing won't be lost 13724 var anim = Animation( this, jQuery.extend( {}, prop ), optall ); 13725 13726 // Empty animations, or finishing resolves immediately 13727 if ( empty || dataPriv.get( this, "finish" ) ) { 13728 anim.stop( true ); 13729 } 13730 }; 13731 doAnimation.finish = doAnimation; 13732 13733 return empty || optall.queue === false ? 13734 this.each( doAnimation ) : 13735 this.queue( optall.queue, doAnimation ); 13736 }, 13737 stop: function( type, clearQueue, gotoEnd ) { 13738 var stopQueue = function( hooks ) { 13739 var stop = hooks.stop; 13740 delete hooks.stop; 13741 stop( gotoEnd ); 13742 }; 13743 13744 if ( typeof type !== "string" ) { 13745 gotoEnd = clearQueue; 13746 clearQueue = type; 13747 type = undefined; 13748 } 13749 if ( clearQueue && type !== false ) { 13750 this.queue( type || "fx", [] ); 13751 } 13752 13753 return this.each( function() { 13754 var dequeue = true, 13755 index = type != null && type + "queueHooks", 13756 timers = jQuery.timers, 13757 data = dataPriv.get( this ); 13758 13759 if ( index ) { 13760 if ( data[ index ] && data[ index ].stop ) { 13761 stopQueue( data[ index ] ); 13762 } 13763 } else { 13764 for ( index in data ) { 13765 if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { 13766 stopQueue( data[ index ] ); 13767 } 13768 } 13769 } 13770 13771 for ( index = timers.length; index--; ) { 13772 if ( timers[ index ].elem === this && 13773 ( type == null || timers[ index ].queue === type ) ) { 13774 13775 timers[ index ].anim.stop( gotoEnd ); 13776 dequeue = false; 13777 timers.splice( index, 1 ); 13778 } 13779 } 13780 13781 // Start the next in the queue if the last step wasn't forced. 13782 // Timers currently will call their complete callbacks, which 13783 // will dequeue but only if they were gotoEnd. 13784 if ( dequeue || !gotoEnd ) { 13785 jQuery.dequeue( this, type ); 13786 } 13787 } ); 13788 }, 13789 finish: function( type ) { 13790 if ( type !== false ) { 13791 type = type || "fx"; 13792 } 13793 return this.each( function() { 13794 var index, 13795 data = dataPriv.get( this ), 13796 queue = data[ type + "queue" ], 13797 hooks = data[ type + "queueHooks" ], 13798 timers = jQuery.timers, 13799 length = queue ? queue.length : 0; 13800 13801 // Enable finishing flag on private data 13802 data.finish = true; 13803 13804 // Empty the queue first 13805 jQuery.queue( this, type, [] ); 13806 13807 if ( hooks && hooks.stop ) { 13808 hooks.stop.call( this, true ); 13809 } 13810 13811 // Look for any active animations, and finish them 13812 for ( index = timers.length; index--; ) { 13813 if ( timers[ index ].elem === this && timers[ index ].queue === type ) { 13814 timers[ index ].anim.stop( true ); 13815 timers.splice( index, 1 ); 13816 } 13817 } 13818 13819 // Look for any animations in the old queue and finish them 13820 for ( index = 0; index < length; index++ ) { 13821 if ( queue[ index ] && queue[ index ].finish ) { 13822 queue[ index ].finish.call( this ); 13823 } 13824 } 13825 13826 // Turn off finishing flag 13827 delete data.finish; 13828 } ); 13829 } 13830} ); 13831 13832jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) { 13833 var cssFn = jQuery.fn[ name ]; 13834 jQuery.fn[ name ] = function( speed, easing, callback ) { 13835 return speed == null || typeof speed === "boolean" ? 13836 cssFn.apply( this, arguments ) : 13837 this.animate( genFx( name, true ), speed, easing, callback ); 13838 }; 13839} ); 13840 13841// Generate shortcuts for custom animations 13842jQuery.each( { 13843 slideDown: genFx( "show" ), 13844 slideUp: genFx( "hide" ), 13845 slideToggle: genFx( "toggle" ), 13846 fadeIn: { opacity: "show" }, 13847 fadeOut: { opacity: "hide" }, 13848 fadeToggle: { opacity: "toggle" } 13849}, function( name, props ) { 13850 jQuery.fn[ name ] = function( speed, easing, callback ) { 13851 return this.animate( props, speed, easing, callback ); 13852 }; 13853} ); 13854 13855jQuery.timers = []; 13856jQuery.fx.tick = function() { 13857 var timer, 13858 i = 0, 13859 timers = jQuery.timers; 13860 13861 fxNow = Date.now(); 13862 13863 for ( ; i < timers.length; i++ ) { 13864 timer = timers[ i ]; 13865 13866 // Run the timer and safely remove it when done (allowing for external removal) 13867 if ( !timer() && timers[ i ] === timer ) { 13868 timers.splice( i--, 1 ); 13869 } 13870 } 13871 13872 if ( !timers.length ) { 13873 jQuery.fx.stop(); 13874 } 13875 fxNow = undefined; 13876}; 13877 13878jQuery.fx.timer = function( timer ) { 13879 jQuery.timers.push( timer ); 13880 jQuery.fx.start(); 13881}; 13882 13883jQuery.fx.interval = 13; 13884jQuery.fx.start = function() { 13885 if ( inProgress ) { 13886 return; 13887 } 13888 13889 inProgress = true; 13890 schedule(); 13891}; 13892 13893jQuery.fx.stop = function() { 13894 inProgress = null; 13895}; 13896 13897jQuery.fx.speeds = { 13898 slow: 600, 13899 fast: 200, 13900 13901 // Default speed 13902 _default: 400 13903}; 13904 13905 13906// Based off of the plugin by Clint Helfers, with permission. 13907// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/ 13908jQuery.fn.delay = function( time, type ) { 13909 time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; 13910 type = type || "fx"; 13911 13912 return this.queue( type, function( next, hooks ) { 13913 var timeout = window.setTimeout( next, time ); 13914 hooks.stop = function() { 13915 window.clearTimeout( timeout ); 13916 }; 13917 } ); 13918}; 13919 13920 13921( function() { 13922 var input = document.createElement( "input" ), 13923 select = document.createElement( "select" ), 13924 opt = select.appendChild( document.createElement( "option" ) ); 13925 13926 input.type = "checkbox"; 13927 13928 // Support: Android <=4.3 only 13929 // Default value for a checkbox should be "on" 13930 support.checkOn = input.value !== ""; 13931 13932 // Support: IE <=11 only 13933 // Must access selectedIndex to make default options select 13934 support.optSelected = opt.selected; 13935 13936 // Support: IE <=11 only 13937 // An input loses its value after becoming a radio 13938 input = document.createElement( "input" ); 13939 input.value = "t"; 13940 input.type = "radio"; 13941 support.radioValue = input.value === "t"; 13942} )(); 13943 13944 13945var boolHook, 13946 attrHandle = jQuery.expr.attrHandle; 13947 13948jQuery.fn.extend( { 13949 attr: function( name, value ) { 13950 return access( this, jQuery.attr, name, value, arguments.length > 1 ); 13951 }, 13952 13953 removeAttr: function( name ) { 13954 return this.each( function() { 13955 jQuery.removeAttr( this, name ); 13956 } ); 13957 } 13958} ); 13959 13960jQuery.extend( { 13961 attr: function( elem, name, value ) { 13962 var ret, hooks, 13963 nType = elem.nodeType; 13964 13965 // Don't get/set attributes on text, comment and attribute nodes 13966 if ( nType === 3 || nType === 8 || nType === 2 ) { 13967 return; 13968 } 13969 13970 // Fallback to prop when attributes are not supported 13971 if ( typeof elem.getAttribute === "undefined" ) { 13972 return jQuery.prop( elem, name, value ); 13973 } 13974 13975 // Attribute hooks are determined by the lowercase version 13976 // Grab necessary hook if one is defined 13977 if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { 13978 hooks = jQuery.attrHooks[ name.toLowerCase() ] || 13979 ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined ); 13980 } 13981 13982 if ( value !== undefined ) { 13983 if ( value === null ) { 13984 jQuery.removeAttr( elem, name ); 13985 return; 13986 } 13987 13988 if ( hooks && "set" in hooks && 13989 ( ret = hooks.set( elem, value, name ) ) !== undefined ) { 13990 return ret; 13991 } 13992 13993 elem.setAttribute( name, value + "" ); 13994 return value; 13995 } 13996 13997 if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { 13998 return ret; 13999 } 14000 14001 ret = jQuery.find.attr( elem, name ); 14002 14003 // Non-existent attributes return null, we normalize to undefined 14004 return ret == null ? undefined : ret; 14005 }, 14006 14007 attrHooks: { 14008 type: { 14009 set: function( elem, value ) { 14010 if ( !support.radioValue && value === "radio" && 14011 nodeName( elem, "input" ) ) { 14012 var val = elem.value; 14013 elem.setAttribute( "type", value ); 14014 if ( val ) { 14015 elem.value = val; 14016 } 14017 return value; 14018 } 14019 } 14020 } 14021 }, 14022 14023 removeAttr: function( elem, value ) { 14024 var name, 14025 i = 0, 14026 14027 // Attribute names can contain non-HTML whitespace characters 14028 // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 14029 attrNames = value && value.match( rnothtmlwhite ); 14030 14031 if ( attrNames && elem.nodeType === 1 ) { 14032 while ( ( name = attrNames[ i++ ] ) ) { 14033 elem.removeAttribute( name ); 14034 } 14035 } 14036 } 14037} ); 14038 14039// Hooks for boolean attributes 14040boolHook = { 14041 set: function( elem, value, name ) { 14042 if ( value === false ) { 14043 14044 // Remove boolean attributes when set to false 14045 jQuery.removeAttr( elem, name ); 14046 } else { 14047 elem.setAttribute( name, name ); 14048 } 14049 return name; 14050 } 14051}; 14052 14053jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { 14054 var getter = attrHandle[ name ] || jQuery.find.attr; 14055 14056 attrHandle[ name ] = function( elem, name, isXML ) { 14057 var ret, handle, 14058 lowercaseName = name.toLowerCase(); 14059 14060 if ( !isXML ) { 14061 14062 // Avoid an infinite loop by temporarily removing this function from the getter 14063 handle = attrHandle[ lowercaseName ]; 14064 attrHandle[ lowercaseName ] = ret; 14065 ret = getter( elem, name, isXML ) != null ? 14066 lowercaseName : 14067 null; 14068 attrHandle[ lowercaseName ] = handle; 14069 } 14070 return ret; 14071 }; 14072} ); 14073 14074 14075 14076 14077var rfocusable = /^(?:input|select|textarea|button)$/i, 14078 rclickable = /^(?:a|area)$/i; 14079 14080jQuery.fn.extend( { 14081 prop: function( name, value ) { 14082 return access( this, jQuery.prop, name, value, arguments.length > 1 ); 14083 }, 14084 14085 removeProp: function( name ) { 14086 return this.each( function() { 14087 delete this[ jQuery.propFix[ name ] || name ]; 14088 } ); 14089 } 14090} ); 14091 14092jQuery.extend( { 14093 prop: function( elem, name, value ) { 14094 var ret, hooks, 14095 nType = elem.nodeType; 14096 14097 // Don't get/set properties on text, comment and attribute nodes 14098 if ( nType === 3 || nType === 8 || nType === 2 ) { 14099 return; 14100 } 14101 14102 if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { 14103 14104 // Fix name and attach hooks 14105 name = jQuery.propFix[ name ] || name; 14106 hooks = jQuery.propHooks[ name ]; 14107 } 14108 14109 if ( value !== undefined ) { 14110 if ( hooks && "set" in hooks && 14111 ( ret = hooks.set( elem, value, name ) ) !== undefined ) { 14112 return ret; 14113 } 14114 14115 return ( elem[ name ] = value ); 14116 } 14117 14118 if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { 14119 return ret; 14120 } 14121 14122 return elem[ name ]; 14123 }, 14124 14125 propHooks: { 14126 tabIndex: { 14127 get: function( elem ) { 14128 14129 // Support: IE <=9 - 11 only 14130 // elem.tabIndex doesn't always return the 14131 // correct value when it hasn't been explicitly set 14132 // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ 14133 // Use proper attribute retrieval(#12072) 14134 var tabindex = jQuery.find.attr( elem, "tabindex" ); 14135 14136 if ( tabindex ) { 14137 return parseInt( tabindex, 10 ); 14138 } 14139 14140 if ( 14141 rfocusable.test( elem.nodeName ) || 14142 rclickable.test( elem.nodeName ) && 14143 elem.href 14144 ) { 14145 return 0; 14146 } 14147 14148 return -1; 14149 } 14150 } 14151 }, 14152 14153 propFix: { 14154 "for": "htmlFor", 14155 "class": "className" 14156 } 14157} ); 14158 14159// Support: IE <=11 only 14160// Accessing the selectedIndex property 14161// forces the browser to respect setting selected 14162// on the option 14163// The getter ensures a default option is selected 14164// when in an optgroup 14165// eslint rule "no-unused-expressions" is disabled for this code 14166// since it considers such accessions noop 14167if ( !support.optSelected ) { 14168 jQuery.propHooks.selected = { 14169 get: function( elem ) { 14170 14171 /* eslint no-unused-expressions: "off" */ 14172 14173 var parent = elem.parentNode; 14174 if ( parent && parent.parentNode ) { 14175 parent.parentNode.selectedIndex; 14176 } 14177 return null; 14178 }, 14179 set: function( elem ) { 14180 14181 /* eslint no-unused-expressions: "off" */ 14182 14183 var parent = elem.parentNode; 14184 if ( parent ) { 14185 parent.selectedIndex; 14186 14187 if ( parent.parentNode ) { 14188 parent.parentNode.selectedIndex; 14189 } 14190 } 14191 } 14192 }; 14193} 14194 14195jQuery.each( [ 14196 "tabIndex", 14197 "readOnly", 14198 "maxLength", 14199 "cellSpacing", 14200 "cellPadding", 14201 "rowSpan", 14202 "colSpan", 14203 "useMap", 14204 "frameBorder", 14205 "contentEditable" 14206], function() { 14207 jQuery.propFix[ this.toLowerCase() ] = this; 14208} ); 14209 14210 14211 14212 14213 // Strip and collapse whitespace according to HTML spec 14214 // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace 14215 function stripAndCollapse( value ) { 14216 var tokens = value.match( rnothtmlwhite ) || []; 14217 return tokens.join( " " ); 14218 } 14219 14220 14221function getClass( elem ) { 14222 return elem.getAttribute && elem.getAttribute( "class" ) || ""; 14223} 14224 14225function classesToArray( value ) { 14226 if ( Array.isArray( value ) ) { 14227 return value; 14228 } 14229 if ( typeof value === "string" ) { 14230 return value.match( rnothtmlwhite ) || []; 14231 } 14232 return []; 14233} 14234 14235jQuery.fn.extend( { 14236 addClass: function( value ) { 14237 var classes, elem, cur, curValue, clazz, j, finalValue, 14238 i = 0; 14239 14240 if ( isFunction( value ) ) { 14241 return this.each( function( j ) { 14242 jQuery( this ).addClass( value.call( this, j, getClass( this ) ) ); 14243 } ); 14244 } 14245 14246 classes = classesToArray( value ); 14247 14248 if ( classes.length ) { 14249 while ( ( elem = this[ i++ ] ) ) { 14250 curValue = getClass( elem ); 14251 cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); 14252 14253 if ( cur ) { 14254 j = 0; 14255 while ( ( clazz = classes[ j++ ] ) ) { 14256 if ( cur.indexOf( " " + clazz + " " ) < 0 ) { 14257 cur += clazz + " "; 14258 } 14259 } 14260 14261 // Only assign if different to avoid unneeded rendering. 14262 finalValue = stripAndCollapse( cur ); 14263 if ( curValue !== finalValue ) { 14264 elem.setAttribute( "class", finalValue ); 14265 } 14266 } 14267 } 14268 } 14269 14270 return this; 14271 }, 14272 14273 removeClass: function( value ) { 14274 var classes, elem, cur, curValue, clazz, j, finalValue, 14275 i = 0; 14276 14277 if ( isFunction( value ) ) { 14278 return this.each( function( j ) { 14279 jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) ); 14280 } ); 14281 } 14282 14283 if ( !arguments.length ) { 14284 return this.attr( "class", "" ); 14285 } 14286 14287 classes = classesToArray( value ); 14288 14289 if ( classes.length ) { 14290 while ( ( elem = this[ i++ ] ) ) { 14291 curValue = getClass( elem ); 14292 14293 // This expression is here for better compressibility (see addClass) 14294 cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); 14295 14296 if ( cur ) { 14297 j = 0; 14298 while ( ( clazz = classes[ j++ ] ) ) { 14299 14300 // Remove *all* instances 14301 while ( cur.indexOf( " " + clazz + " " ) > -1 ) { 14302 cur = cur.replace( " " + clazz + " ", " " ); 14303 } 14304 } 14305 14306 // Only assign if different to avoid unneeded rendering. 14307 finalValue = stripAndCollapse( cur ); 14308 if ( curValue !== finalValue ) { 14309 elem.setAttribute( "class", finalValue ); 14310 } 14311 } 14312 } 14313 } 14314 14315 return this; 14316 }, 14317 14318 toggleClass: function( value, stateVal ) { 14319 var type = typeof value, 14320 isValidValue = type === "string" || Array.isArray( value ); 14321 14322 if ( typeof stateVal === "boolean" && isValidValue ) { 14323 return stateVal ? this.addClass( value ) : this.removeClass( value ); 14324 } 14325 14326 if ( isFunction( value ) ) { 14327 return this.each( function( i ) { 14328 jQuery( this ).toggleClass( 14329 value.call( this, i, getClass( this ), stateVal ), 14330 stateVal 14331 ); 14332 } ); 14333 } 14334 14335 return this.each( function() { 14336 var className, i, self, classNames; 14337 14338 if ( isValidValue ) { 14339 14340 // Toggle individual class names 14341 i = 0; 14342 self = jQuery( this ); 14343 classNames = classesToArray( value ); 14344 14345 while ( ( className = classNames[ i++ ] ) ) { 14346 14347 // Check each className given, space separated list 14348 if ( self.hasClass( className ) ) { 14349 self.removeClass( className ); 14350 } else { 14351 self.addClass( className ); 14352 } 14353 } 14354 14355 // Toggle whole class name 14356 } else if ( value === undefined || type === "boolean" ) { 14357 className = getClass( this ); 14358 if ( className ) { 14359 14360 // Store className if set 14361 dataPriv.set( this, "__className__", className ); 14362 } 14363 14364 // If the element has a class name or if we're passed `false`, 14365 // then remove the whole classname (if there was one, the above saved it). 14366 // Otherwise bring back whatever was previously saved (if anything), 14367 // falling back to the empty string if nothing was stored. 14368 if ( this.setAttribute ) { 14369 this.setAttribute( "class", 14370 className || value === false ? 14371 "" : 14372 dataPriv.get( this, "__className__" ) || "" 14373 ); 14374 } 14375 } 14376 } ); 14377 }, 14378 14379 hasClass: function( selector ) { 14380 var className, elem, 14381 i = 0; 14382 14383 className = " " + selector + " "; 14384 while ( ( elem = this[ i++ ] ) ) { 14385 if ( elem.nodeType === 1 && 14386 ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) { 14387 return true; 14388 } 14389 } 14390 14391 return false;
vendor: 5,544 bytes, lines 14392-14627
14392 } 14393} ); 14394 14395 14396 14397 14398var rreturn = /\r/g; 14399 14400jQuery.fn.extend( { 14401 val: function( value ) { 14402 var hooks, ret, valueIsFunction, 14403 elem = this[ 0 ]; 14404 14405 if ( !arguments.length ) { 14406 if ( elem ) { 14407 hooks = jQuery.valHooks[ elem.type ] || 14408 jQuery.valHooks[ elem.nodeName.toLowerCase() ]; 14409 14410 if ( hooks && 14411 "get" in hooks && 14412 ( ret = hooks.get( elem, "value" ) ) !== undefined 14413 ) { 14414 return ret; 14415 } 14416 14417 ret = elem.value; 14418 14419 // Handle most common string cases 14420 if ( typeof ret === "string" ) { 14421 return ret.replace( rreturn, "" ); 14422 } 14423 14424 // Handle cases where value is null/undef or number 14425 return ret == null ? "" : ret; 14426 } 14427 14428 return; 14429 } 14430 14431 valueIsFunction = isFunction( value ); 14432 14433 return this.each( function( i ) { 14434 var val; 14435 14436 if ( this.nodeType !== 1 ) { 14437 return; 14438 } 14439 14440 if ( valueIsFunction ) { 14441 val = value.call( this, i, jQuery( this ).val() ); 14442 } else { 14443 val = value; 14444 } 14445 14446 // Treat null/undefined as ""; convert numbers to string 14447 if ( val == null ) { 14448 val = ""; 14449 14450 } else if ( typeof val === "number" ) { 14451 val += ""; 14452 14453 } else if ( Array.isArray( val ) ) { 14454 val = jQuery.map( val, function( value ) { 14455 return value == null ? "" : value + ""; 14456 } ); 14457 } 14458 14459 hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; 14460 14461 // If set returns undefined, fall back to normal setting 14462 if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) { 14463 this.value = val; 14464 } 14465 } ); 14466 } 14467} ); 14468 14469jQuery.extend( { 14470 valHooks: { 14471 option: { 14472 get: function( elem ) { 14473 14474 var val = jQuery.find.attr( elem, "value" ); 14475 return val != null ? 14476 val : 14477 14478 // Support: IE <=10 - 11 only 14479 // option.text throws exceptions (#14686, #14858) 14480 // Strip and collapse whitespace 14481 // https://html.spec.whatwg.org/#strip-and-collapse-whitespace 14482 stripAndCollapse( jQuery.text( elem ) ); 14483 } 14484 }, 14485 select: { 14486 get: function( elem ) { 14487 var value, option, i, 14488 options = elem.options, 14489 index = elem.selectedIndex, 14490 one = elem.type === "select-one", 14491 values = one ? null : [], 14492 max = one ? index + 1 : options.length; 14493 14494 if ( index < 0 ) { 14495 i = max; 14496 14497 } else { 14498 i = one ? index : 0; 14499 } 14500 14501 // Loop through all the selected options 14502 for ( ; i < max; i++ ) { 14503 option = options[ i ]; 14504 14505 // Support: IE <=9 only 14506 // IE8-9 doesn't update selected after form reset (#2551) 14507 if ( ( option.selected || i === index ) && 14508 14509 // Don't return options that are disabled or in a disabled optgroup 14510 !option.disabled && 14511 ( !option.parentNode.disabled || 14512 !nodeName( option.parentNode, "optgroup" ) ) ) { 14513 14514 // Get the specific value for the option 14515 value = jQuery( option ).val(); 14516 14517 // We don't need an array for one selects 14518 if ( one ) { 14519 return value; 14520 } 14521 14522 // Multi-Selects return an array 14523 values.push( value ); 14524 } 14525 } 14526 14527 return values; 14528 }, 14529 14530 set: function( elem, value ) { 14531 var optionSet, option, 14532 options = elem.options, 14533 values = jQuery.makeArray( value ), 14534 i = options.length; 14535 14536 while ( i-- ) { 14537 option = options[ i ]; 14538 14539 /* eslint-disable no-cond-assign */ 14540 14541 if ( option.selected = 14542 jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 14543 ) { 14544 optionSet = true; 14545 } 14546 14547 /* eslint-enable no-cond-assign */ 14548 } 14549 14550 // Force browsers to behave consistently when non-matching value is set 14551 if ( !optionSet ) { 14552 elem.selectedIndex = -1; 14553 } 14554 return values; 14555 } 14556 } 14557 } 14558} ); 14559 14560// Radios and checkboxes getter/setter 14561jQuery.each( [ "radio", "checkbox" ], function() { 14562 jQuery.valHooks[ this ] = { 14563 set: function( elem, value ) { 14564 if ( Array.isArray( value ) ) { 14565 return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 ); 14566 } 14567 } 14568 }; 14569 if ( !support.checkOn ) { 14570 jQuery.valHooks[ this ].get = function( elem ) { 14571 return elem.getAttribute( "value" ) === null ? "on" : elem.value; 14572 }; 14573 } 14574} ); 14575 14576 14577 14578 14579// Return jQuery for attributes-only inclusion 14580 14581 14582support.focusin = "onfocusin" in window; 14583 14584 14585var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, 14586 stopPropagationCallback = function( e ) { 14587 e.stopPropagation(); 14588 }; 14589 14590jQuery.extend( jQuery.event, { 14591 14592 trigger: function( event, data, elem, onlyHandlers ) { 14593 14594 var i, cur, tmp, bubbleType, ontype, handle, special, lastElement, 14595 eventPath = [ elem || document ], 14596 type = hasOwn.call( event, "type" ) ? event.type : event, 14597 namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : []; 14598 14599 cur = lastElement = tmp = elem = elem || document; 14600 14601 // Don't do events on text and comment nodes 14602 if ( elem.nodeType === 3 || elem.nodeType === 8 ) { 14603 return; 14604 } 14605 14606 // focus/blur morphs to focusin/out; ensure we're not firing them right now 14607 if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { 14608 return; 14609 } 14610 14611 if ( type.indexOf( "." ) > -1 ) { 14612 14613 // Namespaced trigger; create a regexp to match event type in handle() 14614 namespaces = type.split( "." ); 14615 type = namespaces.shift(); 14616 namespaces.sort(); 14617 } 14618 ontype = type.indexOf( ":" ) < 0 && "on" + type; 14619 14620 // Caller can pass in a jQuery.Event object, Object, or just an event type string 14621 event = event[ jQuery.expando ] ? 14622 event : 14623 new jQuery.Event( type, typeof event === "object" && event ); 14624 14625 // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) 14626 event.isTrigger = onlyHandlers ? 2 : 3; 14627 event.namespace = namespaces.join( "." );
vendor: 32,532 bytes, lines 14628-15899
14628 event.rnamespace = event.namespace ? 14629 new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : 14630 null; 14631 14632 // Clean up the event in case it is being reused 14633 event.result = undefined; 14634 if ( !event.target ) { 14635 event.target = elem; 14636 } 14637 14638 // Clone any incoming data and prepend the event, creating the handler arg list 14639 data = data == null ? 14640 [ event ] : 14641 jQuery.makeArray( data, [ event ] ); 14642 14643 // Allow special events to draw outside the lines 14644 special = jQuery.event.special[ type ] || {}; 14645 if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { 14646 return; 14647 } 14648 14649 // Determine event propagation path in advance, per W3C events spec (#9951) 14650 // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) 14651 if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) { 14652 14653 bubbleType = special.delegateType || type; 14654 if ( !rfocusMorph.test( bubbleType + type ) ) { 14655 cur = cur.parentNode; 14656 } 14657 for ( ; cur; cur = cur.parentNode ) { 14658 eventPath.push( cur ); 14659 tmp = cur; 14660 } 14661 14662 // Only add window if we got to document (e.g., not plain obj or detached DOM) 14663 if ( tmp === ( elem.ownerDocument || document ) ) { 14664 eventPath.push( tmp.defaultView || tmp.parentWindow || window ); 14665 } 14666 } 14667 14668 // Fire handlers on the event path 14669 i = 0; 14670 while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) { 14671 lastElement = cur; 14672 event.type = i > 1 ? 14673 bubbleType : 14674 special.bindType || type; 14675 14676 // jQuery handler 14677 handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] && 14678 dataPriv.get( cur, "handle" ); 14679 if ( handle ) { 14680 handle.apply( cur, data ); 14681 } 14682 14683 // Native handler 14684 handle = ontype && cur[ ontype ]; 14685 if ( handle && handle.apply && acceptData( cur ) ) { 14686 event.result = handle.apply( cur, data ); 14687 if ( event.result === false ) { 14688 event.preventDefault(); 14689 } 14690 } 14691 } 14692 event.type = type; 14693 14694 // If nobody prevented the default action, do it now 14695 if ( !onlyHandlers && !event.isDefaultPrevented() ) { 14696 14697 if ( ( !special._default || 14698 special._default.apply( eventPath.pop(), data ) === false ) && 14699 acceptData( elem ) ) { 14700 14701 // Call a native DOM method on the target with the same name as the event. 14702 // Don't do default actions on window, that's where global variables be (#6170) 14703 if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) { 14704 14705 // Don't re-trigger an onFOO event when we call its FOO() method 14706 tmp = elem[ ontype ]; 14707 14708 if ( tmp ) { 14709 elem[ ontype ] = null; 14710 } 14711 14712 // Prevent re-triggering of the same event, since we already bubbled it above 14713 jQuery.event.triggered = type; 14714 14715 if ( event.isPropagationStopped() ) { 14716 lastElement.addEventListener( type, stopPropagationCallback ); 14717 } 14718 14719 elem[ type ](); 14720 14721 if ( event.isPropagationStopped() ) { 14722 lastElement.removeEventListener( type, stopPropagationCallback ); 14723 } 14724 14725 jQuery.event.triggered = undefined; 14726 14727 if ( tmp ) { 14728 elem[ ontype ] = tmp; 14729 } 14730 } 14731 } 14732 } 14733 14734 return event.result; 14735 }, 14736 14737 // Piggyback on a donor event to simulate a different one 14738 // Used only for `focus(in | out)` events 14739 simulate: function( type, elem, event ) { 14740 var e = jQuery.extend( 14741 new jQuery.Event(), 14742 event, 14743 { 14744 type: type, 14745 isSimulated: true 14746 } 14747 ); 14748 14749 jQuery.event.trigger( e, null, elem ); 14750 } 14751 14752} ); 14753 14754jQuery.fn.extend( { 14755 14756 trigger: function( type, data ) { 14757 return this.each( function() { 14758 jQuery.event.trigger( type, data, this ); 14759 } ); 14760 }, 14761 triggerHandler: function( type, data ) { 14762 var elem = this[ 0 ]; 14763 if ( elem ) { 14764 return jQuery.event.trigger( type, data, elem, true ); 14765 } 14766 } 14767} ); 14768 14769 14770// Support: Firefox <=44 14771// Firefox doesn't have focus(in | out) events 14772// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 14773// 14774// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1 14775// focus(in | out) events fire after focus & blur events, 14776// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order 14777// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857 14778if ( !support.focusin ) { 14779 jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { 14780 14781 // Attach a single capturing handler on the document while someone wants focusin/focusout 14782 var handler = function( event ) { 14783 jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); 14784 }; 14785 14786 jQuery.event.special[ fix ] = { 14787 setup: function() { 14788 var doc = this.ownerDocument || this, 14789 attaches = dataPriv.access( doc, fix ); 14790 14791 if ( !attaches ) { 14792 doc.addEventListener( orig, handler, true ); 14793 } 14794 dataPriv.access( doc, fix, ( attaches || 0 ) + 1 ); 14795 }, 14796 teardown: function() { 14797 var doc = this.ownerDocument || this, 14798 attaches = dataPriv.access( doc, fix ) - 1; 14799 14800 if ( !attaches ) { 14801 doc.removeEventListener( orig, handler, true ); 14802 dataPriv.remove( doc, fix ); 14803 14804 } else { 14805 dataPriv.access( doc, fix, attaches ); 14806 } 14807 } 14808 }; 14809 } ); 14810} 14811var location = window.location; 14812 14813var nonce = Date.now(); 14814 14815var rquery = ( /\?/ ); 14816 14817 14818 14819// Cross-browser xml parsing 14820jQuery.parseXML = function( data ) { 14821 var xml; 14822 if ( !data || typeof data !== "string" ) { 14823 return null; 14824 } 14825 14826 // Support: IE 9 - 11 only 14827 // IE throws on parseFromString with invalid input. 14828 try { 14829 xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); 14830 } catch ( e ) { 14831 xml = undefined; 14832 } 14833 14834 if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { 14835 jQuery.error( "Invalid XML: " + data ); 14836 } 14837 return xml; 14838}; 14839 14840 14841var 14842 rbracket = /\[\]$/, 14843 rCRLF = /\r?\n/g, 14844 rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, 14845 rsubmittable = /^(?:input|select|textarea|keygen)/i; 14846 14847function buildParams( prefix, obj, traditional, add ) { 14848 var name; 14849 14850 if ( Array.isArray( obj ) ) { 14851 14852 // Serialize array item. 14853 jQuery.each( obj, function( i, v ) { 14854 if ( traditional || rbracket.test( prefix ) ) { 14855 14856 // Treat each array item as a scalar. 14857 add( prefix, v ); 14858 14859 } else { 14860 14861 // Item is non-scalar (array or object), encode its numeric index. 14862 buildParams( 14863 prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]", 14864 v, 14865 traditional, 14866 add 14867 ); 14868 } 14869 } ); 14870 14871 } else if ( !traditional && toType( obj ) === "object" ) { 14872 14873 // Serialize object item. 14874 for ( name in obj ) { 14875 buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); 14876 } 14877 14878 } else { 14879 14880 // Serialize scalar item. 14881 add( prefix, obj ); 14882 } 14883} 14884 14885// Serialize an array of form elements or a set of 14886// key/values into a query string 14887jQuery.param = function( a, traditional ) { 14888 var prefix, 14889 s = [], 14890 add = function( key, valueOrFunction ) { 14891 14892 // If value is a function, invoke it and use its return value 14893 var value = isFunction( valueOrFunction ) ? 14894 valueOrFunction() : 14895 valueOrFunction; 14896 14897 s[ s.length ] = encodeURIComponent( key ) + "=" + 14898 encodeURIComponent( value == null ? "" : value ); 14899 }; 14900 14901 // If an array was passed in, assume that it is an array of form elements. 14902 if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { 14903 14904 // Serialize the form elements 14905 jQuery.each( a, function() { 14906 add( this.name, this.value ); 14907 } ); 14908 14909 } else { 14910 14911 // If traditional, encode the "old" way (the way 1.3.2 or older 14912 // did it), otherwise encode params recursively. 14913 for ( prefix in a ) { 14914 buildParams( prefix, a[ prefix ], traditional, add ); 14915 } 14916 } 14917 14918 // Return the resulting serialization 14919 return s.join( "&" ); 14920}; 14921 14922jQuery.fn.extend( { 14923 serialize: function() { 14924 return jQuery.param( this.serializeArray() ); 14925 }, 14926 serializeArray: function() { 14927 return this.map( function() { 14928 14929 // Can add propHook for "elements" to filter or add form elements 14930 var elements = jQuery.prop( this, "elements" ); 14931 return elements ? jQuery.makeArray( elements ) : this; 14932 } ) 14933 .filter( function() { 14934 var type = this.type; 14935 14936 // Use .is( ":disabled" ) so that fieldset[disabled] works 14937 return this.name && !jQuery( this ).is( ":disabled" ) && 14938 rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && 14939 ( this.checked || !rcheckableType.test( type ) ); 14940 } ) 14941 .map( function( i, elem ) { 14942 var val = jQuery( this ).val(); 14943 14944 if ( val == null ) { 14945 return null; 14946 } 14947 14948 if ( Array.isArray( val ) ) { 14949 return jQuery.map( val, function( val ) { 14950 return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; 14951 } ); 14952 } 14953 14954 return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; 14955 } ).get(); 14956 } 14957} ); 14958 14959 14960var 14961 r20 = /%20/g, 14962 rhash = /#.*$/, 14963 rantiCache = /([?&])_=[^&]*/, 14964 rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, 14965 14966 // #7653, #8125, #8152: local protocol detection 14967 rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, 14968 rnoContent = /^(?:GET|HEAD)$/, 14969 rprotocol = /^\/\//, 14970 14971 /* Prefilters 14972 * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) 14973 * 2) These are called: 14974 * - BEFORE asking for a transport 14975 * - AFTER param serialization (s.data is a string if s.processData is true) 14976 * 3) key is the dataType 14977 * 4) the catchall symbol "*" can be used 14978 * 5) execution will start with transport dataType and THEN continue down to "*" if needed 14979 */ 14980 prefilters = {}, 14981 14982 /* Transports bindings 14983 * 1) key is the dataType 14984 * 2) the catchall symbol "*" can be used 14985 * 3) selection will start with transport dataType and THEN go to "*" if needed 14986 */ 14987 transports = {}, 14988 14989 // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression 14990 allTypes = "*/".concat( "*" ), 14991 14992 // Anchor tag for parsing the document origin 14993 originAnchor = document.createElement( "a" ); 14994 originAnchor.href = location.href; 14995 14996// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport 14997function addToPrefiltersOrTransports( structure ) { 14998 14999 // dataTypeExpression is optional and defaults to "*" 15000 return function( dataTypeExpression, func ) { 15001 15002 if ( typeof dataTypeExpression !== "string" ) { 15003 func = dataTypeExpression; 15004 dataTypeExpression = "*"; 15005 } 15006 15007 var dataType, 15008 i = 0, 15009 dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || []; 15010 15011 if ( isFunction( func ) ) { 15012 15013 // For each dataType in the dataTypeExpression 15014 while ( ( dataType = dataTypes[ i++ ] ) ) { 15015 15016 // Prepend if requested 15017 if ( dataType[ 0 ] === "+" ) { 15018 dataType = dataType.slice( 1 ) || "*"; 15019 ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func ); 15020 15021 // Otherwise append 15022 } else { 15023 ( structure[ dataType ] = structure[ dataType ] || [] ).push( func ); 15024 } 15025 } 15026 } 15027 }; 15028} 15029 15030// Base inspection function for prefilters and transports 15031function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { 15032 15033 var inspected = {}, 15034 seekingTransport = ( structure === transports ); 15035 15036 function inspect( dataType ) { 15037 var selected; 15038 inspected[ dataType ] = true; 15039 jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { 15040 var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); 15041 if ( typeof dataTypeOrTransport === "string" && 15042 !seekingTransport && !inspected[ dataTypeOrTransport ] ) { 15043 15044 options.dataTypes.unshift( dataTypeOrTransport ); 15045 inspect( dataTypeOrTransport ); 15046 return false; 15047 } else if ( seekingTransport ) { 15048 return !( selected = dataTypeOrTransport ); 15049 } 15050 } ); 15051 return selected; 15052 } 15053 15054 return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); 15055} 15056 15057// A special extend for ajax options 15058// that takes "flat" options (not to be deep extended) 15059// Fixes #9887 15060function ajaxExtend( target, src ) { 15061 var key, deep, 15062 flatOptions = jQuery.ajaxSettings.flatOptions || {}; 15063 15064 for ( key in src ) { 15065 if ( src[ key ] !== undefined ) { 15066 ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; 15067 } 15068 } 15069 if ( deep ) { 15070 jQuery.extend( true, target, deep ); 15071 } 15072 15073 return target; 15074} 15075 15076/* Handles responses to an ajax request: 15077 * - finds the right dataType (mediates between content-type and expected dataType) 15078 * - returns the corresponding response 15079 */ 15080function ajaxHandleResponses( s, jqXHR, responses ) { 15081 15082 var ct, type, finalDataType, firstDataType, 15083 contents = s.contents, 15084 dataTypes = s.dataTypes; 15085 15086 // Remove auto dataType and get content-type in the process 15087 while ( dataTypes[ 0 ] === "*" ) { 15088 dataTypes.shift(); 15089 if ( ct === undefined ) { 15090 ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" ); 15091 } 15092 } 15093 15094 // Check if we're dealing with a known content-type 15095 if ( ct ) { 15096 for ( type in contents ) { 15097 if ( contents[ type ] && contents[ type ].test( ct ) ) { 15098 dataTypes.unshift( type ); 15099 break; 15100 } 15101 } 15102 } 15103 15104 // Check to see if we have a response for the expected dataType 15105 if ( dataTypes[ 0 ] in responses ) { 15106 finalDataType = dataTypes[ 0 ]; 15107 } else { 15108 15109 // Try convertible dataTypes 15110 for ( type in responses ) { 15111 if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) { 15112 finalDataType = type; 15113 break; 15114 } 15115 if ( !firstDataType ) { 15116 firstDataType = type; 15117 } 15118 } 15119 15120 // Or just use first one 15121 finalDataType = finalDataType || firstDataType; 15122 } 15123 15124 // If we found a dataType 15125 // We add the dataType to the list if needed 15126 // and return the corresponding response 15127 if ( finalDataType ) { 15128 if ( finalDataType !== dataTypes[ 0 ] ) { 15129 dataTypes.unshift( finalDataType ); 15130 } 15131 return responses[ finalDataType ]; 15132 } 15133} 15134 15135/* Chain conversions given the request and the original response 15136 * Also sets the responseXXX fields on the jqXHR instance 15137 */ 15138function ajaxConvert( s, response, jqXHR, isSuccess ) { 15139 var conv2, current, conv, tmp, prev, 15140 converters = {}, 15141 15142 // Work with a copy of dataTypes in case we need to modify it for conversion 15143 dataTypes = s.dataTypes.slice(); 15144 15145 // Create converters map with lowercased keys 15146 if ( dataTypes[ 1 ] ) { 15147 for ( conv in s.converters ) { 15148 converters[ conv.toLowerCase() ] = s.converters[ conv ]; 15149 } 15150 } 15151 15152 current = dataTypes.shift(); 15153 15154 // Convert to each sequential dataType 15155 while ( current ) { 15156 15157 if ( s.responseFields[ current ] ) { 15158 jqXHR[ s.responseFields[ current ] ] = response; 15159 } 15160 15161 // Apply the dataFilter if provided 15162 if ( !prev && isSuccess && s.dataFilter ) { 15163 response = s.dataFilter( response, s.dataType ); 15164 } 15165 15166 prev = current; 15167 current = dataTypes.shift(); 15168 15169 if ( current ) { 15170 15171 // There's only work to do if current dataType is non-auto 15172 if ( current === "*" ) { 15173 15174 current = prev; 15175 15176 // Convert response if prev dataType is non-auto and differs from current 15177 } else if ( prev !== "*" && prev !== current ) { 15178 15179 // Seek a direct converter 15180 conv = converters[ prev + " " + current ] || converters[ "* " + current ]; 15181 15182 // If none found, seek a pair 15183 if ( !conv ) { 15184 for ( conv2 in converters ) { 15185 15186 // If conv2 outputs current 15187 tmp = conv2.split( " " ); 15188 if ( tmp[ 1 ] === current ) { 15189 15190 // If prev can be converted to accepted input 15191 conv = converters[ prev + " " + tmp[ 0 ] ] || 15192 converters[ "* " + tmp[ 0 ] ]; 15193 if ( conv ) { 15194 15195 // Condense equivalence converters 15196 if ( conv === true ) { 15197 conv = converters[ conv2 ]; 15198 15199 // Otherwise, insert the intermediate dataType 15200 } else if ( converters[ conv2 ] !== true ) { 15201 current = tmp[ 0 ]; 15202 dataTypes.unshift( tmp[ 1 ] ); 15203 } 15204 break; 15205 } 15206 } 15207 } 15208 } 15209 15210 // Apply converter (if not an equivalence) 15211 if ( conv !== true ) { 15212 15213 // Unless errors are allowed to bubble, catch and return them 15214 if ( conv && s.throws ) { 15215 response = conv( response ); 15216 } else { 15217 try { 15218 response = conv( response ); 15219 } catch ( e ) { 15220 return { 15221 state: "parsererror", 15222 error: conv ? e : "No conversion from " + prev + " to " + current 15223 }; 15224 } 15225 } 15226 } 15227 } 15228 } 15229 } 15230 15231 return { state: "success", data: response }; 15232} 15233 15234jQuery.extend( { 15235 15236 // Counter for holding the number of active queries 15237 active: 0, 15238 15239 // Last-Modified header cache for next request 15240 lastModified: {}, 15241 etag: {}, 15242 15243 ajaxSettings: { 15244 url: location.href, 15245 type: "GET", 15246 isLocal: rlocalProtocol.test( location.protocol ), 15247 global: true, 15248 processData: true, 15249 async: true, 15250 contentType: "application/x-www-form-urlencoded; charset=UTF-8", 15251 15252 /* 15253 timeout: 0, 15254 data: null, 15255 dataType: null, 15256 username: null, 15257 password: null, 15258 cache: null, 15259 throws: false, 15260 traditional: false, 15261 headers: {}, 15262 */ 15263 15264 accepts: { 15265 "*": allTypes, 15266 text: "text/plain", 15267 html: "text/html", 15268 xml: "application/xml, text/xml", 15269 json: "application/json, text/javascript" 15270 }, 15271 15272 contents: { 15273 xml: /\bxml\b/, 15274 html: /\bhtml/, 15275 json: /\bjson\b/ 15276 }, 15277 15278 responseFields: { 15279 xml: "responseXML", 15280 text: "responseText", 15281 json: "responseJSON" 15282 }, 15283 15284 // Data converters 15285 // Keys separate source (or catchall "*") and destination types with a single space 15286 converters: { 15287 15288 // Convert anything to text 15289 "* text": String, 15290 15291 // Text to html (true = no transformation) 15292 "text html": true, 15293 15294 // Evaluate text as a json expression 15295 "text json": JSON.parse, 15296 15297 // Parse text as xml 15298 "text xml": jQuery.parseXML 15299 }, 15300 15301 // For options that shouldn't be deep extended: 15302 // you can add your own custom options here if 15303 // and when you create one that shouldn't be 15304 // deep extended (see ajaxExtend) 15305 flatOptions: { 15306 url: true, 15307 context: true 15308 } 15309 }, 15310 15311 // Creates a full fledged settings object into target 15312 // with both ajaxSettings and settings fields. 15313 // If target is omitted, writes into ajaxSettings. 15314 ajaxSetup: function( target, settings ) { 15315 return settings ? 15316 15317 // Building a settings object 15318 ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : 15319 15320 // Extending ajaxSettings 15321 ajaxExtend( jQuery.ajaxSettings, target ); 15322 }, 15323 15324 ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), 15325 ajaxTransport: addToPrefiltersOrTransports( transports ), 15326 15327 // Main method 15328 ajax: function( url, options ) { 15329 15330 // If url is an object, simulate pre-1.5 signature 15331 if ( typeof url === "object" ) { 15332 options = url; 15333 url = undefined; 15334 } 15335 15336 // Force options to be an object 15337 options = options || {}; 15338 15339 var transport, 15340 15341 // URL without anti-cache param 15342 cacheURL, 15343 15344 // Response headers 15345 responseHeadersString, 15346 responseHeaders, 15347 15348 // timeout handle 15349 timeoutTimer, 15350 15351 // Url cleanup var 15352 urlAnchor, 15353 15354 // Request state (becomes false upon send and true upon completion) 15355 completed, 15356 15357 // To know if global events are to be dispatched 15358 fireGlobals, 15359 15360 // Loop variable 15361 i, 15362 15363 // uncached part of the url 15364 uncached, 15365 15366 // Create the final options object 15367 s = jQuery.ajaxSetup( {}, options ), 15368 15369 // Callbacks context 15370 callbackContext = s.context || s, 15371 15372 // Context for global events is callbackContext if it is a DOM node or jQuery collection 15373 globalEventContext = s.context && 15374 ( callbackContext.nodeType || callbackContext.jquery ) ? 15375 jQuery( callbackContext ) : 15376 jQuery.event, 15377 15378 // Deferreds 15379 deferred = jQuery.Deferred(), 15380 completeDeferred = jQuery.Callbacks( "once memory" ), 15381 15382 // Status-dependent callbacks 15383 statusCode = s.statusCode || {}, 15384 15385 // Headers (they are sent all at once) 15386 requestHeaders = {}, 15387 requestHeadersNames = {}, 15388 15389 // Default abort message 15390 strAbort = "canceled", 15391 15392 // Fake xhr 15393 jqXHR = { 15394 readyState: 0, 15395 15396 // Builds headers hashtable if needed 15397 getResponseHeader: function( key ) { 15398 var match; 15399 if ( completed ) { 15400 if ( !responseHeaders ) { 15401 responseHeaders = {}; 15402 while ( ( match = rheaders.exec( responseHeadersString ) ) ) { 15403 responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ]; 15404 } 15405 } 15406 match = responseHeaders[ key.toLowerCase() ]; 15407 } 15408 return match == null ? null : match; 15409 }, 15410 15411 // Raw string 15412 getAllResponseHeaders: function() { 15413 return completed ? responseHeadersString : null; 15414 }, 15415 15416 // Caches the header 15417 setRequestHeader: function( name, value ) { 15418 if ( completed == null ) { 15419 name = requestHeadersNames[ name.toLowerCase() ] = 15420 requestHeadersNames[ name.toLowerCase() ] || name; 15421 requestHeaders[ name ] = value; 15422 } 15423 return this; 15424 }, 15425 15426 // Overrides response content-type header 15427 overrideMimeType: function( type ) { 15428 if ( completed == null ) { 15429 s.mimeType = type; 15430 } 15431 return this; 15432 }, 15433 15434 // Status-dependent callbacks 15435 statusCode: function( map ) { 15436 var code; 15437 if ( map ) { 15438 if ( completed ) { 15439 15440 // Execute the appropriate callbacks 15441 jqXHR.always( map[ jqXHR.status ] ); 15442 } else { 15443 15444 // Lazy-add the new callbacks in a way that preserves old ones 15445 for ( code in map ) { 15446 statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; 15447 } 15448 } 15449 } 15450 return this; 15451 }, 15452 15453 // Cancel the request 15454 abort: function( statusText ) { 15455 var finalText = statusText || strAbort; 15456 if ( transport ) { 15457 transport.abort( finalText ); 15458 } 15459 done( 0, finalText ); 15460 return this; 15461 } 15462 }; 15463 15464 // Attach deferreds 15465 deferred.promise( jqXHR ); 15466 15467 // Add protocol if not provided (prefilters might expect it) 15468 // Handle falsy url in the settings object (#10093: consistency with old signature) 15469 // We also use the url parameter if available 15470 s.url = ( ( url || s.url || location.href ) + "" ) 15471 .replace( rprotocol, location.protocol + "//" ); 15472 15473 // Alias method option to type as per ticket #12004 15474 s.type = options.method || options.type || s.method || s.type; 15475 15476 // Extract dataTypes list 15477 s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ]; 15478 15479 // A cross-domain request is in order when the origin doesn't match the current origin. 15480 if ( s.crossDomain == null ) { 15481 urlAnchor = document.createElement( "a" ); 15482 15483 // Support: IE <=8 - 11, Edge 12 - 15 15484 // IE throws exception on accessing the href property if url is malformed, 15485 // e.g. http://example.com:80x/ 15486 try { 15487 urlAnchor.href = s.url; 15488 15489 // Support: IE <=8 - 11 only 15490 // Anchor's host property isn't correctly set when s.url is relative 15491 urlAnchor.href = urlAnchor.href; 15492 s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== 15493 urlAnchor.protocol + "//" + urlAnchor.host; 15494 } catch ( e ) { 15495 15496 // If there is an error parsing the URL, assume it is crossDomain, 15497 // it can be rejected by the transport if it is invalid 15498 s.crossDomain = true; 15499 } 15500 } 15501 15502 // Convert data if not already a string 15503 if ( s.data && s.processData && typeof s.data !== "string" ) { 15504 s.data = jQuery.param( s.data, s.traditional ); 15505 } 15506 15507 // Apply prefilters 15508 inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); 15509 15510 // If request was aborted inside a prefilter, stop there 15511 if ( completed ) { 15512 return jqXHR; 15513 } 15514 15515 // We can fire global events as of now if asked to 15516 // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118) 15517 fireGlobals = jQuery.event && s.global; 15518 15519 // Watch for a new set of requests 15520 if ( fireGlobals && jQuery.active++ === 0 ) { 15521 jQuery.event.trigger( "ajaxStart" ); 15522 } 15523 15524 // Uppercase the type 15525 s.type = s.type.toUpperCase(); 15526 15527 // Determine if request has content 15528 s.hasContent = !rnoContent.test( s.type ); 15529 15530 // Save the URL in case we're toying with the If-Modified-Since 15531 // and/or If-None-Match header later on 15532 // Remove hash to simplify url manipulation 15533 cacheURL = s.url.replace( rhash, "" ); 15534 15535 // More options handling for requests with no content 15536 if ( !s.hasContent ) { 15537 15538 // Remember the hash so we can put it back 15539 uncached = s.url.slice( cacheURL.length ); 15540 15541 // If data is available and should be processed, append data to url 15542 if ( s.data && ( s.processData || typeof s.data === "string" ) ) { 15543 cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; 15544 15545 // #9682: remove data so that it's not used in an eventual retry 15546 delete s.data; 15547 } 15548 15549 // Add or update anti-cache param if needed 15550 if ( s.cache === false ) { 15551 cacheURL = cacheURL.replace( rantiCache, "$1" ); 15552 uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached; 15553 } 15554 15555 // Put hash and anti-cache on the URL that will be requested (gh-1732) 15556 s.url = cacheURL + uncached; 15557 15558 // Change '%20' to '+' if this is encoded form body content (gh-2658) 15559 } else if ( s.data && s.processData && 15560 ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) { 15561 s.data = s.data.replace( r20, "+" ); 15562 } 15563 15564 // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. 15565 if ( s.ifModified ) { 15566 if ( jQuery.lastModified[ cacheURL ] ) { 15567 jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); 15568 } 15569 if ( jQuery.etag[ cacheURL ] ) { 15570 jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); 15571 } 15572 } 15573 15574 // Set the correct header, if data is being sent 15575 if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { 15576 jqXHR.setRequestHeader( "Content-Type", s.contentType ); 15577 } 15578 15579 // Set the Accepts header for the server, depending on the dataType 15580 jqXHR.setRequestHeader( 15581 "Accept", 15582 s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ? 15583 s.accepts[ s.dataTypes[ 0 ] ] + 15584 ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : 15585 s.accepts[ "*" ] 15586 ); 15587 15588 // Check for headers option 15589 for ( i in s.headers ) { 15590 jqXHR.setRequestHeader( i, s.headers[ i ] ); 15591 } 15592 15593 // Allow custom headers/mimetypes and early abort 15594 if ( s.beforeSend && 15595 ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) { 15596 15597 // Abort if not done already and return 15598 return jqXHR.abort(); 15599 } 15600 15601 // Aborting is no longer a cancellation 15602 strAbort = "abort"; 15603 15604 // Install callbacks on deferreds 15605 completeDeferred.add( s.complete ); 15606 jqXHR.done( s.success ); 15607 jqXHR.fail( s.error ); 15608 15609 // Get transport 15610 transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); 15611 15612 // If no transport, we auto-abort 15613 if ( !transport ) { 15614 done( -1, "No Transport" ); 15615 } else { 15616 jqXHR.readyState = 1; 15617 15618 // Send global event 15619 if ( fireGlobals ) { 15620 globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); 15621 } 15622 15623 // If request was aborted inside ajaxSend, stop there 15624 if ( completed ) { 15625 return jqXHR; 15626 } 15627 15628 // Timeout 15629 if ( s.async && s.timeout > 0 ) { 15630 timeoutTimer = window.setTimeout( function() { 15631 jqXHR.abort( "timeout" ); 15632 }, s.timeout ); 15633 } 15634 15635 try { 15636 completed = false; 15637 transport.send( requestHeaders, done ); 15638 } catch ( e ) { 15639 15640 // Rethrow post-completion exceptions 15641 if ( completed ) { 15642 throw e; 15643 } 15644 15645 // Propagate others as results 15646 done( -1, e ); 15647 } 15648 } 15649 15650 // Callback for when everything is done 15651 function done( status, nativeStatusText, responses, headers ) { 15652 var isSuccess, success, error, response, modified, 15653 statusText = nativeStatusText; 15654 15655 // Ignore repeat invocations 15656 if ( completed ) { 15657 return; 15658 } 15659 15660 completed = true; 15661 15662 // Clear timeout if it exists 15663 if ( timeoutTimer ) { 15664 window.clearTimeout( timeoutTimer ); 15665 } 15666 15667 // Dereference transport for early garbage collection 15668 // (no matter how long the jqXHR object will be used) 15669 transport = undefined; 15670 15671 // Cache response headers 15672 responseHeadersString = headers || ""; 15673 15674 // Set readyState 15675 jqXHR.readyState = status > 0 ? 4 : 0; 15676 15677 // Determine if successful 15678 isSuccess = status >= 200 && status < 300 || status === 304; 15679 15680 // Get response data 15681 if ( responses ) { 15682 response = ajaxHandleResponses( s, jqXHR, responses ); 15683 } 15684 15685 // Convert no matter what (that way responseXXX fields are always set) 15686 response = ajaxConvert( s, response, jqXHR, isSuccess ); 15687 15688 // If successful, handle type chaining 15689 if ( isSuccess ) { 15690 15691 // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. 15692 if ( s.ifModified ) { 15693 modified = jqXHR.getResponseHeader( "Last-Modified" ); 15694 if ( modified ) { 15695 jQuery.lastModified[ cacheURL ] = modified; 15696 } 15697 modified = jqXHR.getResponseHeader( "etag" ); 15698 if ( modified ) { 15699 jQuery.etag[ cacheURL ] = modified; 15700 } 15701 } 15702 15703 // if no content 15704 if ( status === 204 || s.type === "HEAD" ) { 15705 statusText = "nocontent"; 15706 15707 // if not modified 15708 } else if ( status === 304 ) { 15709 statusText = "notmodified"; 15710 15711 // If we have data, let's convert it 15712 } else { 15713 statusText = response.state; 15714 success = response.data; 15715 error = response.error; 15716 isSuccess = !error; 15717 } 15718 } else { 15719 15720 // Extract error from statusText and normalize for non-aborts 15721 error = statusText; 15722 if ( status || !statusText ) { 15723 statusText = "error"; 15724 if ( status < 0 ) { 15725 status = 0; 15726 } 15727 } 15728 } 15729 15730 // Set data for the fake xhr object 15731 jqXHR.status = status; 15732 jqXHR.statusText = ( nativeStatusText || statusText ) + ""; 15733 15734 // Success/Error 15735 if ( isSuccess ) { 15736 deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); 15737 } else { 15738 deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); 15739 } 15740 15741 // Status-dependent callbacks 15742 jqXHR.statusCode( statusCode ); 15743 statusCode = undefined; 15744 15745 if ( fireGlobals ) { 15746 globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", 15747 [ jqXHR, s, isSuccess ? success : error ] ); 15748 } 15749 15750 // Complete 15751 completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); 15752 15753 if ( fireGlobals ) { 15754 globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); 15755 15756 // Handle the global AJAX counter 15757 if ( !( --jQuery.active ) ) { 15758 jQuery.event.trigger( "ajaxStop" ); 15759 } 15760 } 15761 } 15762 15763 return jqXHR; 15764 }, 15765 15766 getJSON: function( url, data, callback ) { 15767 return jQuery.get( url, data, callback, "json" ); 15768 }, 15769 15770 getScript: function( url, callback ) { 15771 return jQuery.get( url, undefined, callback, "script" ); 15772 } 15773} ); 15774 15775jQuery.each( [ "get", "post" ], function( i, method ) { 15776 jQuery[ method ] = function( url, data, callback, type ) { 15777 15778 // Shift arguments if data argument was omitted 15779 if ( isFunction( data ) ) { 15780 type = type || callback; 15781 callback = data; 15782 data = undefined; 15783 } 15784 15785 // The url can be an options object (which then must have .url) 15786 return jQuery.ajax( jQuery.extend( { 15787 url: url, 15788 type: method, 15789 dataType: type, 15790 data: data, 15791 success: callback 15792 }, jQuery.isPlainObject( url ) && url ) ); 15793 }; 15794} ); 15795 15796 15797jQuery._evalUrl = function( url ) { 15798 return jQuery.ajax( { 15799 url: url, 15800 15801 // Make this explicit, since user can override this through ajaxSetup (#11264) 15802 type: "GET", 15803 dataType: "script", 15804 cache: true, 15805 async: false, 15806 global: false, 15807 "throws": true 15808 } ); 15809}; 15810 15811 15812jQuery.fn.extend( { 15813 wrapAll: function( html ) { 15814 var wrap; 15815 15816 if ( this[ 0 ] ) { 15817 if ( isFunction( html ) ) { 15818 html = html.call( this[ 0 ] ); 15819 } 15820 15821 // The elements to wrap the target around 15822 wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); 15823 15824 if ( this[ 0 ].parentNode ) { 15825 wrap.insertBefore( this[ 0 ] ); 15826 } 15827 15828 wrap.map( function() { 15829 var elem = this; 15830 15831 while ( elem.firstElementChild ) { 15832 elem = elem.firstElementChild; 15833 } 15834 15835 return elem; 15836 } ).append( this ); 15837 } 15838 15839 return this; 15840 }, 15841 15842 wrapInner: function( html ) { 15843 if ( isFunction( html ) ) { 15844 return this.each( function( i ) { 15845 jQuery( this ).wrapInner( html.call( this, i ) ); 15846 } ); 15847 } 15848 15849 return this.each( function() { 15850 var self = jQuery( this ), 15851 contents = self.contents(); 15852 15853 if ( contents.length ) { 15854 contents.wrapAll( html ); 15855 15856 } else { 15857 self.append( html ); 15858 } 15859 } ); 15860 }, 15861 15862 wrap: function( html ) { 15863 var htmlIsFunction = isFunction( html ); 15864 15865 return this.each( function( i ) { 15866 jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html ); 15867 } ); 15868 }, 15869 15870 unwrap: function( selector ) { 15871 this.parent( selector ).not( "body" ).each( function() { 15872 jQuery( this ).replaceWith( this.childNodes ); 15873 } ); 15874 return this; 15875 } 15876} ); 15877 15878 15879jQuery.expr.pseudos.hidden = function( elem ) { 15880 return !jQuery.expr.pseudos.visible( elem ); 15881}; 15882jQuery.expr.pseudos.visible = function( elem ) { 15883 return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); 15884}; 15885 15886 15887 15888 15889jQuery.ajaxSettings.xhr = function() { 15890 try { 15891 return new window.XMLHttpRequest(); 15892 } catch ( e ) {} 15893}; 15894 15895var xhrSuccessStatus = { 15896 15897 // File protocol always yields status code 0, assume 200 15898 0: 200, 15899
vendor: 1,240 bytes, lines 15900-15942
15900 // Support: IE <=9 only 15901 // #1450: sometimes IE returns 1223 when it should be 204 15902 1223: 204 15903 }, 15904 xhrSupported = jQuery.ajaxSettings.xhr(); 15905 15906support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); 15907support.ajax = xhrSupported = !!xhrSupported; 15908 15909jQuery.ajaxTransport( function( options ) { 15910 var callback, errorCallback; 15911 15912 // Cross domain only allowed if supported through XMLHttpRequest 15913 if ( support.cors || xhrSupported && !options.crossDomain ) { 15914 return { 15915 send: function( headers, complete ) { 15916 var i, 15917 xhr = options.xhr(); 15918 15919 xhr.open( 15920 options.type, 15921 options.url, 15922 options.async, 15923 options.username, 15924 options.password 15925 ); 15926 15927 // Apply custom fields if provided 15928 if ( options.xhrFields ) { 15929 for ( i in options.xhrFields ) { 15930 xhr[ i ] = options.xhrFields[ i ]; 15931 } 15932 } 15933 15934 // Override mime type if needed 15935 if ( options.mimeType && xhr.overrideMimeType ) { 15936 xhr.overrideMimeType( options.mimeType ); 15937 } 15938 15939 // X-Requested-With header 15940 // For cross-domain requests, seeing as conditions for a preflight are 15941 // akin to a jigsaw puzzle, we simply never set it to be sure. 15942 // (it can always be set on a per-request basis or even using ajaxSetup)
vendor: 5,627 bytes, lines 15943-16164
15943 // For same-domain requests, won't change header if already provided. 15944 if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) { 15945 headers[ "X-Requested-With" ] = "XMLHttpRequest"; 15946 } 15947 15948 // Set headers 15949 for ( i in headers ) { 15950 xhr.setRequestHeader( i, headers[ i ] ); 15951 } 15952 15953 // Callback 15954 callback = function( type ) { 15955 return function() { 15956 if ( callback ) { 15957 callback = errorCallback = xhr.onload = 15958 xhr.onerror = xhr.onabort = xhr.ontimeout = 15959 xhr.onreadystatechange = null; 15960 15961 if ( type === "abort" ) { 15962 xhr.abort(); 15963 } else if ( type === "error" ) { 15964 15965 // Support: IE <=9 only 15966 // On a manual native abort, IE9 throws 15967 // errors on any property access that is not readyState 15968 if ( typeof xhr.status !== "number" ) { 15969 complete( 0, "error" ); 15970 } else { 15971 complete( 15972 15973 // File: protocol always yields status 0; see #8605, #14207 15974 xhr.status, 15975 xhr.statusText 15976 ); 15977 } 15978 } else { 15979 complete( 15980 xhrSuccessStatus[ xhr.status ] || xhr.status, 15981 xhr.statusText, 15982 15983 // Support: IE <=9 only 15984 // IE9 has no XHR2 but throws on binary (trac-11426) 15985 // For XHR2 non-text, let the caller handle it (gh-2498) 15986 ( xhr.responseType || "text" ) !== "text" || 15987 typeof xhr.responseText !== "string" ? 15988 { binary: xhr.response } : 15989 { text: xhr.responseText }, 15990 xhr.getAllResponseHeaders() 15991 ); 15992 } 15993 } 15994 }; 15995 }; 15996 15997 // Listen to events 15998 xhr.onload = callback(); 15999 errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" ); 16000 16001 // Support: IE 9 only 16002 // Use onreadystatechange to replace onabort 16003 // to handle uncaught aborts 16004 if ( xhr.onabort !== undefined ) { 16005 xhr.onabort = errorCallback; 16006 } else { 16007 xhr.onreadystatechange = function() { 16008 16009 // Check readyState before timeout as it changes 16010 if ( xhr.readyState === 4 ) { 16011 16012 // Allow onerror to be called first, 16013 // but that will not handle a native abort 16014 // Also, save errorCallback to a variable 16015 // as xhr.onerror cannot be accessed 16016 window.setTimeout( function() { 16017 if ( callback ) { 16018 errorCallback(); 16019 } 16020 } ); 16021 } 16022 }; 16023 } 16024 16025 // Create the abort callback 16026 callback = callback( "abort" ); 16027 16028 try { 16029 16030 // Do send the request (this may raise an exception) 16031 xhr.send( options.hasContent && options.data || null ); 16032 } catch ( e ) { 16033 16034 // #14683: Only rethrow if this hasn't been notified as an error yet 16035 if ( callback ) { 16036 throw e; 16037 } 16038 } 16039 }, 16040 16041 abort: function() { 16042 if ( callback ) { 16043 callback(); 16044 } 16045 } 16046 }; 16047 } 16048} ); 16049 16050 16051 16052 16053// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) 16054jQuery.ajaxPrefilter( function( s ) { 16055 if ( s.crossDomain ) { 16056 s.contents.script = false; 16057 } 16058} ); 16059 16060// Install script dataType 16061jQuery.ajaxSetup( { 16062 accepts: { 16063 script: "text/javascript, application/javascript, " + 16064 "application/ecmascript, application/x-ecmascript" 16065 }, 16066 contents: { 16067 script: /\b(?:java|ecma)script\b/ 16068 }, 16069 converters: { 16070 "text script": function( text ) { 16071 jQuery.globalEval( text ); 16072 return text; 16073 } 16074 } 16075} ); 16076 16077// Handle cache's special case and crossDomain 16078jQuery.ajaxPrefilter( "script", function( s ) { 16079 if ( s.cache === undefined ) { 16080 s.cache = false; 16081 } 16082 if ( s.crossDomain ) { 16083 s.type = "GET"; 16084 } 16085} ); 16086 16087// Bind script tag hack transport 16088jQuery.ajaxTransport( "script", function( s ) { 16089 16090 // This transport only deals with cross domain requests 16091 if ( s.crossDomain ) { 16092 var script, callback; 16093 return { 16094 send: function( _, complete ) { 16095 script = jQuery( "<script>" ).prop( { 16096 charset: s.scriptCharset, 16097 src: s.url 16098 } ).on( 16099 "load error", 16100 callback = function( evt ) { 16101 script.remove(); 16102 callback = null; 16103 if ( evt ) { 16104 complete( evt.type === "error" ? 404 : 200, evt.type ); 16105 } 16106 } 16107 ); 16108 16109 // Use native DOM manipulation to avoid our domManip AJAX trickery 16110 document.head.appendChild( script[ 0 ] ); 16111 }, 16112 abort: function() { 16113 if ( callback ) { 16114 callback(); 16115 } 16116 } 16117 }; 16118 } 16119} ); 16120 16121 16122 16123 16124var oldCallbacks = [], 16125 rjsonp = /(=)\?(?=&|$)|\?\?/; 16126 16127// Default jsonp settings 16128jQuery.ajaxSetup( { 16129 jsonp: "callback", 16130 jsonpCallback: function() { 16131 var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) ); 16132 this[ callback ] = true; 16133 return callback; 16134 } 16135} ); 16136 16137// Detect, normalize options and install callbacks for jsonp requests 16138jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) { 16139 16140 var callbackName, overwritten, responseContainer, 16141 jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ? 16142 "url" : 16143 typeof s.data === "string" && 16144 ( s.contentType || "" ) 16145 .indexOf( "application/x-www-form-urlencoded" ) === 0 && 16146 rjsonp.test( s.data ) && "data" 16147 ); 16148 16149 // Handle iff the expected data type is "jsonp" or we have a parameter to set 16150 if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) { 16151 16152 // Get callback name, remembering preexisting value associated with it 16153 callbackName = s.jsonpCallback = isFunction( s.jsonpCallback ) ? 16154 s.jsonpCallback() : 16155 s.jsonpCallback; 16156 16157 // Insert callback into url or form data 16158 if ( jsonProp ) { 16159 s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName ); 16160 } else if ( s.jsonp !== false ) { 16161 s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName; 16162 } 16163 16164 // Use data converter to retrieve json after script execution
vendor: 2,987 bytes, lines 16165-16274
16165 s.converters[ "script json" ] = function() { 16166 if ( !responseContainer ) { 16167 jQuery.error( callbackName + " was not called" ); 16168 } 16169 return responseContainer[ 0 ]; 16170 }; 16171 16172 // Force json dataType 16173 s.dataTypes[ 0 ] = "json"; 16174 16175 // Install callback 16176 overwritten = window[ callbackName ]; 16177 window[ callbackName ] = function() { 16178 responseContainer = arguments; 16179 }; 16180 16181 // Clean-up function (fires after converters) 16182 jqXHR.always( function() { 16183 16184 // If previous value didn't exist - remove it 16185 if ( overwritten === undefined ) { 16186 jQuery( window ).removeProp( callbackName ); 16187 16188 // Otherwise restore preexisting value 16189 } else { 16190 window[ callbackName ] = overwritten; 16191 } 16192 16193 // Save back as free 16194 if ( s[ callbackName ] ) { 16195 16196 // Make sure that re-using the options doesn't screw things around 16197 s.jsonpCallback = originalSettings.jsonpCallback; 16198 16199 // Save the callback name for future use 16200 oldCallbacks.push( callbackName ); 16201 } 16202 16203 // Call if it was a function and we have a response 16204 if ( responseContainer && isFunction( overwritten ) ) { 16205 overwritten( responseContainer[ 0 ] ); 16206 } 16207 16208 responseContainer = overwritten = undefined; 16209 } ); 16210 16211 // Delegate to script 16212 return "script"; 16213 } 16214} ); 16215 16216 16217 16218 16219// Support: Safari 8 only 16220// In Safari 8 documents created via document.implementation.createHTMLDocument 16221// collapse sibling forms: the second one becomes a child of the first one. 16222// Because of that, this security measure has to be disabled in Safari 8. 16223// https://bugs.webkit.org/show_bug.cgi?id=137337 16224support.createHTMLDocument = ( function() { 16225 var body = document.implementation.createHTMLDocument( "" ).body; 16226 body.innerHTML = "<form></form><form></form>"; 16227 return body.childNodes.length === 2; 16228} )(); 16229 16230 16231// Argument "data" should be string of html 16232// context (optional): If specified, the fragment will be created in this context, 16233// defaults to document 16234// keepScripts (optional): If true, will include scripts passed in the html string 16235jQuery.parseHTML = function( data, context, keepScripts ) { 16236 if ( typeof data !== "string" ) { 16237 return []; 16238 } 16239 if ( typeof context === "boolean" ) { 16240 keepScripts = context; 16241 context = false; 16242 } 16243 16244 var base, parsed, scripts; 16245 16246 if ( !context ) { 16247 16248 // Stop scripts or inline event handlers from being executed immediately 16249 // by using document.implementation 16250 if ( support.createHTMLDocument ) { 16251 context = document.implementation.createHTMLDocument( "" ); 16252 16253 // Set the base href for the created document 16254 // so any parsed elements with URLs 16255 // are based on the document's URL (gh-2965) 16256 base = context.createElement( "base" ); 16257 base.href = document.location.href; 16258 context.head.appendChild( base ); 16259 } else { 16260 context = document; 16261 } 16262 } 16263 16264 parsed = rsingleTag.exec( data ); 16265 scripts = !keepScripts && []; 16266 16267 // Single tag 16268 if ( parsed ) { 16269 return [ context.createElement( parsed[ 1 ] ) ]; 16270 } 16271 16272 parsed = buildFragment( [ data ], context, scripts ); 16273 16274 if ( scripts && scripts.length ) {
vendor: 13,845 bytes, lines 16275-16755
16275 jQuery( scripts ).remove(); 16276 } 16277 16278 return jQuery.merge( [], parsed.childNodes ); 16279}; 16280 16281 16282/** 16283 * Load a url into a page 16284 */ 16285jQuery.fn.load = function( url, params, callback ) { 16286 var selector, type, response, 16287 self = this, 16288 off = url.indexOf( " " ); 16289 16290 if ( off > -1 ) { 16291 selector = stripAndCollapse( url.slice( off ) ); 16292 url = url.slice( 0, off ); 16293 } 16294 16295 // If it's a function 16296 if ( isFunction( params ) ) { 16297 16298 // We assume that it's the callback 16299 callback = params; 16300 params = undefined; 16301 16302 // Otherwise, build a param string 16303 } else if ( params && typeof params === "object" ) { 16304 type = "POST"; 16305 } 16306 16307 // If we have elements to modify, make the request 16308 if ( self.length > 0 ) { 16309 jQuery.ajax( { 16310 url: url, 16311 16312 // If "type" variable is undefined, then "GET" method will be used. 16313 // Make value of this field explicit since 16314 // user can override it through ajaxSetup method 16315 type: type || "GET", 16316 dataType: "html", 16317 data: params 16318 } ).done( function( responseText ) { 16319 16320 // Save response for use in complete callback 16321 response = arguments; 16322 16323 self.html( selector ? 16324 16325 // If a selector was specified, locate the right elements in a dummy div 16326 // Exclude scripts to avoid IE 'Permission Denied' errors 16327 jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) : 16328 16329 // Otherwise use the full result 16330 responseText ); 16331 16332 // If the request succeeds, this function gets "data", "status", "jqXHR" 16333 // but they are ignored because response was set above. 16334 // If it fails, this function gets "jqXHR", "status", "error" 16335 } ).always( callback && function( jqXHR, status ) { 16336 self.each( function() { 16337 callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] ); 16338 } ); 16339 } ); 16340 } 16341 16342 return this; 16343}; 16344 16345 16346 16347 16348// Attach a bunch of functions for handling common AJAX events 16349jQuery.each( [ 16350 "ajaxStart", 16351 "ajaxStop", 16352 "ajaxComplete", 16353 "ajaxError", 16354 "ajaxSuccess", 16355 "ajaxSend" 16356], function( i, type ) { 16357 jQuery.fn[ type ] = function( fn ) { 16358 return this.on( type, fn ); 16359 }; 16360} ); 16361 16362 16363 16364 16365jQuery.expr.pseudos.animated = function( elem ) { 16366 return jQuery.grep( jQuery.timers, function( fn ) { 16367 return elem === fn.elem; 16368 } ).length; 16369}; 16370 16371 16372 16373 16374jQuery.offset = { 16375 setOffset: function( elem, options, i ) { 16376 var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition, 16377 position = jQuery.css( elem, "position" ), 16378 curElem = jQuery( elem ), 16379 props = {}; 16380 16381 // Set position first, in-case top/left are set even on static elem 16382 if ( position === "static" ) { 16383 elem.style.position = "relative"; 16384 } 16385 16386 curOffset = curElem.offset(); 16387 curCSSTop = jQuery.css( elem, "top" ); 16388 curCSSLeft = jQuery.css( elem, "left" ); 16389 calculatePosition = ( position === "absolute" || position === "fixed" ) && 16390 ( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1; 16391 16392 // Need to be able to calculate position if either 16393 // top or left is auto and position is either absolute or fixed 16394 if ( calculatePosition ) { 16395 curPosition = curElem.position(); 16396 curTop = curPosition.top; 16397 curLeft = curPosition.left; 16398 16399 } else { 16400 curTop = parseFloat( curCSSTop ) || 0; 16401 curLeft = parseFloat( curCSSLeft ) || 0; 16402 } 16403 16404 if ( isFunction( options ) ) { 16405 16406 // Use jQuery.extend here to allow modification of coordinates argument (gh-1848) 16407 options = options.call( elem, i, jQuery.extend( {}, curOffset ) ); 16408 } 16409 16410 if ( options.top != null ) { 16411 props.top = ( options.top - curOffset.top ) + curTop; 16412 } 16413 if ( options.left != null ) { 16414 props.left = ( options.left - curOffset.left ) + curLeft; 16415 } 16416 16417 if ( "using" in options ) { 16418 options.using.call( elem, props ); 16419 16420 } else { 16421 curElem.css( props ); 16422 } 16423 } 16424}; 16425 16426jQuery.fn.extend( { 16427 16428 // offset() relates an element's border box to the document origin 16429 offset: function( options ) { 16430 16431 // Preserve chaining for setter 16432 if ( arguments.length ) { 16433 return options === undefined ? 16434 this : 16435 this.each( function( i ) { 16436 jQuery.offset.setOffset( this, options, i ); 16437 } ); 16438 } 16439 16440 var rect, win, 16441 elem = this[ 0 ]; 16442 16443 if ( !elem ) { 16444 return; 16445 } 16446 16447 // Return zeros for disconnected and hidden (display: none) elements (gh-2310) 16448 // Support: IE <=11 only 16449 // Running getBoundingClientRect on a 16450 // disconnected node in IE throws an error 16451 if ( !elem.getClientRects().length ) { 16452 return { top: 0, left: 0 }; 16453 } 16454 16455 // Get document-relative position by adding viewport scroll to viewport-relative gBCR 16456 rect = elem.getBoundingClientRect(); 16457 win = elem.ownerDocument.defaultView; 16458 return { 16459 top: rect.top + win.pageYOffset, 16460 left: rect.left + win.pageXOffset 16461 }; 16462 }, 16463 16464 // position() relates an element's margin box to its offset parent's padding box 16465 // This corresponds to the behavior of CSS absolute positioning 16466 position: function() { 16467 if ( !this[ 0 ] ) { 16468 return; 16469 } 16470 16471 var offsetParent, offset, doc, 16472 elem = this[ 0 ], 16473 parentOffset = { top: 0, left: 0 }; 16474 16475 // position:fixed elements are offset from the viewport, which itself always has zero offset 16476 if ( jQuery.css( elem, "position" ) === "fixed" ) { 16477 16478 // Assume position:fixed implies availability of getBoundingClientRect 16479 offset = elem.getBoundingClientRect(); 16480 16481 } else { 16482 offset = this.offset(); 16483 16484 // Account for the *real* offset parent, which can be the document or its root element 16485 // when a statically positioned element is identified 16486 doc = elem.ownerDocument; 16487 offsetParent = elem.offsetParent || doc.documentElement; 16488 while ( offsetParent && 16489 ( offsetParent === doc.body || offsetParent === doc.documentElement ) && 16490 jQuery.css( offsetParent, "position" ) === "static" ) { 16491 16492 offsetParent = offsetParent.parentNode; 16493 } 16494 if ( offsetParent && offsetParent !== elem && offsetParent.nodeType === 1 ) { 16495 16496 // Incorporate borders into its offset, since they are outside its content origin 16497 parentOffset = jQuery( offsetParent ).offset(); 16498 parentOffset.top += jQuery.css( offsetParent, "borderTopWidth", true ); 16499 parentOffset.left += jQuery.css( offsetParent, "borderLeftWidth", true ); 16500 } 16501 } 16502 16503 // Subtract parent offsets and element margins 16504 return { 16505 top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ), 16506 left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true ) 16507 }; 16508 }, 16509 16510 // This method will return documentElement in the following cases: 16511 // 1) For the element inside the iframe without offsetParent, this method will return 16512 // documentElement of the parent window 16513 // 2) For the hidden or detached element 16514 // 3) For body or html element, i.e. in case of the html node - it will return itself 16515 // 16516 // but those exceptions were never presented as a real life use-cases 16517 // and might be considered as more preferable results. 16518 // 16519 // This logic, however, is not guaranteed and can change at any point in the future 16520 offsetParent: function() { 16521 return this.map( function() { 16522 var offsetParent = this.offsetParent; 16523 16524 while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) { 16525 offsetParent = offsetParent.offsetParent; 16526 } 16527 16528 return offsetParent || documentElement; 16529 } ); 16530 } 16531} ); 16532 16533// Create scrollLeft and scrollTop methods 16534jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) { 16535 var top = "pageYOffset" === prop; 16536 16537 jQuery.fn[ method ] = function( val ) { 16538 return access( this, function( elem, method, val ) { 16539 16540 // Coalesce documents and windows 16541 var win; 16542 if ( isWindow( elem ) ) { 16543 win = elem; 16544 } else if ( elem.nodeType === 9 ) { 16545 win = elem.defaultView; 16546 } 16547 16548 if ( val === undefined ) { 16549 return win ? win[ prop ] : elem[ method ]; 16550 } 16551 16552 if ( win ) { 16553 win.scrollTo( 16554 !top ? val : win.pageXOffset, 16555 top ? val : win.pageYOffset 16556 ); 16557 16558 } else { 16559 elem[ method ] = val; 16560 } 16561 }, method, val, arguments.length ); 16562 }; 16563} ); 16564 16565// Support: Safari <=7 - 9.1, Chrome <=37 - 49 16566// Add the top/left cssHooks using jQuery.fn.position 16567// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084 16568// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347 16569// getComputedStyle returns percent when specified for top/left/bottom/right; 16570// rather than make the css module depend on the offset module, just check for it here 16571jQuery.each( [ "top", "left" ], function( i, prop ) { 16572 jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition, 16573 function( elem, computed ) { 16574 if ( computed ) { 16575 computed = curCSS( elem, prop ); 16576 16577 // If curCSS returns percentage, fallback to offset 16578 return rnumnonpx.test( computed ) ? 16579 jQuery( elem ).position()[ prop ] + "px" : 16580 computed; 16581 } 16582 } 16583 ); 16584} ); 16585 16586 16587// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods 16588jQuery.each( { Height: "height", Width: "width" }, function( name, type ) { 16589 jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, 16590 function( defaultExtra, funcName ) { 16591 16592 // Margin is only for outerHeight, outerWidth 16593 jQuery.fn[ funcName ] = function( margin, value ) { 16594 var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ), 16595 extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" ); 16596 16597 return access( this, function( elem, type, value ) { 16598 var doc; 16599 16600 if ( isWindow( elem ) ) { 16601 16602 // $( window ).outerWidth/Height return w/h including scrollbars (gh-1729) 16603 return funcName.indexOf( "outer" ) === 0 ? 16604 elem[ "inner" + name ] : 16605 elem.document.documentElement[ "client" + name ]; 16606 } 16607 16608 // Get document width or height 16609 if ( elem.nodeType === 9 ) { 16610 doc = elem.documentElement; 16611 16612 // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], 16613 // whichever is greatest 16614 return Math.max( 16615 elem.body[ "scroll" + name ], doc[ "scroll" + name ], 16616 elem.body[ "offset" + name ], doc[ "offset" + name ], 16617 doc[ "client" + name ] 16618 ); 16619 } 16620 16621 return value === undefined ? 16622 16623 // Get width or height on the element, requesting but not forcing parseFloat 16624 jQuery.css( elem, type, extra ) : 16625 16626 // Set width or height on the element 16627 jQuery.style( elem, type, value, extra ); 16628 }, type, chainable ? margin : undefined, chainable ); 16629 }; 16630 } ); 16631} ); 16632 16633 16634jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " + 16635 "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + 16636 "change select submit keydown keypress keyup contextmenu" ).split( " " ), 16637 function( i, name ) { 16638 16639 // Handle event binding 16640 jQuery.fn[ name ] = function( data, fn ) { 16641 return arguments.length > 0 ? 16642 this.on( name, null, data, fn ) : 16643 this.trigger( name ); 16644 }; 16645} ); 16646 16647jQuery.fn.extend( { 16648 hover: function( fnOver, fnOut ) { 16649 return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); 16650 } 16651} ); 16652 16653 16654 16655 16656jQuery.fn.extend( { 16657 16658 bind: function( types, data, fn ) { 16659 return this.on( types, null, data, fn ); 16660 }, 16661 unbind: function( types, fn ) { 16662 return this.off( types, null, fn ); 16663 }, 16664 16665 delegate: function( selector, types, data, fn ) { 16666 return this.on( types, selector, data, fn ); 16667 }, 16668 undelegate: function( selector, types, fn ) { 16669 16670 // ( namespace ) or ( selector, types [, fn] ) 16671 return arguments.length === 1 ? 16672 this.off( selector, "**" ) : 16673 this.off( types, selector || "**", fn ); 16674 } 16675} ); 16676 16677// Bind a function to a context, optionally partially applying any 16678// arguments. 16679// jQuery.proxy is deprecated to promote standards (specifically Function#bind) 16680// However, it is not slated for removal any time soon 16681jQuery.proxy = function( fn, context ) { 16682 var tmp, args, proxy; 16683 16684 if ( typeof context === "string" ) { 16685 tmp = fn[ context ]; 16686 context = fn; 16687 fn = tmp; 16688 } 16689 16690 // Quick check to determine if target is callable, in the spec 16691 // this throws a TypeError, but we will just return undefined. 16692 if ( !isFunction( fn ) ) { 16693 return undefined; 16694 } 16695 16696 // Simulated bind 16697 args = slice.call( arguments, 2 ); 16698 proxy = function() { 16699 return fn.apply( context || this, args.concat( slice.call( arguments ) ) ); 16700 }; 16701 16702 // Set the guid of unique handler to the same of original handler, so it can be removed 16703 proxy.guid = fn.guid = fn.guid || jQuery.guid++; 16704 16705 return proxy; 16706}; 16707 16708jQuery.holdReady = function( hold ) { 16709 if ( hold ) { 16710 jQuery.readyWait++; 16711 } else { 16712 jQuery.ready( true ); 16713 } 16714}; 16715jQuery.isArray = Array.isArray; 16716jQuery.parseJSON = JSON.parse; 16717jQuery.nodeName = nodeName; 16718jQuery.isFunction = isFunction; 16719jQuery.isWindow = isWindow; 16720jQuery.camelCase = camelCase; 16721jQuery.type = toType; 16722 16723jQuery.now = Date.now; 16724 16725jQuery.isNumeric = function( obj ) { 16726 16727 // As of jQuery 3.0, isNumeric is limited to 16728 // strings and numbers (primitives or objects) 16729 // that can be coerced to finite numbers (gh-2662) 16730 var type = jQuery.type( obj ); 16731 return ( type === "number" || type === "string" ) && 16732 16733 // parseFloat NaNs numeric-cast false positives ("") 16734 // ...but misinterprets leading-number strings, particularly hex literals ("0x...") 16735 // subtraction forces infinities to NaN 16736 !isNaN( obj - parseFloat( obj ) ); 16737}; 16738 16739 16740 16741 16742// Register as a named AMD module, since jQuery can be concatenated with other 16743// files that may use define, but not via a proper concatenation script that 16744// understands anonymous AMD modules. A named AMD is safest and most robust 16745// way to register. Lowercase jquery is used because AMD module names are 16746// derived from file names, and jQuery is normally delivered in a lowercase 16747// file name. Do this after creating the global so that if an AMD module wants 16748// to call noConflict to hide this version of jQuery, it will work. 16749 16750// Note that for maximum portability, libraries that are not jQuery should 16751// declare themselves as anonymous modules, and avoid setting a global if an 16752// AMD loader is present. jQuery is a special case. For more information, see 16753// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon 16754 16755if ( t
16755rue ) { 16756 !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function() { 16757 return jQuery; 16758 }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), 16759 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); 16760} 16761 16762 16763 16764 16765var 16766 16767 // Map over jQuery in case of overwrite 16768 _jQuery = window.jQuery, 16769 16770 // Map over the $ in case of overwrite 16771 _$ = window.$; 16772 16773jQuery.noConflict = function( deep ) { 16774 if ( window.$ === jQuery ) { 16775 window.$ = _$; 16776 } 16777 16778 if ( deep && window.jQuery === jQuery ) { 16779 window.jQuery = _jQuery; 16780 } 16781 16782 return jQuery; 16783}; 16784 16785// Expose jQuery and $ identifiers, even in AMD 16786// (#7102#comment:10, https://github.com/jquery/jquery/pull/557) 16787// and CommonJS for browser emulators (#13566) 16788if ( !noGlobal ) { 16789 window.jQuery = window.$ = jQuery; 16790} 16791 16792 16793 16794 16795return jQuery; 16796} ); 16797 16798 16799/***/ }), 16800/* 26 */ 16801/***/ (function(module, exports, __webpack_require__) { 16802 16803"use strict"; 16804 16805 16806var bind = __webpack_require__(346); 16807var isBuffer = __webpack_require__(577); 16808 16809/*global toString:true*/ 16810 16811// utils is a library of generic helper functions non-specific to axios 16812 16813var toString = Object.prototype.toString; 16814 16815/** 16816 * Determine if a value is an Array 16817 * 16818 * @param {Object} val The value to test 16819 * @returns {boolean} True if value is an Array, otherwise false 16820 */ 16821function isArray(val) { 16822 return toString.call(val) === '[object Array]'; 16823} 16824 16825/** 16826 * Determine if a value is an ArrayBuffer 16827 * 16828 * @param {Object} val The value to test 16829 * @returns {boolean} True if value is an ArrayBuffer, otherwise false 16830 */ 16831function isArrayBuffer(val) { 16832 return toString.call(val) === '[object ArrayBuffer]'; 16833} 16834 16835/** 16836 * Determine if a value is a FormData 16837 * 16838 * @param {Object} val The value to test 16839 * @returns {boolean} True if value is an FormData, otherwise false 16840 */ 16841function isFormData(val) { 16842 return (typeof FormData !== 'undefined') && (val instanceof FormData); 16843} 16844 16845/** 16846 * Determine if a value is a view on an ArrayBuffer 16847 * 16848 * @param {Object} val The value to test 16849 * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false 16850 */ 16851function isArrayBufferView(val) { 16852 var result; 16853 if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { 16854 result = ArrayBuffer.isView(val); 16855 } else { 16856 result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); 16857 } 16858 return result; 16859} 16860 16861/** 16862 * Determine if a value is a String 16863 * 16864 * @param {Object} val The value to test 16865 * @returns {boolean} True if value is a String, otherwise false 16866 */ 16867function isString(val) { 16868 return typeof val === 'string'; 16869} 16870 16871/** 16872 * Determine if a value is a Number 16873 * 16874 * @param {Object} val The value to test 16875 * @returns {boolean} True if value is a Number, otherwise false 16876 */ 16877function isNumber(val) { 16878 return typeof val === 'number'; 16879} 16880 16881/** 16882 * Determine if a value is undefined 16883 * 16884 * @param {Object} val The value to test 16885 * @returns {boolean} True if the value is undefined, otherwise false 16886 */ 16887function isUndefined(val) { 16888 return typeof val === 'undefined'; 16889} 16890 16891/** 16892 * Determine if a value is an Object 16893 * 16894 * @param {Object} val The value to test 16895 * @returns {boolean} True if value is an Object, otherwise false 16896 */ 16897function isObject(val) { 16898 return val !== null && typeof val === 'object'; 16899} 16900 16901/** 16902 * Determine if a value is a Date 16903 * 16904 * @param {Object} val The value to test 16905 * @returns {boolean} True if value is a Date, otherwise false 16906 */ 16907function isDate(val) { 16908 return toString.call(val) === '[object Date]'; 16909} 16910 16911/** 16912 * Determine if a value is a File 16913 * 16914 * @param {Object} val The value to test 16915 * @returns {boolean} True if value is a File, otherwise false 16916 */ 16917function isFile(val) { 16918 return toString.call(val) === '[object File]'; 16919} 16920 16921/** 16922 * Determine if a value is a Blob 16923 * 16924 * @param {Object} val The value to test 16925 * @returns {boolean} True if value is a Blob, otherwise false 16926 */ 16927function isBlob(val) { 16928 return toString.call(val) === '[object Blob]'; 16929} 16930 16931/** 16932 * Determine if a value is a Function 16933 * 16934 * @param {Object} val The value to test 16935 * @returns {boolean} True if value is a Function, otherwise false 16936 */ 16937function isFunction(val) { 16938 return toString.call(val) === '[object Function]'; 16939} 16940
vendor: 4,358 bytes, lines 16941-17111
16941/** 16942 * Determine if a value is a Stream 16943 * 16944 * @param {Object} val The value to test 16945 * @returns {boolean} True if value is a Stream, otherwise false 16946 */ 16947function isStream(val) { 16948 return isObject(val) && isFunction(val.pipe); 16949} 16950 16951/** 16952 * Determine if a value is a URLSearchParams object 16953 * 16954 * @param {Object} val The value to test 16955 * @returns {boolean} True if value is a URLSearchParams object, otherwise false 16956 */ 16957function isURLSearchParams(val) { 16958 return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams; 16959} 16960 16961/** 16962 * Trim excess whitespace off the beginning and end of a string 16963 * 16964 * @param {String} str The String to trim 16965 * @returns {String} The String freed of excess whitespace 16966 */ 16967function trim(str) { 16968 return str.replace(/^\s*/, '').replace(/\s*$/, ''); 16969} 16970 16971/** 16972 * Determine if we're running in a standard browser environment 16973 * 16974 * This allows axios to run in a web worker, and react-native. 16975 * Both environments support XMLHttpRequest, but not fully standard globals. 16976 * 16977 * web workers: 16978 * typeof window -> undefined 16979 * typeof document -> undefined 16980 * 16981 * react-native: 16982 * navigator.product -> 'ReactNative' 16983 */ 16984function isStandardBrowserEnv() { 16985 if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') { 16986 return false; 16987 } 16988 return ( 16989 typeof window !== 'undefined' && 16990 typeof document !== 'undefined' 16991 ); 16992} 16993 16994/** 16995 * Iterate over an Array or an Object invoking a function for each item. 16996 * 16997 * If `obj` is an Array callback will be called passing 16998 * the value, index, and complete array for each item. 16999 * 17000 * If 'obj' is an Object callback will be called passing 17001 * the value, key, and complete object for each property. 17002 * 17003 * @param {Object|Array} obj The object to iterate 17004 * @param {Function} fn The callback to invoke for each item 17005 */ 17006function forEach(obj, fn) { 17007 // Don't bother if no value provided 17008 if (obj === null || typeof obj === 'undefined') { 17009 return; 17010 } 17011 17012 // Force an array if not already something iterable 17013 if (typeof obj !== 'object' && !isArray(obj)) { 17014 /*eslint no-param-reassign:0*/ 17015 obj = [obj]; 17016 } 17017 17018 if (isArray(obj)) { 17019 // Iterate over array values 17020 for (var i = 0, l = obj.length; i < l; i++) { 17021 fn.call(null, obj[i], i, obj); 17022 } 17023 } else { 17024 // Iterate over object keys 17025 for (var key in obj) { 17026 if (Object.prototype.hasOwnProperty.call(obj, key)) { 17027 fn.call(null, obj[key], key, obj); 17028 } 17029 } 17030 } 17031} 17032 17033/** 17034 * Accepts varargs expecting each argument to be an object, then 17035 * immutably merges the properties of each object and returns result. 17036 * 17037 * When multiple objects contain the same key the later object in 17038 * the arguments list will take precedence. 17039 * 17040 * Example: 17041 * 17042 * ```js 17043 * var result = merge({foo: 123}, {foo: 456}); 17044 * console.log(result.foo); // outputs 456 17045 * ``` 17046 * 17047 * @param {Object} obj1 Object to merge 17048 * @returns {Object} Result of all merge properties 17049 */ 17050function merge(/* obj1, obj2, obj3, ... */) { 17051 var result = {}; 17052 function assignValue(val, key) { 17053 if (typeof result[key] === 'object' && typeof val === 'object') { 17054 result[key] = merge(result[key], val); 17055 } else { 17056 result[key] = val; 17057 } 17058 } 17059 17060 for (var i = 0, l = arguments.length; i < l; i++) { 17061 forEach(arguments[i], assignValue); 17062 } 17063 return result; 17064} 17065 17066/** 17067 * Extends object a by mutably adding to it the properties of object b. 17068 * 17069 * @param {Object} a The object to be extended 17070 * @param {Object} b The object to copy properties from 17071 * @param {Object} thisArg The object to bind function to 17072 * @return {Object} The resulting value of object a 17073 */ 17074function extend(a, b, thisArg) { 17075 forEach(b, function assignValue(val, key) { 17076 if (thisArg && typeof val === 'function') { 17077 a[key] = bind(val, thisArg); 17078 } else { 17079 a[key] = val; 17080 } 17081 }); 17082 return a; 17083} 17084 17085module.exports = { 17086 isArray: isArray, 17087 isArrayBuffer: isArrayBuffer, 17088 isBuffer: isBuffer, 17089 isFormData: isFormData, 17090 isArrayBufferView: isArrayBufferView, 17091 isString: isString, 17092 isNumber: isNumber, 17093 isObject: isObject, 17094 isUndefined: isUndefined, 17095 isDate: isDate, 17096 isFile: isFile, 17097 isBlob: isBlob, 17098 isFunction: isFunction, 17099 isStream: isStream, 17100 isURLSearchParams: isURLSearchParams, 17101 isStandardBrowserEnv: isStandardBrowserEnv, 17102 forEach: forEach, 17103 merge: merge, 17104 extend: extend, 17105 trim: trim 17106}; 17107 17108 17109/***/ }), 17110/* 27 */, 17111/* 28 */
17112/***/ (function(module, exports) { 17113 17114var core = module.exports = { version: '2.5.7' }; 17115if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 17116 17117 17118/***/ }), 17119/* 29 */ 17120/***/ (function(module, exports, __webpack_require__) { 17121 17122"use strict"; 17123 17124 17125/** 17126 * Copyright (c) 2013-present, Facebook, Inc. 17127 * 17128 * This source code is licensed under the MIT license found in the 17129 * LICENSE file in the root directory of this source tree. 17130 * 17131 * 17132 */ 17133 17134function makeEmptyFunction(arg) { 17135 return function () { 17136 return arg; 17137 }; 17138} 17139 17140/** 17141 * This function accepts and discards inputs; it has no side effects. This is 17142 * primarily useful idiomatically for overridable function endpoints which 17143 * always need to be callable, since JS lacks a null-call idiom ala Cocoa. 17144 */ 17145var emptyFunction = function emptyFunction() {}; 17146 17147emptyFunction.thatReturns = makeEmptyFunction; 17148emptyFunction.thatReturnsFalse = makeEmptyFunction(false); 17149emptyFunction.thatReturnsTrue = makeEmptyFunction(true); 17150emptyFunction.thatReturnsNull = makeEmptyFunction(null); 17151emptyFunction.thatReturnsThis = function () { 17152 return this; 17153}; 17154emptyFunction.thatReturnsArgument = function (arg) { 17155 return arg; 17156}; 17157 17158module.exports = emptyFunction; 17159 17160/***/ }), 17161/* 30 */ 17162/***/ (function(module, exports, __webpack_require__) { 17163 17164"use strict"; 17165/** 17166 * Copyright (c) 2013-present, Facebook, Inc. 17167 * 17168 * This source code is licensed under the MIT license found in the 17169 * LICENSE file in the root directory of this source tree. 17170 * 17171 * 17172 */ 17173 17174 17175 17176/** 17177 * Keeps track of the current owner. 17178 * 17179 * The current owner is the component who should own any components that are 17180 * currently being constructed. 17181 */ 17182var ReactCurrentOwner = { 17183 /** 17184 * @internal 17185 * @type {ReactComponent} 17186 */ 17187 current: null 17188}; 17189 17190module.exports = ReactCurrentOwner; 17191 17192/***/ }), 17193/* 31 */ 17194/***/ (function(module, exports, __webpack_require__) { 17195 17196"use strict"; 17197/** 17198 * Copyright (c) 2013-present, Facebook, Inc. 17199 * 17200 * This source code is licensed under the MIT license found in the 17201 * LICENSE file in the root directory of this source tree. 17202 * 17203 */ 17204 17205 17206 17207var _prodInvariant = __webpack_require__(12), 17208 _assign = __webpack_require__(14); 17209 17210var CallbackQueue = __webpack_require__(172); 17211var PooledClass = __webpack_require__(42); 17212var ReactFeatureFlags = __webpack_require__(173); 17213var ReactReconciler = __webpack_require__(52); 17214var Transaction = __webpack_require__(80); 17215 17216var invariant = __webpack_require__(10); 17217 17218var dirtyComponents = []; 17219var updateBatchNumber = 0; 17220var asapCallbackQueue = CallbackQueue.getPooled(); 17221var asapEnqueued = false; 17222 17223var batchingStrategy = null; 17224 17225function ensureInjected() { 17226 !(ReactUpdates.ReactReconcileTransaction && batchingStrategy) ? true ? invariant(false, 'ReactUpdates: must inject a reconcile transaction class and batching strategy') : _prodInvariant('123') : void 0; 17227} 17228 17229var NESTED_UPDATES = { 17230 initialize: function () { 17231 this.dirtyComponentsLength = dirtyComponents.length; 17232 }, 17233 close: function () { 17234 if (this.dirtyComponentsLength !== dirtyComponents.length) { 17235 // Additional updates were enqueued by componentDidUpdate handlers or 17236 // similar; before our own UPDATE_QUEUEING wrapper closes, we want to run 17237 // these new updates so that if A's componentDidUpdate calls setState on 17238 // B, B will update before the callback A's updater provided when calling 17239 // setState. 17240 dirtyComponents.splice(0, this.dirtyComponentsLength); 17241 flushBatchedUpdates(); 17242 } else { 17243 dirtyComponents.length = 0; 17244 } 17245 } 17246}; 17247 17248var UPDATE_QUEUEING = { 17249 initialize: function () { 17250 this.callbackQueue.reset(); 17251 }, 17252 close: function () { 17253 this.callbackQueue.notifyAll(); 17254 } 17255}; 17256 17257var TRANSACTION_WRAPPERS = [NESTED_UPDATES, UPDATE_QUEUEING]; 17258 17259function ReactUpdatesFlushTransaction() { 17260 this.reinitializeTransaction(); 17261 this.dirtyComponentsLength = null; 17262 this.callbackQueue = CallbackQueue.getPooled(); 17263 this.reconcileTransaction = ReactUpdates.ReactReconcileTransaction.getPooled( 17264 /* useCreateElement */true); 17265} 17266 17267_assign(ReactUpdatesFlushTransaction.prototype, Transaction, { 17268 getTransactionWrappers: function () { 17269 return TRANSACTION_WRAPPERS; 17270 }, 17271 17272 destructor: function () { 17273 this.dirtyComponentsLength = null; 17274 CallbackQueue.release(this.callbackQueue); 17275 this.callbackQueue = null; 17276 ReactUpdates.ReactReconcileTransaction.release(this.reconcileTransaction); 17277 this.reconcileTransaction = null; 17278 }, 17279 17280 perform: function (method, scope, a) { 17281 // Essentially calls `this.reconcileTransaction.perform(method, scope, a)` 17282 // with this transaction's wrappers around it. 17283 return Transaction.perform.call(this, this.reconcileTransaction.perform, this.reconcileTransaction, method, scope, a); 17284 } 17285}); 17286 17287PooledClass.addPoolingTo(ReactUpdatesFlushTransaction); 17288 17289function batchedUpdates(callback, a, b, c, d, e) { 17290 ensureInjected(); 17291 return batchingStrategy.batchedUpdates(callback, a, b, c, d, e); 17292} 17293 17294/** 17295 * Array comparator for ReactComponents by mount ordering. 17296 * 17297 * @param {ReactComponent} c1 first component you're comparing 17298 * @param {ReactComponent} c2 second component you're comparing 17299 * @return {number} Return value usable by Array.prototype.sort(). 17300 */ 17301function mountOrderComparator(c1, c2) { 17302 return c1._mountOrder - c2._mountOrder; 17303} 17304
17305function runBatchedUpdates(transaction) { 17306 var len = transaction.dirtyComponentsLength; 17307 !(len === dirtyComponents.length) ? true ? invariant(false, 'Expected flush transaction\'s stored dirty-components length (%s) to match dirty-components array length (%s).', len, dirtyComponents.length) : _prodInvariant('124', len, dirtyComponents.length) : void 0; 17308 17309 // Since reconciling a component higher in the owner hierarchy usually (not 17310 // always -- see shouldComponentUpdate()) will reconcile children, reconcile 17311 // them before their children by sorting the array. 17312 dirtyComponents.sort(mountOrderComparator); 17313 17314 // Any updates enqueued while reconciling must be performed after this entire 17315 // batch. Otherwise, if dirtyComponents is [A, B] where A has children B and 17316 // C, B could update twice in a single batch if C's render enqueues an update 17317 // to B (since B would have already updated, we should skip it, and the only 17318 // way we can know to do so is by checking the batch counter). 17319 updateBatchNumber++; 17320 17321 for (var i = 0; i < len; i++) { 17322 // If a component is unmounted before pending changes apply, it will still 17323 // be here, but we assume that it has cleared its _pendingCallbacks and 17324 // that performUpdateIfNecessary is a noop. 17325 var component = dirtyComponents[i]; 17326 17327 // If performUpdateIfNecessary happens to enqueue any new updates, we 17328 // shouldn't execute the callbacks until the next render happens, so 17329 // stash the callbacks first 17330 var callbacks = component._pendingCallbacks; 17331 component._pendingCallbacks = null; 17332 17333 var markerName; 17334 if (ReactFeatureFlags.logTopLevelRenders) { 17335 var namedComponent = component; 17336 // Duck type TopLevelWrapper. This is probably always true. 17337 if (component._currentElement.type.isReactTopLevelWrapper) { 17338 namedComponent = component._renderedComponent; 17339 } 17340 markerName = 'React update: ' + namedComponent.getName(); 17341 console.time(markerName); 17342 } 17343 17344 ReactReconciler.performUpdateIfNecessary(component, transaction.reconcileTransaction, updateBatchNumber); 17345 17346 if (markerName) { 17347 console.timeEnd(markerName); 17348 } 17349 17350 if (callbacks) { 17351 for (var j = 0; j < callbacks.length; j++) { 17352 transaction.callbackQueue.enqueue(callbacks[j], component.getPublicInstance()); 17353 } 17354 } 17355 } 17356} 17357 17358var flushBatchedUpdates = function () { 17359 // ReactUpdatesFlushTransaction's wrappers will clear the dirtyComponents 17360 // array and perform any updates enqueued by mount-ready handlers (i.e., 17361 // componentDidUpdate) but we need to check here too in order to catch 17362 // updates enqueued by setState callbacks and asap calls. 17363 while (dirtyComponents.length || asapEnqueued) { 17364 if (dirtyComponents.length) { 17365 var transaction = ReactUpdatesFlushTransaction.getPooled(); 17366 transaction.perform(runBatchedUpdates, null, transaction); 17367 ReactUpdatesFlushTransaction.release(transaction); 17368 } 17369 17370 if (asapEnqueued) { 17371 asapEnqueued = false; 17372 var queue = asapCallbackQueue; 17373 asapCallbackQueue = CallbackQueue.getPooled(); 17374 queue.notifyAll(); 17375 CallbackQueue.release(queue); 17376 } 17377 } 17378}; 17379 17380/** 17381 * Mark a component as needing a rerender, adding an optional callback to a 17382 * list of functions which will be executed once the rerender occurs. 17383 */ 17384function enqueueUpdate(component) { 17385 ensureInjected(); 17386 17387 // Various parts of our code (such as ReactCompositeComponent's 17388 // _renderValidatedComponent) assume that calls to render aren't nested; 17389 // verify that that's the case. (This is called by each top-level update 17390 // function, like setState, forceUpdate, etc.; creation and 17391 // destruction of top-level components is guarded in ReactMount.) 17392 17393 if (!batchingStrategy.isBatchingUpdates) { 17394 batchingStrategy.batchedUpdates(enqueueUpdate, component); 17395 return; 17396 } 17397 17398 dirtyComponents.push(component); 17399 if (component._updateBatchNumber == null) { 17400 component._updateBatchNumber = updateBatchNumber + 1; 17401 } 17402} 17403 17404/** 17405 * Enqueue a callback to be run at the end of the current batching cycle. Throws 17406 * if no updates are currently being performed. 17407 */ 17408function asap(callback, context) { 17409 invariant(batchingStrategy.isBatchingUpdates, "ReactUpdates.asap: Can't enqueue an asap callback in a context where" + 'updates are not being batched.'); 17410 asapCallbackQueue.enqueue(callback, context); 17411 asapEnqueued = true; 17412} 17413 17414var ReactUpdatesInjection = { 17415 injectReconcileTransaction: function (ReconcileTransaction) { 17416 !ReconcileTransaction ? true ? invariant(false, 'ReactUpdates: must provide a reconcile transaction class') : _prodInvariant('126') : void 0; 17417 ReactUpdates.ReactReconcileTransaction = ReconcileTransaction; 17418 }, 17419 17420 injectBatchingStrategy: function (_batchingStrategy) { 17421 !_batchingStrategy ? true ? invariant(false, 'ReactUpdates: must provide a batching strategy') : _prodInvariant('127') : void 0; 17422 !(typeof _batchingStrategy.batchedUpdates === 'function') ? true ? invariant(false, 'ReactUpdates: must provide a batchedUpdates() function') : _prodInvariant('128') : void 0; 17423 !(typeof _batchingStrategy.isBatchingUpdates === 'boolean') ? true ? invariant(false, 'ReactUpdates: must provide an isBatchingUpdates boolean attribute') : _prodInvariant('129') : void 0; 17424 batchingStrategy = _batchingStrategy; 17425 } 17426}; 17427 17428var ReactUpdates = { 17429 /** 17430 * React references `ReactReconcileTransaction` using this property in order 17431 * to allow dependency injection. 17432 * 17433 * @internal 17434 */ 17435 ReactReconcileTransaction: null, 17436 17437 batchedUpdates: batchedUpdates, 17438 enqueueUpdate: enqueueUpdate,
17439 flushBatchedUpdates: flushBatchedUpdates, 17440 injection: ReactUpdatesInjection, 17441 asap: asap 17442}; 17443 17444module.exports = ReactUpdates; 17445 17446/***/ }), 17447/* 32 */ 17448/***/ (function(module, __webpack_exports__, __webpack_require__) { 17449 17450"use strict"; 17451Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); 17452/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createStore__ = __webpack_require__(209); 17453/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__combineReducers__ = __webpack_require__(553); 17454/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__bindActionCreators__ = __webpack_require__(554); 17455/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__applyMiddleware__ = __webpack_require__(555); 17456/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__compose__ = __webpack_require__(212); 17457/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__utils_warning__ = __webpack_require__(211); 17458/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createStore", function() { return __WEBPACK_IMPORTED_MODULE_0__createStore__["b"]; }); 17459/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "combineReducers", function() { return __WEBPACK_IMPORTED_MODULE_1__combineReducers__["a"]; }); 17460/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "bindActionCreators", function() { return __WEBPACK_IMPORTED_MODULE_2__bindActionCreators__["a"]; }); 17461/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "applyMiddleware", function() { return __WEBPACK_IMPORTED_MODULE_3__applyMiddleware__["a"]; }); 17462/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "compose", function() { return __WEBPACK_IMPORTED_MODULE_4__compose__["a"]; }); 17463 17464 17465 17466 17467 17468 17469 17470/* 17471* This is a dummy function to check if the function name has been altered by minification. 17472* If the function has been minified and NODE_ENV !== 'production', warn the user. 17473*/ 17474function isCrushed() {} 17475 17476if ("dev" !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') { 17477 Object(__WEBPACK_IMPORTED_MODULE_5__utils_warning__["a" /* default */])('You are currently using minified code outside of NODE_ENV === \'production\'. ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) ' + 'to ensure you have the correct code for your production build.'); 17478} 17479 17480 17481 17482/***/ }), 17483/* 33 */ 17484/***/ (function(module, exports, __webpack_require__) { 17485 17486var store = __webpack_require__(143)('wks'); 17487var uid = __webpack_require__(92); 17488var Symbol = __webpack_require__(38).Symbol; 17489var USE_SYMBOL = typeof Symbol == 'function'; 17490 17491var $exports = module.exports = function (name) { 17492 return store[name] || (store[name] = 17493 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); 17494}; 17495 17496$exports.store = store; 17497 17498 17499/***/ }), 17500/* 34 */ 17501/***/ (function(module, __webpack_exports__, __webpack_require__) { 17502 17503"use strict"; 17504/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 17505/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 17506/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 17507/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 17508/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 17509/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 17510/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 17511/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 17512/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 17513/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 17514/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0); 17515/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__); 17516/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(2); 17517/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__); 17518/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__ = __webpack_require__(13); 17519/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__); 17520/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_createChainedFunction__ = __webpack_require__(16); 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532var propTypes = { 17533 href: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 17534 onClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 17535 onKeyDown: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 17536 disabled: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 17537 role: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 17538 tabIndex: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string]), 17539 /** 17540 * this is sort of silly but needed for Button 17541 */ 17542 componentClass: __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default.a 17543}; 17544 17545var defaultProps = { 17546 componentClass: 'a' 17547}; 17548 17549function isTrivialHref(href) { 17550 return !href || href.trim() === '#'; 17551} 17552 17553/** 17554 * There are situations due to browser quirks or Bootstrap CSS where 17555 * an anchor tag is needed, when semantically a button tag is the 17556 * better choice. SafeAnchor ensures that when an anchor is used like a 17557 * button its accessible. It also emulates input `disabled` behavior for 17558 * links, which is usually desirable for Buttons, NavItems, MenuItems, etc. 17559 */ 17560 17561var SafeAnchor = function (_React$Component) { 17562 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(SafeAnchor, _React$Component); 17563 17564 function SafeAnchor(props, context) { 17565 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, SafeAnchor); 17566 17567 var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props, context)); 17568 17569 _this.handleClick = _this.handleClick.bind(_this); 17570 _this.handleKeyDown = _this.handleKeyDown.bind(_this); 17571 return _this; 17572 } 17573 17574 SafeAnchor.prototype.handleClick = function handleClick(event) { 17575 var _props = this.props, 17576 disabled = _props.disabled, 17577 href = _props.href, 17578 onClick = _props.onClick; 17579 17580 17581 if (disabled || isTrivialHref(href)) { 17582 event.preventDefault(); 17583 } 17584 17585 if (disabled) { 17586 event.stopPropagation(); 17587 return; 17588 } 17589 17590 if (onClick) { 17591 onClick(event); 17592 } 17593 }; 17594 17595 SafeAnchor.prototype.handleKeyDown = function handleKeyDown(event) { 17596 if (event.key === ' ') { 17597 event.preventDefault(); 17598 this.handleClick(event); 17599 } 17600 }; 17601 17602 SafeAnchor.prototype.render = function render() { 17603 var _props2 = this.props, 17604 Component = _props2.componentClass, 17605 disabled = _props2.disabled, 17606 onKeyDown = _props2.onKeyDown, 17607 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props2, ['componentClass', 'disabled', 'onKeyDown']); 17608 17609 if (isTrivialHref(props.href)) { 17610 props.role = props.role || 'button'; 17611 // we want to make sure there is a href attribute on the node 17612 // otherwise, the cursor incorrectly styled (except with role='button') 17613 props.href = props.href || '#'; 17614 } 17615 17616 if (disabled) { 17617 props.tabIndex = -1; 17618 props.style = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({ pointerEvents: 'none' }, props.style); 17619 } 17620 17621 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, { 17622 onClick: this.handleClick, 17623 onKeyDown: Object(__WEBPACK_IMPORTED_MODULE_8__utils_createChainedFunction__["a" /* default */])(this.handleKeyDown, onKeyDown) 17624 })); 17625 }; 17626 17627 return SafeAnchor; 17628}(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component); 17629
17630SafeAnchor.propTypes = propTypes; 17631SafeAnchor.defaultProps = defaultProps; 17632 17633/* harmony default export */ __webpack_exports__["a"] = (SafeAnchor); 17634 17635/***/ }), 17636/* 35 */ 17637/***/ (function(module, exports, __webpack_require__) { 17638 17639"use strict"; 17640/** 17641 * Copyright (c) 2013-present, Facebook, Inc. 17642 * 17643 * This source code is licensed under the MIT license found in the 17644 * LICENSE file in the root directory of this source tree. 17645 * 17646 */ 17647 17648 17649 17650var _assign = __webpack_require__(14); 17651 17652var PooledClass = __webpack_require__(42); 17653 17654var emptyFunction = __webpack_require__(29); 17655var warning = __webpack_require__(11); 17656 17657var didWarnForAddedNewProperty = false; 17658var isProxySupported = typeof Proxy === 'function'; 17659 17660var shouldBeReleasedProperties = ['dispatchConfig', '_targetInst', 'nativeEvent', 'isDefaultPrevented', 'isPropagationStopped', '_dispatchListeners', '_dispatchInstances']; 17661 17662/** 17663 * @interface Event 17664 * @see http://www.w3.org/TR/DOM-Level-3-Events/ 17665 */ 17666var EventInterface = { 17667 type: null, 17668 target: null, 17669 // currentTarget is set when dispatching; no use in copying it here 17670 currentTarget: emptyFunction.thatReturnsNull, 17671 eventPhase: null, 17672 bubbles: null, 17673 cancelable: null, 17674 timeStamp: function (event) { 17675 return event.timeStamp || Date.now(); 17676 }, 17677 defaultPrevented: null, 17678 isTrusted: null 17679}; 17680 17681/** 17682 * Synthetic events are dispatched by event plugins, typically in response to a 17683 * top-level event delegation handler. 17684 * 17685 * These systems should generally use pooling to reduce the frequency of garbage 17686 * collection. The system should check `isPersistent` to determine whether the 17687 * event should be released into the pool after being dispatched. Users that 17688 * need a persisted event should invoke `persist`. 17689 * 17690 * Synthetic events (and subclasses) implement the DOM Level 3 Events API by 17691 * normalizing browser quirks. Subclasses do not necessarily have to implement a 17692 * DOM interface; custom application-specific events can also subclass this. 17693 * 17694 * @param {object} dispatchConfig Configuration used to dispatch this event. 17695 * @param {*} targetInst Marker identifying the event target. 17696 * @param {object} nativeEvent Native browser event. 17697 * @param {DOMEventTarget} nativeEventTarget Target node. 17698 */ 17699function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { 17700 if (true) { 17701 // these have a getter/setter for warnings 17702 delete this.nativeEvent; 17703 delete this.preventDefault; 17704 delete this.stopPropagation; 17705 } 17706 17707 this.dispatchConfig = dispatchConfig; 17708 this._targetInst = targetInst; 17709 this.nativeEvent = nativeEvent; 17710 17711 var Interface = this.constructor.Interface; 17712 for (var propName in Interface) { 17713 if (!Interface.hasOwnProperty(propName)) { 17714 continue; 17715 } 17716 if (true) { 17717 delete this[propName]; // this has a getter/setter for warnings 17718 } 17719 var normalize = Interface[propName]; 17720 if (normalize) { 17721 this[propName] = normalize(nativeEvent); 17722 } else { 17723 if (propName === 'target') { 17724 this.target = nativeEventTarget; 17725 } else { 17726 this[propName] = nativeEvent[propName]; 17727 } 17728 } 17729 } 17730 17731 var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false; 17732 if (defaultPrevented) { 17733 this.isDefaultPrevented = emptyFunction.thatReturnsTrue; 17734 } else { 17735 this.isDefaultPrevented = emptyFunction.thatReturnsFalse; 17736 } 17737 this.isPropagationStopped = emptyFunction.thatReturnsFalse; 17738 return this; 17739} 17740 17741_assign(SyntheticEvent.prototype, { 17742 preventDefault: function () { 17743 this.defaultPrevented = true; 17744 var event = this.nativeEvent; 17745 if (!event) { 17746 return; 17747 } 17748 17749 if (event.preventDefault) { 17750 event.preventDefault(); 17751 // eslint-disable-next-line valid-typeof 17752 } else if (typeof event.returnValue !== 'unknown') { 17753 event.returnValue = false; 17754 } 17755 this.isDefaultPrevented = emptyFunction.thatReturnsTrue; 17756 }, 17757 17758 stopPropagation: function () { 17759 var event = this.nativeEvent; 17760 if (!event) { 17761 return; 17762 } 17763 17764 if (event.stopPropagation) { 17765 event.stopPropagation(); 17766 // eslint-disable-next-line valid-typeof 17767 } else if (typeof event.cancelBubble !== 'unknown') { 17768 // The ChangeEventPlugin registers a "propertychange" event for 17769 // IE. This event does not support bubbling or cancelling, and 17770 // any references to cancelBubble throw "Member not found". A 17771 // typeof check of "unknown" circumvents this issue (and is also 17772 // IE specific). 17773 event.cancelBubble = true; 17774 } 17775 17776 this.isPropagationStopped = emptyFunction.thatReturnsTrue; 17777 }, 17778 17779 /** 17780 * We release all dispatched `SyntheticEvent`s after each event loop, adding 17781 * them back into the pool. This allows a way to hold onto a reference that 17782 * won't be added back into the pool. 17783 */ 17784 persist: function () { 17785 this.isPersistent = emptyFunction.thatReturnsTrue; 17786 }, 17787 17788 /** 17789 * Checks if this event should be released back into the pool. 17790 * 17791 * @return {boolean} True if this should not be released, false otherwise. 17792 */ 17793 isPersistent: emptyFunction.thatReturnsFalse, 17794 17795 /** 17796 * `PooledClass` looks for `destructor` on each instance it releases. 17797 */ 17798 destructor: function () { 17799 var Interface = this.constructor.Interface; 17800 for (var propName in Interface) { 17801 if (true) { 17802 Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName])); 17803 } else { 17804 this[propName] = null; 17805 } 17806 } 17807 for (var i = 0; i < shouldBeReleasedProperties.length; i++) { 17808 this[shouldBeReleasedProperties[i]] = null; 17809 } 17810 if (true) { 17811 Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null)); 17812 Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', emptyFunction)); 17813 Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', emptyFunction)); 17814 } 17815 } 17816}); 17817 17818SyntheticEvent.Interface = EventInterface; 17819 17820/** 17821 * Helper to reduce boilerplate when creating subclasses. 17822 * 17823 * @param {function} Class 17824 * @param {?object} Interface 17825 */ 17826SyntheticEvent.augmentClass = function (Class, Interface) { 17827 var Super = this; 17828 17829 var E = function () {}; 17830 E.prototype = Super.prototype; 17831 var prototype = new E(); 17832 17833 _assign(prototype, Class.prototype); 17834 Class.prototype = prototype; 17835 Class.prototype.constructor = Class; 17836 17837 Class.Interface = _assign({}, Super.Interface, Interface); 17838 Class.augmentClass = Super.augmentClass; 17839 17840 PooledClass.addPoolingTo(Class, PooledClass.fourArgumentPooler); 17841}; 17842 17843/** Proxying after everything set on SyntheticEvent 17844 * to resolve Proxy issue on some WebKit browsers 17845 * in which some Event properties are set to undefined (GH#10010) 17846 */ 17847if (true) { 17848 if (isProxySupported) { 17849 /*eslint-disable no-func-assign */ 17850 SyntheticEvent = new Proxy(SyntheticEvent, { 17851 construct: function (target, args) { 17852 return this.apply(target, Object.create(target.prototype), args); 17853 }, 17854 apply: function (constructor, that, args) { 17855 return new Proxy(constructor.apply(that, args), { 17856 set: function (target, prop, value) { 17857 if (prop !== 'isPersistent' && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) { 17858 true ? warning(didWarnForAddedNewProperty || target.isPersistent
17858(), "This synthetic event is reused for performance reasons. If you're " + "seeing this, you're adding a new property in the synthetic event object. " + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.') : void 0; 17859 didWarnForAddedNewProperty = true; 17860 } 17861 target[prop] = value; 17862 return true; 17863 } 17864 }); 17865 } 17866 }); 17867 /*eslint-enable no-func-assign */ 17868 } 17869} 17870 17871PooledClass.addPoolingTo(SyntheticEvent, PooledClass.fourArgumentPooler); 17872 17873module.exports = SyntheticEvent; 17874 17875/** 17876 * Helper to nullify syntheticEvent instance properties when destructing 17877 * 17878 * @param {object} SyntheticEvent 17879 * @param {String} propName 17880 * @return {object} defineProperty object 17881 */ 17882function getPooledWarningPropertyDefinition(propName, getVal) { 17883 var isFunction = typeof getVal === 'function'; 17884 return { 17885 configurable: true, 17886 set: set, 17887 get: get 17888 }; 17889 17890 function set(val) { 17891 var action = isFunction ? 'setting the method' : 'setting the property'; 17892 warn(action, 'This is effectively a no-op'); 17893 return val; 17894 } 17895 17896 function get() { 17897 var action = isFunction ? 'accessing the method' : 'accessing the property'; 17898 var result = isFunction ? 'This is a no-op function' : 'This is set to null'; 17899 warn(action, result); 17900 return getVal; 17901 } 17902 17903 function warn(action, result) { 17904 var warningCondition = false; 17905 true ? warning(warningCondition, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0; 17906 } 17907} 17908 17909/***/ }), 17910/* 36 */ 17911/***/ (function(module, exports, __webpack_require__) { 17912 17913"use strict"; 17914/** 17915 * Copyright (c) 2013-present, Facebook, Inc. 17916 * 17917 * This source code is licensed under the MIT license found in the 17918 * LICENSE file in the root directory of this source tree. 17919 * 17920 */ 17921 17922 17923 17924var _prodInvariant = __webpack_require__(12); 17925 17926var invariant = __webpack_require__(10); 17927 17928function checkMask(value, bitmask) { 17929 return (value & bitmask) === bitmask; 17930} 17931 17932var DOMPropertyInjection = { 17933 /** 17934 * Mapping from normalized, camelcased property names to a configuration that 17935 * specifies how the associated DOM property should be accessed or rendered. 17936 */ 17937 MUST_USE_PROPERTY: 0x1, 17938 HAS_BOOLEAN_VALUE: 0x4, 17939 HAS_NUMERIC_VALUE: 0x8, 17940 HAS_POSITIVE_NUMERIC_VALUE: 0x10 | 0x8, 17941 HAS_OVERLOADED_BOOLEAN_VALUE: 0x20, 17942 17943 /** 17944 * Inject some specialized knowledge about the DOM. This takes a config object 17945 * with the following properties: 17946 * 17947 * isCustomAttribute: function that given an attribute name will return true 17948 * if it can be inserted into the DOM verbatim. Useful for data-* or aria-* 17949 * attributes where it's impossible to enumerate all of the possible 17950 * attribute names, 17951 * 17952 * Properties: object mapping DOM property name to one of the 17953 * DOMPropertyInjection constants or null. If your attribute isn't in here, 17954 * it won't get written to the DOM. 17955 * 17956 * DOMAttributeNames: object mapping React attribute name to the DOM 17957 * attribute name. Attribute names not specified use the **lowercase** 17958 * normalized name. 17959 * 17960 * DOMAttributeNamespaces: object mapping React attribute name to the DOM 17961 * attribute namespace URL. (Attribute names not specified use no namespace.) 17962 * 17963 * DOMPropertyNames: similar to DOMAttributeNames but for DOM properties. 17964 * Property names not specified use the normalized name. 17965 * 17966 * DOMMutationMethods: Properties that require special mutation methods. If 17967 * `value` is undefined, the mutation method should unset the property. 17968 * 17969 * @param {object} domPropertyConfig the config as described above. 17970 */ 17971 injectDOMPropertyConfig: function (domPropertyConfig) { 17972 var Injection = DOMPropertyInjection; 17973 var Properties = domPropertyConfig.Properties || {}; 17974 var DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {}; 17975 var DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {}; 17976 var DOMPropertyNames = domPropertyConfig.DOMPropertyNames || {}; 17977 var DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {}; 17978 17979 if (domPropertyConfig.isCustomAttribute) { 17980 DOMProperty._isCustomAttributeFunctions.push(domPropertyConfig.isCustomAttribute); 17981 } 17982 17983 for (var propName in Properties) { 17984 !!DOMProperty.properties.hasOwnProperty(propName) ? true ? invariant(false, 'injectDOMPropertyConfig(...): You\'re trying to inject DOM property \'%s\' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.', propName) : _prodInvariant('48', propName) : void 0; 17985 17986 var lowerCased = propName.toLowerCase(); 17987 var propConfig = Properties[propName]; 17988 17989 var propertyInfo = { 17990 attributeName: lowerCased, 17991 attributeNamespace: null, 17992 propertyName: propName, 17993 mutationMethod: null, 17994 17995 mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY), 17996 hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE), 17997 hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE), 17998 hasPositiveNumericValue: checkMask(propConfig, Injection.HAS_POSITIVE_NUMERIC_VALUE), 17999 hasOverloadedBooleanValue: checkMask(propConfig, Injection.HAS_OVERLOADED_BOOLEAN_VALUE) 18000 }; 18001 !(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1) ? true ? invariant(false, 'DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s', propName) : _prodInvariant('50', propName) : void 0; 18002 18003 if (true) { 18004 DOMProperty.getPossibleStandardName[lowerCased] = propName; 18005 } 18006 18007 if (DOMAttributeNames.hasOwnProperty(propName)) { 18008 var attributeName = DOMAttributeNames[propName]; 18009 propertyInfo.attributeName = attributeName; 18010 if (true) { 18011 DOMProperty.getPossibleStandardName[attributeName] = propName; 18012 } 18013 } 18014 18015 if (DOMAttributeNamespaces.hasOwnProperty(propName)) { 18016 propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName]; 18017 } 18018 18019 if (DOMPropertyNames.hasOwnProperty(propName)) { 18020 propertyInfo.propertyName = DOMPropertyNames[propName]; 18021 } 18022 18023 if (DOMMutationMethods.hasOwnProperty(propName)) { 18024 propertyInfo.mutationMethod = DOMMutationMethods[propName]; 18025 } 18026 18027 DOMProperty.properties[propName] = propertyInfo; 18028 } 18029 } 18030}; 18031 18032/* eslint-disable max-len */ 18033var ATTRIBUTE_NAME_START_CHAR = ':A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
vendor: 4,735 bytes, lines 18033-18168
18033037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD'; 18034/* eslint-enable max-len */ 18035 18036/** 18037 * DOMProperty exports lookup objects that can be used like functions: 18038 * 18039 * > DOMProperty.isValid['id'] 18040 * true 18041 * > DOMProperty.isValid['foobar'] 18042 * undefined 18043 * 18044 * Although this may be confusing, it performs better in general. 18045 * 18046 * @see http://jsperf.com/key-exists 18047 * @see http://jsperf.com/key-missing 18048 */ 18049var DOMProperty = { 18050 ID_ATTRIBUTE_NAME: 'data-reactid', 18051 ROOT_ATTRIBUTE_NAME: 'data-reactroot', 18052 18053 ATTRIBUTE_NAME_START_CHAR: ATTRIBUTE_NAME_START_CHAR, 18054 ATTRIBUTE_NAME_CHAR: ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040', 18055 18056 /** 18057 * Map from property "standard name" to an object with info about how to set 18058 * the property in the DOM. Each object contains: 18059 * 18060 * attributeName: 18061 * Used when rendering markup or with `*Attribute()`. 18062 * attributeNamespace 18063 * propertyName: 18064 * Used on DOM node instances. (This includes properties that mutate due to 18065 * external factors.) 18066 * mutationMethod: 18067 * If non-null, used instead of the property or `setAttribute()` after 18068 * initial render. 18069 * mustUseProperty: 18070 * Whether the property must be accessed and mutated as an object property. 18071 * hasBooleanValue: 18072 * Whether the property should be removed when set to a falsey value. 18073 * hasNumericValue: 18074 * Whether the property must be numeric or parse as a numeric and should be 18075 * removed when set to a falsey value. 18076 * hasPositiveNumericValue: 18077 * Whether the property must be positive numeric or parse as a positive 18078 * numeric and should be removed when set to a falsey value. 18079 * hasOverloadedBooleanValue: 18080 * Whether the property can be used as a flag as well as with a value. 18081 * Removed when strictly equal to false; present without a value when 18082 * strictly equal to true; present with a value otherwise. 18083 */ 18084 properties: {}, 18085 18086 /** 18087 * Mapping from lowercase property names to the properly cased version, used 18088 * to warn in the case of missing properties. Available only in __DEV__. 18089 * 18090 * autofocus is predefined, because adding it to the property whitelist 18091 * causes unintended side effects. 18092 * 18093 * @type {Object} 18094 */ 18095 getPossibleStandardName: true ? { autofocus: 'autoFocus' } : null, 18096 18097 /** 18098 * All of the isCustomAttribute() functions that have been injected. 18099 */ 18100 _isCustomAttributeFunctions: [], 18101 18102 /** 18103 * Checks whether a property name is a custom attribute. 18104 * @method 18105 */ 18106 isCustomAttribute: function (attributeName) { 18107 for (var i = 0; i < DOMProperty._isCustomAttributeFunctions.length; i++) { 18108 var isCustomAttributeFn = DOMProperty._isCustomAttributeFunctions[i]; 18109 if (isCustomAttributeFn(attributeName)) { 18110 return true; 18111 } 18112 } 18113 return false; 18114 }, 18115 18116 injection: DOMPropertyInjection 18117}; 18118 18119module.exports = DOMProperty; 18120 18121/***/ }), 18122/* 37 */ 18123/***/ (function(module, exports, __webpack_require__) { 18124 18125var global = __webpack_require__(38); 18126var core = __webpack_require__(28); 18127var ctx = __webpack_require__(137); 18128var hide = __webpack_require__(58); 18129var has = __webpack_require__(46); 18130var PROTOTYPE = 'prototype'; 18131 18132var $export = function (type, name, source) { 18133 var IS_FORCED = type & $export.F; 18134 var IS_GLOBAL = type & $export.G; 18135 var IS_STATIC = type & $export.S; 18136 var IS_PROTO = type & $export.P; 18137 var IS_BIND = type & $export.B; 18138 var IS_WRAP = type & $export.W; 18139 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 18140 var expProto = exports[PROTOTYPE]; 18141 var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; 18142 var key, own, out; 18143 if (IS_GLOBAL) source = name; 18144 for (key in source) { 18145 // contains in native 18146 own = !IS_FORCED && target && target[key] !== undefined; 18147 if (own && has(exports, key)) continue; 18148 // export native or passed 18149 out = own ? target[key] : source[key]; 18150 // prevent global pollution for namespaces 18151 exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] 18152 // bind timers to global for call from export context 18153 : IS_BIND && own ? ctx(out, global) 18154 // wrap global constructors for prevent change them in library 18155 : IS_WRAP && target[key] == out ? (function (C) { 18156 var F = function (a, b, c) { 18157 if (this instanceof C) { 18158 switch (arguments.length) { 18159 case 0: return new C(); 18160 case 1: return new C(a); 18161 case 2: return new C(a, b); 18162 } return new C(a, b, c); 18163 } return C.apply(this, arguments); 18164 }; 18165 F[PROTOTYPE] = C[PROTOTYPE]; 18166 return F; 18167 // make static versions for prototype methods 18168 }
18168)(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; 18169 // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% 18170 if (IS_PROTO) { 18171 (exports.virtual || (exports.virtual = {}))[key] = out; 18172 // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% 18173 if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); 18174 } 18175 } 18176}; 18177// type bitmap 18178$export.F = 1; // forced 18179$export.G = 2; // global 18180$export.S = 4; // static 18181$export.P = 8; // proto 18182$export.B = 16; // bind 18183$export.W = 32; // wrap 18184$export.U = 64; // safe 18185$export.R = 128; // real proto method for `library` 18186module.exports = $export; 18187 18188 18189/***/ }), 18190/* 38 */ 18191/***/ (function(module, exports) { 18192 18193// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 18194var global = module.exports = typeof window != 'undefined' && window.Math == Math 18195 ? window : typeof self != 'undefined' && self.Math == Math ? self 18196 // eslint-disable-next-line no-new-func 18197 : Function('return this')(); 18198if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 18199 18200 18201/***/ }), 18202/* 39 */ 18203/***/ (function(module, exports, __webpack_require__) { 18204 18205"use strict"; 18206 18207 18208Object.defineProperty(exports, "__esModule", { 18209 value: true 18210}); 18211exports.default = !!(typeof window !== 'undefined' && window.document && window.document.createElement); 18212module.exports = exports['default']; 18213 18214/***/ }), 18215/* 40 */ 18216/***/ (function(module, exports, __webpack_require__) { 18217 18218"use strict"; 18219/** 18220 * Copyright (c) 2014-present, Facebook, Inc. 18221 * 18222 * This source code is licensed under the MIT license found in the 18223 * LICENSE file in the root directory of this source tree. 18224 * 18225 */ 18226 18227 18228 18229var _assign = __webpack_require__(14); 18230 18231var ReactCurrentOwner = __webpack_require__(30); 18232 18233var warning = __webpack_require__(11); 18234var canDefineProperty = __webpack_require__(76); 18235var hasOwnProperty = Object.prototype.hasOwnProperty; 18236 18237var REACT_ELEMENT_TYPE = __webpack_require__(162); 18238 18239var RESERVED_PROPS = { 18240 key: true, 18241 ref: true, 18242 __self: true, 18243 __source: true 18244}; 18245 18246var specialPropKeyWarningShown, specialPropRefWarningShown; 18247 18248function hasValidRef(config) { 18249 if (true) { 18250 if (hasOwnProperty.call(config, 'ref')) { 18251 var getter = Object.getOwnPropertyDescriptor(config, 'ref').get; 18252 if (getter && getter.isReactWarning) { 18253 return false; 18254 } 18255 } 18256 } 18257 return config.ref !== undefined; 18258} 18259 18260function hasValidKey(config) { 18261 if (true) { 18262 if (hasOwnProperty.call(config, 'key')) { 18263 var getter = Object.getOwnPropertyDescriptor(config, 'key').get; 18264 if (getter && getter.isReactWarning) { 18265 return false; 18266 } 18267 } 18268 } 18269 return config.key !== undefined; 18270} 18271 18272function defineKeyPropWarningGetter(props, displayName) { 18273 var warnAboutAccessingKey = function () { 18274 if (!specialPropKeyWarningShown) { 18275 specialPropKeyWarningShown = true; 18276 true ? warning(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : void 0; 18277 } 18278 }; 18279 warnAboutAccessingKey.isReactWarning = true; 18280 Object.defineProperty(props, 'key', { 18281 get: warnAboutAccessingKey, 18282 configurable: true 18283 }); 18284} 18285 18286function defineRefPropWarningGetter(props, displayName) { 18287 var warnAboutAccessingRef = function () { 18288 if (!specialPropRefWarningShown) { 18289 specialPropRefWarningShown = true; 18290 true ? warning(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : void 0; 18291 } 18292 }; 18293 warnAboutAccessingRef.isReactWarning = true; 18294 Object.defineProperty(props, 'ref', { 18295 get: warnAboutAccessingRef, 18296 configurable: true 18297 }); 18298} 18299 18300/** 18301 * Factory method to create a new React element. This no longer adheres to 18302 * the class pattern, so do not use new to call it. Also, no instanceof check 18303 * will work. Instead test $$typeof field against Symbol.for('react.element') to check 18304 * if something is a React Element. 18305 * 18306 * @param {*} type 18307 * @param {*} key 18308 * @param {string|object} ref 18309 * @param {*} self A *temporary* helper to detect places where `this` is 18310 * different from the `owner` when React.createElement is called, so that we 18311 * can warn. We want to get rid of owner and replace string `ref`s with arrow 18312 * functions, and as long as `this` and owner are the same, there will be no 18313 * change in behavior. 18314 * @param {*} source An annotation object (added by a transpiler or otherwise) 18315 * indicating filename, line number, and/or other information. 18316 * @param {*} owner 18317 * @param {*} props 18318 * @internal 18319 */ 18320var ReactElement = function (type, key, ref, self, source, owner, props) { 18321 var element = { 18322 // This tag allow us to uniquely identify this as a React Element 18323 $$typeof: REACT_ELEMENT_TYPE, 18324 18325 // Built-in properties that belong on the element 18326 type: type, 18327 key: key, 18328 ref: ref, 18329 props: props, 18330 18331 // Record the component responsible for creating this element. 18332 _owner: owner 18333 }; 18334 18335 if (true) { 18336 // The validation flag is currently mutative. We put it on 18337 // an external backing store so that we can freeze the whole object. 18338 // This can be replaced with a WeakMap once they are implemented in 18339 // commonly used development environments. 18340 element._store = {}; 18341 18342 // To make comparing ReactElements easier for testing purposes, we make 18343 // the validation flag non-enumerable (where possible, which should 18344 // include every environment we run tests in), so the test framework 18345 // ignores it. 18346 if (canDefineProperty) { 18347 Object.defineProperty(element._store, 'validated', { 18348 configurable: false, 18349 enumerable: false, 18350 writable: true, 18351 value: false 18352 }); 18353 // self and source are DEV only properties. 18354 Object.defineProperty(element, '_self', { 18355 configurable: false, 18356 enumerable: false, 18357 writable: false, 18358 value: self 18359 }); 18360 // Two elements created in two different places should be considered 18361 // equal for testing purposes and therefore we hide it from enumeration. 18362 Object.defineProperty(element, '_source', { 18363 configurable: false, 18364 enumerable: false, 18365 writable: false, 18366 value: source 18367 }); 18368 } else { 18369 element._store.validated = false;
vendor: 5,478 bytes, lines 18370-18547
18370 element._self = self; 18371 element._source = source; 18372 } 18373 if (Object.freeze) { 18374 Object.freeze(element.props); 18375 Object.freeze(element); 18376 } 18377 } 18378 18379 return element; 18380}; 18381 18382/** 18383 * Create and return a new ReactElement of the given type. 18384 * See https://facebook.github.io/react/docs/top-level-api.html#react.createelement 18385 */ 18386ReactElement.createElement = function (type, config, children) { 18387 var propName; 18388 18389 // Reserved names are extracted 18390 var props = {}; 18391 18392 var key = null; 18393 var ref = null; 18394 var self = null; 18395 var source = null; 18396 18397 if (config != null) { 18398 if (hasValidRef(config)) { 18399 ref = config.ref; 18400 } 18401 if (hasValidKey(config)) { 18402 key = '' + config.key; 18403 } 18404 18405 self = config.__self === undefined ? null : config.__self; 18406 source = config.__source === undefined ? null : config.__source; 18407 // Remaining properties are added to a new props object 18408 for (propName in config) { 18409 if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { 18410 props[propName] = config[propName]; 18411 } 18412 } 18413 } 18414 18415 // Children can be more than one argument, and those are transferred onto 18416 // the newly allocated props object. 18417 var childrenLength = arguments.length - 2; 18418 if (childrenLength === 1) { 18419 props.children = children; 18420 } else if (childrenLength > 1) { 18421 var childArray = Array(childrenLength); 18422 for (var i = 0; i < childrenLength; i++) { 18423 childArray[i] = arguments[i + 2]; 18424 } 18425 if (true) { 18426 if (Object.freeze) { 18427 Object.freeze(childArray); 18428 } 18429 } 18430 props.children = childArray; 18431 } 18432 18433 // Resolve default props 18434 if (type && type.defaultProps) { 18435 var defaultProps = type.defaultProps; 18436 for (propName in defaultProps) { 18437 if (props[propName] === undefined) { 18438 props[propName] = defaultProps[propName]; 18439 } 18440 } 18441 } 18442 if (true) { 18443 if (key || ref) { 18444 if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) { 18445 var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type; 18446 if (key) { 18447 defineKeyPropWarningGetter(props, displayName); 18448 } 18449 if (ref) { 18450 defineRefPropWarningGetter(props, displayName); 18451 } 18452 } 18453 } 18454 } 18455 return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); 18456}; 18457 18458/** 18459 * Return a function that produces ReactElements of a given type. 18460 * See https://facebook.github.io/react/docs/top-level-api.html#react.createfactory 18461 */ 18462ReactElement.createFactory = function (type) { 18463 var factory = ReactElement.createElement.bind(null, type); 18464 // Expose the type on the factory and the prototype so that it can be 18465 // easily accessed on elements. E.g. `<Foo />.type === Foo`. 18466 // This should not be named `constructor` since this may not be the function 18467 // that created the element, and it may not even be a constructor. 18468 // Legacy hook TODO: Warn if this is accessed 18469 factory.type = type; 18470 return factory; 18471}; 18472 18473ReactElement.cloneAndReplaceKey = function (oldElement, newKey) { 18474 var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); 18475 18476 return newElement; 18477}; 18478 18479/** 18480 * Clone and return a new ReactElement using element as the starting point. 18481 * See https://facebook.github.io/react/docs/top-level-api.html#react.cloneelement 18482 */ 18483ReactElement.cloneElement = function (element, config, children) { 18484 var propName; 18485 18486 // Original props are copied 18487 var props = _assign({}, element.props); 18488 18489 // Reserved names are extracted 18490 var key = element.key; 18491 var ref = element.ref; 18492 // Self is preserved since the owner is preserved. 18493 var self = element._self; 18494 // Source is preserved since cloneElement is unlikely to be targeted by a 18495 // transpiler, and the original source is probably a better indicator of the 18496 // true owner. 18497 var source = element._source; 18498 18499 // Owner will be preserved, unless ref is overridden 18500 var owner = element._owner; 18501 18502 if (config != null) { 18503 if (hasValidRef(config)) { 18504 // Silently steal the ref from the parent. 18505 ref = config.ref; 18506 owner = ReactCurrentOwner.current; 18507 } 18508 if (hasValidKey(config)) { 18509 key = '' + config.key; 18510 } 18511 18512 // Remaining properties override existing props 18513 var defaultProps; 18514 if (element.type && element.type.defaultProps) { 18515 defaultProps = element.type.defaultProps; 18516 } 18517 for (propName in config) { 18518 if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { 18519 if (config[propName] === undefined && defaultProps !== undefined) { 18520 // Resolve default props 18521 props[propName] = defaultProps[propName]; 18522 } else { 18523 props[propName] = config[propName]; 18524 } 18525 } 18526 } 18527 } 18528 18529 // Children can be more than one argument, and those are transferred onto 18530 // the newly allocated props object. 18531 var childrenLength = arguments.length - 2; 18532 if (childrenLength === 1) { 18533 props.children = children; 18534 } else if (childrenLength > 1) { 18535 var childArray = Array(childrenLength); 18536 for (var i = 0; i < childrenLength; i++) { 18537 childArray[i] = arguments[i + 2]; 18538 } 18539 props.children = childArray; 18540 } 18541 18542 return ReactElement(element.type, key, ref, self, source, owner, props); 18543}; 18544 18545/** 18546 * Verifies the object is a ReactElement. 18547 * See https://facebook.github.io/react/docs/top-level-api.html#react.isvali
vendor: 4,445 bytes, lines 18547-18691
18547delement 18548 * @param {?object} object 18549 * @return {boolean} True if `object` is a valid component. 18550 * @final 18551 */ 18552ReactElement.isValidElement = function (object) { 18553 return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; 18554}; 18555 18556module.exports = ReactElement; 18557 18558/***/ }), 18559/* 41 */ 18560/***/ (function(module, exports) { 18561 18562// shim for using process in browser 18563var process = module.exports = {}; 18564 18565// cached from whatever global is present so that test runners that stub it 18566// don't break things. But we need to wrap it in a try catch in case it is 18567// wrapped in strict mode code which doesn't define any globals. It's inside a 18568// function because try/catches deoptimize in certain engines. 18569 18570var cachedSetTimeout; 18571var cachedClearTimeout; 18572 18573function defaultSetTimout() { 18574 throw new Error('setTimeout has not been defined'); 18575} 18576function defaultClearTimeout () { 18577 throw new Error('clearTimeout has not been defined'); 18578} 18579(function () { 18580 try { 18581 if (typeof setTimeout === 'function') { 18582 cachedSetTimeout = setTimeout; 18583 } else { 18584 cachedSetTimeout = defaultSetTimout; 18585 } 18586 } catch (e) { 18587 cachedSetTimeout = defaultSetTimout; 18588 } 18589 try { 18590 if (typeof clearTimeout === 'function') { 18591 cachedClearTimeout = clearTimeout; 18592 } else { 18593 cachedClearTimeout = defaultClearTimeout; 18594 } 18595 } catch (e) { 18596 cachedClearTimeout = defaultClearTimeout; 18597 } 18598} ()) 18599function runTimeout(fun) { 18600 if (cachedSetTimeout === setTimeout) { 18601 //normal enviroments in sane situations 18602 return setTimeout(fun, 0); 18603 } 18604 // if setTimeout wasn't available but was latter defined 18605 if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { 18606 cachedSetTimeout = setTimeout; 18607 return setTimeout(fun, 0); 18608 } 18609 try { 18610 // when when somebody has screwed with setTimeout but no I.E. maddness 18611 return cachedSetTimeout(fun, 0); 18612 } catch(e){ 18613 try { 18614 // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally 18615 return cachedSetTimeout.call(null, fun, 0); 18616 } catch(e){ 18617 // 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 18618 return cachedSetTimeout.call(this, fun, 0); 18619 } 18620 } 18621 18622 18623} 18624function runClearTimeout(marker) { 18625 if (cachedClearTimeout === clearTimeout) { 18626 //normal enviroments in sane situations 18627 return clearTimeout(marker); 18628 } 18629 // if clearTimeout wasn't available but was latter defined 18630 if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { 18631 cachedClearTimeout = clearTimeout; 18632 return clearTimeout(marker); 18633 } 18634 try { 18635 // when when somebody has screwed with setTimeout but no I.E. maddness 18636 return cachedClearTimeout(marker); 18637 } catch (e){ 18638 try { 18639 // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally 18640 return cachedClearTimeout.call(null, marker); 18641 } catch (e){ 18642 // 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. 18643 // Some versions of I.E. have different rules for clearTimeout vs setTimeout 18644 return cachedClearTimeout.call(this, marker); 18645 } 18646 } 18647 18648 18649 18650} 18651var queue = []; 18652var draining = false; 18653var currentQueue; 18654var queueIndex = -1; 18655 18656function cleanUpNextTick() { 18657 if (!draining || !currentQueue) { 18658 return; 18659 } 18660 draining = false; 18661 if (currentQueue.length) { 18662 queue = currentQueue.concat(queue); 18663 } else { 18664 queueIndex = -1; 18665 } 18666 if (queue.length) { 18667 drainQueue(); 18668 } 18669} 18670 18671function drainQueue() { 18672 if (draining) { 18673 return; 18674 } 18675 var timeout = runTimeout(cleanUpNextTick); 18676 draining = true; 18677 18678 var len = queue.length; 18679 while(len) { 18680 currentQueue = queue; 18681 queue = []; 18682 while (++queueIndex < len) { 18683 if (currentQueue) { 18684 currentQueue[queueIndex].run(); 18685 } 18686 } 18687 queueIndex = -1; 18688 len = queue.length; 18689 } 18690 currentQueue = null; 18691 draining = false;
vendor: 2,006 bytes, lines 18692-18772
18692 runClearTimeout(timeout); 18693} 18694 18695process.nextTick = function (fun) { 18696 var args = new Array(arguments.length - 1); 18697 if (arguments.length > 1) { 18698 for (var i = 1; i < arguments.length; i++) { 18699 args[i - 1] = arguments[i]; 18700 } 18701 } 18702 queue.push(new Item(fun, args)); 18703 if (queue.length === 1 && !draining) { 18704 runTimeout(drainQueue); 18705 } 18706}; 18707 18708// v8 likes predictible objects 18709function Item(fun, array) { 18710 this.fun = fun; 18711 this.array = array; 18712} 18713Item.prototype.run = function () { 18714 this.fun.apply(null, this.array); 18715}; 18716process.title = 'browser'; 18717process.browser = true; 18718process.env = {}; 18719process.argv = []; 18720process.version = ''; // empty string to avoid regexp issues 18721process.versions = {}; 18722 18723function noop() {} 18724 18725process.on = noop; 18726process.addListener = noop; 18727process.once = noop; 18728process.off = noop; 18729process.removeListener = noop; 18730process.removeAllListeners = noop; 18731process.emit = noop; 18732process.prependListener = noop; 18733process.prependOnceListener = noop; 18734 18735process.listeners = function (name) { return [] } 18736 18737process.binding = function (name) { 18738 throw new Error('process.binding is not supported'); 18739}; 18740 18741process.cwd = function () { return '/' }; 18742process.chdir = function (dir) { 18743 throw new Error('process.chdir is not supported'); 18744}; 18745process.umask = function() { return 0; }; 18746 18747 18748/***/ }), 18749/* 42 */ 18750/***/ (function(module, exports, __webpack_require__) { 18751 18752"use strict"; 18753/** 18754 * Copyright (c) 2013-present, Facebook, Inc. 18755 * 18756 * This source code is licensed under the MIT license found in the 18757 * LICENSE file in the root directory of this source tree. 18758 * 18759 * 18760 */ 18761 18762 18763 18764var _prodInvariant = __webpack_require__(12); 18765 18766var invariant = __webpack_require__(10); 18767 18768/** 18769 * Static poolers. Several custom versions for each potential number of 18770 * arguments. A completely generic pooler is easy to implement, but would 18771 * require accessing the `arguments` object. In each of these, `this` refers to 18772 * the Class itself, not an instance. If any others are needed, simply add them
18773 * here, or in their own files. 18774 */ 18775var oneArgumentPooler = function (copyFieldsFrom) { 18776 var Klass = this; 18777 if (Klass.instancePool.length) { 18778 var instance = Klass.instancePool.pop(); 18779 Klass.call(instance, copyFieldsFrom); 18780 return instance; 18781 } else { 18782 return new Klass(copyFieldsFrom); 18783 } 18784}; 18785 18786var twoArgumentPooler = function (a1, a2) { 18787 var Klass = this; 18788 if (Klass.instancePool.length) { 18789 var instance = Klass.instancePool.pop(); 18790 Klass.call(instance, a1, a2); 18791 return instance; 18792 } else { 18793 return new Klass(a1, a2); 18794 } 18795}; 18796 18797var threeArgumentPooler = function (a1, a2, a3) { 18798 var Klass = this; 18799 if (Klass.instancePool.length) { 18800 var instance = Klass.instancePool.pop(); 18801 Klass.call(instance, a1, a2, a3); 18802 return instance; 18803 } else { 18804 return new Klass(a1, a2, a3); 18805 } 18806}; 18807 18808var fourArgumentPooler = function (a1, a2, a3, a4) { 18809 var Klass = this; 18810 if (Klass.instancePool.length) { 18811 var instance = Klass.instancePool.pop(); 18812 Klass.call(instance, a1, a2, a3, a4); 18813 return instance; 18814 } else { 18815 return new Klass(a1, a2, a3, a4); 18816 } 18817}; 18818 18819var standardReleaser = function (instance) { 18820 var Klass = this; 18821 !(instance instanceof Klass) ? true ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0; 18822 instance.destructor(); 18823 if (Klass.instancePool.length < Klass.poolSize) { 18824 Klass.instancePool.push(instance); 18825 } 18826}; 18827 18828var DEFAULT_POOL_SIZE = 10; 18829var DEFAULT_POOLER = oneArgumentPooler; 18830 18831/** 18832 * Augments `CopyConstructor` to be a poolable class, augmenting only the class 18833 * itself (statically) not adding any prototypical fields. Any CopyConstructor 18834 * you give this may have a `poolSize` property, and will look for a 18835 * prototypical `destructor` on instances. 18836 * 18837 * @param {Function} CopyConstructor Constructor that can be used to reset. 18838 * @param {Function} pooler Customizable pooler. 18839 */ 18840var addPoolingTo = function (CopyConstructor, pooler) { 18841 // Casting as any so that flow ignores the actual implementation and trusts 18842 // it to match the type we declared 18843 var NewKlass = CopyConstructor; 18844 NewKlass.instancePool = []; 18845 NewKlass.getPooled = pooler || DEFAULT_POOLER; 18846 if (!NewKlass.poolSize) { 18847 NewKlass.poolSize = DEFAULT_POOL_SIZE; 18848 } 18849 NewKlass.release = standardReleaser; 18850 return NewKlass; 18851}; 18852 18853var PooledClass = { 18854 addPoolingTo: addPoolingTo, 18855 oneArgumentPooler: oneArgumentPooler, 18856 twoArgumentPooler: twoArgumentPooler, 18857 threeArgumentPooler: threeArgumentPooler, 18858 fourArgumentPooler: fourArgumentPooler 18859}; 18860 18861module.exports = PooledClass; 18862 18863/***/ }), 18864/* 43 */ 18865/***/ (function(module, __webpack_exports__, __webpack_require__) { 18866 18867"use strict"; 18868Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); 18869/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createBrowserHistory__ = __webpack_require__(521); 18870/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createBrowserHistory", function() { return __WEBPACK_IMPORTED_MODULE_0__createBrowserHistory__["a"]; }); 18871/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createHashHistory__ = __webpack_require__(524); 18872/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createHashHistory", function() { return __WEBPACK_IMPORTED_MODULE_1__createHashHistory__["a"]; }); 18873/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createMemoryHistory__ = __webpack_require__(525); 18874/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createMemoryHistory", function() { return __WEBPACK_IMPORTED_MODULE_2__createMemoryHistory__["a"]; }); 18875/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__LocationUtils__ = __webpack_require__(85); 18876/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createLocation", function() { return __WEBPACK_IMPORTED_MODULE_3__LocationUtils__["a"]; }); 18877/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "locationsAreEqual", function() { return __WEBPACK_IMPORTED_MODULE_3__LocationUtils__["b"]; }); 18878/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__PathUtils__ = __webpack_require__(67); 18879/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "parsePath", function() { return __WEBPACK_IMPORTED_MODULE_4__PathUtils__["d"]; }); 18880/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createPath", function() { return __WEBPACK_IMPORTED_MODULE_4__PathUtils__["b"]; }); 18881 18882 18883 18884 18885 18886 18887 18888 18889 18890 18891/***/ }), 18892/* 44 */, 18893/* 45 */ 18894/***/ (function(module, exports, __webpack_require__) { 18895 18896var anObject = __webpack_require__(59); 18897var IE8_DOM_DEFINE = __webpack_require__(361); 18898var toPrimitive = __webpack_require__(138); 18899var dP = Object.defineProperty; 18900 18901exports.f = __webpack_require__(61) ? Object.defineProperty : function defineProperty(O, P, Attributes) { 18902 anObject(O); 18903 P = toPrimitive(P, true); 18904 anObject(Attributes); 18905 if (IE8_DOM_DEFINE) try { 18906 return dP(O, P, Attributes); 18907 } catch (e) { /* empty */ } 18908 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 18909 if ('value' in Attributes) O[P] = Attributes.value; 18910 return O; 18911}; 18912 18913 18914/***/ }), 18915/* 46 */
18916/***/ (function(module, exports) { 18917 18918var hasOwnProperty = {}.hasOwnProperty; 18919module.exports = function (it, key) { 18920 return hasOwnProperty.call(it, key); 18921}; 18922 18923 18924/***/ }), 18925/* 47 */ 18926/***/ (function(module, exports, __webpack_require__) { 18927 18928// to indexed object, toObject with fallback for non-array-like ES3 strings 18929var IObject = __webpack_require__(364); 18930var defined = __webpack_require__(140); 18931module.exports = function (it) { 18932 return IObject(defined(it)); 18933}; 18934 18935 18936/***/ }), 18937/* 48 */ 18938/***/ (function(module, exports, __webpack_require__) { 18939 18940"use strict"; 18941/** 18942 * Copyright (c) 2013-present, Facebook, Inc. 18943 * 18944 * This source code is licensed under the MIT license found in the 18945 * LICENSE file in the root directory of this source tree. 18946 * 18947 */ 18948 18949 18950 18951var _assign = __webpack_require__(14); 18952 18953var ReactBaseClasses = __webpack_require__(160); 18954var ReactChildren = __webpack_require__(408); 18955var ReactDOMFactories = __webpack_require__(412); 18956var ReactElement = __webpack_require__(40); 18957var ReactPropTypes = __webpack_require__(416); 18958var ReactVersion = __webpack_require__(418); 18959 18960var createReactClass = __webpack_require__(419); 18961var onlyChild = __webpack_require__(421); 18962 18963var createElement = ReactElement.createElement; 18964var createFactory = ReactElement.createFactory; 18965var cloneElement = ReactElement.cloneElement; 18966 18967if (true) { 18968 var lowPriorityWarning = __webpack_require__(105); 18969 var canDefineProperty = __webpack_require__(76); 18970 var ReactElementValidator = __webpack_require__(164); 18971 var didWarnPropTypesDeprecated = false; 18972 createElement = ReactElementValidator.createElement; 18973 createFactory = ReactElementValidator.createFactory; 18974 cloneElement = ReactElementValidator.cloneElement; 18975} 18976 18977var __spread = _assign; 18978var createMixin = function (mixin) { 18979 return mixin; 18980}; 18981 18982if (true) { 18983 var warnedForSpread = false; 18984 var warnedForCreateMixin = false; 18985 __spread = function () { 18986 lowPriorityWarning(warnedForSpread, 'React.__spread is deprecated and should not be used. Use ' + 'Object.assign directly or another helper function with similar ' + 'semantics. You may be seeing this warning due to your compiler. ' + 'See https://fb.me/react-spread-deprecation for more details.'); 18987 warnedForSpread = true; 18988 return _assign.apply(null, arguments); 18989 }; 18990 18991 createMixin = function (mixin) { 18992 lowPriorityWarning(warnedForCreateMixin, 'React.createMixin is deprecated and should not be used. ' + 'In React v16.0, it will be removed. ' + 'You can use this mixin directly instead. ' + 'See https://fb.me/createmixin-was-never-implemented for more info.'); 18993 warnedForCreateMixin = true; 18994 return mixin; 18995 }; 18996} 18997 18998var React = { 18999 // Modern 19000 19001 Children: { 19002 map: ReactChildren.map, 19003 forEach: ReactChildren.forEach, 19004 count: ReactChildren.count, 19005 toArray: ReactChildren.toArray, 19006 only: onlyChild 19007 }, 19008 19009 Component: ReactBaseClasses.Component, 19010 PureComponent: ReactBaseClasses.PureComponent, 19011 19012 createElement: createElement, 19013 cloneElement: cloneElement, 19014 isValidElement: ReactElement.isValidElement, 19015 19016 // Classic 19017 19018 PropTypes: ReactPropTypes, 19019 createClass: createReactClass, 19020 createFactory: createFactory, 19021 createMixin: createMixin, 19022 19023 // This looks DOM specific but these are actually isomorphic helpers 19024 // since they are just generating DOM strings. 19025 DOM: ReactDOMFactories, 19026 19027 version: ReactVersion, 19028 19029 // Deprecated hook for JSX spread, don't use this for anything. 19030 __spread: __spread 19031}; 19032 19033if (true) { 19034 var warnedForCreateClass = false; 19035 if (canDefineProperty) { 19036 Object.defineProperty(React, 'PropTypes', { 19037 get: function () { 19038 lowPriorityWarning(didWarnPropTypesDeprecated, 'Accessing PropTypes via the main React package is deprecated,' + ' and will be removed in React v16.0.' + ' Use the latest available v15.* prop-types package from npm instead.' + ' For info on usage, compatibility, migration and more, see ' + 'https://fb.me/prop-types-docs'); 19039 didWarnPropTypesDeprecated = true; 19040 return ReactPropTypes; 19041 } 19042 }); 19043 19044 Object.defineProperty(React, 'createClass', { 19045 get: function () { 19046 lowPriorityWarning(warnedForCreateClass, 'Accessing createClass via the main React package is deprecated,' + ' and will be removed in React v16.0.' + " Use a plain JavaScript class instead. If you're not yet " + 'ready to migrate, create-react-class v15.* is available ' + 'on npm as a temporary, drop-in replacement. ' + 'For more info see https://fb.me/react-create-class'); 19047 warnedForCreateClass = true; 19048 return createReactClass; 19049 } 19050 }); 19051 } 19052 19053 // React.DOM factories are deprecated. Wrap these methods so that 19054 // invocations of the React.DOM namespace and alert users to switch 19055 // to the `react-dom-factories` package. 19056 React.DOM = {}; 19057 var warnedForFactories = false;
19058 Object.keys(ReactDOMFactories).forEach(function (factory) { 19059 React.DOM[factory] = function () { 19060 if (!warnedForFactories) { 19061 lowPriorityWarning(false, 'Accessing factories like React.DOM.%s has been deprecated ' + 'and will be removed in v16.0+. Use the ' + 'react-dom-factories package instead. ' + ' Version 1.0 provides a drop-in replacement.' + ' For more info, see https://fb.me/react-dom-factories', factory); 19062 warnedForFactories = true; 19063 } 19064 return ReactDOMFactories[factory].apply(ReactDOMFactories, arguments); 19065 }; 19066 }); 19067} 19068 19069module.exports = React; 19070 19071/***/ }), 19072/* 49 */ 19073/***/ (function(module, exports, __webpack_require__) { 19074 19075"use strict"; 19076/** 19077 * Copyright (c) 2013-present, Facebook, Inc. 19078 * 19079 * This source code is licensed under the MIT license found in the 19080 * LICENSE file in the root directory of this source tree. 19081 * 19082 * 19083 */ 19084 19085 19086/** 19087 * WARNING: DO NOT manually require this module. 19088 * This is a replacement for `invariant(...)` used by the error code system 19089 * and will _only_ be required by the corresponding babel pass. 19090 * It always throws. 19091 */ 19092 19093function reactProdInvariant(code) { 19094 var argCount = arguments.length - 1; 19095 19096 var message = 'Minified React error #' + code + '; visit ' + 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + code; 19097 19098 for (var argIdx = 0; argIdx < argCount; argIdx++) { 19099 message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]); 19100 } 19101 19102 message += ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.'; 19103 19104 var error = new Error(message); 19105 error.name = 'Invariant Violation'; 19106 error.framesToPop = 1; // we don't care about reactProdInvariant's own frame 19107 19108 throw error; 19109} 19110 19111module.exports = reactProdInvariant; 19112 19113/***/ }), 19114/* 50 */ 19115/***/ (function(module, exports, __webpack_require__) { 19116 19117"use strict"; 19118/** 19119 * Copyright (c) 2013-present, Facebook, Inc. 19120 * 19121 * This source code is licensed under the MIT license found in the 19122 * LICENSE file in the root directory of this source tree. 19123 * 19124 */ 19125 19126 19127 19128var EventPluginHub = __webpack_require__(51); 19129var EventPluginUtils = __webpack_require__(79); 19130 19131var accumulateInto = __webpack_require__(169); 19132var forEachAccumulated = __webpack_require__(170); 19133var warning = __webpack_require__(11); 19134 19135var getListener = EventPluginHub.getListener; 19136 19137/** 19138 * Some event types have a notion of different registration names for different 19139 * "phases" of propagation. This finds listeners by a given phase. 19140 */ 19141function listenerAtPhase(inst, event, propagationPhase) {
19142 var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase]; 19143 return getListener(inst, registrationName); 19144} 19145 19146/** 19147 * Tags a `SyntheticEvent` with dispatched listeners. Creating this function 19148 * here, allows us to not have to bind or create functions for each event. 19149 * Mutating the event's members allows us to not have to create a wrapping 19150 * "dispatch" object that pairs the event with the listener. 19151 */ 19152function accumulateDirectionalDispatches(inst, phase, event) { 19153 if (true) { 19154 true ? warning(inst, 'Dispatching inst must not be null') : void 0; 19155 } 19156 var listener = listenerAtPhase(inst, event, phase); 19157 if (listener) { 19158 event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); 19159 event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); 19160 } 19161} 19162 19163/** 19164 * Collect dispatches (must be entirely collected before dispatching - see unit 19165 * tests). Lazily allocate the array to conserve memory. We must loop through 19166 * each event and perform the traversal for each one. We cannot perform a 19167 * single traversal for the entire collection of events because each event may 19168 * have a different target. 19169 */ 19170function accumulateTwoPhaseDispatchesSingle(event) {
19171 if (event && event.dispatchConfig.phasedRegistrationNames) { 19172 EventPluginUtils.traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); 19173 } 19174} 19175 19176/** 19177 * Same as `accumulateTwoPhaseDispatchesSingle`, but skips over the targetID. 19178 */ 19179function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { 19180 if (event && event.dispatchConfig.phasedRegistrationNames) { 19181 var targetInst = event._targetInst; 19182 var parentInst = targetInst ? EventPluginUtils.getParentInstance(targetInst) : null; 19183 EventPluginUtils.traverseTwoPhase(parentInst, accumulateDirectionalDispatches, event); 19184 } 19185} 19186 19187/** 19188 * Accumulates without regard to direction, does not look for phased 19189 * registration names. Same as `accumulateDirectDispatchesSingle` but without 19190 * requiring that the `dispatchMarker` be the same as the dispatched ID. 19191 */ 19192function accumulateDispatches(inst, ignoredDirection, event) { 19193 if (event && event.dispatchConfig.registrationName) { 19194 var registrationName = event.dispatchConfig.registrationName; 19195 var listener = getListener(inst, registrationName); 19196 if (listener) { 19197 event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); 19198 event._dispatchInstances = accumulateInto(event._dispatchInstances, inst); 19199 } 19200 } 19201} 19202 19203/** 19204 * Accumulates dispatches on an `SyntheticEvent`, but only for the 19205 * `dispatchMarker`. 19206 * @param {SyntheticEvent} event 19207 */ 19208function accumulateDirectDispatchesSingle(event) { 19209 if (event && event.dispatchConfig.registrationName) { 19210 accumulateDispatches(event._targetInst, null, event); 19211 } 19212} 19213 19214function accumulateTwoPhaseDispatches(events) { 19215 forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle); 19216} 19217 19218function accumulateTwoPhaseDispatchesSkipTarget(events) { 19219 forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget); 19220} 19221 19222function accumulateEnterLeaveDispatches(leave, enter, from, to) { 19223 EventPluginUtils.traverseEnterLeave(from, to, accumulateDispatches, leave, enter); 19224} 19225 19226function accumulateDirectDispatches(events) { 19227 forEachAccumulated(events, accumulateDirectDispatchesSingle); 19228} 19229 19230/** 19231 * A small set of propagation patterns, each of which will accept a small amount 19232 * of information, and generate a set of "dispatch ready event objects" - which 19233 * are sets of events that have already been annotated with a set of dispatched 19234 * listener functions/ids. The API is designed this way to discourage these 19235 * propagation strategies from actually executing the dispatches, since we 19236 * always want to collect the entire set of dispatches before executing event a 19237 * single one. 19238 * 19239 * @constructor EventPropagators 19240 */ 19241var EventPropagators = { 19242 accumulateTwoPhaseDispatches: accumulateTwoPhaseDispatches, 19243 accumulateTwoPhaseDispatchesSkipTarget: accumulateTwoPhaseDispatchesSkipTarget, 19244 accumulateDirectDispatches: accumulateDirectDispatches, 19245 accumulateEnterLeaveDispatches: accumulateEnterLeaveDispatches 19246}; 19247 19248module.exports = EventPropagators; 19249 19250/***/ }), 19251/* 51 */ 19252/***/ (function(module, exports, __webpack_require__) { 19253 19254"use strict"; 19255/** 19256 * Copyright (c) 2013-present, Facebook, Inc. 19257 * 19258 * This source code is licensed under the MIT license found in the 19259 * LICENSE file in the root directory of this source tree. 19260 * 19261 */ 19262 19263 19264 19265var _prodInvariant = __webpack_require__(12); 19266 19267var EventPluginRegistry = __webpack_require__(78); 19268var EventPluginUtils = __webpack_require__(79); 19269var ReactErrorUtils = __webpack_require__(106); 19270 19271var accumulateInto = __webpack_require__(169); 19272var forEachAccumulated = __webpack_require__(170); 19273var invariant = __webpack_require__(10); 19274 19275/** 19276 * Internal store for event listeners 19277 */ 19278var listenerBank = {}; 19279 19280/** 19281 * Internal queue of events that have accumulated their dispatches and are 19282 * waiting to have their dispatches executed. 19283 */ 19284var eventQueue = null; 19285 19286/** 19287 * Dispatches an event and releases it back into the pool, unless persistent. 19288 * 19289 * @param {?object} event Synthetic event to be dispatched. 19290 * @param {boolean} simulated If the event is simulated (changes exn behavior) 19291 * @private 19292 */ 19293var executeDispatchesAndRelease = function (event, simulated) { 19294 if (event) { 19295 EventPluginUtils.executeDispatchesInOrder(event, simulated); 19296
19297 if (!event.isPersistent()) { 19298 event.constructor.release(event); 19299 } 19300 } 19301}; 19302var executeDispatchesAndReleaseSimulated = function (e) { 19303 return executeDispatchesAndRelease(e, true); 19304}; 19305var executeDispatchesAndReleaseTopLevel = function (e) { 19306 return executeDispatchesAndRelease(e, false); 19307}; 19308 19309var getDictionaryKey = function (inst) { 19310 // Prevents V8 performance issue: 19311 // https://github.com/facebook/react/pull/7232 19312 return '.' + inst._rootNodeID; 19313}; 19314 19315function isInteractive(tag) { 19316 return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea'; 19317} 19318 19319function shouldPreventMouseEvent(name, type, props) { 19320 switch (name) { 19321 case 'onClick': 19322 case 'onClickCapture': 19323 case 'onDoubleClick': 19324 case 'onDoubleClickCapture': 19325 case 'onMouseDown': 19326 case 'onMouseDownCapture': 19327 case 'onMouseMove': 19328 case 'onMouseMoveCapture': 19329 case 'onMouseUp': 19330 case 'onMouseUpCapture': 19331 return !!(props.disabled && isInteractive(type)); 19332 default: 19333 return false; 19334 } 19335} 19336 19337/** 19338 * This is a unified interface for event plugins to be installed and configured. 19339 * 19340 * Event plugins can implement the following properties: 19341 * 19342 * `extractEvents` {function(string, DOMEventTarget, string, object): *} 19343 * Required. When a top-level event is fired, this method is expected to 19344 * extract synthetic events that will in turn be queued and dispatched. 19345 * 19346 * `eventTypes` {object} 19347 * Optional, plugins that fire events must publish a mapping of registration 19348 * names that are used to register listeners. Values of this mapping must 19349 * be objects that contain `registrationName` or `phasedRegistrationNames`. 19350 * 19351 * `executeDispatch` {function(object, function, string)} 19352 * Optional, allows plugins to override how an event gets dispatched. By 19353 * default, the listener is simply invoked. 19354 * 19355 * Each plugin that is injected into `EventsPluginHub` is immediately operable. 19356 * 19357 * @public 19358 */ 19359var EventPluginHub = { 19360 /** 19361 * Methods for injecting dependencies. 19362 */ 19363 injection: { 19364 /** 19365 * @param {array} InjectedEventPluginOrder 19366 * @public 19367 */ 19368 injectEventPluginOrder: EventPluginRegistry.injectEventPluginOrder, 19369 19370 /** 19371 * @param {object} injectedNamesToPlugins Map from names to plugin modules. 19372 */ 19373 injectEventPluginsByName: EventPluginRegistry.injectEventPluginsByName 19374 }, 19375 19376 /** 19377 * Stores `listener` at `listenerBank[registrationName][key]`. Is idempotent. 19378 * 19379 * @param {object} inst The instance, which is the source of events. 19380 * @param {string} registrationName Name of listener (e.g. `onClick`). 19381 * @param {function} listener The callback to store. 19382 */ 19383 putListener: function (inst, registrationName, listener) { 19384 !(typeof listener === 'function') ? true ? invariant(false, 'Expected %s listener to be a function, instead got type %s', registrationName, typeof listener) : _prodInvariant('94', registrationName, typeof listener) : void 0; 19385 19386 var key = getDictionaryKey(inst); 19387 var bankForRegistrationName = listenerBank[registrationName] || (listenerBank[registrationName] = {}); 19388 bankForRegistrationName[key] = listener; 19389 19390 var PluginModule = EventPluginRegistry.registrationNameModules[registrationName]; 19391 if (PluginModule && PluginModule.didPutListener) { 19392 PluginModule.didPutListener(inst, registrationName, listener); 19393 } 19394 }, 19395 19396 /** 19397 * @param {object} inst The instance, which is the source of events. 19398 * @param {string} registrationName Name of listener (e.g. `onClick`). 19399 * @return {?function} The stored callback. 19400 */ 19401 getListener: function (inst, registrationName) { 19402 // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not 19403 // live here; needs to be moved to a better place soon 19404 var bankForRegistrationName = listenerBank[registrationName]; 19405 if (shouldPreventMouseEvent(registrationName, inst._currentElement.type, inst._currentElement.props)) { 19406 return null; 19407 } 19408 var key = getDictionaryKey(inst); 19409 return bankForRegistrationName && bankForRegistrationName[key]; 19410 }, 19411 19412 /** 19413 * Deletes a listener from the registration bank. 19414 * 19415 * @param {object} inst The instance, which is the source of events. 19416 * @param {string} registrationName Name of listener (e.g. `onClick`). 19417 */ 19418 deleteListener: function (inst, registrationName) { 19419 var PluginModule = EventPluginRegistry.registrationNameModules[registrationName]; 19420 if (PluginModule && PluginModule.willDeleteListener) { 19421 PluginModule.willDeleteListener(inst, registrationName); 19422 } 19423 19424 var bankForRegistrationName = listenerBank[registrationName]; 19425 // TODO: This should never be null -- when is it? 19426 if (bankForRegistrationName) { 19427 var key = getDictionaryKey(inst); 19428 delete bankForRegistrationName[key]; 19429 } 19430 }, 19431 19432 /** 19433 * Deletes all listeners for the DOM element with the supplied ID. 19434 * 19435 * @param {object} inst The instance, which is the source of events. 19436 */ 19437 deleteAllListeners: function (inst) { 19438 var key = getDictionaryKey(inst); 19439 for (var registrationName in listenerBank) { 19440 if (!listenerBank.hasOwnProperty(registrationName)) { 19441 continue; 19442 } 19443 19444 if (!listenerBank[registrationName][key]) { 19445 continue; 19446 } 19447 19448 var PluginModule = EventPluginRegistry.registrationNameModules[registrationName]; 19449 if (PluginModule && PluginModule.willDeleteListener) { 19450 PluginModule.willDeleteListener(inst, registrationName); 19451 } 19452 19453 delete listenerBank[registrationName][key]; 19454 } 19455 }, 19456 19457 /** 19458 * Allows registered plugins an opportunity to extract events from top-level 19459 * native browser events. 19460 * 19461 * @return {*} An accumulation of synthetic events. 19462 * @internal 19463 */ 19464 extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) { 19465 var events; 19466 var plugins = EventPluginRegistry.plugins; 19467 for (var i = 0; i < plugins.length; i++) { 19468 // Not every plugin in the ordering may be loaded at runtime. 19469 var possiblePlugin = plugins[i]; 19470 if (possiblePlugin) { 19471 var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); 19472 if (extractedEvents) { 19473 events = accumulateInto(events, extractedEvents); 19474 } 19475 } 19476 } 19477 return events; 19478 }, 19479 19480 /** 19481 * Enqueues a synthetic event that should be dispatched when 19482 * `processEventQueue` is invoked. 19483 * 19484 * @param {*} events An accumulation of synthetic events. 19485 * @internal 19486 */ 19487 enqueueEvents: function (events) { 19488 if (events) { 19489 eventQueue = accumulateInto(eventQueue, events); 19490 } 19491 }, 19492 19493 /** 19494 * Dispatches all synthetic events on the event queue. 19495 * 19496 * @internal 19497 */ 19498 processEventQueue: function (simulated) { 19499 // Set `eventQueue` to null before processing it so that we can tell if more
19500 // events get enqueued while processing. 19501 var processingEventQueue = eventQueue; 19502 eventQueue = null; 19503 if (simulated) { 19504 forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseSimulated); 19505 } else { 19506 forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel); 19507 } 19508 !!eventQueue ? true ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.') : _prodInvariant('95') : void 0; 19509 // This would be a good time to rethrow if any of the event handlers threw. 19510 ReactErrorUtils.rethrowCaughtError(); 19511 }, 19512 19513 /** 19514 * These are needed for tests only. Do not use! 19515 */ 19516 __purge: function () { 19517 listenerBank = {}; 19518 }, 19519 19520 __getListenerBank: function () { 19521 return listenerBank; 19522 } 19523}; 19524 19525module.exports = EventPluginHub; 19526 19527/***/ }), 19528/* 52 */ 19529/***/ (function(module, exports, __webpack_require__) { 19530 19531"use strict"; 19532/** 19533 * Copyright (c) 2013-present, Facebook, Inc. 19534 * 19535 * This source code is licensed under the MIT license found in the 19536 * LICENSE file in the root directory of this source tree. 19537 * 19538 */ 19539 19540 19541 19542var ReactRef = __webpack_require__(430); 19543var ReactInstrumentation = __webpack_require__(24); 19544 19545var warning = __webpack_require__(11); 19546 19547/** 19548 * Helper to call ReactRef.attachRefs with this composite component, split out 19549 * to avoid allocations in the transaction mount-ready queue. 19550 */ 19551function attachRefs() { 19552 ReactRef.attachRefs(this, this._currentElement); 19553} 19554 19555var ReactReconciler = { 19556 /** 19557 * Initializes the component, renders markup, and registers event listeners. 19558 * 19559 * @param {ReactComponent} internalInstance 19560 * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction 19561 * @param {?object} the containing host component instance 19562 * @param {?object} info about the host container 19563 * @return {?string} Rendered markup to be inserted into the DOM. 19564 * @final 19565 * @internal 19566 */ 19567 mountComponent: function (internalInstance, transaction, hostParent, hostContainerInfo, context, parentDebugID) // 0 in production and for roots 19568 { 19569 if (true) { 19570 if (internalInstance._debugID !== 0) { 19571 ReactInstrumentation.debugTool.onBeforeMountComponent(internalInstance._debugID, internalInstance._currentElement, parentDebugID); 19572 } 19573 } 19574 var markup = internalInstance.mountComponent(transaction, hostParent, hostContainerInfo, context, parentDebugID); 19575 if (internalInstance._currentElement && internalInstance._currentElement.ref != null) { 19576 transaction.getReactMountReady().enqueue(attachRefs, internalInstance); 19577 } 19578 if (true) { 19579 if (internalInstance._debugID !== 0) { 19580 ReactInstrumentation.debugTool.onMountComponent(internalInstance._debugID); 19581 } 19582 } 19583 return markup; 19584 }, 19585 19586 /** 19587 * Returns a value that can be passed to 19588 * ReactComponentEnvironment.replaceNodeWithMarkup. 19589 */ 19590 getHostNode: function (internalInstance) { 19591 return internalInstance.getHostNode(); 19592 }, 19593 19594 /** 19595 * Releases any resources allocated by `mountComponent`. 19596 * 19597 * @final 19598 * @internal 19599 */ 19600 unmountComponent: function (internalInstance, safely) { 19601 if (true) { 19602 if (internalInstance._debugID !== 0) { 19603 ReactInstrumentation.debugTool.onBeforeUnmountComponent(internalInstance._debugID); 19604 } 19605 } 19606 ReactRef.detachRefs(internalInstance, internalInstance._currentElement); 19607 internalInstance.unmountComponent(safely); 19608 if (true) { 19609 if (internalInstance._debugID !== 0) { 19610 ReactInstrumentation.debugTool.onUnmountComponent(internalInstance._debugID); 19611 } 19612 } 19613 }, 19614 19615 /** 19616 * Update a component using a new element. 19617 * 19618 * @param {ReactComponent} internalInstance 19619 * @param {ReactElement} nextElement 19620 * @param {ReactReconcileTransaction} transaction 19621 * @param {object} context 19622 * @internal 19623 */ 19624 receiveComponent: function (internalInstance, nextElement, transaction, context) { 19625 var prevElement = internalInstance._currentElement; 19626 19627 if (nextElement === prevElement && context === internalInstance._context) { 19628 // Since elements are immutable after the owner is rendered, 19629 // we can do a cheap identity compare here to determine if this is a 19630 // superfluous reconcile. It's possible for state to be mutable but such 19631 // change should trigger an update of the owner which would recreate 19632 // the element. We explicitly check for the existence of an owner since 19633 // it's possible for an element created outside a composite to be 19634 // deeply mutated and reused. 19635 19636 // TODO: Bailing out early is just a perf optimization right? 19637 // TODO: Removing the return statement should affect correctness? 19638 return; 19639 } 19640 19641 if (true) { 19642 if (internalInstance._debugID !== 0) { 19643 ReactInstrumentation.debugTool.onBeforeUpdateComponent(internalInstance._debugID, nextElement); 19644 } 19645 } 19646 19647 var refsChanged = ReactRef.shouldUpdateRefs(prevElement, nextElement); 19648 19649 if (refsChanged) { 19650 ReactRef.detachRefs(internalInstance, prevElement); 19651 } 19652 19653 internalInstance.receiveComponent(nextElement, transaction, context); 19654 19655 if (refsChanged && internalInstance._currentElement && internalInstance._currentElement.ref != null) { 19656 transaction.getReactMountReady().enqueue(attachRefs, internalInstance); 19657 } 19658 19659 if (true) { 19660 if (internalInstance._debugID !== 0) { 19661 ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID); 19662 } 19663 } 19664 }, 19665 19666 /** 19667 * Flush any dirty changes in a component. 19668 * 19669 * @param {ReactComponent} internalInstance 19670 * @param {ReactReconcileTransaction} transaction 19671 * @internal 19672 */ 19673 performUpdateIfNecessary: function (internalInstance, transaction, updateBatchNumber) { 19674 if (internalInstance._updateBatchNumber !== updateBatchNumber) { 19675 // The component's enqueued batch number should always be the current 19676 // batch or the following one. 19677 true ? warning(internalInstance._updateBatchNumber == null || internalInstance._updateBatchNumber === updateBatchNumber + 1, 'performUpdateIfNecessary: Unexpected batch number (current %s, ' + 'pending
19677%s)', updateBatchNumber, internalInstance._updateBatchNumber) : void 0; 19678 return; 19679 } 19680 if (true) { 19681 if (internalInstance._debugID !== 0) { 19682 ReactInstrumentation.debugTool.onBeforeUpdateComponent(internalInstance._debugID, internalInstance._currentElement); 19683 } 19684 } 19685 internalInstance.performUpdateIfNecessary(transaction); 19686 if (true) { 19687 if (internalInstance._debugID !== 0) { 19688 ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID); 19689 } 19690 } 19691 } 19692}; 19693 19694module.exports = ReactReconciler; 19695 19696/***/ }), 19697/* 53 */ 19698/***/ (function(module, exports, __webpack_require__) { 19699 19700"use strict"; 19701/** 19702 * Copyright (c) 2013-present, Facebook, Inc. 19703 * 19704 * This source code is licensed under the MIT license found in the 19705 * LICENSE file in the root directory of this source tree. 19706 * 19707 */ 19708 19709 19710 19711var SyntheticEvent = __webpack_require__(35); 19712 19713var getEventTarget = __webpack_require__(107); 19714 19715/** 19716 * @interface UIEvent 19717 * @see http://www.w3.org/TR/DOM-Level-3-Events/ 19718 */ 19719var UIEventInterface = { 19720 view: function (event) { 19721 if (event.view) { 19722 return event.view; 19723 } 19724 19725 var target = getEventTarget(event); 19726 if (target.window === target) { 19727 // target is a window object 19728 return target; 19729 } 19730 19731 var doc = target.ownerDocument; 19732 // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8. 19733 if (doc) { 19734 return doc.defaultView || doc.parentWindow; 19735 } else { 19736 return window; 19737 } 19738 }, 19739 detail: function (event) { 19740 return event.detail || 0; 19741 } 19742}; 19743 19744/** 19745 * @param {object} dispatchConfig Configuration used to dispatch this event. 19746 * @param {string} dispatchMarker Marker identifying the event target. 19747 * @param {object} nativeEvent Native browser event. 19748 * @extends {SyntheticEvent} 19749 */ 19750function SyntheticUIEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { 19751 return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); 19752} 19753 19754SyntheticEvent.augmentClass(SyntheticUIEvent, UIEventInterface); 19755 19756module.exports = SyntheticUIEvent; 19757 19758/***/ }), 19759/* 54 */ 19760/***/ (function(module, exports, __webpack_require__) { 19761 19762"use strict"; 19763/** 19764 * Copyright (c) 2015-present, Facebook, Inc. 19765 * 19766 * This source code is licensed under the MIT license found in the 19767 * LICENSE file in the root directory of this source tree. 19768 * 19769 */ 19770 19771 19772 19773var DOMNamespaces = __webpack_require__(112); 19774var setInnerHTML = __webpack_require__(82); 19775 19776var createMicrosoftUnsafeLocalFunction = __webpack_require__(113); 19777var setTextContent = __webpack_require__(176); 19778 19779var ELEMENT_NODE_TYPE = 1; 19780var DOCUMENT_FRAGMENT_NODE_TYPE = 11; 19781 19782/** 19783 * In IE (8-11) and Edge, appending nodes with no children is dramatically 19784 * faster than appending a full subtree, so we essentially queue up the 19785 * .appendChild calls here and apply them so each node is added to its parent 19786 * before any children are added. 19787 * 19788 * In other browsers, doing so is slower or neutral compared to the other order 19789 * (in Firefox, twice as slow) so we only do this inversion in IE. 19790 * 19791 * See https://github.com/spicyj/innerhtml-vs-createelement-vs-clonenode. 19792 */ 19793var enableLazy = typeof document !== 'undefined' && typeof document.documentMode === 'number' || typeof navigator !== 'undefined' && typeof navigator.userAgent === 'string' && /\bEdge\/\d/.test(navigator.userAgent); 19794 19795function insertTreeChildren(tree) { 19796 if (!enableLazy) { 19797 return; 19798 } 19799 var node = tree.node; 19800 var children = tree.children; 19801 if (children.length) { 19802 for (var i = 0; i < children.length; i++) { 19803 insertTreeBefore(node, children[i], null); 19804 } 19805 } else if (tree.html != null) { 19806 setInnerHTML(node, tree.html); 19807 } else if (tree.text != null) { 19808 setTextContent(node, tree.text); 19809 } 19810} 19811 19812var insertTreeBefore = createMicrosoftUnsafeLocalFunction(function (parentNode, tree, referenceNode) { 19813 // DocumentFragments aren't actually part of the DOM after insertion so 19814 // appending children won't update the DOM. We need to ensure the fragment 19815 // is properly populated first, breaking out of our lazy approach for just 19816 // this level. Also, some <object>
19816 plugins (like Flash Player) will read 19817 // <param> nodes immediately upon insertion into the DOM, so <object> 19818 // must also be populated prior to insertion into the DOM. 19819 if (tree.node.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE || tree.node.nodeType === ELEMENT_NODE_TYPE && tree.node.nodeName.toLowerCase() === 'object' && (tree.node.namespaceURI == null || tree.node.namespaceURI === DOMNamespaces.html)) { 19820 insertTreeChildren(tree); 19821 parentNode.insertBefore(tree.node, referenceNode); 19822 } else { 19823 parentNode.insertBefore(tree.node, referenceNode); 19824 insertTreeChildren(tree); 19825 } 19826}); 19827 19828function replaceChildWithTree(oldNode, newTree) { 19829 oldNode.parentNode.replaceChild(newTree.node, oldNode); 19830 insertTreeChildren(newTree); 19831} 19832 19833function queueChild(parentTree, childTree) { 19834 if (enableLazy) { 19835 parentTree.children.push(childTree); 19836 } else { 19837 parentTree.node.appendChild(childTree.node); 19838 } 19839} 19840 19841function queueHTML(tree, html) { 19842 if (enableLazy) { 19843 tree.html = html; 19844 } else { 19845 setInnerHTML(tree.node, html); 19846 } 19847} 19848 19849function queueText(tree, text) { 19850 if (enableLazy) { 19851 tree.text = text; 19852 } else { 19853 setTextContent(tree.node, text); 19854 } 19855} 19856 19857function toString() { 19858 return this.node.nodeName; 19859} 19860 19861function DOMLazyTree(node) { 19862 return { 19863 node: node, 19864 children: [], 19865 html: null, 19866 text: null, 19867 toString: toString 19868 }; 19869} 19870 19871DOMLazyTree.insertTreeBefore = insertTreeBefore; 19872DOMLazyTree.replaceChildWithTree = replaceChildWithTree; 19873DOMLazyTree.queueChild = queueChild; 19874DOMLazyTree.queueHTML = queueHTML; 19875DOMLazyTree.queueText = queueText; 19876 19877module.exports = DOMLazyTree; 19878 19879/***/ }), 19880/* 55 */ 19881/***/ (function(module, exports, __webpack_require__) { 19882 19883"use strict"; 19884/** 19885 * Copyright (c) 2014-present, Facebook, Inc. 19886 * 19887 * This source code is licensed under the MIT license found in the 19888 * LICENSE file in the root directory of this source tree. 19889 */ 19890 19891 19892 19893/** 19894 * Similar to invariant but only logs a warning if the condition is not met. 19895 * This can be used to log issues in development environments in critical 19896 * paths. Removing the logging code for production environments will keep the 19897 * same logic and follow the same code paths. 19898 */ 19899 19900var __DEV__ = "dev" !== 'production'; 19901 19902var warning = function() {}; 19903 19904if (__DEV__) { 19905 var printWarning = function printWarning(format, args) { 19906 var len = arguments.length; 19907 args = new Array(len > 2 ? len - 2 : 0); 19908 for (var key = 2; key < len; key++) { 19909 args[key - 2] = arguments[key]; 19910 } 19911 var argIndex = 0; 19912 var message = 'Warning: ' + 19913 format.replace(/%s/g, function() { 19914 return args[argIndex++]; 19915 }); 19916 if (typeof console !== 'undefined') { 19917 console.error(message); 19918 } 19919 try { 19920 // --- Welcome to debugging React --- 19921 // This error was thrown as a convenience so that you can use this stack 19922 // to find the callsite that caused this warning to fire. 19923 throw new Error(message); 19924 } catch (x) {} 19925 } 19926 19927 warning = function(condition, format, args) { 19928 var len = arguments.length; 19929 args = new Array(len > 2 ? len - 2 : 0); 19930 for (var key = 2; key < len; key++) { 19931 args[key - 2] = arguments[key]; 19932 } 19933 if (format === undefined) { 19934 throw new Error( 19935 '`warning(condition, format, ...args)` requires a warning ' + 19936 'message argument' 19937 ); 19938 } 19939 if (!condition) { 19940 printWarning.apply(null, [format].concat(args)); 19941 } 19942 }; 19943} 19944 19945module.exports = warning; 19946 19947 19948/***/ }), 19949/* 56 */, 19950/* 57 */, 19951/* 58 */ 19952/***/ (function(module, exports, __webpack_require__) { 19953 19954var dP = __webpack_require__(45); 19955var createDesc = __webpack_require__(70); 19956module.exports = __webpack_require__(61) ? function (object, key, value) { 19957 return dP.f(object, key, createDesc(1, value)); 19958} : function (object, key, value) { 19959 object[key] = value; 19960 return object; 19961}; 19962 19963 19964/***/ }), 19965/* 59 */ 19966/***/ (function(module, exports, __webpack_require__) { 19967 19968var isObject = __webpack_require__(60); 19969module.exports = function (it) { 19970 if (!isObject(it)) throw TypeError(it + ' is not an object!'); 19971 return it; 19972}; 19973 19974 19975/***/ }), 19976/* 60 */
19977/***/ (function(module, exports) { 19978 19979module.exports = function (it) { 19980 return typeof it === 'object' ? it !== null : typeof it === 'function'; 19981}; 19982 19983 19984/***/ }), 19985/* 61 */ 19986/***/ (function(module, exports, __webpack_require__) { 19987 19988// Thank's IE8 for his funny defineProperty 19989module.exports = !__webpack_require__(69)(function () { 19990 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; 19991}); 19992 19993 19994/***/ }), 19995/* 62 */ 19996/***/ (function(module, exports, __webpack_require__) { 19997 19998module.exports = { "default": __webpack_require__(673), __esModule: true }; 19999 20000/***/ }), 20001/* 63 */ 20002/***/ (function(module, exports, __webpack_require__) { 20003 20004"use strict"; 20005 20006 20007Object.defineProperty(exports, "__esModule", { 20008 value: true 20009}); 20010exports.default = ownerDocument; 20011function ownerDocument(node) { 20012 return node && node.ownerDocument || document; 20013} 20014module.exports = exports["default"]; 20015 20016/***/ }), 20017/* 64 */ 20018/***/ (function(module, exports, __webpack_require__) { 20019 20020"use strict"; 20021 20022 20023Object.defineProperty(exports, "__esModule", { 20024 value: true 20025}); 20026 20027var _inDOM = __webpack_require__(39); 20028 20029var _inDOM2 = _interopRequireDefault(_inDOM); 20030 20031function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 20032 20033exports.default = function () { 20034 // HTML DOM and SVG DOM may have different support levels, 20035 // so we need to check on context instead of a document root element. 20036 return _inDOM2.default ? function (context, node) { 20037 if (context.contains) { 20038 return context.contains(node); 20039 } else if (context.compareDocumentPosition) { 20040 return context === node || !!(context.compareDocumentPosition(node) & 16); 20041 } else { 20042 return fallback(context, node); 20043 } 20044 } : fallback; 20045}(); 20046 20047function fallback(context, node) { 20048 if (node) do { 20049 if (node === context) return true; 20050 } while (node = node.parentNode); 20051 20052 return false; 20053} 20054module.exports = exports['default']; 20055 20056/***/ }), 20057/* 65 */ 20058/***/ (function(module, exports, __webpack_require__) { 20059 20060"use strict"; 20061 20062 20063exports.__esModule = true; 20064 20065exports.default = function (componentOrElement) { 20066 return (0, _ownerDocument2.default)(_reactDom2.default.findDOMNode(componentOrElement)); 20067}; 20068 20069var _reactDom = __webpack_require__(17); 20070 20071var _reactDom2 = _interopRequireDefault(_reactDom); 20072 20073var _ownerDocument = __webpack_require__(63); 20074 20075var _ownerDocument2 = _interopRequireDefault(_ownerDocument); 20076 20077function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 20078 20079module.exports = exports['default']; 20080 20081/***/ }), 20082/* 66 */ 20083/***/ (function(module, exports, __webpack_require__) { 20084 20085"use strict"; 20086/** 20087 * Copyright (c) 2013-present, Facebook, Inc. 20088 * 20089 * This source code is licensed under the MIT license found in the 20090 * LICENSE file in the root directory of this source tree. 20091 * 20092 */ 20093 20094 20095 20096/** 20097 * `ReactInstanceMap` maintains a mapping from a public facing stateful 20098 * instance (key) and the internal representation (value). This allows public 20099 * methods to accept the user facing instance as an argument and map them back 20100 * to internal methods. 20101 */ 20102 20103// TODO: Replace this with ES6: var ReactInstanceMap = new Map(); 20104 20105var ReactInstanceMap = { 20106 /** 20107 * This API should be called `delete` but we'd have to make sure to always 20108 * transform these to strings for IE support. When this transform is fully 20109 * supported we can rename it. 20110 */ 20111 remove: function (key) { 20112 key._reactInternalInstance = undefined; 20113 }, 20114 20115 get: function (key) { 20116 return key._reactInternalInstance; 20117 }, 20118 20119 has: function (key) { 20120 return key._reactInternalInstance !== undefined; 20121 }, 20122 20123 set: function (key, value) { 20124 key._reactInternalInstance = value; 20125 } 20126}; 20127 20128module.exports = ReactInstanceMap; 20129 20130/***/ }), 20131/* 67 */ 20132/***/ (function(module, __webpack_exports__, __webpack_require__) { 20133 20134"use strict"; 20135/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addLeadingSlash; }); 20136/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return stripLeadingSlash; }); 20137/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return hasBasename; }); 20138/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return stripBasename; }); 20139/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return stripTrailingSlash; }); 20140/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return parsePath; }); 20141/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return createPath; }); 20142var addLeadingSlash = function addLeadingSlash(path) { 20143 return path.charAt(0) === '/' ? path : '/' + path; 20144}; 20145 20146var stripLeadingSlash = function stripLeadingSlash(path) { 20147 return path.charAt(0) === '/' ? path.substr(1) : path; 20148}; 20149 20150var hasBasename = function hasBasename(path, prefix) { 20151 return new RegExp('^' + prefix + '(\\/|\\?|#|$)', 'i').test(path); 20152}; 20153 20154var stripBasename = function stripBasename(path, prefix) { 20155 return hasBasename(path, prefix) ? path.substr(prefix.length) : path; 20156}; 20157 20158var stripTrailingSlash = function stripTrailingSlash(path) { 20159 return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path; 20160}; 20161 20162var parsePath = function parsePath(path) { 20163 var pathname = path || '/'; 20164 var search = ''; 20165 var hash = ''; 20166 20167 var hashIndex = pathname.indexOf('#'); 20168 if (hashIndex !== -1) { 20169 hash = pathname.substr(hashIndex); 20170 pathname = pathname.substr(0, hashIndex); 20171 } 20172 20173 var searchIndex = pathname.indexOf('?'); 20174 if (searchIndex !== -1) { 20175 search = pathname.substr(searchIndex); 20176 pathname = pathname.substr(0, searchIndex); 20177 } 20178 20179 return { 20180 pathname: pathname, 20181 search: search === '?' ? '' : search, 20182 hash: hash === '#' ? '' : hash 20183 }; 20184}; 20185 20186var createPath = function createPath(location) { 20187 var pathname = location.pathname, 20188 search = location.search, 20189 hash = location.hash; 20190 20191 20192 var path = pathname || '/'; 20193 20194 if (search && search !== '?') path += search.charAt(0) === '?' ? search : '?' + search; 20195 20196 if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : '#' + hash; 20197 20198 return path; 20199}; 20200 20201/***/ }), 20202/* 68 */
20203/***/ (function(module, exports) { 20204 20205var g; 20206 20207// This works in non-strict mode 20208g = (function() { 20209 return this; 20210})(); 20211 20212try { 20213 // This works if eval is allowed (see CSP) 20214 g = g || Function("return this")() || (1,eval)("this"); 20215} catch(e) { 20216 // This works if the window reference is available 20217 if(typeof window === "object") 20218 g = window; 20219} 20220 20221// g can still be undefined, but nothing to do about it... 20222// We return undefined, instead of nothing here, so it's 20223// easier to handle this case. if(!global) { ...} 20224 20225module.exports = g; 20226 20227 20228/***/ }), 20229/* 69 */ 20230/***/ (function(module, exports) { 20231 20232module.exports = function (exec) { 20233 try { 20234 return !!exec(); 20235 } catch (e) { 20236 return true; 20237 } 20238}; 20239 20240 20241/***/ }), 20242/* 70 */ 20243/***/ (function(module, exports) { 20244 20245module.exports = function (bitmap, value) { 20246 return { 20247 enumerable: !(bitmap & 1), 20248 configurable: !(bitmap & 2), 20249 writable: !(bitmap & 4), 20250 value: value 20251 }; 20252}; 20253 20254 20255/***/ }), 20256/* 71 */ 20257/***/ (function(module, exports, __webpack_require__) { 20258 20259// 19.1.2.14 / 15.2.3.14 Object.keys(O) 20260var $keys = __webpack_require__(363); 20261var enumBugKeys = __webpack_require__(144); 20262 20263module.exports = Object.keys || function keys(O) { 20264 return $keys(O, enumBugKeys); 20265}; 20266 20267 20268/***/ }), 20269/* 72 */ 20270/***/ (function(module, exports) { 20271 20272exports.f = {}.propertyIsEnumerable; 20273 20274 20275/***/ }), 20276/* 73 */ 20277/***/ (function(module, exports) { 20278 20279module.exports = {}; 20280 20281 20282/***/ }), 20283/* 74 */ 20284/***/ (function(module, __webpack_exports__, __webpack_require__) { 20285 20286"use strict"; 20287/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values__ = __webpack_require__(62); 20288/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values__); 20289/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 20290/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 20291/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends__ = __webpack_require__(6); 20292/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends__); 20293/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 20294/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__); 20295/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 20296/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__); 20297/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(5); 20298/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__); 20299/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames__ = __webpack_require__(8); 20300/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_classnames__); 20301/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react__ = __webpack_require__(0); 20302/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react__); 20303/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types__ = __webpack_require__(2); 20304/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types__); 20305/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_prop_types_extra_lib_elementType__ = __webpack_require__(13); 20306/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_prop_types_extra_lib_elementType__); 20307/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__ = __webpack_require__(9); 20308/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__ = __webpack_require__(20); 20309/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__SafeAnchor__ = __webpack_require__(34); 20310 20311 20312 20313 20314 20315 20316 20317 20318 20319 20320 20321 20322 20323 20324 20325 20326var propTypes = { 20327 active: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, 20328 disabled: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, 20329 block: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, 20330 onClick: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, 20331 componentClass: __WEBPACK_IMPORTED_MODULE_9_prop_types_extra_lib_elementType___default.a, 20332 href: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string, 20333 /** 20334 * Defines HTML button type attribute 20335 * @defaultValue 'button' 20336 */ 20337 type: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOf(['button', 'reset', 'submit']) 20338}; 20339 20340var defaultProps = { 20341 active: false, 20342 block: false, 20343 disabled: false 20344}; 20345 20346var Button = function (_React$Component) { 20347 __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(Button, _React$Component); 20348 20349 function Button() { 20350 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck___default()(this, Button); 20351 20352 return __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 20353 } 20354 20355 Button.prototype.renderAnchor = function renderAnchor(elementProps, className) { 20356 return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_12__SafeAnchor__["a" /* default */], __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({}, elementProps, { 20357 className: __WEBPACK_IMPORTED_MODULE_6_classnames___default()(className, elementProps.disabled && 'disabled') 20358 })); 20359 }; 20360 20361 Button.prototype.renderButton = function renderButton(_ref, className) { 20362 var componentClass = _ref.componentClass, 20363 elementProps = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_ref, ['componentClass']); 20364 20365 var Component = componentClass || 'button'; 20366 20367 return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({}, elementProps, { 20368 type: elementProps.type || 'button', 20369 className: className 20370 })); 20371 }; 20372 20373 Button.prototype.render = function render() { 20374 var _extends2; 20375 20376 var _props = this.props, 20377 active = _props.active, 20378 block = _props.block, 20379 className = _props.className, 20380 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['active', 'block', 'className']); 20381 20382 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["splitBsProps"])(props), 20383 bsProps = _splitBsProps[0], 20384 elementProps = _splitBsProps[1]; 20385 20386 var classes = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["getClassSet"])(bsProps), (_extends2 = { 20387 active: active 20388 }, _extends2[Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["prefix"])(bsProps, 'block')] = block, _extends2)); 20389 var fullClassName = __WEBPACK_IMPORTED_MODULE_6_classnames___default()(className, classes); 20390 20391 if (elementProps.href) { 20392 return this.renderAnchor(elementProps, fullClassName); 20393 } 20394 20395 return this.renderButton(elementProps, fullClassName); 20396 }; 20397 20398 return Button; 20399}(__WEBPACK_IMPORTED_MODULE_7_react___default.a.Component); 20400
20401Button.propTypes = propTypes; 20402Button.defaultProps = defaultProps; 20403 20404/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["bsClass"])('btn', Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["bsSizes"])([__WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["c" /* Size */].LARGE, __WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["c" /* Size */].SMALL, __WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["c" /* Size */].XSMALL], Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["bsStyles"])([].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values___default()(__WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["d" /* State */]), [__WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["e" /* Style */].DEFAULT, __WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["e" /* Style */].PRIMARY, __WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["e" /* Style */].LINK]), __WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["e" /* Style */].DEFAULT, Button)))); 20405 20406/***/ }), 20407/* 75 */ 20408/***/ (function(module, exports, __webpack_require__) { 20409 20410"use strict"; 20411 20412 20413exports.__esModule = true; 20414 20415var _createUncontrollable = __webpack_require__(693); 20416 20417var _createUncontrollable2 = _interopRequireDefault(_createUncontrollable); 20418 20419function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 20420 20421var mixin = { 20422 shouldComponentUpdate: function shouldComponentUpdate() { 20423 //let the forceUpdate trigger the update 20424 return !this._notifying; 20425 } 20426}; 20427 20428function set(component, propName, handler, value, args) { 20429 if (handler) { 20430 component._notifying = true; 20431 handler.call.apply(handler, [component, value].concat(args)); 20432 component._notifying = false; 20433 } 20434 20435 component._values[propName] = value; 20436 20437 if (!component.unmounted) component.forceUpdate(); 20438} 20439 20440exports.default = (0, _createUncontrollable2.default)(mixin, set); 20441module.exports = exports['default']; 20442 20443/***/ }), 20444/* 76 */ 20445/***/ (function(module, exports, __webpack_require__) { 20446 20447"use strict"; 20448/** 20449 * Copyright (c) 2013-present, Facebook, Inc. 20450 * 20451 * This source code is licensed under the MIT license found in the 20452 * LICENSE file in the root directory of this source tree. 20453 * 20454 * 20455 */ 20456 20457 20458 20459var canDefineProperty = false; 20460if (true) { 20461 try { 20462 // $FlowFixMe https://github.com/facebook/flow/issues/285 20463 Object.defineProperty({}, 'x', { get: function () {} }); 20464 canDefineProperty = true; 20465 } catch (x) { 20466 // IE will fail on defineProperty 20467 } 20468} 20469 20470module.exports = canDefineProperty; 20471 20472/***/ }), 20473/* 77 */ 20474/***/ (function(module, exports, __webpack_require__) { 20475 20476"use strict"; 20477/** 20478 * Copyright (c) 2013-present, Facebook, Inc. 20479 * 20480 * This source code is licensed under the MIT license found in the 20481 * LICENSE file in the root directory of this source tree. 20482 * 20483 */ 20484 20485 20486 20487var emptyObject = {}; 20488 20489if (true) { 20490 Object.freeze(emptyObject); 20491} 20492 20493module.exports = emptyObject; 20494 20495/***/ }), 20496/* 78 */ 20497/***/ (function(module, exports, __webpack_require__) { 20498 20499"use strict"; 20500/** 20501 * Copyright (c) 2013-present, Facebook, Inc. 20502 * 20503 * This source code is licensed under the MIT license found in the 20504 * LICENSE file in the root directory of this source tree. 20505 * 20506 * 20507 */ 20508 20509 20510 20511var _prodInvariant = __webpack_require__(12); 20512 20513var invariant = __webpack_require__(10); 20514 20515/** 20516 * Injectable ordering of event plugins. 20517 */ 20518var eventPluginOrder = null; 20519 20520/** 20521 * Injectable mapping from names to event plugin modules. 20522 */ 20523var namesToPlugins = {}; 20524 20525/** 20526 * Recomputes the plugin list using the injected plugins and plugin ordering. 20527 * 20528 * @private 20529 */ 20530function recomputePluginOrdering() { 20531 if (!eventPluginOrder) { 20532 // Wait until an `eventPluginOrder` is injected. 20533 return; 20534 } 20535 for (var pluginName in namesToPlugins) { 20536 var pluginModule = namesToPlugins[pluginName]; 20537 var pluginIndex = eventPluginOrder.indexOf(pluginName); 20538 !(pluginIndex > -1) ? true ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : _prodInvariant('96', pluginName) : void 0; 20539 if (EventPluginRegistry.plugins[pluginIndex]) { 20540 continue; 20541 } 20542 !pluginModule.extractEvents ? true ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : _prodInvariant('97', pluginName) : void 0; 20543 EventPluginRegistry.plugins[pluginIndex] = pluginModule; 20544 var publishedEvents = pluginModule.eventTypes; 20545 for (var eventName in publishedEvents) { 20546 !publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) ? true ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : _prodInvariant('98', eventName, pluginName) : void 0; 20547 } 20548 } 20549} 20550 20551/** 20552 * Publishes an event so that it can be dispatched by the supplied plugin. 20553 * 20554 * @param {object} dispatchConfig Dispatch configuration for the event. 20555 * @param {object} PluginModule Plugin publishing the event. 20556 * @return {boolean} True if the event was successfully published. 20557 * @private 20558 */ 20559function publishEventForPlugin(dispatchConfig, pluginModule, eventName) { 20560 !!EventPluginRegistry.eventNameDispatchConfigs.hasOwnProperty(eventName) ? true ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : _prodInvariant('99', eventName) : void 0; 20561 EventPluginRegistry.eventNameDispatchConfigs[eventName] = dispatchConfig; 20562
20563 var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; 20564 if (phasedRegistrationNames) { 20565 for (var phaseName in phasedRegistrationNames) { 20566 if (phasedRegistrationNames.hasOwnProperty(phaseName)) { 20567 var phasedRegistrationName = phasedRegistrationNames[phaseName]; 20568 publishRegistrationName(phasedRegistrationName, pluginModule, eventName); 20569 } 20570 } 20571 return true; 20572 } else if (dispatchConfig.registrationName) { 20573 publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName); 20574 return true; 20575 } 20576 return false; 20577} 20578 20579/** 20580 * Publishes a registration name that is used to identify dispatched events and 20581 * can be used with `EventPluginHub.putListener` to register listeners. 20582 * 20583 * @param {string} registrationName Registration name to add. 20584 * @param {object} PluginModule Plugin publishing the event. 20585 * @private 20586 */ 20587function publishRegistrationName(registrationName, pluginModule, eventName) { 20588 !!EventPluginRegistry.registrationNameModules[registrationName] ? true ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : _prodInvariant('100', registrationName) : void 0; 20589 EventPluginRegistry.registrationNameModules[registrationName] = pluginModule; 20590 EventPluginRegistry.registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies; 20591 20592 if (true) { 20593 var lowerCasedName = registrationName.toLowerCase(); 20594 EventPluginRegistry.possibleRegistrationNames[lowerCasedName] = registrationName; 20595 20596 if (registrationName === 'onDoubleClick') { 20597 EventPluginRegistry.possibleRegistrationNames.ondblclick = registrationName; 20598 } 20599 } 20600} 20601 20602/** 20603 * Registers plugins so that they can extract and dispatch events. 20604 * 20605 * @see {EventPluginHub} 20606 */ 20607var EventPluginRegistry = { 20608 /** 20609 * Ordered list of injected plugins. 20610 */ 20611 plugins: [], 20612 20613 /** 20614 * Mapping from event name to dispatch config 20615 */ 20616 eventNameDispatchConfigs: {}, 20617 20618 /** 20619 * Mapping from registration name to plugin module 20620 */ 20621 registrationNameModules: {}, 20622 20623 /** 20624 * Mapping from registration name to event name 20625 */ 20626 registrationNameDependencies: {}, 20627 20628 /** 20629 * Mapping from lowercase registration names to the properly cased version, 20630 * used to warn in the case of missing event handlers. Available 20631 * only in __DEV__. 20632 * @type {Object} 20633 */ 20634 possibleRegistrationNames: true ? {} : null, 20635 // Trust the developer to only use possibleRegistrationNames in __DEV__ 20636 20637 /** 20638 * Injects an ordering of plugins (by plugin name). This allows the ordering 20639 * to be decoupled from injection of the actual plugins so that ordering is 20640 * always deterministic regardless of packaging, on-the-fly injection, etc. 20641 * 20642 * @param {array} InjectedEventPluginOrder 20643 * @internal 20644 * @see {EventPluginHub.injection.injectEventPluginOrder} 20645 */ 20646 injectEventPluginOrder: function (injectedEventPluginOrder) { 20647 !!eventPluginOrder ? true ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : _prodInvariant('101') : void 0; 20648 // Clone the ordering so it cannot be dynamically mutated. 20649 eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); 20650 recomputePluginOrdering(); 20651 }, 20652 20653 /** 20654 * Injects plugins to be used by `EventPluginHub`. The plugin names must be 20655 * in the ordering injected by `injectEventPluginOrder`. 20656 * 20657 * Plugins can be injected as part of page initialization or on-the-fly. 20658 * 20659 * @param {object} injectedNamesToPlugins Map from names to plugin modules. 20660 * @internal 20661 * @see {EventPluginHub.injection.injectEventPluginsByName} 20662 */ 20663 injectEventPluginsByName: function (injectedNamesToPlugins) { 20664 var isOrderingDirty = false; 20665 for (var pluginName in injectedNamesToPlugins) { 20666 if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) { 20667 continue; 20668 } 20669 var pluginModule = injectedNamesToPlugins[pluginName]; 20670 if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) { 20671 !!namesToPlugins[pluginName] ? true ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : _prodInvariant('102', pluginName) : void 0; 20672 namesToPlugins[pluginName] = pluginModule; 20673 isOrderingDirty = true; 20674 } 20675 } 20676 if (isOrderingDirty) { 20677 recomputePluginOrdering(); 20678 } 20679 }, 20680 20681 /** 20682 * Looks up the plugin for the supplied event. 20683 * 20684 * @param {object} event A synthetic event. 20685 * @return {?object} The plugin that created the supplied event. 20686 * @internal 20687 */ 20688 getPluginModuleForEvent: function (event) { 20689 var dispatchConfig = event.dispatchConfig;
20690 if (dispatchConfig.registrationName) { 20691 return EventPluginRegistry.registrationNameModules[dispatchConfig.registrationName] || null; 20692 } 20693 if (dispatchConfig.phasedRegistrationNames !== undefined) { 20694 // pulling phasedRegistrationNames out of dispatchConfig helps Flow see 20695 // that it is not undefined. 20696 var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; 20697 20698 for (var phase in phasedRegistrationNames) { 20699 if (!phasedRegistrationNames.hasOwnProperty(phase)) { 20700 continue; 20701 } 20702 var pluginModule = EventPluginRegistry.registrationNameModules[phasedRegistrationNames[phase]]; 20703 if (pluginModule) { 20704 return pluginModule; 20705 } 20706 } 20707 } 20708 return null; 20709 }, 20710 20711 /** 20712 * Exposed for unit testing. 20713 * @private 20714 */ 20715 _resetEventPlugins: function () { 20716 eventPluginOrder = null; 20717 for (var pluginName in namesToPlugins) { 20718 if (namesToPlugins.hasOwnProperty(pluginName)) { 20719 delete namesToPlugins[pluginName]; 20720 } 20721 } 20722 EventPluginRegistry.plugins.length = 0; 20723 20724 var eventNameDispatchConfigs = EventPluginRegistry.eventNameDispatchConfigs; 20725 for (var eventName in eventNameDispatchConfigs) { 20726 if (eventNameDispatchConfigs.hasOwnProperty(eventName)) { 20727 delete eventNameDispatchConfigs[eventName]; 20728 } 20729 } 20730 20731 var registrationNameModules = EventPluginRegistry.registrationNameModules; 20732 for (var registrationName in registrationNameModules) { 20733 if (registrationNameModules.hasOwnProperty(registrationName)) { 20734 delete registrationNameModules[registrationName]; 20735 } 20736 } 20737 20738 if (true) { 20739 var possibleRegistrationNames = EventPluginRegistry.possibleRegistrationNames; 20740 for (var lowerCasedName in possibleRegistrationNames) { 20741 if (possibleRegistrationNames.hasOwnProperty(lowerCasedName)) { 20742 delete possibleRegistrationNames[lowerCasedName]; 20743 } 20744 } 20745 } 20746 } 20747}; 20748 20749module.exports = EventPluginRegistry; 20750 20751/***/ }), 20752/* 79 */ 20753/***/ (function(module, exports, __webpack_require__) { 20754 20755"use strict"; 20756/** 20757 * Copyright (c) 2013-present, Facebook, Inc. 20758 * 20759 * This source code is licensed under the MIT license found in the 20760 * LICENSE file in the root directory of this source tree. 20761 * 20762 */ 20763 20764 20765 20766var _prodInvariant = __webpack_require__(12); 20767 20768var ReactErrorUtils = __webpack_require__(106); 20769 20770var invariant = __webpack_require__(10); 20771var warning = __webpack_require__(11); 20772 20773/** 20774 * Injected dependencies: 20775 */ 20776 20777/** 20778 * - `ComponentTree`: [required] Module that can convert between React instances 20779 * and actual node references. 20780 */ 20781var ComponentTree; 20782var TreeTraversal; 20783var injection = { 20784 injectComponentTree: function (Injected) { 20785 ComponentTree = Injected; 20786 if (true) { 20787 true ? warning(Injected && Injected.getNodeFromInstance && Injected.getInstanceFromNode, 'EventPluginUtils.injection.injectComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0; 20788 } 20789 }, 20790 injectTreeTraversal: function (Injected) { 20791 TreeTraversal = Injected; 20792 if (true) { 20793 true ? warning(Injected && Injected.isAncestor && Injected.getLowestCommonAncestor, 'EventPluginUtils.injection.injectTreeTraversal(...): Injected ' + 'module is missing isAncestor or getLowestCommonAncestor.') : void 0; 20794 } 20795 } 20796}; 20797 20798function isEndish(topLevelType) { 20799 return topLevelType === 'topMouseUp' || topLevelType === 'topTouchEnd' || topLevelType === 'topTouchCancel'; 20800} 20801 20802function isMoveish(topLevelType) { 20803 return topLevelType === 'topMouseMove' || topLevelType === 'topTouchMove'; 20804} 20805function isStartish(topLevelType) { 20806 return topLevelType === 'topMouseDown' || topLevelType === 'topTouchStart'; 20807} 20808 20809var validateEventDispatches; 20810if (true) { 20811 validateEventDispatches = function (event) { 20812 var dispatchListeners = event._dispatchListeners; 20813 var dispatchInstances = event._dispatchInstances; 20814 20815 var listenersIsArr = Array.isArray(dispatchListeners); 20816 var listenersLen = listenersIsArr ? dispatchListeners.length : dis
20816patchListeners ? 1 : 0; 20817 20818 var instancesIsArr = Array.isArray(dispatchInstances); 20819 var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0; 20820 20821 true ? warning(instancesIsArr === listenersIsArr && instancesLen === listenersLen, 'EventPluginUtils: Invalid `event`.') : void 0; 20822 }; 20823} 20824 20825/** 20826 * Dispatch the event to the listener. 20827 * @param {SyntheticEvent} event SyntheticEvent to handle 20828 * @param {boolean} simulated If the event is simulated (changes exn behavior) 20829 * @param {function} listener Application-level callback 20830 * @param {*} inst Internal component instance 20831 */ 20832function executeDispatch(event, simulated, listener, inst) { 20833 var type = event.type || 'unknown-event'; 20834 event.currentTarget = EventPluginUtils.getNodeFromInstance(inst); 20835 if (simulated) { 20836 ReactErrorUtils.invokeGuardedCallbackWithCatch(type, listener, event); 20837 } else { 20838 ReactErrorUtils.invokeGuardedCallback(type, listener, event); 20839 } 20840 event.currentTarget = null; 20841} 20842 20843/** 20844 * Standard/simple iteration through an event's collected dispatches. 20845 */ 20846function executeDispatchesInOrder(event, simulated) { 20847 var dispatchListeners = event._dispatchListeners; 20848 var dispatchInstances = event._dispatchInstances; 20849 if (true) { 20850 validateEventDispatches(event); 20851 } 20852 if (Array.isArray(dispatchListeners)) { 20853 for (var i = 0; i < dispatchListeners.length; i++) { 20854 if (event.isPropagationStopped()) { 20855 break; 20856 } 20857 // Listeners and Instances are two parallel arrays that are always in sync. 20858 executeDispatch(event, simulated, dispatchListeners[i], dispatchInstances[i]); 20859 } 20860 } else if (dispatchListeners) { 20861 executeDispatch(event, simulated, dispatchListeners, dispatchInstances); 20862 } 20863 event._dispatchListeners = null; 20864 event._dispatchInstances = null; 20865} 20866 20867/** 20868 * Standard/simple iteration through an event's collected dispatches, but stops 20869 * at the first dispatch execution returning true, and returns that id. 20870 * 20871 * @return {?string} id of the first dispatch execution who's listener returns 20872 * true, or null if no listener returned true. 20873 */ 20874function executeDispatchesInOrderStopAtTrueImpl(event) { 20875 var dispatchListeners = event._dispatchListeners; 20876 var dispatchInstances = event._dispatchInstances; 20877 if (true) { 20878 validateEventDispatches(event); 20879 } 20880 if (Array.isArray(dispatchListeners)) { 20881 for (var i = 0; i < dispatchListeners.length; i++) { 20882 if (event.isPropagationStopped()) { 20883 break; 20884 } 20885 // Listeners and Instances are two parallel arrays that are always in sync. 20886 if (dispatchListeners[i](event, dispatchInstances[i])) { 20887 return dispatchInstances[i]; 20888 } 20889 } 20890 } else if (dispatchListeners) { 20891 if (dispatchListeners(event, dispatchInstances)) { 20892 return dispatchInstances; 20893 } 20894 } 20895 return null; 20896} 20897 20898/** 20899 * @see executeDispatchesInOrderStopAtTrueImpl 20900 */ 20901function executeDispatchesInOrderStopAtTrue(event) { 20902 var ret = executeDispatchesInOrderStopAtTrueImpl(event); 20903 event._dispatchInstances = null; 20904 event._dispatchListeners = null; 20905 return ret; 20906} 20907 20908/** 20909 * Execution of a "direct" dispatch - there must be at most one dispatch 20910 * accumulated on the event or it is considered an error. It doesn't really make 20911 * sense for an event with multiple dispatches (bubbled) to keep track of the 20912 * return values at each dispatch execution, but it does tend to make sense when 20913 * dealing with "direct" dispatches. 20914 * 20915 * @return {*} The return value of executing the single dispatch. 20916 */ 20917function executeDirectDispatch(event) { 20918 if (true) { 20919 validateEventDispatches(event); 20920 } 20921 var dispatchListener = event._dispatchListeners; 20922 var dispatchInstance = event._dispatchInstances; 20923 !!Array.isArray(dispatchListener) ? true ? invariant(false, 'executeDirectDispatch(...): Invalid `event`.') : _prodInvariant('103') : void 0; 20924 event.currentTarget = dispatchListener ? EventPluginUtils.getNodeFromInstance(dispatchInstance) : null; 20925 var res = dispatchListener ? dispatchListener(event) : null; 20926 event.currentTarget = null; 20927 event._dispatchListeners = null; 20928 event._dispatchInstances = null; 20929 return res; 20930} 20931 20932/** 20933 * @param {SyntheticEvent} event 20934 * @return {boolean} True iff number of dispatches accumulated is greater than 0. 20935 */ 20936function hasDispatches(event) { 20937 return !!event._dispatchListeners; 20938} 20939 20940/** 20941 * General utilities that are useful in creating custom Event Plugins. 20942 */ 20943var EventPluginUtils = { 20944 isEndish: isEndish, 20945 isMoveish: isMoveish, 20946 isStartish: isStartish, 20947 20948 executeDirectDispatch: executeDirectDispatch, 20949 executeDispatchesInOrder: executeDispatchesInOrder, 20950 executeDispatchesInOrderStopAtTrue: executeDispatchesInOrderStopAtTrue, 20951 hasDispatches: hasDispatches, 20952 20953 getInstanceFromNode: function (node) { 20954 return ComponentTree.getInstanceFromNode(node); 20955 }, 20956 getNodeFromInstance: function (node) { 20957 return ComponentTree.getNodeFromInstance(node); 20958 }, 20959 isAncestor: function (a, b) { 20960 return TreeTraversal.isAncestor(a, b); 20961 }, 20962 getLowestCommonAncestor: function (a, b) { 20963 return TreeTraversal.getLowestCommonAncestor(a, b); 20964 }, 20965 getParentInstance: function (inst) { 20966 return TreeTraversal.getParentInstance(inst); 20967 }, 20968 traverseTwoPhase: function (target, fn, arg) { 20969 return TreeTraversal.traverseTwoPhase(target, fn, arg); 20970 }, 20971 traverseEnterLeave: function (from, to, fn, argFrom, argTo) { 20972 return TreeTraversal.traverseEnterLeave(from, to, fn, argFrom, argTo); 20973 }, 20974 20975 injection: injection 20976}; 20977 20978module.exports = EventPluginUtils; 20979 20980/***/ }), 20981/* 80 */ 20982/***/ (function(module, exports, __webpack_require__) { 20983 20984"use strict"; 20985/** 20986 * Copyright (c) 2013-present, Facebook, Inc. 20987 * 20988 * This source code is licensed under the MIT license found in the 20989 * LICENSE file in the root directory of this source tree. 20990 * 20991 * 20992 */ 20993 20994 20995 20996var _prodInvariant = __webpack_require__(12); 20997 20998var invariant = __webpack_require__(10); 20999 21000var OBSERVED_ERROR = {}; 21001 21002/** 21003 * `Transaction` creates a black box that is able to wrap any method such that 21004 * certain invariants are maintained before and after the method is invoked 21005 * (Even if an exception is thrown while invoking the wrapped method). Whoever 21006 * instantiates a transaction can provide enforcers of the invariants at 21007 * creation time. The `Transaction` class itself will supply one additional 21008 * automatic invariant for you - the invariant that any transaction instance 21009 * should not be run while it is already being run. You would typically create a 21010 * single instance of a `Transaction` for reuse multiple times, that potentially 21011 * is used to wrap several different methods. Wrappers are extremely simple - 21012 * they only require implementing two methods. 21013 * 21014 * <pre> 21015 * wrappers (injected at creation time) 21016 * + + 21017 * | | 21018 * +-----------------|--------|--------------+ 21019 * | v | | 21020 * | +---------------+ | | 21021 * | +--| wrapper1 |---|----+ | 21022 * | | +---------------+ v | | 21023 * | | +-------------+ | | 21024 * | | +----| wrapper2 |--------+ |
21025 * | | | +-------------+ | | | 21026 * | | | | | | 21027 * | v v v v | wrapper 21028 * | +---+ +---+ +---------+ +---+ +---+ | invariants 21029 * perform(anyMethod) | | | | | | | | | | | | maintained 21030 * +----------------->|-|---|-|---|-->|anyMethod|---|---|-|---|-|--------> 21031 * | | | | | | | | | | | | 21032 * | | | | | | | | | | | | 21033 * | | | | | | | | | | | | 21034 * | +---+ +---+ +---------+ +---+ +---+ | 21035 * | initialize close | 21036 * +-----------------------------------------+ 21037 * </pre> 21038 * 21039 * Use cases: 21040 * - Preserving the input selection ranges before/after reconciliation. 21041 * Restoring selection even in the event of an unexpected error. 21042 * - Deactivating events while rearranging the DOM, preventing blurs/focuses, 21043 * while guaranteeing that afterwards, the event system is reactivated. 21044 * - Flushing a queue of collected DOM mutations to the main UI thread after a 21045 * reconciliation takes place in a worker thread. 21046 * - Invoking any collected `componentDidUpdate` callbacks after rendering new 21047 * content. 21048 * - (Future use case): Wrapping particular flushes of the `ReactWorker` queue 21049 * to preserve the `scrollTop` (an automatic scroll aware DOM). 21050 * - (Future use case): Layout calculations before and after DOM updates. 21051 * 21052 * Transactional plugin API: 21053 * - A module that has an `initialize` method that returns any precomputation. 21054 * - and a `close` method that accepts the precomputation. `close` is invoked 21055 * when the wrapped process is completed, or has failed. 21056 * 21057 * @param {Array<TransactionalWrapper>} transactionWrapper Wrapper modules 21058 * that implement `initialize` and `close`. 21059 * @return {Transaction} Single transaction for reuse in thread. 21060 * 21061 * @class Transaction 21062 */ 21063var TransactionImpl = { 21064 /** 21065 * Sets up this instance so that it is prepared for collecting metrics. Does 21066 * so such that this setup method may be used on an instance that is already 21067 * initialized, in a way that does not consume additional memory upon reuse. 21068 * That can be useful if you decide to make your subclass of this mixin a 21069 * "PooledClass". 21070 */ 21071 reinitializeTransaction: function () { 21072 this.transactionWrappers = this.getTransactionWrappers(); 21073 if (this.wrapperInitData) { 21074 this.wrapperInitData.length = 0; 21075 } else { 21076 this.wrapperInitData = []; 21077 } 21078 this._isInTransaction = false; 21079 }, 21080 21081 _isInTransaction: false, 21082 21083 /** 21084 * @abstract 21085 * @return {Array<TransactionWrapper>} Array of transaction wrappers. 21086 */ 21087 getTransactionWrappers: null, 21088 21089 isInTransaction: function () { 21090 return !!this._isInTransaction; 21091 }, 21092 21093 /* eslint-disable space-before-function-paren */ 21094 21095 /** 21096 * Executes the function within a safety window. Use this for the top level 21097 * methods that result in large amounts of computation/mutations that would 21098 * need to be safety checked. The optional arguments helps prevent the need 21099 * to bind in many cases. 21100 * 21101 * @param {function} method Member of scope to call. 21102 * @param {Object} scope Scope to invoke from. 21103 * @param {Object?=} a Argument to pass to the method. 21104 * @param {Object?=} b Argument to pass to the method. 21105 * @param {Object?=} c Argument to pass to the method. 21106 * @param {Object?=} d Argument to pass to the method. 21107 * @param {Object?=} e Argument to pass to the method. 21108 * @param {Object?=} f Argument to pass to the method. 21109 * 21110 * @return {*} Return value from `method`. 21111 */ 21112 perform: function (method, scope, a, b, c, d, e, f) { 21113 /* eslint-enable space-before-function-paren */ 21114 !!this.isInTransaction() ? true ? invariant(false, 'Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction.') : _prodInvariant('27') : void 0; 21115 var errorThrown; 21116 var ret; 21117 try { 21118 this._isInTransaction = true; 21119 // Catching errors makes debugging more difficult, so we start with
21120 // errorThrown set to true before setting it to false after calling 21121 // close -- if it's still set to true in the finally block, it means 21122 // one of these calls threw. 21123 errorThrown = true; 21124 this.initializeAll(0); 21125 ret = method.call(scope, a, b, c, d, e, f); 21126 errorThrown = false; 21127 } finally { 21128 try { 21129 if (errorThrown) { 21130 // If `method` throws, prefer to show that stack trace over any thrown 21131 // by invoking `closeAll`. 21132 try { 21133 this.closeAll(0); 21134 } catch (err) {} 21135 } else { 21136 // Since `method` didn't throw, we don't want to silence the exception 21137 // here. 21138 this.closeAll(0); 21139 } 21140 } finally { 21141 this._isInTransaction = false; 21142 } 21143 } 21144 return ret; 21145 }, 21146 21147 initializeAll: function (startIndex) { 21148 var transactionWrappers = this.transactionWrappers; 21149 for (var i = startIndex; i < transactionWrappers.length; i++) { 21150 var wrapper = transactionWrappers[i]; 21151 try { 21152 // Catching errors makes debugging more difficult, so we start with the 21153 // OBSERVED_ERROR state before overwriting it with the real return value 21154 // of initialize -- if it's still set to OBSERVED_ERROR in the finally 21155 // block, it means wrapper.initialize threw. 21156 this.wrapperInitData[i] = OBSERVED_ERROR; 21157 this.wrapperInitData[i] = wrapper.initialize ? wrapper.initialize.call(this) : null; 21158 } finally { 21159 if (this.wrapperInitData[i] === OBSERVED_ERROR) { 21160 // The initializer for wrapper i threw an error; initialize the 21161 // remaining wrappers but silence any exceptions from them to ensure 21162 // that the first error is the one to bubble up. 21163 try { 21164 this.initializeAll(i + 1); 21165 } catch (err) {} 21166 } 21167 } 21168 } 21169 }, 21170 21171 /** 21172 * Invokes each of `this.transactionWrappers.close[i]` functions, passing into 21173 * them the respective return values of `this.transactionWrappers.init[i]` 21174 * (`close`rs that correspond to initializers that failed will not be 21175 * invoked). 21176 */ 21177 closeAll: function (startIndex) { 21178 !this.isInTransaction() ? true ? invariant(false, 'Transaction.closeAll(): Cannot close transaction when none are open.') : _prodInvariant('28') : void 0; 21179 var transactionWrappers = this.transactionWrappers; 21180 for (var i = startIndex; i < transactionWrappers.length; i++) { 21181 var wrapper = transactionWrappers[i]; 21182 var initData = this.wrapperInitData[i]; 21183 var errorThrown; 21184 try { 21185 // Catching errors makes debugging more difficult, so we start with 21186 // errorThrown set to true before setting it to false after calling 21187 // close -- if it's still set to true in the finally block, it means 21188 // wrapper.close threw. 21189 errorThrown = true; 21190 if (initData !== OBSERVED_ERROR && wrapper.close) { 21191 wrapper.close.call(this, initData); 21192 } 21193 errorThrown = false; 21194 } finally { 21195 if (errorThrown) { 21196 // The closer for wrapper i threw an error; close the remaining 21197 // wrappers but silence any exceptions from them to ensure that the 21198 // first error is the one to bubble up. 21199 try { 21200 this.closeAll(i + 1); 21201 } catch (e) {} 21202 } 21203 } 21204 } 21205 this.wrapperInitData.length = 0; 21206 } 21207}; 21208 21209module.exports = TransactionImpl; 21210 21211/***/ }), 21212/* 81 */ 21213/***/ (function(module, exports, __webpack_require__) { 21214 21215"use strict"; 21216/** 21217 * Copyright (c) 2013-present, Facebook, Inc. 21218 * 21219 * This source code is licensed under the MIT license found in the 21220 * LICENSE file in the root directory of this source tree. 21221 * 21222 */ 21223 21224 21225 21226var SyntheticUIEvent = __webpack_require__(53); 21227var ViewportMetrics = __webpack_require__(109); 21228 21229var getEventModifierState = __webpack_require__(110); 21230 21231/** 21232 * @interface MouseEvent 21233 * @see http://www.w3.org/TR/DOM-Level-3-Events/ 21234 */ 21235var MouseEventInterface = { 21236 screenX: null, 21237 screenY: null, 21238 clientX: null, 21239 clientY: null, 21240 ctrlKey: null, 21241 shiftKey: null, 21242 altKey: null, 21243 metaKey: null, 21244 getModifierState: getEventModifierState, 21245 button: function (event) { 21246 // Webkit, Firefox, IE9+ 21247 // which: 1 2 3 21248 // button: 0 1 2 (standard) 21249 var button = event.button; 21250 if ('which' in event) { 21251 return button; 21252 } 21253 // IE<9 21254 // which: undefined 21255 // button: 0 0 0 21256 // button: 1 4 2 (onmouseup) 21257 return button === 2 ? 2 : button === 4 ? 1 : 0; 21258 }, 21259 buttons: null, 21260 relatedTarget: function (event) { 21261 return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement); 21262 }, 21263 // "Proprietary" Interface. 21264 pageX: function (event) { 21265 return 'pageX' in event ? event.pageX : event.clientX + ViewportMetrics.currentScrollLeft; 21266 }, 21267 pageY: function (event) { 21268 return 'pageY' in event ? event.pageY : event.clientY + ViewportMetrics.currentScrollTop; 21269 } 21270}; 21271 21272/** 21273 * @param {object} dispatchConfig Configuration used to dispatch this event. 21274 * @param {string} dispatchMarker Marker identifying the event target. 21275 * @param {object} nativeEvent Native browser event. 21276 * @extends {SyntheticUIEvent} 21277 */
21278function SyntheticMouseEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { 21279 return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); 21280} 21281 21282SyntheticUIEvent.augmentClass(SyntheticMouseEvent, MouseEventInterface); 21283 21284module.exports = SyntheticMouseEvent; 21285 21286/***/ }), 21287/* 82 */ 21288/***/ (function(module, exports, __webpack_require__) { 21289 21290"use strict"; 21291/** 21292 * Copyright (c) 2013-present, Facebook, Inc. 21293 * 21294 * This source code is licensed under the MIT license found in the 21295 * LICENSE file in the root directory of this source tree. 21296 * 21297 */ 21298 21299 21300 21301var ExecutionEnvironment = __webpack_require__(18); 21302var DOMNamespaces = __webpack_require__(112); 21303 21304var WHITESPACE_TEST = /^[ \r\n\t\f]/; 21305var NONVISIBLE_TEST = /<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/; 21306 21307var createMicrosoftUnsafeLocalFunction = __webpack_require__(113); 21308 21309// SVG temp container for IE lacking innerHTML 21310var reusableSVGContainer; 21311 21312/** 21313 * Set the innerHTML property of a node, ensuring that whitespace is preserved 21314 * even in IE8. 21315 * 21316 * @param {DOMElement} node 21317 * @param {string} html 21318 * @internal 21319 */ 21320var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) { 21321 // IE does not have innerHTML for SVG nodes, so instead we inject the 21322 // new markup in a temp node and then move the child nodes across into 21323 // the target node 21324 if (node.namespaceURI === DOMNamespaces.svg && !('innerHTML' in node)) { 21325 reusableSVGContainer = reusableSVGContainer || document.createElement('div'); 21326 reusableSVGContainer.innerHTML = '<svg>' + html + '</svg>'; 21327 var svgNode = reusableSVGContainer.firstChild; 21328 while (svgNode.firstChild) { 21329 node.appendChild(svgNode.firstChild); 21330 } 21331 } else { 21332 node.innerHTML = html; 21333 } 21334}); 21335 21336if (ExecutionEnvironment.canUseDOM) { 21337 // IE8: When updating a just created node with innerHTML only leading 21338 // whitespace is removed. When updating an existing node with innerHTML 21339 // whitespace in root TextNodes is also collapsed. 21340 // @see quirksmode.org/bugreports/archives/2004/11/innerhtml_and_t.html 21341 21342 // Feature detection; only IE8 is known to behave improperly like this. 21343 var testElement = document.createElement('div'); 21344 testElement.innerHTML = ' '; 21345 if (testElement.innerHTML === '') { 21346 setInnerHTML = function (node, html) { 21347 // Magic theory: IE8 supposedly differentiates between added and updated 21348 // nodes when processing innerHTML, innerHTML on updated nodes suffers 21349 // from worse whitespace behavior. Re-adding a node like this triggers 21350 // the initial and more favorable whitespace behavior. 21351 // TODO: What to do on a detached node? 21352 if (node.parentNode) { 21353 node.parentNode.replaceChild(node, node); 21354 } 21355 21356 // We also implement a workaround for non-visible tags disappearing into 21357 // thin air on IE8, this only happens if there is no visible text 21358 // in-front of the non-visible tags. Piggyback on the whitespace fix 21359 // and simply check if any non-visible tags appear in the source. 21360 if (WHITESPACE_TEST.test(html) || html[0] === '<' && NONVISIBLE_TEST.test(html)) { 21361 // Recover leading whitespace by temporarily prepending any character. 21362 // \uFEFF has the potential advantage of being zero-width/invisible. 21363 // UglifyJS drops U+FEFF chars when parsing, so use String.fromCharCode 21364 // in hopes that this is preserved even if "\uFEFF" is transformed to 21365 // the actual Unicode character (by Babel, for example). 21366 // https://github.com/mishoo/UglifyJS2/blob/v2.4.20/lib/parse.js#L216 21367 node.innerHTML = String.fromCharCode(0xfeff) + html; 21368 21369 // deleteData leaves an empty `TextNode` which offsets the index of all 21370 // children. Definitely want to avoid this. 21371 var textNode = node.firstChild; 21372 if (textNode.data.length === 1) { 21373 node.removeChild(textNode); 21374 } else { 21375 textNode.deleteData(0, 1); 21376 } 21377 } else { 21378 node.innerHTML = html; 21379 } 21380 }; 21381 } 21382 testElement = null; 21383} 21384 21385module.exports = setInnerHTML; 21386 21387/***/ }), 21388/* 83 */ 21389/***/ (function(module, exports, __webpack_require__) { 21390 21391"use strict"; 21392/** 21393 * Copyright (c) 2016-present, Facebook, Inc. 21394 * 21395 * This source code is licensed under the MIT license found in the 21396 * LICENSE file in the root directory of this source tree. 21397 * 21398 * Based on the escape-html library, which is used under the MIT License below: 21399 * 21400 * Copyright (c) 2012-2013 TJ Holowaychuk 21401 * Copyright (c) 2015 Andreas Lubbe 21402 * Copyright (c) 2015 Tiancheng "Timothy" Gu 21403 * 21404 * Permission is hereby granted, free of charge, to any person obtaining 21405 * a copy of this software and associated documentation files (the 21406 * 'Software'), to deal in the Software without restriction, including 21407 * without limitation the rights to use, copy, modify, merge, publish, 21408 * distribute, sublicense, and/or sell copies of the Software, and to 21409 * permit persons to whom the Software is furnished to do so, subject to 21410 * the following conditions: 21411 * 21412 * The above copyright notice and this permission notice shall be 21413 * included in all copies or substantial portions of the Software. 21414 * 21415 * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 21416 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 21417 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 21418 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21419 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21420 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 21421 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21422 * 21423 */ 21424 21425 21426 21427// code copied and modified from escape-html 21428/** 21429 * Module variables. 21430 * @private 21431 */ 21432 21433var matchHtmlRegExp = /["'&<>]/; 21434 21435/** 21436 * Escape special characters in the given string of html. 21437 * 21438 * @param {string} string The string to escape for inserting into HTML 21439 * @return {string} 21440 * @public 21441 */ 21442 21443function escapeHtml(string) { 21444 var str = '' + string; 21445 var match = matchHtmlRegExp.exec(str); 21446 21447 if (!match) { 21448 return str; 21449 } 21450 21451 var escape; 21452 var html = ''; 21453 var index = 0; 21454 var lastIndex = 0; 21455 21456 for (index = match.index; index < str.length; index++) { 21457 switch (str.charCodeAt(index)) { 21458 case 34: 21459 // " 21460 escape = '"'; 21461 break; 21462 case 38: 21463 // & 21464 escape = '&'; 21465 break; 21466 case 39: 21467 // ' 21468 escape = '''; // modified from escape-html; used to be ''' 21469 break; 21470 case 60: 21471 // < 21472 escape = '<'; 21473 break; 21474 case 62: 21475 // > 21476 escape = '>'; 21477 break; 21478 default: 21479 continue; 21480 } 21481 21482 if (lastIndex !== index) { 21483 html += str.substring(lastIndex, index); 21484 } 21485 21486 lastIndex = index + 1; 21487 html += escape; 21488 } 21489 21490 return lastIndex !== index ? html + str.substring(lastIndex, index) : html; 21491} 21492// end code copied and modified from escape-html 21493 21494/** 21495 * Escapes text to prevent scripting attacks. 21496 * 21497 * @param {*} text Text value to escape. 21498 * @return {string} An escaped string. 21499 */ 21500function escapeTextContentForBrowser(text) { 21501 if (typeof text === 'boolean' || typeof text === 'number') {
21502 // this shortcircuit helps perf for types that we know will never have 21503 // special characters, especially given that this function is used often 21504 // for numeric dom ids. 21505 return '' + text; 21506 } 21507 return escapeHtml(text); 21508} 21509 21510module.exports = escapeTextContentForBrowser; 21511 21512/***/ }), 21513/* 84 */ 21514/***/ (function(module, exports, __webpack_require__) { 21515 21516"use strict"; 21517/** 21518 * Copyright (c) 2013-present, Facebook, Inc. 21519 * 21520 * This source code is licensed under the MIT license found in the 21521 * LICENSE file in the root directory of this source tree. 21522 * 21523 */ 21524 21525 21526 21527var _assign = __webpack_require__(14); 21528 21529var EventPluginRegistry = __webpack_require__(78); 21530var ReactEventEmitterMixin = __webpack_require__(456); 21531var ViewportMetrics = __webpack_require__(109); 21532 21533var getVendorPrefixedEventName = __webpack_require__(457); 21534var isEventSupported = __webpack_require__(108); 21535 21536/** 21537 * Summary of `ReactBrowserEventEmitter` event handling: 21538 * 21539 * - Top-level delegation is used to trap most native browser events. This 21540 * may only occur in the main thread and is the responsibility of 21541 * ReactEventListener, which is injected and can therefore support pluggable 21542 * event sources. This is the only work that occurs in the main thread. 21543 * 21544 * - We normalize and de-duplicate events to account for browser quirks. This 21545 * may be done in the worker thread. 21546 * 21547 * - Forward these native events (with the associated top-level type used to 21548 * trap it) to `EventPluginHub`, which in turn will ask plugins if they want 21549 * to extract any synthetic events. 21550 * 21551 * - The `EventPluginHub` will then process each event by annotating them with 21552 * "dispatches", a sequence of listeners and IDs that care about that event. 21553 * 21554 * - The `EventPluginHub` then dispatches the events. 21555 * 21556 * Overview of React and the event system: 21557 * 21558 * +------------+ . 21559 * | DOM | . 21560 * +------------+ . 21561 * | . 21562 * v . 21563 * +------------+ . 21564 * | ReactEvent | . 21565 * | Listener | . 21566 * +------------+ . +-----------+ 21567 * | . +--------+|SimpleEvent| 21568 * | . | |Plugin | 21569 * +-----|------+ . v +-----------+ 21570 * | | | . +--------------+ +------------+ 21571 * | +-----------.--->|EventPluginHub| | Event | 21572 * | | . | | +-----------+ | Propagators| 21573 * | ReactEvent | . | | |TapEvent | |------------| 21574 * | Emitter | . | |<---+|Plugin | |other plugin| 21575 * | | . | | +-----------+ | utilities | 21576 * | +-----------.--->| | +------------+ 21577 * | | | . +--------------+ 21578 * +-----|------+ . ^ +-----------+ 21579 * | . | |Enter/Leave| 21580 * + . +-------+|Plugin | 21581 * +-------------+ . +-----------+ 21582 * | application | . 21583 * |-------------| . 21584 * | | . 21585 * | | . 21586 * +-------------+ . 21587 * . 21588 * React Core . General Purpose Event Plugin System 21589 */ 21590 21591var hasEventPageXY; 21592var alreadyListeningTo = {}; 21593var isMonitoringScrollValue = false; 21594var reactTopListenersCounter = 0; 21595 21596// For events like 'submit' which don't consistently bubble (which we trap at a 21597// lower node than `document`), binding at `document` would cause duplicate 21598// events so we don't include them here 21599var topEventMapping = { 21600 topAbort: 'abort', 21601 topAnimationEnd: getVendorPrefixedEventName('animationend') || 'animationend', 21602 topAnimationIteration: getVendorPrefixedEventName('animationiteration') || 'animationiteration', 21603 topAnimationStart: getVendorPrefixedEventName('animationstart') || 'animationstart', 21604 topBlur: 'blur', 21605 topCanPlay: 'canplay', 21606 topCanPlayThrough: 'canplaythrough', 21607 topChange: 'change', 21608 topClick: 'click', 21609 topCompositionEnd: 'compositionend', 21610 topCompositionStart: 'compositionstart', 21611 topCompositionUpdate: 'compositionupdate', 21612 topContextMenu: 'contextmenu', 21613 topCopy: 'copy', 21614 topCut: 'cut', 21615 topDoubleClick: 'dblclick', 21616 topDrag: 'drag', 21617 topDragEnd: 'dragend', 21618 topDragEnter: 'dragenter', 21619 topDragExit: 'dragexit', 21620 topDragLeave: 'dragleave', 21621 topDragOver: 'dragover', 21622 topDragStart: 'dragstart', 21623 topDrop: 'drop', 21624 topDurationChange: 'durationchange', 21625 topEmptied: 'emptied', 21626 topEncrypted: 'encrypted', 21627 topEnded: 'ended', 21628 topError: 'error', 21629 topFocus: 'focus', 21630 topInput: 'input', 21631 topKeyDown: 'keydown', 21632 topKeyPress: 'keypress', 21633 topKeyUp: 'keyup', 21634 topLoadedData: 'loadeddata', 21635 topLoadedMetadata: 'loadedmetadata', 21636 topLoadStart: 'loadstart', 21637 topMouseDown: 'mousedown', 21638 topMouseMove: 'mousemove', 21639 topMouseOut: 'mouseout', 21640 topMouseOver: 'mouseover', 21641 topMouseUp: 'mouseup', 21642 topPaste: 'paste', 21643 topPause: 'pause', 21644 topPlay: 'play', 21645 topPlaying: 'playing', 21646 topProgress: 'progress', 21647 topRateChange: 'ratechange', 21648 topScroll: 'scroll', 21649 topSeeked: 'seeked', 21650 topSeeking: 'seeking', 21651 topSelectionChange: 'selectionchange', 21652 topStalled: 'stalled', 21653 topSuspend: 'suspend', 21654 topTextInput: 'textInput', 21655 topTimeUpdate: 'timeupdate', 21656 topTouchCancel: 'touchcancel', 21657 topTouchEnd: 'touchend', 21658 topTouchMove: 'touchmove', 21659 topTouchStart: 'touchstart', 21660 topTransitionEnd: getVendorPrefixedEventName('transitionend') || 'transitionend', 21661 topVolumeChange: 'volumechange', 21662 topWaiting: 'waiting', 21663 topWheel: 'wheel' 21664}; 21665 21666/** 21667 * To ensure no conflicts with other potential React instances on the page 21668 */ 21669var topListenersIDKey = '_reactListenersID' + String(Math.random()).slice(2); 21670 21671function getListeningForDocument(mountAt) { 21672 // In IE8, `mountAt` is a host object and doesn't have `hasOwnProperty` 21673 // directly. 21674 if (!Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey)) { 21675 mountAt[topListenersIDKey] = reactTopListenersCounter++; 21676 alreadyListeningTo[mountAt[topListenersIDKey]] = {}; 21677 } 21678 return alreadyListeningTo[mountAt[topListenersIDKey]]; 21679} 21680 21681/** 21682 * `ReactBrowserEventEmitter` is used to attach top-level event listeners. For 21683 * example: 21684 * 21685 * EventPluginHub.putListener('myID', 'onClick', myFunction); 21686 * 21687 * This would allocate a "registration" of `('onClick', myFunction)` on 'myID'. 21688 * 21689 * @internal 21690 */ 21691var ReactBrowserEventEmitter = _assign({}, ReactEventEmitterMixin, { 21692 /** 21693 * Injectable event backend 21694 */ 21695 ReactEventListener: null, 21696 21697 injection: { 21698 /** 21699 * @param {object} ReactEventListener 21700 */ 21701 injectReactEventListener: function (ReactEventListener) { 21702 ReactEventListener.setHandleTopLevel(ReactBrowserEventEmitter.handleTopLevel); 21703 ReactBrowserEventEmitter.ReactEventListener = ReactEventListener; 21704 } 21705 }, 21706 21707 /** 21708 * Sets whether or not any created callbacks should be enabled. 21709 * 21710 * @param {boolean} enabled True if callbacks should be enabled. 21711 */ 21712 setEnabled: function (enabled) { 21713 if (ReactBrowserEventEmitter.ReactEventListener) { 21714 ReactBrowserEventEmitter.ReactEventListener.setEnabled(enabled); 21715 } 21716 }, 21717 21718 /** 21719 * @return {boolean} True if callbacks are enabled. 21720 */ 21721 isEnabled: function () { 21722 return !!(ReactBrowserEventEmitter.ReactEventListener && ReactBrowserEventEmitter.ReactEventListener.isEnabled()); 21723 }, 21724 21725 /** 21726 * We listen for bubbled touch events on the document object. 21727 * 21728 * Firefox v8.01 (and possibly others) exhibited strange behavior when 21729 * mounting `onmousemove` events at some node that was not the document 21730 * element. The symptoms were that if your mouse is not moving over something 21731 * contained within that mount point (for example on the background) the 21732 * top-level listeners for `onmousemove` won't be called. However, if you 21733 * register the `mousemove` on the document object, then it will of course 21734 * catch all `mousemove`s. This along with iOS quirks, justifies restricting 21735 * top-level listeners to the document object only, at least for these 21736 * movement types of events and possibly all events. 21737 * 21738 * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html 21739 * 21740 * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but 21741 * they bubble to document. 21742 * 21743 * @param {string} registrationName Name of listener (e.g. `onClick`). 21744 * @param {object} contentDocumentHandle Document which owns the container 21745 */ 21746 listenTo: function (registrationName, contentDocumentHandle) { 21747 var mountAt = contentDocumentHandle; 21748 var isListening = getListeningForDocument(mountAt); 21749 var dependencies = EventPluginRegistry.registrationNameDependencies[registrationName]; 21750 21751 for (var i = 0; i < dependencies.length; i++) {
21752 var dependency = dependencies[i]; 21753 if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) { 21754 if (dependency === 'topWheel') { 21755 if (isEventSupported('wheel')) { 21756 ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topWheel', 'wheel', mountAt); 21757 } else if (isEventSupported('mousewheel')) { 21758 ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topWheel', 'mousewheel', mountAt); 21759 } else { 21760 // Firefox needs to capture a different mouse scroll event. 21761 // @see http://www.quirksmode.org/dom/events/tests/scroll.html 21762 ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topWheel', 'DOMMouseScroll', mountAt); 21763 } 21764 } else if (dependency === 'topScroll') { 21765 if (isEventSupported('scroll', true)) { 21766 ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent('topScroll', 'scroll', mountAt); 21767 } else { 21768 ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topScroll', 'scroll', ReactBrowserEventEmitter.ReactEventListener.WINDOW_HANDLE); 21769 } 21770 } else if (dependency === 'topFocus' || dependency === 'topBlur') { 21771 if (isEventSupported('focus', true)) { 21772 ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent('topFocus', 'focus', mountAt); 21773 ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent('topBlur', 'blur', mountAt); 21774 } else if (isEventSupported('focusin')) { 21775 // IE has `focusin` and `focusout` events which bubble. 21776 // @see http://www.quirksmode.org/blog/archives/2008/04/delegating_the.html 21777 ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topFocus', 'focusin', mountAt); 21778 ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topBlur', 'focusout', mountAt); 21779 } 21780 21781 // to make sure blur and focus event listeners are only attached once 21782 isListening.topBlur = true; 21783 isListening.topFocus = true; 21784 } else if (topEventMapping.hasOwnProperty(dependency)) { 21785 ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(dependency, topEventMapping[dependency], mountAt); 21786 } 21787 21788 isListening[dependency] = true; 21789 } 21790 } 21791 }, 21792 21793 trapBubbledEvent: function (topLevelType, handlerBaseName, handle) { 21794 return ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelType, handlerBaseName, handle); 21795 }, 21796 21797 trapCapturedEvent: function (topLevelType, handlerBaseName, handle) { 21798 return ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent(topLevelType, handlerBaseName, handle); 21799 }, 21800 21801 /** 21802 * Protect against document.createEvent() returning null 21803 * Some popup blocker extensions appear to do this: 21804 * https://github.com/facebook/react/issues/6887 21805 */ 21806 supportsEventPageXY: function () { 21807 if (!document.createEvent) { 21808 return false; 21809 } 21810 var ev = document.createEvent('MouseEvent'); 21811 return ev != null && 'pageX' in ev; 21812 }, 21813 21814 /** 21815 * Listens to window scroll and resize events. We cache scroll values so that 21816 * application code can access them without triggering reflows. 21817 * 21818 * ViewportMetrics is only used by SyntheticMouse/TouchEvent and only when 21819 * pageX/pageY isn't supported (legacy browsers). 21820 * 21821 * NOTE: Scroll events do not bubble. 21822 * 21823 * @see http://www.quirksmode.org/dom/events/scroll.html 21824 */ 21825 ensureScrollValueMonitoring: function () { 21826 if (hasEventPageXY === undefined) { 21827 hasEventPageXY = ReactBrowserEventEmitter.supportsEventPageXY(); 21828 } 21829 if (!hasEventPageXY && !isMonitoringScrollValue) { 21830 var refresh = ViewportMetrics.refreshScrollValues; 21831 ReactBrowserEventEmitter.ReactEventListener.monitorScrollValue(refresh); 21832 isMonitoringScrollValue = true; 21833 } 21834 } 21835}); 21836 21837module.exports = ReactBrowserEventEmitter; 21838 21839/***/ }), 21840/* 85 */ 21841/***/ (function(module, __webpack_exports__, __webpack_require__) { 21842 21843"use strict"; 21844/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createLocation; }); 21845/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return locationsAreEqual; }); 21846/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_resolve_pathname__ = __webpack_require__(522); 21847/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_value_equal__ = __webpack_require__(523); 21848/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__PathUtils__ = __webpack_require__(67); 21849var _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; }; 21850 21851 21852 21853 21854 21855var createLocation = function createLocation(path, state, key, currentLocation) { 21856 var location = void 0; 21857 if (typeof path === 'string') { 21858 // Two-arg form: push(path, state) 21859 location = Object(__WEBPACK_IMPORTED_MODULE_2__PathUtils__["d" /* parsePath */])(path); 21860 location.state = state; 21861 } else { 21862 // One-arg form: push(location) 21863 location = _extends({}, path); 21864 21865 if (location.pathname === undefined) location.pathname = ''; 21866 21867 if (location.search) { 21868 if (location.search.charAt(0) !== '?') location.search = '?' + location.search; 21869 } else { 21870 location.search = ''; 21871 } 21872 21873 if (location.hash) { 21874 if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash; 21875 } else { 21876 location.hash = ''; 21877 } 21878 21879 if (state !== undefined && location.state === undefined) location.state = state; 21880 } 21881 21882 try { 21883 location.pathname = decodeURI(location.pathname); 21884 } catch (e) { 21885 if (e instanceof URIError) { 21886 throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' + 'This is likely caused by an invali
21886d percent-encoding.'); 21887 } else { 21888 throw e; 21889 } 21890 } 21891 21892 if (key) location.key = key; 21893 21894 if (currentLocation) { 21895 // Resolve incomplete/relative pathname relative to current location. 21896 if (!location.pathname) { 21897 location.pathname = currentLocation.pathname; 21898 } else if (location.pathname.charAt(0) !== '/') { 21899 location.pathname = Object(__WEBPACK_IMPORTED_MODULE_0_resolve_pathname__["a" /* default */])(location.pathname, currentLocation.pathname); 21900 } 21901 } else { 21902 // When there is no prior location and pathname is empty, set it to / 21903 if (!location.pathname) { 21904 location.pathname = '/'; 21905 } 21906 } 21907 21908 return location; 21909}; 21910 21911var locationsAreEqual = function locationsAreEqual(a, b) { 21912 return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && a.key === b.key && Object(__WEBPACK_IMPORTED_MODULE_1_value_equal__["a" /* default */])(a.state, b.state); 21913}; 21914 21915/***/ }), 21916/* 86 */ 21917/***/ (function(module, __webpack_exports__, __webpack_require__) { 21918 21919"use strict"; 21920/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning__ = __webpack_require__(55); 21921/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_warning__); 21922/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant__ = __webpack_require__(21); 21923/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_invariant__); 21924/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0); 21925/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__); 21926/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2); 21927/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__); 21928var _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; }; 21929 21930function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 21931 21932function _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; } 21933 21934function _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; } 21935 21936 21937 21938 21939 21940 21941/** 21942 * The public API for putting history on context. 21943 */ 21944 21945var Router = function (_React$Component) { 21946 _inherits(Router, _React$Component); 21947 21948 function Router() { 21949 var _temp, _this, _ret; 21950 21951 _classCallCheck(this, Router); 21952 21953 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { 21954 args[_key] = arguments[_key]; 21955 } 21956 21957 return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = { 21958 match: _this.computeMatch(_this.props.history.location.pathname) 21959 }, _temp), _possibleConstructorReturn(_this, _ret); 21960 } 21961 21962 Router.prototype.getChildContext = function getChildContext() { 21963 return { 21964 router: _extends({}, this.context.router, { 21965 history: this.props.history, 21966 route: { 21967 location: this.props.history.location, 21968 match: this.state.match 21969 } 21970 }) 21971 }; 21972 }; 21973 21974 Router.prototype.computeMatch = function computeMatch(pathname) { 21975 return { 21976 path: "/", 21977 url: "/", 21978 params: {}, 21979 isExact: pathname === "/" 21980 }; 21981 }; 21982 21983 Router.prototype.componentWillMount = function componentWillMount() { 21984 var _this2 = this; 21985 21986 var _props = this.props, 21987 children = _props.children, 21988 history = _props.history; 21989 21990 21991 __WEBPACK_IMPORTED_MODULE_1_invariant___default()(children == null || __WEBPACK_IMPORTED_MODULE_2_react___default.a.Children.count(children) === 1, "A <Router> may have only one child element"); 21992 21993 // Do this here so we can setState when a <Redirect> changes the 21994 // location in componentWillMount. This happens e.g. when doing 21995 // server rendering using a <StaticRouter>. 21996 this.unlisten = history.listen(function () { 21997 _this2.setState({ 21998 match: _this2.computeMatch(history.location.pathname) 21999 }); 22000 }); 22001 }; 22002 22003 Router.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { 22004 __WEBPACK_IMPORTED_MODULE_0_warning___default()(this.props.history === nextProps.history, "You cannot change <Router history>"); 22005 }; 22006 22007 Router.prototype.componentWillUnmount = function componentWillUnmount() { 22008 this.unlisten(); 22009 }; 22010 22011 Router.prototype.render = function render() { 22012 var children = this.props.children; 22013 22014 return children ? __WEBPACK_IMPORTED_MODULE_2_react___default.a.Children.only(children) : null; 22015 }; 22016 22017 return Router; 22018}(__WEBPACK_IMPORTED_MODULE_2_react___default.a.Component); 22019 22020Router.propTypes = { 22021 history: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired, 22022 children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node 22023}; 22024Router.contextTypes = { 22025 router: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object 22026}; 22027Router.childContextTypes = { 22028 router: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired 22029}; 22030 22031 22032/* harmony default export */ __webpack_exports__["a"] = (Router); 22033 22034/***/ }), 22035/* 87 */ 22036/***/ (function(module, __webpack_exports__, __webpack_require__) { 22037 22038"use strict"; 22039/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_path_to_regexp__ = __webpack_require__(200); 22040/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_path_to_regexp___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_path_to_regexp__); 22041 22042 22043var patternCache = {}; 22044var cacheLimit = 10000; 22045var cacheCount = 0; 22046
22047var compilePath = function compilePath(pattern, options) { 22048 var cacheKey = "" + options.end + options.strict + options.sensitive; 22049 var cache = patternCache[cacheKey] || (patternCache[cacheKey] = {}); 22050 22051 if (cache[pattern]) return cache[pattern]; 22052 22053 var keys = []; 22054 var re = __WEBPACK_IMPORTED_MODULE_0_path_to_regexp___default()(pattern, keys, options); 22055 var compiledPattern = { re: re, keys: keys }; 22056 22057 if (cacheCount < cacheLimit) { 22058 cache[pattern] = compiledPattern; 22059 cacheCount++; 22060 } 22061 22062 return compiledPattern; 22063}; 22064 22065/** 22066 * Public API for matching a URL pathname to a path pattern. 22067 */ 22068var matchPath = function matchPath(pathname) { 22069 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; 22070 var parent = arguments[2]; 22071 22072 if (typeof options === "string") options = { path: options }; 22073 22074 var _options = options, 22075 path = _options.path, 22076 _options$exact = _options.exact, 22077 exact = _options$exact === undefined ? false : _options$exact, 22078 _options$strict = _options.strict, 22079 strict = _options$strict === undefined ? false : _options$strict, 22080 _options$sensitive = _options.sensitive, 22081 sensitive = _options$sensitive === undefined ? false : _options$sensitive; 22082 22083 22084 if (path == null) return parent; 22085 22086 var _compilePath = compilePath(path, { end: exact, strict: strict, sensitive: sensitive }), 22087 re = _compilePath.re, 22088 keys = _compilePath.keys; 22089 22090 var match = re.exec(pathname); 22091 22092 if (!match) return null; 22093 22094 var url = match[0], 22095 values = match.slice(1); 22096 22097 var isExact = pathname === url; 22098 22099 if (exact && !isExact) return null; 22100 22101 return { 22102 path: path, // the path pattern used to match 22103 url: path === "/" && url === "" ? "/" : url, // the matched portion of the URL 22104 isExact: isExact, // whether or not we matched exactly 22105 params: keys.reduce(function (memo, key, index) { 22106 memo[key.name] = values[index]; 22107 return memo; 22108 }, {}) 22109 }; 22110}; 22111 22112/* harmony default export */ __webpack_exports__["a"] = (matchPath); 22113 22114/***/ }), 22115/* 88 */, 22116/* 89 */ 22117/***/ (function(module, exports, __webpack_require__) { 22118 22119"use strict"; 22120 22121// turn {x: {val: 1, stiffness: 1, damping: 2}, y: 2} generated by 22122// `{x: spring(1, {stiffness: 1, damping: 2}), y: 2}` into {x: 1, y: 2} 22123 22124 22125 22126exports.__esModule = true; 22127exports['default'] = stripStyle; 22128 22129function stripStyle(style) { 22130 var ret = {}; 22131 for (var key in style) { 22132 if (!Object.prototype.hasOwnProperty.call(style, key)) { 22133 continue; 22134 } 22135 ret[key] = typeof style[key] === 'number' ? style[key] : style[key].val; 22136 } 22137 return ret; 22138} 22139 22140module.exports = exports['default']; 22141 22142/***/ }), 22143/* 90 */ 22144/***/ (function(module, __webpack_exports__, __webpack_require__) { 22145 22146"use strict"; 22147Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); 22148/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MemoryRouter__ = __webpack_require__(198); 22149/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MemoryRouter", function() { return __WEBPACK_IMPORTED_MODULE_0__MemoryRouter__["a"]; }); 22150/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Prompt__ = __webpack_require__(201); 22151/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Prompt", function() { return __WEBPACK_IMPORTED_MODULE_1__Prompt__["a"]; }); 22152/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Redirect__ = __webpack_require__(202); 22153/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Redirect", function() { return __WEBPACK_IMPORTED_MODULE_2__Redirect__["a"]; }); 22154/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Route__ = __webpack_require__(124); 22155/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Route", function() { return __WEBPACK_IMPORTED_MODULE_3__Route__["a"]; }); 22156/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Router__ = __webpack_require__(86); 22157/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Router", function() { return __WEBPACK_IMPORTED_MODULE_4__Router__["a"]; }); 22158/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__StaticRouter__ = __webpack_require__(203); 22159/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "StaticRouter", function() { return __WEBPACK_IMPORTED_MODULE_5__StaticRouter__["a"]; }); 22160/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Switch__ = __webpack_require__(204); 22161/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return __WEBPACK_IMPORTED_MODULE_6__Switch__["a"]; }); 22162/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__generatePath__ = __webpack_require__(125); 22163/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "generatePath", function() { return __WEBPACK_IMPORTED_MODULE_7__generatePath__["a"]; }); 22164/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__matchPath__ = __webpack_require__(87); 22165/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "matchPath", function() { return __WEBPACK_IMPORTED_MODULE_8__matchPath__["a"]; }); 22166/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__withRouter__ = __webpack_require__(205); 22167/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "withRouter", function() { return __WEBPACK_IMPORTED_MODULE_9__withRouter__["a"]; }); 22168 22169 22170 22171 22172 22173 22174 22175 22176 22177 22178 22179 22180 22181 22182 22183 22184 22185 22186 22187 22188 22189/***/ }), 22190/* 91 */
22191/***/ (function(module, exports) { 22192 22193module.exports = true; 22194 22195 22196/***/ }), 22197/* 92 */ 22198/***/ (function(module, exports) { 22199 22200var id = 0; 22201var px = Math.random(); 22202module.exports = function (key) { 22203 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 22204}; 22205 22206 22207/***/ }), 22208/* 93 */ 22209/***/ (function(module, exports, __webpack_require__) { 22210 22211"use strict"; 22212 22213 22214Object.defineProperty(exports, "__esModule", { 22215 value: true 22216}); 22217exports.default = createChainableTypeChecker; 22218/** 22219 * Copyright 2013-present, Facebook, Inc. 22220 * All rights reserved. 22221 * 22222 * This source code is licensed under the BSD-style license found in the 22223 * LICENSE file in the root directory of this source tree. An additional grant 22224 * of patent rights can be found in the PATENTS file in the same directory. 22225 */ 22226 22227// Mostly taken from ReactPropTypes. 22228 22229function createChainableTypeChecker(validate) { 22230 function checkType(isRequired, props, propName, componentName, location, propFullName) { 22231 var componentNameSafe = componentName || '<<anonymous>>'; 22232 var propFullNameSafe = propFullName || propName; 22233 22234 if (props[propName] == null) { 22235 if (isRequired) { 22236 return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); 22237 } 22238 22239 return null; 22240 } 22241 22242 for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { 22243 args[_key - 6] = arguments[_key]; 22244 } 22245 22246 return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); 22247 } 22248 22249 var chainedCheckType = checkType.bind(null, false); 22250 chainedCheckType.isRequired = checkType.bind(null, true); 22251 22252 return chainedCheckType; 22253} 22254module.exports = exports['default']; 22255 22256/***/ }), 22257/* 94 */ 22258/***/ (function(module, exports, __webpack_require__) { 22259 22260"use strict"; 22261 22262 22263Object.defineProperty(exports, "__esModule", { 22264 value: true 22265}); 22266exports.default = all; 22267 22268var _createChainableTypeChecker = __webpack_require__(93); 22269 22270var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); 22271 22272function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 22273 22274function all() { 22275 for (var _len = arguments.length, validators = Array(_len), _key = 0; _key < _len; _key++) { 22276 validators[_key] = arguments[_key]; 22277 } 22278 22279 function allPropTypes() { 22280 for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { 22281 args[_key2] = arguments[_key2]; 22282 } 22283 22284 var error = null; 22285 22286 validators.forEach(function (validator) { 22287 if (error != null) { 22288 return; 22289 } 22290 22291 var result = validator.apply(undefined, args); 22292 if (result != null) { 22293 error = result; 22294 } 22295 }); 22296 22297 return error; 22298 } 22299 22300 return (0, _createChainableTypeChecker2.default)(allPropTypes); 22301} 22302module.exports = exports['default']; 22303 22304/***/ }), 22305/* 95 */ 22306/***/ (function(module, exports, __webpack_require__) { 22307 22308"use strict"; 22309 22310 22311Object.defineProperty(exports, "__esModule", { 22312 value: true 22313}); 22314exports.default = style; 22315 22316var _camelizeStyle = __webpack_require__(377); 22317 22318var _camelizeStyle2 = _interopRequireDefault(_camelizeStyle); 22319 22320var _hyphenateStyle = __webpack_require__(688); 22321 22322var _hyphenateStyle2 = _interopRequireDefault(_hyphenateStyle); 22323 22324var _getComputedStyle2 = __webpack_require__(690); 22325 22326var _getComputedStyle3 = _interopRequireDefault(_getComputedStyle2); 22327 22328var _removeStyle = __webpack_require__(691); 22329 22330var _removeStyle2 = _interopRequireDefault(_removeStyle); 22331 22332var _properties = __webpack_require__(378); 22333 22334var _isTransform = __webpack_require__(692); 22335 22336var _isTransform2 = _interopRequireDefault(_isTransform); 22337 22338function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 22339 22340function style(node, property, value) { 22341 var css = ''; 22342 var transforms = ''; 22343 var props = property; 22344 22345 if (typeof property === 'string') { 22346 if (value === undefined) { 22347 return node.style[(0, _camelizeStyle2.default)(property)] || (0, _getComputedStyle3.default)(node).getPropertyValue((0, _hyphenateStyle2.default)(property)); 22348 } else { 22349 (props = {})[property] = value; 22350 } 22351 } 22352
22353 Object.keys(props).forEach(function (key) { 22354 var value = props[key]; 22355 if (!value && value !== 0) { 22356 (0, _removeStyle2.default)(node, (0, _hyphenateStyle2.default)(key)); 22357 } else if ((0, _isTransform2.default)(key)) { 22358 transforms += key + '(' + value + ') '; 22359 } else { 22360 css += (0, _hyphenateStyle2.default)(key) + ': ' + value + ';'; 22361 } 22362 }); 22363 22364 if (transforms) { 22365 css += _properties.transform + ': ' + transforms + ';'; 22366 } 22367 22368 node.style.cssText += ';' + css; 22369} 22370module.exports = exports['default']; 22371 22372/***/ }), 22373/* 96 */ 22374/***/ (function(module, exports, __webpack_require__) { 22375 22376"use strict"; 22377 22378 22379Object.defineProperty(exports, "__esModule", { 22380 value: true 22381}); 22382 22383var _inDOM = __webpack_require__(39); 22384 22385var _inDOM2 = _interopRequireDefault(_inDOM); 22386 22387function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 22388 22389var on = function on() {}; 22390if (_inDOM2.default) { 22391 on = function () { 22392 22393 if (document.addEventListener) return function (node, eventName, handler, capture) { 22394 return node.addEventListener(eventName, handler, capture || false); 22395 };else if (document.attachEvent) return function (node, eventName, handler) { 22396 return node.attachEvent('on' + eventName, function (e) { 22397 e = e || window.event; 22398 e.target = e.target || e.srcElement; 22399 e.currentTarget = node; 22400 handler.call(node, e); 22401 }); 22402 }; 22403 }(); 22404} 22405 22406exports.default = on; 22407module.exports = exports['default']; 22408 22409/***/ }), 22410/* 97 */ 22411/***/ (function(module, __webpack_exports__, __webpack_require__) { 22412 22413"use strict"; 22414/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 22415/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 22416/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 22417/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 22418/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 22419/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 22420/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 22421/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 22422/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 22423/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 22424/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 22425/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 22426/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_dom_helpers_activeElement__ = __webpack_require__(380); 22427/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_dom_helpers_activeElement___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_dom_helpers_activeElement__); 22428/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_dom_helpers_query_contains__ = __webpack_require__(64); 22429/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_dom_helpers_query_contains___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_dom_helpers_query_contains__); 22430/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_keycode__ = __webpack_require__(156); 22431/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_keycode___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_keycode__); 22432/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react__ = __webpack_require__(0); 22433/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_react__); 22434/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_prop_types__ = __webpack_require__(2); 22435/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_prop_types__); 22436/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_dom__ = __webpack_require__(17); 22437/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react_dom__); 22438/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_prop_types_extra_lib_all__ = __webpack_require__(94); 22439/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_prop_types_extra_lib_all___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_prop_types_extra_lib_all__); 22440/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_prop_types_extra_lib_elementType__ = __webpack_require__(13); 22441/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_prop_types_extra_lib_elementType__); 22442/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_prop_types_extra_lib_isRequiredForA11y__ = __webpack_require__(98); 22443/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_prop_types_extra_lib_isRequiredForA11y___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_prop_types_extra_lib_isRequiredForA11y__); 22444/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_uncontrollable__ = __webpack_require__(75); 22445/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_uncontrollable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_15_uncontrollable__); 22446/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16_warning__ = __webpack_require__(19); 22447/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_16_warning__); 22448/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__ButtonGroup__ = __webpack_require__(153); 22449/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__DropdownMenu__ = __webpack_require__(695); 22450/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__DropdownToggle__ = __webpack_require__(383); 22451/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__utils_bootstrapUtils__ = __webpack_require__(9); 22452/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__utils_createChainedFunction__ = __webpack_require__(16); 22453/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__utils_PropTypes__ = __webpack_require__(705); 22454/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__utils_ValidComponentChildren__ = __webpack_require__(22); 22455 22456 22457 22458 22459 22460 22461 22462 22463 22464 22465 22466 22467 22468 22469 22470 22471 22472 22473 22474 22475 22476 22477 22478 22479 22480 22481var TOGGLE_ROLE = __WEBPACK_IMPORTED_MODULE_19__DropdownToggle__["a" /* default */].defaultProps.bsRole; 22482var MENU_ROLE = __WEBPACK_IMPORTED_MODULE_18__DropdownMenu__["a" /* default */].defaultProps.bsRole; 22483 22484var propTypes = { 22485 /** 22486 * The menu will open above the dropdown button, instead of below it. 22487 */ 22488 dropup: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.bool, 22489 22490 /** 22491 * An html id attribute, necessary for assistive technologies, such as screen readers. 22492 * @type {string|number} 22493 * @required 22494 */ 22495 id: __WEBPACK_IMPORTED_MODULE_14_prop_types_extra_lib_isRequiredForA11y___default()(__WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.number])), 22496 22497 componentClass: __WEBPACK_IMPORTED_MODULE_13_prop_types_extra_lib_elementType___default.a, 22498 22499 /** 22500 * The children of a Dropdown may be a `<Dropdown.Toggle>` or a `<Dropdown.Menu>`. 22501 * @type {node} 22502 */ 22503 children: __WEBPACK_IMPORTED_MODULE_12_prop_types_extra_lib_all___default()(Object(__WEBPACK_IMPORTED_MODULE_22__utils_PropTypes__["b" /* requiredRoles */])(TOGGLE_ROLE, MENU_ROLE), Object(__WEBPACK_IMPORTED_MODULE_22__utils_PropTypes__["a" /* exclusiveRoles */])(MENU_ROLE)), 22504 22505 /** 22506 * Whether or not component is disabled. 22507 */ 22508 disabled: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.bool, 22509 22510 /** 22511 * Align the menu to the right side of the Dropdown toggle 22512 */ 22513 pullRight: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.bool, 22514 22515 /** 22516 * Whether or not the Dropdown is visible. 22517 * 22518 * @controllable onToggle 22519 */ 22520 open: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.bool, 22521 22522 defaultOpen: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.bool, 22523 22524 /**
22525 * A callback fired when the Dropdown wishes to change visibility. Called with the requested 22526 * `open` value, the DOM event, and the source that fired it: `'click'`,`'keydown'`,`'rootClose'`, or `'select'`. 22527 * 22528 * ```js 22529 * function(Boolean isOpen, Object event, { String source }) {} 22530 * ``` 22531 * @controllable open 22532 */ 22533 onToggle: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.func, 22534 22535 /** 22536 * A callback fired when a menu item is selected. 22537 * 22538 * ```js 22539 * (eventKey: any, event: Object) => any 22540 * ``` 22541 */ 22542 onSelect: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.func, 22543 22544 /** 22545 * If `'menuitem'`, causes the dropdown to behave like a menu item rather than 22546 * a menu button. 22547 */ 22548 role: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.string, 22549 22550 /** 22551 * Which event when fired outside the component will cause it to be closed 22552 */ 22553 rootCloseEvent: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.oneOf(['click', 'mousedown']), 22554 22555 /** 22556 * @private 22557 */ 22558 onMouseEnter: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.func, 22559 /** 22560 * @private 22561 */ 22562 onMouseLeave: __WEBPACK_IMPORTED_MODULE_10_prop_types___default.a.func 22563}; 22564 22565var defaultProps = { 22566 componentClass: __WEBPACK_IMPORTED_MODULE_17__ButtonGroup__["a" /* default */] 22567}; 22568 22569var Dropdown = function (_React$Component) { 22570 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Dropdown, _React$Component); 22571 22572 function Dropdown(props, context) { 22573 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Dropdown); 22574 22575 var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props, context)); 22576 22577 _this.handleClick = _this.handleClick.bind(_this); 22578 _this.handleKeyDown = _this.handleKeyDown.bind(_this); 22579 _this.handleClose = _this.handleClose.bind(_this); 22580 22581 _this._focusInDropdown = false; 22582 _this.lastOpenEventType = null; 22583 return _this; 22584 } 22585 22586 Dropdown.prototype.componentDidMount = function componentDidMount() { 22587 this.focusNextOnOpen(); 22588 }; 22589 22590 Dropdown.prototype.componentWillUpdate = function componentWillUpdate(nextProps) { 22591 if (!nextProps.open && this.props.open) { 22592 this._focusInDropdown = __WEBPACK_IMPORTED_MODULE_7_dom_helpers_query_contains___default()(__WEBPACK_IMPORTED_MODULE_11_react_dom___default.a.findDOMNode(this.menu), __WEBPACK_IMPORTED_MODULE_6_dom_helpers_activeElement___default()(document)); 22593 } 22594 }; 22595 22596 Dropdown.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { 22597 var open = this.props.open; 22598 22599 var prevOpen = prevProps.open; 22600 22601 if (open && !prevOpen) { 22602 this.focusNextOnOpen(); 22603 } 22604 22605 if (!open && prevOpen) { 22606 // if focus hasn't already moved from the menu let's return it 22607 // to the toggle 22608 if (this._focusInDropdown) { 22609 this._focusInDropdown = false; 22610 this.focus(); 22611 } 22612 } 22613 }; 22614 22615 Dropdown.prototype.focus = function focus() { 22616 var toggle = __WEBPACK_IMPORTED_MODULE_11_react_dom___default.a.findDOMNode(this.toggle); 22617 22618 if (toggle && toggle.focus) { 22619 toggle.focus(); 22620 } 22621 }; 22622 22623 Dropdown.prototype.focusNextOnOpen = function focusNextOnOpen() { 22624 var menu = this.menu; 22625 22626 if (!menu.focusNext) { 22627 return; 22628 } 22629 22630 if (this.lastOpenEventType === 'keydown' || this.props.role === 'menuitem') { 22631 menu.focusNext(); 22632 } 22633 }; 22634 22635 Dropdown.prototype.handleClick = function handleClick(event) { 22636 if (this.props.disabled) { 22637 return; 22638 } 22639 22640 this.toggleOpen(event, { source: 'click' }); 22641 }; 22642 22643 Dropdown.prototype.handleClose = function handleClose(event, eventDetails) { 22644 if (!this.props.open) { 22645 return; 22646 } 22647 22648 this.toggleOpen(event, eventDetails); 22649 }; 22650 22651 Dropdown.prototype.handleKeyDown = function handleKeyDown(event) { 22652 if (this.props.disabled) { 22653 return; 22654 } 22655 22656 switch (event.keyCode) { 22657 case __WEBPACK_IMPORTED_MODULE_8_keycode___default.a.codes.down: 22658 if (!this.props.open) { 22659 this.toggleOpen(event, { source: 'keydown' }); 22660 } else if (this.menu.focusNext) { 22661 this.menu.focusNext(); 22662 } 22663 event.preventDefault(); 22664 break; 22665 case __WEBPACK_IMPORTED_MODULE_8_keycode___default.a.codes.esc: 22666 case __WEBPACK_IMPORTED_MODULE_8_keycode___default.a.codes.tab: 22667 this.handleClose(event, { source: 'keydown' }); 22668 break; 22669 default: 22670 } 22671 }; 22672 22673 Dropdown.prototype.toggleOpen = function toggleOpen(event, eventDetails) { 22674 var open = !this.props.open; 22675 22676 if (open) { 22677 this.lastOpenEventType = eventDetails.source; 22678 } 22679 22680 if (this.props.onToggle) { 22681 this.props.onToggle(open, event, eventDetails); 22682 } 22683 }; 22684 22685 Dropdown.prototype.renderMenu = function renderMenu(child, _ref) { 22686 var _this2 = this; 22687 22688 var id = _ref.id, 22689 onSelect = _ref.onSelect, 22690 rootCloseEvent = _ref.rootCloseEvent, 22691 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_ref, ['id', 'onSelect', 'rootCloseEvent']); 22692 22693 var ref = function ref(c) { 22694 _this2.menu = c; 22695 }; 22696 22697 if (typeof child.ref === 'string') { 22698 true ? __WEBPACK_IMPORTED_MODULE_16_warning___default()(false, 'String refs are not supported on `<Dropdown.Menu>` components. ' + 'To apply a ref to the component use the callback signature:\n\n ' + 'https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute') : void 0; 22699 } else { 22700 ref = Object(__WEBPACK_IMPORTED_MODULE_21__utils_createChainedFunction__["a" /* default */])(child.ref, ref); 22701 } 22702 22703 return Object(__WEBPACK_IMPORTED_MODULE_9_react__["cloneElement"])(child, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, { 22704 ref: ref, 22705 labelledBy: id, 22706 bsClass: Object(__WEBPACK_IMPORTED_MODULE_20__utils_bootstrapUtils__["prefix"])(props, 'menu'), 22707 onClose: Object(__WEBPACK_IMPORTED_MODULE_21__utils_createChainedFunction__["a" /* default */])(child.props.onClose, this.handleClose), 22708 onSelect: Object(__WEBPACK_IMPORTED_MODULE_21__utils_createChainedFunction__["a" /* default */])(child.props.onSelect, onSelect, function (key, event) { 22709 return _this2.handleClose(event, { source: 'select' }); 22710 }), 22711 rootCloseEvent: rootCloseEvent 22712 })); 22713 }; 22714 22715 Dropdown.prototype.renderToggle = function renderToggle(child, props) { 22716 var _this3 = this; 22717 22718 var ref = function ref(c) { 22719 _this3.toggle = c; 22720 }; 22721 22722 if (typeof child.ref === 'string') { 22723 true ? __WEBPACK_IMPORTED_MODULE_16_warning___default()(false, 'String refs are not supported on `<Dropdown.Toggle>` components. ' + 'To apply a ref to the component use the callback signature:\n\n ' + 'https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute') : void 0; 22724 } else { 22725 ref = Object(__WEBPACK_IMPORTED_MODULE_21__utils_createChainedFunction__["a" /* default */])(child.ref, ref); 22726 } 22727 22728 return Object(__WEBPACK_IMPORTED_MODULE_9_react__["cloneElement"])(child, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, { 22729 ref: ref, 22730 bsClass: Object(__WEBPACK_IMPORTED_MODULE_20__utils_bootstrapUtils__["prefix"])(props, 'toggle'), 22731 onClick: Object(__WEBPACK_IMPORTED_MODULE_21__utils_createChainedFunction__["a" /* default */])(child.props.onClick, this.handleClick), 22732 onKeyDown: Object(__WEBPACK_IMPORTED_MODULE_21__utils_createChainedFunction__["a" /* default */])(child.props.onKeyDown, this.handleKeyDown) 22733 })); 22734 }; 22735 22736 Dropdown.prototype.render = function render() { 22737 var _classes, 22738 _this4 = this; 22739 22740 var _props = this.props, 22741 Component = _props.componentClass, 22742 id = _props.id, 22743 dropup = _props.dropup, 22744 disabled = _props.disabled, 22745 pullRight = _props.pullRight, 22746 open = _props.open, 22747 onSelect = _props.onSelect, 22748 role = _props.role, 22749 bsClass = _props.bsClass, 22750 className = _props.className, 22751 rootCloseEvent = _props.rootCloseEvent, 22752 children = _props.children, 22753 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['componentClass', 'id', 'dropup', 'disabled', 'pullRight', 'open', 'onSelect', 'role', 'bsClass', 'className', 'rootCloseEvent', 'children']); 22754 22755 delete props.onToggle; 22756 22757 var classes = (_classes = {}, _classes[bsClass] = true, _classes.open = open, _classes.disabled = disabled, _classes); 22758 22759 if (dropup) { 22760 classes[bsClass] = false;
22761 classes.dropup = true; 22762 } 22763 22764 // This intentionally forwards bsSize and bsStyle (if set) to the 22765 // underlying component, to allow it to render size and style variants. 22766 22767 return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement( 22768 Component, 22769 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, { 22770 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 22771 }), 22772 __WEBPACK_IMPORTED_MODULE_23__utils_ValidComponentChildren__["a" /* default */].map(children, function (child) { 22773 switch (child.props.bsRole) { 22774 case TOGGLE_ROLE: 22775 return _this4.renderToggle(child, { 22776 id: id, disabled: disabled, open: open, role: role, bsClass: bsClass 22777 }); 22778 case MENU_ROLE: 22779 return _this4.renderMenu(child, { 22780 id: id, open: open, pullRight: pullRight, bsClass: bsClass, onSelect: onSelect, rootCloseEvent: rootCloseEvent 22781 }); 22782 default: 22783 return child; 22784 } 22785 }) 22786 ); 22787 }; 22788 22789 return Dropdown; 22790}(__WEBPACK_IMPORTED_MODULE_9_react___default.a.Component); 22791 22792Dropdown.propTypes = propTypes; 22793Dropdown.defaultProps = defaultProps; 22794 22795Object(__WEBPACK_IMPORTED_MODULE_20__utils_bootstrapUtils__["bsClass"])('dropdown', Dropdown); 22796 22797var UncontrolledDropdown = __WEBPACK_IMPORTED_MODULE_15_uncontrollable___default()(Dropdown, { open: 'onToggle' }); 22798 22799UncontrolledDropdown.Toggle = __WEBPACK_IMPORTED_MODULE_19__DropdownToggle__["a" /* default */]; 22800UncontrolledDropdown.Menu = __WEBPACK_IMPORTED_MODULE_18__DropdownMenu__["a" /* default */]; 22801 22802/* harmony default export */ __webpack_exports__["a"] = (UncontrolledDropdown); 22803 22804/***/ }), 22805/* 98 */ 22806/***/ (function(module, exports, __webpack_require__) { 22807 22808"use strict"; 22809 22810 22811Object.defineProperty(exports, "__esModule", { 22812 value: true 22813}); 22814exports.default = isRequiredForA11y; 22815function isRequiredForA11y(validator) { 22816 return function validate(props, propName, componentName, location, propFullName) { 22817 var componentNameSafe = componentName || '<<anonymous>>'; 22818 var propFullNameSafe = propFullName || propName; 22819 22820 if (props[propName] == null) { 22821 return new Error('The ' + location + ' `' + propFullNameSafe + '` is required to make ' + ('`' + componentNameSafe + '` accessible for users of assistive ') + 'technologies such as screen readers.'); 22822 } 22823 22824 for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { 22825 args[_key - 5] = arguments[_key]; 22826 } 22827 22828 return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args)); 22829 }; 22830} 22831module.exports = exports['default']; 22832 22833/***/ }), 22834/* 99 */ 22835/***/ (function(module, __webpack_exports__, __webpack_require__) { 22836 22837"use strict"; 22838/* harmony export (immutable) */ __webpack_exports__["a"] = splitComponentProps; 22839/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_entries__ = __webpack_require__(372); 22840/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_entries___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_entries__); 22841 22842function splitComponentProps(props, Component) { 22843 var componentPropTypes = Component.propTypes; 22844 22845 var parentProps = {}; 22846 var childProps = {}; 22847 22848 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_entries___default()(props).forEach(function (_ref) { 22849 var propName = _ref[0], 22850 propValue = _ref[1]; 22851 22852 if (componentPropTypes[propName]) { 22853 parentProps[propName] = propValue; 22854 } else { 22855 childProps[propName] = propValue; 22856 } 22857 }); 22858 22859 return [parentProps, childProps]; 22860} 22861 22862/***/ }), 22863/* 100 */ 22864/***/ (function(module, __webpack_exports__, __webpack_require__) { 22865 22866"use strict"; 22867/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 22868/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 22869/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 22870/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); 22871/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 22872/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); 22873/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(5); 22874/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); 22875/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_classnames__ = __webpack_require__(8); 22876/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_classnames__); 22877/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0); 22878/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__); 22879/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(2); 22880/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__); 22881/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_overlays_lib_Transition__ = __webpack_require__(379); 22882/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_overlays_lib_Transition___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react_overlays_lib_Transition__); 22883 22884 22885 22886 22887 22888 22889 22890 22891 22892var propTypes = { 22893 /** 22894 * Show the component; triggers the fade in or fade out animation 22895 */ 22896 in: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 22897 22898 /** 22899 * Wait until the first "enter" transition to mount the component (add it to the DOM) 22900 */ 22901 mountOnEnter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 22902 22903 /** 22904 * Unmount the component (remove it from the DOM) when it is faded out 22905 */ 22906 unmountOnExit: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 22907 22908 /** 22909 * Run the fade in animation when the component mounts, if it is initially 22910 * shown 22911 */ 22912 transitionAppear: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 22913 22914 /** 22915 * Duration of the fade animation in milliseconds, to ensure that finishing 22916 * callbacks are fired even if the original browser transition end events are 22917 * canceled 22918 */ 22919 timeout: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 22920 22921 /** 22922 * Callback fired before the component fades in 22923 */ 22924 onEnter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 22925 /** 22926 * Callback fired after the component starts to fade in 22927 */ 22928 onEntering: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 22929 /** 22930 * Callback fired after the has component faded in 22931 */ 22932 onEntered: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 22933 /** 22934 * Callback fired before the component fades out 22935 */ 22936 onExit: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 22937 /** 22938 * Callback fired after the component starts to fade out 22939 */ 22940 onExiting: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 22941 /** 22942 * Callback fired after the component has faded out 22943 */ 22944 onExited: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func 22945}; 22946 22947var defaultProps = { 22948 in: false, 22949 timeout: 300, 22950 mountOnEnter: false, 22951 unmountOnExit: false, 22952 transitionAppear: false 22953}; 22954 22955var Fade = function (_React$Component) { 22956 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(Fade, _React$Component); 22957 22958 function Fade() { 22959 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Fade); 22960 22961 return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 22962 } 22963 22964 Fade.prototype.render = function render() { 22965 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_react_overlays_lib_Transition___default.a, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, this.props, { 22966 className: __WEBPACK_IMPORTED_MODULE_4_classnames___default()(this.props.className, 'fade'), 22967 enteredClassName: 'in', 22968 enteringClassName: 'in' 22969 })); 22970 }; 22971 22972 return Fade; 22973}(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component); 22974
22975Fade.propTypes = propTypes; 22976Fade.defaultProps = defaultProps; 22977 22978/* harmony default export */ __webpack_exports__["a"] = (Fade); 22979 22980/***/ }), 22981/* 101 */ 22982/***/ (function(module, __webpack_exports__, __webpack_require__) { 22983 22984"use strict"; 22985/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 22986/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 22987/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 22988/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 22989/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 22990/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 22991/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 22992/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 22993/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 22994/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 22995/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 22996/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 22997/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 22998/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 22999/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__ = __webpack_require__(13); 23000/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__); 23001/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__MediaBody__ = __webpack_require__(720); 23002/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__MediaHeading__ = __webpack_require__(721); 23003/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__MediaLeft__ = __webpack_require__(722); 23004/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__MediaList__ = __webpack_require__(723); 23005/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__MediaListItem__ = __webpack_require__(724); 23006/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__MediaRight__ = __webpack_require__(725); 23007/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__utils_bootstrapUtils__ = __webpack_require__(9); 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020 23021 23022 23023 23024 23025var propTypes = { 23026 componentClass: __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default.a 23027}; 23028 23029var defaultProps = { 23030 componentClass: 'div' 23031}; 23032 23033var Media = function (_React$Component) { 23034 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Media, _React$Component); 23035 23036 function Media() { 23037 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Media); 23038 23039 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 23040 } 23041 23042 Media.prototype.render = function render() { 23043 var _props = this.props, 23044 Component = _props.componentClass, 23045 className = _props.className, 23046 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['componentClass', 'className']); 23047 23048 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_14__utils_bootstrapUtils__["splitBsProps"])(props), 23049 bsProps = _splitBsProps[0], 23050 elementProps = _splitBsProps[1]; 23051 23052 var classes = Object(__WEBPACK_IMPORTED_MODULE_14__utils_bootstrapUtils__["getClassSet"])(bsProps); 23053 23054 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 23055 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 23056 })); 23057 }; 23058 23059 return Media; 23060}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 23061
23062Media.propTypes = propTypes; 23063Media.defaultProps = defaultProps; 23064 23065Media.Heading = __WEBPACK_IMPORTED_MODULE_9__MediaHeading__["a" /* default */]; 23066Media.Body = __WEBPACK_IMPORTED_MODULE_8__MediaBody__["a" /* default */]; 23067Media.Left = __WEBPACK_IMPORTED_MODULE_10__MediaLeft__["a" /* default */]; 23068Media.Right = __WEBPACK_IMPORTED_MODULE_13__MediaRight__["a" /* default */]; 23069Media.List = __WEBPACK_IMPORTED_MODULE_11__MediaList__["a" /* default */]; 23070Media.ListItem = __WEBPACK_IMPORTED_MODULE_12__MediaListItem__["a" /* default */]; 23071 23072/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_14__utils_bootstrapUtils__["bsClass"])('media', Media)); 23073 23074/***/ }), 23075/* 102 */ 23076/***/ (function(module, exports, __webpack_require__) { 23077 23078"use strict"; 23079 23080 23081Object.defineProperty(exports, "__esModule", { 23082 value: true 23083}); 23084 23085var _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; }; 23086 23087var _react = __webpack_require__(0); 23088 23089var _react2 = _interopRequireDefault(_react); 23090 23091var _createChainableTypeChecker = __webpack_require__(93); 23092 23093var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker); 23094 23095function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 23096 23097function validate(props, propName, componentName, location, propFullName) { 23098 var propValue = props[propName]; 23099 var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue); 23100 23101 if (_react2.default.isValidElement(propValue)) { 23102 return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement. You can usually obtain a ReactComponent or DOMElement ' + 'from a ReactElement by attaching a ref to it.'); 23103 } 23104 23105 if ((propType !== 'object' || typeof propValue.render !== 'function') && propValue.nodeType !== 1) { 23106 return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement.'); 23107 } 23108 23109 return null; 23110} 23111 23112exports.default = (0, _createChainableTypeChecker2.default)(validate); 23113module.exports = exports['default']; 23114 23115/***/ }), 23116/* 103 */ 23117/***/ (function(module, exports, __webpack_require__) { 23118 23119"use strict"; 23120 23121 23122Object.defineProperty(exports, "__esModule", { 23123 value: true 23124}); 23125exports.default = getWindow; 23126function getWindow(node) { 23127 return node === node.window ? node : node.nodeType === 9 ? node.defaultView || node.parentWindow : false; 23128} 23129module.exports = exports["default"]; 23130 23131/***/ }), 23132/* 104 */ 23133/***/ (function(module, exports, __webpack_require__) { 23134 23135"use strict"; 23136 23137 23138exports.__esModule = true; 23139exports.default = getContainer; 23140 23141var _reactDom = __webpack_require__(17); 23142 23143var _reactDom2 = _interopRequireDefault(_reactDom); 23144 23145function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 23146 23147function getContainer(container, defaultContainer) { 23148 container = typeof container === 'function' ? container() : container; 23149 return _reactDom2.default.findDOMNode(container) || defaultContainer; 23150} 23151module.exports = exports['default']; 23152 23153/***/ }), 23154/* 105 */ 23155/***/ (function(module, exports, __webpack_require__) { 23156 23157"use strict"; 23158/** 23159 * Copyright (c) 2014-present, Facebook, Inc. 23160 * 23161 * This source code is licensed under the MIT license found in the 23162 * LICENSE file in the root directory of this source tree. 23163 * 23164 */ 23165 23166 23167 23168/** 23169 * Forked from fbjs/warning: 23170 * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js 23171 * 23172 * Only change is we use console.warn instead of console.error, 23173 * and do nothing when 'console' is not supported. 23174 * This really simplifies the code. 23175 * --- 23176 * Similar to invariant but only logs a warning if the condition is not met. 23177 * This can be used to log issues in development environments in critical 23178 * paths. Removing the logging code for production environments will keep the 23179 * same logic and follow the same code paths. 23180 */ 23181 23182var lowPriorityWarning = function () {}; 23183 23184if (true) { 23185 var printWarning = function (format) { 23186 for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { 23187 args[_key - 1] = arguments[_key]; 23188 } 23189 23190 var argIndex = 0; 23191 var message = 'Warning: ' + format.replace(/%s/g, function () { 23192 return args[argIndex++]; 23193 }); 23194 if (typeof console !== 'undefined') { 23195 console.warn(message); 23196 } 23197 try { 23198 // --- Welcome to debugging React --- 23199 // This error was thrown as a convenience so that you can use this stack 23200 // to find the callsite that caused this warning to fire. 23201 throw new Error(message); 23202 } catch (x) {} 23203 }; 23204 23205 lowPriorityWarning = function (condition, format) { 23206 if (format === undefined) { 23207 throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); 23208 } 23209 if (!condition) { 23210 for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { 23211 args[_key2 - 2] = arguments[_key2]; 23212 } 23213 23214 printWarning.apply(undefined, [format].concat(args)); 23215 } 23216 }; 23217} 23218 23219module.exports = lowPriorityWarning; 23220 23221/***/ }), 23222/* 106 */ 23223/***/ (function(module, exports, __webpack_require__) { 23224 23225"use strict"; 23226/** 23227 * Copyright (c) 2013-present, Facebook, Inc. 23228 * 23229 * This source code is licensed under the MIT license found in the 23230 * LICENSE file in the root directory of this source tree. 23231 * 23232 * 23233 */ 23234 23235 23236 23237var caughtError = null; 23238 23239/** 23240 * Call a function while guarding against errors that happens within it. 23241 * 23242 * @param {String} name of the guard to use for logging or debugging 23243 * @param {Function} func The function to invoke 23244 * @param {*} a First argument 23245 * @param {*} b Second argument 23246 */ 23247function invokeGuardedCallback(name, func, a) { 23248 try { 23249 func(a); 23250 } catch (x) { 23251 if (caughtError === null) { 23252 caughtError = x; 23253 } 23254 } 23255} 23256 23257var ReactErrorUtils = { 23258 invokeGuardedCallback: invokeGuardedCallback, 23259 23260 /** 23261 * Invoked by ReactTestUtils.Simulate so that any errors thrown by the event 23262 * handler are sure to be rethrown by rethrowCaughtError. 23263 */ 23264 invokeGuardedCallbackWithCatch: invokeGuardedCallback, 23265 23266 /** 23267 * During execution of guarded functions we will capture the first error which 23268 * we will rethrow to be handled by the top level error handler. 23269 */ 23270 rethrowCaughtError: function () { 23271 if (caughtError) { 23272 var error = caughtError; 23273 caughtError = null; 23274 throw error; 23275 } 23276 } 23277}; 23278 23279if (true) { 23280 /** 23281 * To help development we can get better devtools integration by simulating a 23282 * real browser event. 23283 */ 23284 if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') { 23285 var fakeNode = document.createElement('react'); 23286 ReactErrorUtils.invokeGuardedCallback = function (name, func, a) { 23287 var boundFunc = function () { 23288 func(a); 23289 }; 23290 var evtType = 'react-' + name; 23291 fakeNode.addEventListener(evtType, boundFunc, false); 23292 var evt = document.createEvent('Event'); 23293 evt.initEvent(evtType, false, false); 23294 fakeNode.dispatchEvent(evt); 23295 fakeNode.removeEventListener(evtType, boundFunc, false); 23296 }; 23297 } 23298} 23299 23300module.exports = ReactErrorUtils; 23301 23302/***/ }), 23303/* 107 */ 23304/***/ (function(module, exports, __webpack_require__) { 23305 23306"use strict"; 23307/** 23308 * Copyright (c) 2013-present, Facebook, Inc. 23309 * 23310 * This source code is licensed under the MIT license found in the 23311 * LICENSE file in the root directory of this source tree. 23312 * 23313 */ 23314 23315 23316 23317/** 23318 * Gets the target node from a native browser event by accounting for 23319 * inconsistencies in browser DOM APIs. 23320 * 23321 * @param {object} nativeEvent Native browser event. 23322 * @return {DOMEventTarget} Target node. 23323 */ 23324 23325function getEventTarget(nativeEvent) { 23326 var target = nativeEvent.target || nativeEvent.srcElement || window; 23327 23328 // Normalize SVG <use> element events #4963 23329 if (target.correspondingUseElement) { 23330 target = target.correspondingUseElement; 23331 } 23332 23333 // Safari may fire events on text nodes (Node.TEXT_NODE is 3). 23334 // @see http://www.quirksmode.org/js/events_properties.html 23335 return target.nodeType === 3 ? target.parentNode : target; 23336} 23337 23338module.exports = getEventTarget; 23339 23340/***/ }), 23341/* 108 */ 23342/***/ (function(module, exports, __webpack_require__) { 23343 23344"use strict"; 23345/** 23346 * Copyright (c) 2013-present, Facebook, Inc. 23347 * 23348 * This source code is licensed under the MIT license found in the 23349 * LICENSE file in the root directory of this source tree. 23350 * 23351 */ 23352 23353 23354 23355var ExecutionEnvironment = __webpack_require__(18); 23356 23357var useHasFeature; 23358if (ExecutionEnvironment.canUseDOM) { 23359 useHasFeature = document.implementation && document.implementation.hasFeature && 23360 // always returns true in newer browsers as per the standard. 23361 // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature 23362 document.implementation.hasFeature('', '') !== true; 23363} 23364 23365/** 23366 * Checks if an event is supported in the current execution environment. 23367 * 23368 * NOTE: This will not work correctly for non-generic events such as `change`, 23369 * `reset`, `load`, `error`, and `select`. 23370 * 23371 * Borrows from Modernizr. 23372 * 23373 * @param {string} eventNameSuffix Event name, e.g. "click". 23374 * @param {?boolean} capture Check if the capture phase is supported. 23375 * @return {boolean} True if the event is supported. 23376 * @internal 23377 * @license Modernizr 3.0.0pre (Custom Build) | MIT 23378 */ 23379function isEventSupported(eventNameSuffix, capture) { 23380 if (!ExecutionEnvironment.canUseDOM || capture && !('addEventListener' in document)) { 23381 return false;
23382 } 23383 23384 var eventName = 'on' + eventNameSuffix; 23385 var isSupported = eventName in document; 23386 23387 if (!isSupported) { 23388 var element = document.createElement('div'); 23389 element.setAttribute(eventName, 'return;'); 23390 isSupported = typeof element[eventName] === 'function'; 23391 } 23392 23393 if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') { 23394 // This is the only way to test support for the `wheel` event in IE9+. 23395 isSupported = document.implementation.hasFeature('Events.wheel', '3.0'); 23396 } 23397 23398 return isSupported; 23399} 23400 23401module.exports = isEventSupported; 23402 23403/***/ }), 23404/* 109 */ 23405/***/ (function(module, exports, __webpack_require__) { 23406 23407"use strict"; 23408/** 23409 * Copyright (c) 2013-present, Facebook, Inc. 23410 * 23411 * This source code is licensed under the MIT license found in the 23412 * LICENSE file in the root directory of this source tree. 23413 * 23414 */ 23415 23416 23417 23418var ViewportMetrics = { 23419 currentScrollLeft: 0, 23420 23421 currentScrollTop: 0, 23422 23423 refreshScrollValues: function (scrollPosition) { 23424 ViewportMetrics.currentScrollLeft = scrollPosition.x; 23425 ViewportMetrics.currentScrollTop = scrollPosition.y; 23426 } 23427}; 23428 23429module.exports = ViewportMetrics; 23430 23431/***/ }), 23432/* 110 */ 23433/***/ (function(module, exports, __webpack_require__) { 23434 23435"use strict"; 23436/** 23437 * Copyright (c) 2013-present, Facebook, Inc. 23438 * 23439 * This source code is licensed under the MIT license found in the 23440 * LICENSE file in the root directory of this source tree. 23441 * 23442 */ 23443 23444 23445 23446/** 23447 * Translation from modifier key to the associated property in the event. 23448 * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers 23449 */ 23450 23451var modifierKeyToProp = { 23452 Alt: 'altKey', 23453 Control: 'ctrlKey', 23454 Meta: 'metaKey', 23455 Shift: 'shiftKey' 23456}; 23457 23458// IE8 does not implement getModifierState so we simply map it to the only 23459// modifier keys exposed by the event itself, does not support Lock-keys. 23460// Currently, all major browsers except Chrome seems to support Lock-keys. 23461function modifierStateGetter(keyArg) { 23462 var syntheticEvent = this; 23463 var nativeEvent = syntheticEvent.nativeEvent; 23464 if (nativeEvent.getModifierState) { 23465 return nativeEvent.getModifierState(keyArg); 23466 } 23467 var keyProp = modifierKeyToProp[keyArg]; 23468 return keyProp ? !!nativeEvent[keyProp] : false; 23469} 23470 23471function getEventModifierState(nativeEvent) { 23472 return modifierStateGetter; 23473} 23474 23475module.exports = getEventModifierState; 23476 23477/***/ }), 23478/* 111 */ 23479/***/ (function(module, exports, __webpack_require__) { 23480 23481"use strict"; 23482/** 23483 * Copyright (c) 2013-present, Facebook, Inc. 23484 * 23485 * This source code is licensed under the MIT license found in the 23486 * LICENSE file in the root directory of this source tree. 23487 * 23488 */ 23489 23490 23491 23492var DOMLazyTree = __webpack_require__(54); 23493var Danger = __webpack_require__(441); 23494var ReactDOMComponentTree = __webpack_require__(15); 23495var ReactInstrumentation = __webpack_require__(24); 23496 23497var createMicrosoftUnsafeLocalFunction = __webpack_require__(113); 23498var setInnerHTML = __webpack_require__(82); 23499var setTextContent = __webpack_require__(176); 23500 23501function getNodeAfter(parentNode, node) { 23502 // Special case for text components, which return [open, close] comments 23503 // from getHostNode. 23504 if (Array.isArray(node)) { 23505 node = node[1]; 23506 } 23507 return node ? node.nextSibling : parentNode.firstChild; 23508} 23509 23510/** 23511 * Inserts `childNode` as a child of `parentNode` at the `index`. 23512 * 23513 * @param {DOMElement} parentNode Parent node in which to insert. 23514 * @param {DOMElement} childNode Child node to insert. 23515 * @param {number} index Index at which to insert the child. 23516 * @internal 23517 */ 23518var insertChildAt = createMicrosoftUnsafeLocalFunction(function (parentNode, childNode, referenceNode) { 23519 // We rely exclusively on `insertBefore(node, null)` instead of also using 23520 // `appendChild(node)`. (Using `undefined` is not allowed by all browsers so 23521 // we are careful to use `null`.) 23522 parentNode.insertBefore(childNode, referenceNode); 23523}); 23524 23525function insertLazyTreeChildAt(parentNode, childTree, referenceNode) { 23526 DOMLazyTree.insertTreeBefore(parentNode, childTree, referenceNode); 23527} 23528 23529function moveChild(parentNode, childNode, referenceNode) { 23530 if (Array.isArray(childNode)) { 23531 moveDelimitedText(parentNode, childNode[0], childNode[1], referenceNode); 23532 } else { 23533 insertChildAt(parentNode, childNode, referenceNode); 23534 } 23535} 23536 23537function removeChild(parentNode, childNode) { 23538 if (Array.isArray(childNode)) { 23539 var closingComment = childNode[1]; 23540 childNode = childNode[0]; 23541 removeDelimitedText(parentNode, childNode, closingComment); 23542 parentNode.removeChild(closingComment); 23543 } 23544 parentNode.removeChild(childNode); 23545} 23546 23547function moveDelimitedText(parentNode, openingComment, closingComment, referenceNode) { 23548 var node = openingComment; 23549 while (true) { 23550 var nextNode = node.nextSibling; 23551 insertChildAt(parentNode, node, referenceNode); 23552 if (node === closingComment) { 23553 break; 23554 } 23555 node = nextNode; 23556 } 23557} 23558 23559function removeDelimitedText(parentNode, startNode, closingComment) { 23560 while (true) { 23561 var node = startNode.nextSibling; 23562 if (node === closingComment) { 23563 // The closing comment is removed by ReactMultiChild. 23564 break; 23565 } else { 23566 parentNode.removeChild(node); 23567 } 23568 } 23569} 23570 23571function replaceDelimitedText(openingComment, closingComment, stringText) { 23572 var parentNode = openingComment.parentNode;
23573 var nodeAfterComment = openingComment.nextSibling; 23574 if (nodeAfterComment === closingComment) { 23575 // There are no text nodes between the opening and closing comments; insert 23576 // a new one if stringText isn't empty. 23577 if (stringText) { 23578 insertChildAt(parentNode, document.createTextNode(stringText), nodeAfterComment); 23579 } 23580 } else { 23581 if (stringText) { 23582 // Set the text content of the first node after the opening comment, and 23583 // remove all following nodes up until the closing comment. 23584 setTextContent(nodeAfterComment, stringText); 23585 removeDelimitedText(parentNode, nodeAfterComment, closingComment); 23586 } else { 23587 removeDelimitedText(parentNode, openingComment, closingComment); 23588 } 23589 } 23590 23591 if (true) { 23592 ReactInstrumentation.debugTool.onHostOperation({ 23593 instanceID: ReactDOMComponentTree.getInstanceFromNode(openingComment)._debugID, 23594 type: 'replace text', 23595 payload: stringText 23596 }); 23597 } 23598} 23599 23600var dangerouslyReplaceNodeWithMarkup = Danger.dangerouslyReplaceNodeWithMarkup; 23601if (true) { 23602 dangerouslyReplaceNodeWithMarkup = function (oldChild, markup, prevInstance) { 23603 Danger.dangerouslyReplaceNodeWithMarkup(oldChild, markup); 23604 if (prevInstance._debugID !== 0) { 23605 ReactInstrumentation.debugTool.onHostOperation({ 23606 instanceID: prevInstance._debugID, 23607 type: 'replace with', 23608 payload: markup.toString() 23609 }); 23610 } else { 23611 var nextInstance = ReactDOMComponentTree.getInstanceFromNode(markup.node); 23612 if (nextInstance._debugID !== 0) { 23613 ReactInstrumentation.debugTool.onHostOperation({ 23614 instanceID: nextInstance._debugID, 23615 type: 'mount', 23616 payload: markup.toString() 23617 }); 23618 } 23619 } 23620 }; 23621} 23622 23623/** 23624 * Operations for updating with DOM children. 23625 */ 23626var DOMChildrenOperations = { 23627 dangerouslyReplaceNodeWithMarkup: dangerouslyReplaceNodeWithMarkup, 23628 23629 replaceDelimitedText: replaceDelimitedText, 23630 23631 /** 23632 * Updates a component's children by processing a series of updates. The 23633 * update configurations are each expected to have a `parentNode` property. 23634 * 23635 * @param {array<object>} updates List of update configurations. 23636 * @internal 23637 */ 23638 processUpdates: function (parentNode, updates) { 23639 if (true) { 23640 var parentNodeDebugID = ReactDOMComponentTree.getInstanceFromNode(parentNode)._debugID; 23641 } 23642 23643 for (var k = 0; k < updates.length; k++) { 23644 var update = updates[k]; 23645 switch (update.type) { 23646 case 'INSERT_MARKUP': 23647 insertLazyTreeChildAt(parentNode, update.content, getNodeAfter(parentNode, update.afterNode)); 23648 if (true) { 23649 ReactInstrumentation.debugTool.onHostOperation({ 23650 instanceID: parentNodeDebugID, 23651 type: 'insert child', 23652 payload: { 23653 toIndex: update.toIndex, 23654 content: update.content.toString() 23655 } 23656 }); 23657 } 23658 break; 23659 case 'MOVE_EXISTING': 23660 moveChild(parentNode, update.fromNode, getNodeAfter(parentNode, update.afterNode)); 23661 if (true) { 23662 ReactInstrumentation.debugTool.onHostOperation({ 23663 instanceID: parentNodeDebugID, 23664 type: 'move child', 23665 payload: { fromIndex: update.fromIndex, toIndex: update.toIndex } 23666 }); 23667 } 23668 break; 23669 case 'SET_MARKUP': 23670 setInnerHTML(parentNode, update.content); 23671 if (true) { 23672 ReactInstrumentation.debugTool.onHostOperation({ 23673 instanceID: parentNodeDebugID, 23674 type: 'replace children', 23675 payload: update.content.toString() 23676 }); 23677 } 23678 break; 23679 case 'TEXT_CONTENT': 23680 setTextContent(parentNode, update.content); 23681 if (true) { 23682 ReactInstrumentation.debugTool.onHostOperation({ 23683 instanceID: parentNodeDebugID, 23684 type: 'replace text', 23685 payload: update.content.toString() 23686 }); 23687 } 23688 break; 23689 case 'REMOVE_NODE': 23690 removeChild(parentNode, update.fromNode); 23691 if (true) { 23692 ReactInstrumentation.debugTool.onHostOperation({ 23693 instanceID: parentNodeDebugID, 23694 type: 'remove child', 23695 payload: { fromIndex: update.fromIndex } 23696 }); 23697 } 23698 break; 23699 } 23700 } 23701 } 23702}; 23703 23704module.exports = DOMChildrenOperations; 23705 23706/***/ }), 23707/* 112 */ 23708/***/ (function(module, exports, __webpack_require__) { 23709 23710"use strict"; 23711/** 23712 * Copyright (c) 2013-present, Facebook, Inc. 23713 * 23714 * This source code is licensed under the MIT license found in the 23715 * LICENSE file in the root directory of this source tree. 23716 * 23717 */ 23718 23719 23720 23721var DOMNamespaces = { 23722 html: 'http://www.w3.org/1999/xhtml', 23723 mathml: 'http://www.w3.org/1998/Math/MathML', 23724 svg: 'http://www.w3.org/2000/svg' 23725}; 23726 23727module.exports = DOMNamespaces; 23728 23729/***/ }), 23730/* 113 */ 23731/***/ (function(module, exports, __webpack_require__) { 23732 23733"use strict"; 23734/** 23735 * Copyright (c) 2013-present, Facebook, Inc. 23736 * 23737 * This source code is licensed under the MIT license found in the 23738 * LICENSE file in the root directory of this source tree. 23739 * 23740 */ 23741 23742/* globals MSApp */ 23743 23744 23745 23746/** 23747 * Create a function which has 'unsafe' privileges (required by windows8 apps) 23748 */ 23749 23750var createMicrosoftUnsafeLocalFunction = function (func) { 23751 if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) { 23752 return function (arg0, arg1, arg2, arg3) { 23753 MSApp.execUnsafeLocalFunction(function () { 23754 return func(arg0, arg1, arg2, arg3); 23755 }); 23756 }; 23757 } else { 23758 return func; 23759 } 23760}; 23761 23762module.exports = createMicrosoftUnsafeLocalFunction; 23763 23764/***/ }), 23765/* 114 */ 23766/***/ (function(module, exports, __webpack_require__) { 23767 23768"use strict"; 23769/** 23770 * Copyright (c) 2013-present, Facebook, Inc. 23771 * 23772 * This source code is licensed under the MIT license found in the 23773 * LICENSE file in the root directory of this source tree. 23774 * 23775 */ 23776 23777 23778 23779var _prodInvariant = __webpack_require__(12); 23780 23781var ReactPropTypesSecret = __webpack_require__(180); 23782var propTypesFactory = __webpack_require__(165); 23783 23784var React = __webpack_require__(48);
23785var PropTypes = propTypesFactory(React.isValidElement); 23786 23787var invariant = __webpack_require__(10); 23788var warning = __webpack_require__(11); 23789 23790var hasReadOnlyValue = { 23791 button: true, 23792 checkbox: true, 23793 image: true, 23794 hidden: true, 23795 radio: true, 23796 reset: true, 23797 submit: true 23798}; 23799 23800function _assertSingleLink(inputProps) { 23801 !(inputProps.checkedLink == null || inputProps.valueLink == null) ? true ? invariant(false, 'Cannot provide a checkedLink and a valueLink. If you want to use checkedLink, you probably don\'t want to use valueLink and vice versa.') : _prodInvariant('87') : void 0; 23802} 23803function _assertValueLink(inputProps) { 23804 _assertSingleLink(inputProps); 23805 !(inputProps.value == null && inputProps.onChange == null) ? true ? invariant(false, 'Cannot provide a valueLink and a value or onChange event. If you want to use value or onChange, you probably don\'t want to use valueLink.') : _prodInvariant('88') : void 0; 23806} 23807 23808function _assertCheckedLink(inputProps) { 23809 _assertSingleLink(inputProps); 23810 !(inputProps.checked == null && inputProps.onChange == null) ? true ? invariant(false, 'Cannot provide a checkedLink and a checked property or onChange event. If you want to use checked or onChange, you probably don\'t want to use checkedLink') : _prodInvariant('89') : void 0; 23811} 23812 23813var propTypes = { 23814 value: function (props, propName, componentName) { 23815 if (!props[propName] || hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled) { 23816 return null; 23817 } 23818 return new Error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.'); 23819 }, 23820 checked: function (props, propName, componentName) { 23821 if (!props[propName] || props.onChange || props.readOnly || props.disabled) { 23822 return null; 23823 } 23824 return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.'); 23825 }, 23826 onChange: PropTypes.func 23827}; 23828 23829var loggedTypeFailures = {}; 23830function getDeclarationErrorAddendum(owner) { 23831 if (owner) { 23832 var name = owner.getName(); 23833 if (name) { 23834 return ' Check the render method of `' + name + '`.'; 23835 } 23836 } 23837 return ''; 23838} 23839 23840/** 23841 * Provide a linked `value` attribute for controlled forms. You should not use 23842 * this outside of the ReactDOM controlled form components. 23843 */ 23844var LinkedValueUtils = { 23845 checkPropTypes: function (tagName, props, owner) { 23846 for (var propName in propTypes) { 23847 if (propTypes.hasOwnProperty(propName)) { 23848 var error = propTypes[propName](props, propName, tagName, 'prop', null, ReactPropTypesSecret); 23849 } 23850 if (error instanceof Error && !(error.message in loggedTypeFailures)) { 23851 // Only monitor this failure once because there tends to be a lot of the 23852 // same error. 23853 loggedTypeFailures[error.message] = true; 23854 23855 var addendum = getDeclarationErrorAddendum(owner); 23856 true ? warning(false, 'Failed form propType: %s%s', error.message, addendum) : void 0; 23857 } 23858 } 23859 }, 23860 23861 /** 23862 * @param {object} inputProps Props for form component 23863 * @return {*} current value of the input either from value prop or link. 23864 */ 23865 getValue: function (inputProps) { 23866 if (inputProps.valueLink) { 23867 _assertValueLink(inputProps); 23868 return inputProps.valueLink.value; 23869 } 23870 return inputProps.value; 23871 }, 23872 23873 /** 23874 * @param {object} inputProps Props for form component 23875 * @return {*} current checked status of the input either from checked prop 23876 * or link. 23877 */ 23878 getChecked: function (inputProps) { 23879 if (inputProps.checkedLink) { 23880 _assertCheckedLink(inputProps); 23881 return inputProps.checkedLink.value; 23882 } 23883 return inputProps.checked; 23884 }, 23885 23886 /** 23887 * @param {object} inputProps Props for form component 23888 * @param {SyntheticEvent} event change event to handle 23889 */ 23890 executeOnChange: function (inputProps, event) { 23891 if (inputProps.valueLink) { 23892 _assertValueLink(inputProps); 23893 return inputProps.valueLink.requestChange(event.target.value); 23894 } else if (inputProps.checkedLink) { 23895 _assertCheckedLink(inputProps); 23896 return inputProps.checkedLink.requestChange(event.target.checked); 23897 } else if (inputProps.onChange) { 23898 return inputProps.onChange.call(undefined, event); 23899 } 23900 } 23901}; 23902 23903module.exports = LinkedValueUtils; 23904 23905/***/ }), 23906/* 115 */ 23907/***/ (function(module, exports, __webpack_require__) { 23908 23909"use strict"; 23910/** 23911 * Copyright (c) 2014-present, Facebook, Inc. 23912 * 23913 * This source code is licensed under the MIT license found in the 23914 * LICENSE file in the root directory of this source tree. 23915 * 23916 * 23917 */ 23918 23919 23920 23921var _prodInvariant = __webpack_require__(12); 23922 23923var invariant = __webpack_require__(10); 23924 23925var injected = false;
23926 23927var ReactComponentEnvironment = { 23928 /** 23929 * Optionally injectable hook for swapping out mount images in the middle of 23930 * the tree. 23931 */ 23932 replaceNodeWithMarkup: null, 23933 23934 /** 23935 * Optionally injectable hook for processing a queue of child updates. Will 23936 * later move into MultiChildComponents. 23937 */ 23938 processChildrenUpdates: null, 23939 23940 injection: { 23941 injectEnvironment: function (environment) { 23942 !!injected ? true ? invariant(false, 'ReactCompositeComponent: injectEnvironment() can only be called once.') : _prodInvariant('104') : void 0; 23943 ReactComponentEnvironment.replaceNodeWithMarkup = environment.replaceNodeWithMarkup; 23944 ReactComponentEnvironment.processChildrenUpdates = environment.processChildrenUpdates; 23945 injected = true; 23946 } 23947 } 23948}; 23949 23950module.exports = ReactComponentEnvironment; 23951 23952/***/ }), 23953/* 116 */ 23954/***/ (function(module, exports, __webpack_require__) { 23955 23956"use strict"; 23957/** 23958 * Copyright (c) 2013-present, Facebook, Inc. 23959 * 23960 * This source code is licensed under the MIT license found in the 23961 * LICENSE file in the root directory of this source tree. 23962 * 23963 * @typechecks 23964 * 23965 */ 23966 23967/*eslint-disable no-self-compare */ 23968 23969 23970 23971var hasOwnProperty = Object.prototype.hasOwnProperty; 23972 23973/** 23974 * inlined Object.is polyfill to avoid requiring consumers ship their own 23975 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is 23976 */ 23977function is(x, y) { 23978 // SameValue algorithm 23979 if (x === y) { 23980 // Steps 1-5, 7-10 23981 // Steps 6.b-6.e: +0 != -0 23982 // Added the nonzero y check to make Flow happy, but it is redundant 23983 return x !== 0 || y !== 0 || 1 / x === 1 / y; 23984 } else { 23985 // Step 6.a: NaN == NaN 23986 return x !== x && y !== y; 23987 } 23988} 23989 23990/** 23991 * Performs equality by iterating through keys on an object and returning false 23992 * when any key has values which are not strictly equal between the arguments. 23993 * Returns true when the values of all keys are strictly equal. 23994 */ 23995function shallowEqual(objA, objB) { 23996 if (is(objA, objB)) { 23997 return true; 23998 } 23999 24000 if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) { 24001 return false; 24002 } 24003 24004 var keysA = Object.keys(objA); 24005 var keysB = Object.keys(objB); 24006 24007 if (keysA.length !== keysB.length) { 24008 return false; 24009 } 24010 24011 // Test for A's keys different from B. 24012 for (var i = 0; i < keysA.length; i++) { 24013 if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) { 24014 return false; 24015 } 24016 } 24017 24018 return true; 24019} 24020 24021module.exports = shallowEqual; 24022 24023/***/ }), 24024/* 117 */ 24025/***/ (function(module, exports, __webpack_require__) { 24026 24027"use strict"; 24028/** 24029 * Copyright (c) 2013-present, Facebook, Inc. 24030 * 24031 * This source code is licensed under the MIT license found in the 24032 * LICENSE file in the root directory of this source tree. 24033 * 24034 */ 24035 24036 24037 24038/** 24039 * Given a `prevElement` and `nextElement`, determines if the existing 24040 * instance should be updated as opposed to being destroyed or replaced by a new 24041 * instance. Both arguments are elements. This ensures that this logic can 24042 * operate on stateless trees without any backing instance. 24043 * 24044 * @param {?object} prevElement 24045 * @param {?object} nextElement 24046 * @return {boolean} True if the existing instance should be updated. 24047 * @protected 24048 */ 24049 24050function shouldUpdateReactComponent(prevElement, nextElement) { 24051 var prevEmpty = prevElement === null || prevElement === false; 24052 var nextEmpty = nextElement === null || nextElement === false; 24053 if (prevEmpty || nextEmpty) { 24054 return prevEmpty === nextEmpty; 24055 } 24056 24057 var prevType = typeof prevElement; 24058 var nextType = typeof nextElement; 24059 if (prevType === 'string' || prevType === 'number') { 24060 return nextType === 'string' || nextType === 'number'; 24061 } else { 24062 return nextType === 'object' && prevElement.type === nextElement.type && prevElement.key === nextElement.key; 24063 } 24064} 24065 24066module.exports = shouldUpdateReactComponent; 24067 24068/***/ }), 24069/* 118 */ 24070/***/ (function(module, exports, __webpack_require__) { 24071 24072"use strict"; 24073/** 24074 * Copyright (c) 2013-present, Facebook, Inc. 24075 * 24076 * This source code is licensed under the MIT license found in the 24077 * LICENSE file in the root directory of this source tree. 24078 * 24079 * 24080 */ 24081 24082 24083 24084/** 24085 * Escape and wrap key so it is safe to use as a reactid 24086 * 24087 * @param {string} key to be escaped. 24088 * @return {string} the escaped key. 24089 */ 24090 24091function escape(key) { 24092 var escapeRegex = /[=:]/g; 24093 var escaperLookup = { 24094 '=': '=0', 24095 ':': '=2' 24096 }; 24097 var escapedString = ('' + key).replace(escapeRegex, function (match) { 24098 return escaperLookup[match]; 24099 }); 24100 24101 return '$' + escapedString; 24102} 24103 24104/** 24105 * Unescape and unwrap key for human-readable display 24106 * 24107 * @param {string} key to unescape. 24108 * @return {string} the unescaped key. 24109 */ 24110function unescape(key) { 24111 var unescapeRegex = /(=0|=2)/g; 24112 var unescaperLookup = { 24113 '=0': '=', 24114 '=2': ':' 24115 }; 24116 var keySubstring = key[0] === '.' && key[1] === '$' ? key.substring(2) : key.substring(1); 24117 24118 return ('' + keySubstring).replace(unescapeRegex, function (match) { 24119 return unescaperLookup[match]; 24120 }); 24121} 24122 24123var KeyEscapeUtils = { 24124 escape: escape, 24125 unescape: unescape 24126}; 24127 24128module.exports = KeyEscapeUtils; 24129 24130/***/ }), 24131/* 119 */ 24132/***/ (function(module, exports, __webpack_require__) { 24133 24134"use strict"; 24135/** 24136 * Copyright (c) 2015-present, Facebook, Inc. 24137 * 24138 * This source code is licensed under the MIT license found in the 24139 * LICENSE file in the root directory of this source tree. 24140 * 24141 */ 24142 24143 24144 24145var _prodInvariant = __webpack_require__(12); 24146 24147var ReactCurrentOwner = __webpack_require__(30); 24148var ReactInstanceMap = __webpack_require__(66); 24149var ReactInstrumentation = __webpack_require__(24); 24150var ReactUpdates = __webpack_require__(31); 24151 24152var invariant = __webpack_require__(10); 24153var warning = __webpack_require__(11); 24154 24155function enqueueUpdate(internalInstance) { 24156 ReactUpdates.enqueueUpdate(internalInstance); 24157} 24158 24159function formatUnexpectedArgument(arg) { 24160 var type = typeof arg; 24161 if (type !== 'object') { 24162 return type; 24163 } 24164 var displayName = arg.constructor && arg.constructor.name || type; 24165 var keys = Object.keys(arg); 24166 if (keys.length > 0 && keys.length < 20) {
24167 return displayName + ' (keys: ' + keys.join(', ') + ')'; 24168 } 24169 return displayName; 24170} 24171 24172function getInternalInstanceReadyForUpdate(publicInstance, callerName) { 24173 var internalInstance = ReactInstanceMap.get(publicInstance); 24174 if (!internalInstance) { 24175 if (true) { 24176 var ctor = publicInstance.constructor; 24177 // Only warn when we have a callerName. Otherwise we should be silent. 24178 // We're probably calling from enqueueCallback. We don't want to warn 24179 // there because we already warned for the corresponding lifecycle method. 24180 true ? warning(!callerName, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, ctor && (ctor.displayName || ctor.name) || 'ReactClass') : void 0; 24181 } 24182 return null; 24183 } 24184 24185 if (true) { 24186 true ? warning(ReactCurrentOwner.current == null, '%s(...): Cannot update during an existing state transition (such as ' + "within `render` or another component's constructor). Render methods " + 'should be a pure function of props and state; constructor ' + 'side-effects are an anti-pattern, but can be moved to ' + '`componentWillMount`.', callerName) : void 0; 24187 } 24188 24189 return internalInstance; 24190} 24191 24192/** 24193 * ReactUpdateQueue allows for state updates to be scheduled into a later 24194 * reconciliation step. 24195 */ 24196var ReactUpdateQueue = { 24197 /** 24198 * Checks whether or not this composite component is mounted. 24199 * @param {ReactClass} publicInstance The instance we want to test. 24200 * @return {boolean} True if mounted, false otherwise. 24201 * @protected 24202 * @final 24203 */ 24204 isMounted: function (publicInstance) { 24205 if (true) { 24206 var owner = ReactCurrentOwner.current; 24207 if (owner !== null) { 24208 true ? warning(owner._warnedAboutRefsInRender, '%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', owner.getName() || 'A c
24208omponent') : void 0; 24209 owner._warnedAboutRefsInRender = true; 24210 } 24211 } 24212 var internalInstance = ReactInstanceMap.get(publicInstance); 24213 if (internalInstance) { 24214 // During componentWillMount and render this will still be null but after 24215 // that will always render to something. At least for now. So we can use 24216 // this hack. 24217 return !!internalInstance._renderedComponent; 24218 } else { 24219 return false; 24220 } 24221 }, 24222 24223 /** 24224 * Enqueue a callback that will be executed after all the pending updates 24225 * have processed. 24226 * 24227 * @param {ReactClass} publicInstance The instance to use as `this` context. 24228 * @param {?function} callback Called after state is updated. 24229 * @param {string} callerName Name of the calling function in the public API. 24230 * @internal 24231 */ 24232 enqueueCallback: function (publicInstance, callback, callerName) { 24233 ReactUpdateQueue.validateCallback(callback, callerName); 24234 var internalInstance = getInternalInstanceReadyForUpdate(publicInstance); 24235 24236 // Previously we would throw an error if we didn't have an internal 24237 // instance. Since we want to make it a no-op instead, we mirror the same 24238 // behavior we have in other enqueue* methods. 24239 // We also need to ignore callbacks in componentWillMount. See 24240 // enqueueUpdates. 24241 if (!internalInstance) { 24242 return null; 24243 } 24244 24245 if (internalInstance._pendingCallbacks) { 24246 internalInstance._pendingCallbacks.push(callback); 24247 } else { 24248 internalInstance._pendingCallbacks = [callback]; 24249 } 24250 // TODO: The callback here is ignored when setState is called from 24251 // componentWillMount. Either fix it or disallow doing so completely in 24252 // favor of getInitialState. Alternatively, we can disallow 24253 // componentWillMount during server-side rendering. 24254 enqueueUpdate(internalInstance); 24255 }, 24256 24257 enqueueCallbackInternal: function (internalInstance, callback) { 24258 if (internalInstance._pendingCallbacks) { 24259 internalInstance._pendingCallbacks.push(callback); 24260 } else { 24261 internalInstance._pendingCallbacks = [callback]; 24262 } 24263 enqueueUpdate(internalInstance); 24264 }, 24265 24266 /** 24267 * Forces an update. This should only be invoked when it is known with 24268 * certainty that we are **not** in a DOM transaction. 24269 * 24270 * You may want to call this when you know that some deeper aspect of the 24271 * component's state has changed but `setState` was not called. 24272 * 24273 * This will not invoke `shouldComponentUpdate`, but it will invoke 24274 * `componentWillUpdate` and `componentDidUpdate`. 24275 * 24276 * @param {ReactClass} publicInstance The instance that should rerender. 24277 * @internal 24278 */ 24279 enqueueForceUpdate: function (publicInstance) { 24280 var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'forceUpdate'); 24281 24282 if (!internalInstance) { 24283 return; 24284 } 24285 24286 internalInstance._pendingForceUpdate = true; 24287 24288 enqueueUpdate(internalInstance); 24289 }, 24290 24291 /** 24292 * Replaces all of the state. Always use this or `setState` to mutate state. 24293 * You should treat `this.state` as immutable. 24294 * 24295 * There is no guarantee that `this.state` will be immediately updated, so 24296 * accessing `this.state` after calling this method may return the old value. 24297 * 24298 * @param {ReactClass} publicInstance The instance that should rerender. 24299 * @param {object} completeState Next state. 24300 * @internal 24301 */ 24302 enqueueReplaceState: function (publicInstance, completeState, callback) { 24303 var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'replaceState'); 24304 24305 if (!internalInstance) { 24306 return; 24307 } 24308 24309 internalInstance._pendingStateQueue = [completeState]; 24310 internalInstance._pendingReplaceState = true; 24311 24312 // Future-proof 15.5 24313 if (callback !== undefined && callback !== null) { 24314 ReactUpdateQueue.validateCallback(callback, 'replaceState'); 24315 if (internalInstance._pendingCallbacks) { 24316 internalInstance._pendingCallbacks.push(callback); 24317 } else { 24318 internalInstance._pendingCallbacks = [callback]; 24319 } 24320 } 24321 24322 enqueueUpdate(internalInstance); 24323 }, 24324 24325 /** 24326 * Sets a subset of the state. This only exists because _pendingState is 24327 * internal. This provides a merging strategy that is not available to deep 24328 * properties which is confusing. TODO: Expose pendingState or don't use it 24329 * during the merge. 24330 * 24331 * @param {ReactClass} publicInstance The instance that should rerender. 24332 * @param {object} partialState Next partial state to be merged with state. 24333 * @internal 24334 */ 24335 enqueueSetState: function (publicInstance, partialState) { 24336 if (true) { 24337 ReactInstrumentation.debugTool.onSetState(); 24338 true ? warning(partialState != null, 'setState(...): You passed an undefined or null state object; ' + 'instead, use forceUpdate().') : void 0; 24339 } 24340 24341 var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'setState'); 24342 24343 if (!internalInstance) { 24344 return; 24345 } 24346 24347 var queue = internalInstance._pendingStateQueue || (internalInstance._pendingStateQueue = []); 24348 queue.push(partialState); 24349 24350 enqueueUpdate(internalInstance); 24351 }, 24352 24353 enqueueElementInternal: function (internalInstance, nextElement, nextContext) { 24354 internalInstance._pendingElement = nextElement; 24355 // TODO: introduce _pendingContext instead of setting it directly. 24356 internalInstance._context = nextContext; 24357 enqueueUpdate(internalInstance); 24358 }, 24359 24360 validateCallback: function (callback, callerName) { 24361 !(!callback || typeof callback === 'function') ? true ? invariant(false, '%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.', callerName, formatUnexpectedArgument(callback)) : _prodInvariant('122', callerName, formatUnexpectedArgument(callback)) : void 0; 24362 } 24363}; 24364 24365module.exports = ReactUpdateQueue; 24366 24367/***/ }), 24368/* 120 */ 24369/***/ (function(module, exports, __webpack_require__) { 24370 24371"use strict"; 24372/** 24373 * Copyright (c) 2015-present, Facebook, Inc. 24374 * 24375 * This source code is licensed under the MIT license found in the 24376 * LICENSE file in the root directory of this source tree. 24377 * 24378 */ 24379 24380 24381 24382var _assign = __webpack_require__(14); 24383 24384var emptyFunction = __webpack_require__(29); 24385var warning = __webpack_require__(11); 24386 24387var validateDOMNesting = emptyFunction; 24388 24389if (true) { 24390 // This validation code was written based on the HTML5 parsing spec: 24391 // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope 24392 // 24393 // Note: this does not catch all invalid nesting, nor does it try to (as it's 24394 // not clear what practical benefit doing so provides); instead, we warn only 24395 // for cases where the parser will give a parse tree differing from what React 24396 // intended. For example, <b><div></div></b>
vendor: 6,717 bytes, lines 24396-24552
24396 is invalid but we don't warn 24397 // because it still parses correctly; we do warn for other cases like nested 24398 // <p> tags where the beginning of the second element implicitly closes the 24399 // first, causing a confusing mess. 24400 24401 // https://html.spec.whatwg.org/multipage/syntax.html#special 24402 var specialTags = ['address', 'applet', 'area', 'article', 'aside', 'base', 'basefont', 'bgsound', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'iframe', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'main', 'marquee', 'menu', 'menuitem', 'meta', 'nav', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 'script', 'section', 'select', 'source', 'style', 'summary', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul', 'wbr', 'xmp']; 24403 24404 // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope 24405 var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template', 24406 24407 // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point 24408 // TODO: Distinguish by namespace here -- for <title>, including it here 24409 // errs on the side of fewer warnings 24410 'foreignObject', 'desc', 'title']; 24411 24412 // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope 24413 var buttonScopeTags = inScopeTags.concat(['button']); 24414 24415 // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags 24416 var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt']; 24417 24418 var emptyAncestorInfo = { 24419 current: null, 24420 24421 formTag: null, 24422 aTagInScope: null, 24423 buttonTagInScope: null, 24424 nobrTagInScope: null, 24425 pTagInButtonScope: null, 24426 24427 listItemTagAutoclosing: null, 24428 dlItemTagAutoclosing: null 24429 }; 24430 24431 var updatedAncestorInfo = function (oldInfo, tag, instance) { 24432 var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo); 24433 var info = { tag: tag, instance: instance }; 24434 24435 if (inScopeTags.indexOf(tag) !== -1) { 24436 ancestorInfo.aTagInScope = null; 24437 ancestorInfo.buttonTagInScope = null; 24438 ancestorInfo.nobrTagInScope = null; 24439 } 24440 if (buttonScopeTags.indexOf(tag) !== -1) { 24441 ancestorInfo.pTagInButtonScope = null; 24442 } 24443 24444 // See rules for 'li', 'dd', 'dt' start tags in 24445 // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody 24446 if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') { 24447 ancestorInfo.listItemTagAutoclosing = null; 24448 ancestorInfo.dlItemTagAutoclosing = null; 24449 } 24450 24451 ancestorInfo.current = info; 24452 24453 if (tag === 'form') { 24454 ancestorInfo.formTag = info; 24455 } 24456 if (tag === 'a') { 24457 ancestorInfo.aTagInScope = info; 24458 } 24459 if (tag === 'button') { 24460 ancestorInfo.buttonTagInScope = info; 24461 } 24462 if (tag === 'nobr') { 24463 ancestorInfo.nobrTagInScope = info; 24464 } 24465 if (tag === 'p') { 24466 ancestorInfo.pTagInButtonScope = info; 24467 } 24468 if (tag === 'li') { 24469 ancestorInfo.listItemTagAutoclosing = info; 24470 } 24471 if (tag === 'dd' || tag === 'dt') { 24472 ancestorInfo.dlItemTagAutoclosing = info; 24473 } 24474 24475 return ancestorInfo; 24476 }; 24477 24478 /** 24479 * Returns whether 24480 */ 24481 var isTagValidWithParent = function (tag, parentTag) { 24482 // First, let's check if we're in an unusual parsing mode... 24483 switch (parentTag) { 24484 // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect 24485 case 'select': 24486 return tag === 'option' || tag === 'optgroup' || tag === '#text'; 24487 case 'optgroup': 24488 return tag === 'option' || tag === '#text'; 24489 // Strictly speaking, seeing an <option> doesn't mean we're in a <select> 24490 // but 24491 case 'option': 24492 return tag === '#text'; 24493 // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd 24494 // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption 24495 // No special behavior since these rules fall back to "in body" mode for 24496 // all except special table nodes which cause bad parsing behavior anyway. 24497 24498 // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr 24499 case 'tr': 24500 return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template'; 24501 // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody 24502 case 'tbody': 24503 case 'thead': 24504 case 'tfoot': 24505 return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template'; 24506 // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup 24507 case 'colgroup': 24508 return tag === 'col' || tag === 'template'; 24509 // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable 24510 case 'table': 24511 return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template'; 24512 // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead 24513 case 'head': 24514 return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template'; 24515 // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element 24516 case 'html': 24517 return tag === 'head' || tag === 'body'; 24518 case '#document': 24519 return tag === 'html'; 24520 } 24521 24522 // Probably in the "in body" parsing mode, so we outlaw only tag combos 24523 // where the parsing rules cause implicit opens or closes to be added. 24524 // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody 24525 switch (tag) { 24526 case 'h1': 24527 case 'h2': 24528 case 'h3': 24529 case 'h4': 24530 case 'h5': 24531 case 'h6': 24532 return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6'; 24533 24534 case 'rp': 24535 case 'rt': 24536 return impliedEndTags.indexOf(parentTag) === -1; 24537 24538 case 'body': 24539 case 'caption': 24540 case 'col': 24541 case 'colgroup': 24542 case 'frame': 24543 case 'head': 24544 case 'html': 24545 case 'tbody': 24546 case 'td': 24547 case 'tfoot': 24548 case 'th': 24549 case 'thead': 24550 case 'tr': 24551 // These tags are only valid with a few parents that have special child 24552 // parsing rules -- if we're down here, then none of those matched and
24553 // so we allow it only if we don't know what the parent is, as all other 24554 // cases are invalid. 24555 return parentTag == null; 24556 } 24557 24558 return true; 24559 }; 24560 24561 /** 24562 * Returns whether 24563 */ 24564 var findInvalidAncestorForTag = function (tag, ancestorInfo) { 24565 switch (tag) { 24566 case 'address': 24567 case 'article': 24568 case 'aside': 24569 case 'blockquote': 24570 case 'center': 24571 case 'details': 24572 case 'dialog': 24573 case 'dir': 24574 case 'div': 24575 case 'dl': 24576 case 'fieldset': 24577 case 'figcaption': 24578 case 'figure': 24579 case 'footer': 24580 case 'header': 24581 case 'hgroup': 24582 case 'main': 24583 case 'menu': 24584 case 'nav': 24585 case 'ol': 24586 case 'p': 24587 case 'section': 24588 case 'summary': 24589 case 'ul': 24590 case 'pre': 24591 case 'listing': 24592 case 'table': 24593 case 'hr': 24594 case 'xmp': 24595 case 'h1': 24596 case 'h2': 24597 case 'h3': 24598 case 'h4': 24599 case 'h5': 24600 case 'h6': 24601 return ancestorInfo.pTagInButtonScope; 24602 24603 case 'form': 24604 return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope; 24605 24606 case 'li': 24607 return ancestorInfo.listItemTagAutoclosing; 24608 24609 case 'dd': 24610 case 'dt': 24611 return ancestorInfo.dlItemTagAutoclosing; 24612 24613 case 'button': 24614 return ancestorInfo.buttonTagInScope; 24615 24616 case 'a': 24617 // Spec says something about storing a list of markers, but it sounds 24618 // equivalent to this check. 24619 return ancestorInfo.aTagInScope; 24620 24621 case 'nobr': 24622 return ancestorInfo.nobrTagInScope; 24623 } 24624 24625 return null; 24626 }; 24627 24628 /** 24629 * Given a ReactCompositeComponent instance, return a list of its recursive 24630 * owners, starting at the root and ending with the instance itself. 24631 */ 24632 var findOwnerStack = function (instance) { 24633 if (!instance) { 24634 return []; 24635 } 24636 24637 var stack = []; 24638 do { 24639 stack.push(instance); 24640 } while (instance = instance._currentElement._owner); 24641 stack.reverse(); 24642 return stack; 24643 }; 24644 24645 var didWarn = {}; 24646 24647 validateDOMNesting = function (childTag, childText, childInstance, ancestorInfo) { 24648 ancestorInfo = ancestorInfo || emptyAncestorInfo; 24649 var parentInfo = ancestorInfo.current; 24650 var parentTag = parentInfo && parentInfo.tag; 24651 24652 if (childText != null) { 24653 true ? warning(childTag == null, 'validateDOMNesting: when childText is passed, childTag should be null') : void 0; 24654 childTag = '#text'; 24655 } 24656 24657 var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo; 24658 var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo); 24659 var problematic = invalidParent || invalidAncestor; 24660 24661 if (problematic) { 24662 var ancestorTag = problematic.tag; 24663 var ancestorInstance = problematic.instance; 24664 24665 var childOwner = childInstance && childInstance._currentElement._owner; 24666 var ancestorOwner = ancestorInstance && ancestorInstance._currentElement._owner; 24667 24668 var childOwners = findOwnerStack(childOwner); 24669 var ancestorOwners = findOwnerStack(ancestorOwner); 24670 24671 var minStackLen = Math.min(childOwners.length, ancestorOwners.length); 24672 var i; 24673 24674 var deepestCommon = -1; 24675 for (i = 0; i < minStackLen; i++) { 24676 if (childOwners[i] === ancestorOwners[i]) { 24677 deepestCommon = i; 24678 } else { 24679 break; 24680 } 24681 } 24682 24683 var UNKNOWN = '(unknown)'; 24684 var childOwnerNames = childOwners.slice(deepestCommon + 1).map(function (inst) { 24685 return inst.getName() || UNKNOWN; 24686 }); 24687 var ancestorOwnerNames = ancestorOwners.slice(deepestCommon + 1).map(function (inst) { 24688 return inst.getName() || UNKNOWN; 24689 }); 24690 var ownerInfo = [].concat( 24691 // If the parent and child instances have a common owner ancestor, start 24692 // with that -- otherwise we just start with the parent's owners. 24693 deepestCommon !== -1 ? childOwners[deepestCommon].getName() || UNKNOWN : [], ancestorOwnerNames, ancestorTag, 24694 // If we're warning about an invalid (non-parent) ancestry, add '...' 24695 invalidAncestor ? ['...'] : [], childOwnerNames, childTag).join(' > '); 24696 24697 var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + ownerInfo; 24698 if (didWarn[warnKey]) { 24699 return; 24700 } 24701 didWarn[warnKey] = true; 24702 24703 var tagDisplayName = childTag; 24704 var whitespaceInfo = ''; 24705 if (childTag === '#text') { 24706 if (/\S/.test(childText)) { 24707 tagDisplayName = 'Text nodes'; 24708 } else { 24709 tagDisplayName = 'Whitespace text nodes'; 24710 whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.'; 24711 } 24712 } else { 24713 tagDisplayName = '<' + childTag + '>'; 24714 } 24715 24716 if (invalidParent) { 24717 var info = ''; 24718 if (ancestorTag === 'table' && childTag === 'tr') { 24719 info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.'; 24720 } 24721 true ? warning(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s ' + 'See %s.%s', tagDisplayName, ancestorTag, whitespaceInfo, ownerInfo, info) : void 0; 24722 } else { 24723 true ? warning(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>. See %s.', tagDisplayName, ancestorTag, ownerInfo) : void 0; 24724 } 24725 } 24726 }; 24727 24728 validateDOMNesting.updatedAncestorInfo = updatedAncestorInfo; 24729 24730 // For testing 24731 validateDOMNesting.isTagValidInContext = function (tag, ancestorInfo) { 24732 ancestorInfo = ancestorInfo || emptyAncestorInfo; 24733 var parentInfo = ancestorInfo.current; 24734 var parentTag = parentInfo && parentInfo.tag;
24735 return isTagValidWithParent(tag, parentTag) && !findInvalidAncestorForTag(tag, ancestorInfo); 24736 }; 24737} 24738 24739module.exports = validateDOMNesting; 24740 24741/***/ }), 24742/* 121 */ 24743/***/ (function(module, exports, __webpack_require__) { 24744 24745"use strict"; 24746/** 24747 * Copyright (c) 2013-present, Facebook, Inc. 24748 * 24749 * This source code is licensed under the MIT license found in the 24750 * LICENSE file in the root directory of this source tree. 24751 * 24752 */ 24753 24754 24755 24756/** 24757 * `charCode` represents the actual "character code" and is safe to use with 24758 * `String.fromCharCode`. As such, only keys that correspond to printable 24759 * characters produce a valid `charCode`, the only exception to this is Enter. 24760 * The Tab-key is considered non-printable and does not have a `charCode`, 24761 * presumably because it does not produce a tab-character in browsers. 24762 * 24763 * @param {object} nativeEvent Native browser event. 24764 * @return {number} Normalized `charCode` property. 24765 */ 24766 24767function getEventCharCode(nativeEvent) { 24768 var charCode; 24769 var keyCode = nativeEvent.keyCode; 24770 24771 if ('charCode' in nativeEvent) { 24772 charCode = nativeEvent.charCode; 24773 24774 // FF does not set `charCode` for the Enter-key, check against `keyCode`. 24775 if (charCode === 0 && keyCode === 13) { 24776 charCode = 13; 24777 } 24778 } else {
24779 // IE8 does not implement `charCode`, but `keyCode` has the correct value. 24780 charCode = keyCode; 24781 } 24782 24783 // Some non-printable keys are reported in `charCode`/`keyCode`, discard them. 24784 // Must not discard the (non-)printable Enter-key. 24785 if (charCode >= 32 || charCode === 13) { 24786 return charCode; 24787 } 24788 24789 return 0; 24790} 24791 24792module.exports = getEventCharCode; 24793 24794/***/ }), 24795/* 122 */ 24796/***/ (function(module, __webpack_exports__, __webpack_require__) { 24797 24798"use strict"; 24799/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning__ = __webpack_require__(19); 24800/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_warning__); 24801 24802 24803var createTransitionManager = function createTransitionManager() { 24804 var prompt = null; 24805 24806 var setPrompt = function setPrompt(nextPrompt) { 24807 __WEBPACK_IMPORTED_MODULE_0_warning___default()(prompt == null, 'A history supports only one prompt at a time'); 24808 24809 prompt = nextPrompt; 24810 24811 return function () { 24812 if (prompt === nextPrompt) prompt = null; 24813 }; 24814 }; 24815 24816 var confirmTransitionTo = function confirmTransitionTo(location, action, getUserConfirmation, callback) { 24817 // TODO: If another transition starts while we're still confirming 24818 // the previous one, we may end up in a weird state. Figure out the 24819 // best way to handle this. 24820 if (prompt != null) { 24821 var result = typeof prompt === 'function' ? prompt(location, action) : prompt; 24822 24823 if (typeof result === 'string') { 24824 if (typeof getUserConfirmation === 'function') { 24825 getUserConfirmation(result, callback); 24826 } else { 24827 __WEBPACK_IMPORTED_MODULE_0_warning___default()(false, 'A history needs a getUserConfirmation function in order to use a prompt message'); 24828 24829 callback(true); 24830 } 24831 } else { 24832 // Return false from a transition hook to cancel the transition. 24833 callback(result !== false); 24834 } 24835 } else { 24836 callback(true); 24837 } 24838 }; 24839 24840 var listeners = []; 24841 24842 var appendListener = function appendListener(fn) { 24843 var isActive = true; 24844 24845 var listener = function listener() { 24846 if (isActive) fn.apply(undefined, arguments); 24847 }; 24848 24849 listeners.push(listener); 24850 24851 return function () { 24852 isActive = false; 24853 listeners = listeners.filter(function (item) { 24854 return item !== listener; 24855 }); 24856 }; 24857 }; 24858 24859 var notifyListeners = function notifyListeners() { 24860 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { 24861 args[_key] = arguments[_key]; 24862 } 24863 24864 listeners.forEach(function (listener) { 24865 return listener.apply(undefined, args); 24866 }); 24867 }; 24868 24869 return { 24870 setPrompt: setPrompt, 24871 confirmTransitionTo: confirmTransitionTo, 24872 appendListener: appendListener, 24873 notifyListeners: notifyListeners 24874 }; 24875}; 24876 24877/* harmony default export */ __webpack_exports__["a"] = (createTransitionManager); 24878 24879/***/ }), 24880/* 123 */, 24881/* 124 */ 24882/***/ (function(module, __webpack_exports__, __webpack_require__) { 24883 24884"use strict"; 24885/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning__ = __webpack_require__(55); 24886/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_warning__); 24887/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant__ = __webpack_require__(21); 24888/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_invariant__); 24889/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0); 24890/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__); 24891/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2); 24892/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__); 24893/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__matchPath__ = __webpack_require__(87); 24894var _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; }; 24895 24896function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 24897 24898function _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; } 24899 24900function _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, { c
24900onstructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } 24901 24902 24903 24904 24905 24906 24907 24908var isEmptyChildren = function isEmptyChildren(children) { 24909 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.Children.count(children) === 0; 24910}; 24911 24912/** 24913 * The public API for matching a single path and rendering. 24914 */ 24915 24916var Route = function (_React$Component) { 24917 _inherits(Route, _React$Component); 24918 24919 function Route() { 24920 var _temp, _this, _ret; 24921 24922 _classCallCheck(this, Route); 24923 24924 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { 24925 args[_key] = arguments[_key]; 24926 } 24927 24928 return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = { 24929 match: _this.computeMatch(_this.props, _this.context.router) 24930 }, _temp), _possibleConstructorReturn(_this, _ret); 24931 } 24932 24933 Route.prototype.getChildContext = function getChildContext() { 24934 return { 24935 router: _extends({}, this.context.router, { 24936 route: { 24937 location: this.props.location || this.context.router.route.location, 24938 match: this.state.match 24939 } 24940 }) 24941 }; 24942 }; 24943 24944 Route.prototype.computeMatch = function computeMatch(_ref, router) { 24945 var computedMatch = _ref.computedMatch, 24946 location = _ref.location, 24947 path = _ref.path, 24948 strict = _ref.strict, 24949 exact = _ref.exact, 24950 sensitive = _ref.sensitive; 24951 24952 if (computedMatch) return computedMatch; // <Switch> already computed the match for us 24953 24954 __WEBPACK_IMPORTED_MODULE_1_invariant___default()(router, "You should not use <Route> or withRouter() outside a <Router>"); 24955 24956 var route = router.route; 24957 24958 var pathname = (location || route.location).pathname; 24959 24960 return Object(__WEBPACK_IMPORTED_MODULE_4__matchPath__["a" /* default */])(pathname, { path: path, strict: strict, exact: exact, sensitive: sensitive }, route.match); 24961 }; 24962 24963 Route.prototype.componentWillMount = function componentWillMount() { 24964 __WEBPACK_IMPORTED_MODULE_0_warning___default()(!(this.props.component && this.props.render), "You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"); 24965 24966 __WEBPACK_IMPORTED_MODULE_0_warning___default()(!(this.props.component && this.props.children && !isEmptyChildren(this.props.children)), "You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"); 24967 24968 __WEBPACK_IMPORTED_MODULE_0_warning___default()(!(this.props.render && this.props.children && !isEmptyChildren(this.props.children)), "You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored"); 24969 }; 24970 24971 Route.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps, nextContext) { 24972 __WEBPACK_IMPORTED_MODULE_0_warning___default()(!(nextProps.location && !this.props.location), '<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'); 24973 24974 __WEBPACK_IMPORTED_MODULE_0_warning___default()(!(!nextProps.location && this.props.location), '<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'); 24975 24976 this.setState({ 24977 match: this.computeMatch(nextProps, nextContext.router) 24978 }); 24979 }; 24980 24981 Route.prototype.render = function render() { 24982 var match = this.state.match; 24983 var _props = this.props, 24984 children = _props.children, 24985 component = _props.component, 24986 render = _props.render; 24987 var _context$router = this.context.router, 24988 history = _context$router.history, 24989 route = _context$router.route, 24990 staticContext = _context$router.staticContext; 24991 24992 var location = this.props.location || route.location; 24993 var props = { match: match, location: location, history: history, staticContext: staticContext }; 24994 24995 if (component) return match ? __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(component, props) : null; 24996 24997 if (render) return match ? render(props) : null; 24998 24999 if (typeof children === "function") return children(props); 25000 25001 if (children && !isEmptyChildren(children)) return __WEBPACK_IMPORTED_MODULE_2_react___default.a.Children.only(children); 25002 25003 return null; 25004 }; 25005 25006 return Route; 25007}(__WEBPACK_IMPORTED_MODULE_2_react___default.a.Component); 25008 25009Route.propTypes = { 25010 computedMatch: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object, // private, from <Switch> 25011 path: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 25012 exact: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, 25013 strict: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, 25014 sensitive: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, 25015 component: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 25016 render: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 25017 children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node]), 25018 location: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object 25019}; 25020Route.contextTypes = { 25021 router: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({ 25022 history: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired, 25023 route: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired, 25024 staticContext: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object 25025 }) 25026}; 25027Route.childContextTypes = { 25028 router: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired 25029}; 25030 25031 25032/* harmony default export */ __webpack_exports__["a"] = (Route); 25033 25034/***/ }), 25035/* 125 */ 25036/***/ (function(module, __webpack_exports__, __webpack_require__) { 25037 25038"use strict"; 25039/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_path_to_regexp__ = __webpack_require__(200); 25040/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_path_to_regexp___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_path_to_regexp__); 25041 25042 25043var patternCache = {}; 25044var cacheLimit = 10000; 25045var cacheCount = 0; 25046
25047var compileGenerator = function compileGenerator(pattern) { 25048 var cacheKey = pattern; 25049 var cache = patternCache[cacheKey] || (patternCache[cacheKey] = {}); 25050 25051 if (cache[pattern]) return cache[pattern]; 25052 25053 var compiledGenerator = __WEBPACK_IMPORTED_MODULE_0_path_to_regexp___default.a.compile(pattern); 25054 25055 if (cacheCount < cacheLimit) { 25056 cache[pattern] = compiledGenerator; 25057 cacheCount++; 25058 } 25059 25060 return compiledGenerator; 25061}; 25062 25063/** 25064 * Public API for generating a URL pathname from a pattern and parameters. 25065 */ 25066var generatePath = function generatePath() { 25067 var pattern = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "/"; 25068 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; 25069 25070 if (pattern === "/") { 25071 return pattern; 25072 } 25073 var generator = compileGenerator(pattern); 25074 return generator(params, { pretty: true }); 25075}; 25076 25077/* harmony default export */ __webpack_exports__["a"] = (generatePath); 25078 25079/***/ }), 25080/* 126 */, 25081/* 127 */ 25082/***/ (function(module, __webpack_exports__, __webpack_require__) { 25083 25084"use strict"; 25085/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__ = __webpack_require__(542); 25086/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getPrototype_js__ = __webpack_require__(547); 25087/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isObjectLike_js__ = __webpack_require__(549); 25088 25089 25090 25091 25092/** `Object#toString` result references. */ 25093var objectTag = '[object Object]'; 25094 25095/** Used for built-in method references. */ 25096var funcProto = Function.prototype, 25097 objectProto = Object.prototype; 25098 25099/** Used to resolve the decompiled source of functions. */ 25100var funcToString = funcProto.toString; 25101 25102/** Used to check objects for own properties. */ 25103var hasOwnProperty = objectProto.hasOwnProperty; 25104 25105/** Used to infer the `Object` constructor. */ 25106var objectCtorString = funcToString.call(Object); 25107 25108/** 25109 * Checks if `value` is a plain object, that is, an object created by the 25110 * `Object` constructor or one with a `[[Prototype]]` of `null`. 25111 * 25112 * @static 25113 * @memberOf _ 25114 * @since 0.8.0 25115 * @category Lang 25116 * @param {*} value The value to check. 25117 * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. 25118 * @example 25119 * 25120 * function Foo() { 25121 * this.a = 1; 25122 * } 25123 * 25124 * _.isPlainObject(new Foo); 25125 * // => false 25126 * 25127 * _.isPlainObject([1, 2, 3]); 25128 * // => false 25129 * 25130 * _.isPlainObject({ 'x': 0, 'y': 0 }); 25131 * // => true 25132 * 25133 * _.isPlainObject(Object.create(null)); 25134 * // => true 25135 */ 25136function isPlainObject(value) { 25137 if (!Object(__WEBPACK_IMPORTED_MODULE_2__isObjectLike_js__["a" /* default */])(value) || Object(__WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__["a" /* default */])(value) != objectTag) { 25138 return false; 25139 } 25140 var proto = Object(__WEBPACK_IMPORTED_MODULE_1__getPrototype_js__["a" /* default */])(value); 25141 if (proto === null) { 25142 return true; 25143 } 25144 var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; 25145 return typeof Ctor == 'function' && Ctor instanceof Ctor && 25146 funcToString.call(Ctor) == objectCtorString; 25147} 25148 25149/* harmony default export */ __webpack_exports__["a"] = (isPlainObject); 25150 25151 25152/***/ }), 25153/* 128 */ 25154/***/ (function(module, exports, __webpack_require__) { 25155 25156"use strict"; 25157 25158 25159Object.defineProperty(exports, "__esModule", { 25160 value: true 25161}); 25162exports.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; 25163 25164var _reducer = __webpack_require__(215); 25165 25166Object.defineProperty(exports, 'LOCATION_CHANGE', { 25167 enumerable: true, 25168 get: function get() { 25169 return _reducer.LOCATION_CHANGE; 25170 } 25171}); 25172Object.defineProperty(exports, 'routerReducer', { 25173 enumerable: true, 25174 get: function get() { 25175 return _reducer.routerReducer; 25176 } 25177}); 25178 25179var _actions = __webpack_require__(216); 25180 25181Object.defineProperty(exports, 'CALL_HISTORY_METHOD', { 25182 enumerable: true, 25183 get: function get() { 25184 return _actions.CALL_HISTORY_METHOD; 25185 } 25186});
vendor: 9,161 bytes, lines 25187-25554
25187Object.defineProperty(exports, 'push', { 25188 enumerable: true, 25189 get: function get() { 25190 return _actions.push; 25191 } 25192}); 25193Object.defineProperty(exports, 'replace', { 25194 enumerable: true, 25195 get: function get() { 25196 return _actions.replace; 25197 } 25198}); 25199Object.defineProperty(exports, 'go', { 25200 enumerable: true, 25201 get: function get() { 25202 return _actions.go; 25203 } 25204}); 25205Object.defineProperty(exports, 'goBack', { 25206 enumerable: true, 25207 get: function get() { 25208 return _actions.goBack; 25209 } 25210}); 25211Object.defineProperty(exports, 'goForward', { 25212 enumerable: true, 25213 get: function get() { 25214 return _actions.goForward; 25215 } 25216}); 25217Object.defineProperty(exports, 'routerActions', { 25218 enumerable: true, 25219 get: function get() { 25220 return _actions.routerActions; 25221 } 25222}); 25223 25224var _sync = __webpack_require__(560); 25225 25226var _sync2 = _interopRequireDefault(_sync); 25227 25228var _middleware = __webpack_require__(561); 25229 25230var _middleware2 = _interopRequireDefault(_middleware); 25231 25232function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 25233 25234exports.syncHistoryWithStore = _sync2['default']; 25235exports.routerMiddleware = _middleware2['default']; 25236 25237/***/ }), 25238/* 129 */ 25239/***/ (function(module, exports, __webpack_require__) { 25240 25241"use strict"; 25242/* WEBPACK VAR INJECTION */(function(process) { 25243 25244var utils = __webpack_require__(26); 25245var normalizeHeaderName = __webpack_require__(579); 25246 25247var DEFAULT_CONTENT_TYPE = { 25248 'Content-Type': 'application/x-www-form-urlencoded' 25249}; 25250 25251function setContentTypeIfUnset(headers, value) { 25252 if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { 25253 headers['Content-Type'] = value; 25254 } 25255} 25256 25257function getDefaultAdapter() { 25258 var adapter; 25259 if (typeof XMLHttpRequest !== 'undefined') { 25260 // For browsers use XHR adapter 25261 adapter = __webpack_require__(347); 25262 } else if (typeof process !== 'undefined') { 25263 // For node use HTTP adapter 25264 adapter = __webpack_require__(347); 25265 } 25266 return adapter; 25267} 25268 25269var defaults = { 25270 adapter: getDefaultAdapter(), 25271 25272 transformRequest: [function transformRequest(data, headers) { 25273 normalizeHeaderName(headers, 'Content-Type'); 25274 if (utils.isFormData(data) || 25275 utils.isArrayBuffer(data) || 25276 utils.isBuffer(data) || 25277 utils.isStream(data) || 25278 utils.isFile(data) || 25279 utils.isBlob(data) 25280 ) { 25281 return data; 25282 } 25283 if (utils.isArrayBufferView(data)) { 25284 return data.buffer; 25285 } 25286 if (utils.isURLSearchParams(data)) { 25287 setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); 25288 return data.toString(); 25289 } 25290 if (utils.isObject(data)) { 25291 setContentTypeIfUnset(headers, 'application/json;charset=utf-8'); 25292 return JSON.stringify(data); 25293 } 25294 return data; 25295 }], 25296 25297 transformResponse: [function transformResponse(data) { 25298 /*eslint no-param-reassign:0*/ 25299 if (typeof data === 'string') { 25300 try { 25301 data = JSON.parse(data); 25302 } catch (e) { /* Ignore */ } 25303 } 25304 return data; 25305 }], 25306 25307 timeout: 0, 25308 25309 xsrfCookieName: 'XSRF-TOKEN', 25310 xsrfHeaderName: 'X-XSRF-TOKEN', 25311 25312 maxContentLength: -1, 25313 25314 validateStatus: function validateStatus(status) { 25315 return status >= 200 && status < 300; 25316 } 25317}; 25318 25319defaults.headers = { 25320 common: { 25321 'Accept': 'application/json, text/plain, */*' 25322 } 25323}; 25324 25325utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { 25326 defaults.headers[method] = {}; 25327}); 25328 25329utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { 25330 defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); 25331}); 25332 25333module.exports = defaults; 25334 25335/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(41))) 25336 25337/***/ }), 25338/* 130 */, 25339/* 131 */ 25340/***/ (function(module, exports, __webpack_require__) { 25341 25342"use strict"; 25343 25344 25345// currently used to initiate the velocity style object to 0 25346 25347 25348exports.__esModule = true; 25349exports['default'] = mapToZero; 25350 25351function mapToZero(obj) { 25352 var ret = {}; 25353 for (var key in obj) { 25354 if (Object.prototype.hasOwnProperty.call(obj, key)) { 25355 ret[key] = 0; 25356 } 25357 } 25358 return ret; 25359} 25360 25361module.exports = exports['default']; 25362 25363/***/ }), 25364/* 132 */ 25365/***/ (function(module, exports, __webpack_require__) { 25366 25367"use strict"; 25368 25369 25370// stepper is used a lot. Saves allocation to return the same array wrapper. 25371// This is fine and danger-free against mutations because the callsite 25372// immediately destructures it and gets the numbers inside without passing the 25373 25374 25375exports.__esModule = true; 25376exports["default"] = stepper; 25377 25378var reusedTuple = [0, 0]; 25379 25380function stepper(secondPerFrame, x, v, destX, k, b, precision) { 25381 // Spring stiffness, in kg / s^2 25382 25383 // for animations, destX is really spring length (spring at rest). initial 25384 // position is considered as the stretched/compressed position of a spring 25385 var Fspring = -k * (x - destX); 25386 25387 // Damping, in kg / s 25388 var Fdamper = -b * v; 25389 25390 // usually we put mass here, but for animation purposes, specifying mass is a 25391 // bit redundant. you could simply adjust k and b accordingly 25392 // let a = (Fspring + Fdamper) / mass; 25393 var a = Fspring + Fdamper; 25394 25395 var newV = v + a * secondPerFrame; 25396 var newX = x + newV * secondPerFrame; 25397 25398 if (Math.abs(newV) < precision && Math.abs(newX - destX) < precision) { 25399 reusedTuple[0] = destX; 25400 reusedTuple[1] = 0; 25401 return reusedTuple; 25402 } 25403 25404 reusedTuple[0] = newX; 25405 reusedTuple[1] = newV; 25406 return reusedTuple; 25407} 25408 25409module.exports = exports["default"]; 25410// array reference around. 25411 25412/***/ }), 25413/* 133 */ 25414/***/ (function(module, exports, __webpack_require__) { 25415 25416/* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.7.1 25417(function() { 25418 var getNanoSeconds, hrtime, loadTime; 25419 25420 if ((typeof performance !== "undefined" && performance !== null) && performance.now) { 25421 module.exports = function() { 25422 return performance.now(); 25423 }; 25424 } else if ((typeof process !== "undefined" && process !== null) && process.hrtime) { 25425 module.exports = function() { 25426 return (getNanoSeconds() - loadTime) / 1e6; 25427 }; 25428 hrtime = process.hrtime; 25429 getNanoSeconds = function() { 25430 var hr; 25431 hr = hrtime(); 25432 return hr[0] * 1e9 + hr[1]; 25433 }; 25434 loadTime = getNanoSeconds(); 25435 } else if (Date.now) { 25436 module.exports = function() { 25437 return Date.now() - loadTime; 25438 }; 25439 loadTime = Date.now(); 25440 } else { 25441 module.exports = function() { 25442 return new Date().getTime() - loadTime; 25443 }; 25444 loadTime = new Date().getTime(); 25445 } 25446 25447}).call(this); 25448 25449/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(41))) 25450 25451/***/ }), 25452/* 134 */ 25453/***/ (function(module, exports, __webpack_require__) { 25454 25455/* WEBPACK VAR INJECTION */(function(global) {var now = __webpack_require__(608) 25456 , root = typeof window === 'undefined' ? global : window 25457 , vendors = ['moz', 'webkit'] 25458 , suffix = 'AnimationFrame' 25459 , raf = root['request' + suffix] 25460 , caf = root['cancel' + suffix] || root['cancelRequest' + suffix] 25461 25462for(var i = 0; !raf && i < vendors.length; i++) { 25463 raf = root[vendors[i] + 'Request' + suffix] 25464 caf = root[vendors[i] + 'Cancel' + suffix] 25465 || root[vendors[i] + 'CancelRequest' + suffix] 25466} 25467 25468// Some versions of FF have rAF but not cAF 25469if(!raf || !caf) { 25470 var last = 0 25471 , id = 0 25472 , queue = [] 25473 , frameDuration = 1000 / 60 25474 25475 raf = function(callback) { 25476 if(queue.length === 0) { 25477 var _now = now() 25478 , next = Math.max(0, frameDuration - (_now - last)) 25479 last = next + _now 25480 setTimeout(function() { 25481 var cp = queue.slice(0) 25482 // Clear queue here to prevent 25483 // callbacks from appending listeners 25484 // to the current frame's queue 25485 queue.length = 0 25486 for(var i = 0; i < cp.length; i++) { 25487 if(!cp[i].cancelled) { 25488 try{ 25489 cp[i].callback(last) 25490 } catch(e) { 25491 setTimeout(function() { throw e }, 0) 25492 } 25493 } 25494 } 25495 }, Math.round(next)) 25496 } 25497 queue.push({ 25498 handle: ++id, 25499 callback: callback, 25500 cancelled: false 25501 }) 25502 return id 25503 } 25504 25505 caf = function(handle) { 25506 for(var i = 0; i < queue.length; i++) { 25507 if(queue[i].handle === handle) { 25508 queue[i].cancelled = true 25509 } 25510 } 25511 } 25512} 25513 25514module.exports = function(fn) { 25515 // Wrap in a new function to prevent 25516 // `cancel` potentially being assigned 25517 // to the native rAF function 25518 return raf.call(root, fn) 25519} 25520module.exports.cancel = function() { 25521 caf.apply(root, arguments) 25522} 25523module.exports.polyfill = function(object) { 25524 if (!object) { 25525 object = root; 25526 } 25527 object.requestAnimationFrame = raf 25528 object.cancelAnimationFrame = caf 25529} 25530 25531/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(68))) 25532 25533/***/ }), 25534/* 135 */ 25535/***/ (function(module, exports, __webpack_require__) { 25536 25537"use strict"; 25538 25539 25540// usage assumption: currentStyle values have already been rendered but it says 25541// nothing of whether currentStyle is stale (see unreadPropStyle) 25542 25543 25544exports.__esModule = true; 25545exports['default'] = shouldStopAnimation; 25546 25547function shouldStopAnimation(currentStyle, style, currentVelocity) { 25548 for (var key in style) { 25549 if (!Object.prototype.hasOwnProperty.call(style, key)) { 25550 continue; 25551 } 25552 25553 if (currentVelocity[key] !== 0) { 25554 return false;
vendor: 2,889 bytes, lines 25555-25674
25555 } 25556 25557 var styleValue = typeof style[key] === 'number' ? style[key] : style[key].val; 25558 // stepper will have already taken care of rounding precision errors, so 25559 // won't have such thing as 0.9999 !=== 1 25560 if (currentStyle[key] !== styleValue) { 25561 return false; 25562 } 25563 } 25564 25565 return true; 25566} 25567 25568module.exports = exports['default']; 25569 25570/***/ }), 25571/* 136 */ 25572/***/ (function(module, exports, __webpack_require__) { 25573 25574"use strict"; 25575 25576 25577Object.defineProperty(exports, "__esModule", { 25578 value: true 25579}); 25580 25581var _Modal = __webpack_require__(618); 25582 25583var _Modal2 = _interopRequireDefault(_Modal); 25584 25585function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 25586 25587exports.default = _Modal2.default; 25588module.exports = exports['default']; 25589 25590/***/ }), 25591/* 137 */ 25592/***/ (function(module, exports, __webpack_require__) { 25593 25594// optional / simple context binding 25595var aFunction = __webpack_require__(638); 25596module.exports = function (fn, that, length) { 25597 aFunction(fn); 25598 if (that === undefined) return fn; 25599 switch (length) { 25600 case 1: return function (a) { 25601 return fn.call(that, a); 25602 }; 25603 case 2: return function (a, b) { 25604 return fn.call(that, a, b); 25605 }; 25606 case 3: return function (a, b, c) { 25607 return fn.call(that, a, b, c); 25608 }; 25609 } 25610 return function (/* ...args */) { 25611 return fn.apply(that, arguments); 25612 }; 25613}; 25614 25615 25616/***/ }), 25617/* 138 */ 25618/***/ (function(module, exports, __webpack_require__) { 25619 25620// 7.1.1 ToPrimitive(input [, PreferredType]) 25621var isObject = __webpack_require__(60); 25622// instead of the ES6 spec version, we didn't implement @@toPrimitive case 25623// and the second argument - flag - preferred type is a string 25624module.exports = function (it, S) { 25625 if (!isObject(it)) return it; 25626 var fn, val; 25627 if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 25628 if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; 25629 if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 25630 throw TypeError("Can't convert object to primitive value"); 25631}; 25632 25633 25634/***/ }), 25635/* 139 */ 25636/***/ (function(module, exports) { 25637 25638var toString = {}.toString; 25639 25640module.exports = function (it) { 25641 return toString.call(it).slice(8, -1); 25642}; 25643 25644 25645/***/ }), 25646/* 140 */ 25647/***/ (function(module, exports) { 25648 25649// 7.2.1 RequireObjectCoercible(argument) 25650module.exports = function (it) { 25651 if (it == undefined) throw TypeError("Can't call method on " + it); 25652 return it; 25653}; 25654 25655 25656/***/ }), 25657/* 141 */ 25658/***/ (function(module, exports) { 25659 25660// 7.1.4 ToInteger 25661var ceil = Math.ceil; 25662var floor = Math.floor; 25663module.exports = function (it) { 25664 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 25665}; 25666 25667 25668/***/ }), 25669/* 142 */ 25670/***/ (function(module, exports, __webpack_require__) { 25671 25672var shared = __webpack_require__(143)('keys'); 25673var uid = __webpack_require__(92); 25674module.exports = function (key) {
vendor: 7,660 bytes, lines 25675-25900
25675 return shared[key] || (shared[key] = uid(key)); 25676}; 25677 25678 25679/***/ }), 25680/* 143 */ 25681/***/ (function(module, exports, __webpack_require__) { 25682 25683var core = __webpack_require__(28); 25684var global = __webpack_require__(38); 25685var SHARED = '__core-js_shared__'; 25686var store = global[SHARED] || (global[SHARED] = {}); 25687 25688(module.exports = function (key, value) { 25689 return store[key] || (store[key] = value !== undefined ? value : {}); 25690})('versions', []).push({ 25691 version: core.version, 25692 mode: __webpack_require__(91) ? 'pure' : 'global', 25693 copyright: '© 2018 Denis Pushkarev (zloirock.ru)' 25694}); 25695 25696 25697/***/ }), 25698/* 144 */ 25699/***/ (function(module, exports) { 25700 25701// IE 8- don't enum bug keys 25702module.exports = ( 25703 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' 25704).split(','); 25705 25706 25707/***/ }), 25708/* 145 */ 25709/***/ (function(module, exports) { 25710 25711exports.f = Object.getOwnPropertySymbols; 25712 25713 25714/***/ }), 25715/* 146 */ 25716/***/ (function(module, exports, __webpack_require__) { 25717 25718// 7.1.13 ToObject(argument) 25719var defined = __webpack_require__(140); 25720module.exports = function (it) { 25721 return Object(defined(it)); 25722}; 25723 25724 25725/***/ }), 25726/* 147 */ 25727/***/ (function(module, exports, __webpack_require__) { 25728 25729"use strict"; 25730 25731 25732exports.__esModule = true; 25733 25734var _iterator = __webpack_require__(642); 25735 25736var _iterator2 = _interopRequireDefault(_iterator); 25737 25738var _symbol = __webpack_require__(653); 25739 25740var _symbol2 = _interopRequireDefault(_symbol); 25741 25742var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; }; 25743 25744function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 25745 25746exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { 25747 return typeof obj === "undefined" ? "undefined" : _typeof(obj); 25748} : function (obj) { 25749 return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); 25750}; 25751 25752/***/ }), 25753/* 148 */ 25754/***/ (function(module, exports, __webpack_require__) { 25755 25756// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 25757var anObject = __webpack_require__(59); 25758var dPs = __webpack_require__(646); 25759var enumBugKeys = __webpack_require__(144); 25760var IE_PROTO = __webpack_require__(142)('IE_PROTO'); 25761var Empty = function () { /* empty */ }; 25762var PROTOTYPE = 'prototype'; 25763 25764// Create object with fake `null` prototype: use iframe Object with cleared prototype 25765var createDict = function () { 25766 // Thrash, waste and sodomy: IE GC bug 25767 var iframe = __webpack_require__(362)('iframe'); 25768 var i = enumBugKeys.length; 25769 var lt = '<'; 25770 var gt = '>'; 25771 var iframeDocument; 25772 iframe.style.display = 'none'; 25773 __webpack_require__(647).appendChild(iframe); 25774 iframe.src = 'javascript:'; // eslint-disable-line no-script-url 25775 // createDict = iframe.contentWindow.Object; 25776 // html.removeChild(iframe); 25777 iframeDocument = iframe.contentWindow.document; 25778 iframeDocument.open(); 25779 iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); 25780 iframeDocument.close(); 25781 createDict = iframeDocument.F; 25782 while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; 25783 return createDict(); 25784}; 25785 25786module.exports = Object.create || function create(O, Properties) { 25787 var result; 25788 if (O !== null) { 25789 Empty[PROTOTYPE] = anObject(O); 25790 result = new Empty(); 25791 Empty[PROTOTYPE] = null; 25792 // add "__proto__" for Object.getPrototypeOf polyfill 25793 result[IE_PROTO] = O; 25794 } else result = createDict(); 25795 return Properties === undefined ? result : dPs(result, Properties); 25796}; 25797 25798 25799/***/ }), 25800/* 149 */ 25801/***/ (function(module, exports, __webpack_require__) { 25802 25803var def = __webpack_require__(45).f; 25804var has = __webpack_require__(46); 25805var TAG = __webpack_require__(33)('toStringTag'); 25806 25807module.exports = function (it, tag, stat) { 25808 if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); 25809}; 25810 25811 25812/***/ }), 25813/* 150 */ 25814/***/ (function(module, exports, __webpack_require__) { 25815 25816exports.f = __webpack_require__(33); 25817 25818 25819/***/ }), 25820/* 151 */ 25821/***/ (function(module, exports, __webpack_require__) { 25822 25823var global = __webpack_require__(38); 25824var core = __webpack_require__(28); 25825var LIBRARY = __webpack_require__(91); 25826var wksExt = __webpack_require__(150); 25827var defineProperty = __webpack_require__(45).f; 25828module.exports = function (name) { 25829 var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); 25830 if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); 25831}; 25832 25833 25834/***/ }), 25835/* 152 */ 25836/***/ (function(module, __webpack_exports__, __webpack_require__) { 25837 25838"use strict"; 25839/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 25840/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__); 25841/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 25842/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__); 25843/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__ = __webpack_require__(5); 25844/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__); 25845/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2); 25846/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__); 25847/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0); 25848/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__); 25849 25850 25851 25852 25853 25854 25855var propTypes = { 25856 label: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string.isRequired, 25857 onClick: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func 25858}; 25859 25860var defaultProps = { 25861 label: 'Close' 25862}; 25863 25864var CloseButton = function (_React$Component) { 25865 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default()(CloseButton, _React$Component); 25866 25867 function CloseButton() { 25868 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, CloseButton); 25869 25870 return __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 25871 } 25872 25873 CloseButton.prototype.render = function render() { 25874 var _props = this.props, 25875 label = _props.label, 25876 onClick = _props.onClick; 25877 25878 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( 25879 'button', 25880 { 25881 type: 'button', 25882 className: 'close', 25883 onClick: onClick 25884 }, 25885 __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( 25886 'span', 25887 { 'aria-hidden': 'true' }, 25888 '\xD7' 25889 ), 25890 __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( 25891 'span', 25892 { className: 'sr-only' }, 25893 label 25894 ) 25895 ); 25896 }; 25897 25898 return CloseButton; 25899}(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component); 25900
25901CloseButton.propTypes = propTypes; 25902CloseButton.defaultProps = defaultProps; 25903 25904/* harmony default export */ __webpack_exports__["a"] = (CloseButton); 25905 25906/***/ }), 25907/* 153 */ 25908/***/ (function(module, __webpack_exports__, __webpack_require__) { 25909 25910"use strict"; 25911/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 25912/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 25913/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 25914/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 25915/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 25916/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 25917/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 25918/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 25919/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 25920/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 25921/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 25922/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 25923/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 25924/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 25925/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 25926/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 25927/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_all__ = __webpack_require__(94); 25928/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_all___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_all__); 25929/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Button__ = __webpack_require__(74); 25930/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__ = __webpack_require__(9); 25931 25932 25933 25934 25935 25936 25937 25938 25939 25940 25941 25942 25943 25944var propTypes = { 25945 vertical: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 25946 justified: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 25947 25948 /** 25949 * Display block buttons; only useful when used with the "vertical" prop. 25950 * @type {bool} 25951 */ 25952 block: __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_all___default()(__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, function (_ref) { 25953 var block = _ref.block, 25954 vertical = _ref.vertical; 25955 return block && !vertical ? new Error('`block` requires `vertical` to be set to have any effect') : null; 25956 }) 25957}; 25958 25959var defaultProps = { 25960 block: false, 25961 justified: false, 25962 vertical: false 25963}; 25964 25965var ButtonGroup = function (_React$Component) { 25966 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(ButtonGroup, _React$Component); 25967 25968 function ButtonGroup() { 25969 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, ButtonGroup); 25970 25971 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 25972 } 25973 25974 ButtonGroup.prototype.render = function render() { 25975 var _extends2; 25976 25977 var _props = this.props, 25978 block = _props.block, 25979 justified = _props.justified, 25980 vertical = _props.vertical, 25981 className = _props.className, 25982 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['block', 'justified', 'vertical', 'className']); 25983 25984 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["splitBsProps"])(props), 25985 bsProps = _splitBsProps[0], 25986 elementProps = _splitBsProps[1]; 25987 25988 var classes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["prefix"])(bsProps)] = !vertical, _extends2[Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["prefix"])(bsProps, 'vertical')] = vertical, _extends2[Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["prefix"])(bsProps, 'justified')] = justified, _extends2[Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["prefix"])(__WEBPACK_IMPORTED_MODULE_9__Button__["a" /* default */].defaultProps, 'block')] = block, _extends2)); 25989 25990 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('div', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 25991 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 25992 })); 25993 }; 25994 25995 return ButtonGroup; 25996}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 25997
25998ButtonGroup.propTypes = propTypes; 25999ButtonGroup.defaultProps = defaultProps; 26000 26001/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["bsClass"])('btn-group', ButtonGroup)); 26002 26003/***/ }), 26004/* 154 */ 26005/***/ (function(module, __webpack_exports__, __webpack_require__) { 26006 26007"use strict"; 26008/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 26009/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 26010/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 26011/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 26012/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 26013/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 26014/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 26015/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 26016/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 26017/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 26018/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 26019/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 26020/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 26021/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 26022/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 26023/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 26024/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 26025 26026 26027 26028 26029 26030 26031 26032 26033 26034 26035 26036var propTypes = { 26037 /** 26038 * An icon name without "glyphicon-" prefix. See e.g. http://getbootstrap.com/components/#glyphicons 26039 */ 26040 glyph: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string.isRequired 26041}; 26042 26043var Glyphicon = function (_React$Component) { 26044 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Glyphicon, _React$Component); 26045 26046 function Glyphicon() { 26047 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Glyphicon); 26048 26049 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 26050 } 26051 26052 Glyphicon.prototype.render = function render() { 26053 var _extends2; 26054 26055 var _props = this.props, 26056 glyph = _props.glyph, 26057 className = _props.className, 26058 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['glyph', 'className']); 26059 26060 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["splitBsProps"])(props), 26061 bsProps = _splitBsProps[0], 26062 elementProps = _splitBsProps[1]; 26063 26064 var classes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["prefix"])(bsProps, glyph)] = true, _extends2)); 26065 26066 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('span', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 26067 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 26068 })); 26069 }; 26070 26071 return Glyphicon; 26072}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 26073
26074Glyphicon.propTypes = propTypes; 26075 26076/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsClass"])('glyphicon', Glyphicon)); 26077 26078/***/ }), 26079/* 155 */ 26080/***/ (function(module, __webpack_exports__, __webpack_require__) { 26081 26082"use strict"; 26083/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 26084/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 26085/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 26086/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 26087/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 26088/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 26089/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 26090/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 26091/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 26092/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 26093/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 26094/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 26095/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_dom_helpers_style__ = __webpack_require__(95); 26096/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_dom_helpers_style___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_dom_helpers_style__); 26097/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react__ = __webpack_require__(0); 26098/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react__); 26099/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types__ = __webpack_require__(2); 26100/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types__); 26101/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_overlays_lib_Transition__ = __webpack_require__(379); 26102/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_overlays_lib_Transition___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_react_overlays_lib_Transition__); 26103/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_capitalize__ = __webpack_require__(376); 26104/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__utils_createChainedFunction__ = __webpack_require__(16); 26105 26106 26107 26108 26109 26110 26111 26112 26113 26114 26115 26116 26117 26118 26119var MARGINS = { 26120 height: ['marginTop', 'marginBottom'], 26121 width: ['marginLeft', 'marginRight'] 26122}; 26123 26124// reading a dimension prop will cause the browser to recalculate, 26125// which will let our animations work 26126function triggerBrowserReflow(node) { 26127 node.offsetHeight; // eslint-disable-line no-unused-expressions 26128} 26129 26130function getDimensionValue(dimension, elem) { 26131 var value = elem['offset' + Object(__WEBPACK_IMPORTED_MODULE_10__utils_capitalize__["a" /* default */])(dimension)]; 26132 var margins = MARGINS[dimension]; 26133 26134 return value + parseInt(__WEBPACK_IMPORTED_MODULE_6_dom_helpers_style___default()(elem, margins[0]), 10) + parseInt(__WEBPACK_IMPORTED_MODULE_6_dom_helpers_style___default()(elem, margins[1]), 10); 26135} 26136 26137var propTypes = { 26138 /** 26139 * Show the component;
26139 triggers the expand or collapse animation 26140 */ 26141 in: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, 26142 26143 /** 26144 * Wait until the first "enter" transition to mount the component (add it to the DOM) 26145 */ 26146 mountOnEnter: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, 26147 26148 /** 26149 * Unmount the component (remove it from the DOM) when it is collapsed 26150 */ 26151 unmountOnExit: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, 26152 26153 /** 26154 * Run the expand animation when the component mounts, if it is initially 26155 * shown 26156 */ 26157 transitionAppear: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, 26158 26159 /** 26160 * Duration of the collapse animation in milliseconds, to ensure that 26161 * finishing callbacks are fired even if the original browser transition end 26162 * events are canceled 26163 */ 26164 timeout: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number, 26165 26166 /** 26167 * Callback fired before the component expands 26168 */ 26169 onEnter: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, 26170 /** 26171 * Callback fired after the component starts to expand 26172 */ 26173 onEntering: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, 26174 /** 26175 * Callback fired after the component has expanded 26176 */ 26177 onEntered: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, 26178 /** 26179 * Callback fired before the component collapses 26180 */ 26181 onExit: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, 26182 /** 26183 * Callback fired after the component starts to collapse 26184 */ 26185 onExiting: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, 26186 /** 26187 * Callback fired after the component has collapsed 26188 */ 26189 onExited: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, 26190 26191 /** 26192 * The dimension used when collapsing, or a function that returns the 26193 * dimension 26194 * 26195 * _Note: Bootstrap only partially supports 'width'! 26196 * You will need to supply your own CSS animation for the `.width` CSS class._ 26197 */ 26198 dimension: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOf(['height', 'width']), __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func]), 26199 26200 /** 26201 * Function that returns the height or width of the animating DOM node 26202 * 26203 * Allows for providing some custom logic for how much the Collapse component 26204 * should animate in its specified dimension. Called with the current 26205 * dimension prop value and the DOM node. 26206 */ 26207 getDimensionValue: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, 26208 26209 /** 26210 * ARIA role of collapsible element 26211 */ 26212 role: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string 26213}; 26214 26215var defaultProps = { 26216 in: false, 26217 timeout: 300, 26218 mountOnEnter: false, 26219 unmountOnExit: false, 26220 transitionAppear: false, 26221 26222 dimension: 'height', 26223 getDimensionValue: getDimensionValue 26224}; 26225 26226var Collapse = function (_React$Component) { 26227 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Collapse, _React$Component); 26228 26229 function Collapse(props, context) { 26230 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Collapse); 26231 26232 var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props, context)); 26233 26234 _this.handleEnter = _this.handleEnter.bind(_this); 26235 _this.handleEntering = _this.handleEntering.bind(_this); 26236 _this.handleEntered = _this.handleEntered.bind(_this); 26237 _this.handleExit = _this.handleExit.bind(_this); 26238 _this.handleExiting = _this.handleExiting.bind(_this); 26239 return _this; 26240 } 26241 26242 Collapse.prototype._dimension = function _dimension() { 26243 return typeof this.props.dimension === 'function' ? this.props.dimension() : this.props.dimension; 26244 }; 26245 26246 // for testing 26247 26248 26249 Collapse.prototype._getScrollDimensionValue = function _getScrollDimensionValue(elem, dimension) { 26250 return elem['scroll' + Object(__WEBPACK_IMPORTED_MODULE_10__utils_capitalize__["a" /* default */])(dimension)] + 'px'; 26251 }; 26252 26253 /* -- Expanding -- */ 26254 26255 26256 Collapse.prototype.handleEnter = function handleEnter(elem) { 26257 var dimension = this._dimension(); 26258 elem.style[dimension] = '0'; 26259 }; 26260 26261 Collapse.prototype.handleEntered = function handleEntered(elem) { 26262 var dimension = this._dimension(); 26263 elem.style[dimension] = null; 26264 }; 26265 26266 Collapse.prototype.handleEntering = function handleEntering(elem) { 26267 var dimension = this._dimension(); 26268 elem.style[dimension] = this._getScrollDimensionValue(elem, dimension); 26269 }; 26270 26271 /* -- Collapsing -- */ 26272 26273 26274 Collapse.prototype.handleExit = function handleExit(elem) { 26275 var dimension = this._dimension(); 26276 elem.style[dimension] = this.props.getDimensionValue(dimension, elem) + 'px'; 26277 triggerBrowserReflow(elem); 26278 }; 26279 26280 Collapse.prototype.handleExiting = function handleExiting(elem) { 26281 var dimension = this._dimension(); 26282 elem.style[dimension] = '0'; 26283 }; 26284 26285 Collapse.prototype.render = function render() { 26286 var _props = this.props, 26287 onEnter = _props.onEnter, 26288 onEntering = _props.onEntering, 26289 onEntered = _props.onEntered, 26290 onExit = _props.onExit, 26291 onExiting = _props.onExiting, 26292 className = _props.className, 26293 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'className']); 26294 26295 delete props.dimension; 26296 delete props.getDimensionValue; 26297 26298 var handleEnter = Object(__WEBPACK_IMPORTED_MODULE_11__utils_createChainedFunction__["a" /* default */])(this.handleEnter, onEnter); 26299 var handleEntering = Object(__WEBPACK_IMPORTED_MODULE_11__utils_createChainedFunction__["a" /* default */])(this.handleEntering, onEntering); 26300 var handleEntered = Object(__WEBPACK_IMPORTED_MODULE_11__utils_createChainedFunction__["a" /* default */])(this.handleEntered, onEntered); 26301 var handleExit = Object(__WEBPACK_IMPORTED_MODULE_11__utils_createChainedFunction__["a" /* default */])(this.handleExit, onExit); 26302 var handleExiting = Object(__WEBPACK_IMPORTED_MODULE_11__utils_createChainedFunction__["a" /* default */])(this.handleExiting, onExiting); 26303 26304 var classes = { 26305 width: this._dimension() === 'width' 26306 }; 26307 26308 return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_react_overlays_lib_Transition___default.a, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, { 26309 'aria-expanded': props.role ? props.in : null, 26310 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes), 26311 exitedClassName: 'collapse', 26312 exitingClassName: 'collapsing', 26313 enteredClassName: 'collapse in', 26314 enteringClassName: 'collapsing', 26315 onEnter: handleEnter, 26316 onEntering: handleEntering, 26317 onEntered: handleEntered, 26318 onExit: handleExit, 26319 onExiting: handleExiting 26320 })); 26321 }; 26322 26323 return Collapse; 26324}(__WEBPACK_IMPORTED_MODULE_7_react___default.a.Component); 26325
26326Collapse.propTypes = propTypes; 26327Collapse.defaultProps = defaultProps; 26328 26329/* harmony default export */ __webpack_exports__["a"] = (Collapse); 26330 26331/***/ }), 26332/* 156 */ 26333/***/ (function(module, exports) { 26334 26335// Source: http://jsfiddle.net/vWx8V/ 26336// http://stackoverflow.com/questions/5603195/full-list-of-javascript-keycodes 26337 26338/** 26339 * Conenience method returns corresponding value for given keyName or keyCode. 26340 * 26341 * @param {Mixed} keyCode {Number} or keyName {String} 26342 * @return {Mixed} 26343 * @api public 26344 */ 26345 26346function keyCode(searchInput) { 26347 // Keyboard Events 26348 if (searchInput && 'object' === typeof searchInput) { 26349 var hasKeyCode = searchInput.which || searchInput.keyCode || searchInput.charCode 26350 if (hasKeyCode) searchInput = hasKeyCode 26351 } 26352 26353 // Numbers 26354 if ('number' === typeof searchInput) return names[searchInput] 26355 26356 // Everything else (cast to string) 26357 var search = String(searchInput) 26358 26359 // check codes 26360 var foundNamedKey = codes[search.toLowerCase()] 26361 if (foundNamedKey) return foundNamedKey 26362 26363 // check aliases 26364 var foundNamedKey = aliases[search.toLowerCase()] 26365 if (foundNamedKey) return foundNamedKey 26366 26367 // weird character? 26368 if (search.length === 1) return search.charCodeAt(0) 26369 26370 return undefined 26371} 26372 26373/** 26374 * Compares a keyboard event with a given keyCode or keyName. 26375 * 26376 * @param {Event} event Keyboard event that should be tested 26377 * @param {Mixed} keyCode {Number} or keyName {String} 26378 * @return {Boolean} 26379 * @api public 26380 */ 26381keyCode.isEventKey = function isEventKey(event, nameOrCode) { 26382 if (event && 'object' === typeof event) { 26383 var keyCode = event.which || event.keyCode || event.charCode 26384 if (keyCode === null || keyCode === undefined) { return false; } 26385 if (typeof nameOrCode === 'string') { 26386 // check codes 26387 var foundNamedKey = codes[nameOrCode.toLowerCase()] 26388 if (foundNamedKey) { return foundNamedKey === keyCode; } 26389 26390 // check aliases 26391 var foundNamedKey = aliases[nameOrCode.toLowerCase()] 26392 if (foundNamedKey) { return foundNamedKey === keyCode; } 26393 } else if (typeof nameOrCode === 'number') { 26394 return nameOrCode === keyCode; 26395 } 26396 return false; 26397 } 26398} 26399 26400exports = module.exports = keyCode; 26401 26402/** 26403 * Get by name 26404 * 26405 * exports.code['enter'] // => 13 26406 */ 26407 26408var codes = exports.code = exports.codes = { 26409 'backspace': 8, 26410 'tab': 9, 26411 'enter': 13, 26412 'shift': 16, 26413 'ctrl': 17, 26414 'alt': 18, 26415 'pause/break': 19, 26416 'caps lock': 20, 26417 'esc': 27, 26418 'space': 32, 26419 'page up': 33, 26420 'page down': 34, 26421 'end': 35, 26422 'home': 36, 26423 'left': 37, 26424 'up': 38, 26425 'right': 39, 26426 'down': 40, 26427 'insert': 45, 26428 'delete': 46, 26429 'command': 91, 26430 'left command': 91, 26431 'right command': 93, 26432 'numpad *': 106, 26433 'numpad +': 107, 26434 'numpad -': 109, 26435 'numpad .': 110, 26436 'numpad /': 111, 26437 'num lock': 144, 26438 'scroll lock': 145, 26439 'my computer': 182, 26440 'my calculator': 183, 26441 ';': 186, 26442 '=': 187, 26443 ',': 188, 26444 '-': 189, 26445 '.': 190, 26446 '/': 191, 26447 '`': 192, 26448 '[': 219, 26449 '\\': 220, 26450 ']': 221, 26451 "'": 222 26452} 26453 26454// Helper aliases 26455 26456var aliases = exports.aliases = { 26457 'windows': 91, 26458 'â§': 16, 26459 'â¥': 18, 26460 'â': 17, 26461 'â': 91, 26462 'ctl': 17, 26463 'control': 17, 26464 'option': 18, 26465 'pause': 19, 26466 'break': 19, 26467 'caps': 20, 26468 'return': 13, 26469 'escape': 27, 26470 'spc': 32, 26471 'spacebar': 32, 26472 'pgup': 33, 26473 'pgdn': 34, 26474 'ins': 45, 26475 'del': 46, 26476 'cmd': 91 26477} 26478 26479/*! 26480 * Programatically add the following 26481 */ 26482 26483// lower case chars 26484for (i = 97; i < 123; i++) codes[String.fromCharCode(i)] = i - 32 26485 26486// numbers 26487for (var i = 48; i < 58; i++) codes[i - 48] = i 26488 26489// function keys 26490for (i = 1; i < 13; i++) codes['f'+i] = i + 111 26491 26492// numpad keys 26493for (i = 0; i < 10; i++) codes['numpad '+i] = i + 96 26494 26495/** 26496 * Get by code 26497 * 26498 * exports.name[13] // => 'Enter' 26499 */ 26500 26501var names = exports.names = exports.title = {} // title for backward compat 26502 26503// Create reverse mapping 26504for (i in codes) names[codes[i]] = i 26505 26506// Add aliases 26507for (var alias in aliases) { 26508 codes[alias] = aliases[alias] 26509} 26510 26511 26512/***/ }), 26513/* 157 */ 26514/***/ (function(module, exports, __webpack_require__) { 26515 26516"use strict"; 26517 26518 26519Object.defineProperty(exports, "__esModule", { 26520 value: true 26521}); 26522 26523var _inDOM = __webpack_require__(39); 26524 26525var _inDOM2 = _interopRequireDefault(_inDOM); 26526 26527function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 26528 26529var off = function off() {}; 26530if (_inDOM2.default) { 26531 off = function () { 26532 if (document.addEventListener) return function (node, eventName, handler, capture) { 26533 return node.removeEventListener(eventName, handler, capture || false); 26534 };else if (document.attachEvent) return function (node, eventName, handler) { 26535 return node.detachEvent('on' + eventName, handler); 26536 }; 26537 }(); 26538} 26539 26540exports.default = off; 26541module.exports = exports['default']; 26542 26543/***/ }), 26544/* 158 */ 26545/***/ (function(module, __webpack_exports__, __webpack_require__) { 26546 26547"use strict"; 26548/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 26549/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__); 26550/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 26551/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); 26552/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 26553/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); 26554/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(5); 26555/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); 26556/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0); 26557/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__); 26558/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(2); 26559/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__); 26560/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_uncontrollable__ = __webpack_require__(75); 26561/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_uncontrollable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_uncontrollable__); 26562 26563 26564 26565 26566 26567 26568 26569 26570var TAB = 'tab'; 26571var PANE = 'pane'; 26572 26573var idPropType = __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number]); 26574 26575var propTypes = { 26576 /** 26577 * HTML id attribute, required if no `generateChildId` prop 26578 * is specified. 26579 */
26580 id: function id(props) { 26581 var error = null; 26582 26583 if (!props.generateChildId) { 26584 for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { 26585 args[_key - 1] = arguments[_key]; 26586 } 26587 26588 error = idPropType.apply(undefined, [props].concat(args)); 26589 26590 if (!error && !props.id) { 26591 error = new Error('In order to properly initialize Tabs in a way that is accessible ' + 'to assistive technologies (such as screen readers) an `id` or a ' + '`generateChildId` prop to TabContainer is required'); 26592 } 26593 } 26594 26595 return error; 26596 }, 26597 26598 26599 /** 26600 * A function that takes an `eventKey` and `type` and returns a unique id for 26601 * child tab `<NavItem>`s and `<TabPane>`s. The function _must_ be a pure 26602 * function, meaning it should always return the _same_ id for the same set 26603 * of inputs. The default value requires that an `id` to be set for the 26604 * `<TabContainer>`. 26605 * 26606 * The `type` argument will either be `"tab"` or `"pane"`. 26607 * 26608 * @defaultValue (eventKey, type) => `${this.props.id}-${type}-${key}` 26609 */ 26610 generateChildId: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, 26611 26612 /** 26613 * A callback fired when a tab is selected. 26614 * 26615 * @controllable activeKey 26616 */ 26617 onSelect: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, 26618 26619 /** 26620 * The `eventKey` of the currently active tab. 26621 * 26622 * @controllable onSelect 26623 */ 26624 activeKey: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any 26625}; 26626 26627var childContextTypes = { 26628 $bs_tabContainer: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.shape({ 26629 activeKey: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any, 26630 onSelect: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func.isRequired, 26631 getTabId: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func.isRequired, 26632 getPaneId: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func.isRequired 26633 }) 26634}; 26635 26636var TabContainer = function (_React$Component) { 26637 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(TabContainer, _React$Component); 26638 26639 function TabContainer() { 26640 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, TabContainer); 26641 26642 return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 26643 } 26644 26645 TabContainer.prototype.getChildContext = function getChildContext() { 26646 var _props = this.props, 26647 activeKey = _props.activeKey, 26648 onSelect = _props.onSelect, 26649 generateChildId = _props.generateChildId, 26650 id = _props.id; 26651 26652 26653 var getId = generateChildId || function (key, type) { 26654 return id ? id + '-' + type + '-' + key : null; 26655 }; 26656 26657 return { 26658 $bs_tabContainer: { 26659 activeKey: activeKey, 26660 onSelect: onSelect, 26661 getTabId: function getTabId(key) { 26662 return getId(key, TAB); 26663 }, 26664 getPaneId: function getPaneId(key) { 26665 return getId(key, PANE); 26666 } 26667 } 26668 }; 26669 }; 26670 26671 TabContainer.prototype.render = function render() { 26672 var _props2 = this.props, 26673 children = _props2.children, 26674 props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_props2, ['children']); 26675 26676 delete props.generateChildId; 26677 delete props.onSelect; 26678 delete props.activeKey; 26679 26680 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Children.only(children), props); 26681 }; 26682 26683 return TabContainer; 26684}(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component); 26685 26686TabContainer.propTypes = propTypes; 26687TabContainer.childContextTypes = childContextTypes; 26688 26689/* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_6_uncontrollable___default()(TabContainer, { activeKey: 'onSelect' })); 26690 26691/***/ }), 26692/* 159 */ 26693/***/ (function(module, __webpack_exports__, __webpack_require__) { 26694 26695"use strict"; 26696/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 26697/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 26698/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 26699/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 26700/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 26701/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 26702/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 26703/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 26704/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 26705/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 26706/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 26707/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 26708/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 26709/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 26710/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 26711/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 26712/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__ = __webpack_require__(13); 26713/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__); 26714/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 26715 26716 26717 26718 26719 26720 26721 26722 26723 26724 26725 26726 26727var propTypes = { 26728 componentClass: __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default.a, 26729 26730 /**
26731 * Sets a default animation strategy for all children `<TabPane>`s. Use 26732 * `false` to disable, `true` to enable the default `<Fade>` animation or any 26733 * `<Transition>` component. 26734 */ 26735 animation: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default.a]), 26736 26737 /** 26738 * Wait until the first "enter" transition to mount tabs (add them to the DOM) 26739 */ 26740 mountOnEnter: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 26741 26742 /** 26743 * Unmount tabs (remove it from the DOM) when they are no longer visible 26744 */ 26745 unmountOnExit: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool 26746}; 26747 26748var defaultProps = { 26749 componentClass: 'div', 26750 animation: true, 26751 mountOnEnter: false, 26752 unmountOnExit: false 26753}; 26754 26755var contextTypes = { 26756 $bs_tabContainer: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.shape({ 26757 activeKey: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any 26758 }) 26759}; 26760 26761var childContextTypes = { 26762 $bs_tabContent: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.shape({ 26763 bsClass: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 26764 animation: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default.a]), 26765 activeKey: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any, 26766 mountOnEnter: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 26767 unmountOnExit: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 26768 onPaneEnter: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func.isRequired, 26769 onPaneExited: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func.isRequired, 26770 exiting: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool.isRequired 26771 }) 26772}; 26773 26774var TabContent = function (_React$Component) { 26775 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(TabContent, _React$Component); 26776 26777 function TabContent(props, context) { 26778 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, TabContent); 26779 26780 var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props, context)); 26781 26782 _this.handlePaneEnter = _this.handlePaneEnter.bind(_this); 26783 _this.handlePaneExited = _this.handlePaneExited.bind(_this); 26784 26785 // Active entries in state will be `null` unless `animation` is set. Need 26786 // to track active child in case keys swap and the active child changes 26787 // but the active key does not. 26788 _this.state = { 26789 activeKey: null, 26790 activeChild: null 26791 }; 26792 return _this; 26793 } 26794 26795 TabContent.prototype.getChildContext = function getChildContext() { 26796 var _props = this.props, 26797 bsClass = _props.bsClass, 26798 animation = _props.animation, 26799 mountOnEnter = _props.mountOnEnter, 26800 unmountOnExit = _props.unmountOnExit; 26801 26802 26803 var stateActiveKey = this.state.activeKey; 26804 var containerActiveKey = this.getContainerActiveKey(); 26805 26806 var activeKey = stateActiveKey != null ? stateActiveKey : containerActiveKey; 26807 var exiting = stateActiveKey != null && stateActiveKey !== containerActiveKey; 26808 26809 return { 26810 $bs_tabContent: { 26811 bsClass: bsClass, 26812 animation: animation, 26813 activeKey: activeKey, 26814 mountOnEnter: mountOnEnter, 26815 unmountOnExit: unmountOnExit, 26816 onPaneEnter: this.handlePaneEnter, 26817 onPaneExited: this.handlePaneExited, 26818 exiting: exiting 26819 } 26820 }; 26821 }; 26822 26823 TabContent.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { 26824 if (!nextProps.animation && this.state.activeChild) { 26825 this.setState({ activeKey: null, activeChild: null }); 26826 } 26827 }; 26828 26829 TabContent.prototype.componentWillUnmount = function componentWillUnmount() { 26830 this.isUnmounted = true; 26831 }; 26832 26833 TabContent.prototype.getContainerActiveKey = function getContainerActiveKey() { 26834 var tabContainer = this.context.$bs_tabContainer; 26835 return tabContainer && tabContainer.activeKey; 26836 }; 26837 26838 TabContent.prototype.handlePaneEnter = function handlePaneEnter(child, childKey) { 26839 if (!this.props.animation) { 26840 return false;
26841 } 26842 26843 // It's possible that this child should be transitioning out. 26844 if (childKey !== this.getContainerActiveKey()) { 26845 return false; 26846 } 26847 26848 this.setState({ 26849 activeKey: childKey, 26850 activeChild: child 26851 }); 26852 26853 return true; 26854 }; 26855 26856 TabContent.prototype.handlePaneExited = function handlePaneExited(child) { 26857 // This might happen as everything is unmounting. 26858 if (this.isUnmounted) { 26859 return; 26860 } 26861 26862 this.setState(function (_ref) { 26863 var activeChild = _ref.activeChild; 26864 26865 if (activeChild !== child) { 26866 return null; 26867 } 26868 26869 return { 26870 activeKey: null, 26871 activeChild: null 26872 }; 26873 }); 26874 }; 26875 26876 TabContent.prototype.render = function render() { 26877 var _props2 = this.props, 26878 Component = _props2.componentClass, 26879 className = _props2.className, 26880 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props2, ['componentClass', 'className']); 26881 26882 var _splitBsPropsAndOmit = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsPropsAndOmit"])(props, ['animation', 'mountOnEnter', 'unmountOnExit']), 26883 bsProps = _splitBsPropsAndOmit[0], 26884 elementProps = _splitBsPropsAndOmit[1]; 26885 26886 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 26887 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(bsProps, 'content')) 26888 })); 26889 }; 26890 26891 return TabContent; 26892}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 26893 26894TabContent.propTypes = propTypes; 26895TabContent.defaultProps = defaultProps; 26896TabContent.contextTypes = contextTypes; 26897TabContent.childContextTypes = childContextTypes; 26898 26899/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('tab', TabContent)); 26900 26901/***/ }), 26902/* 160 */ 26903/***/ (function(module, exports, __webpack_require__) { 26904 26905"use strict"; 26906/** 26907 * Copyright (c) 2013-present, Facebook, Inc. 26908 * 26909 * This source code is licensed under the MIT license found in the 26910 * LICENSE file in the root directory of this source tree. 26911 * 26912 */ 26913 26914 26915 26916var _prodInvariant = __webpack_require__(49), 26917 _assign = __webpack_require__(14); 26918 26919var ReactNoopUpdateQueue = __webpack_require__(161); 26920 26921var canDefineProperty = __webpack_require__(76); 26922var emptyObject = __webpack_require__(77); 26923var invariant = __webpack_require__(10); 26924var lowPriorityWarning = __webpack_require__(105); 26925 26926/** 26927 * Base class helpers for the updating state of a component. 26928 */ 26929function ReactComponent(props, context, updater) { 26930 this.props = props; 26931 this.context = context; 26932 this.refs = emptyObject; 26933 // We initialize the default updater but the real one gets injected by the 26934 // renderer. 26935 this.updater = updater || ReactNoopUpdateQueue; 26936} 26937 26938ReactComponent.prototype.isReactComponent = {}; 26939 26940/** 26941 * Sets a subset of the state. Always use this to mutate 26942 * state. You should treat `this.state` as immutable. 26943 * 26944 * There is no guarantee that `this.state` will be immediately updated, so 26945 * accessing `this.state` after calling this method may return the old value. 26946 * 26947 * There is no guarantee that calls to `setState` will run synchronously, 26948 * as they may eventually be batched together. You can provide an optional 26949 * callback that will be executed when the call to setState is actually 26950 * completed. 26951 * 26952 * When a function is provided to setState, it will be called at some point in 26953 * the future (not synchronously). It will be called with the up to date 26954 * component arguments (state, props, context). These values can be different 26955 * from this.* because your function may be called after receiveProps but before 26956 * shouldComponentUpdate, and this new state, props, and context will not yet be 26957 * assigned to this. 26958 * 26959 * @param {object|function} partialState Next partial state or function to 26960 * produce next partial state to be merged with current state. 26961 * @param {?function} callback Called after state is updated. 26962 * @final 26963 * @protected 26964 */ 26965ReactComponent.prototype.setState = function (partialState, callback) { 26966 !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? true ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : _prodInvariant('85') : void 0; 26967 this.updater.enqueueSetState(this, partialState); 26968 if (callback) { 26969 this.updater.enqueueCallback(this, callback, 'setState'); 26970 } 26971}; 26972 26973/** 26974 * Forces an update. This should only be invoked when it is known with 26975 * certainty that we are **not** in a DOM transaction. 26976 * 26977 * You may want to call this when you know that some deeper aspect of the 26978 * component's state has changed but `setState` was not called. 26979 * 26980 * This will not invoke `shouldComponentUpdate`, but it will invoke 26981 * `componentWillUpdate` and `componentDidUpdate`. 26982 * 26983 * @param {?function} callback Called after update is complete. 26984 * @final 26985 * @protected 26986 */ 26987ReactComponent.prototype.forceUpdate = function (callback) { 26988 this.updater.enqueueForceUpdate(this); 26989 if (callback) { 26990 this.updater.enqueueCallback(this, callback, 'forceUpdate'); 26991 } 26992}; 26993 26994/** 26995 * Deprecated APIs. These APIs used to exist on classic React classes but since 26996 * we would like to deprecate them, we're not going to move them over to this 26997 * modern base class. Instead, we define a getter that warns if it's accessed. 26998 */ 26999if (true) { 27000 var deprecatedAPIs = { 27001 isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
27002 replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).'] 27003 }; 27004 var defineDeprecationWarning = function (methodName, info) { 27005 if (canDefineProperty) { 27006 Object.defineProperty(ReactComponent.prototype, methodName, { 27007 get: function () { 27008 lowPriorityWarning(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]); 27009 return undefined; 27010 } 27011 }); 27012 } 27013 }; 27014 for (var fnName in deprecatedAPIs) { 27015 if (deprecatedAPIs.hasOwnProperty(fnName)) { 27016 defineDeprecationWarning(fnName, deprecatedAPIs[fnName]); 27017 } 27018 } 27019} 27020 27021/** 27022 * Base class helpers for the updating state of a component. 27023 */ 27024function ReactPureComponent(props, context, updater) { 27025 // Duplicated from ReactComponent. 27026 this.props = props; 27027 this.context = context; 27028 this.refs = emptyObject; 27029 // We initialize the default updater but the real one gets injected by the 27030 // renderer. 27031 this.updater = updater || ReactNoopUpdateQueue; 27032} 27033 27034function ComponentDummy() {} 27035ComponentDummy.prototype = ReactComponent.prototype; 27036ReactPureComponent.prototype = new ComponentDummy(); 27037ReactPureComponent.prototype.constructor = ReactPureComponent; 27038// Avoid an extra prototype jump for these methods. 27039_assign(ReactPureComponent.prototype, ReactComponent.prototype); 27040ReactPureComponent.prototype.isPureReactComponent = true; 27041 27042module.exports = { 27043 Component: ReactComponent, 27044 PureComponent: ReactPureComponent 27045}; 27046 27047/***/ }), 27048/* 161 */ 27049/***/ (function(module, exports, __webpack_require__) { 27050 27051"use strict"; 27052/** 27053 * Copyright (c) 2015-present, Facebook, Inc. 27054 * 27055 * This source code is licensed under the MIT license found in the 27056 * LICENSE file in the root directory of this source tree. 27057 * 27058 */ 27059 27060 27061 27062var warning = __webpack_require__(11); 27063 27064function warnNoop(publicInstance, callerName) { 27065 if (true) { 27066 var constructor = publicInstance.constructor; 27067 true ? warning(false, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : void 0; 27068 } 27069} 27070 27071/** 27072 * This is the abstract API for an update queue. 27073 */ 27074var ReactNoopUpdateQueue = { 27075 /** 27076 * Checks whether or not this composite component is mounted. 27077 * @param {ReactClass} publicInstance The instance we want to test. 27078 * @return {boolean} True if mounted, false otherwise. 27079 * @protected 27080 * @final 27081 */ 27082 isMounted: function (publicInstance) { 27083 return false; 27084 }, 27085 27086 /** 27087 * Enqueue a callback that will be executed after all the pending updates 27088 * have processed. 27089 * 27090 * @param {ReactClass} publicInstance The instance to use as `this` context. 27091 * @param {?function} callback Called after state is updated. 27092 * @internal 27093 */ 27094 enqueueCallback: function (publicInstance, callback) {}, 27095 27096 /** 27097 * Forces an update. This should only be invoked when it is known with 27098 * certainty that we are **not** in a DOM transaction. 27099 * 27100 * You may want to call this when you know that some deeper aspect of the 27101 * component's state has changed but `setState` was not called. 27102 * 27103 * This will not invoke `shouldComponentUpdate`, but it will invoke 27104 * `componentWillUpdate` and `componentDidUpdate`. 27105 * 27106 * @param {ReactClass} publicInstance The instance that should rerender. 27107 * @internal 27108 */ 27109 enqueueForceUpdate: function (publicInstance) { 27110 warnNoop(publicInstance, 'forceUpdate'); 27111 }, 27112 27113 /** 27114 * Replaces all of the state. Always use this or `setState` to mutate state. 27115 * You should treat `this.state` as immutable. 27116 * 27117 * There is no guarantee that `this.state` will be immediately updated, so 27118 * accessing `this.state` after calling this method may return the old value. 27119 * 27120 * @param {ReactClass} publicInstance The instance that should rerender. 27121 * @param {object} completeState Next state. 27122 * @internal 27123 */ 27124 enqueueReplaceState: function (publicInstance, completeState) { 27125 warnNoop(publicInstance, 'replaceState'); 27126 }, 27127 27128 /** 27129 * Sets a subset of the state. This only exists because _pendingState is 27130 * internal. This provides a merging strategy that is not available to deep 27131 * properties which is confusing. TODO: Expose pendingState or don't use it 27132 * during the merge. 27133 * 27134 * @param {ReactClass} publicInstance The instance that should rerender. 27135 * @param {object} partialState Next partial state to be merged with state. 27136 * @internal 27137 */ 27138 enqueueSetState: function (publicInstance, partialState) { 27139 warnNoop(publicInstance, 'setState'); 27140 } 27141}; 27142 27143module.exports = ReactNoopUpdateQueue; 27144 27145/***/ }), 27146/* 162 */ 27147/***/ (function(module, exports, __webpack_require__) { 27148 27149"use strict"; 27150/** 27151 * Copyright (c) 2014-present, Facebook, Inc. 27152 * 27153 * This source code is licensed under the MIT license found in the 27154 * LICENSE file in the root directory of this source tree. 27155 * 27156 * 27157 */ 27158 27159 27160 27161// The Symbol used to tag the ReactElement type. If there is no native Symbol 27162// nor polyfill, then a plain number is used for performance. 27163 27164var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7; 27165 27166module.exports = REACT_ELEMENT_TYPE; 27167 27168/***/ }), 27169/* 163 */ 27170/***/ (function(module, exports, __webpack_require__) { 27171 27172"use strict"; 27173/** 27174 * Copyright (c) 2013-present, Facebook, Inc. 27175 * 27176 * This source code is licensed under the MIT license found in the 27177 * LICENSE file in the root directory of this source tree. 27178 * 27179 * 27180 */ 27181 27182 27183 27184/* global Symbol */ 27185 27186var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; 27187var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. 27188 27189/** 27190 * Returns the iterator method function contained on the iterable object. 27191 * 27192 * Be sure to invoke the function with the iterable as context: 27193 * 27194 * var iteratorFn = getIteratorFn(myIterable); 27195 * if (iteratorFn) { 27196 * var iterator = iteratorFn.call(myIterable); 27197 * ... 27198 * } 27199 * 27200 * @param {?object} maybeIterable 27201 * @return {?function} 27202 */ 27203function getIteratorFn(maybeIterable) { 27204 var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); 27205 if (typeof iteratorFn === 'function') { 27206 return iteratorFn; 27207 } 27208} 27209 27210module.exports = getIteratorFn; 27211 27212/***/ }), 27213/* 164 */ 27214/***/ (function(module, exports, __webpack_require__) { 27215 27216"use strict"; 27217/** 27218 * Copyright (c) 2014-present, Facebook, Inc. 27219 * 27220 * This source code is licensed under the MIT license found in the 27221 * LICENSE file in the root directory of this source tree. 27222 * 27223 */ 27224 27225/** 27226 * ReactElementValidator provides a wrapper around a element factory 27227 * which validates the props passed to the element. This is intended to be 27228 * used only in DEV and could be replaced by a static type checker for languages 27229 * that support it. 27230 */ 27231 27232 27233 27234var ReactCurrentOwner = __webpack_require__(30); 27235var ReactComponentTreeHook = __webpack_require__(23); 27236var ReactElement = __webpack_require__(40); 27237 27238var checkReactTypeSpec = __webpack_require__(413); 27239 27240var canDefineProperty = __webpack_require__(76); 27241var getIteratorFn = __webpack_require__(163); 27242var warning = __webpack_require__(11); 27243var lowPriorityWarning = __webpack_require__(105); 27244 27245function getDeclarationErrorAddendum() { 27246 if (ReactCurrentOwner.current) { 27247 var name = ReactCurrentOwner.current.getName(); 27248 if (name) { 27249 return ' Check the render method of `' + name + '`.'; 27250 } 27251 } 27252 return ''; 27253} 27254 27255function getSourceInfoErrorAddendum(elementProps) { 27256 if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) { 27257 var source = elementProps.__source; 27258 var fileName = source.fileName.replace(/^.*[\\\/]/, ''); 27259 var lineNumber = source.lineNumber; 27260 return ' Check your code at ' + fileName + ':' + lineNumber + '.'; 27261 } 27262 return ''; 27263} 27264 27265/** 27266 * Warn if there's no key explicitly set on dynamic arrays of children or 27267 * object keys are not valid. This allows us to keep track of children between 27268 * updates. 27269 */ 27270var ownerHasKeyUseWarning = {}; 27271
27272function getCurrentComponentErrorInfo(parentType) { 27273 var info = getDeclarationErrorAddendum(); 27274 27275 if (!info) { 27276 var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name; 27277 if (parentName) { 27278 info = ' Check the top-level render call using <' + parentName + '>.'; 27279 } 27280 } 27281 return info; 27282} 27283 27284/** 27285 * Warn if the element doesn't have an explicit key assigned to it. 27286 * This element is in an array. The array could grow and shrink or be 27287 * reordered. All children that haven't already been validated are required to 27288 * have a "key" property assigned to it. Error statuses are cached so a warning 27289 * will only be shown once. 27290 * 27291 * @internal 27292 * @param {ReactElement} element Element that requires a key. 27293 * @param {*} parentType element's parent's type. 27294 */ 27295function validateExplicitKey(element, parentType) { 27296 if (!element._store || element._store.validated || element.key != null) { 27297 return; 27298 } 27299 element._store.validated = true; 27300 27301 var memoizer = ownerHasKeyUseWarning.uniqueKey || (ownerHasKeyUseWarning.uniqueKey = {}); 27302 27303 var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); 27304 if (memoizer[currentComponentErrorInfo]) { 27305 return; 27306 } 27307 memoizer[currentComponentErrorInfo] = true; 27308 27309 // Usually the current owner is the offender, but if it accepts children as a 27310 // property, it may be the creator of the child that's responsible for 27311 // assigning it a key. 27312 var childOwner = ''; 27313 if (element && element._owner && element._owner !== ReactCurrentOwner.current) { 27314 // Give the component that originally created this child. 27315 childOwner = ' It was passed a child from ' + element._owner.getName() + '.'; 27316 } 27317 27318 true ? warning(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, ReactComponentTreeHook.getCurrentStackAddendum(element)) : void 0; 27319} 27320 27321/** 27322 * Ensure that every element either is passed in a static location, in an 27323 * array with an explicit keys property defined, or in an object literal 27324 * with valid key property. 27325 * 27326 * @internal 27327 * @param {ReactNode} node Statically passed child of any type. 27328 * @param {*} parentType node's parent's type. 27329 */ 27330function validateChildKeys(node, parentType) { 27331 if (typeof node !== 'object') { 27332 return; 27333 } 27334 if (Array.isArray(node)) { 27335 for (var i = 0; i < node.length; i++) { 27336 var child = node[i]; 27337 if (ReactElement.isValidElement(child)) { 27338 validateExplicitKey(child, parentType); 27339 } 27340 } 27341 } else if (ReactElement.isValidElement(node)) { 27342 // This element was passed in a valid location. 27343 if (node._store) { 27344 node._store.validated = true; 27345 } 27346 } else if (node) { 27347 var iteratorFn = getIteratorFn(node); 27348 // Entry iterators provide implicit keys. 27349 if (iteratorFn) { 27350 if (iteratorFn !== node.entries) { 27351 var iterator = iteratorFn.call(node); 27352 var step; 27353 while (!(step = iterator.next()).done) { 27354 if (ReactElement.isValidElement(step.value)) { 27355 validateExplicitKey(step.value, parentType); 27356 } 27357 } 27358 } 27359 } 27360 } 27361} 27362 27363/** 27364 * Given an element, validate that its props follow the propTypes definition, 27365 * provided by the type. 27366 * 27367 * @param {ReactElement} element 27368 */ 27369function validatePropTypes(element) { 27370 var componentClass = element.type; 27371 if (typeof componentClass !== 'function') { 27372 return; 27373 } 27374 var name = componentClass.displayName || componentClass.name; 27375 if (componentClass.propTypes) { 27376 checkReactTypeSpec(componentClass.propTypes, element.props, 'prop', name, element, null); 27377 } 27378 if (typeof componentClass.getDefaultProps === 'function') { 27379 true ? warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0; 27380 } 27381} 27382 27383var ReactElementValidator = { 27384 createElement: function (type, props, children) { 27385 var validType = typeof type === 'string' || typeof type === 'function'; 27386 // We warn in this case but don't throw. We expect the element creation to 27387 // succeed and there will likely be errors in render. 27388 if (!validType) { 27389 if (typeof type !== 'function' && typeof type !== 'string') { 27390 var info = ''; 27391 if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) { 27392 info += ' You likely forgot to export your component from the file ' + "it's defined in."; 27393 } 27394 27395 var sourceInfo = getSourceInfoErrorAddendum(props); 27396 if (sourceInfo) { 27397 info += sourceInfo; 27398 } else { 27399 info += getDeclarationErrorAddendum(); 27400 } 27401 27402 info += ReactComponentTreeHook.getCurrentStackAddendum(); 27403 27404 var currentSource = props !== null && props !== undefined && props.__source !== undefined ? props.__source : null; 27405 ReactComponentTreeHook.pushNonStandardWarningStack(true, currentSource); 27406 true ? warning(false, 'React.createElement: type is invali
27406d -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', type == null ? type : typeof type, info) : void 0; 27407 ReactComponentTreeHook.popNonStandardWarningStack(); 27408 } 27409 } 27410 27411 var element = ReactElement.createElement.apply(this, arguments); 27412 27413 // The result can be nullish if a mock or a custom function is used. 27414 // TODO: Drop this when these are no longer allowed as the type argument. 27415 if (element == null) { 27416 return element; 27417 } 27418 27419 // Skip key warning if the type isn't valid since our key validation logic 27420 // doesn't expect a non-string/function type and can throw confusing errors. 27421 // We don't want exception behavior to differ between dev and prod. 27422 // (Rendering will throw with a helpful message and as soon as the type is 27423 // fixed, the key warnings will appear.) 27424 if (validType) { 27425 for (var i = 2; i < arguments.length; i++) { 27426 validateChildKeys(arguments[i], type); 27427 } 27428 } 27429 27430 validatePropTypes(element); 27431 27432 return element; 27433 }, 27434 27435 createFactory: function (type) { 27436 var validatedFactory = ReactElementValidator.createElement.bind(null, type); 27437 // Legacy hook TODO: Warn if this is accessed 27438 validatedFactory.type = type; 27439 27440 if (true) { 27441 if (canDefineProperty) { 27442 Object.defineProperty(validatedFactory, 'type', { 27443 enumerable: false, 27444 get: function () { 27445 lowPriorityWarning(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.'); 27446 Object.defineProperty(this, 'type', { 27447 value: type 27448 }); 27449 return type; 27450 } 27451 }); 27452 } 27453 } 27454 27455 return validatedFactory; 27456 }, 27457 27458 cloneElement: function (element, props, children) { 27459 var newElement = ReactElement.cloneElement.apply(this, arguments); 27460 for (var i = 2; i < arguments.length; i++) { 27461 validateChildKeys(arguments[i], newElement.type); 27462 } 27463 validatePropTypes(newElement); 27464 return newElement; 27465 } 27466}; 27467 27468module.exports = ReactElementValidator; 27469 27470/***/ }), 27471/* 165 */ 27472/***/ (function(module, exports, __webpack_require__) { 27473 27474"use strict"; 27475/** 27476 * Copyright (c) 2013-present, Facebook, Inc. 27477 * 27478 * This source code is licensed under the MIT license found in the 27479 * LICENSE file in the root directory of this source tree. 27480 */ 27481 27482 27483 27484// React 15.5 references this module, and assumes PropTypes are still callable in production. 27485// Therefore we re-export development-only version with all the PropTypes checks here. 27486// However if one is migrating to the `prop-types` npm library, they will go through the 27487// `index.js` entry point, and it will branch depending on the environment. 27488var factory = __webpack_require__(166); 27489module.exports = function(isValidElement) { 27490 // It is still allowed in 15.5. 27491 var throwOnDirectAccess = false; 27492 return factory(isValidElement, throwOnDirectAccess); 27493}; 27494 27495 27496/***/ }), 27497/* 166 */ 27498/***/ (function(module, exports, __webpack_require__) { 27499 27500"use strict"; 27501/** 27502 * Copyright (c) 2013-present, Facebook, Inc. 27503 * 27504 * This source code is licensed under the MIT license found in the 27505 * LICENSE file in the root directory of this source tree. 27506 */ 27507 27508 27509 27510var assign = __webpack_require__(14); 27511 27512var ReactPropTypesSecret = __webpack_require__(167); 27513var checkPropTypes = __webpack_require__(417); 27514 27515var printWarning = function() {}; 27516 27517if (true) { 27518 printWarning = function(text) { 27519 var message = 'Warning: ' + text; 27520 if (typeof console !== 'undefined') { 27521 console.error(message); 27522 } 27523 try { 27524 // --- Welcome to debugging React --- 27525 // This error was thrown as a convenience so that you can use this stack 27526 // to find the callsite that caused this warning to fire. 27527 throw new Error(message); 27528 } catch (x) {} 27529 }; 27530} 27531 27532function emptyFunctionThatReturnsNull() { 27533 return null; 27534} 27535 27536module.exports = function(isValidElement, throwOnDirectAccess) { 27537 /* global Symbol */ 27538 var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; 27539 var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. 27540 27541 /** 27542 * Returns the iterator method function contained on the iterable object. 27543 * 27544 * Be sure to invoke the function with the iterable as context: 27545 * 27546 * var iteratorFn = getIteratorFn(myIterable); 27547 * if (iteratorFn) { 27548 * var iterator = iteratorFn.call(myIterable); 27549 * ... 27550 * } 27551 * 27552 * @param {?object} maybeIterable 27553 * @return {?function} 27554 */ 27555 function getIteratorFn(maybeIterable) { 27556 var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); 27557 if (typeof iteratorFn === 'function') { 27558 return iteratorFn; 27559 } 27560 } 27561 27562 /** 27563 * Collection of methods that allow declaration and validation of props that are 27564 * supplied to React components. Example usage: 27565 * 27566 * var Props = require('ReactPropTypes'); 27567 * var MyArticle = React.createClass({ 27568 * propTypes: { 27569 * // An optional string prop named "description". 27570 * description: Props.string, 27571 * 27572 * // A required enum prop named "category". 27573 * category: Props.oneOf(['News','Photos']).isRequired, 27574 * 27575 * // A prop named "dialog" that requires an instance of Dialog. 27576 * dialog: Props.instanceOf(Dialog).isRequired 27577 * }, 27578 * render: function() { ... } 27579 * }); 27580 * 27581 * A more formal specification of how these methods are used: 27582 * 27583 * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) 27584 * decl := ReactPropTypes.{type}(.isRequired)? 27585 * 27586 * Each and every declaration produces a function with the same signature. This 27587 * allows the creation of custom validation functions. For example: 27588 * 27589 * var MyLink = React.createClass({ 27590 * propTypes: { 27591 * // An optional string or URI prop named "href". 27592 * href: function(props, propName, componentName) { 27593 * var propValue = props[propName]; 27594 * if (propValue != null && typeof propValue !== 'string' && 27595 * !(propValue instanceof URI)) { 27596 * return new Error( 27597 * 'Expected a string or an URI for ' + propName + ' in ' + 27598 * componentName 27599 * ); 27600 * } 27601 * } 27602 * }, 27603 * render: function() {...} 27604 * }); 27605 * 27606 * @internal 27607 */ 27608 27609 var ANONYMOUS = '<<anonymous>>'; 27610 27611 // Important! 27612 // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. 27613 var ReactPropTypes = { 27614 array: createPrimitiveTypeChecker('array'), 27615 bool: createPrimitiveTypeChecker('boolean'), 27616 func: createPrimitiveTypeChecker('function'), 27617 number: createPrimitiveTypeChecker('number'), 27618 object: createPrimitiveTypeChecker('object'), 27619 string: createPrimitiveTypeChecker('string'), 27620 symbol: createPrimitiveTypeChecker('symbol'), 27621 27622 any: createAnyTypeChecker(), 27623 arrayOf: createArrayOfTypeChecker, 27624 element: createElementTypeChecker(), 27625 instanceOf: createInstanceTypeChecker, 27626 node: createNodeChecker(), 27627 objectOf: createObjectOfTypeChecker, 27628 oneOf: createEnumTypeChecker, 27629 oneOfType: createUnionTypeChecker, 27630 shape: createShapeTypeChecker, 27631 exact: createStrictShapeTypeChecker, 27632 }; 27633 27634 /** 27635 * inlined Object.is polyfill to avoid requiring consumers ship their own 27636 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is 27637 */ 27638 /*eslint-disable no-self-compare*/ 27639 function is(x, y) { 27640 // SameValue algorithm 27641 if (x === y) { 27642 // Steps 1-5, 7-10 27643 // Steps 6.b-6.e: +0 != -0 27644 return x !== 0 || 1 / x === 1 / y; 27645 } else { 27646 // Step 6.a: NaN == NaN 27647 return x !== x && y !== y; 27648 } 27649 } 27650 /*eslint-enable no-self-compare*/ 27651 27652 /** 27653 * We use an Error-like object for backward compatibility as people may call 27654 * PropTypes directly and inspect their output. However, we don't use real 27655 * Errors anymore. We don't inspect their stack anyway, and creating them 27656 * is prohibitively expensive if they are created too often, such as what 27657 * happens in oneOfType() for any type before the one that matched. 27658 */ 27659 function PropTypeError(message) { 27660 this.message = message; 27661 this.stack = ''; 27662 } 27663 // Make `instanceof Error` still work for returned errors. 27664 PropTypeError.prototype = Error.prototype; 27665 27666 function createChainableTypeChecker(validate) { 27667 if (true) { 27668 var manualPropTypeCallCache = {}; 27669 var manualPropTypeWarningCount = 0; 27670 } 27671 function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { 27672 componentName = componentName || ANONYMOUS; 27673 propFullName = propFullName || propName; 27674 27675 if (secret !== ReactPropTypesSecret) { 27676 if (throwOnDirectAccess) { 27677 // New behavior only for users of `prop-types` package 27678 var err = new Error( 27679 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 27680 'Use `PropTypes.checkPropTypes()` to call them. ' + 27681 'Read more at http://fb.me/use-check-prop-types' 27682 ); 27683 err.name = 'Invariant Violation'; 27684 throw err; 27685 } else if ("dev
vendor: 13,887 bytes, lines 27685-28059
27685" !== 'production' && typeof console !== 'undefined') { 27686 // Old behavior for people using React.PropTypes 27687 var cacheKey = componentName + ':' + propName; 27688 if ( 27689 !manualPropTypeCallCache[cacheKey] && 27690 // Avoid spamming the console because they are often not actionable except for lib authors 27691 manualPropTypeWarningCount < 3 27692 ) { 27693 printWarning( 27694 'You are manually calling a React.PropTypes validation ' + 27695 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 27696 'and will throw in the standalone `prop-types` package. ' + 27697 'You may be seeing this warning due to a third-party PropTypes ' + 27698 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.' 27699 ); 27700 manualPropTypeCallCache[cacheKey] = true; 27701 manualPropTypeWarningCount++; 27702 } 27703 } 27704 } 27705 if (props[propName] == null) { 27706 if (isRequired) { 27707 if (props[propName] === null) { 27708 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); 27709 } 27710 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); 27711 } 27712 return null; 27713 } else { 27714 return validate(props, propName, componentName, location, propFullName); 27715 } 27716 } 27717 27718 var chainedCheckType = checkType.bind(null, false); 27719 chainedCheckType.isRequired = checkType.bind(null, true); 27720 27721 return chainedCheckType; 27722 } 27723 27724 function createPrimitiveTypeChecker(expectedType) { 27725 function validate(props, propName, componentName, location, propFullName, secret) { 27726 var propValue = props[propName]; 27727 var propType = getPropType(propValue); 27728 if (propType !== expectedType) { 27729 // `propValue` being instance of, say, date/regexp, pass the 'object' 27730 // check, but we can offer a more precise error message here rather than 27731 // 'of type `object`'. 27732 var preciseType = getPreciseType(propValue); 27733 27734 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.')); 27735 } 27736 return null; 27737 } 27738 return createChainableTypeChecker(validate); 27739 } 27740 27741 function createAnyTypeChecker() { 27742 return createChainableTypeChecker(emptyFunctionThatReturnsNull); 27743 } 27744 27745 function createArrayOfTypeChecker(typeChecker) { 27746 function validate(props, propName, componentName, location, propFullName) { 27747 if (typeof typeChecker !== 'function') { 27748 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); 27749 } 27750 var propValue = props[propName]; 27751 if (!Array.isArray(propValue)) { 27752 var propType = getPropType(propValue); 27753 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); 27754 } 27755 for (var i = 0; i < propValue.length; i++) { 27756 var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret); 27757 if (error instanceof Error) { 27758 return error; 27759 } 27760 } 27761 return null; 27762 } 27763 return createChainableTypeChecker(validate); 27764 } 27765 27766 function createElementTypeChecker() { 27767 function validate(props, propName, componentName, location, propFullName) { 27768 var propValue = props[propName]; 27769 if (!isValidElement(propValue)) { 27770 var propType = getPropType(propValue); 27771 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); 27772 } 27773 return null; 27774 } 27775 return createChainableTypeChecker(validate); 27776 } 27777 27778 function createInstanceTypeChecker(expectedClass) { 27779 function validate(props, propName, componentName, location, propFullName) { 27780 if (!(props[propName] instanceof expectedClass)) { 27781 var expectedClassName = expectedClass.name || ANONYMOUS; 27782 var actualClassName = getClassName(props[propName]); 27783 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); 27784 } 27785 return null; 27786 } 27787 return createChainableTypeChecker(validate); 27788 } 27789 27790 function createEnumTypeChecker(expectedValues) { 27791 if (!Array.isArray(expectedValues)) { 27792 true ? printWarning('Invalid argument supplied to oneOf, expected an instance of array.') : void 0; 27793 return emptyFunctionThatReturnsNull; 27794 } 27795 27796 function validate(props, propName, componentName, location, propFullName) { 27797 var propValue = props[propName]; 27798 for (var i = 0; i < expectedValues.length; i++) { 27799 if (is(propValue, expectedValues[i])) { 27800 return null; 27801 } 27802 } 27803 27804 var valuesString = JSON.stringify(expectedValues); 27805 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); 27806 } 27807 return createChainableTypeChecker(validate); 27808 } 27809 27810 function createObjectOfTypeChecker(typeChecker) { 27811 function validate(props, propName, componentName, location, propFullName) { 27812 if (typeof typeChecker !== 'function') { 27813 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); 27814 } 27815 var propValue = props[propName]; 27816 var propType = getPropType(propValue); 27817 if (propType !== 'object') { 27818 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); 27819 } 27820 for (var key in propValue) { 27821 if (propValue.hasOwnProperty(key)) { 27822 var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); 27823 if (error instanceof Error) { 27824 return error; 27825 } 27826 } 27827 } 27828 return null; 27829 } 27830 return createChainableTypeChecker(validate); 27831 } 27832 27833 function createUnionTypeChecker(arrayOfTypeCheckers) { 27834 if (!Array.isArray(arrayOfTypeCheckers)) { 27835 true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0; 27836 return emptyFunctionThatReturnsNull; 27837 } 27838 27839 for (var i = 0; i < arrayOfTypeCheckers.length; i++) { 27840 var checker = arrayOfTypeCheckers[i]; 27841 if (typeof checker !== 'function') { 27842 printWarning( 27843 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 27844 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.' 27845 ); 27846 return emptyFunctionThatReturnsNull; 27847 } 27848 } 27849 27850 function validate(props, propName, componentName, location, propFullName) { 27851 for (var i = 0; i < arrayOfTypeCheckers.length; i++) { 27852 var checker = arrayOfTypeCheckers[i]; 27853 if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) { 27854 return null; 27855 } 27856 } 27857 27858 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.')); 27859 } 27860 return createChainableTypeChecker(validate); 27861 } 27862 27863 function createNodeChecker() { 27864 function validate(props, propName, componentName, location, propFullName) { 27865 if (!isNode(props[propName])) { 27866 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); 27867 } 27868 return null; 27869 } 27870 return createChainableTypeChecker(validate); 27871 } 27872 27873 function createShapeTypeChecker(shapeTypes) { 27874 function validate(props, propName, componentName, location, propFullName) { 27875 var propValue = props[propName]; 27876 var propType = getPropType(propValue); 27877 if (propType !== 'object') { 27878 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); 27879 } 27880 for (var key in shapeTypes) { 27881 var checker = shapeTypes[key]; 27882 if (!checker) { 27883 continue; 27884 } 27885 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); 27886 if (error) { 27887 return error; 27888 } 27889 } 27890 return null; 27891 } 27892 return createChainableTypeChecker(validate); 27893 } 27894 27895 function createStrictShapeTypeChecker(shapeTypes) { 27896 function validate(props, propName, componentName, location, propFullName) { 27897 var propValue = props[propName]; 27898 var propType = getPropType(propValue); 27899 if (propType !== 'object') { 27900 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); 27901 } 27902 // We need to check all keys in case some are required but missing from 27903 // props. 27904 var allKeys = assign({}, props[propName], shapeTypes); 27905 for (var key in allKeys) { 27906 var checker = shapeTypes[key]; 27907 if (!checker) { 27908 return new PropTypeError( 27909 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + 27910 '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + 27911 '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ') 27912 ); 27913 } 27914 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); 27915 if (error) { 27916 return error; 27917 } 27918 } 27919 return null; 27920 } 27921 27922 return createChainableTypeChecker(validate); 27923 } 27924 27925 function isNode(propValue) { 27926 switch (typeof propValue) { 27927 case 'number': 27928 case 'string': 27929 case 'undefined': 27930 return true; 27931 case 'boolean': 27932 return !propValue; 27933 case 'object': 27934 if (Array.isArray(propValue)) { 27935 return propValue.every(isNode); 27936 } 27937 if (propValue === null || isValidElement(propValue)) { 27938 return true; 27939 } 27940 27941 var iteratorFn = getIteratorFn(propValue); 27942 if (iteratorFn) { 27943 var iterator = iteratorFn.call(propValue); 27944 var step; 27945 if (iteratorFn !== propValue.entries) { 27946 while (!(step = iterator.next()).done) { 27947 if (!isNode(step.value)) { 27948 return false; 27949 } 27950 } 27951 } else { 27952 // Iterator will provide entry [k,v] tuples rather than values. 27953 while (!(step = iterator.next()).done) { 27954 var entry = step.value; 27955 if (entry) { 27956 if (!isNode(entry[1])) { 27957 return false; 27958 } 27959 } 27960 } 27961 } 27962 } else { 27963 return false; 27964 } 27965 27966 return true; 27967 default: 27968 return false; 27969 } 27970 } 27971 27972 function isSymbol(propType, propValue) { 27973 // Native Symbol. 27974 if (propType === 'symbol') { 27975 return true; 27976 } 27977 27978 // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' 27979 if (propValue['@@toStringTag'] === 'Symbol') { 27980 return true; 27981 } 27982 27983 // Fallback for non-spec compliant Symbols which are polyfilled. 27984 if (typeof Symbol === 'function' && propValue instanceof Symbol) { 27985 return true; 27986 } 27987 27988 return false; 27989 } 27990 27991 // Equivalent of `typeof` but with special handling for array and regexp. 27992 function getPropType(propValue) { 27993 var propType = typeof propValue; 27994 if (Array.isArray(propValue)) { 27995 return 'array'; 27996 } 27997 if (propValue instanceof RegExp) { 27998 // Old webkits (at least until Android 4.0) return 'function' rather than 27999 // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ 28000 // passes PropTypes.object. 28001 return 'object'; 28002 } 28003 if (isSymbol(propType, propValue)) { 28004 return 'symbol'; 28005 } 28006 return propType; 28007 } 28008 28009 // This handles more types than `getPropType`. Only used for error messages. 28010 // See `createPrimitiveTypeChecker`. 28011 function getPreciseType(propValue) { 28012 if (typeof propValue === 'undefined' || propValue === null) { 28013 return '' + propValue; 28014 } 28015 var propType = getPropType(propValue); 28016 if (propType === 'object') { 28017 if (propValue instanceof Date) { 28018 return 'date'; 28019 } else if (propValue instanceof RegExp) { 28020 return 'regexp'; 28021 } 28022 } 28023 return propType; 28024 } 28025 28026 // Returns a string that is postfixed to a warning about an invalid type. 28027 // For example, "undefined" or "of type array" 28028 function getPostfixForTypeWarning(value) { 28029 var type = getPreciseType(value); 28030 switch (type) { 28031 case 'array': 28032 case 'object': 28033 return 'an ' + type; 28034 case 'boolean': 28035 case 'date': 28036 case 'regexp': 28037 return 'a ' + type; 28038 default: 28039 return type; 28040 } 28041 } 28042 28043 // Returns class name of the object, if any. 28044 function getClassName(propValue) { 28045 if (!propValue.constructor || !propValue.constructor.name) { 28046 return ANONYMOUS; 28047 } 28048 return propValue.constructor.name; 28049 } 28050 28051 ReactPropTypes.checkPropTypes = checkPropTypes; 28052 ReactPropTypes.PropTypes = ReactPropTypes; 28053 28054 return ReactPropTypes; 28055}; 28056 28057 28058/***/ }), 28059/*
28059167 */ 28060/***/ (function(module, exports, __webpack_require__) { 28061 28062"use strict"; 28063/** 28064 * Copyright (c) 2013-present, Facebook, Inc. 28065 * 28066 * This source code is licensed under the MIT license found in the 28067 * LICENSE file in the root directory of this source tree. 28068 */ 28069 28070 28071 28072var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; 28073 28074module.exports = ReactPropTypesSecret; 28075 28076 28077/***/ }), 28078/* 168 */ 28079/***/ (function(module, exports, __webpack_require__) { 28080 28081"use strict"; 28082/** 28083 * Copyright (c) 2015-present, Facebook, Inc. 28084 * 28085 * This source code is licensed under the MIT license found in the 28086 * LICENSE file in the root directory of this source tree. 28087 * 28088 */ 28089 28090 28091 28092var ReactDOMComponentFlags = { 28093 hasCachedChildNodes: 1 << 0 28094}; 28095 28096module.exports = ReactDOMComponentFlags; 28097 28098/***/ }), 28099/* 169 */ 28100/***/ (function(module, exports, __webpack_require__) { 28101 28102"use strict"; 28103/** 28104 * Copyright (c) 2014-present, Facebook, Inc. 28105 * 28106 * This source code is licensed under the MIT license found in the 28107 * LICENSE file in the root directory of this source tree. 28108 * 28109 * 28110 */ 28111 28112 28113 28114var _prodInvariant = __webpack_require__(12); 28115 28116var invariant = __webpack_require__(10); 28117 28118/** 28119 * Accumulates items that must not be null or undefined into the first one. This 28120 * is used to conserve memory by avoiding array allocations, and thus sacrifices 28121 * API cleanness. Since `current` can be null before being passed in and not 28122 * null after this function, make sure to assign it back to `current`: 28123 * 28124 * `a = accumulateInto(a, b);` 28125 * 28126 * This API should be sparingly used. Try `accumulate` for something cleaner. 28127 * 28128 * @return {*|array<*>} An accumulation of items. 28129 */ 28130 28131function accumulateInto(current, next) { 28132 !(next != null) ? true ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : _prodInvariant('30') : void 0; 28133 28134 if (current == null) { 28135 return next; 28136 } 28137 28138 // Both are not empty. Warning: Never call x.concat(y) when you are not 28139 // certain that x is an Array (x could be a string with concat method). 28140 if (Array.isArray(current)) { 28141 if (Array.isArray(next)) { 28142 current.push.apply(current, next); 28143 return current; 28144 } 28145 current.push(next); 28146 return current; 28147 } 28148 28149 if (Array.isArray(next)) { 28150 // A bit too dangerous to mutate `next`. 28151 return [current].concat(next); 28152 } 28153 28154 return [current, next]; 28155} 28156 28157module.exports = accumulateInto; 28158 28159/***/ }), 28160/* 170 */ 28161/***/ (function(module, exports, __webpack_require__) { 28162 28163"use strict"; 28164/** 28165 * Copyright (c) 2013-present, Facebook, Inc. 28166 * 28167 * This source code is licensed under the MIT license found in the 28168 * LICENSE file in the root directory of this source tree. 28169 * 28170 * 28171 */ 28172 28173 28174 28175/** 28176 * @param {array} arr an "accumulation" of items which is either an Array or 28177 * a single item. Useful when paired with the `accumulate` module. This is a 28178 * simple utility that allows us to reason about a collection of items, but 28179 * handling the case when there is exactly one item (and we do not need to 28180 * allocate an array). 28181 */ 28182 28183function forEachAccumulated(arr, cb, scope) { 28184 if (Array.isArray(arr)) { 28185 arr.forEach(cb, scope); 28186 } else if (arr) { 28187 cb.call(scope, arr); 28188 } 28189} 28190 28191module.exports = forEachAccumulated; 28192 28193/***/ }), 28194/* 171 */ 28195/***/ (function(module, exports, __webpack_require__) { 28196 28197"use strict"; 28198/** 28199 * Copyright (c) 2013-present, Facebook, Inc. 28200 * 28201 * This source code is licensed under the MIT license found in the 28202 * LICENSE file in the root directory of this source tree. 28203 * 28204 */ 28205 28206 28207 28208var ExecutionEnvironment = __webpack_require__(18); 28209 28210var contentKey = null; 28211 28212/** 28213 * Gets the key used to access text content on a DOM node. 28214 * 28215 * @return {?string} Key used to access text content. 28216 * @internal 28217 */ 28218function getTextContentAccessor() { 28219 if (!contentKey && ExecutionEnvironment.canUseDOM) { 28220 // Prefer textContent to innerText because many browsers support both but 28221 // SVG <text> elements don't support innerText even when <div> does. 28222 contentKey = 'textContent' in document.documentElement ? 'textContent' : 'innerText'; 28223 } 28224 return contentKey; 28225} 28226 28227module.exports = getTextContentAccessor; 28228 28229/***/ }), 28230/* 172 */ 28231/***/ (function(module, exports, __webpack_require__) { 28232 28233"use strict"; 28234/** 28235 * Copyright (c) 2013-present, Facebook, Inc. 28236 * 28237 * This source code is licensed under the MIT license found in the 28238 * LICENSE file in the root directory of this source tree. 28239 * 28240 * 28241 */ 28242 28243 28244 28245var _prodInvariant = __webpack_require__(12); 28246 28247function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 28248 28249var PooledClass = __webpack_require__(42); 28250 28251var invariant = __webpack_require__(10); 28252 28253/** 28254 * A specialized pseudo-event module to help keep track of components waiting to 28255 * be notified when their DOM representations are available for use. 28256 * 28257 * This implements `PooledClass`, so you should never need to instantiate this. 28258 * Instead, use `CallbackQueue.getPooled()`. 28259 * 28260 * @class ReactMountReady 28261 * @implements PooledClass 28262 * @internal 28263 */ 28264 28265var CallbackQueue = function () { 28266 function CallbackQueue(arg) { 28267 _classCallCheck(this, CallbackQueue); 28268 28269 this._callbacks = null; 28270 this._contexts = null; 28271 this._arg = arg; 28272 } 28273 28274 /** 28275 * Enqueues a callback to be invoked when `notifyAll` is invoked. 28276 * 28277 * @param {function} callback Invoked when `notifyAll` is invoked. 28278 * @param {?object} context Context to call `callback` with. 28279 * @internal 28280 */ 28281 28282 28283 CallbackQueue.prototype.enqueue = function enqueue(callback, context) { 28284 this._callbacks = this._callbacks || []; 28285 this._callbacks.push(callback); 28286 this._contexts = this._contexts || []; 28287 this._contexts.push(context); 28288 }; 28289 28290 /** 28291 * Invokes all enqueued callbacks and clears the queue. This is invoked after 28292 * the DOM representation of a component has been created or updated. 28293 * 28294 * @internal 28295 */ 28296 28297 28298 CallbackQueue.prototype.notifyAll = function notifyAll() { 28299 var callbacks = this._callbacks; 28300 var contexts = this._contexts; 28301 var arg = this._arg; 28302 if (callbacks && contexts) { 28303 !(callbacks.length === contexts.length) ? true ? invariant(false, 'Mismatched list of contexts in callback queue') : _prodInvariant('24') : void 0; 28304 this._callbacks = null; 28305 this._contexts = null; 28306 for (var i = 0; i < callbacks.length; i++) { 28307 callbacks[i].call(contexts[i], arg); 28308 } 28309 callbacks.length = 0; 28310 contexts.length = 0; 28311 } 28312 }; 28313 28314 CallbackQueue.prototype.checkpoint = function checkpoint() { 28315 return this._callbacks ? this._callbacks.length : 0; 28316 }; 28317 28318 CallbackQueue.prototype.rollback = function rollback(len) { 28319 if (this._callbacks && this._contexts) { 28320 this._callbacks.length = len; 28321 this._contexts.length = len; 28322 } 28323 }; 28324 28325 /** 28326 * Resets the internal queue. 28327 * 28328 * @internal 28329 */ 28330 28331 28332 CallbackQueue.prototype.reset = function reset() { 28333 this._callbacks = null; 28334 this._contexts = null; 28335 }; 28336 28337 /** 28338 * `PooledClass` looks for this. 28339 */ 28340 28341 28342 CallbackQueue.prototype.destructor = function destructor() { 28343 this.reset(); 28344 }; 28345 28346 return CallbackQueue; 28347}(); 28348 28349module.exports = PooledClass.addPoolingTo(CallbackQueue); 28350 28351/***/ }), 28352/* 173 */ 28353/***/ (function(module, exports, __webpack_require__) { 28354 28355"use strict"; 28356/** 28357 * Copyright (c) 2013-present, Facebook, Inc. 28358 * 28359 * This source code is licensed under the MIT license found in the 28360 * LICENSE file in the root directory of this source tree. 28361 * 28362 * 28363 */ 28364 28365 28366 28367var ReactFeatureFlags = { 28368 // When true, call console.time() before and .timeEnd() after each top-level 28369 // render (both initial renders and updates). Useful when looking at prod-mode 28370 // timeline profiles in Chrome, for example. 28371 logTopLevelRenders: false 28372}; 28373 28374module.exports = ReactFeatureFlags; 28375 28376/***/ }), 28377/* 174 */ 28378/***/ (function(module, exports, __webpack_require__) { 28379 28380"use strict"; 28381/** 28382 * Copyright (c) 2013-present, Facebook, Inc. 28383 * 28384 * This source code is licensed under the MIT license found in the 28385 * LICENSE file in the root directory of this source tree. 28386 * 28387 */ 28388 28389 28390 28391var ReactDOMComponentTree = __webpack_require__(15); 28392 28393function isCheckable(elem) { 28394 var type = elem.type; 28395 var nodeName = elem.nodeName; 28396 return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio'); 28397} 28398 28399function getTracker(inst) { 28400 return inst._wrapperState.valueTracker; 28401} 28402 28403function attachTracker(inst, tracker) { 28404 inst._wrapperState.valueTracker = tracker; 28405} 28406 28407function detachTracker(inst) { 28408 inst._wrapperState.valueTracker = null; 28409} 28410 28411function getValueFromNode(node) { 28412 var value; 28413 if (node) { 28414 value = isCheckable(node) ? '' + node.checked : node.value; 28415 } 28416 return value; 28417} 28418 28419var inputValueTracking = { 28420 // exposed for testing 28421 _getTrackerFromNode: function (node) { 28422 return getTracker(ReactDOMComponentTree.getInstanceFromNode(node)); 28423 }, 28424 28425 28426 track: function (inst) { 28427 if (getTracker(inst)) { 28428 return; 28429 } 28430 28431 var node = ReactDOMComponentTree.getNodeFromInstance(inst); 28432 var valueField = isCheckable(node) ? 'checked' : 'value'; 28433 var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField); 28434 28435 var currentValue = '' + node[valueField]; 28436 28437 // if someone has already defined a value or Safari, then bail 28438 // and don't track value will cause over reporting of changes, 28439 // but it's better then a hard failure 28440 // (needed for certain tests that spyOn input values and Safari) 28441 if (node.hasOwnProperty(valueField) || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') { 28442 return; 28443 } 28444 28445 Object.defineProperty(node, valueField, { 28446 enumerable: descriptor.enumerable, 28447 configurable: true, 28448 get: function () { 28449 return descriptor.get.call(this); 28450 }, 28451 set: function (value) { 28452 currentValue = '' + value; 28453 descriptor.set.call(this, value); 28454 } 28455 }); 28456 28457 attachTracker(inst, { 28458 getValue: function () { 28459 return currentValue; 28460 }, 28461 setValue: function (value) { 28462 currentValue = '' + value; 28463 }, 28464 stopTracking: function () { 28465 detachTracker(inst); 28466 delete node[valueField]; 28467 } 28468 }); 28469 }, 28470
28471 updateValueIfChanged: function (inst) { 28472 if (!inst) { 28473 return false; 28474 } 28475 var tracker = getTracker(inst); 28476 28477 if (!tracker) { 28478 inputValueTracking.track(inst); 28479 return true; 28480 } 28481 28482 var lastValue = tracker.getValue(); 28483 var nextValue = getValueFromNode(ReactDOMComponentTree.getNodeFromInstance(inst)); 28484 28485 if (nextValue !== lastValue) { 28486 tracker.setValue(nextValue); 28487 return true; 28488 } 28489 28490 return false; 28491 }, 28492 stopTracking: function (inst) { 28493 var tracker = getTracker(inst); 28494 if (tracker) { 28495 tracker.stopTracking(); 28496 } 28497 } 28498}; 28499 28500module.exports = inputValueTracking; 28501 28502/***/ }), 28503/* 175 */ 28504/***/ (function(module, exports, __webpack_require__) { 28505 28506"use strict"; 28507/** 28508 * Copyright (c) 2013-present, Facebook, Inc. 28509 * 28510 * This source code is licensed under the MIT license found in the 28511 * LICENSE file in the root directory of this source tree. 28512 * 28513 * 28514 */ 28515 28516 28517 28518/** 28519 * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary 28520 */ 28521 28522var supportedInputTypes = { 28523 color: true, 28524 date: true, 28525 datetime: true, 28526 'datetime-local': true, 28527 email: true, 28528 month: true, 28529 number: true, 28530 password: true, 28531 range: true, 28532 search: true, 28533 tel: true, 28534 text: true, 28535 time: true, 28536 url: true, 28537 week: true 28538}; 28539 28540function isTextInputElement(elem) { 28541 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); 28542 28543 if (nodeName === 'input') { 28544 return !!supportedInputTypes[elem.type]; 28545 } 28546 28547 if (nodeName === 'textarea') { 28548 return true; 28549 } 28550 28551 return false; 28552} 28553 28554module.exports = isTextInputElement; 28555 28556/***/ }), 28557/* 176 */ 28558/***/ (function(module, exports, __webpack_require__) { 28559 28560"use strict"; 28561/** 28562 * Copyright (c) 2013-present, Facebook, Inc. 28563 * 28564 * This source code is licensed under the MIT license found in the 28565 * LICENSE file in the root directory of this source tree. 28566 * 28567 */ 28568 28569 28570 28571var ExecutionEnvironment = __webpack_require__(18); 28572var escapeTextContentForBrowser = __webpack_require__(83); 28573var setInnerHTML = __webpack_require__(82); 28574 28575/** 28576 * Set the textContent property of a node, ensuring that whitespace is preserved 28577 * even in IE8. innerText is a poor substitute for textContent and, among many 28578 * issues, inserts <br> instead of the literal newline chars. innerHTML behaves 28579 * as it should. 28580 * 28581 * @param {DOMElement} node 28582 * @param {string} text 28583 * @internal 28584 */ 28585var setTextContent = function (node, text) { 28586 if (text) { 28587 var firstChild = node.firstChild; 28588 28589 if (firstChild && firstChild === node.lastChild && firstChild.nodeType === 3) { 28590 firstChild.nodeValue = text; 28591 return; 28592 } 28593 } 28594 node.textContent = text; 28595}; 28596 28597if (ExecutionEnvironment.canUseDOM) { 28598 if (!('textContent' in document.documentElement)) { 28599 setTextContent = function (node, text) { 28600 if (node.nodeType === 3) { 28601 node.nodeValue = text; 28602 return; 28603 } 28604 setInnerHTML(node, escapeTextContentForBrowser(text)); 28605 }; 28606 } 28607} 28608 28609module.exports = setTextContent; 28610 28611/***/ }), 28612/* 177 */ 28613/***/ (function(module, exports, __webpack_require__) { 28614 28615"use strict"; 28616/** 28617 * Copyright (c) 2013-present, Facebook, Inc. 28618 * 28619 * This source code is licensed under the MIT license found in the 28620 * LICENSE file in the root directory of this source tree. 28621 * 28622 */ 28623 28624 28625 28626/** 28627 * @param {DOMElement} node input/textarea to focus 28628 */ 28629 28630function focusNode(node) { 28631 // IE8 can throw "Can't move focus to the control because it is invisible, 28632 // not enabled, or of a type that does not accept the focus." for all kinds of 28633 // reasons that are too expensive and fragile to test. 28634 try { 28635 node.focus(); 28636 } catch (e) {} 28637} 28638 28639module.exports = focusNode; 28640 28641/***/ }), 28642/* 178 */ 28643/***/ (function(module, exports, __webpack_require__) { 28644 28645"use strict"; 28646/** 28647 * Copyright (c) 2013-present, Facebook, Inc. 28648 * 28649 * This source code is licensed under the MIT license found in the 28650 * LICENSE file in the root directory of this source tree. 28651 * 28652 */ 28653 28654 28655 28656/** 28657 * CSS properties which accept numbers but are not in units of "px". 28658 */ 28659 28660var isUnitlessNumber = { 28661 animationIterationCount: true, 28662 borderImageOutset: true, 28663 borderImageSlice: true, 28664 borderImageWidth: true, 28665 boxFlex: true, 28666 boxFlexGroup: true, 28667 boxOrdinalGroup: true, 28668 columnCount: true, 28669 columns: true, 28670 flex: true, 28671 flexGrow: true, 28672 flexPositive: true, 28673 flexShrink: true, 28674 flexNegative: true, 28675 flexOrder: true, 28676 gridRow: true, 28677 gridRowEnd: true, 28678 gridRowSpan: true, 28679 gridRowStart: true, 28680 gridColumn: true, 28681 gridColumnEnd: true, 28682 gridColumnSpan: true, 28683 gridColumnStart: true, 28684 fontWeight: true, 28685 lineClamp: true, 28686 lineHeight: true, 28687 opacity: true, 28688 order: true, 28689 orphans: true, 28690 tabSize: true, 28691 widows: true, 28692 zIndex: true, 28693 zoom: true, 28694 28695 // SVG-related properties 28696 fillOpacity: true, 28697 floodOpacity: true, 28698 stopOpacity: true, 28699 strokeDasharray: true, 28700 strokeDashoffset: true, 28701 strokeMiterlimit: true, 28702 strokeOpacity: true, 28703 strokeWidth: true 28704}; 28705 28706/** 28707 * @param {string}
28707 prefix vendor-specific prefix, eg: Webkit 28708 * @param {string} key style name, eg: transitionDuration 28709 * @return {string} style name prefixed with `prefix`, properly camelCased, eg: 28710 * WebkitTransitionDuration 28711 */ 28712function prefixKey(prefix, key) { 28713 return prefix + key.charAt(0).toUpperCase() + key.substring(1); 28714} 28715 28716/** 28717 * Support style names that may come passed in prefixed by adding permutations 28718 * of vendor prefixes. 28719 */ 28720var prefixes = ['Webkit', 'ms', 'Moz', 'O']; 28721 28722// Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an 28723// infinite loop, because it iterates over the newly added props too. 28724Object.keys(isUnitlessNumber).forEach(function (prop) { 28725 prefixes.forEach(function (prefix) { 28726 isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop]; 28727 }); 28728}); 28729 28730/** 28731 * Most style properties can be unset by doing .style[prop] = '' but IE8 28732 * doesn't like doing that with shorthand properties so for the properties that 28733 * IE8 breaks on, which are listed here, we instead unset each of the 28734 * individual properties. See http://bugs.jquery.com/ticket/12385. 28735 * The 4-value 'clock' properties like margin, padding, border-width seem to 28736 * behave without any problems. Curiously, list-style works too without any 28737 * special prodding. 28738 */ 28739var shorthandPropertyExpansions = { 28740 background: { 28741 backgroundAttachment: true, 28742 backgroundColor: true, 28743 backgroundImage: true, 28744 backgroundPositionX: true, 28745 backgroundPositionY: true, 28746 backgroundRepeat: true 28747 }, 28748 backgroundPosition: { 28749 backgroundPositionX: true, 28750 backgroundPositionY: true 28751 }, 28752 border: { 28753 borderWidth: true, 28754 borderStyle: true, 28755 borderColor: true 28756 }, 28757 borderBottom: { 28758 borderBottomWidth: true, 28759 borderBottomStyle: true, 28760 borderBottomColor: true 28761 }, 28762 borderLeft: { 28763 borderLeftWidth: true, 28764 borderLeftStyle: true, 28765 borderLeftColor: true 28766 }, 28767 borderRight: { 28768 borderRightWidth: true, 28769 borderRightStyle: true, 28770 borderRightColor: true 28771 }, 28772 borderTop: { 28773 borderTopWidth: true, 28774 borderTopStyle: true, 28775 borderTopColor: true 28776 }, 28777 font: { 28778 fontStyle: true, 28779 fontVariant: true, 28780 fontWeight: true, 28781 fontSize: true, 28782 lineHeight: true, 28783 fontFamily: true 28784 }, 28785 outline: { 28786 outlineWidth: true, 28787 outlineStyle: true, 28788 outlineColor: true 28789 } 28790}; 28791 28792var CSSProperty = { 28793 isUnitlessNumber: isUnitlessNumber, 28794 shorthandPropertyExpansions: shorthandPropertyExpansions 28795}; 28796 28797module.exports = CSSProperty; 28798 28799/***/ }), 28800/* 179 */ 28801/***/ (function(module, exports, __webpack_require__) { 28802 28803"use strict"; 28804/** 28805 * Copyright (c) 2013-present, Facebook, Inc. 28806 * 28807 * This source code is licensed under the MIT license found in the 28808 * LICENSE file in the root directory of this source tree. 28809 * 28810 */ 28811 28812 28813 28814var DOMProperty = __webpack_require__(36); 28815var ReactDOMComponentTree = __webpack_require__(15); 28816var ReactInstrumentation = __webpack_require__(24); 28817 28818var quoteAttributeValueForBrowser = __webpack_require__(455); 28819var warning = __webpack_require__(11); 28820 28821var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + DOMProperty.ATTRIBUTE_NAME_START_CHAR + '][' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$'); 28822var illegalAttributeNameCache = {}; 28823var validatedAttributeNameCache = {}; 28824 28825function isAttributeNameSafe(attributeName) { 28826 if (validatedAttributeNameCache.hasOwnProperty(attributeName)) { 28827 return true; 28828 } 28829 if (illegalAttributeNameCache.hasOwnProperty(attributeName)) { 28830 return false; 28831 } 28832 if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) { 28833 validatedAttributeNameCache[attributeName] = true; 28834 return true; 28835 } 28836 illegalAttributeNameCache[attributeName] = true; 28837 true ? warning(false, 'Invalid attribute name: `%s`', attributeName) : void 0; 28838 return false; 28839} 28840 28841function shouldIgnoreValue(propertyInfo, value) { 28842 return value == null || propertyInfo.hasBooleanValue && !value || propertyInfo.hasNumericValue && isNaN(value) || propertyInfo.hasPositiveNumericValue && value < 1 || propertyInfo.hasOverloadedBooleanValue && value === false; 28843} 28844 28845/** 28846 * Operations for dealing with DOM properties. 28847 */ 28848var DOMPropertyOperations = { 28849 /** 28850 * Creates markup for the ID property. 28851 * 28852 * @param {string} id Unescaped ID. 28853 * @return {string} Markup string. 28854 */ 28855 createMarkupForID: function (id) { 28856 return DOMProperty.ID_ATTRIBUTE_NAME + '=' + quoteAttributeValueForBrowser(id); 28857 }, 28858 28859 setAttributeForID: function (node, id) { 28860 node.setAttribute(DOMProperty.ID_ATTRIBUTE_NAME, id); 28861 }, 28862 28863 createMarkupForRoot: function () { 28864 return DOMProperty.ROOT_ATTRIBUTE_NAME + '=""'; 28865 }, 28866 28867 setAttributeForRoot: function (node) { 28868 node.setAttribute(DOMProperty.ROOT_ATTRIBUTE_NAME, ''); 28869 }, 28870 28871 /** 28872 * Creates markup for a property. 28873 * 28874 * @param {string} name 28875 * @param {*} value 28876 * @return {?string}
28876 Markup string, or null if the property was invalid. 28877 */ 28878 createMarkupForProperty: function (name, value) { 28879 var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null; 28880 if (propertyInfo) { 28881 if (shouldIgnoreValue(propertyInfo, value)) { 28882 return ''; 28883 } 28884 var attributeName = propertyInfo.attributeName; 28885 if (propertyInfo.hasBooleanValue || propertyInfo.hasOverloadedBooleanValue && value === true) { 28886 return attributeName + '=""'; 28887 } 28888 return attributeName + '=' + quoteAttributeValueForBrowser(value); 28889 } else if (DOMProperty.isCustomAttribute(name)) { 28890 if (value == null) { 28891 return ''; 28892 } 28893 return name + '=' + quoteAttributeValueForBrowser(value); 28894 } 28895 return null; 28896 }, 28897 28898 /** 28899 * Creates markup for a custom property. 28900 * 28901 * @param {string} name 28902 * @param {*} value 28903 * @return {string} Markup string, or empty string if the property was invalid. 28904 */ 28905 createMarkupForCustomAttribute: function (name, value) { 28906 if (!isAttributeNameSafe(name) || value == null) { 28907 return ''; 28908 } 28909 return name + '=' + quoteAttributeValueForBrowser(value); 28910 }, 28911 28912 /** 28913 * Sets the value for a property on a node. 28914 * 28915 * @param {DOMElement} node 28916 * @param {string} name 28917 * @param {*} value 28918 */ 28919 setValueForProperty: function (node, name, value) { 28920 var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null; 28921 if (propertyInfo) { 28922 var mutationMethod = propertyInfo.mutationMethod; 28923 if (mutationMethod) { 28924 mutationMethod(node, value); 28925 } else if (shouldIgnoreValue(propertyInfo, value)) { 28926 this.deleteValueForProperty(node, name); 28927 return; 28928 } else if (propertyInfo.mustUseProperty) { 28929 // Contrary to `setAttribute`, object properties are properly 28930 // `toString`ed by IE8/9. 28931 node[propertyInfo.propertyName] = value; 28932 } else { 28933 var attributeName = propertyInfo.attributeName; 28934 var namespace = propertyInfo.attributeNamespace; 28935 // `setAttribute` with objects becomes only `[object]` in IE8/9, 28936 // ('' + value) makes it output the correct toString()-value. 28937 if (namespace) { 28938 node.setAttributeNS(namespace, attributeName, '' + value); 28939 } else if (propertyInfo.hasBooleanValue || propertyInfo.hasOverloadedBooleanValue && value === true) { 28940 node.setAttribute(attributeName, ''); 28941 } else { 28942 node.setAttribute(attributeName, '' + value); 28943 } 28944 } 28945 } else if (DOMProperty.isCustomAttribute(name)) { 28946 DOMPropertyOperations.setValueForAttribute(node, name, value); 28947 return; 28948 } 28949 28950 if (true) { 28951 var payload = {}; 28952 payload[name] = value; 28953 ReactInstrumentation.debugTool.onHostOperation({ 28954 instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID, 28955 type: 'update attribute', 28956 payload: payload 28957 }); 28958 } 28959 }, 28960 28961 setValueForAttribute: function (node, name, value) { 28962 if (!isAttributeNameSafe(name)) { 28963 return; 28964 } 28965 if (value == null) { 28966 node.removeAttribute(name); 28967 } else { 28968 node.setAttribute(name, '' + value); 28969 } 28970 28971 if (true) { 28972 var payload = {}; 28973 payload[name] = value; 28974 ReactInstrumentation.debugTool.onHostOperation({ 28975 instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID, 28976 type: 'update attribute', 28977 payload: payload 28978 }); 28979 } 28980 }, 28981 28982 /** 28983 * Deletes an attributes from a node. 28984 * 28985 * @param {DOMElement} node 28986 * @param {string} name 28987 */ 28988 deleteValueForAttribute: function (node, name) { 28989 node.removeAttribute(name); 28990 if (true) { 28991 ReactInstrumentation.debugTool.onHostOperation({ 28992 instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID, 28993 type: 'remove attribute', 28994 payload: name 28995 }); 28996 } 28997 }, 28998 28999 /** 29000 * Deletes the value for a property on a node. 29001 * 29002 * @param {DOMElement} node 29003 * @param {string} name 29004 */ 29005 deleteValueForProperty: function (node, name) { 29006 var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null; 29007 if (propertyInfo) { 29008 var mutationMethod = propertyInfo.mutationMethod; 29009 if (mutationMethod) { 29010 mutationMethod(node, undefined); 29011 } else if (propertyInfo.mustUseProperty) { 29012 var propName = propertyInfo.propertyName; 29013 if (propertyInfo.hasBooleanValue) { 29014 node[propName] = false;
29015 } else { 29016 node[propName] = ''; 29017 } 29018 } else { 29019 node.removeAttribute(propertyInfo.attributeName); 29020 } 29021 } else if (DOMProperty.isCustomAttribute(name)) { 29022 node.removeAttribute(name); 29023 } 29024 29025 if (true) { 29026 ReactInstrumentation.debugTool.onHostOperation({ 29027 instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID, 29028 type: 'remove attribute', 29029 payload: name 29030 }); 29031 } 29032 } 29033}; 29034 29035module.exports = DOMPropertyOperations; 29036 29037/***/ }), 29038/* 180 */ 29039/***/ (function(module, exports, __webpack_require__) { 29040 29041"use strict"; 29042/** 29043 * Copyright (c) 2013-present, Facebook, Inc. 29044 * 29045 * This source code is licensed under the MIT license found in the 29046 * LICENSE file in the root directory of this source tree. 29047 * 29048 * 29049 */ 29050 29051 29052 29053var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; 29054 29055module.exports = ReactPropTypesSecret; 29056 29057/***/ }), 29058/* 181 */ 29059/***/ (function(module, exports, __webpack_require__) { 29060 29061"use strict"; 29062/** 29063 * Copyright (c) 2013-present, Facebook, Inc. 29064 * 29065 * This source code is licensed under the MIT license found in the 29066 * LICENSE file in the root directory of this source tree. 29067 * 29068 */ 29069 29070 29071 29072var _assign = __webpack_require__(14); 29073 29074var LinkedValueUtils = __webpack_require__(114); 29075var ReactDOMComponentTree = __webpack_require__(15); 29076var ReactUpdates = __webpack_require__(31); 29077 29078var warning = __webpack_require__(11); 29079 29080var didWarnValueLink = false; 29081var didWarnValueDefaultValue = false; 29082 29083function updateOptionsIfPendingUpdateAndMounted() { 29084 if (this._rootNodeID && this._wrapperState.pendingUpdate) { 29085 this._wrapperState.pendingUpdate = false; 29086 29087 var props = this._currentElement.props; 29088 var value = LinkedValueUtils.getValue(props); 29089 29090 if (value != null) { 29091 updateOptions(this, Boolean(props.multiple), value); 29092 } 29093 } 29094} 29095 29096function getDeclarationErrorAddendum(owner) { 29097 if (owner) { 29098 var name = owner.getName(); 29099 if (name) { 29100 return ' Check the render method of `' + name + '`.'; 29101 } 29102 } 29103 return ''; 29104} 29105 29106var valuePropNames = ['value', 'defaultValue']; 29107 29108/** 29109 * Validation function for `value` and `defaultValue`. 29110 * @private 29111 */ 29112function checkSelectPropTypes(inst, props) { 29113 var owner = inst._currentElement._owner; 29114 LinkedValueUtils.checkPropTypes('select', props, owner); 29115 29116 if (props.valueLink !== undefined && !didWarnValueLink) { 29117 true ? warning(false, '`valueLink` prop on `select` is deprecated; set `value` and `onChange` instead.') : void 0; 29118 didWarnValueLink = true; 29119 } 29120 29121 for (var i = 0; i < valuePropNames.length; i++) { 29122 var propName = valuePropNames[i]; 29123 if (props[propName] == null) { 29124 continue; 29125 } 29126 var isArray = Array.isArray(props[propName]); 29127 if (props.multiple && !isArray) { 29128 true ? warning(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum(owner)) : void 0; 29129 } else if (!props.multiple && isArray) { 29130 true ? warning(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum(owner)) : void 0; 29131 } 29132 } 29133} 29134 29135/** 29136 * @param {ReactDOMComponent} inst 29137 * @param {boolean} multiple 29138 * @param {*} propValue A stringable (with `multiple`, a list of stringables). 29139 * @private 29140 */ 29141function updateOptions(inst, multiple, propValue) { 29142 var selectedValue, i; 29143 var options = ReactDOMComponentTree.getNodeFromInstance(inst).options; 29144 29145 if (multiple) { 29146 selectedValue = {}; 29147 for (i = 0; i < propValue.length; i++) { 29148 selectedValue['' + propValue[i]] = true; 29149 } 29150 for (i = 0; i < options.length; i++) { 29151 var selected = selectedValue.hasOwnProperty(options[i].value); 29152 if (options[i].selected !== selected) { 29153 options[i].selected = selected; 29154 } 29155 } 29156 } else { 29157 // Do not set `select.value` as exact behavior isn't consistent across all 29158 // browsers for all cases. 29159 selectedValue = '' + propValue; 29160 for (i = 0; i < options.length; i++) { 29161 if (options[i].value === selectedValue) { 29162 options[i].selected = true; 29163 return; 29164 } 29165 } 29166 if (options.length) { 29167 options[0].selected = true; 29168 } 29169 } 29170} 29171 29172/** 29173 * Implements a <select> host component that allows optionally setting the 29174 * props `value` and `defaultValue`. If `multiple` is false, the prop must be a 29175 * stringable. If `multiple` is true, the prop must be an array of str
29175ingables. 29176 * 29177 * If `value` is not supplied (or null/undefined), user actions that change the 29178 * selected option will trigger updates to the rendered options. 29179 * 29180 * If it is supplied (and not null/undefined), the rendered options will not 29181 * update in response to user actions. Instead, the `value` prop must change in 29182 * order for the rendered options to update. 29183 * 29184 * If `defaultValue` is provided, any options with the supplied values will be 29185 * selected. 29186 */ 29187var ReactDOMSelect = { 29188 getHostProps: function (inst, props) { 29189 return _assign({}, props, { 29190 onChange: inst._wrapperState.onChange, 29191 value: undefined 29192 }); 29193 }, 29194 29195 mountWrapper: function (inst, props) { 29196 if (true) { 29197 checkSelectPropTypes(inst, props); 29198 } 29199 29200 var value = LinkedValueUtils.getValue(props); 29201 inst._wrapperState = { 29202 pendingUpdate: false, 29203 initialValue: value != null ? value : props.defaultValue, 29204 listeners: null, 29205 onChange: _handleChange.bind(inst), 29206 wasMultiple: Boolean(props.multiple) 29207 }; 29208 29209 if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) { 29210 true ? warning(false, 'Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components') : void 0; 29211 didWarnValueDefaultValue = true; 29212 } 29213 }, 29214 29215 getSelectValueContext: function (inst) { 29216 // ReactDOMOption looks at this initial value so the initial generated 29217 // markup has correct `selected` attributes 29218 return inst._wrapperState.initialValue; 29219 }, 29220 29221 postUpdateWrapper: function (inst) { 29222 var props = inst._currentElement.props; 29223 29224 // After the initial mount, we control selected-ness manually so don't pass 29225 // this value down 29226 inst._wrapperState.initialValue = undefined; 29227 29228 var wasMultiple = inst._wrapperState.wasMultiple; 29229 inst._wrapperState.wasMultiple = Boolean(props.multiple); 29230 29231 var value = LinkedValueUtils.getValue(props); 29232 if (value != null) { 29233 inst._wrapperState.pendingUpdate = false; 29234 updateOptions(inst, Boolean(props.multiple), value); 29235 } else if (wasMultiple !== Boolean(props.multiple)) { 29236 // For simplicity, reapply `defaultValue` if `multiple` is toggled. 29237 if (props.defaultValue != null) { 29238 updateOptions(inst, Boolean(props.multiple), props.defaultValue); 29239 } else { 29240 // Revert the select back to its default unselected state. 29241 updateOptions(inst, Boolean(props.multiple), props.multiple ? [] : ''); 29242 } 29243 } 29244 } 29245}; 29246 29247function _handleChange(event) { 29248 var props = this._currentElement.props; 29249 var returnValue = LinkedValueUtils.executeOnChange(props, event); 29250 29251 if (this._rootNodeID) { 29252 this._wrapperState.pendingUpdate = true; 29253 } 29254 ReactUpdates.asap(updateOptionsIfPendingUpdateAndMounted, this); 29255 return returnValue; 29256} 29257 29258module.exports = ReactDOMSelect; 29259 29260/***/ }), 29261/* 182 */ 29262/***/ (function(module, exports, __webpack_require__) { 29263 29264"use strict"; 29265/** 29266 * Copyright (c) 2013-present, Facebook, Inc. 29267 * 29268 * This source code is licensed under the MIT license found in the 29269 * LICENSE file in the root directory of this source tree. 29270 * 29271 */ 29272 29273 29274 29275var _prodInvariant = __webpack_require__(12), 29276 _assign = __webpack_require__(14); 29277 29278var ReactCompositeComponent = __webpack_require__(463); 29279var ReactEmptyComponent = __webpack_require__(184); 29280var ReactHostComponent = __webpack_require__(185); 29281 29282var getNextDebugID = __webpack_require__(466); 29283var invariant = __webpack_require__(10); 29284var warning = __webpack_require__(11); 29285 29286// To avoid a cyclic dependency, we create the final class in this module 29287var ReactCompositeComponentWrapper = function (element) { 29288 this.construct(element); 29289}; 29290 29291function getDeclarationErrorAddendum(owner) { 29292 if (owner) { 29293 var name = owner.getName(); 29294 if (name) { 29295 return ' Check the render method of `' + name + '`.'; 29296 } 29297 } 29298 return ''; 29299} 29300 29301/** 29302 * Check if the type reference is a known internal type. I.e. not a user 29303 * provided composite type. 29304 * 29305 * @param {function} type 29306 * @return {boolean} Returns true if this is a valid internal type. 29307 */ 29308function isInternalComponentType(type) { 29309 return typeof type === 'function' && typeof type.prototype !== 'undefined' && typeof type.prototype.mountComponent === 'function' && typeof type.prototype.receiveComponent === 'function'; 29310} 29311 29312/** 29313 * Given a ReactNode, create an instance that will actually be mounted. 29314 * 29315 * @param {ReactNode} node 29316 * @param {boolean} shouldHaveDebugID 29317 * @return {object} A new instance of the element's constructor. 29318 * @protected 29319 */ 29320function instantiateReactComponent(node, shouldHaveDebugID) { 29321 var instance; 29322 29323 if (node === null || node === false) { 29324 instance = ReactEmptyComponent.create(instantiateReactComponent); 29325 } else if (typeof node === 'object') { 29326 var element = node; 29327 var type = element.type; 29328 if (typeof type !== 'function' && typeof type !== 'string') { 29329 var info = ''; 29330 if (true) { 29331 if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) { 29332 info += ' You likely forgot to export your component from the file ' + "it's defined in."; 29333 } 29334 } 29335 info += getDeclarationErrorAddendum(element._owner);
29336 true ? true ? invariant(false, 'Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s', type == null ? type : typeof type, info) : _prodInvariant('130', type == null ? type : typeof type, info) : void 0; 29337 } 29338 29339 // Special case string values 29340 if (typeof element.type === 'string') { 29341 instance = ReactHostComponent.createInternalComponent(element); 29342 } else if (isInternalComponentType(element.type)) { 29343 // This is temporarily available for custom components that are not string 29344 // representations. I.e. ART. Once those are updated to use the string 29345 // representation, we can drop this code path. 29346 instance = new element.type(element); 29347 29348 // We renamed this. Allow the old name for compat. :( 29349 if (!instance.getHostNode) { 29350 instance.getHostNode = instance.getNativeNode; 29351 } 29352 } else { 29353 instance = new ReactCompositeComponentWrapper(element); 29354 } 29355 } else if (typeof node === 'string' || typeof node === 'number') { 29356 instance = ReactHostComponent.createInstanceForText(node); 29357 } else { 29358 true ? true ? invariant(false, 'Encountered invalid React node of type %s', typeof node) : _prodInvariant('131', typeof node) : void 0; 29359 } 29360 29361 if (true) { 29362 true ? warning(typeof instance.mountComponent === 'function' && typeof instance.receiveComponent === 'function' && typeof instance.getHostNode === 'function' && typeof instance.unmountComponent === 'function', 'Only React Components can be mounted.') : void 0; 29363 } 29364 29365 // These two fields are used by the DOM and ART diffing algorithms 29366 // respectively. Instead of using expandos on components, we should be 29367 // storing the state needed by the diffing algorithms elsewhere. 29368 instance._mountIndex = 0; 29369 instance._mountImage = null; 29370 29371 if (true) { 29372 instance._debugID = shouldHaveDebugID ? getNextDebugID() : 0; 29373 } 29374 29375 // Internal instances should fully constructed at this point, so they should 29376 // not get any new fields added to them at this point. 29377 if (true) { 29378 if (Object.preventExtensions) { 29379 Object.preventExtensions(instance); 29380 } 29381 } 29382 29383 return instance; 29384} 29385 29386_assign(ReactCompositeComponentWrapper.prototype, ReactCompositeComponent, { 29387 _instantiateReactComponent: instantiateReactComponent 29388}); 29389 29390module.exports = instantiateReactComponent; 29391 29392/***/ }), 29393/* 183 */ 29394/***/ (function(module, exports, __webpack_require__) { 29395 29396"use strict"; 29397/** 29398 * Copyright (c) 2013-present, Facebook, Inc. 29399 * 29400 * This source code is licensed under the MIT license found in the 29401 * LICENSE file in the root directory of this source tree. 29402 * 29403 * 29404 */ 29405 29406 29407 29408var _prodInvariant = __webpack_require__(12); 29409 29410var React = __webpack_require__(48); 29411 29412var invariant = __webpack_require__(10); 29413 29414var ReactNodeTypes = { 29415 HOST: 0, 29416 COMPOSITE: 1, 29417 EMPTY: 2, 29418 29419 getType: function (node) { 29420 if (node === null || node === false) { 29421 return ReactNodeTypes.EMPTY; 29422 } else if (React.isValidElement(node)) { 29423 if (typeof node.type === 'function') { 29424 return ReactNodeTypes.COMPOSITE; 29425 } else { 29426 return ReactNodeTypes.HOST; 29427 } 29428 } 29429 true ? true ? invariant(false, 'Unexpected node: %s', node) : _prodInvariant('26', node) : void 0; 29430 } 29431}; 29432 29433module.exports = ReactNodeTypes; 29434 29435/***/ }), 29436/* 184 */ 29437/***/ (function(module, exports, __webpack_require__) { 29438 29439"use strict"; 29440/** 29441 * Copyright (c) 2014-present, Facebook, Inc. 29442 * 29443 * This source code is licensed under the MIT license found in the 29444 * LICENSE file in the root directory of this source tree. 29445 * 29446 */ 29447 29448 29449 29450var emptyComponentFactory; 29451 29452var ReactEmptyComponentInjection = { 29453 injectEmptyComponentFactory: function (factory) { 29454 emptyComponentFactory = factory; 29455 } 29456}; 29457 29458var ReactEmptyComponent = { 29459 create: function (instantiate) { 29460 return emptyComponentFactory(instantiate); 29461 } 29462}; 29463 29464ReactEmptyComponent.injection = ReactEmptyComponentInjection; 29465 29466module.exports = ReactEmptyComponent; 29467 29468/***/ }), 29469/* 185 */ 29470/***/ (function(module, exports, __webpack_require__) { 29471 29472"use strict"; 29473/** 29474 * Copyright (c) 2014-present, Facebook, Inc. 29475 * 29476 * This source code is licensed under the MIT license found in the 29477 * LICENSE file in the root directory of this source tree. 29478 * 29479 */ 29480 29481 29482 29483var _prodInvariant = __webpack_require__(12); 29484 29485var invariant = __webpack_require__(10); 29486 29487var genericComponentClass = null; 29488var textComponentClass = null; 29489 29490var ReactHostComponentInjection = { 29491 // This accepts a class that receives the tag string. This is a catch all 29492 // that can render any kind of tag. 29493 injectGenericComponentClass: function (componentClass) { 29494 genericComponentClass = componentClass; 29495 }, 29496 // This accepts a text component class that takes the text str
29496ing to be 29497 // rendered as props. 29498 injectTextComponentClass: function (componentClass) { 29499 textComponentClass = componentClass; 29500 } 29501}; 29502 29503/** 29504 * Get a host internal component class for a specific tag. 29505 * 29506 * @param {ReactElement} element The element to create. 29507 * @return {function} The internal class constructor function. 29508 */ 29509function createInternalComponent(element) { 29510 !genericComponentClass ? true ? invariant(false, 'There is no registered component for the tag %s', element.type) : _prodInvariant('111', element.type) : void 0; 29511 return new genericComponentClass(element); 29512} 29513 29514/** 29515 * @param {ReactText} text 29516 * @return {ReactComponent} 29517 */ 29518function createInstanceForText(text) { 29519 return new textComponentClass(text); 29520} 29521 29522/** 29523 * @param {ReactComponent} component 29524 * @return {boolean} 29525 */ 29526function isTextComponent(component) { 29527 return component instanceof textComponentClass; 29528} 29529 29530var ReactHostComponent = { 29531 createInternalComponent: createInternalComponent, 29532 createInstanceForText: createInstanceForText, 29533 isTextComponent: isTextComponent, 29534 injection: ReactHostComponentInjection 29535}; 29536 29537module.exports = ReactHostComponent; 29538 29539/***/ }), 29540/* 186 */ 29541/***/ (function(module, exports, __webpack_require__) { 29542 29543"use strict"; 29544/** 29545 * Copyright (c) 2013-present, Facebook, Inc. 29546 * 29547 * This source code is licensed under the MIT license found in the 29548 * LICENSE file in the root directory of this source tree. 29549 * 29550 */ 29551 29552 29553 29554var _prodInvariant = __webpack_require__(12); 29555 29556var ReactCurrentOwner = __webpack_require__(30); 29557var REACT_ELEMENT_TYPE = __webpack_require__(467); 29558 29559var getIteratorFn = __webpack_require__(468); 29560var invariant = __webpack_require__(10); 29561var KeyEscapeUtils = __webpack_require__(118); 29562var warning = __webpack_require__(11); 29563 29564var SEPARATOR = '.'; 29565var SUBSEPARATOR = ':'; 29566 29567/** 29568 * This is inlined from ReactElement since this file is shared between 29569 * isomorphic and renderers. We could extract this to a 29570 * 29571 */ 29572 29573/** 29574 * TODO: Test that a single child and an array with one item have the same key 29575 * pattern. 29576 */ 29577 29578var didWarnAboutMaps = false; 29579 29580/** 29581 * Generate a key string that identifies a component within a set. 29582 * 29583 * @param {*} component A component that could contain a manual key. 29584 * @param {number} index Index that is used if a manual key is not provided. 29585 * @return {string} 29586 */ 29587function getComponentKey(component, index) { 29588 // Do some typechecking here since we call this blindly. We want to ensure 29589 // that we don't block potential future ES APIs. 29590 if (component && typeof component === 'object' && component.key != null) { 29591 // Explicit key 29592 return KeyEscapeUtils.escape(component.key); 29593 } 29594 // Implicit key determined by the index in the set 29595 return index.toString(36); 29596} 29597 29598/** 29599 * @param {?*} children Children tree container. 29600 * @param {!string} nameSoFar Name of the key path so far. 29601 * @param {!function} callback Callback to invoke with each child found. 29602 * @param {?*} traverseContext Used to pass information throughout the traversal 29603 * process. 29604 * @return {!number} The number of children in this subtree. 29605 */ 29606function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) { 29607 var type = typeof children; 29608 29609 if (type === 'undefined' || type === 'boolean') { 29610 // All of the above are perceived as null. 29611 children = null; 29612 } 29613 29614 if (children === null || type === 'string' || type === 'number' || 29615 // The following is inlined from ReactElement. This means we can optimize 29616 // some checks. React Fiber also inlines this logic for similar purposes. 29617 type === 'object' && children.$$typeof === REACT_ELEMENT_TYPE) { 29618 callback(traverseContext, children, 29619 // If it's the only child, treat the name as if it was wrapped in an array 29620 // so that it's consistent if the number of children grows. 29621 nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar); 29622 return 1; 29623 } 29624 29625 var child; 29626 var nextName; 29627 var subtreeCount = 0; // Count of children found in the current subtree.
29628 var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR; 29629 29630 if (Array.isArray(children)) { 29631 for (var i = 0; i < children.length; i++) { 29632 child = children[i]; 29633 nextName = nextNamePrefix + getComponentKey(child, i); 29634 subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); 29635 } 29636 } else { 29637 var iteratorFn = getIteratorFn(children); 29638 if (iteratorFn) { 29639 var iterator = iteratorFn.call(children); 29640 var step; 29641 if (iteratorFn !== children.entries) { 29642 var ii = 0; 29643 while (!(step = iterator.next()).done) { 29644 child = step.value; 29645 nextName = nextNamePrefix + getComponentKey(child, ii++); 29646 subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); 29647 } 29648 } else { 29649 if (true) { 29650 var mapsAsChildrenAddendum = ''; 29651 if (ReactCurrentOwner.current) { 29652 var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName(); 29653 if (mapsAsChildrenOwnerName) { 29654 mapsAsChildrenAddendum = ' Check the render method of `' + mapsAsChildrenOwnerName + '`.'; 29655 } 29656 } 29657 true ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.%s', mapsAsChildrenAddendum) : void 0; 29658 didWarnAboutMaps = true; 29659 } 29660 // Iterator will provide entry [k,v] tuples rather than values. 29661 while (!(step = iterator.next()).done) { 29662 var entry = step.value; 29663 if (entry) { 29664 child = entry[1]; 29665 nextName = nextNamePrefix + KeyEscapeUtils.escape(entry[0]) + SUBSEPARATOR + getComponentKey(child, 0); 29666 subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); 29667 } 29668 } 29669 } 29670 } else if (type === 'object') { 29671 var addendum = ''; 29672 if (true) { 29673 addendum = ' If you meant to render a collection of children, use an array ' + 'instead or wrap the object using createFragment(object) from the ' + 'React add-ons.'; 29674 if (children._isReactElement) { 29675 addendum = " It looks like you're using an element created by a different " + 'version of React. Make sure to use only one copy of React.'; 29676 } 29677 if (ReactCurrentOwner.current) { 29678 var name = ReactCurrentOwner.current.getName(); 29679 if (name) { 29680 addendum += ' Check the render method of `' + name + '`.'; 29681 } 29682 } 29683 } 29684 var childrenString = String(children); 29685 true ? true ? invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : _prodInvariant('31', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : void 0; 29686 } 29687 } 29688 29689 return subtreeCount; 29690} 29691 29692/** 29693 * Traverses children that are typically specified as `props.children`, but 29694 * might also be specified through attributes: 29695 * 29696 * - `traverseAllChildren(this.props.children, ...)` 29697 * - `traverseAllChildren(this.props.leftPanelChildren, ...)` 29698 * 29699 * The `traverseContext` is an optional argument that is passed through the 29700 * entire traversal. It can be used to store accumulations or anything else that 29701 * the callback might find relevant. 29702 * 29703 * @param {?*} children Children tree object. 29704 * @param {!function} callback To invoke upon traversing each child. 29705 * @param {?*} traverseContext Context for traversal. 29706 * @return {!number} The number of children in this subtree. 29707 */ 29708function traverseAllChildren(children, callback, traverseContext) { 29709 if (children == null) { 29710 return 0; 29711 } 29712 29713 return traverseAllChildrenImpl(children, '', callback, traverseContext); 29714} 29715 29716module.exports = traverseAllChildren; 29717 29718/***/ }), 29719/* 187 */ 29720/***/ (function(module, exports, __webpack_require__) { 29721 29722"use strict"; 29723 29724 29725/** 29726 * Copyright (c) 2013-present, Facebook, Inc. 29727 * 29728 * This source code is licensed under the MIT license found in the 29729 * LICENSE file in the root directory of this source tree. 29730 * 29731 * @typechecks 29732 */ 29733 29734var emptyFunction = __webpack_require__(29); 29735 29736/** 29737 * Upstream version of event listener. Does not take into account specific 29738 * nature of platform. 29739 */ 29740var EventListener = { 29741 /** 29742 * Listen to DOM events during the bubble phase. 29743 * 29744 * @param {DOMEventTarget} target DOM element to register listener on.
29745 * @param {string} eventType Event type, e.g. 'click' or 'mouseover'. 29746 * @param {function} callback Callback function. 29747 * @return {object} Object with a `remove` method. 29748 */ 29749 listen: function listen(target, eventType, callback) { 29750 if (target.addEventListener) { 29751 target.addEventListener(eventType, callback, false); 29752 return { 29753 remove: function remove() { 29754 target.removeEventListener(eventType, callback, false); 29755 } 29756 }; 29757 } else if (target.attachEvent) { 29758 target.attachEvent('on' + eventType, callback); 29759 return { 29760 remove: function remove() { 29761 target.detachEvent('on' + eventType, callback); 29762 } 29763 }; 29764 } 29765 }, 29766 29767 /** 29768 * Listen to DOM events during the capture phase. 29769 * 29770 * @param {DOMEventTarget} target DOM element to register listener on. 29771 * @param {string} eventType Event type, e.g. 'click' or 'mouseover'. 29772 * @param {function} callback Callback function. 29773 * @return {object} Object with a `remove` method. 29774 */ 29775 capture: function capture(target, eventType, callback) { 29776 if (target.addEventListener) { 29777 target.addEventListener(eventType, callback, true); 29778 return { 29779 remove: function remove() { 29780 target.removeEventListener(eventType, callback, true); 29781 } 29782 }; 29783 } else { 29784 if (true) { 29785 console.error('Attempted to listen to events during the capture phase on a ' + 'browser that does not support the capture phase. Your application ' + 'will not receive some events.'); 29786 } 29787 return { 29788 remove: emptyFunction 29789 }; 29790 } 29791 }, 29792 29793 registerDefault: function registerDefault() {} 29794}; 29795 29796module.exports = EventListener; 29797 29798/***/ }), 29799/* 188 */ 29800/***/ (function(module, exports, __webpack_require__) { 29801 29802"use strict"; 29803/** 29804 * Copyright (c) 2013-present, Facebook, Inc. 29805 * 29806 * This source code is licensed under the MIT license found in the 29807 * LICENSE file in the root directory of this source tree. 29808 * 29809 */ 29810 29811 29812 29813var ReactDOMSelection = __webpack_require__(480); 29814 29815var containsNode = __webpack_require__(482); 29816var focusNode = __webpack_require__(177); 29817var getActiveElement = __webpack_require__(189); 29818 29819function isInDocument(node) { 29820 return containsNode(document.documentElement, node); 29821} 29822 29823/** 29824 * @ReactInputSelection: React input selection module. Based on Selection.js, 29825 * but modified to be suitable for react and has a couple of bug fixes (doesn't 29826 * assume buttons have range selections allowed). 29827 * Input selection module for React. 29828 */ 29829var ReactInputSelection = { 29830 hasSelectionCapabilities: function (elem) { 29831 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); 29832 return nodeName && (nodeName === 'input' && elem.type === 'text' || nodeName === 'textarea' || elem.contentEditable === 'true'); 29833 }, 29834 29835 getSelectionInformation: function () { 29836 var focusedElem = getActiveElement(); 29837 return { 29838 focusedElem: focusedElem, 29839 selectionRange: ReactInputSelection.hasSelectionCapabilities(focusedElem) ? ReactInputSelection.getSelection(focusedElem) : null 29840 }; 29841 }, 29842 29843 /** 29844 * @restoreSelection: If any selection information was potentially lost, 29845 * restore it. This is useful when performing operations that could remove dom 29846 * nodes and place them back in, resulting in focus being lost. 29847 */ 29848 restoreSelection: function (priorSelectionInformation) { 29849 var curFocusedElem = getActiveElement(); 29850 var priorFocusedElem = priorSelectionInformation.focusedElem; 29851 var priorSelectionRange = priorSelectionInformation.selectionRange; 29852 if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) { 29853 if (ReactInputSelection.hasSelectionCapabilities(priorFocusedElem)) { 29854 ReactInputSelection.setSelection(priorFocusedElem, priorSelectionRange); 29855 } 29856 focusNode(priorFocusedElem); 29857 } 29858 }, 29859 29860 /** 29861 * @getSelection: Gets the selection bounds of a focused textarea, input or 29862 * contentEditable node. 29863 * -@input: Look up selection bounds of this input 29864 * -@return {start: selectionStart, end: selectionEnd} 29865 */ 29866 getSelection: function (input) { 29867 var selection; 29868 29869 if ('selectionStart' in input) { 29870 // Modern browser with input or textarea. 29871 selection = { 29872 start: input.selectionStart, 29873 end: input.selectionEnd 29874 }; 29875 } else if (document.selection && input.nodeName && input.nodeName.toLowerCase() === 'input') { 29876 // IE8 input. 29877 var range = document.selection.createRange(); 29878 // There can only be one selection per document in IE, so it must 29879 // be in our element. 29880 if (range.parentElement() === input) { 29881 selection = { 29882 start: -range.moveStart('character', -input.value.length), 29883 end: -range.moveEnd('character', -input.value.length) 29884 }; 29885 } 29886 } else { 29887 // Content editable or old IE textarea. 29888 selection = ReactDOMSelection.getOffsets(input); 29889 } 29890 29891 return selection || { start: 0, end: 0 }; 29892 }, 29893 29894 /** 29895 * @setSelection: Sets the selection bounds of a textarea or input and focuses 29896 * the input. 29897 * -@input Set selection bounds of this input or textarea 29898 * -@offsets Object of same form that is returned from get* 29899 */ 29900 setSelection: function (input, offsets) { 29901 var start = offsets.start; 29902 var end = offsets.end; 29903 if (end === undefined) { 29904 end = start; 29905 } 29906 29907 if ('selectionStart' in input) { 29908 input.selectionStart = start; 29909 input.selectionEnd = Math.min(end, input.value.length); 29910 } else if (document.selection && input.nodeName && input.nodeName.toLowerCase() === 'input') { 29911 var range = input.createTextRange(); 29912 range.collapse(true); 29913 range.moveStart('character', start); 29914 range.moveEnd('character', end - start); 29915 range.select(); 29916 } else { 29917 ReactDOMSelection.setOffsets(input, offsets); 29918 } 29919 } 29920}; 29921 29922module.exports = ReactInputSelection; 29923 29924/***/ }), 29925/* 189 */ 29926/***/ (function(module, exports, __webpack_require__) { 29927 29928"use strict"; 29929 29930 29931/** 29932 * Copyright (c) 2013-present, Facebook, Inc. 29933 * 29934 * This source code is licensed under the MIT license found in the 29935 * LICENSE file in the root directory of this source tree. 29936 * 29937 * @typechecks 29938 */ 29939 29940/* eslint-disable fb-www/typeof-undefined */ 29941
29942/** 29943 * Same as document.activeElement but wraps in a try-catch block. In IE it is 29944 * not safe to call document.activeElement if there is nothing focused. 29945 * 29946 * The activeElement will be null only if the document or document body is not 29947 * yet defined. 29948 * 29949 * @param {?DOMDocument} doc Defaults to current document. 29950 * @return {?DOMElement} 29951 */ 29952function getActiveElement(doc) /*?DOMElement*/{ 29953 doc = doc || (typeof document !== 'undefined' ? document : undefined); 29954 if (typeof doc === 'undefined') { 29955 return null; 29956 } 29957 try { 29958 return doc.activeElement || doc.body; 29959 } catch (e) { 29960 return doc.body; 29961 } 29962} 29963 29964module.exports = getActiveElement; 29965 29966/***/ }), 29967/* 190 */ 29968/***/ (function(module, exports, __webpack_require__) { 29969 29970"use strict"; 29971/** 29972 * Copyright (c) 2013-present, Facebook, Inc. 29973 * 29974 * This source code is licensed under the MIT license found in the 29975 * LICENSE file in the root directory of this source tree. 29976 * 29977 */ 29978 29979 29980 29981var _prodInvariant = __webpack_require__(12); 29982 29983var DOMLazyTree = __webpack_require__(54); 29984var DOMProperty = __webpack_require__(36); 29985var React = __webpack_require__(48); 29986var ReactBrowserEventEmitter = __webpack_require__(84); 29987var ReactCurrentOwner = __webpack_require__(30); 29988var ReactDOMComponentTree = __webpack_require__(15); 29989var ReactDOMContainerInfo = __webpack_require__(497); 29990var ReactDOMFeatureFlags = __webpack_require__(498); 29991var ReactFeatureFlags = __webpack_require__(173); 29992var ReactInstanceMap = __webpack_require__(66); 29993var ReactInstrumentation = __webpack_require__(24); 29994var ReactMarkupChecksum = __webpack_require__(499); 29995var ReactReconciler = __webpack_require__(52); 29996var ReactUpdateQueue = __webpack_require__(119); 29997var ReactUpdates = __webpack_require__(31); 29998 29999var emptyObject = __webpack_require__(77); 30000var instantiateReactComponent = __webpack_require__(182); 30001var invariant = __webpack_require__(10); 30002var setInnerHTML = __webpack_require__(82); 30003var shouldUpdateReactComponent = __webpack_require__(117); 30004var warning = __webpack_require__(11); 30005 30006var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME; 30007var ROOT_ATTR_NAME = DOMProperty.ROOT_ATTRIBUTE_NAME; 30008 30009var ELEMENT_NODE_TYPE = 1; 30010var DOC_NODE_TYPE = 9; 30011var DOCUMENT_FRAGMENT_NODE_TYPE = 11; 30012 30013var instancesByReactRootID = {}; 30014 30015/** 30016 * Finds the index of the first character 30017 * that's not common between the two given strings. 30018 * 30019 * @return {number} the index of the character where the strings diverge 30020 */ 30021function firstDifferenceIndex(string1, string2) { 30022 var minLen = Math.min(string1.length, string2.length); 30023 for (var i = 0; i < minLen; i++) { 30024 if (string1.charAt(i) !== string2.charAt(i)) { 30025 return i; 30026 } 30027 } 30028 return string1.length === string2.length ? -1 : minLen; 30029} 30030 30031/** 30032 * @param {DOMElement|DOMDocument} container DOM element that may contain 30033 * a React component 30034 * @return {?*} DOM element that may have the reactRoot ID, or null. 30035 */ 30036function getReactRootElementInContainer(container) { 30037 if (!container) { 30038 return null; 30039 } 30040 30041 if (container.nodeType === DOC_NODE_TYPE) { 30042 return container.documentElement; 30043 } else { 30044 return container.firstChild; 30045 } 30046} 30047 30048function internalGetID(node) { 30049 // If node is something like a window, document, or text node, none of 30050 // which support attributes or a .getAttribute method, gracefully return 30051 // the empty string, as if the attribute were missing. 30052 return node.getAttribute && node.getAttribute(ATTR_NAME) || ''; 30053} 30054 30055/** 30056 * Mounts this component and inserts it into the DOM. 30057 * 30058 * @param {ReactComponent} componentInstance The instance to mount. 30059 * @param {DOMElement} container DOM element to mount into. 30060 * @param {ReactReconcileTransaction} transaction 30061 * @param {boolean} shouldReuseMarkup If true, do not insert markup 30062 */ 30063function mountComponentIntoNode(wrapperInstance, container, transaction, shouldReuseMarkup, context) { 30064 var markerName; 30065 if (ReactFeatureFlags.logTopLevelRenders) { 30066 var wrappedElement = wrapperInstance._currentElement.props.child; 30067 var type = wrappedElement.type; 30068 markerName = 'React mount: ' + (typeof type === 'string' ? type : type.displayName || type.name); 30069 console.time(markerName); 30070 } 30071 30072 var markup = ReactReconciler.mountComponent(wrapperInstance, transaction, null, ReactDOMContainerInfo(wrapperInstance, container), context, 0 /* parentDebugID */ 30073 ); 30074 30075 if (markerName) { 30076 console.timeEnd(markerName); 30077 } 30078 30079 wrapperInstance._renderedComponent._topLevelWrapper = wrapperInstance; 30080 ReactMount._mountImageIntoNode(markup, container, wrapperInstance, shouldReuseMarkup, transaction); 30081} 30082 30083/** 30084 * Batched mount. 30085 * 30086 * @param {ReactComponent} componentInstance The instance to mount. 30087 * @param {DOMElement} container DOM element to mount into. 30088 * @param {boolean} shouldReuseMarkup If true, do not insert markup 30089 */ 30090function batchedMountComponentIntoNode(componentInstance, container, shouldReuseMarkup, context) { 30091 var transaction = ReactUpdates.ReactReconcileTransaction.getPooled( 30092 /* useCreateElement */ 30093 !shouldReuseMarkup && ReactDOMFeatureFlags.useCreateElement); 30094 transaction.perform(mountComponentIntoNode, null, componentInstance, container, transaction, shouldReuseMarkup, context); 30095 ReactUpdates.ReactReconcileTransaction.release(transaction); 30096} 30097 30098/** 30099 * Unmounts a component and removes it from the DOM. 30100 * 30101 * @param {ReactComponent} instance React component instance. 30102 * @param {DOMElement} container DOM element to unmount from. 30103 * @final 30104 * @internal 30105 * @see {ReactMount.unmountComponentAtNode} 30106 */ 30107function unmountComponentFromNode(instance, container, safely) { 30108 if (true) { 30109 ReactInstrumentation.debugTool.onBeginFlush(); 30110 } 30111 ReactReconciler.unmountComponent(instance, safely); 30112 if (true) { 30113 ReactInstrumentation.debugTool.onEndFlush(); 30114 } 30115 30116 if (container.nodeType === DOC_NODE_TYPE) { 30117 container = container.documentElement; 30118 } 30119 30120 // http://jsperf.com/emptying-a-node 30121 while (container.lastChild) { 30122 container.removeChild(container.lastChild); 30123 } 30124} 30125 30126/** 30127 * True if the supplied DOM node has a direct React-rendered child that is 30128 * not a React root element. Useful for warning in `render`, 30129 * `unmountComponentAtNode`, etc. 30130 * 30131 * @param {?DOMElement} node The candidate DOM node. 30132 * @return {boolean} True if the DOM element contains a direct child that was 30133 * rendered by React but is not a root element. 30134 * @internal 30135 */ 30136function hasNonRootReactChild(container) { 30137 var rootEl = getReactRootElementInContainer(container); 30138 if (rootEl) { 30139 var inst = ReactDOMComponentTree.getInstanceFromNode(rootEl); 30140 return !!(inst && inst._hostParent); 30141 } 30142} 30143 30144/** 30145 * True if the supplied DOM node is a React DOM element and 30146 * it has been rendered by another copy of React. 30147 * 30148 * @param {?DOMElement} node The candidate DOM node. 30149 * @return {boolean} True if the DOM has been rendered by another copy of React 30150 * @internal 30151 */ 30152function nodeIsRenderedByOtherInstance(container) { 30153 var rootEl = getReactRootElementInContainer(container); 30154 return !!(rootEl && isReactNode(rootEl) && !ReactDOMComponentTree.getInstanceFromNode(rootEl)); 30155} 30156 30157/** 30158 * True if the supplied DOM node is a valid node element. 30159 * 30160 * @param {?DOMElement} node The candidate DOM node. 30161 * @return {boolean} True if the DOM is a valid DOM node. 30162 * @internal 30163 */ 30164function isValidContainer(node) { 30165 return !!(node && (node.nodeType === ELEMENT_NODE_TYPE || node.nodeType === DOC_NODE_TYPE || node.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE)); 30166} 30167 30168/** 30169 * True if the supplied DOM node is a valid React node element. 30170 * 30171 * @param {?DOMElement} node The candidate DOM node. 30172 * @return {boolean} True if the DOM is a valid React DOM node. 30173 * @internal 30174 */ 30175function isReactNode(node) { 30176 return isValidContainer(node) && (node.hasAttribute(ROOT_ATTR_NAME) || node.hasAttribute(ATTR_NAME)); 30177} 30178 30179function getHostRootInstanceInContainer(container) { 30180 var rootEl = getReactRootElementInContainer(container); 30181 var prevHostInstance = rootEl && ReactDOMComponentTree.getInstanceFromNode(rootEl); 30182 return prevHostInstance && !prevHostInstance._hostParent ? prevHostInstance : null; 30183} 30184 30185function getTopLevelWrapperInContainer(container) { 30186 var root = getHostRootInstanceInContainer(container); 30187 return root ? root._hostContainerInfo._topLevelWrapper : null; 30188} 30189 30190/** 30191 * Temporary (?) hack so that we can store all top-level pending updates on 30192 * composites instead of having to worry about different types of components 30193 * here. 30194 */ 30195var topLevelRootCounter = 1; 30196var TopLevelWrapper = function () { 30197 this.rootID = topLevelRootCounter++; 30198}; 30199TopLevelWrapper.prototype.isReactComponent = {}; 30200if (true) { 30201 TopLevelWrapper.displayName = 'TopLevelWrapper'; 30202} 30203TopLevelWrapper.prototype.render = function () { 30204 return this.props.child; 30205}; 30206TopLevelWrapper.isReactTopLevelWrapper = true; 30207 30208/** 30209 * Mounting is the process of initializing a React component by creating its 30210 * representative DOM elements and inserting them into a supplied `container`. 30211 * Any prior content inside `container` is destroyed in the process. 30212 * 30213 * ReactMount.render( 30214 * component, 30215 * document.getElementById('container') 30216 * ); 30217 * 30218 * <div id="container"> <-- Supplied `container`. 30219 * <div data-reactid=".3"> <-- Rendered reactRoot of React 30220 * // ... component.
30221 * </div> 30222 * </div> 30223 * 30224 * Inside of `container`, the first element rendered is the "reactRoot". 30225 */ 30226var ReactMount = { 30227 TopLevelWrapper: TopLevelWrapper, 30228 30229 /** 30230 * Used by devtools. The keys are not important. 30231 */ 30232 _instancesByReactRootID: instancesByReactRootID, 30233 30234 /** 30235 * This is a hook provided to support rendering React components while 30236 * ensuring that the apparent scroll position of its `container` does not 30237 * change. 30238 * 30239 * @param {DOMElement} container The `container` being rendered into. 30240 * @param {function} renderCallback This must be called once to do the render. 30241 */ 30242 scrollMonitor: function (container, renderCallback) { 30243 renderCallback(); 30244 }, 30245 30246 /** 30247 * Take a component that's already mounted into the DOM and replace its props 30248 * @param {ReactComponent} prevComponent component instance already in the DOM 30249 * @param {ReactElement} nextElement component instance to render 30250 * @param {DOMElement} container container to render into 30251 * @param {?function} callback function triggered on completion 30252 */ 30253 _updateRootComponent: function (prevComponent, nextElement, nextContext, container, callback) { 30254 ReactMount.scrollMonitor(container, function () { 30255 ReactUpdateQueue.enqueueElementInternal(prevComponent, nextElement, nextContext); 30256 if (callback) { 30257 ReactUpdateQueue.enqueueCallbackInternal(prevComponent, callback); 30258 } 30259 }); 30260 30261 return prevComponent; 30262 }, 30263 30264 /** 30265 * Render a new component into the DOM. Hooked by hooks! 30266 * 30267 * @param {ReactElement} nextElement element to render 30268 * @param {DOMElement} container container to render into 30269 * @param {boolean} shouldReuseMarkup if we should skip the markup insertion 30270 * @return {ReactComponent} nextComponent 30271 */ 30272 _renderNewRootComponent: function (nextElement, container, shouldReuseMarkup, context) { 30273 // Various parts of our code (such as ReactCompositeComponent's 30274 // _renderValidatedComponent) assume that calls to render aren't nested; 30275 // verify that that's the case. 30276 true ? warning(ReactCurrentOwner.current == null, '_renderNewRootComponent(): Render methods should be a pure function ' + 'of props and state; triggering nested component updates from ' + 'render is not allowed. If necessary, trigger nested updates in ' + 'componentDidUpdate. Check the render method of %s.', ReactCurrentOwner.current && ReactCurrentOwner.current.getName() || 'ReactCompositeComponent') : void 0; 30277 30278 !isValidContainer(container) ? true ? invariant(false, '_registerComponent(...): Target container is not a DOM element.') : _prodInvariant('37') : void 0; 30279 30280 ReactBrowserEventEmitter.ensureScrollValueMonitoring(); 30281 var componentInstance = instantiateReactComponent(nextElement, false); 30282 30283 // The initial render is synchronous but any updates that happen during 30284 // rendering, in componentWillMount or componentDidMount, will be batched 30285 // according to the current batching strategy. 30286 30287 ReactUpdates.batchedUpdates(batchedMountComponentIntoNode, componentInstance, container, shouldReuseMarkup, context); 30288 30289 var wrapperID = componentInstance._instance.rootID; 30290 instancesByReactRootID[wrapperID] = componentInstance; 30291 30292 return componentInstance; 30293 }, 30294 30295 /** 30296 * Renders a React component into the DOM in the supplied `container`. 30297 * 30298 * If the React component was previously rendered into `container`, this will 30299 * perform an update on it and only mutate the DOM as necessary to reflect the 30300 * latest React component. 30301 * 30302 * @param {ReactComponent} parentComponent The conceptual parent of this render tree. 30303 * @param {ReactElement} nextElement Component element to render. 30304 * @param {DOMElement} container DOM element to render into. 30305 * @param {?function} callback function triggered on completion 30306 * @return {ReactComponent} Component instance rendered in `container`. 30307 */ 30308 renderSubtreeIntoContainer: function (parentComponent, nextElement, container, callback) { 30309 !(parentComponent != null && ReactInstanceMap.has(parentComponent)) ? true ? invariant(false, 'parentComponent must be a valid React Component') : _prodInvariant('38') : void 0; 30310 return ReactMount._renderSubtreeIntoContainer(parentComponent, nextElement, container, callback); 30311 }, 30312 30313 _renderSubtreeIntoContainer: function (parentComponent, nextElement, container, callback) { 30314 ReactUpdateQueue.validateCallback(callback, 'ReactDOM.render'); 30315 !React.isValidElement(nextElement) ? true ? invariant(false, 'ReactDOM.render(): Invalid component element.%s', typeof nextElement === 'string' ? " Instead of passing a string like 'div', pass " + "React.createElement('div') or <div />." : typeof nextElement === 'function' ? ' Instead of passing a class like Foo, pass ' + 'React.createElement(Foo) or <Foo />.' : // Check if it quacks like an element 30316 nextElement != null && nextElement.props !== undefined ? ' This may be caused by unintentionally loading two independent ' + 'copies of React.' : '') : _prodInvariant('39', typeof nextElement === 'string' ? " Instead of passing a string like 'div', pass " + "React.createElement('div') or <div />." : typeof nextElement === 'function' ? ' Instead of passing a class like Foo, pass ' + 'React.createElement(Foo) or <Foo />.' : nextElement != null && nextElement.props !== undefined ? ' This may be caused by unintentionally loading two independent ' + 'copies of React.' : '') : void 0; 30317 30318 true ? warning(!container || !container.tagName || container.tagName.toUpperCase() !== 'BODY', 'render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.') : void 0; 30319 30320 var nextWrappedElement = React.createElement(TopLevelWrapper, { 30321 child: nextElement 30322 }); 30323 30324 var nextContext; 30325 if (parentComponent) { 30326 var parentInst = ReactInstanceMap.get(parentComponent); 30327 nextContext = parentInst._processChildContext(parentInst._context); 30328 } else { 30329 nextContext = emptyObject; 30330 } 30331 30332 var prevComponent = getTopLevelWrapperInContainer(container); 30333 30334 if (prevComponent) { 30335 var prevWrappedElement = prevComponent._currentElement; 30336 var prevElement = prevWrappedElement.props.child; 30337 if (shouldUpdateReactComponent(prevElement, nextElement)) { 30338 var publicInst = prevComponent._renderedComponent.getPublicInstance(); 30339 var updatedCallback = callback && function () { 30340 callback.call(publicInst); 30341 }; 30342 ReactMount._updateRootComponent(prevComponent, nextWrappedElement, nextContext, container, updatedCallback); 30343 return publicInst; 30344 } else { 30345 ReactMount.unmountComponentAtNode(container); 30346 } 30347 } 30348 30349 var reactRootElement = getReactRootElementInContainer(container); 30350 var containerHasReactMarkup = reactRootElement && !!internalGetID(reactRootElement); 30351 var containerHasNonRootReactChild = hasNonRootReactChild(container); 30352 30353 if (true) { 30354 true ? warning(!containerHasNonRootReactChild, 'render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.') : void 0; 30355 30356 if (!containerHasReactMarkup || reactRootElement.nextSibling) { 30357 var rootElementSibling = reactRootElement; 30358 while (rootElementSibling) { 30359 if (internalGetID(rootElementSibling)) { 30360 true ? warning(false, 'render(): Target node has markup rendered by React, but there ' + 'are unrelated nodes as well. This is most commonly caused by ' + 'white-space inserted around server-rendered markup.') : void 0; 30361 break; 30362 } 30363 rootElementSibling = rootElementSibling.nextSibling; 30364 } 30365 } 30366 } 30367 30368 var shouldReuseMarkup = containerHasReactMarkup && !prevComponent && !containerHasNonRootReactChild; 30369 var component = ReactMount._renderNewRootComponent(nextWrappedElement, container, shouldReuseMarkup, nextContext)._renderedComponent.getPublicInstance(); 30370 if (callback) { 30371 callback.call(component); 30372 } 30373 return component; 30374 }, 30375 30376 /** 30377 * Renders a React component into the DOM in the supplied `container`. 30378 * See https://facebook.github.io/react/docs/top-level-api.html#reactdom.render 30379 * 30380 * If the React component was previously rendered into `container`, this will 30381 * perform an update on it and only mutate the DOM as necessary to reflect the 30382 * latest React component. 30383 * 30384 * @param {ReactElement} nextElement Component element to render. 30385 * @param {DOMElement} container DOM element to render into. 30386 * @param {?function} callback function triggered on completion 30387 * @return {ReactComponent} Component instance rendered in `container`. 30388 */ 30389 render: function (nextElement, container, callback) { 30390 return ReactMount._renderSubtreeIntoContainer(null, nextElement, container, callback); 30391 }, 30392 30393 /** 30394 * Unmounts and destroys the React component rendered in the `container`. 30395 * See https://facebook.github.io/react/docs/top-level-api.html#reactdom.unmountcomponentatnode 30396 * 30397 * @param {DOMElement} container DOM element containing a React component. 30398 * @return {boolean} True if a component was found in and unmounted from 30399 * `container` 30400 */ 30401 unmountComponentAtNode: function (container) { 30402 // Various parts of our code (such as ReactCompositeComponent's 30403 // _renderValidatedComponent) assume that calls to render aren't nested; 30404 // verify that that's the case. (Strictly speaking, unmounting won't
30404cause a 30405 // render but we still don't expect to be in a render call here.) 30406 true ? warning(ReactCurrentOwner.current == null, 'unmountComponentAtNode(): Render methods should be a pure function ' + 'of props and state; triggering nested component updates from render ' + 'is not allowed. If necessary, trigger nested updates in ' + 'componentDidUpdate. Check the render method of %s.', ReactCurrentOwner.current && ReactCurrentOwner.current.getName() || 'ReactCompositeComponent') : void 0; 30407 30408 !isValidContainer(container) ? true ? invariant(false, 'unmountComponentAtNode(...): Target container is not a DOM element.') : _prodInvariant('40') : void 0; 30409 30410 if (true) { 30411 true ? warning(!nodeIsRenderedByOtherInstance(container), "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.') : void 0; 30412 } 30413 30414 var prevComponent = getTopLevelWrapperInContainer(container); 30415 if (!prevComponent) { 30416 // Check if the node being unmounted was rendered by React, but isn't a 30417 // root node. 30418 var containerHasNonRootReactChild = hasNonRootReactChild(container); 30419 30420 // Check if the container itself is a React root node. 30421 var isContainerReactRoot = container.nodeType === 1 && container.hasAttribute(ROOT_ATTR_NAME); 30422 30423 if (true) { 30424 true ? warning(!containerHasNonRootReactChild, "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.') : void 0; 30425 } 30426 30427 return false; 30428 } 30429 delete instancesByReactRootID[prevComponent._instance.rootID]; 30430 ReactUpdates.batchedUpdates(unmountComponentFromNode, prevComponent, container, false); 30431 return true; 30432 }, 30433 30434 _mountImageIntoNode: function (markup, container, instance, shouldReuseMarkup, transaction) { 30435 !isValidContainer(container) ? true ? invariant(false, 'mountComponentIntoNode(...): Target container is not valid.') : _prodInvariant('41') : void 0; 30436 30437 if (shouldReuseMarkup) { 30438 var rootElement = getReactRootElementInContainer(container); 30439 if (ReactMarkupChecksum.canReuseMarkup(markup, rootElement)) { 30440 ReactDOMComponentTree.precacheNode(instance, rootElement); 30441 return; 30442 } else { 30443 var checksum = rootElement.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME); 30444 rootElement.removeAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME); 30445 30446 var rootMarkup = rootElement.outerHTML; 30447 rootElement.setAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME, checksum); 30448 30449 var normalizedMarkup = markup; 30450 if (true) { 30451 // because rootMarkup is retrieved from the DOM, various normalizations 30452 // will have occurred which will not be present in `markup`. Here, 30453 // insert markup into a <div> or <iframe> depending on the container 30454 // type to perform the same normalizations before comparing. 30455 var normalizer; 30456 if (container.nodeType === ELEMENT_NODE_TYPE) { 30457 normalizer = document.createElement('div'); 30458 normalizer.innerHTML = markup; 30459 normalizedMarkup = normalizer.innerHTML; 30460 } else { 30461 normalizer = document.createElement('iframe'); 30462 document.body.appendChild(normalizer); 30463 normalizer.contentDocument.write(markup); 30464 normalizedMarkup = normalizer.contentDocument.documentElement.outerHTML; 30465 document.body.removeChild(normalizer); 30466 } 30467 } 30468 30469 var diffIndex = firstDifferenceIndex(normalizedMarkup, rootMarkup); 30470 var difference = ' (client) ' + normalizedMarkup.substring(diffIndex - 20, diffIndex + 20) + '\n (server) ' + rootMarkup.substring(diffIndex - 20, diffIndex + 20); 30471 30472 !(container.nodeType !== DOC_NODE_TYPE) ? true ? invariant(false, 'You\'re trying to render a component to the document using server rendering but the checksum was invali
30472d. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side:\n%s', difference) : _prodInvariant('42', difference) : void 0; 30473 30474 if (true) { 30475 true ? warning(false, 'React attempted to reuse markup in a container but the ' + 'checksum was invalid. This generally means that you are ' + 'using server rendering and the markup generated on the ' + 'server was not what the client was expecting. React injected ' + 'new markup to compensate which works but you have lost many ' + 'of the benefits of server rendering. Instead, figure out ' + 'why the markup being generated is different on the client ' + 'or server:\n%s', difference) : void 0; 30476 } 30477 } 30478 } 30479 30480 !(container.nodeType !== DOC_NODE_TYPE) ? true ? invariant(false, 'You\'re trying to render a component to the document but you didn\'t use server rendering. We can\'t do this without using server rendering due to cross-browser quirks. See ReactDOMServer.renderToString() for server rendering.') : _prodInvariant('43') : void 0; 30481 30482 if (transaction.useCreateElement) { 30483 while (container.lastChild) { 30484 container.removeChild(container.lastChild); 30485 } 30486 DOMLazyTree.insertTreeBefore(container, markup, null); 30487 } else { 30488 setInnerHTML(container, markup); 30489 ReactDOMComponentTree.precacheNode(instance, container.firstChild); 30490 } 30491 30492 if (true) { 30493 var hostNode = ReactDOMComponentTree.getInstanceFromNode(container.firstChild); 30494 if (hostNode._debugID !== 0) { 30495 ReactInstrumentation.debugTool.onHostOperation({ 30496 instanceID: hostNode._debugID, 30497 type: 'mount', 30498 payload: markup.toString() 30499 }); 30500 } 30501 } 30502 } 30503}; 30504 30505module.exports = ReactMount; 30506 30507/***/ }), 30508/* 191 */ 30509/***/ (function(module, exports, __webpack_require__) { 30510 30511"use strict"; 30512/** 30513 * Copyright (c) 2013-present, Facebook, Inc. 30514 * 30515 * This source code is licensed under the MIT license found in the 30516 * LICENSE file in the root directory of this source tree. 30517 * 30518 */ 30519 30520 30521 30522var ReactNodeTypes = __webpack_require__(183); 30523 30524function getHostComponentFromComposite(inst) { 30525 var type; 30526 30527 while ((type = inst._renderedNodeType) === ReactNodeTypes.COMPOSITE) { 30528 inst = inst._renderedComponent; 30529 } 30530 30531 if (type === ReactNodeTypes.HOST) { 30532 return inst._renderedComponent; 30533 } else if (type === ReactNodeTypes.EMPTY) { 30534 return null; 30535 } 30536} 30537 30538module.exports = getHostComponentFromComposite; 30539 30540/***/ }), 30541/* 192 */ 30542/***/ (function(module, exports, __webpack_require__) { 30543 30544var invariant = __webpack_require__(10); 30545var defaultClickRejectionStrategy = __webpack_require__(507); 30546 30547var alreadyInjected = false; 30548 30549module.exports = function injectTapEventPlugin (strategyOverrides) { 30550 strategyOverrides = strategyOverrides || {} 30551 var shouldRejectClick = strategyOverrides.shouldRejectClick || defaultClickRejectionStrategy; 30552 30553 if (true) { 30554 invariant( 30555 !alreadyInjected, 30556 'injectTapEventPlugin(): Can only be called once per application lifecycle.\n\n\ 30557It is recommended to call injectTapEventPlugin() just before you call \ 30558ReactDOM.render(). If you are using an external library which calls injectTapEventPlugin() \ 30559itself, please contact the maintainer as it shouldn\'t be called in library code and \ 30560should be injected by the application.' 30561 ) 30562 } 30563 30564 alreadyInjected = true; 30565 30566 __webpack_require__(51).injection.injectEventPluginsByName({ 30567 'TapEventPlugin': __webpack_require__(508)(shouldRejectClick) 30568 }); 30569}; 30570 30571 30572/***/ }), 30573/* 193 */ 30574/***/ (function(module, exports, __webpack_require__) { 30575 30576module.exports = __webpack_require__(512); 30577 30578 30579/***/ }), 30580/* 194 */ 30581/***/ (function(module, exports, __webpack_require__) { 30582 30583/* WEBPACK VAR INJECTION */(function(jQuery) {
vendor: 37,045 bytes, lines 30583-30589
30583/*! 30584 * Bootstrap v3.3.7 (http://getbootstrap.com) 30585 * Copyright 2011-2016 Twitter, Inc. 30586 * Licensed under the MIT license 30587 */ 30588if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.7",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a("#"===f?[]:f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.7",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c).prop(c,!0)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c).prop(c,!1))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target).closest(".btn");b.call(d,"toggle"),a(c.target).is('input[type="radio"], input[type="checkbox"]')||(c.preventDefault(),d.is("input,button")?d.trigger("focus"):d.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.7",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(a>this.$items.length-1||a<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.7",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.7",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}};var h=a.fn.dropdown;a.fn.dropdown=d,a.fn.dropdown.Constructor=g,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=h,this},a(document).on("click.bs.dropdown.data-api",c).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",f,g.prototype.toggle).on("keydown.bs.dropdown.data-api",f,g.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",g.prototype.keydown)}(jQuery),+function(a){"use strict";function b(b,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},c.DEFAULTS,e.data(),"object"==typeof b&&b);f||e.data("bs.modal",f=new c(this,g)),"string"==typeof b?f[b](d):g.show&&f.show(d)})}var c=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};c.VERSION="3.3.7",c.TRANSITION_DURATION=300,c.BACKDROP_TRANSITION_DURATION=150,c.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},c.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},c.prototype.show=function(b){var d=this,e=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){d.$element.one("mouseup.dismiss.bs.modal",function(b){a(b.target).is(d.$element)&&(d.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&d.$element.hasClass("fade");d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(0),d.adjustDialog(),e&&d.$element[0].offsetWidth,d.$element.addClass("in"),d.enforceFocus();var f=a.Event("shown.bs.modal",{relatedTarget:b});e?d.$dialog.one("bsTransitionEnd",function(){d.$element.trigger("focus").trigger(f)}).emulateTransitionEnd(c.TRANSITION_DURATION):d.$element.trigger("focus").trigger(f)}))},c.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(c.TRANSITION_DURATION):this.hideModal())},c.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){document===a.target||this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.trigger("focus")},this))},c.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},c.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},c.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.$body.removeClass("modal-open"),a.resetAdjustments(),a.resetScrollbar(),a.$element.trigger("hidden.bs.modal")})},c.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},c.prototype.backdrop=function(b){var d=this,e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var f=a.support.transition&&e;if(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+e).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),f&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;f?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){d.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):g()}else b&&b()},c.prototype.handleUpdate=function(){this.adjustDialog()},c.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth<a,this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",a+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},c.prototype.measureScrollbar=function(){var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventDefault(),f.one("show.bs.modal",function(a){a.isDefaultPrevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",a,b)};c.VERSION="3.3.7",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);if(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),!c.isInStateTrue())return clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-m<o.top?"bottom":"right"==h&&k.right+l>o.width?"left":"left"==h&&k.left-l<o.left?"right":h,f.removeClass(n).addClass(h)}var p=this.getCalculatedOffset(h,k,l,m);this.applyPlacement(p,h);var q=function(){var a=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==a&&e.leave(e)};a.support.transition&&this.$tip.hasClass("fade")?f.one("bsTransitionEnd",q).emulateTransitionEnd(c.TRANSITION_DURATION):q()}},c.prototype.applyPlacement=function(b,c){var d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),b.top+=g,b.left+=h,a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),d.addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;"top"==c&&j!=f&&(b.top=b.top+f-j);var k=this.getViewportAdjustedDelta(c,b,i,j);k.left?b.left+=k.left:b.top+=k.top;var l=/top|bottom/.test(c),m=l?2*k.left-e+i:2*k.top-f+j,n=l?"offsetWidth":"offsetHeight";d.offset(b),this.replaceArrow(m,d[0][n],l)},c.prototype.replaceArrow=function(a,b,c){this.arrow().css(c?"left":"top",50*(1-a/b)+"%").css(c?"top":"left","")},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},c.prototype.hide=function(b){function d(){"in"!=e.hoverState&&f.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),b&&b()}var e=this,f=a(this.$tip),g=a.Event("hide.bs."+this.type);if(this.$element.trigger(g),!g.isDefaultPrevented())return f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",d).emulateTransitionEnd(c.TRANSITION_DURATION):d(),this.hoverState=null,this},c.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(b){b=b||this.$element;var c=b[0],d="BODY"==c.tagName,e=c.getBoundingClientRect();null==e.width&&(e=a.extend({},e,{width:e.right-e.left,height:e.bottom-e.top}));var f=window.SVGElement&&c instanceof window.SVGElement,g=d?{top:0,left:0}:f?null:b.offset(),h={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop()},i=d?{width:a(window).width(),height:a(window).height()}:null;return a.extend({},e,h,i,g)},c.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},c.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll,i=b.top+f-g.scroll+d;h<g.top?e.top=g.top-h:i>g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j<g.left?e.left=g.left-j:k>g.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null,a.$element=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.7",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.7",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<e[0])return this.activeTarget=null,this.clear();for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(void 0===e[a+1]||b<e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){ 30589this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.7",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.7",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return e<c&&"top";if("bottom"==this.affixed)return null!=c?!(e+this.unpin<=f.top)&&"bottom":!(e+g<=a-d)&&"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&e<=c?"top":null!=d&&i+j>=a-d&&"bottom"},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);
30589 30590/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(25))) 30591 30592/***/ }), 30593/* 195 */, 30594/* 196 */ 30595/***/ (function(module, __webpack_exports__, __webpack_require__) { 30596 30597"use strict"; 30598/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return canUseDOM; }); 30599/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addEventListener; }); 30600/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return removeEventListener; }); 30601/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getConfirmation; }); 30602/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return supportsHistory; }); 30603/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return supportsPopStateOnHashChange; }); 30604/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return supportsGoWithoutReloadUsingHash; }); 30605/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isExtraneousPopstateEvent; }); 30606var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); 30607 30608var addEventListener = function addEventListener(node, event, listener) { 30609 return node.addEventListener ? node.addEventListener(event, listener, false) : node.attachEvent('on' + event, listener); 30610}; 30611 30612var removeEventListener = function removeEventListener(node, event, listener) { 30613 return node.removeEventListener ? node.removeEventListener(event, listener, false) : node.detachEvent('on' + event, listener); 30614}; 30615 30616var getConfirmation = function getConfirmation(message, callback) { 30617 return callback(window.confirm(message)); 30618}; // eslint-disable-line no-alert 30619 30620/** 30621 * Returns true if the HTML5 history API is supported. Taken from Modernizr. 30622 * 30623 * https://github.com/Modernizr/Modernizr/blob/master/LICENSE 30624 * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js 30625 * changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586 30626 */ 30627var supportsHistory = function supportsHistory() { 30628 var ua = window.navigator.userAgent; 30629 30630 if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false; 30631 30632 return window.history && 'pushState' in window.history; 30633}; 30634 30635/** 30636 * Returns true if browser fires popstate on hash change. 30637 * IE10 and IE11 do not. 30638 */ 30639var supportsPopStateOnHashChange = function supportsPopStateOnHashChange() { 30640 return window.navigator.userAgent.indexOf('Trident') === -1; 30641}; 30642 30643/** 30644 * Returns false if using go(n) with hash history causes a full page reload. 30645 */ 30646var supportsGoWithoutReloadUsingHash = function supportsGoWithoutReloadUsingHash() { 30647 return window.navigator.userAgent.indexOf('Firefox') === -1; 30648}; 30649 30650/** 30651 * Returns true if a given popstate event is an extraneous WebKit event. 30652 * Accounts for the fact that Chrome on iOS fires real popstate events 30653 * containing undefined state when pressing the back button. 30654 */ 30655var isExtraneousPopstateEvent = function isExtraneousPopstateEvent(event) { 30656 return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1; 30657}; 30658 30659/***/ }), 30660/* 197 */, 30661/* 198 */ 30662/***/ (function(module, __webpack_exports__, __webpack_require__) { 30663 30664"use strict"; 30665/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning__ = __webpack_require__(55); 30666/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_warning__); 30667/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); 30668/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); 30669/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(2); 30670/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__); 30671/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_history__ = __webpack_require__(43); 30672/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Router__ = __webpack_require__(86); 30673function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 30674 30675function _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; } 30676 30677function _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, { c
30677onstructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } 30678 30679 30680 30681 30682 30683 30684 30685/** 30686 * The public API for a <Router> that stores location in memory. 30687 */ 30688 30689var MemoryRouter = function (_React$Component) { 30690 _inherits(MemoryRouter, _React$Component); 30691 30692 function MemoryRouter() { 30693 var _temp, _this, _ret; 30694 30695 _classCallCheck(this, MemoryRouter); 30696 30697 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { 30698 args[_key] = arguments[_key]; 30699 } 30700 30701 return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.history = Object(__WEBPACK_IMPORTED_MODULE_3_history__["createMemoryHistory"])(_this.props), _temp), _possibleConstructorReturn(_this, _ret); 30702 } 30703 30704 MemoryRouter.prototype.componentWillMount = function componentWillMount() { 30705 __WEBPACK_IMPORTED_MODULE_0_warning___default()(!this.props.history, "<MemoryRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { MemoryRouter as Router }`."); 30706 }; 30707 30708 MemoryRouter.prototype.render = function render() { 30709 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__Router__["a" /* default */], { history: this.history, children: this.props.children }); 30710 }; 30711 30712 return MemoryRouter; 30713}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component); 30714 30715MemoryRouter.propTypes = { 30716 initialEntries: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.array, 30717 initialIndex: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 30718 getUserConfirmation: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 30719 keyLength: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 30720 children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node 30721}; 30722 30723 30724/* harmony default export */ __webpack_exports__["a"] = (MemoryRouter); 30725 30726/***/ }), 30727/* 199 */, 30728/* 200 */ 30729/***/ (function(module, exports, __webpack_require__) { 30730 30731var isarray = __webpack_require__(529) 30732 30733/** 30734 * Expose `pathToRegexp`. 30735 */ 30736module.exports = pathToRegexp 30737module.exports.parse = parse 30738module.exports.compile = compile 30739module.exports.tokensToFunction = tokensToFunction 30740module.exports.tokensToRegExp = tokensToRegExp 30741 30742/** 30743 * The main path matching regexp utility. 30744 * 30745 * @type {RegExp} 30746 */ 30747var PATH_REGEXP = new RegExp([ 30748 // Match escaped characters that would otherwise appear in future matches. 30749 // This allows the user to escape special characters that won't transform. 30750 '(\\\\.)', 30751 // Match Express-style parameters and un-named parameters with a prefix 30752 // and optional suffixes. Matches appear as: 30753 // 30754 // "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined] 30755 // "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined] 30756 // "/*" => ["/", undefined, undefined, undefined, undefined, "*"] 30757 '([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))' 30758].join('|'), 'g') 30759 30760/** 30761 * Parse a string for the raw tokens. 30762 * 30763 * @param {string} str 30764 * @param {Object=} options 30765 * @return {!Array} 30766 */ 30767function parse (str, options) { 30768 var tokens = [] 30769 var key = 0 30770 var index = 0 30771 var path = '' 30772 var defaultDelimiter = options && options.delimiter || '/' 30773 var res 30774 30775 while ((res = PATH_REGEXP.exec(str)) != null) { 30776 var m = res[0] 30777 var escaped = res[1] 30778 var offset = res.index 30779 path += str.slice(index, offset) 30780 index = offset + m.length 30781 30782 // Ignore already escaped sequences. 30783 if (escaped) { 30784 path += escaped[1] 30785 continue 30786 } 30787 30788 var next = str[index] 30789 var prefix = res[2] 30790 var name = res[3] 30791 var capture = res[4] 30792 var group = res[5] 30793 var modifier = res[6] 30794 var asterisk = res[7] 30795 30796 // Push the current path onto the tokens. 30797 if (path) { 30798 tokens.push(path) 30799 path = '' 30800 } 30801 30802 var partial = prefix != null && next != null && next !== prefix 30803 var repeat = modifier === '+' || modifier === '*' 30804 var optional = modifier === '?' || modifier === '*' 30805 var delimiter = res[2] || defaultDelimiter 30806 var pattern = capture || group 30807 30808 tokens.push({ 30809 name: name || key++, 30810 prefix: prefix || '', 30811 delimiter: delimiter, 30812 optional: optional, 30813 repeat: repeat, 30814 partial: partial, 30815 asterisk: !!asterisk, 30816 pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?') 30817 }) 30818 } 30819 30820 // Match any characters still remaining. 30821 if (index < str.length) { 30822 path += str.substr(index) 30823 } 30824 30825 // If the path exists, push it onto the end. 30826 if (path) { 30827 tokens.push(path) 30828 } 30829 30830 return tokens 30831} 30832 30833/** 30834 * Compile a string to a template function for the path.
30835 * 30836 * @param {string} str 30837 * @param {Object=} options 30838 * @return {!function(Object=, Object=)} 30839 */ 30840function compile (str, options) { 30841 return tokensToFunction(parse(str, options)) 30842} 30843 30844/** 30845 * Prettier encoding of URI path segments. 30846 * 30847 * @param {string} 30848 * @return {string} 30849 */ 30850function encodeURIComponentPretty (str) { 30851 return encodeURI(str).replace(/[\/?#]/g, function (c) { 30852 return '%' + c.charCodeAt(0).toString(16).toUpperCase() 30853 }) 30854} 30855 30856/** 30857 * Encode the asterisk parameter. Similar to `pretty`, but allows slashes. 30858 * 30859 * @param {string} 30860 * @return {string} 30861 */ 30862function encodeAsterisk (str) { 30863 return encodeURI(str).replace(/[?#]/g, function (c) { 30864 return '%' + c.charCodeAt(0).toString(16).toUpperCase() 30865 }) 30866} 30867 30868/** 30869 * Expose a method for transforming tokens into the path function. 30870 */ 30871function tokensToFunction (tokens) { 30872 // Compile all the tokens into regexps. 30873 var matches = new Array(tokens.length) 30874 30875 // Compile all the patterns before compilation. 30876 for (var i = 0; i < tokens.length; i++) { 30877 if (typeof tokens[i] === 'object') { 30878 matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$') 30879 } 30880 } 30881 30882 return function (obj, opts) { 30883 var path = '' 30884 var data = obj || {} 30885 var options = opts || {} 30886 var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent 30887 30888 for (var i = 0; i < tokens.length; i++) { 30889 var token = tokens[i] 30890 30891 if (typeof token === 'string') { 30892 path += token 30893 30894 continue 30895 } 30896 30897 var value = data[token.name] 30898 var segment 30899 30900 if (value == null) { 30901 if (token.optional) { 30902 // Prepend partial segment prefixes. 30903 if (token.partial) { 30904 path += token.prefix 30905 } 30906 30907 continue 30908 } else { 30909 throw new TypeError('Expected "' + token.name + '" to be defined') 30910 } 30911 } 30912 30913 if (isarray(value)) { 30914 if (!token.repeat) { 30915 throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`') 30916 } 30917 30918 if (value.length === 0) { 30919 if (token.optional) { 30920 continue 30921 } else { 30922 throw new TypeError('Expected "' + token.name + '" to not be empty') 30923 } 30924 } 30925 30926 for (var j = 0; j < value.length; j++) { 30927 segment = encode(value[j]) 30928 30929 if (!matches[i].test(segment)) { 30930 throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`') 30931 } 30932 30933 path += (j === 0 ? token.prefix : token.delimiter) + segment 30934 } 30935 30936 continue 30937 } 30938 30939 segment = token.asterisk ? encodeAsterisk(value) : encode(value) 30940 30941 if (!matches[i].test(segment)) { 30942 throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"') 30943 } 30944 30945 path += token.prefix + segment 30946 } 30947 30948 return path 30949 } 30950} 30951 30952/** 30953 * Escape a regular expression string. 30954 * 30955 * @param {string} str 30956 * @return {string} 30957 */ 30958function escapeString (str) { 30959 return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1') 30960} 30961 30962/** 30963 * Escape the capturing group by escaping special characters and meaning. 30964 * 30965 * @param {string} group 30966 * @return {string} 30967 */ 30968function escapeGroup (group) { 30969 return group.replace(/([=!:$\/()])/g, '\\$1') 30970} 30971 30972/** 30973 * Attach the keys as a property of the regexp. 30974 * 30975 * @param {!RegExp} re 30976 * @param {Array} keys 30977 * @return {!RegExp} 30978 */ 30979function attachKeys (re, keys) { 30980 re.keys = keys 30981 return re 30982} 30983 30984/** 30985 * Get the flags for a regexp from the options. 30986 * 30987 * @param {Object} options 30988 * @return {string} 30989 */ 30990function flags (options) { 30991 return options.sensitive ? '' : 'i' 30992} 30993 30994/** 30995 * Pull out keys from a regexp. 30996 * 30997 * @param {!RegExp} path 30998 * @param {!Array} keys 30999 * @return {!RegExp} 31000 */ 31001function regexpToRegexp (path, keys) { 31002 // Use a negative lookahead to match only capturing groups. 31003 var groups = path.source.match(/\((?!\?)/g) 31004 31005 if (groups) { 31006 for (var i = 0; i < groups.length; i++) { 31007 keys.push({ 31008 name: i, 31009 prefix: null, 31010 delimiter: null, 31011 optional: false, 31012 repeat: false, 31013 partial: false, 31014 asterisk: false, 31015 pattern: null 31016 }) 31017 } 31018 } 31019 31020 return attachKeys(path, keys) 31021} 31022 31023/** 31024 * Transform an array into a regexp. 31025 * 31026 * @param {!Array} path 31027 * @param {Array} keys 31028 * @param {!Object} options 31029 * @return {!RegExp} 31030 */ 31031function arrayToRegexp (path, keys, options) { 31032 var parts = [] 31033 31034 for (var i = 0; i < path.length; i++) { 31035 parts.push(pathToRegexp(path[i], keys, options).source) 31036 } 31037 31038 var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options)) 31039 31040 return attachKeys(regexp, keys) 31041} 31042 31043/** 31044 * Create a path regexp from string input. 31045 * 31046 * @param {string} path 31047 * @param {!Array} keys 31048 * @param {!Object} options 31049 * @return {!RegExp} 31050 */ 31051function stringToRegexp (path, keys, options) { 31052 return tokensToRegExp(parse(path, options), keys, options) 31053} 31054 31055/** 31056 * Expose a function for taking tokens and returning a RegExp. 31057 * 31058 * @param {!Array} tokens 31059 * @param {(Array|Object)=} keys 31060 * @param {Object=} options 31061 * @return {!RegExp} 31062 */ 31063function tokensToRegExp (tokens, keys, options) { 31064 if (!isarray(keys)) {
31065 options = /** @type {!Object} */ (keys || options) 31066 keys = [] 31067 } 31068 31069 options = options || {} 31070 31071 var strict = options.strict 31072 var end = options.end !== false 31073 var route = '' 31074 31075 // Iterate over the tokens and create our regexp string. 31076 for (var i = 0; i < tokens.length; i++) { 31077 var token = tokens[i] 31078 31079 if (typeof token === 'string') { 31080 route += escapeString(token) 31081 } else { 31082 var prefix = escapeString(token.prefix) 31083 var capture = '(?:' + token.pattern + ')' 31084 31085 keys.push(token) 31086 31087 if (token.repeat) { 31088 capture += '(?:' + prefix + capture + ')*' 31089 } 31090 31091 if (token.optional) { 31092 if (!token.partial) { 31093 capture = '(?:' + prefix + '(' + capture + '))?' 31094 } else { 31095 capture = prefix + '(' + capture + ')?' 31096 } 31097 } else { 31098 capture = prefix + '(' + capture + ')' 31099 } 31100 31101 route += capture 31102 } 31103 } 31104 31105 var delimiter = escapeString(options.delimiter || '/') 31106 var endsWithDelimiter = route.slice(-delimiter.length) === delimiter 31107 31108 // In non-strict mode we allow a slash at the end of match. If the path to 31109 // match already ends with a slash, we remove it for consistency. The slash 31110 // is valid at the end of a path match, not in the middle. This is important 31111 // in non-ending mode, where "/test/" shouldn't match "/test//route". 31112 if (!strict) { 31113 route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?' 31114 } 31115 31116 if (end) { 31117 route += '$' 31118 } else { 31119 // In non-ending mode, we need the capturing groups to match as much as 31120 // possible by using a positive lookahead to the end or next path segment. 31121 route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)' 31122 } 31123 31124 return attachKeys(new RegExp('^' + route, flags(options)), keys) 31125} 31126 31127/** 31128 * Normalize the given path string, returning a regular expression. 31129 * 31130 * An empty array can be passed in for the keys, which will hold the 31131 * placeholder key descriptions. For example, using `/user/:id`, `keys` will 31132 * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`. 31133 * 31134 * @param {(string|RegExp|Array)} path 31135 * @param {(Array|Object)=} keys 31136 * @param {Object=} options 31137 * @return {!RegExp} 31138 */ 31139function pathToRegexp (path, keys, options) { 31140 if (!isarray(keys)) {
31141 options = /** @type {!Object} */ (keys || options) 31142 keys = [] 31143 } 31144 31145 options = options || {} 31146 31147 if (path instanceof RegExp) { 31148 return regexpToRegexp(path, /** @type {!Array} */ (keys)) 31149 } 31150 31151 if (isarray(path)) { 31152 return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options) 31153 } 31154 31155 return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options) 31156} 31157 31158 31159/***/ }), 31160/* 201 */ 31161/***/ (function(module, __webpack_exports__, __webpack_require__) { 31162 31163"use strict"; 31164/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); 31165/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); 31166/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(2); 31167/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__); 31168/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_invariant__ = __webpack_require__(21); 31169/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_invariant__); 31170function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 31171 31172function _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; } 31173 31174function _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; } 31175 31176 31177 31178 31179 31180/** 31181 * The public API for prompting the user before navigating away 31182 * from a screen with a component. 31183 */ 31184 31185var Prompt = function (_React$Component) { 31186 _inherits(Prompt, _React$Component); 31187 31188 function Prompt() { 31189 _classCallCheck(this, Prompt); 31190 31191 return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); 31192 } 31193 31194 Prompt.prototype.enable = function enable(message) { 31195 if (this.unblock) this.unblock(); 31196 31197 this.unblock = this.context.router.history.block(message); 31198 }; 31199 31200 Prompt.prototype.disable = function disable() { 31201 if (this.unblock) { 31202 this.unblock(); 31203 this.unblock = null; 31204 } 31205 }; 31206 31207 Prompt.prototype.componentWillMount = function componentWillMount() { 31208 __WEBPACK_IMPORTED_MODULE_2_invariant___default()(this.context.router, "You should not use <Prompt> outside a <Router>"); 31209 31210 if (this.props.when) this.enable(this.props.message); 31211 }; 31212 31213 Prompt.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { 31214 if (nextProps.when) { 31215 if (!this.props.when || this.props.message !== nextProps.message) this.enable(nextProps.message); 31216 } else { 31217 this.disable(); 31218 } 31219 }; 31220 31221 Prompt.prototype.componentWillUnmount = function componentWillUnmount() { 31222 this.disable(); 31223 }; 31224 31225 Prompt.prototype.render = function render() { 31226 return null; 31227 }; 31228 31229 return Prompt; 31230}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component); 31231 31232Prompt.propTypes = { 31233 when: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 31234 message: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string]).isRequired 31235}; 31236Prompt.defaultProps = { 31237 when: true 31238}; 31239Prompt.contextTypes = { 31240 router: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({ 31241 history: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({ 31242 block: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired 31243 }).isRequired 31244 }).isRequired 31245}; 31246 31247 31248/* harmony default export */ __webpack_exports__["a"] = (Prompt); 31249 31250/***/ }), 31251/* 202 */ 31252/***/ (function(module, __webpack_exports__, __webpack_require__) { 31253 31254"use strict"; 31255/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); 31256/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); 31257/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(2); 31258/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__); 31259/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning__ = __webpack_require__(55); 31260/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_warning__); 31261/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_invariant__ = __webpack_require__(21); 31262/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_invariant__); 31263/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_history__ = __webpack_require__(43); 31264/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__generatePath__ = __webpack_require__(125); 31265var _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; }; 31266 31267function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 31268 31269function _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; } 31270 31271function _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, { c
31271onstructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } 31272 31273 31274 31275 31276 31277 31278 31279 31280/** 31281 * The public API for updating the location programmatically 31282 * with a component. 31283 */ 31284 31285var Redirect = function (_React$Component) { 31286 _inherits(Redirect, _React$Component); 31287 31288 function Redirect() { 31289 _classCallCheck(this, Redirect); 31290 31291 return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); 31292 } 31293 31294 Redirect.prototype.isStatic = function isStatic() { 31295 return this.context.router && this.context.router.staticContext; 31296 }; 31297 31298 Redirect.prototype.componentWillMount = function componentWillMount() { 31299 __WEBPACK_IMPORTED_MODULE_3_invariant___default()(this.context.router, "You should not use <Redirect> outside a <Router>"); 31300 31301 if (this.isStatic()) this.perform(); 31302 }; 31303 31304 Redirect.prototype.componentDidMount = function componentDidMount() { 31305 if (!this.isStatic()) this.perform(); 31306 }; 31307 31308 Redirect.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { 31309 var prevTo = Object(__WEBPACK_IMPORTED_MODULE_4_history__["createLocation"])(prevProps.to); 31310 var nextTo = Object(__WEBPACK_IMPORTED_MODULE_4_history__["createLocation"])(this.props.to); 31311 31312 if (Object(__WEBPACK_IMPORTED_MODULE_4_history__["locationsAreEqual"])(prevTo, nextTo)) { 31313 __WEBPACK_IMPORTED_MODULE_2_warning___default()(false, "You tried to redirect to the same route you're currently on: " + ("\"" + nextTo.pathname + nextTo.search + "\"")); 31314 return; 31315 } 31316 31317 this.perform(); 31318 }; 31319 31320 Redirect.prototype.computeTo = function computeTo(_ref) { 31321 var computedMatch = _ref.computedMatch, 31322 to = _ref.to; 31323 31324 if (computedMatch) { 31325 if (typeof to === "string") { 31326 return Object(__WEBPACK_IMPORTED_MODULE_5__generatePath__["a" /* default */])(to, computedMatch.params); 31327 } else { 31328 return _extends({}, to, { 31329 pathname: Object(__WEBPACK_IMPORTED_MODULE_5__generatePath__["a" /* default */])(to.pathname, computedMatch.params) 31330 }); 31331 } 31332 } 31333 31334 return to; 31335 }; 31336 31337 Redirect.prototype.perform = function perform() { 31338 var history = this.context.router.history; 31339 var push = this.props.push; 31340 31341 var to = this.computeTo(this.props); 31342 31343 if (push) { 31344 history.push(to); 31345 } else { 31346 history.replace(to); 31347 } 31348 }; 31349 31350 Redirect.prototype.render = function render() { 31351 return null; 31352 }; 31353 31354 return Redirect; 31355}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component); 31356 31357Redirect.propTypes = { 31358 computedMatch: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object, // private, from <Switch> 31359 push: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 31360 from: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 31361 to: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object]).isRequired 31362}; 31363Redirect.defaultProps = { 31364 push: false 31365}; 31366Redirect.contextTypes = { 31367 router: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({ 31368 history: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({ 31369 push: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired, 31370 replace: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired 31371 }).isRequired, 31372 staticContext: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object 31373 }).isRequired 31374}; 31375 31376 31377/* harmony default export */ __webpack_exports__["a"] = (Redirect); 31378 31379/***/ }), 31380/* 203 */ 31381/***/ (function(module, __webpack_exports__, __webpack_require__) { 31382 31383"use strict"; 31384/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning__ = __webpack_require__(55); 31385/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_warning__); 31386/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant__ = __webpack_require__(21); 31387/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_invariant__); 31388/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0); 31389/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__); 31390/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2); 31391/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__); 31392/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_history__ = __webpack_require__(43); 31393/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Router__ = __webpack_require__(86); 31394var _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; }; 31395 31396function _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; } 31397 31398function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 31399 31400function _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; } 31401 31402function _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, { c
31402onstructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } 31403 31404 31405 31406 31407 31408 31409 31410 31411var addLeadingSlash = function addLeadingSlash(path) { 31412 return path.charAt(0) === "/" ? path : "/" + path; 31413}; 31414 31415var addBasename = function addBasename(basename, location) { 31416 if (!basename) return location; 31417 31418 return _extends({}, location, { 31419 pathname: addLeadingSlash(basename) + location.pathname 31420 }); 31421}; 31422 31423var stripBasename = function stripBasename(basename, location) { 31424 if (!basename) return location; 31425 31426 var base = addLeadingSlash(basename); 31427 31428 if (location.pathname.indexOf(base) !== 0) return location; 31429 31430 return _extends({}, location, { 31431 pathname: location.pathname.substr(base.length) 31432 }); 31433}; 31434 31435var createURL = function createURL(location) { 31436 return typeof location === "string" ? location : Object(__WEBPACK_IMPORTED_MODULE_4_history__["createPath"])(location); 31437}; 31438 31439var staticHandler = function staticHandler(methodName) { 31440 return function () { 31441 __WEBPACK_IMPORTED_MODULE_1_invariant___default()(false, "You cannot %s with <StaticRouter>", methodName); 31442 }; 31443}; 31444 31445var noop = function noop() {}; 31446 31447/** 31448 * The public top-level API for a "static" <Router>, so-called because it 31449 * can't actually change the current location. Instead, it just records 31450 * location changes in a context object. Useful mainly in testing and 31451 * server-rendering scenarios. 31452 */ 31453 31454var StaticRouter = function (_React$Component) { 31455 _inherits(StaticRouter, _React$Component); 31456 31457 function StaticRouter() { 31458 var _temp, _this, _ret; 31459 31460 _classCallCheck(this, StaticRouter); 31461 31462 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { 31463 args[_key] = arguments[_key]; 31464 } 31465 31466 return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.createHref = function (path) { 31467 return addLeadingSlash(_this.props.basename + createURL(path)); 31468 }, _this.handlePush = function (location) { 31469 var _this$props = _this.props, 31470 basename = _this$props.basename, 31471 context = _this$props.context; 31472 31473 context.action = "PUSH"; 31474 context.location = addBasename(basename, Object(__WEBPACK_IMPORTED_MODULE_4_history__["createLocation"])(location)); 31475 context.url = createURL(context.location); 31476 }, _this.handleReplace = function (location) { 31477 var _this$props2 = _this.props, 31478 basename = _this$props2.basename, 31479 context = _this$props2.context; 31480 31481 context.action = "REPLACE"; 31482 context.location = addBasename(basename, Object(__WEBPACK_IMPORTED_MODULE_4_history__["createLocation"])(location)); 31483 context.url = createURL(context.location); 31484 }, _this.handleListen = function () { 31485 return noop; 31486 }, _this.handleBlock = function () { 31487 return noop; 31488 }, _temp), _possibleConstructorReturn(_this, _ret); 31489 } 31490 31491 StaticRouter.prototype.getChildContext = function getChildContext() { 31492 return { 31493 router: { 31494 staticContext: this.props.context 31495 } 31496 }; 31497 }; 31498 31499 StaticRouter.prototype.componentWillMount = function componentWillMount() { 31500 __WEBPACK_IMPORTED_MODULE_0_warning___default()(!this.props.history, "<StaticRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { StaticRouter as Router }`."); 31501 }; 31502 31503 StaticRouter.prototype.render = function render() { 31504 var _props = this.props, 31505 basename = _props.basename, 31506 context = _props.context, 31507 location = _props.location, 31508 props = _objectWithoutProperties(_props, ["basename", "context", "location"]); 31509 31510 var history = { 31511 createHref: this.createHref, 31512 action: "POP", 31513 location: stripBasename(basename, Object(__WEBPACK_IMPORTED_MODULE_4_history__["createLocation"])(location)), 31514 push: this.handlePush, 31515 replace: this.handleReplace, 31516 go: staticHandler("go"), 31517 goBack: staticHandler("goBack"), 31518 goForward: staticHandler("goForward"),
31519 listen: this.handleListen, 31520 block: this.handleBlock 31521 }; 31522 31523 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__Router__["a" /* default */], _extends({}, props, { history: history })); 31524 }; 31525 31526 return StaticRouter; 31527}(__WEBPACK_IMPORTED_MODULE_2_react___default.a.Component); 31528 31529StaticRouter.propTypes = { 31530 basename: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 31531 context: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired, 31532 location: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object]) 31533}; 31534StaticRouter.defaultProps = { 31535 basename: "", 31536 location: "/" 31537}; 31538StaticRouter.childContextTypes = { 31539 router: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired 31540}; 31541 31542 31543/* harmony default export */ __webpack_exports__["a"] = (StaticRouter); 31544 31545/***/ }), 31546/* 204 */ 31547/***/ (function(module, __webpack_exports__, __webpack_require__) { 31548 31549"use strict"; 31550/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); 31551/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); 31552/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(2); 31553/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__); 31554/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning__ = __webpack_require__(55); 31555/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_warning__); 31556/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_invariant__ = __webpack_require__(21); 31557/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_invariant__); 31558/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__matchPath__ = __webpack_require__(87); 31559function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 31560 31561function _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; } 31562 31563function _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; } 31564 31565 31566 31567 31568 31569 31570 31571/** 31572 * The public API for rendering the first <Route> that matches. 31573 */ 31574 31575var Switch = function (_React$Component) { 31576 _inherits(Switch, _React$Component); 31577 31578 function Switch() { 31579 _classCallCheck(this, Switch); 31580 31581 return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); 31582 } 31583 31584 Switch.prototype.componentWillMount = function componentWillMount() { 31585 __WEBPACK_IMPORTED_MODULE_3_invariant___default()(this.context.router, "You should not use <Switch> outside a <Router>"); 31586 }; 31587 31588 Switch.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { 31589 __WEBPACK_IMPORTED_MODULE_2_warning___default()(!(nextProps.location && !this.props.location), '<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'); 31590 31591 __WEBPACK_IMPORTED_MODULE_2_warning___default()(!(!nextProps.location && this.props.location), '<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'); 31592 }; 31593 31594 Switch.prototype.render = function render() { 31595 var route = this.context.router.route; 31596 var children = this.props.children; 31597 31598 var location = this.props.location || route.location; 31599 31600 var match = void 0, 31601 child = void 0; 31602 __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEac
31602h(children, function (element) { 31603 if (match == null && __WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(element)) { 31604 var _element$props = element.props, 31605 pathProp = _element$props.path, 31606 exact = _element$props.exact, 31607 strict = _element$props.strict, 31608 sensitive = _element$props.sensitive, 31609 from = _element$props.from; 31610 31611 var path = pathProp || from; 31612 31613 child = element; 31614 match = Object(__WEBPACK_IMPORTED_MODULE_4__matchPath__["a" /* default */])(location.pathname, { path: path, exact: exact, strict: strict, sensitive: sensitive }, route.match); 31615 } 31616 }); 31617 31618 return match ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.cloneElement(child, { location: location, computedMatch: match }) : null; 31619 }; 31620 31621 return Switch; 31622}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component); 31623 31624Switch.contextTypes = { 31625 router: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({ 31626 route: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object.isRequired 31627 }).isRequired 31628}; 31629Switch.propTypes = { 31630 children: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node, 31631 location: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object 31632}; 31633 31634 31635/* harmony default export */ __webpack_exports__["a"] = (Switch); 31636 31637/***/ }), 31638/* 205 */ 31639/***/ (function(module, __webpack_exports__, __webpack_require__) { 31640 31641"use strict"; 31642/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0); 31643/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); 31644/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(2); 31645/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__); 31646/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_hoist_non_react_statics__ = __webpack_require__(206); 31647/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_hoist_non_react_statics__); 31648/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Route__ = __webpack_require__(124); 31649var _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; }; 31650 31651function _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; } 31652 31653 31654 31655 31656 31657 31658/** 31659 * A public higher-order component to access the imperative API 31660 */ 31661var withRouter = function withRouter(Component) { 31662 var C = function C(props) { 31663 var wrappedComponentRef = props.wrappedComponentRef, 31664 remainingProps = _objectWithoutProperties(props, ["wrappedComponentRef"]); 31665 31666 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__Route__["a" /* default */], { 31667 children: function children(routeComponentProps) { 31668 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Component, _extends({}, remainingProps, routeComponentProps, { 31669 ref: wrappedComponentRef 31670 })); 31671 } 31672 }); 31673 }; 31674 31675 C.displayName = "withRouter(" + (Component.displayName || Component.name) + ")"; 31676 C.WrappedComponent = Component; 31677 C.propTypes = { 31678 wrappedComponentRef: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func 31679 }; 31680 31681 return __WEBPACK_IMPORTED_MODULE_2_hoist_non_react_statics___default()(C, Component); 31682}; 31683 31684/* harmony default export */ __webpack_exports__["a"] = (withRouter); 31685 31686/***/ }), 31687/* 206 */ 31688/***/ (function(module, exports, __webpack_require__) { 31689 31690"use strict"; 31691 31692 31693/** 31694 * Copyright 2015, Yahoo! Inc. 31695 * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. 31696 */ 31697var REACT_STATICS = { 31698 childContextTypes: true, 31699 contextTypes: true, 31700 defaultProps: true, 31701 displayName: true, 31702 getDefaultProps: true, 31703 getDerivedStateFromProps: true, 31704 mixins: true, 31705 propTypes: true, 31706 type: true 31707}; 31708 31709var KNOWN_STATICS = { 31710 name: true, 31711 length: true, 31712 prototype: true, 31713 caller: true, 31714 callee: true, 31715 arguments: true, 31716 arity: true 31717}; 31718 31719var defineProperty = Object.defineProperty; 31720var getOwnPropertyNames = Object.getOwnPropertyNames; 31721var getOwnPropertySymbols = Object.getOwnPropertySymbols; 31722var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; 31723var getPrototypeOf = Object.getPrototypeOf; 31724var objectPrototype = getPrototypeOf && getPrototypeOf(Object); 31725 31726function hoistNonReactStatics(targetComponent, sourceComponent, blackl
31726ist) { 31727 if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components 31728 31729 if (objectPrototype) { 31730 var inheritedComponent = getPrototypeOf(sourceComponent); 31731 if (inheritedComponent && inheritedComponent !== objectPrototype) { 31732 hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); 31733 } 31734 } 31735 31736 var keys = getOwnPropertyNames(sourceComponent); 31737 31738 if (getOwnPropertySymbols) { 31739 keys = keys.concat(getOwnPropertySymbols(sourceComponent)); 31740 } 31741 31742 for (var i = 0; i < keys.length; ++i) { 31743 var key = keys[i]; 31744 if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) { 31745 var descriptor = getOwnPropertyDescriptor(sourceComponent, key); 31746 try { // Avoid failures from read-only properties 31747 defineProperty(targetComponent, key, descriptor); 31748 } catch (e) {} 31749 } 31750 } 31751 31752 return targetComponent; 31753 } 31754 31755 return targetComponent; 31756} 31757 31758module.exports = hoistNonReactStatics; 31759 31760 31761/***/ }), 31762/* 207 */, 31763/* 208 */, 31764/* 209 */ 31765/***/ (function(module, __webpack_exports__, __webpack_require__) { 31766 31767"use strict"; 31768/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ActionTypes; }); 31769/* harmony export (immutable) */ __webpack_exports__["b"] = createStore; 31770/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_es_isPlainObject__ = __webpack_require__(127); 31771/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_symbol_observable__ = __webpack_require__(550); 31772 31773 31774 31775/** 31776 * These are private action types reserved by Redux. 31777 * For any unknown actions, you must return the current state. 31778 * If the current state is undefined, you must return the initial state. 31779 * Do not reference these action types directly in your code. 31780 */ 31781var ActionTypes = { 31782 INIT: '@@redux/INIT' 31783 31784 /** 31785 * Creates a Redux store that holds the state tree. 31786 * The only way to change the data in the store is to call `dispatch()` on it. 31787 *
31788 * There should only be a single store in your app. To specify how different 31789 * parts of the state tree respond to actions, you may combine several reducers 31790 * into a single reducer function by using `combineReducers`. 31791 * 31792 * @param {Function} reducer A function that returns the next state tree, given 31793 * the current state tree and the action to handle. 31794 * 31795 * @param {any} [preloadedState] The initial state. You may optionally specify it 31796 * to hydrate the state from the server in universal apps, or to restore a 31797 * previously serialized user session. 31798 * If you use `combineReducers` to produce the root reducer function, this must be 31799 * an object with the same shape as `combineReducers` keys. 31800 * 31801 * @param {Function} [enhancer] The store enhancer. You may optionally specify it 31802 * to enhance the store with third-party capabilities such as middleware, 31803 * time travel, persistence, etc. The only store enhancer that ships with Redux 31804 * is `applyMiddleware()`. 31805 * 31806 * @returns {Store} A Redux store that lets you read the state, dispatch actions 31807 * and subscribe to changes. 31808 */ 31809};function createStore(reducer, preloadedState, enhancer) { 31810 var _ref2; 31811 31812 if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') { 31813 enhancer = preloadedState; 31814 preloadedState = undefined; 31815 } 31816 31817 if (typeof enhancer !== 'undefined') { 31818 if (typeof enhancer !== 'function') { 31819 throw new Error('Expected the enhancer to be a function.'); 31820 } 31821 31822 return enhancer(createStore)(reducer, preloadedState); 31823 } 31824 31825 if (typeof reducer !== 'function') { 31826 throw new Error('Expected the reducer to be a function.'); 31827 } 31828 31829 var currentReducer = reducer; 31830 var currentState = preloadedState; 31831 var currentListeners = []; 31832 var nextListeners = currentListeners; 31833 var isDispatching = false; 31834 31835 function ensureCanMutateNextListeners() { 31836 if (nextListeners === currentListeners) { 31837 nextListeners = currentListeners.slice(); 31838 } 31839 } 31840 31841 /** 31842 * Reads the state tree managed by the store. 31843 * 31844 * @returns {any} The current state tree of your application. 31845 */ 31846 function getState() { 31847 return currentState; 31848 } 31849 31850 /** 31851 * Adds a change listener. It will be called any time an action is dispatched, 31852 * and some part of the state tree may potentially have changed. You may then 31853 * call `getState()` to read the current state tree inside the callback. 31854 * 31855 * You may call `dispatch()` from a change listener, with the following 31856 * caveats: 31857 * 31858 * 1. The subscriptions are snapshotted just before every `dispatch()` call. 31859 * If you subscribe or unsubscribe while the listeners are being invoked, this 31860 * will not have any effect on the `dispatch()` that is currently in progress. 31861 * However, the next `dispatch()` call, whether nested or not, will use a more 31862 * recent snapshot of the subscription list. 31863 * 31864 * 2. The listener should not expect to see all state changes, as the state 31865 * might have been updated multiple times during a nested `dispatch()` before 31866 * the listener is called. It is, however, guaranteed that all subscribers 31867 * registered before the `dispatch()` started will be called with the latest 31868 * state by the time it exits. 31869 * 31870 * @param {Function} listener A callback to be invoked on every dispatch. 31871 * @returns {Function} A function to remove this change listener. 31872 */ 31873 function subscribe(listener) { 31874 if (typeof listener !== 'function') { 31875 throw new Error('Expected listener to be a function.'); 31876 } 31877 31878 var isSubscribed = true; 31879 31880 ensureCanMutateNextListeners(); 31881 nextListeners.push(listener); 31882 31883 return function unsubscribe() { 31884 if (!isSubscribed) { 31885 return; 31886 } 31887 31888 isSubscribed = false; 31889 31890 ensureCanMutateNextListeners(); 31891 var index = nextListeners.indexOf(listener); 31892 nextListeners.splice(index, 1); 31893 }; 31894 } 31895 31896 /** 31897 * Dispatches an action. It is the only way to trigger a state change. 31898 * 31899 * The `reducer` function, used to create the store, will be called with the 31900 * current state tree and the given `action`. Its return value will 31901 * be considered the **next** state of the tree, and the change listeners 31902 * will be notified. 31903 * 31904 * The base implementation only supports plain object actions. If you want to 31905 * dispatch a Promise, an Observable, a thunk, or something else, you need to 31906 * wrap your store creating function into the corresponding middleware. For 31907 * example, see the documentation for the `redux-thunk` package. Even the 31908 * middleware will eventually dispatch plain object actions using this method. 31909 * 31910 * @param {Object} action A plain object representing âwhat changedâ. It is 31911 * a good idea to keep actions serializable so you can record and replay user 31912 * sessions, or use the time travelling `redux-devtools`. An action must have 31913 * a `type` property which may not be `undefined`. It is a good idea to use 31914 * string constants for action types. 31915 * 31916 * @returns {Object} For convenience, the same action object you dispatched. 31917 * 31918 * Note that, if you use a custom middleware, it may wrap `dispatch()` to 31919 * return something else (for example, a Promise you can await). 31920 */ 31921 function dispatch(action) { 31922 if (!Object(__WEBPACK_IMPORTED_MODULE_0_lodash_es_isPlainObject__["a" /* default */])(action)) { 31923 throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.'); 31924 } 31925 31926 if (typeof action.type === 'undefined') { 31927 throw new Error('Actions may not have an undefined "type" property. ' + 'Have you misspelled a constant?'); 31928 } 31929 31930 if (isDispatching) { 31931 throw new Error('Reducers may not dispatch actions.'); 31932 } 31933 31934 try { 31935 isDispatching = true; 31936 currentState = currentReducer(currentState, action); 31937 } finally { 31938 isDispatching = false;
31939 } 31940 31941 var listeners = currentListeners = nextListeners; 31942 for (var i = 0; i < listeners.length; i++) { 31943 var listener = listeners[i]; 31944 listener(); 31945 } 31946 31947 return action; 31948 } 31949 31950 /** 31951 * Replaces the reducer currently used by the store to calculate the state. 31952 * 31953 * You might need this if your app implements code splitting and you want to 31954 * load some of the reducers dynamically. You might also need this if you 31955 * implement a hot reloading mechanism for Redux. 31956 * 31957 * @param {Function} nextReducer The reducer for the store to use instead. 31958 * @returns {void} 31959 */ 31960 function replaceReducer(nextReducer) { 31961 if (typeof nextReducer !== 'function') { 31962 throw new Error('Expected the nextReducer to be a function.'); 31963 } 31964 31965 currentReducer = nextReducer; 31966 dispatch({ type: ActionTypes.INIT }); 31967 } 31968 31969 /** 31970 * Interoperability point for observable/reactive libraries. 31971 * @returns {observable} A minimal observable of state changes. 31972 * For more information, see the observable proposal: 31973 * https://github.com/tc39/proposal-observable 31974 */ 31975 function observable() { 31976 var _ref; 31977 31978 var outerSubscribe = subscribe; 31979 return _ref = { 31980 /** 31981 * The minimal observable subscription method. 31982 * @param {Object} observer Any object that can be used as an observer. 31983 * The observer object should have a `next` method. 31984 * @returns {subscription} An object with an `unsubscribe` method that can 31985 * be used to unsubscribe the observable from the store, and prevent further 31986 * emission of values from the observable. 31987 */ 31988 subscribe: function subscribe(observer) { 31989 if (typeof observer !== 'object') { 31990 throw new TypeError('Expected the observer to be an object.'); 31991 } 31992 31993 function observeState() { 31994 if (observer.next) { 31995 observer.next(getState()); 31996 } 31997 } 31998 31999 observeState(); 32000 var unsubscribe = outerSubscribe(observeState); 32001 return { unsubscribe: unsubscribe }; 32002 } 32003 }, _ref[__WEBPACK_IMPORTED_MODULE_1_symbol_observable__["a" /* default */]] = function () { 32004 return this; 32005 }, _ref; 32006 } 32007 32008 // When a store is created, an "INIT" action is dispatched so that every 32009 // reducer returns their initial state. This effectively populates 32010 // the initial state tree. 32011 dispatch({ type: ActionTypes.INIT }); 32012 32013 return _ref2 = { 32014 dispatch: dispatch, 32015 subscribe: subscribe, 32016 getState: getState, 32017 replaceReducer: replaceReducer 32018 }, _ref2[__WEBPACK_IMPORTED_MODULE_1_symbol_observable__["a" /* default */]] = observable, _ref2; 32019} 32020 32021/***/ }), 32022/* 210 */ 32023/***/ (function(module, __webpack_exports__, __webpack_require__) { 32024 32025"use strict"; 32026/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__root_js__ = __webpack_require__(543); 32027 32028 32029/** Built-in value references. */ 32030var Symbol = __WEBPACK_IMPORTED_MODULE_0__root_js__["a" /* default */].Symbol; 32031 32032/* harmony default export */ __webpack_exports__["a"] = (Symbol); 32033 32034 32035/***/ }), 32036/* 211 */ 32037/***/ (function(module, __webpack_exports__, __webpack_require__) { 32038 32039"use strict"; 32040/* harmony export (immutable) */ __webpack_exports__["a"] = warning; 32041/** 32042 * Prints a warning in the console if it exists. 32043 * 32044 * @param {String} message The warning message. 32045 * @returns {void} 32046 */ 32047function warning(message) { 32048 /* eslint-disable no-console */ 32049 if (typeof console !== 'undefined' && typeof console.error === 'function') { 32050 console.error(message); 32051 } 32052 /* eslint-enable no-console */ 32053 try { 32054 // This error was thrown as a convenience so that if you enable 32055 // "break on all exceptions" in your console, 32056 // it would pause the execution at this line. 32057 throw new Error(message); 32058 /* eslint-disable no-empty */ 32059 } catch (e) {} 32060 /* eslint-enable no-empty */ 32061} 32062 32063/***/ }), 32064/* 212 */ 32065/***/ (function(module, __webpack_exports__, __webpack_require__) { 32066 32067"use strict"; 32068/* harmony export (immutable) */ __webpack_exports__["a"] = compose; 32069/** 32070 * Composes single-argument functions from right to left. The rightmost 32071 * function can take multiple arguments as it provides the signature for 32072 * the resulting composite function. 32073 * 32074 * @param {...Function} funcs The functions to compose. 32075 * @returns {Function} A function obtained by composing the argument functions 32076 * from right to left. For example, compose(f, g, h) is identical to doing 32077 * (...args) => f(g(h(...args))). 32078 */ 32079 32080function compose() { 32081 for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { 32082 funcs[_key] = arguments[_key]; 32083 } 32084 32085 if (funcs.length === 0) { 32086 return function (arg) { 32087 return arg; 32088 }; 32089 } 32090 32091 if (funcs.length === 1) { 32092 return funcs[0]; 32093 } 32094 32095 return funcs.reduce(function (a, b) { 32096 return function () {
32097 return a(b.apply(undefined, arguments)); 32098 }; 32099 }); 32100} 32101 32102/***/ }), 32103/* 213 */, 32104/* 214 */, 32105/* 215 */ 32106/***/ (function(module, exports, __webpack_require__) { 32107 32108"use strict"; 32109 32110 32111Object.defineProperty(exports, "__esModule", { 32112 value: true 32113}); 32114 32115var _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; }; 32116 32117exports.routerReducer = routerReducer; 32118/** 32119 * This action type will be dispatched when your history 32120 * receives a location change. 32121 */ 32122var LOCATION_CHANGE = exports.LOCATION_CHANGE = '@@router/LOCATION_CHANGE'; 32123 32124var initialState = { 32125 locationBeforeTransitions: null 32126}; 32127 32128/** 32129 * This reducer will update the state with the most recent location history 32130 * has transitioned to. This may not be in sync with the router, particularly 32131 * if you have asynchronously-loaded routes, so reading from and relying on 32132 * this state is discouraged. 32133 */ 32134function routerReducer() { 32135 var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState; 32136 32137 var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, 32138 type = _ref.type, 32139 payload = _ref.payload; 32140 32141 if (type === LOCATION_CHANGE) { 32142 return _extends({}, state, { locationBeforeTransitions: payload }); 32143 } 32144 32145 return state; 32146} 32147 32148/***/ }), 32149/* 216 */ 32150/***/ (function(module, exports, __webpack_require__) { 32151 32152"use strict"; 32153 32154 32155Object.defineProperty(exports, "__esModule", { 32156 value: true 32157}); 32158/** 32159 * This action type will be dispatched by the history actions below. 32160 * If you're writing a middleware to watch for navigation events, be sure to 32161 * look for actions of this type. 32162 */ 32163var CALL_HISTORY_METHOD = exports.CALL_HISTORY_METHOD = '@@router/CALL_HISTORY_METHOD'; 32164 32165function updateLocation(method) { 32166 return function () { 32167 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { 32168 args[_key] = arguments[_key]; 32169 } 32170 32171 return { 32172 type: CALL_HISTORY_METHOD, 32173 payload: { method: method, args: args } 32174 }; 32175 }; 32176} 32177 32178/** 32179 * These actions correspond to the history API. 32180 * The associated routerMiddleware will capture these events before they get to 32181 * your reducer and reissue them as the matching function on your history. 32182 */ 32183var push = exports.push = updateLocation('push'); 32184var replace = exports.replace = updateLocation('replace'); 32185var go = exports.go = updateLocation('go'); 32186var goBack = exports.goBack = updateLocation('goBack'); 32187var goForward = exports.goForward = updateLocation('goForward'); 32188 32189var routerActions = exports.routerActions = { push: push, replace: replace, go: go, goBack: goBack, goForward: goForward }; 32190 32191/***/ }), 32192/* 217 */ 32193/***/ (function(module, exports, __webpack_require__) { 32194 32195/* WEBPACK VAR INJECTION */(function(global) {!function(e,t){ true?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.reduxLogger=e.reduxLogger||{})}(this,function(e){"use strict";function t(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function r(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function n(e,t,r){n.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:r,enumerable:!0})}function o(e,t){o.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function i(e,t){i.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0})}function a(e,t,r){a.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:r,enumerable:!0})}function f(e,t,r){var n=e.slice((r||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,n),e}function u(e){var t="undefined"==typeof e?"undefined":N(e);return"object"!==t?t:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function l(e,t,r,c,s,d,p){s=s||[],p=p||[];var g=s.slice(0);if("undefined"!=typeof d){if(c){if("function"==typeof c&&c(g,d))return;if("object"===("undefined"==typeof c?"undefined":N(c))){if(c.prefilter&&c.prefilter(g,d))return;if(c.normalize){var h=c.normalize(g,d,e,t);h&&(e=h[0],t=h[1])}}}g.push(d)}"regexp"===u(e)&&"regexp"===u(t)&&(e=e.toString(),t=t.toString());var y="undefined"==typeof e?"undefined":N(e),v="undefined"==typeof t?"undefined":N(t),b="undefined"!==y||p&&p[p.length-1].lhs&&p[p.length-1].lhs.hasOwnProperty(d),m="undefined"!==v||p&&p[p.length-1].rhs&&p[p.length-1].rhs.hasOwnProperty(d);if(!b&&m)r(new o(g,t));else if(!m&&b)r(new i(g,e));else if(u(e)!==u(t))r(new n(g,e,t));else if("date"===u(e)&&e-t!==0)r(new n(g,e,t));else if("object"===y&&null!==e&&null!==t)if(p.filter(function(t){return t.lhs===e}).length)e!==t&&r(new n(g,e,t));else{if(p.push({lhs:e,rhs:t}),Array.isArray(e)){var w;e.length;for(w=0;w<e.length;w++)w>=t.length?r(new a(g,w,new i(void 0,e[w]))):l(e[w],t[w],r,c,g,w,p);for(;w<t.length;)r(new a(g,w,new o(void 0,t[w++])))}else{var x=Object.keys(e),S=Object.keys(t);x.forEach(function(n,o){var i=S.indexOf(n);i>=0?(l(e[n],t[n],r,c,g,n,p),S=f(S,i)):l(e[n],void 0,r,c,g,n,p)}
32195),S.forEach(function(e){l(void 0,t[e],r,c,g,e,p)})}p.length=p.length-1}else e!==t&&("number"===y&&isNaN(e)&&isNaN(t)||r(new n(g,e,t)))}function c(e,t,r,n){return n=n||[],l(e,t,function(e){e&&n.push(e)},r),n.length?n:void 0}function s(e,t,r){if(r.path&&r.path.length){var n,o=e[t],i=r.path.length-1;for(n=0;n<i;n++)o=o[r.path[n]];switch(r.kind){case"A":s(o[r.path[n]],r.index,r.item);break;case"D":delete o[r.path[n]];break;case"E":case"N":o[r.path[n]]=r.rhs}}else switch(r.kind){case"A":s(e[t],r.index,r.item);break;case"D":e=f(e,t);break;case"E":case"N":e[t]=r.rhs}return e}function d(e,t,r){if(e&&t&&r&&r.kind){for(var n=e,o=-1,i=r.path?r.path.length-1:0;++o<i;)"undefined"==typeof n[r.path[o]]&&(n[r.path[o]]="number"==typeof r.path[o]?[]:{}),n=n[r.path[o]];switch(r.kind){case"A":s(r.path?n[r.path[o]]:n,r.index,r.item);break;case"D":delete n[r.path[o]];break;case"E":case"N":n[r.path[o]]=r.rhs}}}function p(e,t,r){if(r.path&&r.path.length){var n,o=e[t],i=r.path.length-1;for(n=0;n<i;n++)o=o[r.path[n]];switch(r.kind){case"A":p(o[r.path[n]],r.index,r.item);break;case"D":o[r.path[n]]=r.lhs;break;case"E":o[r.path[n]]=r.lhs;break;case"N":delete o[r.path[n]]}}else switch(r.kind){case"A":p(e[t],r.index,r.item);break;case"D":e[t]=r.lhs;break;case"E":e[t]=r.lhs;break;case"N":e=f(e,t)}return e}function g(e,t,r){if(e&&t&&r&&r.kind){var n,o,i=e;for(o=r.path.length-1,n=0;n<o;n++)"undefined"==typeof i[r.path[n]]&&(i[r.path[n]]={}),i=i[r.path[n]];switch(r.kind){case"A":p(i[r.path[n]],r.index,r.item);break;case"D":i[r.path[n]]=r.lhs;break;case"E":i[r.path[n]]=r.lhs;break;case"N":delete i[r.path[n]]}}}function h(e,t,r){if(e&&t){var n=function(n){r&&!r(e,t,n)||d(e,t,n)};l(e,t,n)}}function y(e){return"color: "+F[e].color+"; font-weight: bold"}function v(e){var t=e.kind,r=e.path,n=e.lhs,o=e.rhs,i=e.index,a=e.item;switch(t){case"E":return[r.join("."),n,"â",o];case"N":return[r.join("."),o];case"D":return[r.join(".")];case"A":return[r.join(".")+"["+i+"]",a];default:return[]}}function b(e,t,r,n){var o=c(e,t);try{n?r.groupCollapsed("diff"):r.group("diff")}catch(e){r.log("diff")}o?o.forEach(function(e){var t=e.kind,n=v(e);r.log.apply(r,["%c "+F[t].text,y(t)].concat(P(n)))}):r.log("ââ no diff ââ");try{r.groupEnd()}catch(e){r.log("ââ diff end ââ ")}}function m(e,t,r,n){switch("undefined"==typeof e?"undefined":N(e)){case"object":return"function"==typeof e[n]?e[n].apply(e,P(r)):e[n];case"function":return e(t);default:return e}}function w(e){var t=e.timestamp,r=e.duration;return function(e,n,o){var i=["action"];return i.push("%c"+String(e.type)),t&&i.push("%c@ "+n),r&&i.push("%c(in "+o.toFixed(2)+" ms)"),i.join(" ")}}function x(e,t){var r=t.logger,n=t.actionTransformer,o=t.titleFormatter,i=void 0===o?w(t):o,a=t.collapsed,f=t.colors,u=t.level,l=t.diff,c="undefined"==typeof t.titleFormatter;e.forEach(function(o,s){var d=o.started,p=o.startedTime,g=o.action,h=o.prevState,y=o.error,v=o.took,w=o.nextState,x=e[s+1];x&&(w=x.prevState,v=x.started-d);var S=n(g),k="function"==typeof a?a(function(){return w},g,o):a,j=D(p),E=f.title?"color: "+f.title(S)+";":"",A=["color: gray; font-weight: lighter;"];A.push(E),t.timestamp&&A.push("color: gray; font-weight: lighter;"),t.duration&&A.push("color: gray; font-weight: lighter;");var O=i(S,j,v);try{k?f.title&&c?r.groupCollapsed.apply(r,["%c "+O].concat(A)):r.groupCollapsed(O):f.title&&c?r.group.apply(r,["%c "+O].concat(A)):r.group(O)}catch(e){r.log(O)}var N=m(u,S,[h],"prevState"),P=m(u,S,[S],"action"),C=m(u,S,[y,h],"error"),F=m(u,S,[w],"nextState");if(N)if(f.prevState){var L="color: "+f.prevState(h)+"; font-weight: bold";r[N]("%c prev state",L,h)}else r[N]("prev state",h);if(P)if(f.action){var T="color: "+f.action(S)+"; font-weight: bold";r[P]("%c action ",T,S)}else r[P]("action ",S);if(y&&C)if(f.error){var M="color: "+f.error(y,h)+"; font-weight: bold;";r[C]("%c error ",M,y)}else r[C]("error ",y);if(F)if(f.nextState){var _="color: "+f.nextState(w)+"; font-weight: bold";r[F]("%c next state",_,w)}else r[F]("next state",w);l&&b(h,w,r,k);try{r.groupEnd()}catch(e){r.log("ââ log end ââ")}})}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},L,e),r=t.logger,n=t.stateTransformer,o=t.errorTransformer,i=t.predicate,a=t.logErrors,f=t.diffPredicate;if("undefined"==typeof r)return function(){return function(e){return function(t){return e(t)}}};if(e.getState&&e.dispatch)return console.error("[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:\n// Logger with default options\nimport { logger } from 'redux-logger'\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n// Or you can create your own logger with custom options http://bit.ly/redux-logger-options\nimport createLogger from 'redux-logger'\nconst logger = createLogger({\n // ...options\n});\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n"),function(){return function(e){return function(t){return e(t)}}};var u=[];return function(e){var r=e.getState;return function(e){return function(l){if("function"==typeof i&&!i(r,l))return e(l);var c={};u.push(c),c.started=O.now(),c.startedTime=new Date,c.prevState=n(r()),c.action=l;var s=void 0;if(a)try{s=e(l)}catch(e){c.error=o(e)}else s=e(l);c.took=O.now()-c.started,c.nextState=n(r());var d=t.diff&&"function"==typeof f?f(r,l):t.diff;if(x(u,Object.assign({},t,{diff:d})),u.length=0,c.error)throw c.error;return s}}}}var k,j,E=function(e,t){return new Array(t+1).join(e)},A=function(e,t){return E("0",t-e.toString().length)+e},D=function(e){return A(e.getHours(),2)+":"+A(e.getMinutes(),2)+":"+A(e.getSeconds(),2)+"."+A(e.getMilliseconds(),3)},O="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},C=[];k="object"===("undefined"==typeof global?"undefined":N(global))&&global?global:"undefined"!=typeof window?window:{},j=k.DeepDiff,j&&C.push(function(){"undefined"!=typeof j&&k.DeepDiff===c&&(k.DeepDiff=j,j=void 0)}),t(n,r),t(o,r),t(i,r),t(a,r),Object.defineProperties(c,{diff:{value:c,enumerable:!0},observableDiff:{value:l,enumerable:!0},applyDiff:{value:h,enumerable:!0},applyChange:{value:d,enumerable:!0},revertChange:{value:g,enumerable:!0},isConflict:{value:function(){return"undefined"!=typeof j},enumerable:!0},noConflict:{value:function(){return C&&(C.forEach(function(e){e()}),C=null),c},enumerable:!0}});var F={E:{color:"#2196F3",text:"CHANGED:"},N:{color:"#4CAF50",text:"ADDED:"},D:{color:"#F44336",text:"DELETED:"},A:{color:"#2196F3",text:"ARRAY:"}},L={level:"log",logger:console,logErrors:!0,collapsed:void 0,predicate:void 0,duration:!1,timestamp:!0,stateTransformer:function(e){return e},actionTransformer:function(e){return e},errorTransformer:function(e){return e},colors:{title:function(){return"inherit"},prevState:function(){return"#9E9E9E"},action:function(){return"#03A9F4"},nextState:function(){return"#4CAF50"},error:function(){return"#F20404"}},diff:!1,diffPredicate:void 0,transformer:void 0},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
32195,t=e.dispatch,r=e.getState;return"function"==typeof t||"function"==typeof r?S()({dispatch:t,getState:r}):void console.error("\n[redux-logger v3] BREAKING CHANGE\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\n[redux-logger v3] Change\n[redux-logger v3] import createLogger from 'redux-logger'\n[redux-logger v3] to\n[redux-logger v3] import { createLogger } from 'redux-logger'\n")};e.defaults=L,e.createLogger=S,e.logger=T,e.default=T,Object.defineProperty(e,"__esModule",{value:!0})}); 32196 32197/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(68))) 32198 32199/***/ }), 32200/* 218 */ 32201/***/ (function(module, __webpack_exports__, __webpack_require__) { 32202 32203"use strict"; 32204Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); 32205function createThunkMiddleware(extraArgument) { 32206 return function (_ref) { 32207 var dispatch = _ref.dispatch, 32208 getState = _ref.getState; 32209 return function (next) { 32210 return function (action) { 32211 if (typeof action === 'function') { 32212 return action(dispatch, getState, extraArgument); 32213 } 32214 32215 return next(action); 32216 }; 32217 }; 32218 }; 32219} 32220 32221var thunk = createThunkMiddleware(); 32222thunk.withExtraArgument = createThunkMiddleware; 32223 32224/* harmony default export */ __webpack_exports__["default"] = (thunk); 32225 32226/***/ }), 32227/* 219 */ 32228/***/ (function(module, exports, __webpack_require__) { 32229 32230//! moment.js locale configuration 32231 32232;(function (global, factory) { 32233 true ? factory(__webpack_require__(1)) : 32234 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 32235 factory(global.moment) 32236}(this, (function (moment) { 'use strict'; 32237 32238 32239 var af = moment.defineLocale('af', { 32240 months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'), 32241 monthsShort : 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'), 32242 weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'), 32243 weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), 32244 weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), 32245 meridiemParse: /vm|nm/i, 32246 isPM : function (input) { 32247 return /^nm$/i.test(input); 32248 }, 32249 meridiem : function (hours, minutes, isLower) { 32250 if (hours < 12) { 32251 return isLower ? 'vm' : 'VM'; 32252 } else { 32253 return isLower ? 'nm' : 'NM'; 32254 } 32255 }, 32256 longDateFormat : { 32257 LT : 'HH:mm', 32258 LTS : 'HH:mm:ss', 32259 L : 'DD/MM/YYYY', 32260 LL : 'D MMMM YYYY', 32261 LLL : 'D MMMM YYYY HH:mm', 32262 LLLL : 'dddd, D MMMM YYYY HH:mm' 32263 }, 32264 calendar : { 32265 sameDay : '[Vandag om] LT', 32266 nextDay : '[Môre om] LT', 32267 nextWeek : 'dddd [om] LT', 32268 lastDay : '[Gister om] LT', 32269 lastWeek : '[Laas] dddd [om] LT', 32270 sameElse : 'L' 32271 }, 32272 relativeTime : { 32273 future : 'oor %s', 32274 past : '%s gelede', 32275 s : '\'n paar sekondes', 32276 ss : '%d sekondes', 32277 m : '\'n minuut', 32278 mm : '%d minute', 32279 h : '\'n uur', 32280 hh : '%d ure', 32281 d : '\'n dag', 32282 dd : '%d dae', 32283 M : '\'n maand', 32284 MM : '%d maande', 32285 y : '\'n jaar', 32286 yy : '%d jaar' 32287 }, 32288 dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, 32289 ordinal : function (number) { 32290 return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter 32291 }, 32292 week : { 32293 dow : 1, // Maandag is die eerste dag van die week. 32294 doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar. 32295 } 32296 }); 32297 32298 return af; 32299 32300}))); 32301 32302 32303/***/ }), 32304/* 220 */ 32305/***/ (function(module, exports, __webpack_require__) { 32306 32307//! moment.js locale configuration 32308 32309;(function (global, factory) { 32310 true ? factory(__webpack_require__(1)) : 32311 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 32312 factory(global.moment) 32313}(this, (function (moment) { 'use strict'; 32314 32315 32316 var symbolMap = { 32317 '1': 'Ù¡', 32318 '2': 'Ù¢', 32319 '3': 'Ù£', 32320 '4': 'Ù¤', 32321 '5': 'Ù¥', 32322 '6': 'Ù¦', 32323 '7': 'Ù§', 32324 '8': 'Ù¨', 32325 '9': 'Ù©', 32326 '0': 'Ù ' 32327 }, numberMap = { 32328 'Ù¡': '1', 32329 'Ù¢': '2', 32330 'Ù£': '3', 32331 'Ù¤': '4', 32332 'Ù¥': '5', 32333 'Ù¦': '6', 32334 'Ù§': '7', 32335 'Ù¨': '8', 32336 'Ù©': '9', 32337 'Ù ': '0' 32338 }, pluralForm = function (n) { 32339 return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5; 32340 }, plurals = { 32341 s : ['Ø£Ù٠٠٠ثاÙÙØ©', 'ثاÙÙØ© ÙØ§ØØ¯Ø©', ['ثاÙÙØªØ§Ù', 'ثاÙÙØªÙÙ'], '%d Ø«ÙØ§Ù', '%d ثاÙÙØ©', '%d ثاÙÙØ©'], 32342 m : ['Ø£Ù٠٠٠دÙÙÙØ©', 'دÙÙÙØ© ÙØ§ØØ¯Ø©', ['دÙÙÙØªØ§Ù', 'دÙÙÙØªÙÙ'], '%d Ø¯ÙØ§Ø¦Ù', '%d دÙÙÙØ©', '%d دÙÙÙØ©'],
vendor: 399,049 bytes, lines 32343-43552
32343 h : ['Ø£Ù٠٠٠ساعة', 'ساعة ÙØ§ØØ¯Ø©', ['ساعتاÙ', 'ساعتÙÙ'], '%d ساعات', '%d ساعة', '%d ساعة'], 32344 d : ['Ø£ÙÙ Ù Ù ÙÙÙ ', 'ÙÙÙ ÙØ§ØØ¯', ['ÙÙ٠اÙ', 'ÙÙÙ ÙÙ'], '%d Ø£ÙØ§Ù ', '%d ÙÙÙ ÙØ§', '%d ÙÙÙ '], 32345 M : ['Ø£ÙÙ Ù Ù Ø´ÙØ±', 'Ø´ÙØ± ÙØ§ØØ¯', ['Ø´ÙØ±Ø§Ù', 'Ø´ÙØ±ÙÙ'], '%d Ø£Ø´ÙØ±', '%d Ø´ÙØ±Ø§', '%d Ø´ÙØ±'], 32346 y : ['Ø£Ù٠٠٠عا٠', 'Ø¹Ø§Ù ÙØ§ØØ¯', ['عا٠اÙ', 'عا٠ÙÙ'], '%d Ø£Ø¹ÙØ§Ù ', '%d Ø¹Ø§Ù ÙØ§', '%d عا٠'] 32347 }, pluralize = function (u) { 32348 return function (number, withoutSuffix, string, isFuture) { 32349 var f = pluralForm(number), 32350 str = plurals[u][pluralForm(number)]; 32351 if (f === 2) { 32352 str = str[withoutSuffix ? 0 : 1]; 32353 } 32354 return str.replace(/%d/i, number); 32355 }; 32356 }, months = [ 32357 'ÙÙØ§Ùر', 32358 'ÙØ¨Ø±Ø§Ùر', 32359 '٠ارس', 32360 'أبرÙÙ', 32361 '٠اÙÙ', 32362 'ÙÙÙÙÙ', 32363 'ÙÙÙÙÙ', 32364 'أغسطس', 32365 'سبت٠بر', 32366 'Ø£ÙØªÙبر', 32367 'ÙÙÙ٠بر', 32368 'Ø¯ÙØ³Ù بر' 32369 ]; 32370 32371 var ar = moment.defineLocale('ar', { 32372 months : months, 32373 monthsShort : months, 32374 weekdays : 'Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù ÙØ³_Ø§ÙØ¬Ù عة_Ø§ÙØ³Ø¨Øª'.split('_'), 32375 weekdaysShort : 'Ø£ØØ¯_إثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_أربعاء_Ø®Ù ÙØ³_ج٠عة_سبت'.split('_'), 32376 weekdaysMin : 'Ø_Ù_Ø«_ر_Ø®_ج_س'.split('_'), 32377 weekdaysParseExact : true, 32378 longDateFormat : { 32379 LT : 'HH:mm', 32380 LTS : 'HH:mm:ss', 32381 L : 'D/\u200FM/\u200FYYYY', 32382 LL : 'D MMMM YYYY', 32383 LLL : 'D MMMM YYYY HH:mm', 32384 LLLL : 'dddd D MMMM YYYY HH:mm' 32385 }, 32386 meridiemParse: /ص|Ù /, 32387 isPM : function (input) { 32388 return 'Ù ' === input; 32389 }, 32390 meridiem : function (hour, minute, isLower) { 32391 if (hour < 12) { 32392 return 'ص'; 32393 } else { 32394 return 'Ù '; 32395 } 32396 }, 32397 calendar : { 32398 sameDay: '[اÙÙÙÙ Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32399 nextDay: '[ØºØ¯ÙØ§ Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32400 nextWeek: 'dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32401 lastDay: '[أ٠س Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32402 lastWeek: 'dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32403 sameElse: 'L' 32404 }, 32405 relativeTime : { 32406 future : 'بعد %s', 32407 past : 'Ù ÙØ° %s', 32408 s : pluralize('s'), 32409 ss : pluralize('s'), 32410 m : pluralize('m'), 32411 mm : pluralize('m'), 32412 h : pluralize('h'), 32413 hh : pluralize('h'), 32414 d : pluralize('d'), 32415 dd : pluralize('d'), 32416 M : pluralize('M'), 32417 MM : pluralize('M'), 32418 y : pluralize('y'), 32419 yy : pluralize('y') 32420 }, 32421 preparse: function (string) { 32422 return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { 32423 return numberMap[match]; 32424 }).replace(/Ø/g, ','); 32425 }, 32426 postformat: function (string) { 32427 return string.replace(/\d/g, function (match) { 32428 return symbolMap[match]; 32429 }).replace(/,/g, 'Ø'); 32430 }, 32431 week : { 32432 dow : 6, // Saturday is the first day of the week. 32433 doy : 12 // The week that contains Jan 1st is the first week of the year. 32434 } 32435 }); 32436 32437 return ar; 32438 32439}))); 32440 32441 32442/***/ }), 32443/* 221 */ 32444/***/ (function(module, exports, __webpack_require__) { 32445 32446//! moment.js locale configuration 32447 32448;(function (global, factory) { 32449 true ? factory(__webpack_require__(1)) : 32450 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 32451 factory(global.moment) 32452}(this, (function (moment) { 'use strict'; 32453 32454 32455 var arDz = moment.defineLocale('ar-dz', { 32456 months : 'جاÙÙÙ_ÙÙÙØ±Ù_٠ارس_Ø£ÙØ±ÙÙ_٠اÙ_Ø¬ÙØ§Ù_جÙÙÙÙØ©_Ø£ÙØª_سبت٠بر_Ø£ÙØªÙبر_ÙÙÙ٠بر_Ø¯ÙØ³Ù بر'.split('_'), 32457 monthsShort : 'جاÙÙÙ_ÙÙÙØ±Ù_٠ارس_Ø£ÙØ±ÙÙ_٠اÙ_Ø¬ÙØ§Ù_جÙÙÙÙØ©_Ø£ÙØª_سبت٠بر_Ø£ÙØªÙبر_ÙÙÙ٠بر_Ø¯ÙØ³Ù بر'.split('_'), 32458 weekdays : 'Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù ÙØ³_Ø§ÙØ¬Ù عة_Ø§ÙØ³Ø¨Øª'.split('_'), 32459 weekdaysShort : 'Ø§ØØ¯_اثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_اربعاء_Ø®Ù ÙØ³_ج٠عة_سبت'.split('_'), 32460 weekdaysMin : 'Ø£Ø_إث_Ø«ÙØ§_أر_خ٠_ج٠_سب'.split('_'), 32461 weekdaysParseExact : true, 32462 longDateFormat : { 32463 LT : 'HH:mm', 32464 LTS : 'HH:mm:ss', 32465 L : 'DD/MM/YYYY', 32466 LL : 'D MMMM YYYY', 32467 LLL : 'D MMMM YYYY HH:mm', 32468 LLLL : 'dddd D MMMM YYYY HH:mm' 32469 }, 32470 calendar : { 32471 sameDay: '[اÙÙÙ٠عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32472 nextDay: '[غدا عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32473 nextWeek: 'dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32474 lastDay: '[أ٠س عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32475 lastWeek: 'dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32476 sameElse: 'L' 32477 }, 32478 relativeTime : { 32479 future : 'ÙÙ %s', 32480 past : 'Ù ÙØ° %s', 32481 s : 'Ø«ÙØ§Ù', 32482 ss : '%d ثاÙÙØ©', 32483 m : 'دÙÙÙØ©', 32484 mm : '%d Ø¯ÙØ§Ø¦Ù', 32485 h : 'ساعة', 32486 hh : '%d ساعات', 32487 d : 'ÙÙÙ ', 32488 dd : '%d Ø£ÙØ§Ù ', 32489 M : 'Ø´ÙØ±', 32490 MM : '%d Ø£Ø´ÙØ±', 32491 y : 'Ø³ÙØ©', 32492 yy : '%d سÙÙØ§Øª' 32493 }, 32494 week : { 32495 dow : 0, // Sunday is the first day of the week. 32496 doy : 4 // The week that contains Jan 1st is the first week of the year. 32497 } 32498 }); 32499 32500 return arDz; 32501 32502}))); 32503 32504 32505/***/ }), 32506/* 222 */ 32507/***/ (function(module, exports, __webpack_require__) { 32508 32509//! moment.js locale configuration 32510 32511;(function (global, factory) { 32512 true ? factory(__webpack_require__(1)) : 32513 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 32514 factory(global.moment) 32515}(this, (function (moment) { 'use strict'; 32516 32517 32518 var arKw = moment.defineLocale('ar-kw', { 32519 months : 'ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_٠ارس_أبرÙÙ_٠اÙ_ÙÙÙÙÙ_ÙÙÙÙÙØ²_غشت_Ø´ØªÙØ¨Ø±_Ø£ÙØªÙبر_ÙÙÙØ¨Ø±_Ø¯Ø¬ÙØ¨Ø±'.split('_'), 32520 monthsShort : 'ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_٠ارس_أبرÙÙ_٠اÙ_ÙÙÙÙÙ_ÙÙÙÙÙØ²_غشت_Ø´ØªÙØ¨Ø±_Ø£ÙØªÙبر_ÙÙÙØ¨Ø±_Ø¯Ø¬ÙØ¨Ø±'.split('_'), 32521 weekdays : 'Ø§ÙØ£ØØ¯_Ø§ÙØ¥ØªÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù ÙØ³_Ø§ÙØ¬Ù عة_Ø§ÙØ³Ø¨Øª'.split('_'), 32522 weekdaysShort : 'Ø§ØØ¯_اتÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_اربعاء_Ø®Ù ÙØ³_ج٠عة_سبت'.split('_'), 32523 weekdaysMin : 'Ø_Ù_Ø«_ر_Ø®_ج_س'.split('_'), 32524 weekdaysParseExact : true, 32525 longDateFormat : { 32526 LT : 'HH:mm', 32527 LTS : 'HH:mm:ss', 32528 L : 'DD/MM/YYYY', 32529 LL : 'D MMMM YYYY', 32530 LLL : 'D MMMM YYYY HH:mm', 32531 LLLL : 'dddd D MMMM YYYY HH:mm' 32532 }, 32533 calendar : { 32534 sameDay: '[اÙÙÙ٠عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32535 nextDay: '[غدا عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32536 nextWeek: 'dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32537 lastDay: '[أ٠س عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32538 lastWeek: 'dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32539 sameElse: 'L' 32540 }, 32541 relativeTime : { 32542 future : 'ÙÙ %s', 32543 past : 'Ù ÙØ° %s', 32544 s : 'Ø«ÙØ§Ù', 32545 ss : '%d ثاÙÙØ©', 32546 m : 'دÙÙÙØ©', 32547 mm : '%d Ø¯ÙØ§Ø¦Ù', 32548 h : 'ساعة', 32549 hh : '%d ساعات', 32550 d : 'ÙÙÙ ', 32551 dd : '%d Ø£ÙØ§Ù ', 32552 M : 'Ø´ÙØ±', 32553 MM : '%d Ø£Ø´ÙØ±', 32554 y : 'Ø³ÙØ©', 32555 yy : '%d سÙÙØ§Øª' 32556 }, 32557 week : { 32558 dow : 0, // Sunday is the first day of the week. 32559 doy : 12 // The week that contains Jan 1st is the first week of the year. 32560 } 32561 }); 32562 32563 return arKw; 32564 32565}))); 32566 32567 32568/***/ }), 32569/* 223 */ 32570/***/ (function(module, exports, __webpack_require__) { 32571 32572//! moment.js locale configuration 32573 32574;(function (global, factory) { 32575 true ? factory(__webpack_require__(1)) : 32576 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 32577 factory(global.moment) 32578}(this, (function (moment) { 'use strict'; 32579 32580 32581 var symbolMap = { 32582 '1': '1', 32583 '2': '2', 32584 '3': '3', 32585 '4': '4', 32586 '5': '5', 32587 '6': '6', 32588 '7': '7', 32589 '8': '8', 32590 '9': '9', 32591 '0': '0' 32592 }, pluralForm = function (n) { 32593 return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5; 32594 }, plurals = { 32595 s : ['Ø£Ù٠٠٠ثاÙÙØ©', 'ثاÙÙØ© ÙØ§ØØ¯Ø©', ['ثاÙÙØªØ§Ù', 'ثاÙÙØªÙÙ'], '%d Ø«ÙØ§Ù', '%d ثاÙÙØ©', '%d ثاÙÙØ©'], 32596 m : ['Ø£Ù٠٠٠دÙÙÙØ©', 'دÙÙÙØ© ÙØ§ØØ¯Ø©', ['دÙÙÙØªØ§Ù', 'دÙÙÙØªÙÙ'], '%d Ø¯ÙØ§Ø¦Ù', '%d دÙÙÙØ©', '%d دÙÙÙØ©'], 32597 h : ['Ø£Ù٠٠٠ساعة', 'ساعة ÙØ§ØØ¯Ø©', ['ساعتاÙ', 'ساعتÙÙ'], '%d ساعات', '%d ساعة', '%d ساعة'], 32598 d : ['Ø£ÙÙ Ù Ù ÙÙÙ ', 'ÙÙÙ ÙØ§ØØ¯', ['ÙÙ٠اÙ', 'ÙÙÙ ÙÙ'], '%d Ø£ÙØ§Ù ', '%d ÙÙÙ ÙØ§', '%d ÙÙÙ '], 32599 M : ['Ø£ÙÙ Ù Ù Ø´ÙØ±', 'Ø´ÙØ± ÙØ§ØØ¯', ['Ø´ÙØ±Ø§Ù', 'Ø´ÙØ±ÙÙ'], '%d Ø£Ø´ÙØ±', '%d Ø´ÙØ±Ø§', '%d Ø´ÙØ±'], 32600 y : ['Ø£Ù٠٠٠عا٠', 'Ø¹Ø§Ù ÙØ§ØØ¯', ['عا٠اÙ', 'عا٠ÙÙ'], '%d Ø£Ø¹ÙØ§Ù ', '%d Ø¹Ø§Ù ÙØ§', '%d عا٠'] 32601 }, pluralize = function (u) { 32602 return function (number, withoutSuffix, string, isFuture) { 32603 var f = pluralForm(number), 32604 str = plurals[u][pluralForm(number)]; 32605 if (f === 2) { 32606 str = str[withoutSuffix ? 0 : 1]; 32607 } 32608 return str.replace(/%d/i, number); 32609 }; 32610 }, months = [ 32611 'ÙÙØ§Ùر', 32612 'ÙØ¨Ø±Ø§Ùر', 32613 '٠ارس', 32614 'أبرÙÙ', 32615 '٠اÙÙ', 32616 'ÙÙÙÙÙ', 32617 'ÙÙÙÙÙ', 32618 'أغسطس', 32619 'سبت٠بر', 32620 'Ø£ÙØªÙبر', 32621 'ÙÙÙ٠بر', 32622 'Ø¯ÙØ³Ù بر' 32623 ]; 32624 32625 var arLy = moment.defineLocale('ar-ly', { 32626 months : months, 32627 monthsShort : months, 32628 weekdays : 'Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù ÙØ³_Ø§ÙØ¬Ù عة_Ø§ÙØ³Ø¨Øª'.split('_'), 32629 weekdaysShort : 'Ø£ØØ¯_إثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_أربعاء_Ø®Ù ÙØ³_ج٠عة_سبت'.split('_'), 32630 weekdaysMin : 'Ø_Ù_Ø«_ر_Ø®_ج_س'.split('_'), 32631 weekdaysParseExact : true, 32632 longDateFormat : { 32633 LT : 'HH:mm', 32634 LTS : 'HH:mm:ss', 32635 L : 'D/\u200FM/\u200FYYYY', 32636 LL : 'D MMMM YYYY', 32637 LLL : 'D MMMM YYYY HH:mm', 32638 LLLL : 'dddd D MMMM YYYY HH:mm' 32639 }, 32640 meridiemParse: /ص|Ù /, 32641 isPM : function (input) { 32642 return 'Ù ' === input; 32643 }, 32644 meridiem : function (hour, minute, isLower) { 32645 if (hour < 12) { 32646 return 'ص'; 32647 } else { 32648 return 'Ù '; 32649 } 32650 }, 32651 calendar : { 32652 sameDay: '[اÙÙÙÙ Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32653 nextDay: '[ØºØ¯ÙØ§ Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32654 nextWeek: 'dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32655 lastDay: '[أ٠س Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32656 lastWeek: 'dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32657 sameElse: 'L' 32658 }, 32659 relativeTime : { 32660 future : 'بعد %s', 32661 past : 'Ù ÙØ° %s', 32662 s : pluralize('s'), 32663 ss : pluralize('s'), 32664 m : pluralize('m'), 32665 mm : pluralize('m'), 32666 h : pluralize('h'), 32667 hh : pluralize('h'), 32668 d : pluralize('d'), 32669 dd : pluralize('d'), 32670 M : pluralize('M'), 32671 MM : pluralize('M'), 32672 y : pluralize('y'), 32673 yy : pluralize('y') 32674 }, 32675 preparse: function (string) { 32676 return string.replace(/Ø/g, ','); 32677 }, 32678 postformat: function (string) { 32679 return string.replace(/\d/g, function (match) { 32680 return symbolMap[match]; 32681 }).replace(/,/g, 'Ø'); 32682 }, 32683 week : { 32684 dow : 6, // Saturday is the first day of the week. 32685 doy : 12 // The week that contains Jan 1st is the first week of the year. 32686 } 32687 }); 32688 32689 return arLy; 32690 32691}))); 32692 32693 32694/***/ }), 32695/* 224 */ 32696/***/ (function(module, exports, __webpack_require__) { 32697 32698//! moment.js locale configuration 32699 32700;(function (global, factory) { 32701 true ? factory(__webpack_require__(1)) : 32702 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 32703 factory(global.moment) 32704}(this, (function (moment) { 'use strict'; 32705 32706 32707 var arMa = moment.defineLocale('ar-ma', { 32708 months : 'ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_٠ارس_أبرÙÙ_٠اÙ_ÙÙÙÙÙ_ÙÙÙÙÙØ²_غشت_Ø´ØªÙØ¨Ø±_Ø£ÙØªÙبر_ÙÙÙØ¨Ø±_Ø¯Ø¬ÙØ¨Ø±'.split('_'), 32709 monthsShort : 'ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_٠ارس_أبرÙÙ_٠اÙ_ÙÙÙÙÙ_ÙÙÙÙÙØ²_غشت_Ø´ØªÙØ¨Ø±_Ø£ÙØªÙبر_ÙÙÙØ¨Ø±_Ø¯Ø¬ÙØ¨Ø±'.split('_'), 32710 weekdays : 'Ø§ÙØ£ØØ¯_Ø§ÙØ¥ØªÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù ÙØ³_Ø§ÙØ¬Ù عة_Ø§ÙØ³Ø¨Øª'.split('_'), 32711 weekdaysShort : 'Ø§ØØ¯_اتÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_اربعاء_Ø®Ù ÙØ³_ج٠عة_سبت'.split('_'), 32712 weekdaysMin : 'Ø_Ù_Ø«_ر_Ø®_ج_س'.split('_'), 32713 weekdaysParseExact : true, 32714 longDateFormat : { 32715 LT : 'HH:mm', 32716 LTS : 'HH:mm:ss', 32717 L : 'DD/MM/YYYY', 32718 LL : 'D MMMM YYYY', 32719 LLL : 'D MMMM YYYY HH:mm', 32720 LLLL : 'dddd D MMMM YYYY HH:mm' 32721 }, 32722 calendar : { 32723 sameDay: '[اÙÙÙ٠عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32724 nextDay: '[غدا عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32725 nextWeek: 'dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32726 lastDay: '[أ٠س عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32727 lastWeek: 'dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32728 sameElse: 'L' 32729 }, 32730 relativeTime : { 32731 future : 'ÙÙ %s', 32732 past : 'Ù ÙØ° %s', 32733 s : 'Ø«ÙØ§Ù', 32734 ss : '%d ثاÙÙØ©', 32735 m : 'دÙÙÙØ©', 32736 mm : '%d Ø¯ÙØ§Ø¦Ù', 32737 h : 'ساعة', 32738 hh : '%d ساعات', 32739 d : 'ÙÙÙ ', 32740 dd : '%d Ø£ÙØ§Ù ', 32741 M : 'Ø´ÙØ±', 32742 MM : '%d Ø£Ø´ÙØ±', 32743 y : 'Ø³ÙØ©', 32744 yy : '%d سÙÙØ§Øª' 32745 }, 32746 week : { 32747 dow : 6, // Saturday is the first day of the week. 32748 doy : 12 // The week that contains Jan 1st is the first week of the year. 32749 } 32750 }); 32751 32752 return arMa; 32753 32754}))); 32755 32756 32757/***/ }), 32758/* 225 */ 32759/***/ (function(module, exports, __webpack_require__) { 32760 32761//! moment.js locale configuration 32762 32763;(function (global, factory) { 32764 true ? factory(__webpack_require__(1)) : 32765 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 32766 factory(global.moment) 32767}(this, (function (moment) { 'use strict'; 32768 32769 32770 var symbolMap = { 32771 '1': 'Ù¡', 32772 '2': 'Ù¢', 32773 '3': 'Ù£', 32774 '4': 'Ù¤', 32775 '5': 'Ù¥', 32776 '6': 'Ù¦', 32777 '7': 'Ù§', 32778 '8': 'Ù¨', 32779 '9': 'Ù©', 32780 '0': 'Ù ' 32781 }, numberMap = { 32782 'Ù¡': '1', 32783 'Ù¢': '2', 32784 'Ù£': '3', 32785 'Ù¤': '4', 32786 'Ù¥': '5', 32787 'Ù¦': '6', 32788 'Ù§': '7', 32789 'Ù¨': '8', 32790 'Ù©': '9', 32791 'Ù ': '0' 32792 }; 32793 32794 var arSa = moment.defineLocale('ar-sa', { 32795 months : 'ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_٠ارس_أبرÙÙ_٠اÙÙ_ÙÙÙÙÙ_ÙÙÙÙÙ_أغسطس_سبت٠بر_Ø£ÙØªÙبر_ÙÙÙ٠بر_Ø¯ÙØ³Ù بر'.split('_'), 32796 monthsShort : 'ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_٠ارس_أبرÙÙ_٠اÙÙ_ÙÙÙÙÙ_ÙÙÙÙÙ_أغسطس_سبت٠بر_Ø£ÙØªÙبر_ÙÙÙ٠بر_Ø¯ÙØ³Ù بر'.split('_'), 32797 weekdays : 'Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù ÙØ³_Ø§ÙØ¬Ù عة_Ø§ÙØ³Ø¨Øª'.split('_'), 32798 weekdaysShort : 'Ø£ØØ¯_إثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_أربعاء_Ø®Ù ÙØ³_ج٠عة_سبت'.split('_'), 32799 weekdaysMin : 'Ø_Ù_Ø«_ر_Ø®_ج_س'.split('_'), 32800 weekdaysParseExact : true, 32801 longDateFormat : { 32802 LT : 'HH:mm', 32803 LTS : 'HH:mm:ss', 32804 L : 'DD/MM/YYYY', 32805 LL : 'D MMMM YYYY', 32806 LLL : 'D MMMM YYYY HH:mm', 32807 LLLL : 'dddd D MMMM YYYY HH:mm' 32808 }, 32809 meridiemParse: /ص|Ù /, 32810 isPM : function (input) { 32811 return 'Ù ' === input; 32812 }, 32813 meridiem : function (hour, minute, isLower) { 32814 if (hour < 12) { 32815 return 'ص'; 32816 } else { 32817 return 'Ù '; 32818 } 32819 }, 32820 calendar : { 32821 sameDay: '[اÙÙÙ٠عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32822 nextDay: '[غدا عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32823 nextWeek: 'dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32824 lastDay: '[أ٠س عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32825 lastWeek: 'dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32826 sameElse: 'L' 32827 }, 32828 relativeTime : { 32829 future : 'ÙÙ %s', 32830 past : 'Ù ÙØ° %s', 32831 s : 'Ø«ÙØ§Ù', 32832 ss : '%d ثاÙÙØ©', 32833 m : 'دÙÙÙØ©', 32834 mm : '%d Ø¯ÙØ§Ø¦Ù', 32835 h : 'ساعة', 32836 hh : '%d ساعات', 32837 d : 'ÙÙÙ ', 32838 dd : '%d Ø£ÙØ§Ù ', 32839 M : 'Ø´ÙØ±', 32840 MM : '%d Ø£Ø´ÙØ±', 32841 y : 'Ø³ÙØ©', 32842 yy : '%d سÙÙØ§Øª' 32843 }, 32844 preparse: function (string) { 32845 return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { 32846 return numberMap[match]; 32847 }).replace(/Ø/g, ','); 32848 }, 32849 postformat: function (string) { 32850 return string.replace(/\d/g, function (match) { 32851 return symbolMap[match]; 32852 }).replace(/,/g, 'Ø'); 32853 }, 32854 week : { 32855 dow : 0, // Sunday is the first day of the week. 32856 doy : 6 // The week that contains Jan 1st is the first week of the year. 32857 } 32858 }); 32859 32860 return arSa; 32861 32862}))); 32863 32864 32865/***/ }), 32866/* 226 */ 32867/***/ (function(module, exports, __webpack_require__) { 32868 32869//! moment.js locale configuration 32870 32871;(function (global, factory) { 32872 true ? factory(__webpack_require__(1)) : 32873 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 32874 factory(global.moment) 32875}(this, (function (moment) { 'use strict'; 32876 32877 32878 var arTn = moment.defineLocale('ar-tn', { 32879 months: 'جاÙÙÙ_ÙÙÙØ±Ù_٠ارس_Ø£ÙØ±ÙÙ_٠اÙ_Ø¬ÙØ§Ù_جÙÙÙÙØ©_Ø£ÙØª_سبت٠بر_Ø£ÙØªÙبر_ÙÙÙ٠بر_Ø¯ÙØ³Ù بر'.split('_'), 32880 monthsShort: 'جاÙÙÙ_ÙÙÙØ±Ù_٠ارس_Ø£ÙØ±ÙÙ_٠اÙ_Ø¬ÙØ§Ù_جÙÙÙÙØ©_Ø£ÙØª_سبت٠بر_Ø£ÙØªÙبر_ÙÙÙ٠بر_Ø¯ÙØ³Ù بر'.split('_'), 32881 weekdays: 'Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù ÙØ³_Ø§ÙØ¬Ù عة_Ø§ÙØ³Ø¨Øª'.split('_'), 32882 weekdaysShort: 'Ø£ØØ¯_إثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_أربعاء_Ø®Ù ÙØ³_ج٠عة_سبت'.split('_'), 32883 weekdaysMin: 'Ø_Ù_Ø«_ر_Ø®_ج_س'.split('_'), 32884 weekdaysParseExact : true, 32885 longDateFormat: { 32886 LT: 'HH:mm', 32887 LTS: 'HH:mm:ss', 32888 L: 'DD/MM/YYYY', 32889 LL: 'D MMMM YYYY', 32890 LLL: 'D MMMM YYYY HH:mm', 32891 LLLL: 'dddd D MMMM YYYY HH:mm' 32892 }, 32893 calendar: { 32894 sameDay: '[اÙÙÙ٠عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32895 nextDay: '[غدا عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32896 nextWeek: 'dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32897 lastDay: '[أ٠س عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32898 lastWeek: 'dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 32899 sameElse: 'L' 32900 }, 32901 relativeTime: { 32902 future: 'ÙÙ %s', 32903 past: 'Ù ÙØ° %s', 32904 s: 'Ø«ÙØ§Ù', 32905 ss : '%d ثاÙÙØ©', 32906 m: 'دÙÙÙØ©', 32907 mm: '%d Ø¯ÙØ§Ø¦Ù', 32908 h: 'ساعة', 32909 hh: '%d ساعات', 32910 d: 'ÙÙÙ ', 32911 dd: '%d Ø£ÙØ§Ù ', 32912 M: 'Ø´ÙØ±', 32913 MM: '%d Ø£Ø´ÙØ±', 32914 y: 'Ø³ÙØ©', 32915 yy: '%d سÙÙØ§Øª' 32916 }, 32917 week: { 32918 dow: 1, // Monday is the first day of the week. 32919 doy: 4 // The week that contains Jan 4th is the first week of the year. 32920 } 32921 }); 32922 32923 return arTn; 32924 32925}))); 32926 32927 32928/***/ }), 32929/* 227 */ 32930/***/ (function(module, exports, __webpack_require__) { 32931 32932//! moment.js locale configuration 32933 32934;(function (global, factory) { 32935 true ? factory(__webpack_require__(1)) : 32936 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 32937 factory(global.moment) 32938}(this, (function (moment) { 'use strict'; 32939 32940 32941 var suffixes = { 32942 1: '-inci', 32943 5: '-inci', 32944 8: '-inci', 32945 70: '-inci', 32946 80: '-inci', 32947 2: '-nci', 32948 7: '-nci', 32949 20: '-nci', 32950 50: '-nci', 32951 3: '-üncü', 32952 4: '-üncü', 32953 100: '-üncü', 32954 6: '-ncı', 32955 9: '-uncu', 32956 10: '-uncu', 32957 30: '-uncu', 32958 60: '-ıncı', 32959 90: '-ıncı' 32960 }; 32961 32962 var az = moment.defineLocale('az', { 32963 months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'), 32964 monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'), 32965 weekdays : 'Bazar_Bazar ertÉsi_ÃÉrÅÉnbÉ axÅamı_ÃÉrÅÉnbÉ_CümÉ axÅamı_CümÉ_ÅÉnbÉ'.split('_'), 32966 weekdaysShort : 'Baz_BzE_ÃAx_ÃÉr_CAx_Cüm_ÅÉn'.split('_'), 32967 weekdaysMin : 'Bz_BE_ÃA_ÃÉ_CA_Cü_ÅÉ'.split('_'), 32968 weekdaysParseExact : true, 32969 longDateFormat : { 32970 LT : 'HH:mm', 32971 LTS : 'HH:mm:ss', 32972 L : 'DD.MM.YYYY', 32973 LL : 'D MMMM YYYY', 32974 LLL : 'D MMMM YYYY HH:mm', 32975 LLLL : 'dddd, D MMMM YYYY HH:mm' 32976 }, 32977 calendar : { 32978 sameDay : '[bugün saat] LT', 32979 nextDay : '[sabah saat] LT', 32980 nextWeek : '[gÉlÉn hÉftÉ] dddd [saat] LT', 32981 lastDay : '[dünÉn] LT', 32982 lastWeek : '[keçÉn hÉftÉ] dddd [saat] LT', 32983 sameElse : 'L' 32984 }, 32985 relativeTime : { 32986 future : '%s sonra', 32987 past : '%s ÉvvÉl', 32988 s : 'birneÃ§É saniyÉ', 32989 ss : '%d saniyÉ', 32990 m : 'bir dÉqiqÉ', 32991 mm : '%d dÉqiqÉ', 32992 h : 'bir saat', 32993 hh : '%d saat', 32994 d : 'bir gün', 32995 dd : '%d gün', 32996 M : 'bir ay', 32997 MM : '%d ay', 32998 y : 'bir il', 32999 yy : '%d il' 33000 }, 33001 meridiemParse: /gecÉ|sÉhÉr|gündüz|axÅam/, 33002 isPM : function (input) { 33003 return /^(gündüz|axÅam)$/.test(input); 33004 }, 33005 meridiem : function (hour, minute, isLower) { 33006 if (hour < 4) { 33007 return 'gecÉ'; 33008 } else if (hour < 12) { 33009 return 'sÉhÉr'; 33010 } else if (hour < 17) { 33011 return 'gündüz'; 33012 } else { 33013 return 'axÅam'; 33014 } 33015 }, 33016 dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/, 33017 ordinal : function (number) { 33018 if (number === 0) { // special case for zero 33019 return number + '-ıncı'; 33020 } 33021 var a = number % 10, 33022 b = number % 100 - a, 33023 c = number >= 100 ? 100 : null; 33024 return number + (suffixes[a] || suffixes[b] || suffixes[c]); 33025 }, 33026 week : { 33027 dow : 1, // Monday is the first day of the week. 33028 doy : 7 // The week that contains Jan 1st is the first week of the year. 33029 } 33030 }); 33031 33032 return az; 33033 33034}))); 33035 33036 33037/***/ }), 33038/* 228 */ 33039/***/ (function(module, exports, __webpack_require__) { 33040 33041//! moment.js locale configuration 33042 33043;(function (global, factory) { 33044 true ? factory(__webpack_require__(1)) : 33045 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 33046 factory(global.moment) 33047}(this, (function (moment) { 'use strict'; 33048 33049 33050 function plural(word, num) { 33051 var forms = word.split('_'); 33052 return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); 33053 } 33054 function relativeTimeWithPlural(number, withoutSuffix, key) { 33055 var format = { 33056 'ss': withoutSuffix ? 'ÑекÑнда_ÑекÑндÑ_ÑекÑнд' : 'ÑекÑндÑ_ÑекÑндÑ_ÑекÑнд', 33057 'mm': withoutSuffix ? 'Ñ Ð²ÑлÑна_Ñ Ð²ÑлÑнÑ_Ñ Ð²ÑлÑн' : 'Ñ Ð²ÑлÑнÑ_Ñ Ð²ÑлÑнÑ_Ñ Ð²ÑлÑн', 33058 'hh': withoutSuffix ? 'гадзÑна_гадзÑнÑ_гадзÑн' : 'гадзÑнÑ_гадзÑнÑ_гадзÑн', 33059 'dd': 'дзенÑ_днÑ_дзÑн', 33060 'MM': 'меÑÑÑ_меÑÑÑÑ_меÑÑÑаÑ', 33061 'yy': 'год_гадÑ_гадоÑ' 33062 }; 33063 if (key === 'm') { 33064 return withoutSuffix ? 'Ñ Ð²ÑлÑна' : 'Ñ Ð²ÑлÑнÑ'; 33065 } 33066 else if (key === 'h') { 33067 return withoutSuffix ? 'гадзÑна' : 'гадзÑнÑ'; 33068 } 33069 else { 33070 return number + ' ' + plural(format[key], +number); 33071 } 33072 } 33073 33074 var be = moment.defineLocale('be', { 33075 months : { 33076 format: 'ÑÑÑдзенÑ_лÑÑага_ÑакавÑка_кÑаÑавÑка_ÑÑаÑнÑ_ÑÑÑвенÑ_лÑпенÑ_жнÑÑнÑ_веÑаÑнÑ_каÑÑÑÑÑнÑка_лÑÑÑапада_ÑнежнÑ'.split('_'), 33077 standalone: 'ÑÑÑдзенÑ_лÑÑÑ_ÑакавÑк_кÑаÑавÑк_ÑÑавенÑ_ÑÑÑвенÑ_лÑпенÑ_жнÑвенÑ_веÑаÑенÑ_каÑÑÑÑÑнÑк_лÑÑÑапад_ÑнежанÑ'.split('_') 33078 }, 33079 monthsShort : 'ÑÑÑд_лÑÑ_Ñак_кÑаÑ_ÑÑав_ÑÑÑв_лÑп_жнÑв_веÑ_каÑÑ_лÑÑÑ_Ñнеж'.split('_'), 33080 weekdays : { 33081 format: 'нÑдзелÑ_панÑдзелак_аÑÑоÑак_ÑеÑадÑ_ÑаÑвеÑ_пÑÑнÑÑÑ_ÑÑбоÑÑ'.split('_'), 33082 standalone: 'нÑдзелÑ_панÑдзелак_аÑÑоÑак_ÑеÑада_ÑаÑвеÑ_пÑÑнÑÑа_ÑÑбоÑа'.split('_'), 33083 isFormat: /\[ ?[УÑÑ] ?(?:мÑнÑлÑÑ|наÑÑÑпнÑÑ)? ?\] ?dddd/ 33084 }, 33085 weekdaysShort : 'нд_пн_аÑ_ÑÑ_ÑÑ_пÑ_Ñб'.split('_'), 33086 weekdaysMin : 'нд_пн_аÑ_ÑÑ_ÑÑ_пÑ_Ñб'.split('_'), 33087 longDateFormat : { 33088 LT : 'HH:mm', 33089 LTS : 'HH:mm:ss', 33090 L : 'DD.MM.YYYY', 33091 LL : 'D MMMM YYYY г.', 33092 LLL : 'D MMMM YYYY г., HH:mm', 33093 LLLL : 'dddd, D MMMM YYYY г., HH:mm' 33094 }, 33095 calendar : { 33096 sameDay: '[СÑÐ½Ð½Ñ Ñ] LT', 33097 nextDay: '[ÐаÑÑÑа Ñ] LT', 33098 lastDay: '[УÑоÑа Ñ] LT', 33099 nextWeek: function () { 33100 return '[У] dddd [Ñ] LT'; 33101 }, 33102 lastWeek: function () { 33103 switch (this.day()) { 33104 case 0: 33105 case 3: 33106 case 5: 33107 case 6: 33108 return '[У мÑнÑлÑÑ] dddd [Ñ] LT'; 33109 case 1: 33110 case 2: 33111 case 4: 33112 return '[У мÑнÑлÑ] dddd [Ñ] LT'; 33113 } 33114 }, 33115 sameElse: 'L' 33116 }, 33117 relativeTime : { 33118 future : 'пÑаз %s', 33119 past : '%s ÑамÑ', 33120 s : 'некалÑÐºÑ ÑекÑнд', 33121 m : relativeTimeWithPlural, 33122 mm : relativeTimeWithPlural, 33123 h : relativeTimeWithPlural, 33124 hh : relativeTimeWithPlural, 33125 d : 'дзенÑ', 33126 dd : relativeTimeWithPlural, 33127 M : 'меÑÑÑ', 33128 MM : relativeTimeWithPlural, 33129 y : 'год', 33130 yy : relativeTimeWithPlural 33131 }, 33132 meridiemParse: /ноÑÑ|ÑанÑÑÑ|днÑ|веÑаÑа/, 33133 isPM : function (input) { 33134 return /^(днÑ|веÑаÑа)$/.test(input); 33135 }, 33136 meridiem : function (hour, minute, isLower) { 33137 if (hour < 4) { 33138 return 'ноÑÑ'; 33139 } else if (hour < 12) { 33140 return 'ÑанÑÑÑ'; 33141 } else if (hour < 17) { 33142 return 'днÑ'; 33143 } else { 33144 return 'веÑаÑа'; 33145 } 33146 }, 33147 dayOfMonthOrdinalParse: /\d{1,2}-(Ñ|Ñ|га)/, 33148 ordinal: function (number, period) { 33149 switch (period) { 33150 case 'M': 33151 case 'd': 33152 case 'DDD': 33153 case 'w': 33154 case 'W': 33155 return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-Ñ' : number + '-Ñ'; 33156 case 'D': 33157 return number + '-га'; 33158 default: 33159 return number; 33160 } 33161 }, 33162 week : { 33163 dow : 1, // Monday is the first day of the week. 33164 doy : 7 // The week that contains Jan 1st is the first week of the year. 33165 } 33166 }); 33167 33168 return be; 33169 33170}))); 33171 33172 33173/***/ }), 33174/* 229 */ 33175/***/ (function(module, exports, __webpack_require__) { 33176 33177//! moment.js locale configuration 33178 33179;(function (global, factory) { 33180 true ? factory(__webpack_require__(1)) : 33181 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 33182 factory(global.moment) 33183}(this, (function (moment) { 'use strict'; 33184 33185 33186 var bg = moment.defineLocale('bg', { 33187 months : 'ÑнÑаÑи_ÑевÑÑаÑи_маÑÑ_апÑил_май_Ñни_Ñли_авгÑÑÑ_ÑепÑемвÑи_окÑомвÑи_ноемвÑи_декемвÑи'.split('_'), 33188 monthsShort : 'ÑнÑ_Ñев_маÑ_апÑ_май_Ñни_Ñли_авг_Ñеп_окÑ_ное_дек'.split('_'), 33189 weekdays : 'неделÑ_понеделник_вÑоÑник_ÑÑÑда_ÑеÑвÑÑÑÑк_пеÑÑк_ÑÑбоÑа'.split('_'), 33190 weekdaysShort : 'нед_пон_вÑо_ÑÑÑ_ÑеÑ_пеÑ_ÑÑб'.split('_'), 33191 weekdaysMin : 'нд_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб'.split('_'), 33192 longDateFormat : { 33193 LT : 'H:mm', 33194 LTS : 'H:mm:ss', 33195 L : 'D.MM.YYYY', 33196 LL : 'D MMMM YYYY', 33197 LLL : 'D MMMM YYYY H:mm', 33198 LLLL : 'dddd, D MMMM YYYY H:mm' 33199 }, 33200 calendar : { 33201 sameDay : '[ÐÐ½ÐµÑ Ð²] LT', 33202 nextDay : '[УÑÑе в] LT', 33203 nextWeek : 'dddd [в] LT', 33204 lastDay : '[ÐÑеÑа в] LT', 33205 lastWeek : function () { 33206 switch (this.day()) { 33207 case 0: 33208 case 3: 33209 case 6: 33210 return '[РизминалаÑа] dddd [в] LT'; 33211 case 1: 33212 case 2: 33213 case 4: 33214 case 5: 33215 return '[РизминалиÑ] dddd [в] LT'; 33216 } 33217 }, 33218 sameElse : 'L' 33219 }, 33220 relativeTime : { 33221 future : 'Ñлед %s', 33222 past : 'пÑеди %s', 33223 s : 'нÑколко ÑекÑнди', 33224 ss : '%d ÑекÑнди', 33225 m : 'минÑÑа', 33226 mm : '%d минÑÑи', 33227 h : 'ÑаÑ', 33228 hh : '%d ÑаÑа', 33229 d : 'ден', 33230 dd : '%d дни', 33231 M : 'меÑеÑ', 33232 MM : '%d меÑеÑа', 33233 y : 'година', 33234 yy : '%d години' 33235 }, 33236 dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|Ñи|ви|Ñи|ми)/, 33237 ordinal : function (number) { 33238 var lastDigit = number % 10, 33239 last2Digits = number % 100; 33240 if (number === 0) { 33241 return number + '-ев'; 33242 } else if (last2Digits === 0) { 33243 return number + '-ен'; 33244 } else if (last2Digits > 10 && last2Digits < 20) { 33245 return number + '-Ñи'; 33246 } else if (lastDigit === 1) { 33247 return number + '-ви'; 33248 } else if (lastDigit === 2) { 33249 return number + '-Ñи'; 33250 } else if (lastDigit === 7 || lastDigit === 8) { 33251 return number + '-ми'; 33252 } else { 33253 return number + '-Ñи'; 33254 } 33255 }, 33256 week : { 33257 dow : 1, // Monday is the first day of the week. 33258 doy : 7 // The week that contains Jan 1st is the first week of the year. 33259 } 33260 }); 33261 33262 return bg; 33263 33264}))); 33265 33266 33267/***/ }), 33268/* 230 */ 33269/***/ (function(module, exports, __webpack_require__) { 33270 33271//! moment.js locale configuration 33272 33273;(function (global, factory) { 33274 true ? factory(__webpack_require__(1)) : 33275 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 33276 factory(global.moment) 33277}(this, (function (moment) { 'use strict'; 33278 33279 33280 var bm = moment.defineLocale('bm', { 33281 months : 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_MÉkalo_ZuwÉnkalo_Zuluyekalo_Utikalo_SÉtanburukalo_ÉkutÉburukalo_Nowanburukalo_Desanburukalo'.split('_'), 33282 monthsShort : 'Zan_Few_Mar_Awi_MÉ_Zuw_Zul_Uti_SÉt_Éku_Now_Des'.split('_'), 33283 weekdays : 'Kari_NtÉnÉn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'), 33284 weekdaysShort : 'Kar_NtÉ_Tar_Ara_Ala_Jum_Sib'.split('_'), 33285 weekdaysMin : 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'), 33286 longDateFormat : { 33287 LT : 'HH:mm', 33288 LTS : 'HH:mm:ss', 33289 L : 'DD/MM/YYYY', 33290 LL : 'MMMM [tile] D [san] YYYY', 33291 LLL : 'MMMM [tile] D [san] YYYY [lÉrÉ] HH:mm', 33292 LLLL : 'dddd MMMM [tile] D [san] YYYY [lÉrÉ] HH:mm' 33293 }, 33294 calendar : { 33295 sameDay : '[Bi lÉrÉ] LT', 33296 nextDay : '[Sini lÉrÉ] LT', 33297 nextWeek : 'dddd [don lÉrÉ] LT', 33298 lastDay : '[Kunu lÉrÉ] LT', 33299 lastWeek : 'dddd [tÉmÉnen lÉrÉ] LT', 33300 sameElse : 'L' 33301 }, 33302 relativeTime : { 33303 future : '%s kÉnÉ', 33304 past : 'a bÉ %s bÉ', 33305 s : 'sanga dama dama', 33306 ss : 'sekondi %d', 33307 m : 'miniti kelen', 33308 mm : 'miniti %d', 33309 h : 'lÉrÉ kelen', 33310 hh : 'lÉrÉ %d', 33311 d : 'tile kelen', 33312 dd : 'tile %d', 33313 M : 'kalo kelen', 33314 MM : 'kalo %d', 33315 y : 'san kelen', 33316 yy : 'san %d' 33317 }, 33318 week : { 33319 dow : 1, // Monday is the first day of the week. 33320 doy : 4 // The week that contains Jan 4th is the first week of the year. 33321 } 33322 }); 33323 33324 return bm; 33325 33326}))); 33327 33328 33329/***/ }), 33330/* 231 */ 33331/***/ (function(module, exports, __webpack_require__) { 33332 33333//! moment.js locale configuration 33334 33335;(function (global, factory) { 33336 true ? factory(__webpack_require__(1)) : 33337 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 33338 factory(global.moment) 33339}(this, (function (moment) { 'use strict'; 33340 33341 33342 var symbolMap = { 33343 '1': 'à§§', 33344 '2': '২', 33345 '3': 'à§©', 33346 '4': '৪', 33347 '5': 'à§«', 33348 '6': '৬', 33349 '7': 'à§', 33350 '8': 'à§®', 33351 '9': '৯', 33352 '0': '০' 33353 }, 33354 numberMap = { 33355 'à§§': '1', 33356 '২': '2', 33357 'à§©': '3', 33358 '৪': '4', 33359 'à§«': '5', 33360 '৬': '6', 33361 'à§': '7', 33362 'à§®': '8', 33363 '৯': '9', 33364 '০': '0' 33365 }; 33366 33367 var bn = moment.defineLocale('bn', { 33368 months : 'à¦à¦¾à¦¨à§à§à¦¾à¦°à§_ফà§à¦¬à§à¦°à§à§à¦¾à¦°à¦¿_মারà§à¦_à¦à¦ªà§à¦°à¦¿à¦²_মà§_à¦à§à¦¨_à¦à§à¦²à¦¾à¦_à¦à¦à¦¸à§à¦_সà§à¦ªà§à¦à§à¦®à§à¦¬à¦°_ঠà¦à§à¦à§à¦¬à¦°_নà¦à§à¦®à§à¦¬à¦°_ডিসà§à¦®à§à¦¬à¦°'.split('_'), 33369 monthsShort : 'à¦à¦¾à¦¨à§_ফà§à¦¬_মারà§à¦_à¦à¦ªà§à¦°_মà§_à¦à§à¦¨_à¦à§à¦²_à¦à¦_সà§à¦ªà§à¦_ঠà¦à§à¦à§_নà¦à§_ডিসà§'.split('_'), 33370 weekdays : 'রবিবার_সà§à¦®à¦¬à¦¾à¦°_মà¦à§à¦à¦²à¦¬à¦¾à¦°_বà§à¦§à¦¬à¦¾à¦°_বà§à¦¹à¦¸à§à¦ªà¦¤à¦¿à¦¬à¦¾à¦°_শà§à¦à§à¦°à¦¬à¦¾à¦°_শনিবার'.split('_'), 33371 weekdaysShort : 'রবি_সà§à¦®_মà¦à§à¦à¦²_বà§à¦§_বà§à¦¹à¦¸à§à¦ªà¦¤à¦¿_শà§à¦à§à¦°_শনি'.split('_'), 33372 weekdaysMin : 'রবি_সà§à¦®_মà¦à§à¦_বà§à¦§_বà§à¦¹à¦_শà§à¦à§à¦°_শনি'.split('_'), 33373 longDateFormat : { 33374 LT : 'A h:mm সমà§', 33375 LTS : 'A h:mm:ss সমà§', 33376 L : 'DD/MM/YYYY', 33377 LL : 'D MMMM YYYY', 33378 LLL : 'D MMMM YYYY, A h:mm সমà§', 33379 LLLL : 'dddd, D MMMM YYYY, A h:mm সমà§' 33380 }, 33381 calendar : { 33382 sameDay : '[à¦à¦] LT', 33383 nextDay : '[à¦à¦à¦¾à¦®à§à¦à¦¾à¦²] LT', 33384 nextWeek : 'dddd, LT', 33385 lastDay : '[à¦à¦¤à¦à¦¾à¦²] LT', 33386 lastWeek : '[à¦à¦¤] dddd, LT', 33387 sameElse : 'L' 33388 }, 33389 relativeTime : { 33390 future : '%s পরà§', 33391 past : '%s à¦à¦à§', 33392 s : 'à¦à§à§à¦ সà§à¦à§à¦¨à§à¦¡', 33393 ss : '%d সà§à¦à§à¦¨à§à¦¡', 33394 m : 'à¦à¦ মিনিà¦', 33395 mm : '%d মিনিà¦', 33396 h : 'à¦à¦ à¦à¦¨à§à¦à¦¾', 33397 hh : '%d à¦à¦¨à§à¦à¦¾', 33398 d : 'à¦à¦ দিন', 33399 dd : '%d দিন', 33400 M : 'à¦à¦ মাস', 33401 MM : '%d মাস', 33402 y : 'à¦à¦ বà¦à¦°', 33403 yy : '%d বà¦à¦°' 33404 }, 33405 preparse: function (string) { 33406 return string.replace(/[১২৩৪৫৬à§à§®à§¯à§¦]/g, function (match) { 33407 return numberMap[match]; 33408 }); 33409 }, 33410 postformat: function (string) { 33411 return string.replace(/\d/g, function (match) { 33412 return symbolMap[match]; 33413 }); 33414 }, 33415 meridiemParse: /রাত|সà¦à¦¾à¦²|দà§à¦ªà§à¦°|বিà¦à¦¾à¦²|রাত/, 33416 meridiemHour : function (hour, meridiem) { 33417 if (hour === 12) { 33418 hour = 0; 33419 } 33420 if ((meridiem === 'রাত' && hour >= 4) || 33421 (meridiem === 'দà§à¦ªà§à¦°' && hour < 5) || 33422 meridiem === 'বিà¦à¦¾à¦²') { 33423 return hour + 12; 33424 } else { 33425 return hour; 33426 } 33427 }, 33428 meridiem : function (hour, minute, isLower) { 33429 if (hour < 4) { 33430 return 'রাত'; 33431 } else if (hour < 10) { 33432 return 'সà¦à¦¾à¦²'; 33433 } else if (hour < 17) { 33434 return 'দà§à¦ªà§à¦°'; 33435 } else if (hour < 20) { 33436 return 'বিà¦à¦¾à¦²'; 33437 } else { 33438 return 'রাত'; 33439 } 33440 }, 33441 week : { 33442 dow : 0, // Sunday is the first day of the week. 33443 doy : 6 // The week that contains Jan 1st is the first week of the year. 33444 } 33445 }); 33446 33447 return bn; 33448 33449}))); 33450 33451 33452/***/ }), 33453/* 232 */ 33454/***/ (function(module, exports, __webpack_require__) { 33455 33456//! moment.js locale configuration 33457 33458;(function (global, factory) { 33459 true ? factory(__webpack_require__(1)) : 33460 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 33461 factory(global.moment) 33462}(this, (function (moment) { 'use strict'; 33463 33464 33465 var symbolMap = { 33466 '1': '༡', 33467 '2': '༢', 33468 '3': '༣', 33469 '4': '༤', 33470 '5': '༥', 33471 '6': '༦', 33472 '7': '༧', 33473 '8': '༨', 33474 '9': '༩', 33475 '0': '༠' 33476 }, 33477 numberMap = { 33478 '༡': '1', 33479 '༢': '2', 33480 '༣': '3', 33481 '༤': '4', 33482 '༥': '5', 33483 '༦': '6', 33484 '༧': '7', 33485 '༨': '8', 33486 '༩': '9', 33487 '༠': '0' 33488 }; 33489 33490 var bo = moment.defineLocale('bo', { 33491 months : 'à½à¾³à¼à½à¼à½à½à¼à½à½¼_à½à¾³à¼à½à¼à½à½à½²à½¦à¼à½_à½à¾³à¼à½à¼à½à½¦à½´à½à¼à½_à½à¾³à¼à½à¼à½à½à½²à¼à½_à½à¾³à¼à½à¼à½£à¾à¼à½_à½à¾³à¼à½à¼à½à¾²à½´à½à¼à½_à½à¾³à¼à½à¼à½à½à½´à½à¼à½_à½à¾³à¼à½à¼à½à½¢à¾à¾±à½à¼à½_à½à¾³à¼à½à¼à½à½à½´à¼à½_à½à¾³à¼à½à¼à½à½ ུà¼à½_à½à¾³à¼à½à¼à½à½ ུà¼à½à½ ིà½à¼à½_à½à¾³à¼à½à¼à½à½ ུà¼à½à½à½²à½¦à¼à½'.split('_'), 33492 monthsShort : 'à½à¾³à¼à½à¼à½à½à¼à½à½¼_à½à¾³à¼à½à¼à½à½à½²à½¦à¼à½_à½à¾³à¼à½à¼à½à½¦à½´à½à¼à½_à½à¾³à¼à½à¼à½à½à½²à¼à½_à½à¾³à¼à½à¼à½£à¾à¼à½_à½à¾³à¼à½à¼à½à¾²à½´à½à¼à½_à½à¾³à¼à½à¼à½à½à½´à½à¼à½_à½à¾³à¼à½à¼à½à½¢à¾à¾±à½à¼à½_à½à¾³à¼à½à¼à½à½à½´à¼à½_à½à¾³à¼à½à¼à½à½ ུà¼à½_à½à¾³à¼à½à¼à½à½ ུà¼à½à½ ིà½à¼à½_à½à¾³à¼à½à¼à½à½ ུà¼à½à½à½²à½¦à¼à½'.split('_'), 33493 weekdays : 'à½à½à½ à¼à½à½²à¼à½à¼_à½à½à½ à¼à½à¾³à¼à½à¼_à½à½à½ à¼à½à½²à½à¼à½à½à½¢à¼_à½à½à½ à¼à½£à¾·à½à¼à½à¼_à½à½à½ à¼à½à½´à½¢à¼à½à½´_à½à½à½ à¼à½à¼à½¦à½à½¦à¼_à½à½à½ à¼à½¦à¾¤à½ºà½à¼à½à¼'.split('_'), 33494 weekdaysShort : 'à½à½²à¼à½à¼_à½à¾³à¼à½à¼_à½à½²à½à¼à½à½à½¢à¼_ལྷà½à¼à½à¼_à½à½´à½¢à¼à½à½´_à½à¼à½¦à½à½¦à¼_སྤེà½à¼à½à¼'.split('_'), 33495 weekdaysMin : 'à½à½²à¼à½à¼_à½à¾³à¼à½à¼_à½à½²à½à¼à½à½à½¢à¼_ལྷà½à¼à½à¼_à½à½´à½¢à¼à½à½´_à½à¼à½¦à½à½¦à¼_སྤེà½à¼à½à¼'.split('_'), 33496 longDateFormat : { 33497 LT : 'A h:mm', 33498 LTS : 'A h:mm:ss', 33499 L : 'DD/MM/YYYY', 33500 LL : 'D MMMM YYYY', 33501 LLL : 'D MMMM YYYY, A h:mm', 33502 LLLL : 'dddd, D MMMM YYYY, A h:mm' 33503 }, 33504 calendar : { 33505 sameDay : '[à½à½²à¼à½¢à½²à½] LT', 33506 nextDay : '[སà½à¼à½à½²à½] LT', 33507 nextWeek : '[à½à½à½´à½à¼à½à¾²à½à¼à½¢à¾à½ºà½¦à¼à½], LT', 33508 lastDay : '[à½à¼à½¦à½] LT', 33509 lastWeek : '[à½à½à½´à½à¼à½à¾²à½à¼à½à½à½ à¼à½] dddd, LT', 33510 sameElse : 'L' 33511 }, 33512 relativeTime : { 33513 future : '%s ལà¼', 33514 past : '%s སà¾à½à¼à½£', 33515 s : 'ལà½à¼à½¦à½', 33516 ss : '%d སà¾à½¢à¼à½à¼', 33517 m : 'སà¾à½¢à¼à½à¼à½à½ ིà½', 33518 mm : '%d སà¾à½¢à¼à½', 33519 h : 'à½à½´à¼à½à½¼à½à¼à½à½ ིà½', 33520 hh : '%d à½à½´à¼à½à½¼à½', 33521 d : 'à½à½²à½à¼à½à½ ིà½', 33522 dd : '%d à½à½²à½à¼', 33523 M : 'à½à¾³à¼à½à¼à½à½ ིà½', 33524 MM : '%d à½à¾³à¼à½', 33525 y : 'ལོà¼à½à½ ིà½', 33526 yy : '%d ལོ' 33527 }, 33528 preparse: function (string) { 33529 return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) { 33530 return numberMap[match]; 33531 }); 33532 }, 33533 postformat: function (string) { 33534 return string.replace(/\d/g, function (match) { 33535 return symbolMap[match]; 33536 }); 33537 }, 33538 meridiemParse: /à½à½à½à¼à½à½¼|à½à½¼à½à½¦à¼à½à½¦|à½à½²à½à¼à½à½´à½|à½à½à½¼à½à¼à½à½|à½à½à½à¼à½à½¼/, 33539 meridiemHour : function (hour, meridiem) { 33540 if (hour === 12) { 33541 hour = 0; 33542 } 33543 if ((meridiem === 'à½à½à½à¼à½à½¼' && hour >= 4) || 33544 (meridiem === 'à½à½²à½à¼à½à½´à½' && hour < 5) || 33545 meridiem === 'à½à½à½¼à½à¼à½à½') { 33546 return hour + 12; 33547 } else { 33548 return hour; 33549 } 33550 }, 33551 meridiem : function (hour, minute, isLower) { 33552 if (hour < 4) { 33553 return 'à½à½à½à¼à½à½¼'; 33554 } else if (hour < 10) { 33555 return 'à½à½¼à½à½¦à¼à½à½¦'; 33556 } else if (hour < 17) { 33557 return 'à½à½²à½à¼à½à½´à½'; 33558 } else if (hour < 20) { 33559 return 'à½à½à½¼à½à¼à½à½'; 33560 } else { 33561 return 'à½à½à½à¼à½à½¼'; 33562 } 33563 }, 33564 week : { 33565 dow : 0, // Sunday is the first day of the week. 33566 doy : 6 // The week that contains Jan 1st is the first week of the year. 33567 } 33568 }); 33569 33570 return bo; 33571 33572}))); 33573 33574 33575/***/ }), 33576/* 233 */ 33577/***/ (function(module, exports, __webpack_require__) { 33578 33579//! moment.js locale configuration 33580 33581;(function (global, factory) { 33582 true ? factory(__webpack_require__(1)) : 33583 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 33584 factory(global.moment) 33585}(this, (function (moment) { 'use strict'; 33586 33587 33588 function relativeTimeWithMutation(number, withoutSuffix, key) { 33589 var format = { 33590 'mm': 'munutenn', 33591 'MM': 'miz', 33592 'dd': 'devezh' 33593 }; 33594 return number + ' ' + mutation(format[key], number); 33595 } 33596 function specialMutationForYears(number) { 33597 switch (lastNumber(number)) { 33598 case 1: 33599 case 3: 33600 case 4: 33601 case 5: 33602 case 9: 33603 return number + ' bloaz'; 33604 default: 33605 return number + ' vloaz'; 33606 } 33607 } 33608 function lastNumber(number) { 33609 if (number > 9) { 33610 return lastNumber(number % 10); 33611 } 33612 return number; 33613 } 33614 function mutation(text, number) { 33615 if (number === 2) { 33616 return softMutation(text); 33617 } 33618 return text; 33619 } 33620 function softMutation(text) { 33621 var mutationTable = { 33622 'm': 'v', 33623 'b': 'v', 33624 'd': 'z' 33625 }; 33626 if (mutationTable[text.charAt(0)] === undefined) { 33627 return text; 33628 } 33629 return mutationTable[text.charAt(0)] + text.substring(1); 33630 } 33631 33632 var br = moment.defineLocale('br', { 33633 months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'), 33634 monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'), 33635 weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'), 33636 weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'), 33637 weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'), 33638 weekdaysParseExact : true, 33639 longDateFormat : { 33640 LT : 'h[e]mm A', 33641 LTS : 'h[e]mm:ss A', 33642 L : 'DD/MM/YYYY', 33643 LL : 'D [a viz] MMMM YYYY', 33644 LLL : 'D [a viz] MMMM YYYY h[e]mm A', 33645 LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A' 33646 }, 33647 calendar : { 33648 sameDay : '[Hiziv da] LT', 33649 nextDay : '[Warc\'hoazh da] LT', 33650 nextWeek : 'dddd [da] LT', 33651 lastDay : '[Dec\'h da] LT', 33652 lastWeek : 'dddd [paset da] LT', 33653 sameElse : 'L' 33654 }, 33655 relativeTime : { 33656 future : 'a-benn %s', 33657 past : '%s \'zo', 33658 s : 'un nebeud segondennoù', 33659 ss : '%d eilenn', 33660 m : 'ur vunutenn', 33661 mm : relativeTimeWithMutation, 33662 h : 'un eur', 33663 hh : '%d eur', 33664 d : 'un devezh', 33665 dd : relativeTimeWithMutation, 33666 M : 'ur miz', 33667 MM : relativeTimeWithMutation, 33668 y : 'ur bloaz', 33669 yy : specialMutationForYears 33670 }, 33671 dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/, 33672 ordinal : function (number) { 33673 var output = (number === 1) ? 'añ' : 'vet'; 33674 return number + output; 33675 }, 33676 week : { 33677 dow : 1, // Monday is the first day of the week. 33678 doy : 4 // The week that contains Jan 4th is the first week of the year. 33679 } 33680 }); 33681 33682 return br; 33683 33684}))); 33685 33686 33687/***/ }), 33688/* 234 */ 33689/***/ (function(module, exports, __webpack_require__) { 33690 33691//! moment.js locale configuration 33692 33693;(function (global, factory) { 33694 true ? factory(__webpack_require__(1)) : 33695 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 33696 factory(global.moment) 33697}(this, (function (moment) { 'use strict'; 33698 33699 33700 function translate(number, withoutSuffix, key) { 33701 var result = number + ' '; 33702 switch (key) { 33703 case 'ss': 33704 if (number === 1) { 33705 result += 'sekunda'; 33706 } else if (number === 2 || number === 3 || number === 4) { 33707 result += 'sekunde'; 33708 } else { 33709 result += 'sekundi'; 33710 } 33711 return result; 33712 case 'm': 33713 return withoutSuffix ? 'jedna minuta' : 'jedne minute'; 33714 case 'mm': 33715 if (number === 1) { 33716 result += 'minuta'; 33717 } else if (number === 2 || number === 3 || number === 4) { 33718 result += 'minute'; 33719 } else { 33720 result += 'minuta'; 33721 } 33722 return result; 33723 case 'h': 33724 return withoutSuffix ? 'jedan sat' : 'jednog sata'; 33725 case 'hh': 33726 if (number === 1) { 33727 result += 'sat'; 33728 } else if (number === 2 || number === 3 || number === 4) { 33729 result += 'sata'; 33730 } else { 33731 result += 'sati'; 33732 } 33733 return result; 33734 case 'dd': 33735 if (number === 1) { 33736 result += 'dan'; 33737 } else { 33738 result += 'dana'; 33739 } 33740 return result; 33741 case 'MM': 33742 if (number === 1) { 33743 result += 'mjesec'; 33744 } else if (number === 2 || number === 3 || number === 4) { 33745 result += 'mjeseca'; 33746 } else { 33747 result += 'mjeseci'; 33748 } 33749 return result; 33750 case 'yy': 33751 if (number === 1) { 33752 result += 'godina'; 33753 } else if (number === 2 || number === 3 || number === 4) { 33754 result += 'godine'; 33755 } else { 33756 result += 'godina'; 33757 } 33758 return result; 33759 } 33760 } 33761 33762 var bs = moment.defineLocale('bs', { 33763 months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'), 33764 monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'), 33765 monthsParseExact: true, 33766 weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_Äetvrtak_petak_subota'.split('_'), 33767 weekdaysShort : 'ned._pon._uto._sri._Äet._pet._sub.'.split('_'), 33768 weekdaysMin : 'ne_po_ut_sr_Äe_pe_su'.split('_'), 33769 weekdaysParseExact : true, 33770 longDateFormat : { 33771 LT : 'H:mm', 33772 LTS : 'H:mm:ss', 33773 L : 'DD.MM.YYYY', 33774 LL : 'D. MMMM YYYY', 33775 LLL : 'D. MMMM YYYY H:mm', 33776 LLLL : 'dddd, D. MMMM YYYY H:mm' 33777 }, 33778 calendar : { 33779 sameDay : '[danas u] LT', 33780 nextDay : '[sutra u] LT', 33781 nextWeek : function () { 33782 switch (this.day()) { 33783 case 0: 33784 return '[u] [nedjelju] [u] LT'; 33785 case 3: 33786 return '[u] [srijedu] [u] LT'; 33787 case 6: 33788 return '[u] [subotu] [u] LT'; 33789 case 1: 33790 case 2: 33791 case 4: 33792 case 5: 33793 return '[u] dddd [u] LT'; 33794 } 33795 }, 33796 lastDay : '[juÄer u] LT', 33797 lastWeek : function () { 33798 switch (this.day()) { 33799 case 0: 33800 case 3: 33801 return '[proÅ¡lu] dddd [u] LT'; 33802 case 6: 33803 return '[proÅ¡le] [subote] [u] LT'; 33804 case 1: 33805 case 2: 33806 case 4: 33807 case 5: 33808 return '[proÅ¡li] dddd [u] LT'; 33809 } 33810 }, 33811 sameElse : 'L' 33812 }, 33813 relativeTime : { 33814 future : 'za %s', 33815 past : 'prije %s', 33816 s : 'par sekundi', 33817 ss : translate, 33818 m : translate, 33819 mm : translate, 33820 h : translate, 33821 hh : translate, 33822 d : 'dan', 33823 dd : translate, 33824 M : 'mjesec', 33825 MM : translate, 33826 y : 'godinu', 33827 yy : translate 33828 }, 33829 dayOfMonthOrdinalParse: /\d{1,2}\./, 33830 ordinal : '%d.', 33831 week : { 33832 dow : 1, // Monday is the first day of the week. 33833 doy : 7 // The week that contains Jan 1st is the first week of the year. 33834 } 33835 }); 33836 33837 return bs; 33838 33839}))); 33840 33841 33842/***/ }), 33843/* 235 */ 33844/***/ (function(module, exports, __webpack_require__) { 33845 33846//! moment.js locale configuration 33847 33848;(function (global, factory) { 33849 true ? factory(__webpack_require__(1)) : 33850 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 33851 factory(global.moment) 33852}(this, (function (moment) { 'use strict'; 33853 33854 33855 var ca = moment.defineLocale('ca', { 33856 months : { 33857 standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'), 33858 format: 'de gener_de febrer_de març_d\'abril_de maig_de juny_de juliol_d\'agost_de setembre_d\'octubre_de novembre_de desembre'.split('_'), 33859 isFormat: /D[oD]?(\s)+MMMM/ 33860 }, 33861 monthsShort : 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'), 33862 monthsParseExact : true, 33863 weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'), 33864 weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'), 33865 weekdaysMin : 'dg_dl_dt_dc_dj_dv_ds'.split('_'), 33866 weekdaysParseExact : true, 33867 longDateFormat : { 33868 LT : 'H:mm', 33869 LTS : 'H:mm:ss', 33870 L : 'DD/MM/YYYY', 33871 LL : 'D MMMM [de] YYYY', 33872 ll : 'D MMM YYYY', 33873 LLL : 'D MMMM [de] YYYY [a les] H:mm', 33874 lll : 'D MMM YYYY, H:mm', 33875 LLLL : 'dddd D MMMM [de] YYYY [a les] H:mm', 33876 llll : 'ddd D MMM YYYY, H:mm' 33877 }, 33878 calendar : { 33879 sameDay : function () { 33880 return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; 33881 }, 33882 nextDay : function () { 33883 return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; 33884 }, 33885 nextWeek : function () { 33886 return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; 33887 }, 33888 lastDay : function () { 33889 return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; 33890 }, 33891 lastWeek : function () { 33892 return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; 33893 }, 33894 sameElse : 'L' 33895 }, 33896 relativeTime : { 33897 future : 'd\'aquà %s', 33898 past : 'fa %s', 33899 s : 'uns segons', 33900 ss : '%d segons', 33901 m : 'un minut', 33902 mm : '%d minuts', 33903 h : 'una hora', 33904 hh : '%d hores', 33905 d : 'un dia', 33906 dd : '%d dies', 33907 M : 'un mes', 33908 MM : '%d mesos', 33909 y : 'un any', 33910 yy : '%d anys' 33911 }, 33912 dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, 33913 ordinal : function (number, period) { 33914 var output = (number === 1) ? 'r' : 33915 (number === 2) ? 'n' : 33916 (number === 3) ? 'r' : 33917 (number === 4) ? 't' : 'è'; 33918 if (period === 'w' || period === 'W') { 33919 output = 'a'; 33920 } 33921 return number + output; 33922 }, 33923 week : { 33924 dow : 1, // Monday is the first day of the week. 33925 doy : 4 // The week that contains Jan 4th is the first week of the year. 33926 } 33927 }); 33928 33929 return ca; 33930 33931}))); 33932 33933 33934/***/ }), 33935/* 236 */ 33936/***/ (function(module, exports, __webpack_require__) { 33937 33938//! moment.js locale configuration 33939 33940;(function (global, factory) { 33941 true ? factory(__webpack_require__(1)) : 33942 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 33943 factory(global.moment) 33944}(this, (function (moment) { 'use strict'; 33945 33946 33947 var months = 'leden_únor_bÅezen_duben_kvÄten_Äerven_Äervenec_srpen_záÅÃ_ÅÃjen_listopad_prosinec'.split('_'), 33948 monthsShort = 'led_úno_bÅe_dub_kvÄ_Ävn_Ävc_srp_záÅ_ÅÃj_lis_pro'.split('_'); 33949 function plural(n) { 33950 return (n > 1) && (n < 5) && (~~(n / 10) !== 1); 33951 } 33952 function translate(number, withoutSuffix, key, isFuture) { 33953 var result = number + ' '; 33954 switch (key) { 33955 case 's': // a few seconds / in a few seconds / a few seconds ago 33956 return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami'; 33957 case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago 33958 if (withoutSuffix || isFuture) { 33959 return result + (plural(number) ? 'sekundy' : 'sekund'); 33960 } else { 33961 return result + 'sekundami'; 33962 } 33963 break; 33964 case 'm': // a minute / in a minute / a minute ago 33965 return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou'); 33966 case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago 33967 if (withoutSuffix || isFuture) { 33968 return result + (plural(number) ? 'minuty' : 'minut'); 33969 } else { 33970 return result + 'minutami'; 33971 } 33972 break; 33973 case 'h': // an hour / in an hour / an hour ago 33974 return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou'); 33975 case 'hh': // 9 hours / in 9 hours / 9 hours ago 33976 if (withoutSuffix || isFuture) { 33977 return result + (plural(number) ? 'hodiny' : 'hodin'); 33978 } else { 33979 return result + 'hodinami'; 33980 } 33981 break; 33982 case 'd': // a day / in a day / a day ago 33983 return (withoutSuffix || isFuture) ? 'den' : 'dnem'; 33984 case 'dd': // 9 days / in 9 days / 9 days ago 33985 if (withoutSuffix || isFuture) { 33986 return result + (plural(number) ? 'dny' : 'dnÃ'); 33987 } else { 33988 return result + 'dny'; 33989 } 33990 break; 33991 case 'M': // a month / in a month / a month ago 33992 return (withoutSuffix || isFuture) ? 'mÄsÃc' : 'mÄsÃcem'; 33993 case 'MM': // 9 months / in 9 months / 9 months ago 33994 if (withoutSuffix || isFuture) { 33995 return result + (plural(number) ? 'mÄsÃce' : 'mÄsÃců'); 33996 } else { 33997 return result + 'mÄsÃci'; 33998 } 33999 break; 34000 case 'y': // a year / in a year / a year ago 34001 return (withoutSuffix || isFuture) ? 'rok' : 'rokem'; 34002 case 'yy': // 9 years / in 9 years / 9 years ago 34003 if (withoutSuffix || isFuture) { 34004 return result + (plural(number) ? 'roky' : 'let'); 34005 } else { 34006 return result + 'lety'; 34007 } 34008 break; 34009 } 34010 } 34011 34012 var cs = moment.defineLocale('cs', { 34013 months : months, 34014 monthsShort : monthsShort, 34015 monthsParse : (function (months, monthsShort) { 34016 var i, _monthsParse = []; 34017 for (i = 0; i < 12; i++) { 34018 // use custom parser to solve problem with July (Äervenec) 34019 _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i'); 34020 } 34021 return _monthsParse; 34022 }(months, monthsShort)), 34023 shortMonthsParse : (function (monthsShort) { 34024 var i, _shortMonthsParse = []; 34025 for (i = 0; i < 12; i++) { 34026 _shortMonthsParse[i] = new RegExp('^' + monthsShort[i] + '$', 'i'); 34027 } 34028 return _shortMonthsParse; 34029 }(monthsShort)), 34030 longMonthsParse : (function (months) { 34031 var i, _longMonthsParse = []; 34032 for (i = 0; i < 12; i++) { 34033 _longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i'); 34034 } 34035 return _longMonthsParse; 34036 }(months)), 34037 weekdays : 'nedÄle_pondÄlÃ_úterý_stÅeda_Ätvrtek_pátek_sobota'.split('_'), 34038 weekdaysShort : 'ne_po_út_st_Ät_pá_so'.split('_'), 34039 weekdaysMin : 'ne_po_út_st_Ät_pá_so'.split('_'), 34040 longDateFormat : { 34041 LT: 'H:mm', 34042 LTS : 'H:mm:ss', 34043 L : 'DD.MM.YYYY', 34044 LL : 'D. MMMM YYYY', 34045 LLL : 'D. MMMM YYYY H:mm', 34046 LLLL : 'dddd D. MMMM YYYY H:mm', 34047 l : 'D. M. YYYY' 34048 }, 34049 calendar : { 34050 sameDay: '[dnes v] LT', 34051 nextDay: '[zÃtra v] LT', 34052 nextWeek: function () { 34053 switch (this.day()) { 34054 case 0: 34055 return '[v nedÄli v] LT'; 34056 case 1: 34057 case 2: 34058 return '[v] dddd [v] LT'; 34059 case 3: 34060 return '[ve stÅedu v] LT'; 34061 case 4: 34062 return '[ve Ätvrtek v] LT'; 34063 case 5: 34064 return '[v pátek v] LT'; 34065 case 6: 34066 return '[v sobotu v] LT'; 34067 } 34068 }, 34069 lastDay: '[vÄera v] LT', 34070 lastWeek: function () { 34071 switch (this.day()) { 34072 case 0: 34073 return '[minulou nedÄli v] LT'; 34074 case 1: 34075 case 2: 34076 return '[minulé] dddd [v] LT'; 34077 case 3: 34078 return '[minulou stÅedu v] LT'; 34079 case 4: 34080 case 5: 34081 return '[minulý] dddd [v] LT'; 34082 case 6: 34083 return '[minulou sobotu v] LT'; 34084 } 34085 }, 34086 sameElse: 'L' 34087 }, 34088 relativeTime : { 34089 future : 'za %s', 34090 past : 'pÅed %s', 34091 s : translate, 34092 ss : translate, 34093 m : translate, 34094 mm : translate, 34095 h : translate, 34096 hh : translate, 34097 d : translate, 34098 dd : translate, 34099 M : translate, 34100 MM : translate, 34101 y : translate, 34102 yy : translate 34103 }, 34104 dayOfMonthOrdinalParse : /\d{1,2}\./, 34105 ordinal : '%d.', 34106 week : { 34107 dow : 1, // Monday is the first day of the week. 34108 doy : 4 // The week that contains Jan 4th is the first week of the year. 34109 } 34110 }); 34111 34112 return cs; 34113 34114}))); 34115 34116 34117/***/ }), 34118/* 237 */ 34119/***/ (function(module, exports, __webpack_require__) { 34120 34121//! moment.js locale configuration 34122 34123;(function (global, factory) { 34124 true ? factory(__webpack_require__(1)) : 34125 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 34126 factory(global.moment) 34127}(this, (function (moment) { 'use strict'; 34128 34129 34130 var cv = moment.defineLocale('cv', { 34131 months : 'кÓÑлаÑ_наÑÓÑ_пÑÑ_ака_май_Ò«ÓÑÑме_ÑÑÓ_Ò«ÑÑла_авÓн_Ñпа_Ñӳк_ÑаÑÑав'.split('_'), 34132 monthsShort : 'кÓÑ_наÑ_пÑÑ_ака_май_Ò«ÓÑ_ÑÑÓ_Ò«ÑÑ_авн_Ñпа_Ñӳк_ÑаÑ'.split('_'), 34133 weekdays : 'вÑÑÑаÑникÑн_ÑÑнÑикÑн_ÑÑлаÑикÑн_ÑнкÑн_кÓҫнеÑникÑн_ÑÑнекÑн_ÑÓмаÑкÑн'.split('_'), 34134 weekdaysShort : 'вÑÑ_ÑÑн_ÑÑл_Ñн_кÓÒ«_ÑÑн_ÑÓм'.split('_'), 34135 weekdaysMin : 'вÑ_Ñн_ÑÑ_Ñн_кҫ_ÑÑ_Ñм'.split('_'), 34136 longDateFormat : { 34137 LT : 'HH:mm', 34138 LTS : 'HH:mm:ss', 34139 L : 'DD-MM-YYYY', 34140 LL : 'YYYY [Ò«ÑÐ»Ñ Ð¸] MMMM [ÑйÓÑ Óн] D[-мÓÑÓ]', 34141 LLL : 'YYYY [Ò«ÑÐ»Ñ Ð¸] MMMM [ÑйÓÑ Óн] D[-мÓÑÓ], HH:mm', 34142 LLLL : 'dddd, YYYY [Ò«ÑÐ»Ñ Ð¸] MMMM [ÑйÓÑ Óн] D[-мÓÑÓ], HH:mm' 34143 }, 34144 calendar : { 34145 sameDay: '[ÐаÑн] LT [ÑÐµÑ ÐµÑÑе]', 34146 nextDay: '[ЫÑан] LT [ÑÐµÑ ÐµÑÑе]', 34147 lastDay: '[ÓнеÑ] LT [ÑÐµÑ ÐµÑÑе]', 34148 nextWeek: '[ҪиÑеÑ] dddd LT [ÑÐµÑ ÐµÑÑе]', 34149 lastWeek: '[ÐÑÑнÓ] dddd LT [ÑÐµÑ ÐµÑÑе]', 34150 sameElse: 'L' 34151 }, 34152 relativeTime : { 34153 future : function (output) { 34154 var affix = /ÑÐµÑ ÐµÑ$/i.exec(output) ? 'Ñен' : /Ò«Ñл$/i.exec(output) ? 'Ñан' : 'Ñан'; 34155 return output + affix; 34156 }, 34157 past : '%s каÑлла', 34158 s : 'пÓÑ-ик ҫеккÑнÑ', 34159 ss : '%d ҫеккÑнÑ', 34160 m : 'пÓÑ Ð¼Ð¸Ð½ÑÑ', 34161 mm : '%d минÑÑ', 34162 h : 'пÓÑ ÑÐµÑ ÐµÑ', 34163 hh : '%d ÑÐµÑ ÐµÑ', 34164 d : 'пÓÑ ÐºÑн', 34165 dd : '%d кÑн', 34166 M : 'пÓÑ ÑйÓÑ ', 34167 MM : '%d ÑйÓÑ ', 34168 y : 'пÓÑ Ò«Ñл', 34169 yy : '%d Ò«Ñл' 34170 }, 34171 dayOfMonthOrdinalParse: /\d{1,2}-мÓÑ/, 34172 ordinal : '%d-мÓÑ', 34173 week : { 34174 dow : 1, // Monday is the first day of the week. 34175 doy : 7 // The week that contains Jan 1st is the first week of the year. 34176 } 34177 }); 34178 34179 return cv; 34180 34181}))); 34182 34183 34184/***/ }), 34185/* 238 */ 34186/***/ (function(module, exports, __webpack_require__) { 34187 34188//! moment.js locale configuration 34189 34190;(function (global, factory) { 34191 true ? factory(__webpack_require__(1)) : 34192 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 34193 factory(global.moment) 34194}(this, (function (moment) { 'use strict'; 34195 34196 34197 var cy = moment.defineLocale('cy', { 34198 months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'), 34199 monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'), 34200 weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'), 34201 weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), 34202 weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), 34203 weekdaysParseExact : true, 34204 // time formats are the same as en-gb 34205 longDateFormat: { 34206 LT: 'HH:mm', 34207 LTS : 'HH:mm:ss', 34208 L: 'DD/MM/YYYY', 34209 LL: 'D MMMM YYYY', 34210 LLL: 'D MMMM YYYY HH:mm', 34211 LLLL: 'dddd, D MMMM YYYY HH:mm' 34212 }, 34213 calendar: { 34214 sameDay: '[Heddiw am] LT', 34215 nextDay: '[Yfory am] LT', 34216 nextWeek: 'dddd [am] LT', 34217 lastDay: '[Ddoe am] LT', 34218 lastWeek: 'dddd [diwethaf am] LT', 34219 sameElse: 'L' 34220 }, 34221 relativeTime: { 34222 future: 'mewn %s', 34223 past: '%s yn ôl', 34224 s: 'ychydig eiliadau', 34225 ss: '%d eiliad', 34226 m: 'munud', 34227 mm: '%d munud', 34228 h: 'awr', 34229 hh: '%d awr', 34230 d: 'diwrnod', 34231 dd: '%d diwrnod', 34232 M: 'mis', 34233 MM: '%d mis', 34234 y: 'blwyddyn', 34235 yy: '%d flynedd' 34236 }, 34237 dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, 34238 // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh 34239 ordinal: function (number) { 34240 var b = number, 34241 output = '', 34242 lookup = [ 34243 '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed 34244 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed 34245 ]; 34246 if (b > 20) { 34247 if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) { 34248 output = 'fed'; // not 30ain, 70ain or 90ain 34249 } else { 34250 output = 'ain'; 34251 } 34252 } else if (b > 0) { 34253 output = lookup[b]; 34254 } 34255 return number + output; 34256 }, 34257 week : { 34258 dow : 1, // Monday is the first day of the week. 34259 doy : 4 // The week that contains Jan 4th is the first week of the year. 34260 } 34261 }); 34262 34263 return cy; 34264 34265}))); 34266 34267 34268/***/ }), 34269/* 239 */ 34270/***/ (function(module, exports, __webpack_require__) { 34271 34272//! moment.js locale configuration 34273 34274;(function (global, factory) { 34275 true ? factory(__webpack_require__(1)) : 34276 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 34277 factory(global.moment) 34278}(this, (function (moment) { 'use strict'; 34279 34280 34281 var da = moment.defineLocale('da', { 34282 months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'), 34283 monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), 34284 weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), 34285 weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'), 34286 weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'), 34287 longDateFormat : { 34288 LT : 'HH:mm', 34289 LTS : 'HH:mm:ss', 34290 L : 'DD.MM.YYYY', 34291 LL : 'D. MMMM YYYY', 34292 LLL : 'D. MMMM YYYY HH:mm', 34293 LLLL : 'dddd [d.] D. MMMM YYYY [kl.] HH:mm' 34294 }, 34295 calendar : { 34296 sameDay : '[i dag kl.] LT', 34297 nextDay : '[i morgen kl.] LT', 34298 nextWeek : 'pÃ¥ dddd [kl.] LT', 34299 lastDay : '[i gÃ¥r kl.] LT', 34300 lastWeek : '[i] dddd[s kl.] LT', 34301 sameElse : 'L' 34302 }, 34303 relativeTime : { 34304 future : 'om %s', 34305 past : '%s siden', 34306 s : 'fÃ¥ sekunder', 34307 ss : '%d sekunder', 34308 m : 'et minut', 34309 mm : '%d minutter', 34310 h : 'en time', 34311 hh : '%d timer', 34312 d : 'en dag', 34313 dd : '%d dage', 34314 M : 'en mÃ¥ned', 34315 MM : '%d mÃ¥neder', 34316 y : 'et Ã¥r', 34317 yy : '%d Ã¥r' 34318 }, 34319 dayOfMonthOrdinalParse: /\d{1,2}\./, 34320 ordinal : '%d.', 34321 week : { 34322 dow : 1, // Monday is the first day of the week. 34323 doy : 4 // The week that contains Jan 4th is the first week of the year. 34324 } 34325 }); 34326 34327 return da; 34328 34329}))); 34330 34331 34332/***/ }), 34333/* 240 */ 34334/***/ (function(module, exports, __webpack_require__) { 34335 34336//! moment.js locale configuration 34337 34338;(function (global, factory) { 34339 true ? factory(__webpack_require__(1)) : 34340 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 34341 factory(global.moment) 34342}(this, (function (moment) { 'use strict'; 34343 34344 34345 function processRelativeTime(number, withoutSuffix, key, isFuture) { 34346 var format = { 34347 'm': ['eine Minute', 'einer Minute'], 34348 'h': ['eine Stunde', 'einer Stunde'], 34349 'd': ['ein Tag', 'einem Tag'], 34350 'dd': [number + ' Tage', number + ' Tagen'], 34351 'M': ['ein Monat', 'einem Monat'], 34352 'MM': [number + ' Monate', number + ' Monaten'], 34353 'y': ['ein Jahr', 'einem Jahr'], 34354 'yy': [number + ' Jahre', number + ' Jahren'] 34355 }; 34356 return withoutSuffix ? format[key][0] : format[key][1]; 34357 } 34358 34359 var de = moment.defineLocale('de', { 34360 months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), 34361 monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'), 34362 monthsParseExact : true, 34363 weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), 34364 weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), 34365 weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), 34366 weekdaysParseExact : true, 34367 longDateFormat : { 34368 LT: 'HH:mm', 34369 LTS: 'HH:mm:ss', 34370 L : 'DD.MM.YYYY', 34371 LL : 'D. MMMM YYYY', 34372 LLL : 'D. MMMM YYYY HH:mm', 34373 LLLL : 'dddd, D. MMMM YYYY HH:mm' 34374 }, 34375 calendar : { 34376 sameDay: '[heute um] LT [Uhr]', 34377 sameElse: 'L', 34378 nextDay: '[morgen um] LT [Uhr]', 34379 nextWeek: 'dddd [um] LT [Uhr]', 34380 lastDay: '[gestern um] LT [Uhr]', 34381 lastWeek: '[letzten] dddd [um] LT [Uhr]' 34382 }, 34383 relativeTime : { 34384 future : 'in %s', 34385 past : 'vor %s', 34386 s : 'ein paar Sekunden', 34387 ss : '%d Sekunden', 34388 m : processRelativeTime, 34389 mm : '%d Minuten', 34390 h : processRelativeTime, 34391 hh : '%d Stunden', 34392 d : processRelativeTime, 34393 dd : processRelativeTime, 34394 M : processRelativeTime, 34395 MM : processRelativeTime, 34396 y : processRelativeTime, 34397 yy : processRelativeTime 34398 }, 34399 dayOfMonthOrdinalParse: /\d{1,2}\./, 34400 ordinal : '%d.', 34401 week : { 34402 dow : 1, // Monday is the first day of the week. 34403 doy : 4 // The week that contains Jan 4th is the first week of the year. 34404 } 34405 }); 34406 34407 return de; 34408 34409}))); 34410 34411 34412/***/ }), 34413/* 241 */ 34414/***/ (function(module, exports, __webpack_require__) { 34415 34416//! moment.js locale configuration 34417 34418;(function (global, factory) { 34419 true ? factory(__webpack_require__(1)) : 34420 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 34421 factory(global.moment) 34422}(this, (function (moment) { 'use strict'; 34423 34424 34425 function processRelativeTime(number, withoutSuffix, key, isFuture) { 34426 var format = { 34427 'm': ['eine Minute', 'einer Minute'], 34428 'h': ['eine Stunde', 'einer Stunde'], 34429 'd': ['ein Tag', 'einem Tag'], 34430 'dd': [number + ' Tage', number + ' Tagen'], 34431 'M': ['ein Monat', 'einem Monat'], 34432 'MM': [number + ' Monate', number + ' Monaten'], 34433 'y': ['ein Jahr', 'einem Jahr'], 34434 'yy': [number + ' Jahre', number + ' Jahren'] 34435 }; 34436 return withoutSuffix ? format[key][0] : format[key][1]; 34437 } 34438 34439 var deAt = moment.defineLocale('de-at', { 34440 months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), 34441 monthsShort : 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'), 34442 monthsParseExact : true, 34443 weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), 34444 weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), 34445 weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), 34446 weekdaysParseExact : true, 34447 longDateFormat : { 34448 LT: 'HH:mm', 34449 LTS: 'HH:mm:ss', 34450 L : 'DD.MM.YYYY', 34451 LL : 'D. MMMM YYYY', 34452 LLL : 'D. MMMM YYYY HH:mm', 34453 LLLL : 'dddd, D. MMMM YYYY HH:mm' 34454 }, 34455 calendar : { 34456 sameDay: '[heute um] LT [Uhr]', 34457 sameElse: 'L', 34458 nextDay: '[morgen um] LT [Uhr]', 34459 nextWeek: 'dddd [um] LT [Uhr]', 34460 lastDay: '[gestern um] LT [Uhr]', 34461 lastWeek: '[letzten] dddd [um] LT [Uhr]' 34462 }, 34463 relativeTime : { 34464 future : 'in %s', 34465 past : 'vor %s', 34466 s : 'ein paar Sekunden', 34467 ss : '%d Sekunden', 34468 m : processRelativeTime, 34469 mm : '%d Minuten', 34470 h : processRelativeTime, 34471 hh : '%d Stunden', 34472 d : processRelativeTime, 34473 dd : processRelativeTime, 34474 M : processRelativeTime, 34475 MM : processRelativeTime, 34476 y : processRelativeTime, 34477 yy : processRelativeTime 34478 }, 34479 dayOfMonthOrdinalParse: /\d{1,2}\./, 34480 ordinal : '%d.', 34481 week : { 34482 dow : 1, // Monday is the first day of the week. 34483 doy : 4 // The week that contains Jan 4th is the first week of the year. 34484 } 34485 }); 34486 34487 return deAt; 34488 34489}))); 34490 34491 34492/***/ }), 34493/* 242 */ 34494/***/ (function(module, exports, __webpack_require__) { 34495 34496//! moment.js locale configuration 34497 34498;(function (global, factory) { 34499 true ? factory(__webpack_require__(1)) : 34500 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 34501 factory(global.moment) 34502}(this, (function (moment) { 'use strict'; 34503 34504 34505 function processRelativeTime(number, withoutSuffix, key, isFuture) { 34506 var format = { 34507 'm': ['eine Minute', 'einer Minute'], 34508 'h': ['eine Stunde', 'einer Stunde'], 34509 'd': ['ein Tag', 'einem Tag'], 34510 'dd': [number + ' Tage', number + ' Tagen'], 34511 'M': ['ein Monat', 'einem Monat'], 34512 'MM': [number + ' Monate', number + ' Monaten'], 34513 'y': ['ein Jahr', 'einem Jahr'], 34514 'yy': [number + ' Jahre', number + ' Jahren'] 34515 }; 34516 return withoutSuffix ? format[key][0] : format[key][1]; 34517 } 34518 34519 var deCh = moment.defineLocale('de-ch', { 34520 months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), 34521 monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'), 34522 monthsParseExact : true, 34523 weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), 34524 weekdaysShort : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), 34525 weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), 34526 weekdaysParseExact : true, 34527 longDateFormat : { 34528 LT: 'HH:mm', 34529 LTS: 'HH:mm:ss', 34530 L : 'DD.MM.YYYY', 34531 LL : 'D. MMMM YYYY', 34532 LLL : 'D. MMMM YYYY HH:mm', 34533 LLLL : 'dddd, D. MMMM YYYY HH:mm' 34534 }, 34535 calendar : { 34536 sameDay: '[heute um] LT [Uhr]', 34537 sameElse: 'L', 34538 nextDay: '[morgen um] LT [Uhr]', 34539 nextWeek: 'dddd [um] LT [Uhr]', 34540 lastDay: '[gestern um] LT [Uhr]', 34541 lastWeek: '[letzten] dddd [um] LT [Uhr]' 34542 }, 34543 relativeTime : { 34544 future : 'in %s', 34545 past : 'vor %s', 34546 s : 'ein paar Sekunden', 34547 ss : '%d Sekunden', 34548 m : processRelativeTime, 34549 mm : '%d Minuten', 34550 h : processRelativeTime, 34551 hh : '%d Stunden', 34552 d : processRelativeTime, 34553 dd : processRelativeTime, 34554 M : processRelativeTime, 34555 MM : processRelativeTime, 34556 y : processRelativeTime, 34557 yy : processRelativeTime 34558 }, 34559 dayOfMonthOrdinalParse: /\d{1,2}\./, 34560 ordinal : '%d.', 34561 week : { 34562 dow : 1, // Monday is the first day of the week. 34563 doy : 4 // The week that contains Jan 4th is the first week of the year. 34564 } 34565 }); 34566 34567 return deCh; 34568 34569}))); 34570 34571 34572/***/ }), 34573/* 243 */ 34574/***/ (function(module, exports, __webpack_require__) { 34575 34576//! moment.js locale configuration 34577 34578;(function (global, factory) { 34579 true ? factory(__webpack_require__(1)) : 34580 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 34581 factory(global.moment) 34582}(this, (function (moment) { 'use strict'; 34583 34584 34585 var months = [ 34586 'ÞÞ¬ÞÞªÞÞ¦ÞÞ©', 34587 'ÞÞ¬ÞÞ°ÞÞªÞÞ¦ÞÞ©', 34588 'ÞÞ§ÞÞ¨ÞÞª', 34589 'ÞÞÞÞ°ÞÞ©ÞÞª', 34590 'ÞÞ', 34591 'ÞÞ«ÞÞ°', 34592 'ÞÞªÞÞ¦ÞÞ¨', 34593 'ÞÞ¯ÞÞ¦ÞÞ°ÞÞª', 34594 'ÞÞ¬ÞÞ°ÞÞ¬ÞÞ°ÞÞ¦ÞÞª', 34595 'ÞÞ®ÞÞ°ÞÞ¯ÞÞ¦ÞÞª', 34596 'ÞÞ®ÞÞ¬ÞÞ°ÞÞ¦ÞÞª', 34597 'ÞÞ¨ÞÞ¬ÞÞ°ÞÞ¦ÞÞª' 34598 ], weekdays = [ 34599 'ÞÞ§ÞÞ¨ÞÞ°ÞÞ¦', 34600 'ÞÞ¯ÞÞ¦', 34601 'ÞÞ¦ÞÞ°ÞÞ§ÞÞ¦', 34602 'ÞÞªÞÞ¦', 34603 'ÞÞªÞÞ§ÞÞ°ÞÞ¦ÞÞ¨', 34604 'ÞÞªÞÞªÞÞª', 34605 'ÞÞ®ÞÞ¨ÞÞ¨ÞÞª' 34606 ]; 34607 34608 var dv = moment.defineLocale('dv', { 34609 months : months, 34610 monthsShort : months, 34611 weekdays : weekdays, 34612 weekdaysShort : weekdays, 34613 weekdaysMin : 'ÞÞ§ÞÞ¨_ÞÞ¯ÞÞ¦_ÞÞ¦ÞÞ°_ÞÞªÞÞ¦_ÞÞªÞÞ§_ÞÞªÞÞª_ÞÞ®ÞÞ¨'.split('_'), 34614 longDateFormat : { 34615 34616 LT : 'HH:mm', 34617 LTS : 'HH:mm:ss', 34618 L : 'D/M/YYYY', 34619 LL : 'D MMMM YYYY', 34620 LLL : 'D MMMM YYYY HH:mm', 34621 LLLL : 'dddd D MMMM YYYY HH:mm' 34622 }, 34623 meridiemParse: /ÞÞ|ÞÞ/, 34624 isPM : function (input) { 34625 return 'ÞÞ' === input; 34626 }, 34627 meridiem : function (hour, minute, isLower) { 34628 if (hour < 12) { 34629 return 'ÞÞ'; 34630 } else { 34631 return 'ÞÞ'; 34632 } 34633 }, 34634 calendar : { 34635 sameDay : '[ÞÞ¨ÞÞ¦ÞÞª] LT', 34636 nextDay : '[ÞÞ§ÞÞ¦ÞÞ§] LT', 34637 nextWeek : 'dddd LT', 34638 lastDay : '[ÞÞ¨ÞÞ°ÞÞ¬] LT', 34639 lastWeek : '[ÞÞ§ÞÞ¨ÞÞªÞÞ¨] dddd LT', 34640 sameElse : 'L' 34641 }, 34642 relativeTime : { 34643 future : 'ÞÞ¬ÞÞÞÞ¦ÞÞ¨ %s', 34644 past : 'ÞÞªÞÞ¨ÞÞ° %s', 34645 s : 'ÞÞ¨ÞÞªÞÞ°ÞÞªÞÞ®Þ Þ¬ÞÞ°', 34646 ss : 'd% ÞÞ¨ÞÞªÞÞ°ÞÞª', 34647 m : 'ÞÞ¨ÞÞ¨ÞÞ¬ÞÞ°', 34648 mm : 'ÞÞ¨ÞÞ¨ÞÞª %d', 34649 h : 'ÞÞ¦ÞÞ¨ÞÞ¨ÞÞ¬ÞÞ°', 34650 hh : 'ÞÞ¦ÞÞ¨ÞÞ¨ÞÞª %d', 34651 d : 'ÞÞªÞÞ¦ÞÞ¬ÞÞ°', 34652 dd : 'ÞÞªÞÞ¦ÞÞ° %d', 34653 M : 'ÞÞ¦ÞÞ¬ÞÞ°', 34654 MM : 'ÞÞ¦ÞÞ° %d', 34655 y : 'ÞÞ¦ÞÞ¦ÞÞ¬ÞÞ°', 34656 yy : 'ÞÞ¦ÞÞ¦ÞÞª %d' 34657 }, 34658 preparse: function (string) { 34659 return string.replace(/Ø/g, ','); 34660 }, 34661 postformat: function (string) { 34662 return string.replace(/,/g, 'Ø'); 34663 }, 34664 week : { 34665 dow : 7, // Sunday is the first day of the week. 34666 doy : 12 // The week that contains Jan 1st is the first week of the year. 34667 } 34668 }); 34669 34670 return dv; 34671 34672}))); 34673 34674 34675/***/ }), 34676/* 244 */ 34677/***/ (function(module, exports, __webpack_require__) { 34678 34679//! moment.js locale configuration 34680 34681;(function (global, factory) { 34682 true ? factory(__webpack_require__(1)) : 34683 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 34684 factory(global.moment) 34685}(this, (function (moment) { 'use strict'; 34686 34687 function isFunction(input) { 34688 return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]'; 34689 } 34690 34691 34692 var el = moment.defineLocale('el', { 34693 monthsNominativeEl : 'ÎÎ±Î½Î¿Ï Î¬ÏιοÏ_ΦεβÏÎ¿Ï Î¬ÏιοÏ_ÎάÏÏιοÏ_ÎÏÏίλιοÏ_ÎάιοÏ_ÎοÏνιοÏ_ÎοÏλιοÏ_ÎÏÎ³Î¿Ï ÏÏοÏ_ΣεÏÏÎμβÏιοÏ_ÎκÏÏβÏιοÏ_ÎοÎμβÏιοÏ_ÎεκÎμβÏιοÏ'.split('_'), 34694 monthsGenitiveEl : 'ÎÎ±Î½Î¿Ï Î±ÏÎ¯Î¿Ï _ΦεβÏÎ¿Ï Î±ÏÎ¯Î¿Ï _ÎαÏÏÎ¯Î¿Ï _ÎÏÏÎ¹Î»Î¯Î¿Ï _ÎαÎÎ¿Ï _ÎÎ¿Ï Î½Î¯Î¿Ï _ÎÎ¿Ï Î»Î¯Î¿Ï _ÎÏ Î³Î¿ÏÏÏÎ¿Ï _ΣεÏÏεμβÏÎ¯Î¿Ï _ÎκÏÏβÏÎ¯Î¿Ï _ÎοεμβÏÎ¯Î¿Ï _ÎεκεμβÏÎ¯Î¿Ï '.split('_'), 34695 months : function (momentToFormat, format) { 34696 if (!momentToFormat) { 34697 return this._monthsNominativeEl; 34698 } else if (typeof format === 'string' && /D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM' 34699 return this._monthsGenitiveEl[momentToFormat.month()]; 34700 } else { 34701 return this._monthsNominativeEl[momentToFormat.month()]; 34702 } 34703 }, 34704 monthsShort : 'Îαν_Φεβ_ÎαÏ_ÎÏÏ_ÎαÏ_ÎÎ¿Ï Î½_ÎÎ¿Ï Î»_ÎÏ Î³_ΣεÏ_ÎκÏ_Îοε_Îεκ'.split('_'), 34705 weekdays : 'ÎÏ Ïιακή_ÎÎµÏ ÏÎÏα_ΤÏίÏη_ΤεÏάÏÏη_Î ÎμÏÏη_ΠαÏαÏÎºÎµÏ Î®_ΣάββαÏο'.split('_'), 34706 weekdaysShort : 'ÎÏ Ï_ÎÎµÏ _ΤÏι_ΤεÏ_Πεμ_ΠαÏ_Σαβ'.split('_'), 34707 weekdaysMin : 'ÎÏ _Îε_ΤÏ_Τε_Πε_Πα_Σα'.split('_'), 34708 meridiem : function (hours, minutes, isLower) { 34709 if (hours > 11) { 34710 return isLower ? 'μμ' : 'ÎÎ'; 34711 } else { 34712 return isLower ? 'Ïμ' : 'Î Î'; 34713 } 34714 }, 34715 isPM : function (input) { 34716 return ((input + '').toLowerCase()[0] === 'μ'); 34717 }, 34718 meridiemParse : /[Î Î]\.?Î?\.?/i, 34719 longDateFormat : { 34720 LT : 'h:mm A', 34721 LTS : 'h:mm:ss A', 34722 L : 'DD/MM/YYYY', 34723 LL : 'D MMMM YYYY', 34724 LLL : 'D MMMM YYYY h:mm A', 34725 LLLL : 'dddd, D MMMM YYYY h:mm A' 34726 }, 34727 calendarEl : { 34728 sameDay : '[ΣήμεÏα {}] LT', 34729 nextDay : '[ÎÏÏιο {}] LT', 34730 nextWeek : 'dddd [{}] LT', 34731 lastDay : '[Î§Î¸ÎµÏ {}] LT', 34732 lastWeek : function () { 34733 switch (this.day()) { 34734 case 6: 34735 return '[Ïο ÏÏοηγοÏμενο] dddd [{}] LT'; 34736 default: 34737 return '[Ïην ÏÏοηγοÏμενη] dddd [{}] LT'; 34738 } 34739 }, 34740 sameElse : 'L' 34741 }, 34742 calendar : function (key, mom) { 34743 var output = this._calendarEl[key], 34744 hours = mom && mom.hours(); 34745 if (isFunction(output)) { 34746 output = output.apply(mom); 34747 } 34748 return output.replace('{}', (hours % 12 === 1 ? 'ÏÏη' : 'ÏÏιÏ')); 34749 }, 34750 relativeTime : { 34751 future : 'Ïε %s', 34752 past : '%s ÏÏιν', 34753 s : 'λίγα Î´ÎµÏ ÏεÏÏλεÏÏα', 34754 ss : '%d Î´ÎµÏ ÏεÏÏλεÏÏα', 34755 m : 'Îνα λεÏÏÏ', 34756 mm : '%d λεÏÏά', 34757 h : 'μία ÏÏα', 34758 hh : '%d ÏÏεÏ', 34759 d : 'μία μÎÏα', 34760 dd : '%d μÎÏεÏ', 34761 M : 'ÎÎ½Î±Ï Î¼Î®Î½Î±Ï', 34762 MM : '%d μήνεÏ', 34763 y : 'ÎÎ½Î±Ï ÏÏÏνοÏ', 34764 yy : '%d ÏÏÏνια' 34765 }, 34766 dayOfMonthOrdinalParse: /\d{1,2}η/, 34767 ordinal: '%dη', 34768 week : { 34769 dow : 1, // Monday is the first day of the week. 34770 doy : 4 // The week that contains Jan 4st is the first week of the year. 34771 } 34772 }); 34773 34774 return el; 34775 34776}))); 34777 34778 34779/***/ }), 34780/* 245 */ 34781/***/ (function(module, exports, __webpack_require__) { 34782 34783//! moment.js locale configuration 34784 34785;(function (global, factory) { 34786 true ? factory(__webpack_require__(1)) : 34787 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 34788 factory(global.moment) 34789}(this, (function (moment) { 'use strict'; 34790 34791 34792 var enAu = moment.defineLocale('en-au', { 34793 months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), 34794 monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), 34795 weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), 34796 weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), 34797 weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), 34798 longDateFormat : { 34799 LT : 'h:mm A', 34800 LTS : 'h:mm:ss A', 34801 L : 'DD/MM/YYYY', 34802 LL : 'D MMMM YYYY', 34803 LLL : 'D MMMM YYYY h:mm A', 34804 LLLL : 'dddd, D MMMM YYYY h:mm A' 34805 }, 34806 calendar : { 34807 sameDay : '[Today at] LT', 34808 nextDay : '[Tomorrow at] LT', 34809 nextWeek : 'dddd [at] LT', 34810 lastDay : '[Yesterday at] LT', 34811 lastWeek : '[Last] dddd [at] LT', 34812 sameElse : 'L' 34813 }, 34814 relativeTime : { 34815 future : 'in %s', 34816 past : '%s ago', 34817 s : 'a few seconds', 34818 ss : '%d seconds', 34819 m : 'a minute', 34820 mm : '%d minutes', 34821 h : 'an hour', 34822 hh : '%d hours', 34823 d : 'a day', 34824 dd : '%d days', 34825 M : 'a month', 34826 MM : '%d months', 34827 y : 'a year', 34828 yy : '%d years' 34829 }, 34830 dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, 34831 ordinal : function (number) { 34832 var b = number % 10, 34833 output = (~~(number % 100 / 10) === 1) ? 'th' : 34834 (b === 1) ? 'st' : 34835 (b === 2) ? 'nd' : 34836 (b === 3) ? 'rd' : 'th'; 34837 return number + output; 34838 }, 34839 week : { 34840 dow : 1, // Monday is the first day of the week. 34841 doy : 4 // The week that contains Jan 4th is the first week of the year. 34842 } 34843 }); 34844 34845 return enAu; 34846 34847}))); 34848 34849 34850/***/ }), 34851/* 246 */ 34852/***/ (function(module, exports, __webpack_require__) { 34853 34854//! moment.js locale configuration 34855 34856;(function (global, factory) { 34857 true ? factory(__webpack_require__(1)) : 34858 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 34859 factory(global.moment) 34860}(this, (function (moment) { 'use strict'; 34861 34862 34863 var enCa = moment.defineLocale('en-ca', { 34864 months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), 34865 monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), 34866 weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), 34867 weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), 34868 weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), 34869 longDateFormat : { 34870 LT : 'h:mm A', 34871 LTS : 'h:mm:ss A', 34872 L : 'YYYY-MM-DD', 34873 LL : 'MMMM D, YYYY', 34874 LLL : 'MMMM D, YYYY h:mm A', 34875 LLLL : 'dddd, MMMM D, YYYY h:mm A' 34876 }, 34877 calendar : { 34878 sameDay : '[Today at] LT', 34879 nextDay : '[Tomorrow at] LT', 34880 nextWeek : 'dddd [at] LT', 34881 lastDay : '[Yesterday at] LT', 34882 lastWeek : '[Last] dddd [at] LT', 34883 sameElse : 'L' 34884 }, 34885 relativeTime : { 34886 future : 'in %s', 34887 past : '%s ago', 34888 s : 'a few seconds', 34889 ss : '%d seconds', 34890 m : 'a minute', 34891 mm : '%d minutes', 34892 h : 'an hour', 34893 hh : '%d hours', 34894 d : 'a day', 34895 dd : '%d days', 34896 M : 'a month', 34897 MM : '%d months', 34898 y : 'a year', 34899 yy : '%d years' 34900 }, 34901 dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, 34902 ordinal : function (number) { 34903 var b = number % 10, 34904 output = (~~(number % 100 / 10) === 1) ? 'th' : 34905 (b === 1) ? 'st' : 34906 (b === 2) ? 'nd' : 34907 (b === 3) ? 'rd' : 'th'; 34908 return number + output; 34909 } 34910 }); 34911 34912 return enCa; 34913 34914}))); 34915 34916 34917/***/ }), 34918/* 247 */ 34919/***/ (function(module, exports, __webpack_require__) { 34920 34921//! moment.js locale configuration 34922 34923;(function (global, factory) { 34924 true ? factory(__webpack_require__(1)) : 34925 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 34926 factory(global.moment) 34927}(this, (function (moment) { 'use strict'; 34928 34929 34930 var enGb = moment.defineLocale('en-gb', { 34931 months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), 34932 monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), 34933 weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), 34934 weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), 34935 weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), 34936 longDateFormat : { 34937 LT : 'HH:mm', 34938 LTS : 'HH:mm:ss', 34939 L : 'DD/MM/YYYY', 34940 LL : 'D MMMM YYYY', 34941 LLL : 'D MMMM YYYY HH:mm', 34942 LLLL : 'dddd, D MMMM YYYY HH:mm' 34943 }, 34944 calendar : { 34945 sameDay : '[Today at] LT', 34946 nextDay : '[Tomorrow at] LT', 34947 nextWeek : 'dddd [at] LT', 34948 lastDay : '[Yesterday at] LT', 34949 lastWeek : '[Last] dddd [at] LT', 34950 sameElse : 'L' 34951 }, 34952 relativeTime : { 34953 future : 'in %s', 34954 past : '%s ago', 34955 s : 'a few seconds', 34956 ss : '%d seconds', 34957 m : 'a minute', 34958 mm : '%d minutes', 34959 h : 'an hour', 34960 hh : '%d hours', 34961 d : 'a day', 34962 dd : '%d days', 34963 M : 'a month', 34964 MM : '%d months', 34965 y : 'a year', 34966 yy : '%d years' 34967 }, 34968 dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, 34969 ordinal : function (number) { 34970 var b = number % 10, 34971 output = (~~(number % 100 / 10) === 1) ? 'th' : 34972 (b === 1) ? 'st' : 34973 (b === 2) ? 'nd' : 34974 (b === 3) ? 'rd' : 'th'; 34975 return number + output; 34976 }, 34977 week : { 34978 dow : 1, // Monday is the first day of the week. 34979 doy : 4 // The week that contains Jan 4th is the first week of the year. 34980 } 34981 }); 34982 34983 return enGb; 34984 34985}))); 34986 34987 34988/***/ }), 34989/* 248 */ 34990/***/ (function(module, exports, __webpack_require__) { 34991 34992//! moment.js locale configuration 34993 34994;(function (global, factory) { 34995 true ? factory(__webpack_require__(1)) : 34996 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 34997 factory(global.moment) 34998}(this, (function (moment) { 'use strict'; 34999 35000 35001 var enIe = moment.defineLocale('en-ie', { 35002 months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), 35003 monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), 35004 weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), 35005 weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), 35006 weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), 35007 longDateFormat : { 35008 LT : 'HH:mm', 35009 LTS : 'HH:mm:ss', 35010 L : 'DD-MM-YYYY', 35011 LL : 'D MMMM YYYY', 35012 LLL : 'D MMMM YYYY HH:mm', 35013 LLLL : 'dddd D MMMM YYYY HH:mm' 35014 }, 35015 calendar : { 35016 sameDay : '[Today at] LT', 35017 nextDay : '[Tomorrow at] LT', 35018 nextWeek : 'dddd [at] LT', 35019 lastDay : '[Yesterday at] LT', 35020 lastWeek : '[Last] dddd [at] LT', 35021 sameElse : 'L' 35022 }, 35023 relativeTime : { 35024 future : 'in %s', 35025 past : '%s ago', 35026 s : 'a few seconds', 35027 ss : '%d seconds', 35028 m : 'a minute', 35029 mm : '%d minutes', 35030 h : 'an hour', 35031 hh : '%d hours', 35032 d : 'a day', 35033 dd : '%d days', 35034 M : 'a month', 35035 MM : '%d months', 35036 y : 'a year', 35037 yy : '%d years' 35038 }, 35039 dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, 35040 ordinal : function (number) { 35041 var b = number % 10, 35042 output = (~~(number % 100 / 10) === 1) ? 'th' : 35043 (b === 1) ? 'st' : 35044 (b === 2) ? 'nd' : 35045 (b === 3) ? 'rd' : 'th'; 35046 return number + output; 35047 }, 35048 week : { 35049 dow : 1, // Monday is the first day of the week. 35050 doy : 4 // The week that contains Jan 4th is the first week of the year. 35051 } 35052 }); 35053 35054 return enIe; 35055 35056}))); 35057 35058 35059/***/ }), 35060/* 249 */ 35061/***/ (function(module, exports, __webpack_require__) { 35062 35063//! moment.js locale configuration 35064 35065;(function (global, factory) { 35066 true ? factory(__webpack_require__(1)) : 35067 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 35068 factory(global.moment) 35069}(this, (function (moment) { 'use strict'; 35070 35071 35072 var enIl = moment.defineLocale('en-il', { 35073 months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), 35074 monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), 35075 weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), 35076 weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), 35077 weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), 35078 longDateFormat : { 35079 LT : 'HH:mm', 35080 LTS : 'HH:mm:ss', 35081 L : 'DD/MM/YYYY', 35082 LL : 'D MMMM YYYY', 35083 LLL : 'D MMMM YYYY HH:mm', 35084 LLLL : 'dddd, D MMMM YYYY HH:mm' 35085 }, 35086 calendar : { 35087 sameDay : '[Today at] LT', 35088 nextDay : '[Tomorrow at] LT', 35089 nextWeek : 'dddd [at] LT', 35090 lastDay : '[Yesterday at] LT', 35091 lastWeek : '[Last] dddd [at] LT', 35092 sameElse : 'L' 35093 }, 35094 relativeTime : { 35095 future : 'in %s', 35096 past : '%s ago', 35097 s : 'a few seconds', 35098 m : 'a minute', 35099 mm : '%d minutes', 35100 h : 'an hour', 35101 hh : '%d hours', 35102 d : 'a day', 35103 dd : '%d days', 35104 M : 'a month', 35105 MM : '%d months', 35106 y : 'a year', 35107 yy : '%d years' 35108 }, 35109 dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, 35110 ordinal : function (number) { 35111 var b = number % 10, 35112 output = (~~(number % 100 / 10) === 1) ? 'th' : 35113 (b === 1) ? 'st' : 35114 (b === 2) ? 'nd' : 35115 (b === 3) ? 'rd' : 'th'; 35116 return number + output; 35117 } 35118 }); 35119 35120 return enIl; 35121 35122}))); 35123 35124 35125/***/ }), 35126/* 250 */ 35127/***/ (function(module, exports, __webpack_require__) { 35128 35129//! moment.js locale configuration 35130 35131;(function (global, factory) { 35132 true ? factory(__webpack_require__(1)) : 35133 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 35134 factory(global.moment) 35135}(this, (function (moment) { 'use strict'; 35136 35137 35138 var enNz = moment.defineLocale('en-nz', { 35139 months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), 35140 monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), 35141 weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), 35142 weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), 35143 weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), 35144 longDateFormat : { 35145 LT : 'h:mm A', 35146 LTS : 'h:mm:ss A', 35147 L : 'DD/MM/YYYY', 35148 LL : 'D MMMM YYYY', 35149 LLL : 'D MMMM YYYY h:mm A', 35150 LLLL : 'dddd, D MMMM YYYY h:mm A' 35151 }, 35152 calendar : { 35153 sameDay : '[Today at] LT', 35154 nextDay : '[Tomorrow at] LT', 35155 nextWeek : 'dddd [at] LT', 35156 lastDay : '[Yesterday at] LT', 35157 lastWeek : '[Last] dddd [at] LT', 35158 sameElse : 'L' 35159 }, 35160 relativeTime : { 35161 future : 'in %s', 35162 past : '%s ago', 35163 s : 'a few seconds', 35164 ss : '%d seconds', 35165 m : 'a minute', 35166 mm : '%d minutes', 35167 h : 'an hour', 35168 hh : '%d hours', 35169 d : 'a day', 35170 dd : '%d days', 35171 M : 'a month', 35172 MM : '%d months', 35173 y : 'a year', 35174 yy : '%d years' 35175 }, 35176 dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, 35177 ordinal : function (number) { 35178 var b = number % 10, 35179 output = (~~(number % 100 / 10) === 1) ? 'th' : 35180 (b === 1) ? 'st' : 35181 (b === 2) ? 'nd' : 35182 (b === 3) ? 'rd' : 'th'; 35183 return number + output; 35184 }, 35185 week : { 35186 dow : 1, // Monday is the first day of the week. 35187 doy : 4 // The week that contains Jan 4th is the first week of the year. 35188 } 35189 }); 35190 35191 return enNz; 35192 35193}))); 35194 35195 35196/***/ }), 35197/* 251 */ 35198/***/ (function(module, exports, __webpack_require__) { 35199 35200//! moment.js locale configuration 35201 35202;(function (global, factory) { 35203 true ? factory(__webpack_require__(1)) : 35204 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 35205 factory(global.moment) 35206}(this, (function (moment) { 'use strict'; 35207 35208 35209 var eo = moment.defineLocale('eo', { 35210 months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aÅgusto_septembro_oktobro_novembro_decembro'.split('_'), 35211 monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aÅg_sep_okt_nov_dec'.split('_'), 35212 weekdays : 'dimanÄo_lundo_mardo_merkredo_ĵaÅdo_vendredo_sabato'.split('_'), 35213 weekdaysShort : 'dim_lun_mard_merk_ĵaÅ_ven_sab'.split('_'), 35214 weekdaysMin : 'di_lu_ma_me_ĵa_ve_sa'.split('_'), 35215 longDateFormat : { 35216 LT : 'HH:mm', 35217 LTS : 'HH:mm:ss', 35218 L : 'YYYY-MM-DD', 35219 LL : 'D[-a de] MMMM, YYYY', 35220 LLL : 'D[-a de] MMMM, YYYY HH:mm', 35221 LLLL : 'dddd, [la] D[-a de] MMMM, YYYY HH:mm' 35222 }, 35223 meridiemParse: /[ap]\.t\.m/i, 35224 isPM: function (input) { 35225 return input.charAt(0).toLowerCase() === 'p'; 35226 }, 35227 meridiem : function (hours, minutes, isLower) { 35228 if (hours > 11) { 35229 return isLower ? 'p.t.m.' : 'P.T.M.'; 35230 } else { 35231 return isLower ? 'a.t.m.' : 'A.T.M.'; 35232 } 35233 }, 35234 calendar : { 35235 sameDay : '[HodiaÅ je] LT', 35236 nextDay : '[MorgaÅ je] LT', 35237 nextWeek : 'dddd [je] LT', 35238 lastDay : '[HieraÅ je] LT', 35239 lastWeek : '[pasinta] dddd [je] LT', 35240 sameElse : 'L' 35241 }, 35242 relativeTime : { 35243 future : 'post %s', 35244 past : 'antaÅ %s', 35245 s : 'sekundoj', 35246 ss : '%d sekundoj', 35247 m : 'minuto', 35248 mm : '%d minutoj', 35249 h : 'horo', 35250 hh : '%d horoj', 35251 d : 'tago',//ne 'diurno', Äar estas uzita por proksimumo 35252 dd : '%d tagoj', 35253 M : 'monato', 35254 MM : '%d monatoj', 35255 y : 'jaro', 35256 yy : '%d jaroj' 35257 }, 35258 dayOfMonthOrdinalParse: /\d{1,2}a/, 35259 ordinal : '%da', 35260 week : { 35261 dow : 1, // Monday is the first day of the week. 35262 doy : 7 // The week that contains Jan 1st is the first week of the year. 35263 } 35264 }); 35265 35266 return eo; 35267 35268}))); 35269 35270 35271/***/ }), 35272/* 252 */ 35273/***/ (function(module, exports, __webpack_require__) { 35274 35275//! moment.js locale configuration 35276 35277;(function (global, factory) { 35278 true ? factory(__webpack_require__(1)) : 35279 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 35280 factory(global.moment) 35281}(this, (function (moment) { 'use strict'; 35282 35283 35284 var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'), 35285 monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'); 35286 35287 var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i]; 35288 var monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; 35289 35290 var es = moment.defineLocale('es', { 35291 months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), 35292 monthsShort : function (m, format) { 35293 if (!m) { 35294 return monthsShortDot; 35295 } else if (/-MMM-/.test(format)) { 35296 return monthsShort[m.month()]; 35297 } else { 35298 return monthsShortDot[m.month()]; 35299 } 35300 }, 35301 monthsRegex : monthsRegex, 35302 monthsShortRegex : monthsRegex, 35303 monthsStrictRegex : /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, 35304 monthsShortStrictRegex : /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, 35305 monthsParse : monthsParse, 35306 longMonthsParse : monthsParse, 35307 shortMonthsParse : monthsParse, 35308 weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), 35309 weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), 35310 weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'), 35311 weekdaysParseExact : true, 35312 longDateFormat : { 35313 LT : 'H:mm', 35314 LTS : 'H:mm:ss', 35315 L : 'DD/MM/YYYY', 35316 LL : 'D [de] MMMM [de] YYYY', 35317 LLL : 'D [de] MMMM [de] YYYY H:mm', 35318 LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm' 35319 }, 35320 calendar : { 35321 sameDay : function () { 35322 return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 35323 }, 35324 nextDay : function () { 35325 return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 35326 }, 35327 nextWeek : function () { 35328 return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 35329 }, 35330 lastDay : function () { 35331 return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 35332 }, 35333 lastWeek : function () { 35334 return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 35335 }, 35336 sameElse : 'L' 35337 }, 35338 relativeTime : { 35339 future : 'en %s', 35340 past : 'hace %s', 35341 s : 'unos segundos', 35342 ss : '%d segundos', 35343 m : 'un minuto', 35344 mm : '%d minutos', 35345 h : 'una hora', 35346 hh : '%d horas', 35347 d : 'un dÃa', 35348 dd : '%d dÃas', 35349 M : 'un mes', 35350 MM : '%d meses', 35351 y : 'un año', 35352 yy : '%d años' 35353 }, 35354 dayOfMonthOrdinalParse : /\d{1,2}º/, 35355 ordinal : '%dº', 35356 week : { 35357 dow : 1, // Monday is the first day of the week. 35358 doy : 4 // The week that contains Jan 4th is the first week of the year. 35359 } 35360 }); 35361 35362 return es; 35363 35364}))); 35365 35366 35367/***/ }), 35368/* 253 */ 35369/***/ (function(module, exports, __webpack_require__) { 35370 35371//! moment.js locale configuration 35372 35373;(function (global, factory) { 35374 true ? factory(__webpack_require__(1)) : 35375 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 35376 factory(global.moment) 35377}(this, (function (moment) { 'use strict'; 35378 35379 35380 var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'), 35381 monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'); 35382 35383 var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i]; 35384 var monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; 35385 35386 var esDo = moment.defineLocale('es-do', { 35387 months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), 35388 monthsShort : function (m, format) { 35389 if (!m) { 35390 return monthsShortDot; 35391 } else if (/-MMM-/.test(format)) { 35392 return monthsShort[m.month()]; 35393 } else { 35394 return monthsShortDot[m.month()]; 35395 } 35396 }, 35397 monthsRegex: monthsRegex, 35398 monthsShortRegex: monthsRegex, 35399 monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, 35400 monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, 35401 monthsParse: monthsParse, 35402 longMonthsParse: monthsParse, 35403 shortMonthsParse: monthsParse, 35404 weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), 35405 weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), 35406 weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'), 35407 weekdaysParseExact : true, 35408 longDateFormat : { 35409 LT : 'h:mm A', 35410 LTS : 'h:mm:ss A', 35411 L : 'DD/MM/YYYY', 35412 LL : 'D [de] MMMM [de] YYYY', 35413 LLL : 'D [de] MMMM [de] YYYY h:mm A', 35414 LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A' 35415 }, 35416 calendar : { 35417 sameDay : function () { 35418 return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 35419 }, 35420 nextDay : function () { 35421 return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 35422 }, 35423 nextWeek : function () { 35424 return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 35425 }, 35426 lastDay : function () { 35427 return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 35428 }, 35429 lastWeek : function () { 35430 return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 35431 }, 35432 sameElse : 'L' 35433 }, 35434 relativeTime : { 35435 future : 'en %s', 35436 past : 'hace %s', 35437 s : 'unos segundos', 35438 ss : '%d segundos', 35439 m : 'un minuto', 35440 mm : '%d minutos', 35441 h : 'una hora', 35442 hh : '%d horas', 35443 d : 'un dÃa', 35444 dd : '%d dÃas', 35445 M : 'un mes', 35446 MM : '%d meses', 35447 y : 'un año', 35448 yy : '%d años' 35449 }, 35450 dayOfMonthOrdinalParse : /\d{1,2}º/, 35451 ordinal : '%dº', 35452 week : { 35453 dow : 1, // Monday is the first day of the week. 35454 doy : 4 // The week that contains Jan 4th is the first week of the year. 35455 } 35456 }); 35457 35458 return esDo; 35459 35460}))); 35461 35462 35463/***/ }), 35464/* 254 */ 35465/***/ (function(module, exports, __webpack_require__) { 35466 35467//! moment.js locale configuration 35468 35469;(function (global, factory) { 35470 true ? factory(__webpack_require__(1)) : 35471 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 35472 factory(global.moment) 35473}(this, (function (moment) { 'use strict'; 35474 35475 35476 var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'), 35477 monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'); 35478 35479 var esUs = moment.defineLocale('es-us', { 35480 months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), 35481 monthsShort : function (m, format) { 35482 if (!m) { 35483 return monthsShortDot; 35484 } else if (/-MMM-/.test(format)) { 35485 return monthsShort[m.month()]; 35486 } else { 35487 return monthsShortDot[m.month()]; 35488 } 35489 }, 35490 monthsParseExact : true, 35491 weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), 35492 weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), 35493 weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'), 35494 weekdaysParseExact : true, 35495 longDateFormat : { 35496 LT : 'h:mm A', 35497 LTS : 'h:mm:ss A', 35498 L : 'MM/DD/YYYY', 35499 LL : 'MMMM [de] D [de] YYYY', 35500 LLL : 'MMMM [de] D [de] YYYY h:mm A', 35501 LLLL : 'dddd, MMMM [de] D [de] YYYY h:mm A' 35502 }, 35503 calendar : { 35504 sameDay : function () { 35505 return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 35506 }, 35507 nextDay : function () { 35508 return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 35509 }, 35510 nextWeek : function () { 35511 return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 35512 }, 35513 lastDay : function () { 35514 return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 35515 }, 35516 lastWeek : function () { 35517 return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 35518 }, 35519 sameElse : 'L' 35520 }, 35521 relativeTime : { 35522 future : 'en %s', 35523 past : 'hace %s', 35524 s : 'unos segundos', 35525 ss : '%d segundos', 35526 m : 'un minuto', 35527 mm : '%d minutos', 35528 h : 'una hora', 35529 hh : '%d horas', 35530 d : 'un dÃa', 35531 dd : '%d dÃas', 35532 M : 'un mes', 35533 MM : '%d meses', 35534 y : 'un año', 35535 yy : '%d años' 35536 }, 35537 dayOfMonthOrdinalParse : /\d{1,2}º/, 35538 ordinal : '%dº', 35539 week : { 35540 dow : 0, // Sunday is the first day of the week. 35541 doy : 6 // The week that contains Jan 1st is the first week of the year. 35542 } 35543 }); 35544 35545 return esUs; 35546 35547}))); 35548 35549 35550/***/ }), 35551/* 255 */ 35552/***/ (function(module, exports, __webpack_require__) { 35553 35554//! moment.js locale configuration 35555 35556;(function (global, factory) { 35557 true ? factory(__webpack_require__(1)) : 35558 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 35559 factory(global.moment) 35560}(this, (function (moment) { 'use strict'; 35561 35562 35563 function processRelativeTime(number, withoutSuffix, key, isFuture) { 35564 var format = { 35565 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'], 35566 'ss': [number + 'sekundi', number + 'sekundit'], 35567 'm' : ['ühe minuti', 'üks minut'], 35568 'mm': [number + ' minuti', number + ' minutit'], 35569 'h' : ['ühe tunni', 'tund aega', 'üks tund'], 35570 'hh': [number + ' tunni', number + ' tundi'], 35571 'd' : ['ühe päeva', 'üks päev'], 35572 'M' : ['kuu aja', 'kuu aega', 'üks kuu'], 35573 'MM': [number + ' kuu', number + ' kuud'], 35574 'y' : ['ühe aasta', 'aasta', 'üks aasta'], 35575 'yy': [number + ' aasta', number + ' aastat'] 35576 }; 35577 if (withoutSuffix) { 35578 return format[key][2] ? format[key][2] : format[key][1]; 35579 } 35580 return isFuture ? format[key][0] : format[key][1]; 35581 } 35582 35583 var et = moment.defineLocale('et', { 35584 months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'), 35585 monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'), 35586 weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'), 35587 weekdaysShort : 'P_E_T_K_N_R_L'.split('_'), 35588 weekdaysMin : 'P_E_T_K_N_R_L'.split('_'), 35589 longDateFormat : { 35590 LT : 'H:mm', 35591 LTS : 'H:mm:ss', 35592 L : 'DD.MM.YYYY', 35593 LL : 'D. MMMM YYYY', 35594 LLL : 'D. MMMM YYYY H:mm', 35595 LLLL : 'dddd, D. MMMM YYYY H:mm' 35596 }, 35597 calendar : { 35598 sameDay : '[Täna,] LT', 35599 nextDay : '[Homme,] LT', 35600 nextWeek : '[Järgmine] dddd LT', 35601 lastDay : '[Eile,] LT', 35602 lastWeek : '[Eelmine] dddd LT', 35603 sameElse : 'L' 35604 }, 35605 relativeTime : { 35606 future : '%s pärast', 35607 past : '%s tagasi', 35608 s : processRelativeTime, 35609 ss : processRelativeTime, 35610 m : processRelativeTime, 35611 mm : processRelativeTime, 35612 h : processRelativeTime, 35613 hh : processRelativeTime, 35614 d : processRelativeTime, 35615 dd : '%d päeva', 35616 M : processRelativeTime, 35617 MM : processRelativeTime, 35618 y : processRelativeTime, 35619 yy : processRelativeTime 35620 }, 35621 dayOfMonthOrdinalParse: /\d{1,2}\./, 35622 ordinal : '%d.', 35623 week : { 35624 dow : 1, // Monday is the first day of the week. 35625 doy : 4 // The week that contains Jan 4th is the first week of the year. 35626 } 35627 }); 35628 35629 return et; 35630 35631}))); 35632 35633 35634/***/ }), 35635/* 256 */ 35636/***/ (function(module, exports, __webpack_require__) { 35637 35638//! moment.js locale configuration 35639 35640;(function (global, factory) { 35641 true ? factory(__webpack_require__(1)) : 35642 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 35643 factory(global.moment) 35644}(this, (function (moment) { 'use strict'; 35645 35646 35647 var eu = moment.defineLocale('eu', { 35648 months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'), 35649 monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'), 35650 monthsParseExact : true, 35651 weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'), 35652 weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'), 35653 weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'), 35654 weekdaysParseExact : true, 35655 longDateFormat : { 35656 LT : 'HH:mm', 35657 LTS : 'HH:mm:ss', 35658 L : 'YYYY-MM-DD', 35659 LL : 'YYYY[ko] MMMM[ren] D[a]', 35660 LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm', 35661 LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm', 35662 l : 'YYYY-M-D', 35663 ll : 'YYYY[ko] MMM D[a]', 35664 lll : 'YYYY[ko] MMM D[a] HH:mm', 35665 llll : 'ddd, YYYY[ko] MMM D[a] HH:mm' 35666 }, 35667 calendar : { 35668 sameDay : '[gaur] LT[etan]', 35669 nextDay : '[bihar] LT[etan]', 35670 nextWeek : 'dddd LT[etan]', 35671 lastDay : '[atzo] LT[etan]', 35672 lastWeek : '[aurreko] dddd LT[etan]', 35673 sameElse : 'L' 35674 }, 35675 relativeTime : { 35676 future : '%s barru', 35677 past : 'duela %s', 35678 s : 'segundo batzuk', 35679 ss : '%d segundo', 35680 m : 'minutu bat', 35681 mm : '%d minutu', 35682 h : 'ordu bat', 35683 hh : '%d ordu', 35684 d : 'egun bat', 35685 dd : '%d egun', 35686 M : 'hilabete bat', 35687 MM : '%d hilabete', 35688 y : 'urte bat', 35689 yy : '%d urte' 35690 }, 35691 dayOfMonthOrdinalParse: /\d{1,2}\./, 35692 ordinal : '%d.', 35693 week : { 35694 dow : 1, // Monday is the first day of the week. 35695 doy : 7 // The week that contains Jan 1st is the first week of the year. 35696 } 35697 }); 35698 35699 return eu; 35700 35701}))); 35702 35703 35704/***/ }), 35705/* 257 */ 35706/***/ (function(module, exports, __webpack_require__) { 35707 35708//! moment.js locale configuration 35709 35710;(function (global, factory) { 35711 true ? factory(__webpack_require__(1)) : 35712 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 35713 factory(global.moment) 35714}(this, (function (moment) { 'use strict'; 35715 35716 35717 var symbolMap = { 35718 '1': 'Û±', 35719 '2': 'Û²', 35720 '3': 'Û³', 35721 '4': 'Û´', 35722 '5': 'Ûµ', 35723 '6': 'Û¶', 35724 '7': 'Û·', 35725 '8': 'Û¸', 35726 '9': 'Û¹', 35727 '0': 'Û°' 35728 }, numberMap = { 35729 'Û±': '1', 35730 'Û²': '2', 35731 'Û³': '3', 35732 'Û´': '4', 35733 'Ûµ': '5', 35734 'Û¶': '6', 35735 'Û·': '7', 35736 'Û¸': '8', 35737 'Û¹': '9', 35738 'Û°': '0' 35739 }; 35740 35741 var fa = moment.defineLocale('fa', { 35742 months : 'ÚØ§ÙÙÛÙ_ÙÙØ±ÛÙ_٠ارس_Ø¢ÙØ±ÛÙ_Ù Ù_ÚÙØ¦Ù_ÚÙØ¦ÛÙ_Ø§ÙØª_سپتا٠بر_اکتبر_ÙÙØ§Ù بر_دسا٠بر'.split('_'), 35743 monthsShort : 'ÚØ§ÙÙÛÙ_ÙÙØ±ÛÙ_٠ارس_Ø¢ÙØ±ÛÙ_Ù Ù_ÚÙØ¦Ù_ÚÙØ¦ÛÙ_Ø§ÙØª_سپتا٠بر_اکتبر_ÙÙØ§Ù بر_دسا٠بر'.split('_'), 35744 weekdays : 'ÛÚ©\u200cØ´ÙØ¨Ù_Ø¯ÙØ´ÙبÙ_سÙ\u200cØ´ÙØ¨Ù_ÚÙØ§Ø±Ø´ÙبÙ_Ù¾ÙØ¬\u200cØ´ÙØ¨Ù_ج٠عÙ_Ø´ÙØ¨Ù'.split('_'), 35745 weekdaysShort : 'ÛÚ©\u200cØ´ÙØ¨Ù_Ø¯ÙØ´ÙبÙ_سÙ\u200cØ´ÙØ¨Ù_ÚÙØ§Ø±Ø´ÙبÙ_Ù¾ÙØ¬\u200cØ´ÙØ¨Ù_ج٠عÙ_Ø´ÙØ¨Ù'.split('_'), 35746 weekdaysMin : 'Û_د_س_Ú_Ù¾_ج_Ø´'.split('_'), 35747 weekdaysParseExact : true, 35748 longDateFormat : { 35749 LT : 'HH:mm', 35750 LTS : 'HH:mm:ss', 35751 L : 'DD/MM/YYYY', 35752 LL : 'D MMMM YYYY', 35753 LLL : 'D MMMM YYYY HH:mm', 35754 LLLL : 'dddd, D MMMM YYYY HH:mm' 35755 }, 35756 meridiemParse: /ÙØ¨Ù از Ø¸ÙØ±|بعد از Ø¸ÙØ±/, 35757 isPM: function (input) { 35758 return /بعد از Ø¸ÙØ±/.test(input); 35759 }, 35760 meridiem : function (hour, minute, isLower) { 35761 if (hour < 12) { 35762 return 'ÙØ¨Ù از Ø¸ÙØ±'; 35763 } else { 35764 return 'بعد از Ø¸ÙØ±'; 35765 } 35766 }, 35767 calendar : { 35768 sameDay : '[Ø§Ù Ø±ÙØ² ساعت] LT', 35769 nextDay : '[ÙØ±Ø¯Ø§ ساعت] LT', 35770 nextWeek : 'dddd [ساعت] LT', 35771 lastDay : '[Ø¯ÛØ±Ùز ساعت] LT', 35772 lastWeek : 'dddd [Ù¾ÛØ´] [ساعت] LT', 35773 sameElse : 'L' 35774 }, 35775 relativeTime : { 35776 future : 'در %s', 35777 past : '%s Ù¾ÛØ´', 35778 s : 'ÚÙØ¯ ثاÙÛÙ', 35779 ss : 'ثاÙÛÙ d%', 35780 m : 'ÛÚ© دÙÛÙÙ', 35781 mm : '%d دÙÛÙÙ', 35782 h : 'ÛÚ© ساعت', 35783 hh : '%d ساعت', 35784 d : 'ÛÚ© Ø±ÙØ²', 35785 dd : '%d Ø±ÙØ²', 35786 M : 'ÛÚ© ٠اÙ', 35787 MM : '%d ٠اÙ', 35788 y : 'ÛÚ© ساÙ', 35789 yy : '%d ساÙ' 35790 }, 35791 preparse: function (string) { 35792 return string.replace(/[Û°-Û¹]/g, function (match) { 35793 return numberMap[match]; 35794 }).replace(/Ø/g, ','); 35795 }, 35796 postformat: function (string) { 35797 return string.replace(/\d/g, function (match) { 35798 return symbolMap[match]; 35799 }).replace(/,/g, 'Ø'); 35800 }, 35801 dayOfMonthOrdinalParse: /\d{1,2}Ù /, 35802 ordinal : '%dÙ ', 35803 week : { 35804 dow : 6, // Saturday is the first day of the week. 35805 doy : 12 // The week that contains Jan 1st is the first week of the year. 35806 } 35807 }); 35808 35809 return fa; 35810 35811}))); 35812 35813 35814/***/ }), 35815/* 258 */ 35816/***/ (function(module, exports, __webpack_require__) { 35817 35818//! moment.js locale configuration 35819 35820;(function (global, factory) { 35821 true ? factory(__webpack_require__(1)) : 35822 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 35823 factory(global.moment) 35824}(this, (function (moment) { 'use strict'; 35825 35826 35827 var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '), 35828 numbersFuture = [ 35829 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden', 35830 numbersPast[7], numbersPast[8], numbersPast[9] 35831 ]; 35832 function translate(number, withoutSuffix, key, isFuture) { 35833 var result = ''; 35834 switch (key) { 35835 case 's': 35836 return isFuture ? 'muutaman sekunnin' : 'muutama sekunti'; 35837 case 'ss': 35838 return isFuture ? 'sekunnin' : 'sekuntia'; 35839 case 'm': 35840 return isFuture ? 'minuutin' : 'minuutti'; 35841 case 'mm': 35842 result = isFuture ? 'minuutin' : 'minuuttia'; 35843 break; 35844 case 'h': 35845 return isFuture ? 'tunnin' : 'tunti'; 35846 case 'hh': 35847 result = isFuture ? 'tunnin' : 'tuntia'; 35848 break; 35849 case 'd': 35850 return isFuture ? 'päivän' : 'päivä'; 35851 case 'dd': 35852 result = isFuture ? 'päivän' : 'päivää'; 35853 break; 35854 case 'M': 35855 return isFuture ? 'kuukauden' : 'kuukausi'; 35856 case 'MM': 35857 result = isFuture ? 'kuukauden' : 'kuukautta'; 35858 break; 35859 case 'y': 35860 return isFuture ? 'vuoden' : 'vuosi'; 35861 case 'yy': 35862 result = isFuture ? 'vuoden' : 'vuotta'; 35863 break; 35864 } 35865 result = verbalNumber(number, isFuture) + ' ' + result; 35866 return result; 35867 } 35868 function verbalNumber(number, isFuture) { 35869 return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number; 35870 } 35871 35872 var fi = moment.defineLocale('fi', { 35873 months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'), 35874 monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'), 35875 weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'), 35876 weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'), 35877 weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'), 35878 longDateFormat : { 35879 LT : 'HH.mm', 35880 LTS : 'HH.mm.ss', 35881 L : 'DD.MM.YYYY', 35882 LL : 'Do MMMM[ta] YYYY', 35883 LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm', 35884 LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm', 35885 l : 'D.M.YYYY', 35886 ll : 'Do MMM YYYY', 35887 lll : 'Do MMM YYYY, [klo] HH.mm', 35888 llll : 'ddd, Do MMM YYYY, [klo] HH.mm' 35889 }, 35890 calendar : { 35891 sameDay : '[tänään] [klo] LT', 35892 nextDay : '[huomenna] [klo] LT', 35893 nextWeek : 'dddd [klo] LT', 35894 lastDay : '[eilen] [klo] LT', 35895 lastWeek : '[viime] dddd[na] [klo] LT', 35896 sameElse : 'L' 35897 }, 35898 relativeTime : { 35899 future : '%s päästä', 35900 past : '%s sitten', 35901 s : translate, 35902 ss : translate, 35903 m : translate, 35904 mm : translate, 35905 h : translate, 35906 hh : translate, 35907 d : translate, 35908 dd : translate, 35909 M : translate, 35910 MM : translate, 35911 y : translate, 35912 yy : translate 35913 }, 35914 dayOfMonthOrdinalParse: /\d{1,2}\./, 35915 ordinal : '%d.', 35916 week : { 35917 dow : 1, // Monday is the first day of the week. 35918 doy : 4 // The week that contains Jan 4th is the first week of the year. 35919 } 35920 }); 35921 35922 return fi; 35923 35924}))); 35925 35926 35927/***/ }), 35928/* 259 */ 35929/***/ (function(module, exports, __webpack_require__) { 35930 35931//! moment.js locale configuration 35932 35933;(function (global, factory) { 35934 true ? factory(__webpack_require__(1)) : 35935 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 35936 factory(global.moment) 35937}(this, (function (moment) { 'use strict'; 35938 35939 35940 var fo = moment.defineLocale('fo', { 35941 months : 'januar_februar_mars_aprÃl_mai_juni_juli_august_september_oktober_november_desember'.split('_'), 35942 monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), 35943 weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_frÃggjadagur_leygardagur'.split('_'), 35944 weekdaysShort : 'sun_mán_týs_mik_hós_frÃ_ley'.split('_'), 35945 weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'), 35946 longDateFormat : { 35947 LT : 'HH:mm', 35948 LTS : 'HH:mm:ss', 35949 L : 'DD/MM/YYYY', 35950 LL : 'D MMMM YYYY', 35951 LLL : 'D MMMM YYYY HH:mm', 35952 LLLL : 'dddd D. MMMM, YYYY HH:mm' 35953 }, 35954 calendar : { 35955 sameDay : '[à dag kl.] LT', 35956 nextDay : '[à morgin kl.] LT', 35957 nextWeek : 'dddd [kl.] LT', 35958 lastDay : '[à gjár kl.] LT', 35959 lastWeek : '[sÃðstu] dddd [kl] LT', 35960 sameElse : 'L' 35961 }, 35962 relativeTime : { 35963 future : 'um %s', 35964 past : '%s sÃðani', 35965 s : 'fá sekund', 35966 ss : '%d sekundir', 35967 m : 'ein minutt', 35968 mm : '%d minuttir', 35969 h : 'ein tÃmi', 35970 hh : '%d tÃmar', 35971 d : 'ein dagur', 35972 dd : '%d dagar', 35973 M : 'ein mánaði', 35974 MM : '%d mánaðir', 35975 y : 'eitt ár', 35976 yy : '%d ár' 35977 }, 35978 dayOfMonthOrdinalParse: /\d{1,2}\./, 35979 ordinal : '%d.', 35980 week : { 35981 dow : 1, // Monday is the first day of the week. 35982 doy : 4 // The week that contains Jan 4th is the first week of the year. 35983 } 35984 }); 35985 35986 return fo; 35987 35988}))); 35989 35990 35991/***/ }), 35992/* 260 */ 35993/***/ (function(module, exports, __webpack_require__) { 35994 35995//! moment.js locale configuration 35996 35997;(function (global, factory) { 35998 true ? factory(__webpack_require__(1)) : 35999 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 36000 factory(global.moment) 36001}(this, (function (moment) { 'use strict'; 36002 36003 36004 var fr = moment.defineLocale('fr', { 36005 months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'), 36006 monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), 36007 monthsParseExact : true, 36008 weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), 36009 weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), 36010 weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'), 36011 weekdaysParseExact : true, 36012 longDateFormat : { 36013 LT : 'HH:mm', 36014 LTS : 'HH:mm:ss', 36015 L : 'DD/MM/YYYY', 36016 LL : 'D MMMM YYYY', 36017 LLL : 'D MMMM YYYY HH:mm', 36018 LLLL : 'dddd D MMMM YYYY HH:mm' 36019 }, 36020 calendar : { 36021 sameDay : '[Aujourdâhui à ] LT', 36022 nextDay : '[Demain à ] LT', 36023 nextWeek : 'dddd [à ] LT', 36024 lastDay : '[Hier à ] LT', 36025 lastWeek : 'dddd [dernier à ] LT', 36026 sameElse : 'L' 36027 }, 36028 relativeTime : { 36029 future : 'dans %s', 36030 past : 'il y a %s', 36031 s : 'quelques secondes', 36032 ss : '%d secondes', 36033 m : 'une minute', 36034 mm : '%d minutes', 36035 h : 'une heure', 36036 hh : '%d heures', 36037 d : 'un jour', 36038 dd : '%d jours', 36039 M : 'un mois', 36040 MM : '%d mois', 36041 y : 'un an', 36042 yy : '%d ans' 36043 }, 36044 dayOfMonthOrdinalParse: /\d{1,2}(er|)/, 36045 ordinal : function (number, period) { 36046 switch (period) { 36047 // TODO: Return 'e' when day of month > 1. Move this case inside 36048 // block for masculine words below. 36049 // See https://github.com/moment/moment/issues/3375 36050 case 'D': 36051 return number + (number === 1 ? 'er' : ''); 36052 36053 // Words with masculine grammatical gender: mois, trimestre, jour 36054 default: 36055 case 'M': 36056 case 'Q': 36057 case 'DDD': 36058 case 'd': 36059 return number + (number === 1 ? 'er' : 'e'); 36060 36061 // Words with feminine grammatical gender: semaine 36062 case 'w': 36063 case 'W': 36064 return number + (number === 1 ? 're' : 'e'); 36065 } 36066 }, 36067 week : { 36068 dow : 1, // Monday is the first day of the week. 36069 doy : 4 // The week that contains Jan 4th is the first week of the year. 36070 } 36071 }); 36072 36073 return fr; 36074 36075}))); 36076 36077 36078/***/ }), 36079/* 261 */ 36080/***/ (function(module, exports, __webpack_require__) { 36081 36082//! moment.js locale configuration 36083 36084;(function (global, factory) { 36085 true ? factory(__webpack_require__(1)) : 36086 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 36087 factory(global.moment) 36088}(this, (function (moment) { 'use strict'; 36089 36090 36091 var frCa = moment.defineLocale('fr-ca', { 36092 months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'), 36093 monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), 36094 monthsParseExact : true, 36095 weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), 36096 weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), 36097 weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'), 36098 weekdaysParseExact : true, 36099 longDateFormat : { 36100 LT : 'HH:mm', 36101 LTS : 'HH:mm:ss', 36102 L : 'YYYY-MM-DD', 36103 LL : 'D MMMM YYYY', 36104 LLL : 'D MMMM YYYY HH:mm', 36105 LLLL : 'dddd D MMMM YYYY HH:mm' 36106 }, 36107 calendar : { 36108 sameDay : '[Aujourdâhui à ] LT', 36109 nextDay : '[Demain à ] LT', 36110 nextWeek : 'dddd [à ] LT', 36111 lastDay : '[Hier à ] LT', 36112 lastWeek : 'dddd [dernier à ] LT', 36113 sameElse : 'L' 36114 }, 36115 relativeTime : { 36116 future : 'dans %s', 36117 past : 'il y a %s', 36118 s : 'quelques secondes', 36119 ss : '%d secondes', 36120 m : 'une minute', 36121 mm : '%d minutes', 36122 h : 'une heure', 36123 hh : '%d heures', 36124 d : 'un jour', 36125 dd : '%d jours', 36126 M : 'un mois', 36127 MM : '%d mois', 36128 y : 'un an', 36129 yy : '%d ans' 36130 }, 36131 dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, 36132 ordinal : function (number, period) { 36133 switch (period) { 36134 // Words with masculine grammatical gender: mois, trimestre, jour 36135 default: 36136 case 'M': 36137 case 'Q': 36138 case 'D': 36139 case 'DDD': 36140 case 'd': 36141 return number + (number === 1 ? 'er' : 'e'); 36142 36143 // Words with feminine grammatical gender: semaine 36144 case 'w': 36145 case 'W': 36146 return number + (number === 1 ? 're' : 'e'); 36147 } 36148 } 36149 }); 36150 36151 return frCa; 36152 36153}))); 36154 36155 36156/***/ }), 36157/* 262 */ 36158/***/ (function(module, exports, __webpack_require__) { 36159 36160//! moment.js locale configuration 36161 36162;(function (global, factory) { 36163 true ? factory(__webpack_require__(1)) : 36164 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 36165 factory(global.moment) 36166}(this, (function (moment) { 'use strict'; 36167 36168 36169 var frCh = moment.defineLocale('fr-ch', { 36170 months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'), 36171 monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), 36172 monthsParseExact : true, 36173 weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), 36174 weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), 36175 weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'), 36176 weekdaysParseExact : true, 36177 longDateFormat : { 36178 LT : 'HH:mm', 36179 LTS : 'HH:mm:ss', 36180 L : 'DD.MM.YYYY', 36181 LL : 'D MMMM YYYY', 36182 LLL : 'D MMMM YYYY HH:mm', 36183 LLLL : 'dddd D MMMM YYYY HH:mm' 36184 }, 36185 calendar : { 36186 sameDay : '[Aujourdâhui à ] LT', 36187 nextDay : '[Demain à ] LT', 36188 nextWeek : 'dddd [à ] LT', 36189 lastDay : '[Hier à ] LT', 36190 lastWeek : 'dddd [dernier à ] LT', 36191 sameElse : 'L' 36192 }, 36193 relativeTime : { 36194 future : 'dans %s', 36195 past : 'il y a %s', 36196 s : 'quelques secondes', 36197 ss : '%d secondes', 36198 m : 'une minute', 36199 mm : '%d minutes', 36200 h : 'une heure', 36201 hh : '%d heures', 36202 d : 'un jour', 36203 dd : '%d jours', 36204 M : 'un mois', 36205 MM : '%d mois', 36206 y : 'un an', 36207 yy : '%d ans' 36208 }, 36209 dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, 36210 ordinal : function (number, period) { 36211 switch (period) { 36212 // Words with masculine grammatical gender: mois, trimestre, jour 36213 default: 36214 case 'M': 36215 case 'Q': 36216 case 'D': 36217 case 'DDD': 36218 case 'd': 36219 return number + (number === 1 ? 'er' : 'e'); 36220 36221 // Words with feminine grammatical gender: semaine 36222 case 'w': 36223 case 'W': 36224 return number + (number === 1 ? 're' : 'e'); 36225 } 36226 }, 36227 week : { 36228 dow : 1, // Monday is the first day of the week. 36229 doy : 4 // The week that contains Jan 4th is the first week of the year. 36230 } 36231 }); 36232 36233 return frCh; 36234 36235}))); 36236 36237 36238/***/ }), 36239/* 263 */ 36240/***/ (function(module, exports, __webpack_require__) { 36241 36242//! moment.js locale configuration 36243 36244;(function (global, factory) { 36245 true ? factory(__webpack_require__(1)) : 36246 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 36247 factory(global.moment) 36248}(this, (function (moment) { 'use strict'; 36249 36250 36251 var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'), 36252 monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'); 36253 36254 var fy = moment.defineLocale('fy', { 36255 months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'), 36256 monthsShort : function (m, format) { 36257 if (!m) { 36258 return monthsShortWithDots; 36259 } else if (/-MMM-/.test(format)) { 36260 return monthsShortWithoutDots[m.month()]; 36261 } else { 36262 return monthsShortWithDots[m.month()]; 36263 } 36264 }, 36265 monthsParseExact : true, 36266 weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'), 36267 weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'), 36268 weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'), 36269 weekdaysParseExact : true, 36270 longDateFormat : { 36271 LT : 'HH:mm', 36272 LTS : 'HH:mm:ss', 36273 L : 'DD-MM-YYYY', 36274 LL : 'D MMMM YYYY', 36275 LLL : 'D MMMM YYYY HH:mm', 36276 LLLL : 'dddd D MMMM YYYY HH:mm' 36277 }, 36278 calendar : { 36279 sameDay: '[hjoed om] LT', 36280 nextDay: '[moarn om] LT', 36281 nextWeek: 'dddd [om] LT', 36282 lastDay: '[juster om] LT', 36283 lastWeek: '[ôfrûne] dddd [om] LT', 36284 sameElse: 'L' 36285 }, 36286 relativeTime : { 36287 future : 'oer %s', 36288 past : '%s lyn', 36289 s : 'in pear sekonden', 36290 ss : '%d sekonden', 36291 m : 'ien minút', 36292 mm : '%d minuten', 36293 h : 'ien oere', 36294 hh : '%d oeren', 36295 d : 'ien dei', 36296 dd : '%d dagen', 36297 M : 'ien moanne', 36298 MM : '%d moannen', 36299 y : 'ien jier', 36300 yy : '%d jierren' 36301 }, 36302 dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, 36303 ordinal : function (number) { 36304 return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); 36305 }, 36306 week : { 36307 dow : 1, // Monday is the first day of the week. 36308 doy : 4 // The week that contains Jan 4th is the first week of the year. 36309 } 36310 }); 36311 36312 return fy; 36313 36314}))); 36315 36316 36317/***/ }), 36318/* 264 */ 36319/***/ (function(module, exports, __webpack_require__) { 36320 36321//! moment.js locale configuration 36322 36323;(function (global, factory) { 36324 true ? factory(__webpack_require__(1)) : 36325 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 36326 factory(global.moment) 36327}(this, (function (moment) { 'use strict'; 36328 36329 36330 var months = [ 36331 'Am Faoilleach', 'An Gearran', 'Am Mà rt', 'An Giblean', 'An Cèitean', 'An t-Ãgmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dà mhair', 'An t-Samhain', 'An Dùbhlachd' 36332 ]; 36333 36334 var monthsShort = ['Faoi', 'Gear', 'Mà rt', 'Gibl', 'Cèit', 'Ãgmh', 'Iuch', 'Lùn', 'Sult', 'Dà mh', 'Samh', 'Dùbh']; 36335 36336 var weekdays = ['Didòmhnaich', 'Diluain', 'Dimà irt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne']; 36337 36338 var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis']; 36339 36340 var weekdaysMin = ['Dò', 'Lu', 'Mà ', 'Ci', 'Ar', 'Ha', 'Sa']; 36341 36342 var gd = moment.defineLocale('gd', { 36343 months : months, 36344 monthsShort : monthsShort, 36345 monthsParseExact : true, 36346 weekdays : weekdays, 36347 weekdaysShort : weekdaysShort, 36348 weekdaysMin : weekdaysMin, 36349 longDateFormat : { 36350 LT : 'HH:mm', 36351 LTS : 'HH:mm:ss', 36352 L : 'DD/MM/YYYY', 36353 LL : 'D MMMM YYYY', 36354 LLL : 'D MMMM YYYY HH:mm', 36355 LLLL : 'dddd, D MMMM YYYY HH:mm' 36356 }, 36357 calendar : { 36358 sameDay : '[An-diugh aig] LT', 36359 nextDay : '[A-mà ireach aig] LT', 36360 nextWeek : 'dddd [aig] LT', 36361 lastDay : '[An-dè aig] LT', 36362 lastWeek : 'dddd [seo chaidh] [aig] LT', 36363 sameElse : 'L' 36364 }, 36365 relativeTime : { 36366 future : 'ann an %s', 36367 past : 'bho chionn %s', 36368 s : 'beagan diogan', 36369 ss : '%d diogan', 36370 m : 'mionaid', 36371 mm : '%d mionaidean', 36372 h : 'uair', 36373 hh : '%d uairean', 36374 d : 'latha', 36375 dd : '%d latha', 36376 M : 'mìos', 36377 MM : '%d mìosan', 36378 y : 'bliadhna', 36379 yy : '%d bliadhna' 36380 }, 36381 dayOfMonthOrdinalParse : /\d{1,2}(d|na|mh)/, 36382 ordinal : function (number) { 36383 var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh'; 36384 return number + output; 36385 }, 36386 week : { 36387 dow : 1, // Monday is the first day of the week. 36388 doy : 4 // The week that contains Jan 4th is the first week of the year. 36389 } 36390 }); 36391 36392 return gd; 36393 36394}))); 36395 36396 36397/***/ }), 36398/* 265 */ 36399/***/ (function(module, exports, __webpack_require__) { 36400 36401//! moment.js locale configuration 36402 36403;(function (global, factory) { 36404 true ? factory(__webpack_require__(1)) : 36405 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 36406 factory(global.moment) 36407}(this, (function (moment) { 'use strict'; 36408 36409 36410 var gl = moment.defineLocale('gl', { 36411 months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'), 36412 monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'), 36413 monthsParseExact: true, 36414 weekdays : 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'), 36415 weekdaysShort : 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'), 36416 weekdaysMin : 'do_lu_ma_mé_xo_ve_sá'.split('_'), 36417 weekdaysParseExact : true, 36418 longDateFormat : { 36419 LT : 'H:mm', 36420 LTS : 'H:mm:ss', 36421 L : 'DD/MM/YYYY', 36422 LL : 'D [de] MMMM [de] YYYY', 36423 LLL : 'D [de] MMMM [de] YYYY H:mm', 36424 LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm' 36425 }, 36426 calendar : { 36427 sameDay : function () { 36428 return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; 36429 }, 36430 nextDay : function () { 36431 return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; 36432 }, 36433 nextWeek : function () { 36434 return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; 36435 }, 36436 lastDay : function () { 36437 return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT'; 36438 }, 36439 lastWeek : function () { 36440 return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; 36441 }, 36442 sameElse : 'L' 36443 }, 36444 relativeTime : { 36445 future : function (str) { 36446 if (str.indexOf('un') === 0) { 36447 return 'n' + str; 36448 } 36449 return 'en ' + str; 36450 }, 36451 past : 'hai %s', 36452 s : 'uns segundos', 36453 ss : '%d segundos', 36454 m : 'un minuto', 36455 mm : '%d minutos', 36456 h : 'unha hora', 36457 hh : '%d horas', 36458 d : 'un dÃa', 36459 dd : '%d dÃas', 36460 M : 'un mes', 36461 MM : '%d meses', 36462 y : 'un ano', 36463 yy : '%d anos' 36464 }, 36465 dayOfMonthOrdinalParse : /\d{1,2}º/, 36466 ordinal : '%dº', 36467 week : { 36468 dow : 1, // Monday is the first day of the week. 36469 doy : 4 // The week that contains Jan 4th is the first week of the year. 36470 } 36471 }); 36472 36473 return gl; 36474 36475}))); 36476 36477 36478/***/ }), 36479/* 266 */ 36480/***/ (function(module, exports, __webpack_require__) { 36481 36482//! moment.js locale configuration 36483 36484;(function (global, factory) { 36485 true ? factory(__webpack_require__(1)) : 36486 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 36487 factory(global.moment) 36488}(this, (function (moment) { 'use strict'; 36489 36490 36491 function processRelativeTime(number, withoutSuffix, key, isFuture) { 36492 var format = { 36493 's': ['thodde secondanim', 'thodde second'], 36494 'ss': [number + ' secondanim', number + ' second'], 36495 'm': ['eka mintan', 'ek minute'], 36496 'mm': [number + ' mintanim', number + ' mintam'], 36497 'h': ['eka horan', 'ek hor'], 36498 'hh': [number + ' horanim', number + ' horam'], 36499 'd': ['eka disan', 'ek dis'], 36500 'dd': [number + ' disanim', number + ' dis'], 36501 'M': ['eka mhoinean', 'ek mhoino'], 36502 'MM': [number + ' mhoineanim', number + ' mhoine'], 36503 'y': ['eka vorsan', 'ek voros'], 36504 'yy': [number + ' vorsanim', number + ' vorsam'] 36505 }; 36506 return withoutSuffix ? format[key][0] : format[key][1]; 36507 } 36508 36509 var gomLatn = moment.defineLocale('gom-latn', { 36510 months : 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'), 36511 monthsShort : 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'), 36512 monthsParseExact : true, 36513 weekdays : 'Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son\'var'.split('_'), 36514 weekdaysShort : 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'), 36515 weekdaysMin : 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'), 36516 weekdaysParseExact : true, 36517 longDateFormat : { 36518 LT : 'A h:mm [vazta]', 36519 LTS : 'A h:mm:ss [vazta]', 36520 L : 'DD-MM-YYYY', 36521 LL : 'D MMMM YYYY', 36522 LLL : 'D MMMM YYYY A h:mm [vazta]', 36523 LLLL : 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]', 36524 llll: 'ddd, D MMM YYYY, A h:mm [vazta]' 36525 }, 36526 calendar : { 36527 sameDay: '[Aiz] LT', 36528 nextDay: '[Faleam] LT', 36529 nextWeek: '[Ieta to] dddd[,] LT', 36530 lastDay: '[Kal] LT', 36531 lastWeek: '[Fatlo] dddd[,] LT', 36532 sameElse: 'L' 36533 }, 36534 relativeTime : { 36535 future : '%s', 36536 past : '%s adim', 36537 s : processRelativeTime, 36538 ss : processRelativeTime, 36539 m : processRelativeTime, 36540 mm : processRelativeTime, 36541 h : processRelativeTime, 36542 hh : processRelativeTime, 36543 d : processRelativeTime, 36544 dd : processRelativeTime, 36545 M : processRelativeTime, 36546 MM : processRelativeTime, 36547 y : processRelativeTime, 36548 yy : processRelativeTime 36549 }, 36550 dayOfMonthOrdinalParse : /\d{1,2}(er)/, 36551 ordinal : function (number, period) { 36552 switch (period) { 36553 // the ordinal 'er' only applies to day of the month 36554 case 'D': 36555 return number + 'er'; 36556 default: 36557 case 'M': 36558 case 'Q': 36559 case 'DDD': 36560 case 'd': 36561 case 'w': 36562 case 'W': 36563 return number; 36564 } 36565 }, 36566 week : { 36567 dow : 1, // Monday is the first day of the week. 36568 doy : 4 // The week that contains Jan 4th is the first week of the year. 36569 }, 36570 meridiemParse: /rati|sokalli|donparam|sanje/, 36571 meridiemHour : function (hour, meridiem) { 36572 if (hour === 12) { 36573 hour = 0; 36574 } 36575 if (meridiem === 'rati') { 36576 return hour < 4 ? hour : hour + 12; 36577 } else if (meridiem === 'sokalli') { 36578 return hour; 36579 } else if (meridiem === 'donparam') { 36580 return hour > 12 ? hour : hour + 12; 36581 } else if (meridiem === 'sanje') { 36582 return hour + 12; 36583 } 36584 }, 36585 meridiem : function (hour, minute, isLower) { 36586 if (hour < 4) { 36587 return 'rati'; 36588 } else if (hour < 12) { 36589 return 'sokalli'; 36590 } else if (hour < 16) { 36591 return 'donparam'; 36592 } else if (hour < 20) { 36593 return 'sanje'; 36594 } else { 36595 return 'rati'; 36596 } 36597 } 36598 }); 36599 36600 return gomLatn; 36601 36602}))); 36603 36604 36605/***/ }), 36606/* 267 */ 36607/***/ (function(module, exports, __webpack_require__) { 36608 36609//! moment.js locale configuration 36610 36611;(function (global, factory) { 36612 true ? factory(__webpack_require__(1)) : 36613 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 36614 factory(global.moment) 36615}(this, (function (moment) { 'use strict'; 36616 36617 36618 var symbolMap = { 36619 '1': 'à«§', 36620 '2': '૨', 36621 '3': 'à«©', 36622 '4': '૪', 36623 '5': 'à««', 36624 '6': '૬', 36625 '7': 'à«', 36626 '8': 'à«®', 36627 '9': '૯', 36628 '0': '૦' 36629 }, 36630 numberMap = { 36631 'à«§': '1', 36632 '૨': '2', 36633 'à«©': '3', 36634 '૪': '4', 36635 'à««': '5', 36636 '૬': '6', 36637 'à«': '7', 36638 'à«®': '8', 36639 '૯': '9', 36640 '૦': '0' 36641 }; 36642 36643 var gu = moment.defineLocale('gu', { 36644 months: 'àªàª¾àª¨à«àª¯à«àªàª°à«_ફà«àª¬à«àª°à«àªàª°à«_મારà«àª_àªàªªà«àª°àª¿àª²_મà«_àªà«àª¨_àªà«àª²àª¾àª_àªàªàª¸à«àª_સપà«àªà«àª®à«àª¬àª°_àªàªà«àªà«àª¬àª°_નવà«àª®à«àª¬àª°_ડિસà«àª®à«àª¬àª°'.split('_'), 36645 monthsShort: 'àªàª¾àª¨à«àª¯à«._ફà«àª¬à«àª°à«._મારà«àª_àªàªªà«àª°àª¿._મà«_àªà«àª¨_àªà«àª²àª¾._àªàª._સપà«àªà«._àªàªà«àªà«._નવà«._ડિસà«.'.split('_'), 36646 monthsParseExact: true, 36647 weekdays: 'રવિવાર_સà«àª®àªµàª¾àª°_મàªàªàª³àªµàª¾àª°_બà«àª§à«àªµàª¾àª°_àªà«àª°à«àªµàª¾àª°_શà«àªà«àª°àªµàª¾àª°_શનિવાર'.split('_'), 36648 weekdaysShort: 'રવિ_સà«àª®_મàªàªàª³_બà«àª§à«_àªà«àª°à«_શà«àªà«àª°_શનિ'.split('_'), 36649 weekdaysMin: 'ર_સà«_મàª_બà«_àªà«_શà«_શ'.split('_'), 36650 longDateFormat: { 36651 LT: 'A h:mm વાàªà«àª¯à«', 36652 LTS: 'A h:mm:ss વાàªà«àª¯à«', 36653 L: 'DD/MM/YYYY', 36654 LL: 'D MMMM YYYY', 36655 LLL: 'D MMMM YYYY, A h:mm વાàªà«àª¯à«', 36656 LLLL: 'dddd, D MMMM YYYY, A h:mm વાàªà«àª¯à«' 36657 }, 36658 calendar: { 36659 sameDay: '[àªàª] LT', 36660 nextDay: '[àªàª¾àª²à«] LT', 36661 nextWeek: 'dddd, LT', 36662 lastDay: '[àªàªàªàª¾àª²à«] LT', 36663 lastWeek: '[પાàªàª²àª¾] dddd, LT', 36664 sameElse: 'L' 36665 }, 36666 relativeTime: { 36667 future: '%s મા', 36668 past: '%s પà«àª¹àª²àª¾', 36669 s: 'ઠમà«àª પળà«', 36670 ss: '%d સà«àªàªàª¡', 36671 m: 'àªàª મિનિàª', 36672 mm: '%d મિનિàª', 36673 h: 'àªàª àªàª²àª¾àª', 36674 hh: '%d àªàª²àª¾àª', 36675 d: 'àªàª દિવસ', 36676 dd: '%d દિવસ', 36677 M: 'àªàª મહિનà«', 36678 MM: '%d મહિનà«', 36679 y: 'àªàª વરà«àª·', 36680 yy: '%d વરà«àª·' 36681 }, 36682 preparse: function (string) { 36683 return string.replace(/[૧૨૩૪૫૬à«à«®à«¯à«¦]/g, function (match) { 36684 return numberMap[match]; 36685 }); 36686 }, 36687 postformat: function (string) { 36688 return string.replace(/\d/g, function (match) { 36689 return symbolMap[match]; 36690 }); 36691 }, 36692 // Gujarati notation for meridiems are quite fuzzy in practice. While there exists 36693 // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati. 36694 meridiemParse: /રાત|બપà«àª°|સવાર|સાàªàª/, 36695 meridiemHour: function (hour, meridiem) { 36696 if (hour === 12) { 36697 hour = 0; 36698 } 36699 if (meridiem === 'રાત') { 36700 return hour < 4 ? hour : hour + 12; 36701 } else if (meridiem === 'સવાર') { 36702 return hour; 36703 } else if (meridiem === 'બપà«àª°') { 36704 return hour >= 10 ? hour : hour + 12; 36705 } else if (meridiem === 'સાàªàª') { 36706 return hour + 12; 36707 } 36708 }, 36709 meridiem: function (hour, minute, isLower) { 36710 if (hour < 4) { 36711 return 'રાત'; 36712 } else if (hour < 10) { 36713 return 'સવાર'; 36714 } else if (hour < 17) { 36715 return 'બપà«àª°'; 36716 } else if (hour < 20) { 36717 return 'સાàªàª'; 36718 } else { 36719 return 'રાત'; 36720 } 36721 }, 36722 week: { 36723 dow: 0, // Sunday is the first day of the week. 36724 doy: 6 // The week that contains Jan 1st is the first week of the year. 36725 } 36726 }); 36727 36728 return gu; 36729 36730}))); 36731 36732 36733/***/ }), 36734/* 268 */ 36735/***/ (function(module, exports, __webpack_require__) { 36736 36737//! moment.js locale configuration 36738 36739;(function (global, factory) { 36740 true ? factory(__webpack_require__(1)) : 36741 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 36742 factory(global.moment) 36743}(this, (function (moment) { 'use strict'; 36744 36745 36746 var he = moment.defineLocale('he', { 36747 months : '×× ××ר_פ×ר××ר_×רץ_×פר××_×××_××× ×_××××_××××ס×_ספ×××ר_×××§×××ר_× ××××ר_×צ××ר'.split('_'), 36748 monthsShort : '×× ×׳_פ×ר׳_×רץ_×פר׳_×××_××× ×_××××_×××׳_ספ×׳_××ק׳_× ××׳_×צ×׳'.split('_'), 36749 weekdays : 'ר×ש××_×©× ×_ש××ש×_ר×××¢×_×××ש×_ש×ש×_ש×ת'.split('_'), 36750 weekdaysShort : '×׳_×׳_×׳_×׳_×׳_×׳_ש׳'.split('_'), 36751 weekdaysMin : '×_×_×_×_×_×_ש'.split('_'), 36752 longDateFormat : { 36753 LT : 'HH:mm', 36754 LTS : 'HH:mm:ss', 36755 L : 'DD/MM/YYYY', 36756 LL : 'D [×]MMMM YYYY', 36757 LLL : 'D [×]MMMM YYYY HH:mm', 36758 LLLL : 'dddd, D [×]MMMM YYYY HH:mm', 36759 l : 'D/M/YYYY', 36760 ll : 'D MMM YYYY', 36761 lll : 'D MMM YYYY HH:mm', 36762 llll : 'ddd, D MMM YYYY HH:mm' 36763 }, 36764 calendar : { 36765 sameDay : '[×××× ×Ö¾]LT', 36766 nextDay : '[××ר ×Ö¾]LT', 36767 nextWeek : 'dddd [×שע×] LT', 36768 lastDay : '[×ת××× ×Ö¾]LT', 36769 lastWeek : '[××××] dddd [×××ר×× ×שע×] LT', 36770 sameElse : 'L' 36771 }, 36772 relativeTime : { 36773 future : '××¢×× %s', 36774 past : '××¤× × %s', 36775 s : '×ספר ×©× ××ת', 36776 ss : '%d ×©× ××ת', 36777 m : '××§×', 36778 mm : '%d ××§×ת', 36779 h : 'שע×', 36780 hh : function (number) { 36781 if (number === 2) { 36782 return 'שעת×××'; 36783 } 36784 return number + ' שע×ת'; 36785 }, 36786 d : '×××', 36787 dd : function (number) { 36788 if (number === 2) { 36789 return '××××××'; 36790 } 36791 return number + ' ××××'; 36792 }, 36793 M : '×××ש', 36794 MM : function (number) { 36795 if (number === 2) { 36796 return '×××ש×××'; 36797 } 36798 return number + ' ×××ש××'; 36799 }, 36800 y : '×©× ×', 36801 yy : function (number) { 36802 if (number === 2) { 36803 return '×©× ×ª×××'; 36804 } else if (number % 10 === 0 && number !== 10) { 36805 return number + ' ×©× ×'; 36806 } 36807 return number + ' ×©× ××'; 36808 } 36809 }, 36810 meridiemParse: /×××"צ|××¤× ×"צ|×××¨× ×צ×ר×××|××¤× × ×צ×ר×××|××¤× ×ת ××קר|×××קר|×ער×/i, 36811 isPM : function (input) { 36812 return /^(×××"צ|×××¨× ×צ×ר×××|×ער×)$/.test(input); 36813 }, 36814 meridiem : function (hour, minute, isLower) { 36815 if (hour < 5) { 36816 return '××¤× ×ת ××קר'; 36817 } else if (hour < 10) { 36818 return '×××קר'; 36819 } else if (hour < 12) { 36820 return isLower ? '××¤× ×"צ' : '××¤× × ×צ×ר×××'; 36821 } else if (hour < 18) { 36822 return isLower ? '×××"צ' : '×××¨× ×צ×ר×××'; 36823 } else { 36824 return '×ער×'; 36825 } 36826 } 36827 }); 36828 36829 return he; 36830 36831}))); 36832 36833 36834/***/ }), 36835/* 269 */ 36836/***/ (function(module, exports, __webpack_require__) { 36837 36838//! moment.js locale configuration 36839 36840;(function (global, factory) { 36841 true ? factory(__webpack_require__(1)) : 36842 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 36843 factory(global.moment) 36844}(this, (function (moment) { 'use strict'; 36845 36846 36847 var symbolMap = { 36848 '1': '१', 36849 '2': '२', 36850 '3': '३', 36851 '4': '४', 36852 '5': '५', 36853 '6': '६', 36854 '7': 'à¥', 36855 '8': '८', 36856 '9': '९', 36857 '0': '०' 36858 }, 36859 numberMap = { 36860 '१': '1', 36861 '२': '2', 36862 '३': '3', 36863 '४': '4', 36864 '५': '5', 36865 '६': '6', 36866 'à¥': '7', 36867 '८': '8', 36868 '९': '9', 36869 '०': '0' 36870 }; 36871 36872 var hi = moment.defineLocale('hi', { 36873 months : 'à¤à¤¨à¤µà¤°à¥_फ़रवरà¥_मारà¥à¤_ठपà¥à¤°à¥à¤²_मà¤_à¤à¥à¤¨_à¤à¥à¤²à¤¾à¤_ठà¤à¤¸à¥à¤¤_सितमà¥à¤¬à¤°_ठà¤à¥à¤à¥à¤¬à¤°_नवमà¥à¤¬à¤°_दिसमà¥à¤¬à¤°'.split('_'), 36874 monthsShort : 'à¤à¤¨._फ़र._मारà¥à¤_ठपà¥à¤°à¥._मà¤_à¤à¥à¤¨_à¤à¥à¤²._ठà¤._सित._ठà¤à¥à¤à¥._नव._दिस.'.split('_'), 36875 monthsParseExact: true, 36876 weekdays : 'रविवार_सà¥à¤®à¤µà¤¾à¤°_मà¤à¤à¤²à¤µà¤¾à¤°_बà¥à¤§à¤µà¤¾à¤°_à¤à¥à¤°à¥à¤µà¤¾à¤°_शà¥à¤à¥à¤°à¤µà¤¾à¤°_शनिवार'.split('_'), 36877 weekdaysShort : 'रवि_सà¥à¤®_मà¤à¤à¤²_बà¥à¤§_à¤à¥à¤°à¥_शà¥à¤à¥à¤°_शनि'.split('_'), 36878 weekdaysMin : 'र_सà¥_मà¤_बà¥_à¤à¥_शà¥_श'.split('_'), 36879 longDateFormat : { 36880 LT : 'A h:mm बà¤à¥', 36881 LTS : 'A h:mm:ss बà¤à¥', 36882 L : 'DD/MM/YYYY', 36883 LL : 'D MMMM YYYY', 36884 LLL : 'D MMMM YYYY, A h:mm बà¤à¥', 36885 LLLL : 'dddd, D MMMM YYYY, A h:mm बà¤à¥' 36886 }, 36887 calendar : { 36888 sameDay : '[à¤à¤] LT', 36889 nextDay : '[à¤à¤²] LT', 36890 nextWeek : 'dddd, LT', 36891 lastDay : '[à¤à¤²] LT', 36892 lastWeek : '[पिà¤à¤²à¥] dddd, LT', 36893 sameElse : 'L' 36894 }, 36895 relativeTime : { 36896 future : '%s मà¥à¤', 36897 past : '%s पहलà¥', 36898 s : 'à¤à¥à¤ हॠà¤à¥à¤·à¤£', 36899 ss : '%d सà¥à¤à¤à¤¡', 36900 m : 'à¤à¤ मिनà¤', 36901 mm : '%d मिनà¤', 36902 h : 'à¤à¤ à¤à¤à¤à¤¾', 36903 hh : '%d à¤à¤à¤à¥', 36904 d : 'à¤à¤ दिन', 36905 dd : '%d दिन', 36906 M : 'à¤à¤ महà¥à¤¨à¥', 36907 MM : '%d महà¥à¤¨à¥', 36908 y : 'à¤à¤ वरà¥à¤·', 36909 yy : '%d वरà¥à¤·' 36910 }, 36911 preparse: function (string) { 36912 return string.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g, function (match) { 36913 return numberMap[match]; 36914 }); 36915 }, 36916 postformat: function (string) { 36917 return string.replace(/\d/g, function (match) { 36918 return symbolMap[match]; 36919 }); 36920 }, 36921 // Hindi notation for meridiems are quite fuzzy in practice. While there exists 36922 // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi. 36923 meridiemParse: /रात|सà¥à¤¬à¤¹|दà¥à¤ªà¤¹à¤°|शाम/, 36924 meridiemHour : function (hour, meridiem) { 36925 if (hour === 12) { 36926 hour = 0; 36927 } 36928 if (meridiem === 'रात') { 36929 return hour < 4 ? hour : hour + 12; 36930 } else if (meridiem === 'सà¥à¤¬à¤¹') { 36931 return hour; 36932 } else if (meridiem === 'दà¥à¤ªà¤¹à¤°') { 36933 return hour >= 10 ? hour : hour + 12; 36934 } else if (meridiem === 'शाम') { 36935 return hour + 12; 36936 } 36937 }, 36938 meridiem : function (hour, minute, isLower) { 36939 if (hour < 4) { 36940 return 'रात'; 36941 } else if (hour < 10) { 36942 return 'सà¥à¤¬à¤¹'; 36943 } else if (hour < 17) { 36944 return 'दà¥à¤ªà¤¹à¤°'; 36945 } else if (hour < 20) { 36946 return 'शाम'; 36947 } else { 36948 return 'रात'; 36949 } 36950 }, 36951 week : { 36952 dow : 0, // Sunday is the first day of the week. 36953 doy : 6 // The week that contains Jan 1st is the first week of the year. 36954 } 36955 }); 36956 36957 return hi; 36958 36959}))); 36960 36961 36962/***/ }), 36963/* 270 */ 36964/***/ (function(module, exports, __webpack_require__) { 36965 36966//! moment.js locale configuration 36967 36968;(function (global, factory) { 36969 true ? factory(__webpack_require__(1)) : 36970 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 36971 factory(global.moment) 36972}(this, (function (moment) { 'use strict'; 36973 36974 36975 function translate(number, withoutSuffix, key) { 36976 var result = number + ' '; 36977 switch (key) { 36978 case 'ss': 36979 if (number === 1) { 36980 result += 'sekunda'; 36981 } else if (number === 2 || number === 3 || number === 4) { 36982 result += 'sekunde'; 36983 } else { 36984 result += 'sekundi'; 36985 } 36986 return result; 36987 case 'm': 36988 return withoutSuffix ? 'jedna minuta' : 'jedne minute'; 36989 case 'mm': 36990 if (number === 1) { 36991 result += 'minuta'; 36992 } else if (number === 2 || number === 3 || number === 4) { 36993 result += 'minute'; 36994 } else { 36995 result += 'minuta'; 36996 } 36997 return result; 36998 case 'h': 36999 return withoutSuffix ? 'jedan sat' : 'jednog sata'; 37000 case 'hh': 37001 if (number === 1) { 37002 result += 'sat'; 37003 } else if (number === 2 || number === 3 || number === 4) { 37004 result += 'sata'; 37005 } else { 37006 result += 'sati'; 37007 } 37008 return result; 37009 case 'dd': 37010 if (number === 1) { 37011 result += 'dan'; 37012 } else { 37013 result += 'dana'; 37014 } 37015 return result; 37016 case 'MM': 37017 if (number === 1) { 37018 result += 'mjesec'; 37019 } else if (number === 2 || number === 3 || number === 4) { 37020 result += 'mjeseca'; 37021 } else { 37022 result += 'mjeseci'; 37023 } 37024 return result; 37025 case 'yy': 37026 if (number === 1) { 37027 result += 'godina'; 37028 } else if (number === 2 || number === 3 || number === 4) { 37029 result += 'godine'; 37030 } else { 37031 result += 'godina'; 37032 } 37033 return result; 37034 } 37035 } 37036 37037 var hr = moment.defineLocale('hr', { 37038 months : { 37039 format: 'sijeÄnja_veljaÄe_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'), 37040 standalone: 'sijeÄanj_veljaÄa_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_') 37041 }, 37042 monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'), 37043 monthsParseExact: true, 37044 weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_Äetvrtak_petak_subota'.split('_'), 37045 weekdaysShort : 'ned._pon._uto._sri._Äet._pet._sub.'.split('_'), 37046 weekdaysMin : 'ne_po_ut_sr_Äe_pe_su'.split('_'), 37047 weekdaysParseExact : true, 37048 longDateFormat : { 37049 LT : 'H:mm', 37050 LTS : 'H:mm:ss', 37051 L : 'DD.MM.YYYY', 37052 LL : 'D. MMMM YYYY', 37053 LLL : 'D. MMMM YYYY H:mm', 37054 LLLL : 'dddd, D. MMMM YYYY H:mm' 37055 }, 37056 calendar : { 37057 sameDay : '[danas u] LT', 37058 nextDay : '[sutra u] LT', 37059 nextWeek : function () { 37060 switch (this.day()) { 37061 case 0: 37062 return '[u] [nedjelju] [u] LT'; 37063 case 3: 37064 return '[u] [srijedu] [u] LT'; 37065 case 6: 37066 return '[u] [subotu] [u] LT'; 37067 case 1: 37068 case 2: 37069 case 4: 37070 case 5: 37071 return '[u] dddd [u] LT'; 37072 } 37073 }, 37074 lastDay : '[juÄer u] LT', 37075 lastWeek : function () { 37076 switch (this.day()) { 37077 case 0: 37078 case 3: 37079 return '[proÅ¡lu] dddd [u] LT'; 37080 case 6: 37081 return '[proÅ¡le] [subote] [u] LT'; 37082 case 1: 37083 case 2: 37084 case 4: 37085 case 5: 37086 return '[proÅ¡li] dddd [u] LT'; 37087 } 37088 }, 37089 sameElse : 'L' 37090 }, 37091 relativeTime : { 37092 future : 'za %s', 37093 past : 'prije %s', 37094 s : 'par sekundi', 37095 ss : translate, 37096 m : translate, 37097 mm : translate, 37098 h : translate, 37099 hh : translate, 37100 d : 'dan', 37101 dd : translate, 37102 M : 'mjesec', 37103 MM : translate, 37104 y : 'godinu', 37105 yy : translate 37106 }, 37107 dayOfMonthOrdinalParse: /\d{1,2}\./, 37108 ordinal : '%d.', 37109 week : { 37110 dow : 1, // Monday is the first day of the week. 37111 doy : 7 // The week that contains Jan 1st is the first week of the year. 37112 } 37113 }); 37114 37115 return hr; 37116 37117}))); 37118 37119 37120/***/ }), 37121/* 271 */ 37122/***/ (function(module, exports, __webpack_require__) { 37123 37124//! moment.js locale configuration 37125 37126;(function (global, factory) { 37127 true ? factory(__webpack_require__(1)) : 37128 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 37129 factory(global.moment) 37130}(this, (function (moment) { 'use strict'; 37131 37132 37133 var weekEndings = 'vasárnap hétfÅn kedden szerdán csütörtökön pénteken szombaton'.split(' '); 37134 function translate(number, withoutSuffix, key, isFuture) { 37135 var num = number; 37136 switch (key) { 37137 case 's': 37138 return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce'; 37139 case 'ss': 37140 return num + (isFuture || withoutSuffix) ? ' másodperc' : ' másodperce'; 37141 case 'm': 37142 return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce'); 37143 case 'mm': 37144 return num + (isFuture || withoutSuffix ? ' perc' : ' perce'); 37145 case 'h': 37146 return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája'); 37147 case 'hh': 37148 return num + (isFuture || withoutSuffix ? ' óra' : ' órája'); 37149 case 'd': 37150 return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja'); 37151 case 'dd': 37152 return num + (isFuture || withoutSuffix ? ' nap' : ' napja'); 37153 case 'M': 37154 return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); 37155 case 'MM': 37156 return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); 37157 case 'y': 37158 return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve'); 37159 case 'yy': 37160 return num + (isFuture || withoutSuffix ? ' év' : ' éve'); 37161 } 37162 return ''; 37163 } 37164 function week(isFuture) { 37165 return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]'; 37166 } 37167 37168 var hu = moment.defineLocale('hu', { 37169 months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'), 37170 monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'), 37171 weekdays : 'vasárnap_hétfÅ_kedd_szerda_csütörtök_péntek_szombat'.split('_'), 37172 weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), 37173 weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'), 37174 longDateFormat : { 37175 LT : 'H:mm', 37176 LTS : 'H:mm:ss', 37177 L : 'YYYY.MM.DD.', 37178 LL : 'YYYY. MMMM D.', 37179 LLL : 'YYYY. MMMM D. H:mm', 37180 LLLL : 'YYYY. MMMM D., dddd H:mm' 37181 }, 37182 meridiemParse: /de|du/i, 37183 isPM: function (input) { 37184 return input.charAt(1).toLowerCase() === 'u'; 37185 }, 37186 meridiem : function (hours, minutes, isLower) { 37187 if (hours < 12) { 37188 return isLower === true ? 'de' : 'DE'; 37189 } else { 37190 return isLower === true ? 'du' : 'DU'; 37191 } 37192 }, 37193 calendar : { 37194 sameDay : '[ma] LT[-kor]', 37195 nextDay : '[holnap] LT[-kor]', 37196 nextWeek : function () { 37197 return week.call(this, true); 37198 }, 37199 lastDay : '[tegnap] LT[-kor]', 37200 lastWeek : function () { 37201 return week.call(this, false); 37202 }, 37203 sameElse : 'L' 37204 }, 37205 relativeTime : { 37206 future : '%s múlva', 37207 past : '%s', 37208 s : translate, 37209 ss : translate, 37210 m : translate, 37211 mm : translate, 37212 h : translate, 37213 hh : translate, 37214 d : translate, 37215 dd : translate, 37216 M : translate, 37217 MM : translate, 37218 y : translate, 37219 yy : translate 37220 }, 37221 dayOfMonthOrdinalParse: /\d{1,2}\./, 37222 ordinal : '%d.', 37223 week : { 37224 dow : 1, // Monday is the first day of the week. 37225 doy : 4 // The week that contains Jan 4th is the first week of the year. 37226 } 37227 }); 37228 37229 return hu; 37230 37231}))); 37232 37233 37234/***/ }), 37235/* 272 */ 37236/***/ (function(module, exports, __webpack_require__) { 37237 37238//! moment.js locale configuration 37239 37240;(function (global, factory) { 37241 true ? factory(__webpack_require__(1)) : 37242 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 37243 factory(global.moment) 37244}(this, (function (moment) { 'use strict'; 37245 37246 37247 var hyAm = moment.defineLocale('hy-am', { 37248 months : { 37249 format: 'Õ°Õ¸ÖÕ¶Õ¾Õ¡ÖÕ«_ÖÕ¥Õ¿ÖÕ¾Õ¡ÖÕ«_Õ´Õ¡ÖÕ¿Õ«_Õ¡ÕºÖÕ«Õ¬Õ«_Õ´Õ¡ÕµÕ«Õ½Õ«_Õ°Õ¸ÖÕ¶Õ«Õ½Õ«_Õ°Õ¸ÖÕ¬Õ«Õ½Õ«_Ö Õ£Õ¸Õ½Õ¿Õ¸Õ½Õ«_Õ½Õ¥ÕºÕ¿Õ¥Õ´Õ¢Õ¥ÖÕ«_Õ°Õ¸Õ¯Õ¿Õ¥Õ´Õ¢Õ¥ÖÕ«_Õ¶Õ¸ÕµÕ¥Õ´Õ¢Õ¥ÖÕ«_Õ¤Õ¥Õ¯Õ¿Õ¥Õ´Õ¢Õ¥ÖÕ«'.split('_'), 37250 standalone: 'Õ°Õ¸ÖÕ¶Õ¾Õ¡Ö_ÖÕ¥Õ¿ÖÕ¾Õ¡Ö_Õ´Õ¡ÖÕ¿_Õ¡ÕºÖÕ«Õ¬_Õ´Õ¡ÕµÕ«Õ½_Õ°Õ¸ÖÕ¶Õ«Õ½_Õ°Õ¸ÖÕ¬Õ«Õ½_Ö Õ£Õ¸Õ½Õ¿Õ¸Õ½_Õ½Õ¥ÕºÕ¿Õ¥Õ´Õ¢Õ¥Ö_Õ°Õ¸Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö_Õ¶Õ¸ÕµÕ¥Õ´Õ¢Õ¥Ö_Õ¤Õ¥Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö'.split('_') 37251 }, 37252 monthsShort : 'Õ°Õ¶Õ¾_ÖÕ¿Ö_Õ´ÖÕ¿_Õ¡ÕºÖ_Õ´ÕµÕ½_Õ°Õ¶Õ½_Õ°Õ¬Õ½_Ö Õ£Õ½_Õ½ÕºÕ¿_Õ°Õ¯Õ¿_Õ¶Õ´Õ¢_Õ¤Õ¯Õ¿'.split('_'), 37253 weekdays : 'Õ¯Õ«ÖÕ¡Õ¯Õ«_Õ¥ÖÕ¯Õ¸ÖÕ·Õ¡Õ¢Õ©Õ«_Õ¥ÖÕ¥ÖÕ·Õ¡Õ¢Õ©Õ«_Õ¹Õ¸ÖÕ¥ÖÕ·Õ¡Õ¢Õ©Õ«_Õ°Õ«Õ¶Õ£Õ·Õ¡Õ¢Õ©Õ«_Õ¸ÖÖÕ¢Õ¡Õ©_Õ·Õ¡Õ¢Õ¡Õ©'.split('_'), 37254 weekdaysShort : 'Õ¯ÖÕ¯_Õ¥ÖÕ¯_Õ¥ÖÖ_Õ¹ÖÖ_Õ°Õ¶Õ£_Õ¸ÖÖÕ¢_Õ·Õ¢Õ©'.split('_'), 37255 weekdaysMin : 'Õ¯ÖÕ¯_Õ¥ÖÕ¯_Õ¥ÖÖ_Õ¹ÖÖ_Õ°Õ¶Õ£_Õ¸ÖÖÕ¢_Õ·Õ¢Õ©'.split('_'), 37256 longDateFormat : { 37257 LT : 'HH:mm', 37258 LTS : 'HH:mm:ss', 37259 L : 'DD.MM.YYYY', 37260 LL : 'D MMMM YYYY Õ©.', 37261 LLL : 'D MMMM YYYY Õ©., HH:mm', 37262 LLLL : 'dddd, D MMMM YYYY Õ©., HH:mm' 37263 }, 37264 calendar : { 37265 sameDay: '[Õ¡ÕµÕ½Ö Ö] LT', 37266 nextDay: '[Õ¾Õ¡Õ²Õ¨] LT', 37267 lastDay: '[Õ¥ÖÕ¥Õ¯] LT', 37268 nextWeek: function () { 37269 return 'dddd [Ö ÖÕ¨ ÕªÕ¡Õ´Õ¨] LT'; 37270 }, 37271 lastWeek: function () { 37272 return '[Õ¡Õ¶ÖÕ¡Õ®] dddd [Ö ÖÕ¨ ÕªÕ¡Õ´Õ¨] LT'; 37273 }, 37274 sameElse: 'L' 37275 }, 37276 relativeTime : { 37277 future : '%s Õ°Õ¥Õ¿Õ¸', 37278 past : '%s Õ¡Õ¼Õ¡Õ»', 37279 s : 'Õ´Õ« ÖÕ¡Õ¶Õ« Õ¾Õ¡ÕµÖÕ¯ÕµÕ¡Õ¶', 37280 ss : '%d Õ¾Õ¡ÕµÖÕ¯ÕµÕ¡Õ¶', 37281 m : 'ÖÕ¸ÕºÕ¥', 37282 mm : '%d ÖÕ¸ÕºÕ¥', 37283 h : 'ÕªÕ¡Õ´', 37284 hh : '%d ÕªÕ¡Õ´', 37285 d : 'Ö Ö', 37286 dd : '%d Ö Ö', 37287 M : 'Õ¡Õ´Õ«Õ½', 37288 MM : '%d Õ¡Õ´Õ«Õ½', 37289 y : 'Õ¿Õ¡ÖÕ«', 37290 yy : '%d Õ¿Õ¡ÖÕ«' 37291 }, 37292 meridiemParse: /Õ£Õ«Õ·Õ¥ÖÕ¾Õ¡|Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¾Õ¡|ÖÕ¥ÖÕ¥Õ¯Õ¾Õ¡|Õ¥ÖÕ¥Õ¯Õ¸ÕµÕ¡Õ¶/, 37293 isPM: function (input) { 37294 return /^(ÖÕ¥ÖÕ¥Õ¯Õ¾Õ¡|Õ¥ÖÕ¥Õ¯Õ¸ÕµÕ¡Õ¶)$/.test(input); 37295 }, 37296 meridiem : function (hour) { 37297 if (hour < 4) { 37298 return 'Õ£Õ«Õ·Õ¥ÖÕ¾Õ¡'; 37299 } else if (hour < 12) { 37300 return 'Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¾Õ¡'; 37301 } else if (hour < 17) { 37302 return 'ÖÕ¥ÖÕ¥Õ¯Õ¾Õ¡'; 37303 } else { 37304 return 'Õ¥ÖÕ¥Õ¯Õ¸ÕµÕ¡Õ¶'; 37305 } 37306 }, 37307 dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(Õ«Õ¶|ÖÕ¤)/, 37308 ordinal: function (number, period) { 37309 switch (period) { 37310 case 'DDD': 37311 case 'w': 37312 case 'W': 37313 case 'DDDo': 37314 if (number === 1) { 37315 return number + '-Õ«Õ¶'; 37316 } 37317 return number + '-ÖÕ¤'; 37318 default: 37319 return number; 37320 } 37321 }, 37322 week : { 37323 dow : 1, // Monday is the first day of the week. 37324 doy : 7 // The week that contains Jan 1st is the first week of the year. 37325 } 37326 }); 37327 37328 return hyAm; 37329 37330}))); 37331 37332 37333/***/ }), 37334/* 273 */ 37335/***/ (function(module, exports, __webpack_require__) { 37336 37337//! moment.js locale configuration 37338 37339;(function (global, factory) { 37340 true ? factory(__webpack_require__(1)) : 37341 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 37342 factory(global.moment) 37343}(this, (function (moment) { 'use strict'; 37344 37345 37346 var id = moment.defineLocale('id', { 37347 months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'), 37348 monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'), 37349 weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), 37350 weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), 37351 weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), 37352 longDateFormat : { 37353 LT : 'HH.mm', 37354 LTS : 'HH.mm.ss', 37355 L : 'DD/MM/YYYY', 37356 LL : 'D MMMM YYYY', 37357 LLL : 'D MMMM YYYY [pukul] HH.mm', 37358 LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' 37359 }, 37360 meridiemParse: /pagi|siang|sore|malam/, 37361 meridiemHour : function (hour, meridiem) { 37362 if (hour === 12) { 37363 hour = 0; 37364 } 37365 if (meridiem === 'pagi') { 37366 return hour; 37367 } else if (meridiem === 'siang') { 37368 return hour >= 11 ? hour : hour + 12; 37369 } else if (meridiem === 'sore' || meridiem === 'malam') { 37370 return hour + 12; 37371 } 37372 }, 37373 meridiem : function (hours, minutes, isLower) { 37374 if (hours < 11) { 37375 return 'pagi'; 37376 } else if (hours < 15) { 37377 return 'siang'; 37378 } else if (hours < 19) { 37379 return 'sore'; 37380 } else { 37381 return 'malam'; 37382 } 37383 }, 37384 calendar : { 37385 sameDay : '[Hari ini pukul] LT', 37386 nextDay : '[Besok pukul] LT', 37387 nextWeek : 'dddd [pukul] LT', 37388 lastDay : '[Kemarin pukul] LT', 37389 lastWeek : 'dddd [lalu pukul] LT', 37390 sameElse : 'L' 37391 }, 37392 relativeTime : { 37393 future : 'dalam %s', 37394 past : '%s yang lalu', 37395 s : 'beberapa detik', 37396 ss : '%d detik', 37397 m : 'semenit', 37398 mm : '%d menit', 37399 h : 'sejam', 37400 hh : '%d jam', 37401 d : 'sehari', 37402 dd : '%d hari', 37403 M : 'sebulan', 37404 MM : '%d bulan', 37405 y : 'setahun', 37406 yy : '%d tahun' 37407 }, 37408 week : { 37409 dow : 1, // Monday is the first day of the week. 37410 doy : 7 // The week that contains Jan 1st is the first week of the year. 37411 } 37412 }); 37413 37414 return id; 37415 37416}))); 37417 37418 37419/***/ }), 37420/* 274 */ 37421/***/ (function(module, exports, __webpack_require__) { 37422 37423//! moment.js locale configuration 37424 37425;(function (global, factory) { 37426 true ? factory(__webpack_require__(1)) : 37427 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 37428 factory(global.moment) 37429}(this, (function (moment) { 'use strict'; 37430 37431 37432 function plural(n) { 37433 if (n % 100 === 11) { 37434 return true; 37435 } else if (n % 10 === 1) { 37436 return false; 37437 } 37438 return true; 37439 } 37440 function translate(number, withoutSuffix, key, isFuture) { 37441 var result = number + ' '; 37442 switch (key) { 37443 case 's': 37444 return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum'; 37445 case 'ss': 37446 if (plural(number)) { 37447 return result + (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum'); 37448 } 37449 return result + 'sekúnda'; 37450 case 'm': 37451 return withoutSuffix ? 'mÃnúta' : 'mÃnútu'; 37452 case 'mm': 37453 if (plural(number)) { 37454 return result + (withoutSuffix || isFuture ? 'mÃnútur' : 'mÃnútum'); 37455 } else if (withoutSuffix) { 37456 return result + 'mÃnúta'; 37457 } 37458 return result + 'mÃnútu'; 37459 case 'hh': 37460 if (plural(number)) { 37461 return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum'); 37462 } 37463 return result + 'klukkustund'; 37464 case 'd': 37465 if (withoutSuffix) { 37466 return 'dagur'; 37467 } 37468 return isFuture ? 'dag' : 'degi'; 37469 case 'dd': 37470 if (plural(number)) { 37471 if (withoutSuffix) { 37472 return result + 'dagar'; 37473 } 37474 return result + (isFuture ? 'daga' : 'dögum'); 37475 } else if (withoutSuffix) { 37476 return result + 'dagur'; 37477 } 37478 return result + (isFuture ? 'dag' : 'degi'); 37479 case 'M': 37480 if (withoutSuffix) { 37481 return 'mánuður'; 37482 } 37483 return isFuture ? 'mánuð' : 'mánuði'; 37484 case 'MM': 37485 if (plural(number)) { 37486 if (withoutSuffix) { 37487 return result + 'mánuðir'; 37488 } 37489 return result + (isFuture ? 'mánuði' : 'mánuðum'); 37490 } else if (withoutSuffix) { 37491 return result + 'mánuður'; 37492 } 37493 return result + (isFuture ? 'mánuð' : 'mánuði'); 37494 case 'y': 37495 return withoutSuffix || isFuture ? 'ár' : 'ári'; 37496 case 'yy': 37497 if (plural(number)) { 37498 return result + (withoutSuffix || isFuture ? 'ár' : 'árum'); 37499 } 37500 return result + (withoutSuffix || isFuture ? 'ár' : 'ári'); 37501 } 37502 } 37503 37504 var is = moment.defineLocale('is', { 37505 months : 'janúar_febrúar_mars_aprÃl_maÃ_júnÃ_júlÃ_ágúst_september_október_nóvember_desember'.split('_'), 37506 monthsShort : 'jan_feb_mar_apr_maÃ_jún_júl_ágú_sep_okt_nóv_des'.split('_'), 37507 weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'), 37508 weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'), 37509 weekdaysMin : 'Su_Má_Ãr_Mi_Fi_Fö_La'.split('_'), 37510 longDateFormat : { 37511 LT : 'H:mm', 37512 LTS : 'H:mm:ss', 37513 L : 'DD.MM.YYYY', 37514 LL : 'D. MMMM YYYY', 37515 LLL : 'D. MMMM YYYY [kl.] H:mm', 37516 LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm' 37517 }, 37518 calendar : { 37519 sameDay : '[à dag kl.] LT', 37520 nextDay : '[á morgun kl.] LT', 37521 nextWeek : 'dddd [kl.] LT', 37522 lastDay : '[à gær kl.] LT', 37523 lastWeek : '[sÃðasta] dddd [kl.] LT', 37524 sameElse : 'L' 37525 }, 37526 relativeTime : { 37527 future : 'eftir %s', 37528 past : 'fyrir %s sÃðan', 37529 s : translate, 37530 ss : translate, 37531 m : translate, 37532 mm : translate, 37533 h : 'klukkustund', 37534 hh : translate, 37535 d : translate, 37536 dd : translate, 37537 M : translate, 37538 MM : translate, 37539 y : translate, 37540 yy : translate 37541 }, 37542 dayOfMonthOrdinalParse: /\d{1,2}\./, 37543 ordinal : '%d.', 37544 week : { 37545 dow : 1, // Monday is the first day of the week. 37546 doy : 4 // The week that contains Jan 4th is the first week of the year. 37547 } 37548 }); 37549 37550 return is; 37551 37552}))); 37553 37554 37555/***/ }), 37556/* 275 */ 37557/***/ (function(module, exports, __webpack_require__) { 37558 37559//! moment.js locale configuration 37560 37561;(function (global, factory) { 37562 true ? factory(__webpack_require__(1)) : 37563 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 37564 factory(global.moment) 37565}(this, (function (moment) { 'use strict'; 37566 37567 37568 var it = moment.defineLocale('it', { 37569 months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'), 37570 monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), 37571 weekdays : 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'), 37572 weekdaysShort : 'dom_lun_mar_mer_gio_ven_sab'.split('_'), 37573 weekdaysMin : 'do_lu_ma_me_gi_ve_sa'.split('_'), 37574 longDateFormat : { 37575 LT : 'HH:mm', 37576 LTS : 'HH:mm:ss', 37577 L : 'DD/MM/YYYY', 37578 LL : 'D MMMM YYYY', 37579 LLL : 'D MMMM YYYY HH:mm', 37580 LLLL : 'dddd D MMMM YYYY HH:mm' 37581 }, 37582 calendar : { 37583 sameDay: '[Oggi alle] LT', 37584 nextDay: '[Domani alle] LT', 37585 nextWeek: 'dddd [alle] LT', 37586 lastDay: '[Ieri alle] LT', 37587 lastWeek: function () { 37588 switch (this.day()) { 37589 case 0: 37590 return '[la scorsa] dddd [alle] LT'; 37591 default: 37592 return '[lo scorso] dddd [alle] LT'; 37593 } 37594 }, 37595 sameElse: 'L' 37596 }, 37597 relativeTime : { 37598 future : function (s) { 37599 return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s; 37600 }, 37601 past : '%s fa', 37602 s : 'alcuni secondi', 37603 ss : '%d secondi', 37604 m : 'un minuto', 37605 mm : '%d minuti', 37606 h : 'un\'ora', 37607 hh : '%d ore', 37608 d : 'un giorno', 37609 dd : '%d giorni', 37610 M : 'un mese', 37611 MM : '%d mesi', 37612 y : 'un anno', 37613 yy : '%d anni' 37614 }, 37615 dayOfMonthOrdinalParse : /\d{1,2}º/, 37616 ordinal: '%dº', 37617 week : { 37618 dow : 1, // Monday is the first day of the week. 37619 doy : 4 // The week that contains Jan 4th is the first week of the year. 37620 } 37621 }); 37622 37623 return it; 37624 37625}))); 37626 37627 37628/***/ }), 37629/* 276 */ 37630/***/ (function(module, exports, __webpack_require__) { 37631 37632//! moment.js locale configuration 37633 37634;(function (global, factory) { 37635 true ? factory(__webpack_require__(1)) : 37636 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 37637 factory(global.moment) 37638}(this, (function (moment) { 'use strict'; 37639 37640 37641 var ja = moment.defineLocale('ja', { 37642 months : '1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ'.split('_'), 37643 monthsShort : '1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ'.split('_'), 37644 weekdays : 'æ¥ææ¥_æææ¥_ç«ææ¥_æ°´ææ¥_æ¨ææ¥_éææ¥_åææ¥'.split('_'), 37645 weekdaysShort : 'æ¥_æ_ç«_æ°´_æ¨_é_å'.split('_'), 37646 weekdaysMin : 'æ¥_æ_ç«_æ°´_æ¨_é_å'.split('_'), 37647 longDateFormat : { 37648 LT : 'HH:mm', 37649 LTS : 'HH:mm:ss', 37650 L : 'YYYY/MM/DD', 37651 LL : 'YYYYå¹´MæDæ¥', 37652 LLL : 'YYYYå¹´MæDæ¥ HH:mm', 37653 LLLL : 'YYYYå¹´MæDæ¥ dddd HH:mm', 37654 l : 'YYYY/MM/DD', 37655 ll : 'YYYYå¹´MæDæ¥', 37656 lll : 'YYYYå¹´MæDæ¥ HH:mm', 37657 llll : 'YYYYå¹´MæDæ¥(ddd) HH:mm' 37658 }, 37659 meridiemParse: /åå|åå¾/i, 37660 isPM : function (input) { 37661 return input === 'åå¾'; 37662 }, 37663 meridiem : function (hour, minute, isLower) { 37664 if (hour < 12) { 37665 return 'åå'; 37666 } else { 37667 return 'åå¾'; 37668 } 37669 }, 37670 calendar : { 37671 sameDay : '[仿¥] LT', 37672 nextDay : '[ææ¥] LT', 37673 nextWeek : function (now) { 37674 if (now.week() < this.week()) { 37675 return '[æ¥é±]dddd LT'; 37676 } else { 37677 return 'dddd LT'; 37678 } 37679 }, 37680 lastDay : '[æ¨æ¥] LT', 37681 lastWeek : function (now) { 37682 if (this.week() < now.week()) { 37683 return '[å é±]dddd LT'; 37684 } else { 37685 return 'dddd LT'; 37686 } 37687 }, 37688 sameElse : 'L' 37689 }, 37690 dayOfMonthOrdinalParse : /\d{1,2}æ¥/, 37691 ordinal : function (number, period) { 37692 switch (period) { 37693 case 'd': 37694 case 'D': 37695 case 'DDD': 37696 return number + 'æ¥'; 37697 default: 37698 return number; 37699 } 37700 }, 37701 relativeTime : { 37702 future : '%så¾', 37703 past : '%så', 37704 s : 'æ°ç§', 37705 ss : '%dç§', 37706 m : '1å', 37707 mm : '%då', 37708 h : '1æé', 37709 hh : '%dæé', 37710 d : '1æ¥', 37711 dd : '%dæ¥', 37712 M : '1ã¶æ', 37713 MM : '%dã¶æ', 37714 y : '1å¹´', 37715 yy : '%då¹´' 37716 } 37717 }); 37718 37719 return ja; 37720 37721}))); 37722 37723 37724/***/ }), 37725/* 277 */ 37726/***/ (function(module, exports, __webpack_require__) { 37727 37728//! moment.js locale configuration 37729 37730;(function (global, factory) { 37731 true ? factory(__webpack_require__(1)) : 37732 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 37733 factory(global.moment) 37734}(this, (function (moment) { 'use strict'; 37735 37736 37737 var jv = moment.defineLocale('jv', { 37738 months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'), 37739 monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'), 37740 weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'), 37741 weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'), 37742 weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'), 37743 longDateFormat : { 37744 LT : 'HH.mm', 37745 LTS : 'HH.mm.ss', 37746 L : 'DD/MM/YYYY', 37747 LL : 'D MMMM YYYY', 37748 LLL : 'D MMMM YYYY [pukul] HH.mm', 37749 LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' 37750 }, 37751 meridiemParse: /enjing|siyang|sonten|ndalu/, 37752 meridiemHour : function (hour, meridiem) { 37753 if (hour === 12) { 37754 hour = 0; 37755 } 37756 if (meridiem === 'enjing') { 37757 return hour; 37758 } else if (meridiem === 'siyang') { 37759 return hour >= 11 ? hour : hour + 12; 37760 } else if (meridiem === 'sonten' || meridiem === 'ndalu') { 37761 return hour + 12; 37762 } 37763 }, 37764 meridiem : function (hours, minutes, isLower) { 37765 if (hours < 11) { 37766 return 'enjing'; 37767 } else if (hours < 15) { 37768 return 'siyang'; 37769 } else if (hours < 19) { 37770 return 'sonten'; 37771 } else { 37772 return 'ndalu'; 37773 } 37774 }, 37775 calendar : { 37776 sameDay : '[Dinten puniko pukul] LT', 37777 nextDay : '[Mbenjang pukul] LT', 37778 nextWeek : 'dddd [pukul] LT', 37779 lastDay : '[Kala wingi pukul] LT', 37780 lastWeek : 'dddd [kepengker pukul] LT', 37781 sameElse : 'L' 37782 }, 37783 relativeTime : { 37784 future : 'wonten ing %s', 37785 past : '%s ingkang kepengker', 37786 s : 'sawetawis detik', 37787 ss : '%d detik', 37788 m : 'setunggal menit', 37789 mm : '%d menit', 37790 h : 'setunggal jam', 37791 hh : '%d jam', 37792 d : 'sedinten', 37793 dd : '%d dinten', 37794 M : 'sewulan', 37795 MM : '%d wulan', 37796 y : 'setaun', 37797 yy : '%d taun' 37798 }, 37799 week : { 37800 dow : 1, // Monday is the first day of the week. 37801 doy : 7 // The week that contains Jan 1st is the first week of the year. 37802 } 37803 }); 37804 37805 return jv; 37806 37807}))); 37808 37809 37810/***/ }), 37811/* 278 */ 37812/***/ (function(module, exports, __webpack_require__) { 37813 37814//! moment.js locale configuration 37815 37816;(function (global, factory) { 37817 true ? factory(__webpack_require__(1)) : 37818 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 37819 factory(global.moment) 37820}(this, (function (moment) { 'use strict'; 37821 37822 37823 var ka = moment.defineLocale('ka', { 37824 months : { 37825 standalone: 'áááááá á_ááááá áááá_ááá á¢á_ááá ááá_áááá¡á_ááááá¡á_ááááá¡á_ááááá¡á¢á_á¡áá¥á¢ááááá á_áá¥á¢ááááá á_ááááááá á_áááááááá á'.split('_'), 37826 format: 'áááááá á¡_ááááá áááá¡_ááá á¢á¡_ááá áááá¡_áááá¡á¡_ááááá¡á¡_ááááá¡á¡_ááááá¡á¢á¡_á¡áá¥á¢ááááá á¡_áá¥á¢ááááá á¡_ááááááá á¡_áááááááá á¡'.split('_') 37827 }, 37828 monthsShort : 'ááá_ááá_ááá _ááá _ááá_ááá_ááá_ááá_á¡áá¥_áá¥á¢_ááá_ááá'.split('_'), 37829 weekdays : { 37830 standalone: 'áááá á_áá á¨ááááá_á¡ááá¨ááááá_ááá®á¨ááááá_á®á£áá¨ááááá_ááá áá¡áááá_á¨ááááá'.split('_'), 37831 format: 'áááá áá¡_áá á¨ááááá¡_á¡ááá¨ááááá¡_ááá®á¨ááááá¡_á®á£áá¨ááááá¡_ááá áá¡áááá¡_á¨ááááá¡'.split('_'), 37832 isFormat: /(á¬ááá|á¨ááááá)/ 37833 }, 37834 weekdaysShort : 'ááá_áá á¨_á¡áá_ááá®_á®á£á_ááá _á¨áá'.split('_'), 37835 weekdaysMin : 'áá_áá _á¡á_áá_á®á£_áá_á¨á'.split('_'), 37836 longDateFormat : { 37837 LT : 'h:mm A', 37838 LTS : 'h:mm:ss A', 37839 L : 'DD/MM/YYYY', 37840 LL : 'D MMMM YYYY', 37841 LLL : 'D MMMM YYYY h:mm A', 37842 LLLL : 'dddd, D MMMM YYYY h:mm A' 37843 }, 37844 calendar : { 37845 sameDay : '[áá¦áá¡] LT[-áá]', 37846 nextDay : '[á®ááá] LT[-áá]', 37847 lastDay : '[áá£á¨áá] LT[-áá]', 37848 nextWeek : '[á¨ááááá] dddd LT[-áá]', 37849 lastWeek : '[á¬ááá] dddd LT-áá', 37850 sameElse : 'L' 37851 }, 37852 relativeTime : { 37853 future : function (s) { 37854 return (/(á¬ááá|á¬á£áá|á¡áááá|á¬ááá)/).test(s) ? 37855 s.replace(/á$/, 'á¨á') : 37856 s + 'á¨á'; 37857 }, 37858 past : function (s) { 37859 if ((/(á¬ááá|á¬á£áá|á¡áááá|áá¦á|ááá)/).test(s)) { 37860 return s.replace(/(á|á)$/, 'áá¡ á¬áá'); 37861 } 37862 if ((/á¬ááá/).test(s)) { 37863 return s.replace(/á¬ááá$/, 'á¬ááá¡ á¬áá'); 37864 } 37865 }, 37866 s : 'á áááááááá á¬ááá', 37867 ss : '%d á¬ááá', 37868 m : 'á¬á£áá', 37869 mm : '%d á¬á£áá', 37870 h : 'á¡áááá', 37871 hh : '%d á¡áááá', 37872 d : 'áá¦á', 37873 dd : '%d áá¦á', 37874 M : 'ááá', 37875 MM : '%d ááá', 37876 y : 'á¬ááá', 37877 yy : '%d á¬ááá' 37878 }, 37879 dayOfMonthOrdinalParse: /0|1-áá|áá-\d{1,2}|\d{1,2}-á/, 37880 ordinal : function (number) { 37881 if (number === 0) { 37882 return number; 37883 } 37884 if (number === 1) { 37885 return number + '-áá'; 37886 } 37887 if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) { 37888 return 'áá-' + number; 37889 } 37890 return number + '-á'; 37891 }, 37892 week : { 37893 dow : 1, 37894 doy : 7 37895 } 37896 }); 37897 37898 return ka; 37899 37900}))); 37901 37902 37903/***/ }), 37904/* 279 */ 37905/***/ (function(module, exports, __webpack_require__) { 37906 37907//! moment.js locale configuration 37908 37909;(function (global, factory) { 37910 true ? factory(__webpack_require__(1)) : 37911 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 37912 factory(global.moment) 37913}(this, (function (moment) { 'use strict'; 37914 37915 37916 var suffixes = { 37917 0: '-ÑÑ', 37918 1: '-ÑÑ', 37919 2: '-ÑÑ', 37920 3: '-ÑÑ', 37921 4: '-ÑÑ', 37922 5: '-ÑÑ', 37923 6: '-ÑÑ', 37924 7: '-ÑÑ', 37925 8: '-ÑÑ', 37926 9: '-ÑÑ', 37927 10: '-ÑÑ', 37928 20: '-ÑÑ', 37929 30: '-ÑÑ', 37930 40: '-ÑÑ', 37931 50: '-ÑÑ', 37932 60: '-ÑÑ', 37933 70: '-ÑÑ', 37934 80: '-ÑÑ', 37935 90: '-ÑÑ', 37936 100: '-ÑÑ' 37937 }; 37938 37939 var kk = moment.defineLocale('kk', { 37940 months : 'ÒаңÑаÑ_аÒпан_наÑÑÑз_ÑÓÑÑÑ_мамÑÑ_маÑÑÑм_ÑÑлде_ÑамÑз_ÒÑÑкүйек_Òазан_ÒаÑаÑа_желÑоÒÑан'.split('_'), 37941 monthsShort : 'Òаң_аÒп_наÑ_ÑÓÑ_мам_маÑ_ÑÑл_Ñам_ÒÑÑ_Òаз_ÒаÑ_жел'.split('_'), 37942 weekdays : 'жекÑенбÑ_дүйÑенбÑ_ÑейÑенбÑ_ÑÓÑÑенбÑ_бейÑенбÑ_жұма_ÑенбÑ'.split('_'), 37943 weekdaysShort : 'жек_дүй_Ñей_ÑÓÑ_бей_жұм_Ñен'.split('_'), 37944 weekdaysMin : 'жк_дй_Ñй_ÑÑ_бй_жм_Ñн'.split('_'), 37945 longDateFormat : { 37946 LT : 'HH:mm', 37947 LTS : 'HH:mm:ss', 37948 L : 'DD.MM.YYYY', 37949 LL : 'D MMMM YYYY', 37950 LLL : 'D MMMM YYYY HH:mm', 37951 LLLL : 'dddd, D MMMM YYYY HH:mm' 37952 }, 37953 calendar : { 37954 sameDay : '[ÐүгÑн ÑаÒаÑ] LT', 37955 nextDay : '[ÐÑÑең ÑаÒаÑ] LT', 37956 nextWeek : 'dddd [ÑаÒаÑ] LT', 37957 lastDay : '[ÐеÑе ÑаÒаÑ] LT', 37958 lastWeek : '[Ó¨Ñкен апÑанÑÒ£] dddd [ÑаÒаÑ] LT', 37959 sameElse : 'L' 37960 }, 37961 relativeTime : { 37962 future : '%s ÑÑÑнде', 37963 past : '%s бұÑÑн', 37964 s : 'бÑÑнеÑе ÑекÑнд', 37965 ss : '%d ÑекÑнд', 37966 m : 'бÑÑ Ð¼Ð¸Ð½ÑÑ', 37967 mm : '%d минÑÑ', 37968 h : 'бÑÑ ÑаÒаÑ', 37969 hh : '%d ÑаÒаÑ', 37970 d : 'бÑÑ ÐºÒ¯Ð½', 37971 dd : '%d күн', 37972 M : 'бÑÑ Ð°Ð¹', 37973 MM : '%d ай', 37974 y : 'бÑÑ Ð¶Ñл', 37975 yy : '%d жÑл' 37976 }, 37977 dayOfMonthOrdinalParse: /\d{1,2}-(ÑÑ|ÑÑ)/, 37978 ordinal : function (number) { 37979 var a = number % 10, 37980 b = number >= 100 ? 100 : null; 37981 return number + (suffixes[number] || suffixes[a] || suffixes[b]); 37982 }, 37983 week : { 37984 dow : 1, // Monday is the first day of the week. 37985 doy : 7 // The week that contains Jan 1st is the first week of the year. 37986 } 37987 }); 37988 37989 return kk; 37990 37991}))); 37992 37993 37994/***/ }), 37995/* 280 */ 37996/***/ (function(module, exports, __webpack_require__) { 37997 37998//! moment.js locale configuration 37999 38000;(function (global, factory) { 38001 true ? factory(__webpack_require__(1)) : 38002 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 38003 factory(global.moment) 38004}(this, (function (moment) { 'use strict'; 38005 38006 38007 var symbolMap = { 38008 '1': 'á¡', 38009 '2': 'á¢', 38010 '3': 'á£', 38011 '4': 'á¤', 38012 '5': 'á¥', 38013 '6': 'á¦', 38014 '7': 'á§', 38015 '8': 'á¨', 38016 '9': 'á©', 38017 '0': 'á ' 38018 }, numberMap = { 38019 'á¡': '1', 38020 'á¢': '2', 38021 'á£': '3', 38022 'á¤': '4', 38023 'á¥': '5', 38024 'á¦': '6', 38025 'á§': '7', 38026 'á¨': '8', 38027 'á©': '9', 38028 'á ': '0' 38029 }; 38030 38031 var km = moment.defineLocale('km', { 38032 months: 'áááá¶_áá»áááá_áá¸áá¶_áááá¶_á§ááá¶_áá·áá»áá¶_áááááá¶_áá¸á á¶_ááááá¶_áá»áá¶_áá·á ááá·áá¶_áááá¼'.split( 38033 '_' 38034 ), 38035 monthsShort: 'áááá¶_áá»áááá_áá¸áá¶_áááá¶_á§ááá¶_áá·áá»áá¶_áááááá¶_áá¸á á¶_ááááá¶_áá»áá¶_áá·á ááá·áá¶_áááá¼'.split( 38036 '_' 38037 ), 38038 weekdays: 'á¢á¶áá·ááá_á áááá_á¢áááá¶á_áá»á_áááá ááááá·á_áá»ááá_áá áá'.split('_'), 38039 weekdaysShort: 'á¢á¶_á _á¢_á_ááá_áá»_á'.split('_'), 38040 weekdaysMin: 'á¢á¶_á _á¢_á_ááá_áá»_á'.split('_'), 38041 weekdaysParseExact: true, 38042 longDateFormat: { 38043 LT: 'HH:mm', 38044 LTS: 'HH:mm:ss', 38045 L: 'DD/MM/YYYY', 38046 LL: 'D MMMM YYYY', 38047 LLL: 'D MMMM YYYY HH:mm', 38048 LLLL: 'dddd, D MMMM YYYY HH:mm' 38049 }, 38050 meridiemParse: /áááá¹á|áááá¶á /, 38051 isPM: function (input) { 38052 return input === 'áááá¶á '; 38053 }, 38054 meridiem: function (hour, minute, isLower) { 38055 if (hour < 12) { 38056 return 'áááá¹á'; 38057 } else { 38058 return 'áááá¶á '; 38059 } 38060 }, 38061 calendar: { 38062 sameDay: '[ááááááá áááá] LT', 38063 nextDay: '[ááá¢áá áááá] LT', 38064 nextWeek: 'dddd [áááá] LT', 38065 lastDay: '[áááá·ááá·á áááá] LT', 38066 lastWeek: 'dddd [ááááá¶á ááá»á] [áááá] LT', 38067 sameElse: 'L' 38068 }, 38069 relativeTime: { 38070 future: '%sááá', 38071 past: '%sáá»á', 38072 s: 'ááá»áááá¶ááá·áá¶áá¸', 38073 ss: '%d áá·áá¶áá¸', 38074 m: 'áá½ááá¶áá¸', 38075 mm: '%d áá¶áá¸', 38076 h: 'áá½ááááá', 38077 hh: '%d áááá', 38078 d: 'áá½ááááá', 38079 dd: '%d áááá', 38080 M: 'áá½ááá', 38081 MM: '%d áá', 38082 y: 'áá½ááááá¶á', 38083 yy: '%d áááá¶á' 38084 }, 38085 dayOfMonthOrdinalParse : /áá¸\d{1,2}/, 38086 ordinal : 'áá¸%d', 38087 preparse: function (string) { 38088 return string.replace(/[á¡á¢á£á¤á¥á¦á§á¨á©á ]/g, function (match) { 38089 return numberMap[match]; 38090 }); 38091 }, 38092 postformat: function (string) { 38093 return string.replace(/\d/g, function (match) { 38094 return symbolMap[match]; 38095 }); 38096 }, 38097 week: { 38098 dow: 1, // Monday is the first day of the week. 38099 doy: 4 // The week that contains Jan 4th is the first week of the year. 38100 } 38101 }); 38102 38103 return km; 38104 38105}))); 38106 38107 38108/***/ }), 38109/* 281 */ 38110/***/ (function(module, exports, __webpack_require__) { 38111 38112//! moment.js locale configuration 38113 38114;(function (global, factory) { 38115 true ? factory(__webpack_require__(1)) : 38116 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 38117 factory(global.moment) 38118}(this, (function (moment) { 'use strict'; 38119 38120 38121 var symbolMap = { 38122 '1': 'à³§', 38123 '2': '೨', 38124 '3': '೩', 38125 '4': '೪', 38126 '5': '೫', 38127 '6': '೬', 38128 '7': 'à³', 38129 '8': 'à³®', 38130 '9': '೯', 38131 '0': '೦' 38132 }, 38133 numberMap = { 38134 'à³§': '1', 38135 '೨': '2', 38136 '೩': '3', 38137 '೪': '4', 38138 '೫': '5', 38139 '೬': '6', 38140 'à³': '7', 38141 'à³®': '8', 38142 '೯': '9', 38143 '೦': '0' 38144 }; 38145 38146 var kn = moment.defineLocale('kn', { 38147 months : 'à²à²¨à²µà²°à²¿_ಫà³à²¬à³à²°à²µà²°à²¿_ಮಾರà³à²à³_à²à²ªà³à²°à²¿à²²à³_ಮà³à³_à²à³à²¨à³_à²à³à²²à³à³_à²à²à²¸à³à²à³_ಸà³à²ªà³à²à³à²à²¬à²°à³_ಠà²à³à²à³à³à³à²¬à²°à³_ನವà³à²à²¬à²°à³_ಡಿಸà³à²à²¬à²°à³'.split('_'), 38148 monthsShort : 'à²à²¨_ಫà³à²¬à³à²°_ಮಾರà³à²à³_à²à²ªà³à²°à²¿à²²à³_ಮà³à³_à²à³à²¨à³_à²à³à²²à³à³_à²à²à²¸à³à²à³_ಸà³à²ªà³à²à³à²_ಠà²à³à²à³à³à³_ನವà³à²_ಡಿಸà³à²'.split('_'), 38149 monthsParseExact: true, 38150 weekdays : 'à²à²¾à²¨à³à²µà²¾à²°_ಸà³à³à³à²®à²µà²¾à²°_ಮà²à²à²³à²µà²¾à²°_ಬà³à²§à²µà²¾à²°_à²à³à²°à³à²µà²¾à²°_ಶà³à²à³à²°à²µà²¾à²°_ಶನಿವಾರ'.split('_'), 38151 weekdaysShort : 'à²à²¾à²¨à³_ಸà³à³à³à²®_ಮà²à²à²³_ಬà³à²§_à²à³à²°à³_ಶà³à²à³à²°_ಶನಿ'.split('_'), 38152 weekdaysMin : 'à²à²¾_ಸà³à³à³_ಮà²_ಬà³_à²à³_ಶà³_ಶ'.split('_'), 38153 longDateFormat : { 38154 LT : 'A h:mm', 38155 LTS : 'A h:mm:ss', 38156 L : 'DD/MM/YYYY', 38157 LL : 'D MMMM YYYY', 38158 LLL : 'D MMMM YYYY, A h:mm', 38159 LLLL : 'dddd, D MMMM YYYY, A h:mm' 38160 }, 38161 calendar : { 38162 sameDay : '[à²à²à²¦à³] LT', 38163 nextDay : '[ನಾಳà³] LT', 38164 nextWeek : 'dddd, LT', 38165 lastDay : '[ನಿನà³à²¨à³] LT', 38166 lastWeek : '[à²à³à³à²¨à³à²¯] dddd, LT', 38167 sameElse : 'L' 38168 }, 38169 relativeTime : { 38170 future : '%s ನà²à²¤à²°', 38171 past : '%s ಹಿà²à²¦à³', 38172 s : 'à²à³à²²à²µà³ à²à³à²·à²£à²à²³à³', 38173 ss : '%d ಸà³à²à³à²à²¡à³à²à²³à³', 38174 m : 'à²à²à²¦à³ ನಿಮಿಷ', 38175 mm : '%d ನಿಮಿಷ', 38176 h : 'à²à²à²¦à³ à²à²à²à³', 38177 hh : '%d à²à²à²à³', 38178 d : 'à²à²à²¦à³ ದಿನ', 38179 dd : '%d ದಿನ', 38180 M : 'à²à²à²¦à³ ತಿà²à²à²³à³', 38181 MM : '%d ತಿà²à²à²³à³', 38182 y : 'à²à²à²¦à³ ವರà³à²·', 38183 yy : '%d ವರà³à²·' 38184 }, 38185 preparse: function (string) { 38186 return string.replace(/[೧೨೩೪೫೬à³à³®à³¯à³¦]/g, function (match) { 38187 return numberMap[match]; 38188 }); 38189 }, 38190 postformat: function (string) { 38191 return string.replace(/\d/g, function (match) { 38192 return symbolMap[match]; 38193 }); 38194 }, 38195 meridiemParse: /ರಾತà³à²°à²¿|ಬà³à²³à²¿à²à³à²à³|ಮಧà³à²¯à²¾à²¹à³à²¨|ಸà²à²à³/, 38196 meridiemHour : function (hour, meridiem) { 38197 if (hour === 12) { 38198 hour = 0; 38199 } 38200 if (meridiem === 'ರಾತà³à²°à²¿') { 38201 return hour < 4 ? hour : hour + 12; 38202 } else if (meridiem === 'ಬà³à²³à²¿à²à³à²à³') { 38203 return hour; 38204 } else if (meridiem === 'ಮಧà³à²¯à²¾à²¹à³à²¨') { 38205 return hour >= 10 ? hour : hour + 12; 38206 } else if (meridiem === 'ಸà²à²à³') { 38207 return hour + 12; 38208 } 38209 }, 38210 meridiem : function (hour, minute, isLower) { 38211 if (hour < 4) { 38212 return 'ರಾತà³à²°à²¿'; 38213 } else if (hour < 10) { 38214 return 'ಬà³à²³à²¿à²à³à²à³'; 38215 } else if (hour < 17) { 38216 return 'ಮಧà³à²¯à²¾à²¹à³à²¨'; 38217 } else if (hour < 20) { 38218 return 'ಸà²à²à³'; 38219 } else { 38220 return 'ರಾತà³à²°à²¿'; 38221 } 38222 }, 38223 dayOfMonthOrdinalParse: /\d{1,2}(ನà³à³)/, 38224 ordinal : function (number) { 38225 return number + 'ನà³à³'; 38226 }, 38227 week : { 38228 dow : 0, // Sunday is the first day of the week. 38229 doy : 6 // The week that contains Jan 1st is the first week of the year. 38230 } 38231 }); 38232 38233 return kn; 38234 38235}))); 38236 38237 38238/***/ }), 38239/* 282 */ 38240/***/ (function(module, exports, __webpack_require__) { 38241 38242//! moment.js locale configuration 38243 38244;(function (global, factory) { 38245 true ? factory(__webpack_require__(1)) : 38246 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 38247 factory(global.moment) 38248}(this, (function (moment) { 'use strict'; 38249 38250 38251 var ko = moment.defineLocale('ko', { 38252 months : '1ì_2ì_3ì_4ì_5ì_6ì_7ì_8ì_9ì_10ì_11ì_12ì'.split('_'), 38253 monthsShort : '1ì_2ì_3ì_4ì_5ì_6ì_7ì_8ì_9ì_10ì_11ì_12ì'.split('_'), 38254 weekdays : 'ì¼ìì¼_ììì¼_íìì¼_ììì¼_목ìì¼_ê¸ìì¼_í ìì¼'.split('_'), 38255 weekdaysShort : 'ì¼_ì_í_ì_목_ê¸_í '.split('_'), 38256 weekdaysMin : 'ì¼_ì_í_ì_목_ê¸_í '.split('_'), 38257 longDateFormat : { 38258 LT : 'A h:mm', 38259 LTS : 'A h:mm:ss', 38260 L : 'YYYY.MM.DD.', 38261 LL : 'YYYYë MMMM Dì¼', 38262 LLL : 'YYYYë MMMM Dì¼ A h:mm', 38263 LLLL : 'YYYYë MMMM Dì¼ dddd A h:mm', 38264 l : 'YYYY.MM.DD.', 38265 ll : 'YYYYë MMMM Dì¼', 38266 lll : 'YYYYë MMMM Dì¼ A h:mm', 38267 llll : 'YYYYë MMMM Dì¼ dddd A h:mm' 38268 }, 38269 calendar : { 38270 sameDay : 'ì¤ë LT', 38271 nextDay : 'ë´ì¼ LT', 38272 nextWeek : 'dddd LT', 38273 lastDay : 'ì´ì LT', 38274 lastWeek : 'ì§ë주 dddd LT', 38275 sameElse : 'L' 38276 }, 38277 relativeTime : { 38278 future : '%s í', 38279 past : '%s ì ', 38280 s : 'ëª ì´', 38281 ss : '%dì´', 38282 m : '1ë¶', 38283 mm : '%dë¶', 38284 h : 'í ìê°', 38285 hh : '%dìê°', 38286 d : 'í루', 38287 dd : '%dì¼', 38288 M : 'í ë¬', 38289 MM : '%dë¬', 38290 y : 'ì¼ ë ', 38291 yy : '%dë ' 38292 }, 38293 dayOfMonthOrdinalParse : /\d{1,2}(ì¼|ì|주)/, 38294 ordinal : function (number, period) { 38295 switch (period) { 38296 case 'd': 38297 case 'D': 38298 case 'DDD': 38299 return number + 'ì¼'; 38300 case 'M': 38301 return number + 'ì'; 38302 case 'w': 38303 case 'W': 38304 return number + '주'; 38305 default: 38306 return number; 38307 } 38308 }, 38309 meridiemParse : /ì¤ì |ì¤í/, 38310 isPM : function (token) { 38311 return token === 'ì¤í'; 38312 }, 38313 meridiem : function (hour, minute, isUpper) { 38314 return hour < 12 ? 'ì¤ì ' : 'ì¤í'; 38315 } 38316 }); 38317 38318 return ko; 38319 38320}))); 38321 38322 38323/***/ }), 38324/* 283 */ 38325/***/ (function(module, exports, __webpack_require__) { 38326 38327//! moment.js locale configuration 38328 38329;(function (global, factory) { 38330 true ? factory(__webpack_require__(1)) : 38331 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 38332 factory(global.moment) 38333}(this, (function (moment) { 'use strict'; 38334 38335 38336 var suffixes = { 38337 0: '-ÑÒ¯', 38338 1: '-Ñи', 38339 2: '-Ñи', 38340 3: '-ÑÒ¯', 38341 4: '-ÑÒ¯', 38342 5: '-Ñи', 38343 6: '-ÑÑ', 38344 7: '-Ñи', 38345 8: '-Ñи', 38346 9: '-ÑÑ', 38347 10: '-ÑÑ', 38348 20: '-ÑÑ', 38349 30: '-ÑÑ', 38350 40: '-ÑÑ', 38351 50: '-ÑÒ¯', 38352 60: '-ÑÑ', 38353 70: '-Ñи', 38354 80: '-Ñи', 38355 90: '-ÑÑ', 38356 100: '-ÑÒ¯' 38357 }; 38358 38359 var ky = moment.defineLocale('ky', { 38360 months : 'ÑнваÑÑ_ÑевÑалÑ_маÑÑ_апÑелÑ_май_иÑнÑ_иÑлÑ_авгÑÑÑ_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ'.split('_'), 38361 monthsShort : 'Ñнв_Ñев_маÑÑ_апÑ_май_иÑнÑ_иÑлÑ_авг_Ñен_окÑ_ноÑ_дек'.split('_'), 38362 weekdays : 'ÐекÑемби_ÐүйÑөмбү_ШейÑемби_ШаÑÑемби_ÐейÑемби_ÐÑма_ÐÑемби'.split('_'), 38363 weekdaysShort : 'Ðек_Ðүй_Шей_ШаÑ_Ðей_ÐÑм_ÐÑе'.split('_'), 38364 weekdaysMin : 'Ðк_Ðй_Шй_ШÑ_Ðй_Ðм_ÐÑ'.split('_'), 38365 longDateFormat : { 38366 LT : 'HH:mm', 38367 LTS : 'HH:mm:ss', 38368 L : 'DD.MM.YYYY', 38369 LL : 'D MMMM YYYY', 38370 LLL : 'D MMMM YYYY HH:mm', 38371 LLLL : 'dddd, D MMMM YYYY HH:mm' 38372 }, 38373 calendar : { 38374 sameDay : '[Ðүгүн ÑааÑ] LT', 38375 nextDay : '[ÐÑÑең ÑааÑ] LT', 38376 nextWeek : 'dddd [ÑааÑ] LT', 38377 lastDay : '[ÐеÑе ÑааÑ] LT', 38378 lastWeek : '[Ó¨Ñкен апÑанÑн] dddd [күнү] [ÑааÑ] LT', 38379 sameElse : 'L' 38380 }, 38381 relativeTime : { 38382 future : '%s иÑинде', 38383 past : '%s мÑÑÑн', 38384 s : 'биÑнеÑе ÑекÑнд', 38385 ss : '%d ÑекÑнд', 38386 m : 'Ð±Ð¸Ñ Ð¼Ò¯Ð½Ó©Ñ', 38387 mm : '%d мүнөÑ', 38388 h : 'Ð±Ð¸Ñ ÑааÑ', 38389 hh : '%d ÑааÑ', 38390 d : 'Ð±Ð¸Ñ ÐºÒ¯Ð½', 38391 dd : '%d күн', 38392 M : 'Ð±Ð¸Ñ Ð°Ð¹', 38393 MM : '%d ай', 38394 y : 'Ð±Ð¸Ñ Ð¶Ñл', 38395 yy : '%d жÑл' 38396 }, 38397 dayOfMonthOrdinalParse: /\d{1,2}-(Ñи|ÑÑ|ÑÒ¯|ÑÑ)/, 38398 ordinal : function (number) { 38399 var a = number % 10, 38400 b = number >= 100 ? 100 : null; 38401 return number + (suffixes[number] || suffixes[a] || suffixes[b]); 38402 }, 38403 week : { 38404 dow : 1, // Monday is the first day of the week. 38405 doy : 7 // The week that contains Jan 1st is the first week of the year. 38406 } 38407 }); 38408 38409 return ky; 38410 38411}))); 38412 38413 38414/***/ }), 38415/* 284 */ 38416/***/ (function(module, exports, __webpack_require__) { 38417 38418//! moment.js locale configuration 38419 38420;(function (global, factory) { 38421 true ? factory(__webpack_require__(1)) : 38422 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 38423 factory(global.moment) 38424}(this, (function (moment) { 'use strict'; 38425 38426 38427 function processRelativeTime(number, withoutSuffix, key, isFuture) { 38428 var format = { 38429 'm': ['eng Minutt', 'enger Minutt'], 38430 'h': ['eng Stonn', 'enger Stonn'], 38431 'd': ['een Dag', 'engem Dag'], 38432 'M': ['ee Mount', 'engem Mount'], 38433 'y': ['ee Joer', 'engem Joer'] 38434 }; 38435 return withoutSuffix ? format[key][0] : format[key][1]; 38436 } 38437 function processFutureTime(string) { 38438 var number = string.substr(0, string.indexOf(' ')); 38439 if (eifelerRegelAppliesToNumber(number)) { 38440 return 'a ' + string; 38441 } 38442 return 'an ' + string; 38443 } 38444 function processPastTime(string) { 38445 var number = string.substr(0, string.indexOf(' ')); 38446 if (eifelerRegelAppliesToNumber(number)) { 38447 return 'viru ' + string; 38448 } 38449 return 'virun ' + string; 38450 } 38451 /** 38452 * Returns true if the word before the given number loses the '-n' ending. 38453 * e.g. 'an 10 Deeg' but 'a 5 Deeg' 38454 * 38455 * @param number {integer} 38456 * @returns {boolean} 38457 */ 38458 function eifelerRegelAppliesToNumber(number) { 38459 number = parseInt(number, 10); 38460 if (isNaN(number)) { 38461 return false; 38462 } 38463 if (number < 0) { 38464 // Negative Number --> always true 38465 return true; 38466 } else if (number < 10) { 38467 // Only 1 digit 38468 if (4 <= number && number <= 7) { 38469 return true; 38470 } 38471 return false; 38472 } else if (number < 100) { 38473 // 2 digits 38474 var lastDigit = number % 10, firstDigit = number / 10; 38475 if (lastDigit === 0) { 38476 return eifelerRegelAppliesToNumber(firstDigit); 38477 } 38478 return eifelerRegelAppliesToNumber(lastDigit); 38479 } else if (number < 10000) { 38480 // 3 or 4 digits --> recursively check first digit 38481 while (number >= 10) { 38482 number = number / 10; 38483 } 38484 return eifelerRegelAppliesToNumber(number); 38485 } else { 38486 // Anything larger than 4 digits: recursively check first n-3 digits 38487 number = number / 1000; 38488 return eifelerRegelAppliesToNumber(number); 38489 } 38490 } 38491 38492 var lb = moment.defineLocale('lb', { 38493 months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), 38494 monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'), 38495 monthsParseExact : true, 38496 weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'), 38497 weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'), 38498 weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'), 38499 weekdaysParseExact : true, 38500 longDateFormat: { 38501 LT: 'H:mm [Auer]', 38502 LTS: 'H:mm:ss [Auer]', 38503 L: 'DD.MM.YYYY', 38504 LL: 'D. MMMM YYYY', 38505 LLL: 'D. MMMM YYYY H:mm [Auer]', 38506 LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]' 38507 }, 38508 calendar: { 38509 sameDay: '[Haut um] LT', 38510 sameElse: 'L', 38511 nextDay: '[Muer um] LT', 38512 nextWeek: 'dddd [um] LT', 38513 lastDay: '[Gëschter um] LT', 38514 lastWeek: function () { 38515 // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule 38516 switch (this.day()) { 38517 case 2: 38518 case 4: 38519 return '[Leschten] dddd [um] LT'; 38520 default: 38521 return '[Leschte] dddd [um] LT'; 38522 } 38523 } 38524 }, 38525 relativeTime : { 38526 future : processFutureTime, 38527 past : processPastTime, 38528 s : 'e puer Sekonnen', 38529 ss : '%d Sekonnen', 38530 m : processRelativeTime, 38531 mm : '%d Minutten', 38532 h : processRelativeTime, 38533 hh : '%d Stonnen', 38534 d : processRelativeTime, 38535 dd : '%d Deeg', 38536 M : processRelativeTime, 38537 MM : '%d Méint', 38538 y : processRelativeTime, 38539 yy : '%d Joer' 38540 }, 38541 dayOfMonthOrdinalParse: /\d{1,2}\./, 38542 ordinal: '%d.', 38543 week: { 38544 dow: 1, // Monday is the first day of the week. 38545 doy: 4 // The week that contains Jan 4th is the first week of the year. 38546 } 38547 }); 38548 38549 return lb; 38550 38551}))); 38552 38553 38554/***/ }), 38555/* 285 */ 38556/***/ (function(module, exports, __webpack_require__) { 38557 38558//! moment.js locale configuration 38559 38560;(function (global, factory) { 38561 true ? factory(__webpack_require__(1)) : 38562 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 38563 factory(global.moment) 38564}(this, (function (moment) { 'use strict'; 38565 38566 38567 var lo = moment.defineLocale('lo', { 38568 months : 'ມັàºàºàºàº_àºàº¸àº¡àºàº²_ມີàºàº²_à»àº¡àºªàº²_àºàº¶àºàºªàº°àºàº²_ມິàºàº¸àºàº²_àºà»àº¥àº°àºàº»àº_ສິàºàº«àº²_àºàº±àºàºàº²_àºàº¸àº¥àº²_àºàº°àºàº´àº_àºàº±àºàº§àº²'.split('_'), 38569 monthsShort : 'ມັàºàºàºàº_àºàº¸àº¡àºàº²_ມີàºàº²_à»àº¡àºªàº²_àºàº¶àºàºªàº°àºàº²_ມິàºàº¸àºàº²_àºà»àº¥àº°àºàº»àº_ສິàºàº«àº²_àºàº±àºàºàº²_àºàº¸àº¥àº²_àºàº°àºàº´àº_àºàº±àºàº§àº²'.split('_'), 38570 weekdays : 'àºàº²àºàº´àº_àºàº±àº_àºàº±àºàºàº²àº_àºàº¸àº_àºàº°àº«àº±àº_ສຸàº_à»àºªàº»àº²'.split('_'), 38571 weekdaysShort : 'àºàº´àº_àºàº±àº_àºàº±àºàºàº²àº_àºàº¸àº_àºàº°àº«àº±àº_ສຸàº_à»àºªàº»àº²'.split('_'), 38572 weekdaysMin : 'àº_àº_àºàº_àº_àºàº«_ສàº_ສ'.split('_'), 38573 weekdaysParseExact : true, 38574 longDateFormat : { 38575 LT : 'HH:mm', 38576 LTS : 'HH:mm:ss', 38577 L : 'DD/MM/YYYY', 38578 LL : 'D MMMM YYYY', 38579 LLL : 'D MMMM YYYY HH:mm', 38580 LLLL : 'ວັàºdddd D MMMM YYYY HH:mm' 38581 }, 38582 meridiemParse: /àºàºàºà»àºàº»à»àº²|àºàºàºà»àº¥àº/, 38583 isPM: function (input) { 38584 return input === 'àºàºàºà»àº¥àº'; 38585 }, 38586 meridiem : function (hour, minute, isLower) { 38587 if (hour < 12) { 38588 return 'àºàºàºà»àºàº»à»àº²'; 38589 } else { 38590 return 'àºàºàºà»àº¥àº'; 38591 } 38592 }, 38593 calendar : { 38594 sameDay : '[ມືà»àºàºµà»à»àº§àº¥àº²] LT', 38595 nextDay : '[ມືà»àºàº·à»àºà»àº§àº¥àº²] LT', 38596 nextWeek : '[ວັàº]dddd[à»à»àº²à»àº§àº¥àº²] LT', 38597 lastDay : '[ມືà»àº§àº²àºàºàºµà»à»àº§àº¥àº²] LT', 38598 lastWeek : '[ວັàº]dddd[à»àº¥à»àº§àºàºµà»à»àº§àº¥àº²] LT', 38599 sameElse : 'L' 38600 }, 38601 relativeTime : { 38602 future : 'àºàºµàº %s', 38603 past : '%sàºà»àº²àºàº¡àº²', 38604 s : 'àºà»à»à»àºàº»à»àº²à»àºàº§àº´àºàº²àºàºµ', 38605 ss : '%d ວິàºàº²àºàºµ' , 38606 m : '1 àºàº²àºàºµ', 38607 mm : '%d àºàº²àºàºµ', 38608 h : '1 àºàº»à»àº§à»àº¡àº', 38609 hh : '%d àºàº»à»àº§à»àº¡àº', 38610 d : '1 ມືà»', 38611 dd : '%d ມືà»', 38612 M : '1 à»àºàº·àºàº', 38613 MM : '%d à»àºàº·àºàº', 38614 y : '1 àºàºµ', 38615 yy : '%d àºàºµ' 38616 }, 38617 dayOfMonthOrdinalParse: /(àºàºµà»)\d{1,2}/, 38618 ordinal : function (number) { 38619 return 'àºàºµà»' + number; 38620 } 38621 }); 38622 38623 return lo; 38624 38625}))); 38626 38627 38628/***/ }), 38629/* 286 */ 38630/***/ (function(module, exports, __webpack_require__) { 38631 38632//! moment.js locale configuration 38633 38634;(function (global, factory) { 38635 true ? factory(__webpack_require__(1)) : 38636 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 38637 factory(global.moment) 38638}(this, (function (moment) { 'use strict'; 38639 38640 38641 var units = { 38642 'ss' : 'sekundÄ_sekundžių_sekundes', 38643 'm' : 'minutÄ_minutÄs_minutÄ', 38644 'mm': 'minutÄs_minuÄių_minutes', 38645 'h' : 'valanda_valandos_valandÄ ', 38646 'hh': 'valandos_valandų_valandas', 38647 'd' : 'diena_dienos_dienÄ ', 38648 'dd': 'dienos_dienų_dienas', 38649 'M' : 'mÄnuo_mÄnesio_mÄnesį', 38650 'MM': 'mÄnesiai_mÄnesių_mÄnesius', 38651 'y' : 'metai_metų_metus', 38652 'yy': 'metai_metų_metus' 38653 }; 38654 function translateSeconds(number, withoutSuffix, key, isFuture) { 38655 if (withoutSuffix) { 38656 return 'kelios sekundÄs'; 38657 } else { 38658 return isFuture ? 'kelių sekundžių' : 'kelias sekundes'; 38659 } 38660 } 38661 function translateSingular(number, withoutSuffix, key, isFuture) { 38662 return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]); 38663 } 38664 function special(number) { 38665 return number % 10 === 0 || (number > 10 && number < 20); 38666 } 38667 function forms(key) { 38668 return units[key].split('_'); 38669 } 38670 function translate(number, withoutSuffix, key, isFuture) { 38671 var result = number + ' '; 38672 if (number === 1) { 38673 return result + translateSingular(number, withoutSuffix, key[0], isFuture); 38674 } else if (withoutSuffix) { 38675 return result + (special(number) ? forms(key)[1] : forms(key)[0]); 38676 } else { 38677 if (isFuture) { 38678 return result + forms(key)[1]; 38679 } else { 38680 return result + (special(number) ? forms(key)[1] : forms(key)[2]); 38681 } 38682 } 38683 } 38684 var lt = moment.defineLocale('lt', { 38685 months : { 38686 format: 'sausio_vasario_kovo_balandžio_gegužÄs_birželio_liepos_rugpjÅ«Äio_rugsÄjo_spalio_lapkriÄio_gruodžio'.split('_'), 38687 standalone: 'sausis_vasaris_kovas_balandis_gegužÄ_birželis_liepa_rugpjÅ«tis_rugsÄjis_spalis_lapkritis_gruodis'.split('_'), 38688 isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/ 38689 }, 38690 monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'), 38691 weekdays : { 38692 format: 'sekmadienį_pirmadienį_antradienį_treÄiadienį_ketvirtadienį_penktadienį_Å¡eÅ¡tadienį'.split('_'), 38693 standalone: 'sekmadienis_pirmadienis_antradienis_treÄiadienis_ketvirtadienis_penktadienis_Å¡eÅ¡tadienis'.split('_'), 38694 isFormat: /dddd HH:mm/ 38695 }, 38696 weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Å eÅ¡'.split('_'), 38697 weekdaysMin : 'S_P_A_T_K_Pn_Å '.split('_'), 38698 weekdaysParseExact : true, 38699 longDateFormat : { 38700 LT : 'HH:mm', 38701 LTS : 'HH:mm:ss', 38702 L : 'YYYY-MM-DD', 38703 LL : 'YYYY [m.] MMMM D [d.]', 38704 LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]', 38705 LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]', 38706 l : 'YYYY-MM-DD', 38707 ll : 'YYYY [m.] MMMM D [d.]', 38708 lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]', 38709 llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]' 38710 }, 38711 calendar : { 38712 sameDay : '[Å iandien] LT', 38713 nextDay : '[Rytoj] LT', 38714 nextWeek : 'dddd LT', 38715 lastDay : '[Vakar] LT', 38716 lastWeek : '[PraÄjusį] dddd LT', 38717 sameElse : 'L' 38718 }, 38719 relativeTime : { 38720 future : 'po %s', 38721 past : 'prieÅ¡ %s', 38722 s : translateSeconds, 38723 ss : translate, 38724 m : translateSingular, 38725 mm : translate, 38726 h : translateSingular, 38727 hh : translate, 38728 d : translateSingular, 38729 dd : translate, 38730 M : translateSingular, 38731 MM : translate, 38732 y : translateSingular, 38733 yy : translate 38734 }, 38735 dayOfMonthOrdinalParse: /\d{1,2}-oji/, 38736 ordinal : function (number) { 38737 return number + '-oji'; 38738 }, 38739 week : { 38740 dow : 1, // Monday is the first day of the week. 38741 doy : 4 // The week that contains Jan 4th is the first week of the year. 38742 } 38743 }); 38744 38745 return lt; 38746 38747}))); 38748 38749 38750/***/ }), 38751/* 287 */ 38752/***/ (function(module, exports, __webpack_require__) { 38753 38754//! moment.js locale configuration 38755 38756;(function (global, factory) { 38757 true ? factory(__webpack_require__(1)) : 38758 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 38759 factory(global.moment) 38760}(this, (function (moment) { 'use strict'; 38761 38762 38763 var units = { 38764 'ss': 'sekundes_sekundÄm_sekunde_sekundes'.split('_'), 38765 'm': 'minÅ«tes_minÅ«tÄm_minÅ«te_minÅ«tes'.split('_'), 38766 'mm': 'minÅ«tes_minÅ«tÄm_minÅ«te_minÅ«tes'.split('_'), 38767 'h': 'stundas_stundÄm_stunda_stundas'.split('_'), 38768 'hh': 'stundas_stundÄm_stunda_stundas'.split('_'), 38769 'd': 'dienas_dienÄm_diena_dienas'.split('_'), 38770 'dd': 'dienas_dienÄm_diena_dienas'.split('_'), 38771 'M': 'mÄneÅ¡a_mÄneÅ¡iem_mÄnesis_mÄneÅ¡i'.split('_'), 38772 'MM': 'mÄneÅ¡a_mÄneÅ¡iem_mÄnesis_mÄneÅ¡i'.split('_'), 38773 'y': 'gada_gadiem_gads_gadi'.split('_'), 38774 'yy': 'gada_gadiem_gads_gadi'.split('_') 38775 }; 38776 /** 38777 * @param withoutSuffix boolean true = a length of time; false = before/after a period of time. 38778 */ 38779 function format(forms, number, withoutSuffix) { 38780 if (withoutSuffix) { 38781 // E.g. "21 minÅ«te", "3 minÅ«tes". 38782 return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3]; 38783 } else { 38784 // E.g. "21 minÅ«tes" as in "pÄc 21 minÅ«tes". 38785 // E.g. "3 minÅ«tÄm" as in "pÄc 3 minÅ«tÄm". 38786 return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1]; 38787 } 38788 } 38789 function relativeTimeWithPlural(number, withoutSuffix, key) { 38790 return number + ' ' + format(units[key], number, withoutSuffix); 38791 } 38792 function relativeTimeWithSingular(number, withoutSuffix, key) { 38793 return format(units[key], number, withoutSuffix); 38794 } 38795 function relativeSeconds(number, withoutSuffix) { 38796 return withoutSuffix ? 'dažas sekundes' : 'dažÄm sekundÄm'; 38797 } 38798 38799 var lv = moment.defineLocale('lv', { 38800 months : 'janvÄris_februÄris_marts_aprÄ«lis_maijs_jÅ«nijs_jÅ«lijs_augusts_septembris_oktobris_novembris_decembris'.split('_'), 38801 monthsShort : 'jan_feb_mar_apr_mai_jÅ«n_jÅ«l_aug_sep_okt_nov_dec'.split('_'), 38802 weekdays : 'svÄtdiena_pirmdiena_otrdiena_treÅ¡diena_ceturtdiena_piektdiena_sestdiena'.split('_'), 38803 weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'), 38804 weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'), 38805 weekdaysParseExact : true, 38806 longDateFormat : { 38807 LT : 'HH:mm', 38808 LTS : 'HH:mm:ss', 38809 L : 'DD.MM.YYYY.', 38810 LL : 'YYYY. [gada] D. MMMM', 38811 LLL : 'YYYY. [gada] D. MMMM, HH:mm', 38812 LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm' 38813 }, 38814 calendar : { 38815 sameDay : '[Å odien pulksten] LT', 38816 nextDay : '[RÄ«t pulksten] LT', 38817 nextWeek : 'dddd [pulksten] LT', 38818 lastDay : '[Vakar pulksten] LT', 38819 lastWeek : '[PagÄjuÅ¡Ä] dddd [pulksten] LT', 38820 sameElse : 'L' 38821 }, 38822 relativeTime : { 38823 future : 'pÄc %s', 38824 past : 'pirms %s', 38825 s : relativeSeconds, 38826 ss : relativeTimeWithPlural, 38827 m : relativeTimeWithSingular, 38828 mm : relativeTimeWithPlural, 38829 h : relativeTimeWithSingular, 38830 hh : relativeTimeWithPlural, 38831 d : relativeTimeWithSingular, 38832 dd : relativeTimeWithPlural, 38833 M : relativeTimeWithSingular, 38834 MM : relativeTimeWithPlural, 38835 y : relativeTimeWithSingular, 38836 yy : relativeTimeWithPlural 38837 }, 38838 dayOfMonthOrdinalParse: /\d{1,2}\./, 38839 ordinal : '%d.', 38840 week : { 38841 dow : 1, // Monday is the first day of the week. 38842 doy : 4 // The week that contains Jan 4th is the first week of the year. 38843 } 38844 }); 38845 38846 return lv; 38847 38848}))); 38849 38850 38851/***/ }), 38852/* 288 */ 38853/***/ (function(module, exports, __webpack_require__) { 38854 38855//! moment.js locale configuration 38856 38857;(function (global, factory) { 38858 true ? factory(__webpack_require__(1)) : 38859 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 38860 factory(global.moment) 38861}(this, (function (moment) { 'use strict'; 38862 38863 38864 var translator = { 38865 words: { //Different grammatical cases 38866 ss: ['sekund', 'sekunda', 'sekundi'], 38867 m: ['jedan minut', 'jednog minuta'], 38868 mm: ['minut', 'minuta', 'minuta'], 38869 h: ['jedan sat', 'jednog sata'], 38870 hh: ['sat', 'sata', 'sati'], 38871 dd: ['dan', 'dana', 'dana'], 38872 MM: ['mjesec', 'mjeseca', 'mjeseci'], 38873 yy: ['godina', 'godine', 'godina'] 38874 }, 38875 correctGrammaticalCase: function (number, wordKey) { 38876 return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]); 38877 }, 38878 translate: function (number, withoutSuffix, key) { 38879 var wordKey = translator.words[key]; 38880 if (key.length === 1) { 38881 return withoutSuffix ? wordKey[0] : wordKey[1]; 38882 } else { 38883 return number + ' ' + translator.correctGrammaticalCase(number, wordKey); 38884 } 38885 } 38886 }; 38887 38888 var me = moment.defineLocale('me', { 38889 months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'), 38890 monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'), 38891 monthsParseExact : true, 38892 weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_Äetvrtak_petak_subota'.split('_'), 38893 weekdaysShort: 'ned._pon._uto._sri._Äet._pet._sub.'.split('_'), 38894 weekdaysMin: 'ne_po_ut_sr_Äe_pe_su'.split('_'), 38895 weekdaysParseExact : true, 38896 longDateFormat: { 38897 LT: 'H:mm', 38898 LTS : 'H:mm:ss', 38899 L: 'DD.MM.YYYY', 38900 LL: 'D. MMMM YYYY', 38901 LLL: 'D. MMMM YYYY H:mm', 38902 LLLL: 'dddd, D. MMMM YYYY H:mm' 38903 }, 38904 calendar: { 38905 sameDay: '[danas u] LT', 38906 nextDay: '[sjutra u] LT', 38907 38908 nextWeek: function () { 38909 switch (this.day()) { 38910 case 0: 38911 return '[u] [nedjelju] [u] LT'; 38912 case 3: 38913 return '[u] [srijedu] [u] LT'; 38914 case 6: 38915 return '[u] [subotu] [u] LT'; 38916 case 1: 38917 case 2: 38918 case 4: 38919 case 5: 38920 return '[u] dddd [u] LT'; 38921 } 38922 }, 38923 lastDay : '[juÄe u] LT', 38924 lastWeek : function () { 38925 var lastWeekDays = [ 38926 '[proÅ¡le] [nedjelje] [u] LT', 38927 '[proÅ¡log] [ponedjeljka] [u] LT', 38928 '[proÅ¡log] [utorka] [u] LT', 38929 '[proÅ¡le] [srijede] [u] LT', 38930 '[proÅ¡log] [Äetvrtka] [u] LT', 38931 '[proÅ¡log] [petka] [u] LT', 38932 '[proÅ¡le] [subote] [u] LT' 38933 ]; 38934 return lastWeekDays[this.day()]; 38935 }, 38936 sameElse : 'L' 38937 }, 38938 relativeTime : { 38939 future : 'za %s', 38940 past : 'prije %s', 38941 s : 'nekoliko sekundi', 38942 ss : translator.translate, 38943 m : translator.translate, 38944 mm : translator.translate, 38945 h : translator.translate, 38946 hh : translator.translate, 38947 d : 'dan', 38948 dd : translator.translate, 38949 M : 'mjesec', 38950 MM : translator.translate, 38951 y : 'godinu', 38952 yy : translator.translate 38953 }, 38954 dayOfMonthOrdinalParse: /\d{1,2}\./, 38955 ordinal : '%d.', 38956 week : { 38957 dow : 1, // Monday is the first day of the week. 38958 doy : 7 // The week that contains Jan 1st is the first week of the year. 38959 } 38960 }); 38961 38962 return me; 38963 38964}))); 38965 38966 38967/***/ }), 38968/* 289 */ 38969/***/ (function(module, exports, __webpack_require__) { 38970 38971//! moment.js locale configuration 38972 38973;(function (global, factory) { 38974 true ? factory(__webpack_require__(1)) : 38975 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 38976 factory(global.moment) 38977}(this, (function (moment) { 'use strict'; 38978 38979 38980 var mi = moment.defineLocale('mi', { 38981 months: 'Kohi-tÄte_Hui-tanguru_PoutÅ«-te-rangi_Paenga-whÄwhÄ_Haratua_Pipiri_HÅngoingoi_Here-turi-kÅkÄ_Mahuru_Whiringa-Ä-nuku_Whiringa-Ä-rangi_Hakihea'.split('_'), 38982 monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_HÅngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'), 38983 monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, 38984 monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, 38985 monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, 38986 monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i, 38987 weekdays: 'RÄtapu_Mane_TÅ«rei_Wenerei_TÄite_Paraire_HÄtarei'.split('_'), 38988 weekdaysShort: 'Ta_Ma_TÅ«_We_TÄi_Pa_HÄ'.split('_'), 38989 weekdaysMin: 'Ta_Ma_TÅ«_We_TÄi_Pa_HÄ'.split('_'), 38990 longDateFormat: { 38991 LT: 'HH:mm', 38992 LTS: 'HH:mm:ss', 38993 L: 'DD/MM/YYYY', 38994 LL: 'D MMMM YYYY', 38995 LLL: 'D MMMM YYYY [i] HH:mm', 38996 LLLL: 'dddd, D MMMM YYYY [i] HH:mm' 38997 }, 38998 calendar: { 38999 sameDay: '[i teie mahana, i] LT', 39000 nextDay: '[apopo i] LT', 39001 nextWeek: 'dddd [i] LT', 39002 lastDay: '[inanahi i] LT', 39003 lastWeek: 'dddd [whakamutunga i] LT', 39004 sameElse: 'L' 39005 }, 39006 relativeTime: { 39007 future: 'i roto i %s', 39008 past: '%s i mua', 39009 s: 'te hÄkona ruarua', 39010 ss: '%d hÄkona', 39011 m: 'he meneti', 39012 mm: '%d meneti', 39013 h: 'te haora', 39014 hh: '%d haora', 39015 d: 'he ra', 39016 dd: '%d ra', 39017 M: 'he marama', 39018 MM: '%d marama', 39019 y: 'he tau', 39020 yy: '%d tau' 39021 }, 39022 dayOfMonthOrdinalParse: /\d{1,2}º/, 39023 ordinal: '%dº', 39024 week : { 39025 dow : 1, // Monday is the first day of the week. 39026 doy : 4 // The week that contains Jan 4th is the first week of the year. 39027 } 39028 }); 39029 39030 return mi; 39031 39032}))); 39033 39034 39035/***/ }), 39036/* 290 */ 39037/***/ (function(module, exports, __webpack_require__) { 39038 39039//! moment.js locale configuration 39040 39041;(function (global, factory) { 39042 true ? factory(__webpack_require__(1)) : 39043 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 39044 factory(global.moment) 39045}(this, (function (moment) { 'use strict'; 39046 39047 39048 var mk = moment.defineLocale('mk', { 39049 months : 'ÑанÑаÑи_ÑевÑÑаÑи_маÑÑ_апÑил_маÑ_ÑÑни_ÑÑли_авгÑÑÑ_ÑепÑемвÑи_окÑомвÑи_ноемвÑи_декемвÑи'.split('_'), 39050 monthsShort : 'Ñан_Ñев_маÑ_апÑ_маÑ_ÑÑн_ÑÑл_авг_Ñеп_окÑ_ное_дек'.split('_'), 39051 weekdays : 'недела_понеделник_вÑоÑник_ÑÑеда_ÑеÑвÑÑок_пеÑок_ÑабоÑа'.split('_'), 39052 weekdaysShort : 'нед_пон_вÑо_ÑÑе_ÑеÑ_пеÑ_Ñаб'.split('_'), 39053 weekdaysMin : 'нe_пo_вÑ_ÑÑ_Ñе_пе_Ña'.split('_'), 39054 longDateFormat : { 39055 LT : 'H:mm', 39056 LTS : 'H:mm:ss', 39057 L : 'D.MM.YYYY', 39058 LL : 'D MMMM YYYY', 39059 LLL : 'D MMMM YYYY H:mm', 39060 LLLL : 'dddd, D MMMM YYYY H:mm' 39061 }, 39062 calendar : { 39063 sameDay : '[ÐÐµÐ½ÐµÑ Ð²Ð¾] LT', 39064 nextDay : '[УÑÑе во] LT', 39065 nextWeek : '[Ðо] dddd [во] LT', 39066 lastDay : '[ÐÑеÑа во] LT', 39067 lastWeek : function () { 39068 switch (this.day()) { 39069 case 0: 39070 case 3: 39071 case 6: 39072 return '[ÐзминаÑаÑа] dddd [во] LT'; 39073 case 1: 39074 case 2: 39075 case 4: 39076 case 5: 39077 return '[ÐзминаÑиоÑ] dddd [во] LT'; 39078 } 39079 }, 39080 sameElse : 'L' 39081 }, 39082 relativeTime : { 39083 future : 'поÑле %s', 39084 past : 'пÑед %s', 39085 s : 'Ð½ÐµÐºÐ¾Ð»ÐºÑ ÑекÑнди', 39086 ss : '%d ÑекÑнди', 39087 m : 'минÑÑа', 39088 mm : '%d минÑÑи', 39089 h : 'ÑаÑ', 39090 hh : '%d ÑаÑа', 39091 d : 'ден', 39092 dd : '%d дена', 39093 M : 'меÑеÑ', 39094 MM : '%d меÑеÑи', 39095 y : 'година', 39096 yy : '%d години' 39097 }, 39098 dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|Ñи|ви|Ñи|ми)/, 39099 ordinal : function (number) { 39100 var lastDigit = number % 10, 39101 last2Digits = number % 100; 39102 if (number === 0) { 39103 return number + '-ев'; 39104 } else if (last2Digits === 0) { 39105 return number + '-ен'; 39106 } else if (last2Digits > 10 && last2Digits < 20) { 39107 return number + '-Ñи'; 39108 } else if (lastDigit === 1) { 39109 return number + '-ви'; 39110 } else if (lastDigit === 2) { 39111 return number + '-Ñи'; 39112 } else if (lastDigit === 7 || lastDigit === 8) { 39113 return number + '-ми'; 39114 } else { 39115 return number + '-Ñи'; 39116 } 39117 }, 39118 week : { 39119 dow : 1, // Monday is the first day of the week. 39120 doy : 7 // The week that contains Jan 1st is the first week of the year. 39121 } 39122 }); 39123 39124 return mk; 39125 39126}))); 39127 39128 39129/***/ }), 39130/* 291 */ 39131/***/ (function(module, exports, __webpack_require__) { 39132 39133//! moment.js locale configuration 39134 39135;(function (global, factory) { 39136 true ? factory(__webpack_require__(1)) : 39137 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 39138 factory(global.moment) 39139}(this, (function (moment) { 'use strict'; 39140 39141 39142 var ml = moment.defineLocale('ml', { 39143 months : 'à´à´¨àµà´µà´°à´¿_à´«àµà´¬àµà´°àµà´µà´°à´¿_മാർà´àµà´àµ_à´à´ªàµà´°à´¿àµ½_à´®àµà´¯àµ_à´àµàµº_à´àµà´²àµ_à´à´à´¸àµà´±àµà´±àµ_à´¸àµà´ªàµà´±àµà´±à´à´¬àµ¼_à´à´àµà´àµà´¬àµ¼_നവà´à´¬àµ¼_à´¡à´¿à´¸à´à´¬àµ¼'.split('_'), 39144 monthsShort : 'à´à´¨àµ._à´«àµà´¬àµà´°àµ._മാർ._à´à´ªàµà´°à´¿._à´®àµà´¯àµ_à´àµàµº_à´àµà´²àµ._à´à´._à´¸àµà´ªàµà´±àµà´±._à´à´àµà´àµ._നവà´._à´¡à´¿à´¸à´.'.split('_'), 39145 monthsParseExact : true, 39146 weekdays : 'à´à´¾à´¯à´±à´¾à´´àµà´_തിà´àµà´à´³à´¾à´´àµà´_à´àµà´µàµà´µà´¾à´´àµà´_à´¬àµà´§à´¨à´¾à´´àµà´_à´µàµà´¯à´¾à´´à´¾à´´àµà´_à´µàµà´³àµà´³à´¿à´¯à´¾à´´àµà´_ശനിയാഴàµà´'.split('_'), 39147 weekdaysShort : 'à´à´¾à´¯àµ¼_തിà´àµà´àµ¾_à´àµà´µàµà´µ_à´¬àµà´§àµ»_à´µàµà´¯à´¾à´´à´_à´µàµà´³àµà´³à´¿_ശനി'.split('_'), 39148 weekdaysMin : 'à´à´¾_തി_à´àµ_à´¬àµ_à´µàµà´¯à´¾_à´µàµ_à´¶'.split('_'), 39149 longDateFormat : { 39150 LT : 'A h:mm -à´¨àµ', 39151 LTS : 'A h:mm:ss -à´¨àµ', 39152 L : 'DD/MM/YYYY', 39153 LL : 'D MMMM YYYY', 39154 LLL : 'D MMMM YYYY, A h:mm -à´¨àµ', 39155 LLLL : 'dddd, D MMMM YYYY, A h:mm -à´¨àµ' 39156 }, 39157 calendar : { 39158 sameDay : '[à´à´¨àµà´¨àµ] LT', 39159 nextDay : '[നാളàµ] LT', 39160 nextWeek : 'dddd, LT', 39161 lastDay : '[à´à´¨àµà´¨à´²àµ] LT', 39162 lastWeek : '[à´à´´à´¿à´àµà´] dddd, LT', 39163 sameElse : 'L' 39164 }, 39165 relativeTime : { 39166 future : '%s à´à´´à´¿à´àµà´àµ', 39167 past : '%s à´®àµàµ»à´ªàµ', 39168 s : 'ഠൽപ നിമിഷà´àµà´àµ¾', 39169 ss : '%d à´¸àµà´àµà´àµ»à´¡àµ', 39170 m : 'à´à´°àµ മിനിറàµà´±àµ', 39171 mm : '%d മിനിറàµà´±àµ', 39172 h : 'à´à´°àµ മണിà´àµà´àµàµ¼', 39173 hh : '%d മണിà´àµà´àµàµ¼', 39174 d : 'à´à´°àµ ദിവസà´', 39175 dd : '%d ദിവസà´', 39176 M : 'à´à´°àµ മാസà´', 39177 MM : '%d മാസà´', 39178 y : 'à´à´°àµ വർഷà´', 39179 yy : '%d വർഷà´' 39180 }, 39181 meridiemParse: /രാതàµà´°à´¿|രാവിലàµ|à´à´àµà´ à´à´´à´¿à´àµà´àµ|à´µàµà´àµà´¨àµà´¨àµà´°à´|രാതàµà´°à´¿/i, 39182 meridiemHour : function (hour, meridiem) { 39183 if (hour === 12) { 39184 hour = 0; 39185 } 39186 if ((meridiem === 'രാതàµà´°à´¿' && hour >= 4) || 39187 meridiem === 'à´à´àµà´ à´à´´à´¿à´àµà´àµ' || 39188 meridiem === 'à´µàµà´àµà´¨àµà´¨àµà´°à´') { 39189 return hour + 12; 39190 } else { 39191 return hour; 39192 } 39193 }, 39194 meridiem : function (hour, minute, isLower) { 39195 if (hour < 4) { 39196 return 'രാതàµà´°à´¿'; 39197 } else if (hour < 12) { 39198 return 'രാവിലàµ'; 39199 } else if (hour < 17) { 39200 return 'à´à´àµà´ à´à´´à´¿à´àµà´àµ'; 39201 } else if (hour < 20) { 39202 return 'à´µàµà´àµà´¨àµà´¨àµà´°à´'; 39203 } else { 39204 return 'രാതàµà´°à´¿'; 39205 } 39206 } 39207 }); 39208 39209 return ml; 39210 39211}))); 39212 39213 39214/***/ }), 39215/* 292 */ 39216/***/ (function(module, exports, __webpack_require__) { 39217 39218//! moment.js locale configuration 39219 39220;(function (global, factory) { 39221 true ? factory(__webpack_require__(1)) : 39222 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 39223 factory(global.moment) 39224}(this, (function (moment) { 'use strict'; 39225 39226 39227 function translate(number, withoutSuffix, key, isFuture) { 39228 switch (key) { 39229 case 's': 39230 return withoutSuffix ? 'Ñ ÑÐ´Ñ Ñн ÑекÑнд' : 'Ñ ÑÐ´Ñ Ñн ÑекÑндÑн'; 39231 case 'ss': 39232 return number + (withoutSuffix ? ' ÑекÑнд' : ' ÑекÑндÑн'); 39233 case 'm': 39234 case 'mm': 39235 return number + (withoutSuffix ? ' минÑÑ' : ' минÑÑÑн'); 39236 case 'h': 39237 case 'hh': 39238 return number + (withoutSuffix ? ' Ñаг' : ' Ñагийн'); 39239 case 'd': 39240 case 'dd': 39241 return number + (withoutSuffix ? ' өдөÑ' : ' өдÑийн'); 39242 case 'M': 39243 case 'MM': 39244 return number + (withoutSuffix ? ' ÑаÑ' : ' ÑаÑÑн'); 39245 case 'y': 39246 case 'yy': 39247 return number + (withoutSuffix ? ' жил' : ' жилийн'); 39248 default: 39249 return number; 39250 } 39251 } 39252 39253 var mn = moment.defineLocale('mn', { 39254 months : 'ÐÑгдүгÑÑÑ ÑаÑ_ХоÑÑдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÑÑавдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÓ©ÑөвдүгÑÑÑ ÑаÑ_ТавдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÑÑгадÑÐ³Ð°Ð°Ñ ÑаÑ_ÐолдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐаймдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÑдүгÑÑÑ ÑаÑ_ÐÑавдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÑван нÑгдүгÑÑÑ ÑаÑ_ÐÑван Ñ Ð¾ÑÑдÑÐ³Ð°Ð°Ñ ÑаÑ'.split('_'), 39255 monthsShort : '1 ÑаÑ_2 ÑаÑ_3 ÑаÑ_4 ÑаÑ_5 ÑаÑ_6 ÑаÑ_7 ÑаÑ_8 ÑаÑ_9 ÑаÑ_10 ÑаÑ_11 ÑаÑ_12 ÑаÑ'.split('_'), 39256 monthsParseExact : true, 39257 weekdays : 'ÐÑм_Ðаваа_ÐÑгмаÑ_ÐÑ Ð°Ð³Ð²Ð°_ÐÒ¯ÑÑв_ÐааÑан_ÐÑмба'.split('_'), 39258 weekdaysShort : 'ÐÑм_Ðав_ÐÑг_ÐÑ Ð°_ÐÒ¯Ñ_Ðаа_ÐÑм'.split('_'), 39259 weekdaysMin : 'ÐÑ_Ðа_ÐÑ_ÐÑ _ÐÒ¯_Ðа_ÐÑ'.split('_'), 39260 weekdaysParseExact : true, 39261 longDateFormat : { 39262 LT : 'HH:mm', 39263 LTS : 'HH:mm:ss', 39264 L : 'YYYY-MM-DD', 39265 LL : 'YYYY Ð¾Ð½Ñ MMMMÑн D', 39266 LLL : 'YYYY Ð¾Ð½Ñ MMMMÑн D HH:mm', 39267 LLLL : 'dddd, YYYY Ð¾Ð½Ñ MMMMÑн D HH:mm' 39268 }, 39269 meridiemParse: /Ò®Ó¨|ҮХ/i, 39270 isPM : function (input) { 39271 return input === 'ҮХ'; 39272 }, 39273 meridiem : function (hour, minute, isLower) { 39274 if (hour < 12) { 39275 return 'Ò®Ó¨'; 39276 } else { 39277 return 'ҮХ'; 39278 } 39279 }, 39280 calendar : { 39281 sameDay : '[ӨнөөдөÑ] LT', 39282 nextDay : '[ÐаÑгааÑ] LT', 39283 nextWeek : '[ÐÑÑÑ ] dddd LT', 39284 lastDay : '[Ó¨ÑигдөÑ] LT', 39285 lastWeek : '[ӨнгөÑÑөн] dddd LT', 39286 sameElse : 'L' 39287 }, 39288 relativeTime : { 39289 future : '%s даÑаа', 39290 past : '%s өмнө', 39291 s : translate, 39292 ss : translate, 39293 m : translate, 39294 mm : translate, 39295 h : translate, 39296 hh : translate, 39297 d : translate, 39298 dd : translate, 39299 M : translate, 39300 MM : translate, 39301 y : translate, 39302 yy : translate 39303 }, 39304 dayOfMonthOrdinalParse: /\d{1,2} өдөÑ/, 39305 ordinal : function (number, period) { 39306 switch (period) { 39307 case 'd': 39308 case 'D': 39309 case 'DDD': 39310 return number + ' өдөÑ'; 39311 default: 39312 return number; 39313 } 39314 } 39315 }); 39316 39317 return mn; 39318 39319}))); 39320 39321 39322/***/ }), 39323/* 293 */ 39324/***/ (function(module, exports, __webpack_require__) { 39325 39326//! moment.js locale configuration 39327 39328;(function (global, factory) { 39329 true ? factory(__webpack_require__(1)) : 39330 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 39331 factory(global.moment) 39332}(this, (function (moment) { 'use strict'; 39333 39334 39335 var symbolMap = { 39336 '1': '१', 39337 '2': '२', 39338 '3': '३', 39339 '4': '४', 39340 '5': '५', 39341 '6': '६', 39342 '7': 'à¥', 39343 '8': '८', 39344 '9': '९', 39345 '0': '०' 39346 }, 39347 numberMap = { 39348 '१': '1', 39349 '२': '2', 39350 '३': '3', 39351 '४': '4', 39352 '५': '5', 39353 '६': '6', 39354 'à¥': '7', 39355 '८': '8', 39356 '९': '9', 39357 '०': '0' 39358 }; 39359 39360 function relativeTimeMr(number, withoutSuffix, string, isFuture) 39361 { 39362 var output = ''; 39363 if (withoutSuffix) { 39364 switch (string) { 39365 case 's': output = 'à¤à¤¾à¤¹à¥ सà¥à¤à¤à¤¦'; break; 39366 case 'ss': output = '%d सà¥à¤à¤à¤¦'; break; 39367 case 'm': output = 'à¤à¤ मिनिà¤'; break; 39368 case 'mm': output = '%d मिनिà¤à¥'; break; 39369 case 'h': output = 'à¤à¤ तास'; break; 39370 case 'hh': output = '%d तास'; break; 39371 case 'd': output = 'à¤à¤ दिवस'; break; 39372 case 'dd': output = '%d दिवस'; break; 39373 case 'M': output = 'à¤à¤ महिना'; break; 39374 case 'MM': output = '%d महिनà¥'; break; 39375 case 'y': output = 'à¤à¤ वरà¥à¤·'; break; 39376 case 'yy': output = '%d वरà¥à¤·à¥'; break; 39377 } 39378 } 39379 else { 39380 switch (string) { 39381 case 's': output = 'à¤à¤¾à¤¹à¥ सà¥à¤à¤à¤¦à¤¾à¤'; break; 39382 case 'ss': output = '%d सà¥à¤à¤à¤¦à¤¾à¤'; break; 39383 case 'm': output = 'à¤à¤à¤¾ मिनिà¤à¤¾'; break; 39384 case 'mm': output = '%d मिनिà¤à¤¾à¤'; break; 39385 case 'h': output = 'à¤à¤à¤¾ तासा'; break; 39386 case 'hh': output = '%d तासाà¤'; break; 39387 case 'd': output = 'à¤à¤à¤¾ दिवसा'; break; 39388 case 'dd': output = '%d दिवसाà¤'; break; 39389 case 'M': output = 'à¤à¤à¤¾ महिनà¥à¤¯à¤¾'; break; 39390 case 'MM': output = '%d महिनà¥à¤¯à¤¾à¤'; break; 39391 case 'y': output = 'à¤à¤à¤¾ वरà¥à¤·à¤¾'; break; 39392 case 'yy': output = '%d वरà¥à¤·à¤¾à¤'; break; 39393 } 39394 } 39395 return output.replace(/%d/i, number); 39396 } 39397 39398 var mr = moment.defineLocale('mr', { 39399 months : 'à¤à¤¾à¤¨à¥à¤µà¤¾à¤°à¥_फà¥à¤¬à¥à¤°à¥à¤µà¤¾à¤°à¥_मारà¥à¤_à¤à¤ªà¥à¤°à¤¿à¤²_मà¥_à¤à¥à¤¨_à¤à¥à¤²à¥_à¤à¤à¤¸à¥à¤_सपà¥à¤à¥à¤à¤¬à¤°_à¤à¤à¥à¤à¥à¤¬à¤°_नà¥à¤µà¥à¤¹à¥à¤à¤¬à¤°_डिसà¥à¤à¤¬à¤°'.split('_'), 39400 monthsShort: 'à¤à¤¾à¤¨à¥._फà¥à¤¬à¥à¤°à¥._मारà¥à¤._à¤à¤ªà¥à¤°à¤¿._मà¥._à¤à¥à¤¨._à¤à¥à¤²à¥._à¤à¤._सपà¥à¤à¥à¤._à¤à¤à¥à¤à¥._नà¥à¤µà¥à¤¹à¥à¤._डिसà¥à¤.'.split('_'), 39401 monthsParseExact : true, 39402 weekdays : 'रविवार_सà¥à¤®à¤µà¤¾à¤°_मà¤à¤à¤³à¤µà¤¾à¤°_बà¥à¤§à¤µà¤¾à¤°_à¤à¥à¤°à¥à¤µà¤¾à¤°_शà¥à¤à¥à¤°à¤µà¤¾à¤°_शनिवार'.split('_'), 39403 weekdaysShort : 'रवि_सà¥à¤®_मà¤à¤à¤³_बà¥à¤§_à¤à¥à¤°à¥_शà¥à¤à¥à¤°_शनि'.split('_'), 39404 weekdaysMin : 'र_सà¥_मà¤_बà¥_à¤à¥_शà¥_श'.split('_'), 39405 longDateFormat : { 39406 LT : 'A h:mm वाà¤à¤¤à¤¾', 39407 LTS : 'A h:mm:ss वाà¤à¤¤à¤¾', 39408 L : 'DD/MM/YYYY', 39409 LL : 'D MMMM YYYY', 39410 LLL : 'D MMMM YYYY, A h:mm वाà¤à¤¤à¤¾', 39411 LLLL : 'dddd, D MMMM YYYY, A h:mm वाà¤à¤¤à¤¾' 39412 }, 39413 calendar : { 39414 sameDay : '[à¤à¤] LT', 39415 nextDay : '[à¤à¤¦à¥à¤¯à¤¾] LT', 39416 nextWeek : 'dddd, LT', 39417 lastDay : '[à¤à¤¾à¤²] LT', 39418 lastWeek: '[माà¤à¥à¤²] dddd, LT', 39419 sameElse : 'L' 39420 }, 39421 relativeTime : { 39422 future: '%sमधà¥à¤¯à¥', 39423 past: '%sपà¥à¤°à¥à¤µà¥', 39424 s: relativeTimeMr, 39425 ss: relativeTimeMr, 39426 m: relativeTimeMr, 39427 mm: relativeTimeMr, 39428 h: relativeTimeMr, 39429 hh: relativeTimeMr, 39430 d: relativeTimeMr, 39431 dd: relativeTimeMr, 39432 M: relativeTimeMr, 39433 MM: relativeTimeMr, 39434 y: relativeTimeMr, 39435 yy: relativeTimeMr 39436 }, 39437 preparse: function (string) { 39438 return string.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g, function (match) { 39439 return numberMap[match]; 39440 }); 39441 }, 39442 postformat: function (string) { 39443 return string.replace(/\d/g, function (match) { 39444 return symbolMap[match]; 39445 }); 39446 }, 39447 meridiemParse: /रातà¥à¤°à¥|सà¤à¤¾à¤³à¥|दà¥à¤ªà¤¾à¤°à¥|सायà¤à¤à¤¾à¤³à¥/, 39448 meridiemHour : function (hour, meridiem) { 39449 if (hour === 12) { 39450 hour = 0; 39451 } 39452 if (meridiem === 'रातà¥à¤°à¥') { 39453 return hour < 4 ? hour : hour + 12; 39454 } else if (meridiem === 'सà¤à¤¾à¤³à¥') { 39455 return hour; 39456 } else if (meridiem === 'दà¥à¤ªà¤¾à¤°à¥') { 39457 return hour >= 10 ? hour : hour + 12; 39458 } else if (meridiem === 'सायà¤à¤à¤¾à¤³à¥') { 39459 return hour + 12; 39460 } 39461 }, 39462 meridiem: function (hour, minute, isLower) { 39463 if (hour < 4) { 39464 return 'रातà¥à¤°à¥'; 39465 } else if (hour < 10) { 39466 return 'सà¤à¤¾à¤³à¥'; 39467 } else if (hour < 17) { 39468 return 'दà¥à¤ªà¤¾à¤°à¥'; 39469 } else if (hour < 20) { 39470 return 'सायà¤à¤à¤¾à¤³à¥'; 39471 } else { 39472 return 'रातà¥à¤°à¥'; 39473 } 39474 }, 39475 week : { 39476 dow : 0, // Sunday is the first day of the week. 39477 doy : 6 // The week that contains Jan 1st is the first week of the year. 39478 } 39479 }); 39480 39481 return mr; 39482 39483}))); 39484 39485 39486/***/ }), 39487/* 294 */ 39488/***/ (function(module, exports, __webpack_require__) { 39489 39490//! moment.js locale configuration 39491 39492;(function (global, factory) { 39493 true ? factory(__webpack_require__(1)) : 39494 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 39495 factory(global.moment) 39496}(this, (function (moment) { 'use strict'; 39497 39498 39499 var ms = moment.defineLocale('ms', { 39500 months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'), 39501 monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), 39502 weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), 39503 weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), 39504 weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), 39505 longDateFormat : { 39506 LT : 'HH.mm', 39507 LTS : 'HH.mm.ss', 39508 L : 'DD/MM/YYYY', 39509 LL : 'D MMMM YYYY', 39510 LLL : 'D MMMM YYYY [pukul] HH.mm', 39511 LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' 39512 }, 39513 meridiemParse: /pagi|tengahari|petang|malam/, 39514 meridiemHour: function (hour, meridiem) { 39515 if (hour === 12) { 39516 hour = 0; 39517 } 39518 if (meridiem === 'pagi') { 39519 return hour; 39520 } else if (meridiem === 'tengahari') { 39521 return hour >= 11 ? hour : hour + 12; 39522 } else if (meridiem === 'petang' || meridiem === 'malam') { 39523 return hour + 12; 39524 } 39525 }, 39526 meridiem : function (hours, minutes, isLower) { 39527 if (hours < 11) { 39528 return 'pagi'; 39529 } else if (hours < 15) { 39530 return 'tengahari'; 39531 } else if (hours < 19) { 39532 return 'petang'; 39533 } else { 39534 return 'malam'; 39535 } 39536 }, 39537 calendar : { 39538 sameDay : '[Hari ini pukul] LT', 39539 nextDay : '[Esok pukul] LT', 39540 nextWeek : 'dddd [pukul] LT', 39541 lastDay : '[Kelmarin pukul] LT', 39542 lastWeek : 'dddd [lepas pukul] LT', 39543 sameElse : 'L' 39544 }, 39545 relativeTime : { 39546 future : 'dalam %s', 39547 past : '%s yang lepas', 39548 s : 'beberapa saat', 39549 ss : '%d saat', 39550 m : 'seminit', 39551 mm : '%d minit', 39552 h : 'sejam', 39553 hh : '%d jam', 39554 d : 'sehari', 39555 dd : '%d hari', 39556 M : 'sebulan', 39557 MM : '%d bulan', 39558 y : 'setahun', 39559 yy : '%d tahun' 39560 }, 39561 week : { 39562 dow : 1, // Monday is the first day of the week. 39563 doy : 7 // The week that contains Jan 1st is the first week of the year. 39564 } 39565 }); 39566 39567 return ms; 39568 39569}))); 39570 39571 39572/***/ }), 39573/* 295 */ 39574/***/ (function(module, exports, __webpack_require__) { 39575 39576//! moment.js locale configuration 39577 39578;(function (global, factory) { 39579 true ? factory(__webpack_require__(1)) : 39580 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 39581 factory(global.moment) 39582}(this, (function (moment) { 'use strict'; 39583 39584 39585 var msMy = moment.defineLocale('ms-my', { 39586 months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'), 39587 monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), 39588 weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), 39589 weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), 39590 weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), 39591 longDateFormat : { 39592 LT : 'HH.mm', 39593 LTS : 'HH.mm.ss', 39594 L : 'DD/MM/YYYY', 39595 LL : 'D MMMM YYYY', 39596 LLL : 'D MMMM YYYY [pukul] HH.mm', 39597 LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' 39598 }, 39599 meridiemParse: /pagi|tengahari|petang|malam/, 39600 meridiemHour: function (hour, meridiem) { 39601 if (hour === 12) { 39602 hour = 0; 39603 } 39604 if (meridiem === 'pagi') { 39605 return hour; 39606 } else if (meridiem === 'tengahari') { 39607 return hour >= 11 ? hour : hour + 12; 39608 } else if (meridiem === 'petang' || meridiem === 'malam') { 39609 return hour + 12; 39610 } 39611 }, 39612 meridiem : function (hours, minutes, isLower) { 39613 if (hours < 11) { 39614 return 'pagi'; 39615 } else if (hours < 15) { 39616 return 'tengahari'; 39617 } else if (hours < 19) { 39618 return 'petang'; 39619 } else { 39620 return 'malam'; 39621 } 39622 }, 39623 calendar : { 39624 sameDay : '[Hari ini pukul] LT', 39625 nextDay : '[Esok pukul] LT', 39626 nextWeek : 'dddd [pukul] LT', 39627 lastDay : '[Kelmarin pukul] LT', 39628 lastWeek : 'dddd [lepas pukul] LT', 39629 sameElse : 'L' 39630 }, 39631 relativeTime : { 39632 future : 'dalam %s', 39633 past : '%s yang lepas', 39634 s : 'beberapa saat', 39635 ss : '%d saat', 39636 m : 'seminit', 39637 mm : '%d minit', 39638 h : 'sejam', 39639 hh : '%d jam', 39640 d : 'sehari', 39641 dd : '%d hari', 39642 M : 'sebulan', 39643 MM : '%d bulan', 39644 y : 'setahun', 39645 yy : '%d tahun' 39646 }, 39647 week : { 39648 dow : 1, // Monday is the first day of the week. 39649 doy : 7 // The week that contains Jan 1st is the first week of the year. 39650 } 39651 }); 39652 39653 return msMy; 39654 39655}))); 39656 39657 39658/***/ }), 39659/* 296 */ 39660/***/ (function(module, exports, __webpack_require__) { 39661 39662//! moment.js locale configuration 39663 39664;(function (global, factory) { 39665 true ? factory(__webpack_require__(1)) : 39666 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 39667 factory(global.moment) 39668}(this, (function (moment) { 'use strict'; 39669 39670 39671 var mt = moment.defineLocale('mt', { 39672 months : 'Jannar_Frar_Marzu_April_Mejju_Ä unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_DiÄembru'.split('_'), 39673 monthsShort : 'Jan_Fra_Mar_Apr_Mej_Ä un_Lul_Aww_Set_Ott_Nov_DiÄ'.split('_'), 39674 weekdays : 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ä imgħa_Is-Sibt'.split('_'), 39675 weekdaysShort : 'Ħad_Tne_Tli_Erb_Ħam_Ä im_Sib'.split('_'), 39676 weekdaysMin : 'Ħa_Tn_Tl_Er_Ħa_Ä i_Si'.split('_'), 39677 longDateFormat : { 39678 LT : 'HH:mm', 39679 LTS : 'HH:mm:ss', 39680 L : 'DD/MM/YYYY', 39681 LL : 'D MMMM YYYY', 39682 LLL : 'D MMMM YYYY HH:mm', 39683 LLLL : 'dddd, D MMMM YYYY HH:mm' 39684 }, 39685 calendar : { 39686 sameDay : '[Illum fil-]LT', 39687 nextDay : '[Għada fil-]LT', 39688 nextWeek : 'dddd [fil-]LT', 39689 lastDay : '[Il-bieraħ fil-]LT', 39690 lastWeek : 'dddd [li għadda] [fil-]LT', 39691 sameElse : 'L' 39692 }, 39693 relativeTime : { 39694 future : 'fâ %s', 39695 past : '%s ilu', 39696 s : 'ftit sekondi', 39697 ss : '%d sekondi', 39698 m : 'minuta', 39699 mm : '%d minuti', 39700 h : 'siegħa', 39701 hh : '%d siegħat', 39702 d : 'Ä¡urnata', 39703 dd : '%d Ä¡ranet', 39704 M : 'xahar', 39705 MM : '%d xhur', 39706 y : 'sena', 39707 yy : '%d sni' 39708 }, 39709 dayOfMonthOrdinalParse : /\d{1,2}º/, 39710 ordinal: '%dº', 39711 week : { 39712 dow : 1, // Monday is the first day of the week. 39713 doy : 4 // The week that contains Jan 4th is the first week of the year. 39714 } 39715 }); 39716 39717 return mt; 39718 39719}))); 39720 39721 39722/***/ }), 39723/* 297 */ 39724/***/ (function(module, exports, __webpack_require__) { 39725 39726//! moment.js locale configuration 39727 39728;(function (global, factory) { 39729 true ? factory(__webpack_require__(1)) : 39730 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 39731 factory(global.moment) 39732}(this, (function (moment) { 'use strict'; 39733 39734 39735 var symbolMap = { 39736 '1': 'á', 39737 '2': 'á', 39738 '3': 'á', 39739 '4': 'á', 39740 '5': 'á ', 39741 '6': 'á', 39742 '7': 'á', 39743 '8': 'á', 39744 '9': 'á', 39745 '0': 'á' 39746 }, numberMap = { 39747 'á': '1', 39748 'á': '2', 39749 'á': '3', 39750 'á': '4', 39751 'á ': '5', 39752 'á': '6', 39753 'á': '7', 39754 'á': '8', 39755 'á': '9', 39756 'á': '0' 39757 }; 39758 39759 var my = moment.defineLocale('my', { 39760 months: 'áááºááá«áá®_áá±áá±á¬áºáá«áá®_áááº_á§áá¼á®_áá±_áá½ááº_áá°ááá¯ááº_áá¼áá¯ááº_á ááºáááºáá¬_á¡á±á¬ááºááá¯áá¬_ááá¯áááºáá¬_áá®áááºáá¬'.split('_'), 39761 monthsShort: 'áááº_áá±_áááº_áá¼á®_áá±_áá½ááº_ááá¯ááº_áá¼_á ááº_á¡á±á¬ááº_ááá¯_áá®'.split('_'), 39762 weekdays: 'ááááºá¹ááá½á±_ááááºá¹áá¬_á¡ááºá¹áá«_áá¯áá¹ááá°á¸_áá¼á¬áááá±á¸_áá±á¬áá¼á¬_á áá±'.split('_'), 39763 weekdaysShort: 'áá½á±_áá¬_áá«_áá°á¸_áá¼á¬_áá±á¬_áá±'.split('_'), 39764 weekdaysMin: 'áá½á±_áá¬_áá«_áá°á¸_áá¼á¬_áá±á¬_áá±'.split('_'), 39765 39766 longDateFormat: { 39767 LT: 'HH:mm', 39768 LTS: 'HH:mm:ss', 39769 L: 'DD/MM/YYYY', 39770 LL: 'D MMMM YYYY', 39771 LLL: 'D MMMM YYYY HH:mm', 39772 LLLL: 'dddd D MMMM YYYY HH:mm' 39773 }, 39774 calendar: { 39775 sameDay: '[ááá±.] LT [áá¾á¬]', 39776 nextDay: '[ááááºáá¼ááº] LT [áá¾á¬]', 39777 nextWeek: 'dddd LT [áá¾á¬]', 39778 lastDay: '[ááá±.á] LT [áá¾á¬]', 39779 lastWeek: '[áá¼á®á¸áá²á·áá±á¬] dddd LT [áá¾á¬]', 39780 sameElse: 'L' 39781 }, 39782 relativeTime: { 39783 future: 'áá¬áááºá· %s áá¾á¬', 39784 past: 'áá½ááºáá²á·áá±á¬ %s á', 39785 s: 'á áá¹áááº.á¡áááºá¸áááº', 39786 ss : '%d á áá¹ááá·áº', 39787 m: 'áá áºáááá áº', 39788 mm: '%d áááá áº', 39789 h: 'áá áºáá¬áá®', 39790 hh: '%d áá¬áá®', 39791 d: 'áá áºáááº', 39792 dd: '%d áááº', 39793 M: 'áá áºá', 39794 MM: '%d á', 39795 y: 'áá áºáá¾á áº', 39796 yy: '%d áá¾á áº' 39797 }, 39798 preparse: function (string) { 39799 return string.replace(/[ááááá ááááá]/g, function (match) { 39800 return numberMap[match]; 39801 }); 39802 }, 39803 postformat: function (string) { 39804 return string.replace(/\d/g, function (match) { 39805 return symbolMap[match]; 39806 }); 39807 }, 39808 week: { 39809 dow: 1, // Monday is the first day of the week. 39810 doy: 4 // The week that contains Jan 1st is the first week of the year. 39811 } 39812 }); 39813 39814 return my; 39815 39816}))); 39817 39818 39819/***/ }), 39820/* 298 */ 39821/***/ (function(module, exports, __webpack_require__) { 39822 39823//! moment.js locale configuration 39824 39825;(function (global, factory) { 39826 true ? factory(__webpack_require__(1)) : 39827 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 39828 factory(global.moment) 39829}(this, (function (moment) { 'use strict'; 39830 39831 39832 var nb = moment.defineLocale('nb', { 39833 months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'), 39834 monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'), 39835 monthsParseExact : true, 39836 weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), 39837 weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'), 39838 weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'), 39839 weekdaysParseExact : true, 39840 longDateFormat : { 39841 LT : 'HH:mm', 39842 LTS : 'HH:mm:ss', 39843 L : 'DD.MM.YYYY', 39844 LL : 'D. MMMM YYYY', 39845 LLL : 'D. MMMM YYYY [kl.] HH:mm', 39846 LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm' 39847 }, 39848 calendar : { 39849 sameDay: '[i dag kl.] LT', 39850 nextDay: '[i morgen kl.] LT', 39851 nextWeek: 'dddd [kl.] LT', 39852 lastDay: '[i gÃ¥r kl.] LT', 39853 lastWeek: '[forrige] dddd [kl.] LT', 39854 sameElse: 'L' 39855 }, 39856 relativeTime : { 39857 future : 'om %s', 39858 past : '%s siden', 39859 s : 'noen sekunder', 39860 ss : '%d sekunder', 39861 m : 'ett minutt', 39862 mm : '%d minutter', 39863 h : 'en time', 39864 hh : '%d timer', 39865 d : 'en dag', 39866 dd : '%d dager', 39867 M : 'en mÃ¥ned', 39868 MM : '%d mÃ¥neder', 39869 y : 'ett Ã¥r', 39870 yy : '%d Ã¥r' 39871 }, 39872 dayOfMonthOrdinalParse: /\d{1,2}\./, 39873 ordinal : '%d.', 39874 week : { 39875 dow : 1, // Monday is the first day of the week. 39876 doy : 4 // The week that contains Jan 4th is the first week of the year. 39877 } 39878 }); 39879 39880 return nb; 39881 39882}))); 39883 39884 39885/***/ }), 39886/* 299 */ 39887/***/ (function(module, exports, __webpack_require__) { 39888 39889//! moment.js locale configuration 39890 39891;(function (global, factory) { 39892 true ? factory(__webpack_require__(1)) : 39893 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 39894 factory(global.moment) 39895}(this, (function (moment) { 'use strict'; 39896 39897 39898 var symbolMap = { 39899 '1': '१', 39900 '2': '२', 39901 '3': '३', 39902 '4': '४', 39903 '5': '५', 39904 '6': '६', 39905 '7': 'à¥', 39906 '8': '८', 39907 '9': '९', 39908 '0': '०' 39909 }, 39910 numberMap = { 39911 '१': '1', 39912 '२': '2', 39913 '३': '3', 39914 '४': '4', 39915 '५': '5', 39916 '६': '6', 39917 'à¥': '7', 39918 '८': '8', 39919 '९': '9', 39920 '०': '0' 39921 }; 39922 39923 var ne = moment.defineLocale('ne', { 39924 months : 'à¤à¤¨à¤µà¤°à¥_फà¥à¤¬à¥à¤°à¥à¤µà¤°à¥_मारà¥à¤_ठपà¥à¤°à¤¿à¤²_मà¤_à¤à¥à¤¨_à¤à¥à¤²à¤¾à¤_ठà¤à¤·à¥à¤_सà¥à¤ªà¥à¤à¥à¤®à¥à¤¬à¤°_ठà¤à¥à¤à¥à¤¬à¤°_नà¥à¤à¥à¤®à¥à¤¬à¤°_डिसà¥à¤®à¥à¤¬à¤°'.split('_'), 39925 monthsShort : 'à¤à¤¨._फà¥à¤¬à¥à¤°à¥._मारà¥à¤_ठपà¥à¤°à¤¿._मà¤_à¤à¥à¤¨_à¤à¥à¤²à¤¾à¤._ठà¤._सà¥à¤ªà¥à¤._ठà¤à¥à¤à¥._नà¥à¤à¥._डिसà¥.'.split('_'), 39926 monthsParseExact : true, 39927 weekdays : 'à¤à¤à¤¤à¤¬à¤¾à¤°_सà¥à¤®à¤¬à¤¾à¤°_मà¤à¥à¤à¤²à¤¬à¤¾à¤°_बà¥à¤§à¤¬à¤¾à¤°_बिहिबार_शà¥à¤à¥à¤°à¤¬à¤¾à¤°_शनिबार'.split('_'), 39928 weekdaysShort : 'à¤à¤à¤¤._सà¥à¤®._मà¤à¥à¤à¤²._बà¥à¤§._बिहि._शà¥à¤à¥à¤°._शनि.'.split('_'), 39929 weekdaysMin : 'à¤._सà¥._मà¤._बà¥._बि._शà¥._श.'.split('_'), 39930 weekdaysParseExact : true, 39931 longDateFormat : { 39932 LT : 'Aà¤à¥ h:mm बà¤à¥', 39933 LTS : 'Aà¤à¥ h:mm:ss बà¤à¥', 39934 L : 'DD/MM/YYYY', 39935 LL : 'D MMMM YYYY', 39936 LLL : 'D MMMM YYYY, Aà¤à¥ h:mm बà¤à¥', 39937 LLLL : 'dddd, D MMMM YYYY, Aà¤à¥ h:mm बà¤à¥' 39938 }, 39939 preparse: function (string) { 39940 return string.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g, function (match) { 39941 return numberMap[match]; 39942 }); 39943 }, 39944 postformat: function (string) { 39945 return string.replace(/\d/g, function (match) { 39946 return symbolMap[match]; 39947 }); 39948 }, 39949 meridiemParse: /राति|बिहान|दिà¤à¤à¤¸à¥|साà¤à¤/, 39950 meridiemHour : function (hour, meridiem) { 39951 if (hour === 12) { 39952 hour = 0; 39953 } 39954 if (meridiem === 'राति') { 39955 return hour < 4 ? hour : hour + 12; 39956 } else if (meridiem === 'बिहान') { 39957 return hour; 39958 } else if (meridiem === 'दिà¤à¤à¤¸à¥') { 39959 return hour >= 10 ? hour : hour + 12; 39960 } else if (meridiem === 'साà¤à¤') { 39961 return hour + 12; 39962 } 39963 }, 39964 meridiem : function (hour, minute, isLower) { 39965 if (hour < 3) { 39966 return 'राति'; 39967 } else if (hour < 12) { 39968 return 'बिहान'; 39969 } else if (hour < 16) { 39970 return 'दिà¤à¤à¤¸à¥'; 39971 } else if (hour < 20) { 39972 return 'साà¤à¤'; 39973 } else { 39974 return 'राति'; 39975 } 39976 }, 39977 calendar : { 39978 sameDay : '[à¤à¤] LT', 39979 nextDay : '[à¤à¥à¤²à¤¿] LT', 39980 nextWeek : '[à¤à¤à¤à¤¦à¥] dddd[,] LT', 39981 lastDay : '[हिà¤à¥] LT', 39982 lastWeek : '[à¤à¤à¤à¥] dddd[,] LT', 39983 sameElse : 'L' 39984 }, 39985 relativeTime : { 39986 future : '%sमा', 39987 past : '%s ठà¤à¤¾à¤¡à¤¿', 39988 s : 'à¤à¥à¤¹à¥ à¤à¥à¤·à¤£', 39989 ss : '%d सà¥à¤à¥à¤£à¥à¤¡', 39990 m : 'à¤à¤ मिनà¥à¤', 39991 mm : '%d मिनà¥à¤', 39992 h : 'à¤à¤ à¤à¤£à¥à¤à¤¾', 39993 hh : '%d à¤à¤£à¥à¤à¤¾', 39994 d : 'à¤à¤ दिन', 39995 dd : '%d दिन', 39996 M : 'à¤à¤ महिना', 39997 MM : '%d महिना', 39998 y : 'à¤à¤ बरà¥à¤·', 39999 yy : '%d बरà¥à¤·' 40000 }, 40001 week : { 40002 dow : 0, // Sunday is the first day of the week. 40003 doy : 6 // The week that contains Jan 1st is the first week of the year. 40004 } 40005 }); 40006 40007 return ne; 40008 40009}))); 40010 40011 40012/***/ }), 40013/* 300 */ 40014/***/ (function(module, exports, __webpack_require__) { 40015 40016//! moment.js locale configuration 40017 40018;(function (global, factory) { 40019 true ? factory(__webpack_require__(1)) : 40020 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 40021 factory(global.moment) 40022}(this, (function (moment) { 'use strict'; 40023 40024 40025 var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'), 40026 monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'); 40027 40028 var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i]; 40029 var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; 40030 40031 var nl = moment.defineLocale('nl', { 40032 months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'), 40033 monthsShort : function (m, format) { 40034 if (!m) { 40035 return monthsShortWithDots; 40036 } else if (/-MMM-/.test(format)) { 40037 return monthsShortWithoutDots[m.month()]; 40038 } else { 40039 return monthsShortWithDots[m.month()]; 40040 } 40041 }, 40042 40043 monthsRegex: monthsRegex, 40044 monthsShortRegex: monthsRegex, 40045 monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i, 40046 monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, 40047 40048 monthsParse : monthsParse, 40049 longMonthsParse : monthsParse, 40050 shortMonthsParse : monthsParse, 40051 40052 weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'), 40053 weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'), 40054 weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'), 40055 weekdaysParseExact : true, 40056 longDateFormat : { 40057 LT : 'HH:mm', 40058 LTS : 'HH:mm:ss', 40059 L : 'DD-MM-YYYY', 40060 LL : 'D MMMM YYYY', 40061 LLL : 'D MMMM YYYY HH:mm', 40062 LLLL : 'dddd D MMMM YYYY HH:mm' 40063 }, 40064 calendar : { 40065 sameDay: '[vandaag om] LT', 40066 nextDay: '[morgen om] LT', 40067 nextWeek: 'dddd [om] LT', 40068 lastDay: '[gisteren om] LT', 40069 lastWeek: '[afgelopen] dddd [om] LT', 40070 sameElse: 'L' 40071 }, 40072 relativeTime : { 40073 future : 'over %s', 40074 past : '%s geleden', 40075 s : 'een paar seconden', 40076 ss : '%d seconden', 40077 m : 'één minuut', 40078 mm : '%d minuten', 40079 h : 'één uur', 40080 hh : '%d uur', 40081 d : 'één dag', 40082 dd : '%d dagen', 40083 M : 'één maand', 40084 MM : '%d maanden', 40085 y : 'één jaar', 40086 yy : '%d jaar' 40087 }, 40088 dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, 40089 ordinal : function (number) { 40090 return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); 40091 }, 40092 week : { 40093 dow : 1, // Monday is the first day of the week. 40094 doy : 4 // The week that contains Jan 4th is the first week of the year. 40095 } 40096 }); 40097 40098 return nl; 40099 40100}))); 40101 40102 40103/***/ }), 40104/* 301 */ 40105/***/ (function(module, exports, __webpack_require__) { 40106 40107//! moment.js locale configuration 40108 40109;(function (global, factory) { 40110 true ? factory(__webpack_require__(1)) : 40111 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 40112 factory(global.moment) 40113}(this, (function (moment) { 'use strict'; 40114 40115 40116 var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'), 40117 monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'); 40118 40119 var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i]; 40120 var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; 40121 40122 var nlBe = moment.defineLocale('nl-be', { 40123 months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'), 40124 monthsShort : function (m, format) { 40125 if (!m) { 40126 return monthsShortWithDots; 40127 } else if (/-MMM-/.test(format)) { 40128 return monthsShortWithoutDots[m.month()]; 40129 } else { 40130 return monthsShortWithDots[m.month()]; 40131 } 40132 }, 40133 40134 monthsRegex: monthsRegex, 40135 monthsShortRegex: monthsRegex, 40136 monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i, 40137 monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, 40138 40139 monthsParse : monthsParse, 40140 longMonthsParse : monthsParse, 40141 shortMonthsParse : monthsParse, 40142 40143 weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'), 40144 weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'), 40145 weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'), 40146 weekdaysParseExact : true, 40147 longDateFormat : { 40148 LT : 'HH:mm', 40149 LTS : 'HH:mm:ss', 40150 L : 'DD/MM/YYYY', 40151 LL : 'D MMMM YYYY', 40152 LLL : 'D MMMM YYYY HH:mm', 40153 LLLL : 'dddd D MMMM YYYY HH:mm' 40154 }, 40155 calendar : { 40156 sameDay: '[vandaag om] LT', 40157 nextDay: '[morgen om] LT', 40158 nextWeek: 'dddd [om] LT', 40159 lastDay: '[gisteren om] LT', 40160 lastWeek: '[afgelopen] dddd [om] LT', 40161 sameElse: 'L' 40162 }, 40163 relativeTime : { 40164 future : 'over %s', 40165 past : '%s geleden', 40166 s : 'een paar seconden', 40167 ss : '%d seconden', 40168 m : 'één minuut', 40169 mm : '%d minuten', 40170 h : 'één uur', 40171 hh : '%d uur', 40172 d : 'één dag', 40173 dd : '%d dagen', 40174 M : 'één maand', 40175 MM : '%d maanden', 40176 y : 'één jaar', 40177 yy : '%d jaar' 40178 }, 40179 dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, 40180 ordinal : function (number) { 40181 return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); 40182 }, 40183 week : { 40184 dow : 1, // Monday is the first day of the week. 40185 doy : 4 // The week that contains Jan 4th is the first week of the year. 40186 } 40187 }); 40188 40189 return nlBe; 40190 40191}))); 40192 40193 40194/***/ }), 40195/* 302 */ 40196/***/ (function(module, exports, __webpack_require__) { 40197 40198//! moment.js locale configuration 40199 40200;(function (global, factory) { 40201 true ? factory(__webpack_require__(1)) : 40202 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 40203 factory(global.moment) 40204}(this, (function (moment) { 'use strict'; 40205 40206 40207 var nn = moment.defineLocale('nn', { 40208 months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'), 40209 monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), 40210 weekdays : 'sundag_mÃ¥ndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'), 40211 weekdaysShort : 'sun_mÃ¥n_tys_ons_tor_fre_lau'.split('_'), 40212 weekdaysMin : 'su_mÃ¥_ty_on_to_fr_lø'.split('_'), 40213 longDateFormat : { 40214 LT : 'HH:mm', 40215 LTS : 'HH:mm:ss', 40216 L : 'DD.MM.YYYY', 40217 LL : 'D. MMMM YYYY', 40218 LLL : 'D. MMMM YYYY [kl.] H:mm', 40219 LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm' 40220 }, 40221 calendar : { 40222 sameDay: '[I dag klokka] LT', 40223 nextDay: '[I morgon klokka] LT', 40224 nextWeek: 'dddd [klokka] LT', 40225 lastDay: '[I gÃ¥r klokka] LT', 40226 lastWeek: '[FøregÃ¥ande] dddd [klokka] LT', 40227 sameElse: 'L' 40228 }, 40229 relativeTime : { 40230 future : 'om %s', 40231 past : '%s sidan', 40232 s : 'nokre sekund', 40233 ss : '%d sekund', 40234 m : 'eit minutt', 40235 mm : '%d minutt', 40236 h : 'ein time', 40237 hh : '%d timar', 40238 d : 'ein dag', 40239 dd : '%d dagar', 40240 M : 'ein mÃ¥nad', 40241 MM : '%d mÃ¥nader', 40242 y : 'eit Ã¥r', 40243 yy : '%d Ã¥r' 40244 }, 40245 dayOfMonthOrdinalParse: /\d{1,2}\./, 40246 ordinal : '%d.', 40247 week : { 40248 dow : 1, // Monday is the first day of the week. 40249 doy : 4 // The week that contains Jan 4th is the first week of the year. 40250 } 40251 }); 40252 40253 return nn; 40254 40255}))); 40256 40257 40258/***/ }), 40259/* 303 */ 40260/***/ (function(module, exports, __webpack_require__) { 40261 40262//! moment.js locale configuration 40263 40264;(function (global, factory) { 40265 true ? factory(__webpack_require__(1)) : 40266 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 40267 factory(global.moment) 40268}(this, (function (moment) { 'use strict'; 40269 40270 40271 var symbolMap = { 40272 '1': 'à©§', 40273 '2': '੨', 40274 '3': 'à©©', 40275 '4': '੪', 40276 '5': 'à©«', 40277 '6': '੬', 40278 '7': 'à©', 40279 '8': 'à©®', 40280 '9': '੯', 40281 '0': '੦' 40282 }, 40283 numberMap = { 40284 'à©§': '1', 40285 '੨': '2', 40286 'à©©': '3', 40287 '੪': '4', 40288 'à©«': '5', 40289 '੬': '6', 40290 'à©': '7', 40291 'à©®': '8', 40292 '੯': '9', 40293 '੦': '0' 40294 }; 40295 40296 var paIn = moment.defineLocale('pa-in', { 40297 // There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi. 40298 months : 'à¨à¨¨à¨µà¨°à©_ਫ਼ਰਵਰà©_ਮਾਰà¨_ਠਪà©à¨°à©à¨²_ਮà¨_à¨à©à¨¨_à¨à©à¨²à¨¾à¨_ਠà¨à¨¸à¨¤_ਸਤੰਬਰ_ਠà¨à¨¤à©à¨¬à¨°_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'), 40299 monthsShort : 'à¨à¨¨à¨µà¨°à©_ਫ਼ਰਵਰà©_ਮਾਰà¨_ਠਪà©à¨°à©à¨²_ਮà¨_à¨à©à¨¨_à¨à©à¨²à¨¾à¨_ਠà¨à¨¸à¨¤_ਸਤੰਬਰ_ਠà¨à¨¤à©à¨¬à¨°_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'), 40300 weekdays : 'à¨à¨¤à¨µà¨¾à¨°_ਸà©à¨®à¨µà¨¾à¨°_ਮੰà¨à¨²à¨µà¨¾à¨°_ਬà©à¨§à¨µà¨¾à¨°_ਵà©à¨°à¨µà¨¾à¨°_ਸ਼à©à©±à¨à¨°à¨µà¨¾à¨°_ਸ਼ਨà©à¨à¨°à¨µà¨¾à¨°'.split('_'), 40301 weekdaysShort : 'à¨à¨¤_ਸà©à¨®_ਮੰà¨à¨²_ਬà©à¨§_ਵà©à¨°_ਸ਼à©à¨à¨°_ਸ਼ਨà©'.split('_'), 40302 weekdaysMin : 'à¨à¨¤_ਸà©à¨®_ਮੰà¨à¨²_ਬà©à¨§_ਵà©à¨°_ਸ਼à©à¨à¨°_ਸ਼ਨà©'.split('_'), 40303 longDateFormat : { 40304 LT : 'A h:mm ਵà¨à©', 40305 LTS : 'A h:mm:ss ਵà¨à©', 40306 L : 'DD/MM/YYYY', 40307 LL : 'D MMMM YYYY', 40308 LLL : 'D MMMM YYYY, A h:mm ਵà¨à©', 40309 LLLL : 'dddd, D MMMM YYYY, A h:mm ਵà¨à©' 40310 }, 40311 calendar : { 40312 sameDay : '[ਠà¨] LT', 40313 nextDay : '[à¨à¨²] LT', 40314 nextWeek : '[ਠà¨à¨²à¨¾] dddd, LT', 40315 lastDay : '[à¨à¨²] LT', 40316 lastWeek : '[ਪਿà¨à¨²à©] dddd, LT', 40317 sameElse : 'L' 40318 }, 40319 relativeTime : { 40320 future : '%s ਵਿੱà¨', 40321 past : '%s ਪਿà¨à¨²à©', 40322 s : 'à¨à©à¨ ਸà¨à¨¿à©°à¨', 40323 ss : '%d ਸà¨à¨¿à©°à¨', 40324 m : 'à¨à¨ ਮਿੰà¨', 40325 mm : '%d ਮਿੰà¨', 40326 h : 'à¨à©±à¨ à¨à©°à¨à¨¾', 40327 hh : '%d à¨à©°à¨à©', 40328 d : 'à¨à©±à¨ ਦਿਨ', 40329 dd : '%d ਦਿਨ', 40330 M : 'à¨à©±à¨ ਮਹà©à¨¨à¨¾', 40331 MM : '%d ਮਹà©à¨¨à©', 40332 y : 'à¨à©±à¨ ਸਾਲ', 40333 yy : '%d ਸਾਲ' 40334 }, 40335 preparse: function (string) { 40336 return string.replace(/[੧੨੩੪੫੬à©à©®à©¯à©¦]/g, function (match) { 40337 return numberMap[match]; 40338 }); 40339 }, 40340 postformat: function (string) { 40341 return string.replace(/\d/g, function (match) { 40342 return symbolMap[match]; 40343 }); 40344 }, 40345 // Punjabi notation for meridiems are quite fuzzy in practice. While there exists 40346 // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi. 40347 meridiemParse: /ਰਾਤ|ਸਵà©à¨°|ਦà©à¨ªà¨¹à¨¿à¨°|ਸ਼ਾਮ/, 40348 meridiemHour : function (hour, meridiem) { 40349 if (hour === 12) { 40350 hour = 0; 40351 } 40352 if (meridiem === 'ਰਾਤ') { 40353 return hour < 4 ? hour : hour + 12; 40354 } else if (meridiem === 'ਸਵà©à¨°') { 40355 return hour; 40356 } else if (meridiem === 'ਦà©à¨ªà¨¹à¨¿à¨°') { 40357 return hour >= 10 ? hour : hour + 12; 40358 } else if (meridiem === 'ਸ਼ਾਮ') { 40359 return hour + 12; 40360 } 40361 }, 40362 meridiem : function (hour, minute, isLower) { 40363 if (hour < 4) { 40364 return 'ਰਾਤ'; 40365 } else if (hour < 10) { 40366 return 'ਸਵà©à¨°'; 40367 } else if (hour < 17) { 40368 return 'ਦà©à¨ªà¨¹à¨¿à¨°'; 40369 } else if (hour < 20) { 40370 return 'ਸ਼ਾਮ'; 40371 } else { 40372 return 'ਰਾਤ'; 40373 } 40374 }, 40375 week : { 40376 dow : 0, // Sunday is the first day of the week. 40377 doy : 6 // The week that contains Jan 1st is the first week of the year. 40378 } 40379 }); 40380 40381 return paIn; 40382 40383}))); 40384 40385 40386/***/ }), 40387/* 304 */ 40388/***/ (function(module, exports, __webpack_require__) { 40389 40390//! moment.js locale configuration 40391 40392;(function (global, factory) { 40393 true ? factory(__webpack_require__(1)) : 40394 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 40395 factory(global.moment) 40396}(this, (function (moment) { 'use strict'; 40397 40398 40399 var monthsNominative = 'styczeÅ_luty_marzec_kwiecieÅ_maj_czerwiec_lipiec_sierpieÅ_wrzesieÅ_październik_listopad_grudzieÅ'.split('_'), 40400 monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrzeÅnia_października_listopada_grudnia'.split('_'); 40401 function plural(n) { 40402 return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1); 40403 } 40404 function translate(number, withoutSuffix, key) { 40405 var result = number + ' '; 40406 switch (key) { 40407 case 'ss': 40408 return result + (plural(number) ? 'sekundy' : 'sekund'); 40409 case 'm': 40410 return withoutSuffix ? 'minuta' : 'minutÄ'; 40411 case 'mm': 40412 return result + (plural(number) ? 'minuty' : 'minut'); 40413 case 'h': 40414 return withoutSuffix ? 'godzina' : 'godzinÄ'; 40415 case 'hh': 40416 return result + (plural(number) ? 'godziny' : 'godzin'); 40417 case 'MM': 40418 return result + (plural(number) ? 'miesiÄ ce' : 'miesiÄcy'); 40419 case 'yy': 40420 return result + (plural(number) ? 'lata' : 'lat'); 40421 } 40422 } 40423 40424 var pl = moment.defineLocale('pl', { 40425 months : function (momentToFormat, format) { 40426 if (!momentToFormat) { 40427 return monthsNominative; 40428 } else if (format === '') { 40429 // Hack: if format empty we know this is used to generate 40430 // RegExp by moment. Give then back both valid forms of months 40431 // in RegExp ready format. 40432 return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')'; 40433 } else if (/D MMMM/.test(format)) { 40434 return monthsSubjective[momentToFormat.month()]; 40435 } else { 40436 return monthsNominative[momentToFormat.month()]; 40437 } 40438 }, 40439 monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'), 40440 weekdays : 'niedziela_poniedziaÅek_wtorek_Åroda_czwartek_piÄ tek_sobota'.split('_'), 40441 weekdaysShort : 'ndz_pon_wt_År_czw_pt_sob'.split('_'), 40442 weekdaysMin : 'Nd_Pn_Wt_År_Cz_Pt_So'.split('_'), 40443 longDateFormat : { 40444 LT : 'HH:mm', 40445 LTS : 'HH:mm:ss', 40446 L : 'DD.MM.YYYY', 40447 LL : 'D MMMM YYYY', 40448 LLL : 'D MMMM YYYY HH:mm', 40449 LLLL : 'dddd, D MMMM YYYY HH:mm' 40450 }, 40451 calendar : { 40452 sameDay: '[DziÅ o] LT', 40453 nextDay: '[Jutro o] LT', 40454 nextWeek: function () { 40455 switch (this.day()) { 40456 case 0: 40457 return '[W niedzielÄ o] LT'; 40458 40459 case 2: 40460 return '[We wtorek o] LT'; 40461 40462 case 3: 40463 return '[W ÅrodÄ o] LT'; 40464 40465 case 6: 40466 return '[W sobotÄ o] LT'; 40467 40468 default: 40469 return '[W] dddd [o] LT'; 40470 } 40471 }, 40472 lastDay: '[Wczoraj o] LT', 40473 lastWeek: function () { 40474 switch (this.day()) { 40475 case 0: 40476 return '[W zeszÅÄ niedzielÄ o] LT'; 40477 case 3: 40478 return '[W zeszÅÄ ÅrodÄ o] LT'; 40479 case 6: 40480 return '[W zeszÅÄ sobotÄ o] LT'; 40481 default: 40482 return '[W zeszÅy] dddd [o] LT'; 40483 } 40484 }, 40485 sameElse: 'L' 40486 }, 40487 relativeTime : { 40488 future : 'za %s', 40489 past : '%s temu', 40490 s : 'kilka sekund', 40491 ss : translate, 40492 m : translate, 40493 mm : translate, 40494 h : translate, 40495 hh : translate, 40496 d : '1 dzieÅ', 40497 dd : '%d dni', 40498 M : 'miesiÄ c', 40499 MM : translate, 40500 y : 'rok', 40501 yy : translate 40502 }, 40503 dayOfMonthOrdinalParse: /\d{1,2}\./, 40504 ordinal : '%d.', 40505 week : { 40506 dow : 1, // Monday is the first day of the week. 40507 doy : 4 // The week that contains Jan 4th is the first week of the year. 40508 } 40509 }); 40510 40511 return pl; 40512 40513}))); 40514 40515 40516/***/ }), 40517/* 305 */ 40518/***/ (function(module, exports, __webpack_require__) { 40519 40520//! moment.js locale configuration 40521 40522;(function (global, factory) { 40523 true ? factory(__webpack_require__(1)) : 40524 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 40525 factory(global.moment) 40526}(this, (function (moment) { 'use strict'; 40527 40528 40529 var pt = moment.defineLocale('pt', { 40530 months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'), 40531 monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), 40532 weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'), 40533 weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), 40534 weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), 40535 weekdaysParseExact : true, 40536 longDateFormat : { 40537 LT : 'HH:mm', 40538 LTS : 'HH:mm:ss', 40539 L : 'DD/MM/YYYY', 40540 LL : 'D [de] MMMM [de] YYYY', 40541 LLL : 'D [de] MMMM [de] YYYY HH:mm', 40542 LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm' 40543 }, 40544 calendar : { 40545 sameDay: '[Hoje à s] LT', 40546 nextDay: '[Amanhã à s] LT', 40547 nextWeek: 'dddd [à s] LT', 40548 lastDay: '[Ontem à s] LT', 40549 lastWeek: function () { 40550 return (this.day() === 0 || this.day() === 6) ? 40551 '[Ãltimo] dddd [à s] LT' : // Saturday + Sunday 40552 '[Ãltima] dddd [à s] LT'; // Monday - Friday 40553 }, 40554 sameElse: 'L' 40555 }, 40556 relativeTime : { 40557 future : 'em %s', 40558 past : 'há %s', 40559 s : 'segundos', 40560 ss : '%d segundos', 40561 m : 'um minuto', 40562 mm : '%d minutos', 40563 h : 'uma hora', 40564 hh : '%d horas', 40565 d : 'um dia', 40566 dd : '%d dias', 40567 M : 'um mês', 40568 MM : '%d meses', 40569 y : 'um ano', 40570 yy : '%d anos' 40571 }, 40572 dayOfMonthOrdinalParse: /\d{1,2}º/, 40573 ordinal : '%dº', 40574 week : { 40575 dow : 1, // Monday is the first day of the week. 40576 doy : 4 // The week that contains Jan 4th is the first week of the year. 40577 } 40578 }); 40579 40580 return pt; 40581 40582}))); 40583 40584 40585/***/ }), 40586/* 306 */ 40587/***/ (function(module, exports, __webpack_require__) { 40588 40589//! moment.js locale configuration 40590 40591;(function (global, factory) { 40592 true ? factory(__webpack_require__(1)) : 40593 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 40594 factory(global.moment) 40595}(this, (function (moment) { 'use strict'; 40596 40597 40598 var ptBr = moment.defineLocale('pt-br', { 40599 months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'), 40600 monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), 40601 weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'), 40602 weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), 40603 weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), 40604 weekdaysParseExact : true, 40605 longDateFormat : { 40606 LT : 'HH:mm', 40607 LTS : 'HH:mm:ss', 40608 L : 'DD/MM/YYYY', 40609 LL : 'D [de] MMMM [de] YYYY', 40610 LLL : 'D [de] MMMM [de] YYYY [à s] HH:mm', 40611 LLLL : 'dddd, D [de] MMMM [de] YYYY [à s] HH:mm' 40612 }, 40613 calendar : { 40614 sameDay: '[Hoje à s] LT', 40615 nextDay: '[Amanhã à s] LT', 40616 nextWeek: 'dddd [à s] LT', 40617 lastDay: '[Ontem à s] LT', 40618 lastWeek: function () { 40619 return (this.day() === 0 || this.day() === 6) ? 40620 '[Ãltimo] dddd [à s] LT' : // Saturday + Sunday 40621 '[Ãltima] dddd [à s] LT'; // Monday - Friday 40622 }, 40623 sameElse: 'L' 40624 }, 40625 relativeTime : { 40626 future : 'em %s', 40627 past : 'há %s', 40628 s : 'poucos segundos', 40629 ss : '%d segundos', 40630 m : 'um minuto', 40631 mm : '%d minutos', 40632 h : 'uma hora', 40633 hh : '%d horas', 40634 d : 'um dia', 40635 dd : '%d dias', 40636 M : 'um mês', 40637 MM : '%d meses', 40638 y : 'um ano', 40639 yy : '%d anos' 40640 }, 40641 dayOfMonthOrdinalParse: /\d{1,2}º/, 40642 ordinal : '%dº' 40643 }); 40644 40645 return ptBr; 40646 40647}))); 40648 40649 40650/***/ }), 40651/* 307 */ 40652/***/ (function(module, exports, __webpack_require__) { 40653 40654//! moment.js locale configuration 40655 40656;(function (global, factory) { 40657 true ? factory(__webpack_require__(1)) : 40658 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 40659 factory(global.moment) 40660}(this, (function (moment) { 'use strict'; 40661 40662 40663 function relativeTimeWithPlural(number, withoutSuffix, key) { 40664 var format = { 40665 'ss': 'secunde', 40666 'mm': 'minute', 40667 'hh': 'ore', 40668 'dd': 'zile', 40669 'MM': 'luni', 40670 'yy': 'ani' 40671 }, 40672 separator = ' '; 40673 if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) { 40674 separator = ' de '; 40675 } 40676 return number + separator + format[key]; 40677 } 40678 40679 var ro = moment.defineLocale('ro', { 40680 months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'), 40681 monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'), 40682 monthsParseExact: true, 40683 weekdays : 'duminicÄ_luni_marÈi_miercuri_joi_vineri_sâmbÄtÄ'.split('_'), 40684 weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'), 40685 weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'), 40686 longDateFormat : { 40687 LT : 'H:mm', 40688 LTS : 'H:mm:ss', 40689 L : 'DD.MM.YYYY', 40690 LL : 'D MMMM YYYY', 40691 LLL : 'D MMMM YYYY H:mm', 40692 LLLL : 'dddd, D MMMM YYYY H:mm' 40693 }, 40694 calendar : { 40695 sameDay: '[azi la] LT', 40696 nextDay: '[mâine la] LT', 40697 nextWeek: 'dddd [la] LT', 40698 lastDay: '[ieri la] LT', 40699 lastWeek: '[fosta] dddd [la] LT', 40700 sameElse: 'L' 40701 }, 40702 relativeTime : { 40703 future : 'peste %s', 40704 past : '%s în urmÄ', 40705 s : 'câteva secunde', 40706 ss : relativeTimeWithPlural, 40707 m : 'un minut', 40708 mm : relativeTimeWithPlural, 40709 h : 'o orÄ', 40710 hh : relativeTimeWithPlural, 40711 d : 'o zi', 40712 dd : relativeTimeWithPlural, 40713 M : 'o lunÄ', 40714 MM : relativeTimeWithPlural, 40715 y : 'un an', 40716 yy : relativeTimeWithPlural 40717 }, 40718 week : { 40719 dow : 1, // Monday is the first day of the week. 40720 doy : 7 // The week that contains Jan 1st is the first week of the year. 40721 } 40722 }); 40723 40724 return ro; 40725 40726}))); 40727 40728 40729/***/ }), 40730/* 308 */ 40731/***/ (function(module, exports, __webpack_require__) { 40732 40733//! moment.js locale configuration 40734 40735;(function (global, factory) { 40736 true ? factory(__webpack_require__(1)) : 40737 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 40738 factory(global.moment) 40739}(this, (function (moment) { 'use strict'; 40740 40741 40742 function plural(word, num) { 40743 var forms = word.split('_'); 40744 return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); 40745 } 40746 function relativeTimeWithPlural(number, withoutSuffix, key) { 40747 var format = { 40748 'ss': withoutSuffix ? 'ÑекÑнда_ÑекÑндÑ_ÑекÑнд' : 'ÑекÑндÑ_ÑекÑндÑ_ÑекÑнд', 40749 'mm': withoutSuffix ? 'минÑÑа_минÑÑÑ_минÑÑ' : 'минÑÑÑ_минÑÑÑ_минÑÑ', 40750 'hh': 'ÑаÑ_ÑаÑа_ÑаÑов', 40751 'dd': 'денÑ_днÑ_дней', 40752 'MM': 'меÑÑÑ_меÑÑÑа_меÑÑÑев', 40753 'yy': 'год_года_леÑ' 40754 }; 40755 if (key === 'm') { 40756 return withoutSuffix ? 'минÑÑа' : 'минÑÑÑ'; 40757 } 40758 else { 40759 return number + ' ' + plural(format[key], +number); 40760 } 40761 } 40762 var monthsParse = [/^Ñнв/i, /^Ñев/i, /^маÑ/i, /^апÑ/i, /^ма[йÑ]/i, /^иÑн/i, /^иÑл/i, /^авг/i, /^Ñен/i, /^окÑ/i, /^ноÑ/i, /^дек/i]; 40763 40764 // http://new.gramota.ru/spravka/rules/139-prop : § 103 40765 // СокÑаÑÐµÐ½Ð¸Ñ Ð¼ÐµÑÑÑев: http://new.gramota.ru/spravka/buro/search-answer?s=242637 40766 // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753 40767 var ru = moment.defineLocale('ru', { 40768 months : { 40769 format: 'ÑнваÑÑ_ÑевÑалÑ_маÑÑа_апÑелÑ_маÑ_иÑнÑ_иÑлÑ_авгÑÑÑа_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ'.split('_'), 40770 standalone: 'ÑнваÑÑ_ÑевÑалÑ_маÑÑ_апÑелÑ_май_иÑнÑ_иÑлÑ_авгÑÑÑ_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ'.split('_') 40771 }, 40772 monthsShort : { 40773 // по CLDR именно "иÑл." и "иÑн.", но какой ÑмÑÑл менÑÑÑ Ð±ÑÐºÐ²Ñ Ð½Ð° ÑоÑÐºÑ ? 40774 format: 'Ñнв._ÑевÑ._маÑ._апÑ._маÑ_иÑнÑ_иÑлÑ_авг._ÑенÑ._окÑ._ноÑб._дек.'.split('_'), 40775 standalone: 'Ñнв._ÑевÑ._маÑÑ_апÑ._май_иÑнÑ_иÑлÑ_авг._ÑенÑ._окÑ._ноÑб._дек.'.split('_') 40776 }, 40777 weekdays : { 40778 standalone: 'воÑкÑеÑенÑе_понеделÑник_вÑоÑник_ÑÑеда_ÑеÑвеÑг_пÑÑниÑа_ÑÑббоÑа'.split('_'), 40779 format: 'воÑкÑеÑенÑе_понеделÑник_вÑоÑник_ÑÑедÑ_ÑеÑвеÑг_пÑÑниÑÑ_ÑÑббоÑÑ'.split('_'), 40780 isFormat: /\[ ?[Ðв] ?(?:пÑоÑлÑÑ|ÑледÑÑÑÑÑ|ÑÑÑ)? ?\] ?dddd/ 40781 }, 40782 weekdaysShort : 'вÑ_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб'.split('_'), 40783 weekdaysMin : 'вÑ_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб'.split('_'), 40784 monthsParse : monthsParse, 40785 longMonthsParse : monthsParse, 40786 shortMonthsParse : monthsParse, 40787 40788 // полнÑе Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ Ñ Ð¿Ð°Ð´ÐµÐ¶Ð°Ð¼Ð¸, по ÑÑи бÑквÑ, Ð´Ð»Ñ Ð½ÐµÐºÐ¾ÑоÑÑÑ , по 4 бÑквÑ, ÑокÑаÑÐµÐ½Ð¸Ñ Ñ ÑоÑкой и без ÑоÑки 40789 monthsRegex: /^(ÑнваÑ[ÑÑ]|Ñнв\.?|ÑевÑал[ÑÑ]|ÑевÑ?\.?|маÑÑа?|маÑ\.?|апÑел[ÑÑ]|апÑ\.?|ма[йÑ]|иÑн[ÑÑ]|иÑн\.?|иÑл[ÑÑ]|иÑл\.?|авгÑÑÑа?|авг\.?|ÑенÑÑбÑ[ÑÑ]|ÑенÑ?\.?|окÑÑбÑ[ÑÑ]|окÑ\.?|ноÑбÑ[ÑÑ]|ноÑб?\.?|декабÑ[ÑÑ]|дек\.?)/i, 40790 40791 // ÐºÐ¾Ð¿Ð¸Ñ Ð¿ÑедÑдÑÑего 40792 monthsShortRegex: /^(ÑнваÑ[ÑÑ]|Ñнв\.?|ÑевÑал[ÑÑ]|ÑевÑ?\.?|маÑÑа?|маÑ\.?|апÑел[ÑÑ]|апÑ\.?|ма[йÑ]|иÑн[ÑÑ]|иÑн\.?|иÑл[ÑÑ]|иÑл\.?|авгÑÑÑа?|авг\.?|ÑенÑÑбÑ[ÑÑ]|ÑенÑ?\.?|окÑÑбÑ[ÑÑ]|окÑ\.?|ноÑбÑ[ÑÑ]|ноÑб?\.?|декабÑ[ÑÑ]|дек\.?)/i, 40793 40794 // полнÑе Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ Ñ Ð¿Ð°Ð´ÐµÐ¶Ð°Ð¼Ð¸ 40795 monthsStrictRegex: /^(ÑнваÑ[ÑÑ]|ÑевÑал[ÑÑ]|маÑÑа?|апÑел[ÑÑ]|ма[Ñй]|иÑн[ÑÑ]|иÑл[ÑÑ]|авгÑÑÑа?|ÑенÑÑбÑ[ÑÑ]|окÑÑбÑ[ÑÑ]|ноÑбÑ[ÑÑ]|декабÑ[ÑÑ])/i, 40796 40797 // ÐÑÑажение, коÑоÑое ÑооÑвеÑÑвÑÐµÑ ÑолÑко ÑокÑаÑÑннÑм ÑоÑмам 40798 monthsShortStrictRegex: /^(Ñнв\.|ÑевÑ?\.|маÑ[Ñ.]|апÑ\.|ма[Ñй]|иÑн[ÑÑ.]|иÑл[ÑÑ.]|авг\.|ÑенÑ?\.|окÑ\.|ноÑб?\.|дек\.)/i, 40799 longDateFormat : { 40800 LT : 'H:mm', 40801 LTS : 'H:mm:ss', 40802 L : 'DD.MM.YYYY', 40803 LL : 'D MMMM YYYY г.', 40804 LLL : 'D MMMM YYYY г., H:mm', 40805 LLLL : 'dddd, D MMMM YYYY г., H:mm' 40806 }, 40807 calendar : { 40808 sameDay: '[СегоднÑ, в] LT', 40809 nextDay: '[ÐавÑÑа, в] LT', 40810 lastDay: '[ÐÑеÑа, в] LT', 40811 nextWeek: function (now) { 40812 if (now.week() !== this.week()) { 40813 switch (this.day()) { 40814 case 0: 40815 return '[Ð ÑледÑÑÑее] dddd, [в] LT'; 40816 case 1: 40817 case 2: 40818 case 4: 40819 return '[Ð ÑледÑÑÑий] dddd, [в] LT'; 40820 case 3: 40821 case 5: 40822 case 6: 40823 return '[Ð ÑледÑÑÑÑÑ] dddd, [в] LT'; 40824 } 40825 } else { 40826 if (this.day() === 2) { 40827 return '[Ðо] dddd, [в] LT'; 40828 } else { 40829 return '[Ð] dddd, [в] LT'; 40830 } 40831 } 40832 }, 40833 lastWeek: function (now) { 40834 if (now.week() !== this.week()) { 40835 switch (this.day()) { 40836 case 0: 40837 return '[РпÑоÑлое] dddd, [в] LT'; 40838 case 1: 40839 case 2: 40840 case 4: 40841 return '[РпÑоÑлÑй] dddd, [в] LT'; 40842 case 3: 40843 case 5: 40844 case 6: 40845 return '[РпÑоÑлÑÑ] dddd, [в] LT'; 40846 } 40847 } else { 40848 if (this.day() === 2) { 40849 return '[Ðо] dddd, [в] LT'; 40850 } else { 40851 return '[Ð] dddd, [в] LT'; 40852 } 40853 } 40854 }, 40855 sameElse: 'L' 40856 }, 40857 relativeTime : { 40858 future : 'ÑеÑез %s', 40859 past : '%s назад', 40860 s : 'неÑколÑко ÑекÑнд', 40861 ss : relativeTimeWithPlural, 40862 m : relativeTimeWithPlural, 40863 mm : relativeTimeWithPlural, 40864 h : 'ÑаÑ', 40865 hh : relativeTimeWithPlural, 40866 d : 'денÑ', 40867 dd : relativeTimeWithPlural, 40868 M : 'меÑÑÑ', 40869 MM : relativeTimeWithPlural, 40870 y : 'год', 40871 yy : relativeTimeWithPlural 40872 }, 40873 meridiemParse: /ноÑи|ÑÑÑа|днÑ|веÑеÑа/i, 40874 isPM : function (input) { 40875 return /^(днÑ|веÑеÑа)$/.test(input); 40876 }, 40877 meridiem : function (hour, minute, isLower) { 40878 if (hour < 4) { 40879 return 'ноÑи'; 40880 } else if (hour < 12) { 40881 return 'ÑÑÑа'; 40882 } else if (hour < 17) { 40883 return 'днÑ'; 40884 } else { 40885 return 'веÑеÑа'; 40886 } 40887 }, 40888 dayOfMonthOrdinalParse: /\d{1,2}-(й|го|Ñ)/, 40889 ordinal: function (number, period) { 40890 switch (period) { 40891 case 'M': 40892 case 'd': 40893 case 'DDD': 40894 return number + '-й'; 40895 case 'D': 40896 return number + '-го'; 40897 case 'w': 40898 case 'W': 40899 return number + '-Ñ'; 40900 default: 40901 return number; 40902 } 40903 }, 40904 week : { 40905 dow : 1, // Monday is the first day of the week. 40906 doy : 4 // The week that contains Jan 4th is the first week of the year. 40907 } 40908 }); 40909 40910 return ru; 40911 40912}))); 40913 40914 40915/***/ }), 40916/* 309 */ 40917/***/ (function(module, exports, __webpack_require__) { 40918 40919//! moment.js locale configuration 40920 40921;(function (global, factory) { 40922 true ? factory(__webpack_require__(1)) : 40923 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 40924 factory(global.moment) 40925}(this, (function (moment) { 'use strict'; 40926 40927 40928 var months = [ 40929 'جÙÙØ±Ù', 40930 'ÙÙØ¨Ø±ÙرÙ', 40931 '٠ارÚ', 40932 'اپرÙÙ', 40933 '٠ئÙ', 40934 'جÙÙ', 40935 'جÙÙØ§Ø¡Ù', 40936 'آگسٽ', 40937 'سÙپٽ٠بر', 40938 'Ø¢ÚªÙ½ÙØ¨Ø±', 40939 'ÙÙ٠بر', 40940 'ÚØ³Ù بر' 40941 ]; 40942 var days = [ 40943 'Ø¢ÚØ±', 40944 'سÙ٠ر', 40945 'اڱارÙ', 40946 'اربع', 40947 'Ø®Ù ÙØ³', 40948 'ج٠ع', 40949 'ÚÙÚØ±' 40950 ]; 40951 40952 var sd = moment.defineLocale('sd', { 40953 months : months, 40954 monthsShort : months, 40955 weekdays : days, 40956 weekdaysShort : days, 40957 weekdaysMin : days, 40958 longDateFormat : { 40959 LT : 'HH:mm', 40960 LTS : 'HH:mm:ss', 40961 L : 'DD/MM/YYYY', 40962 LL : 'D MMMM YYYY', 40963 LLL : 'D MMMM YYYY HH:mm', 40964 LLLL : 'ddddØ D MMMM YYYY HH:mm' 40965 }, 40966 meridiemParse: /صبØ|شا٠/, 40967 isPM : function (input) { 40968 return 'شا٠' === input; 40969 }, 40970 meridiem : function (hour, minute, isLower) { 40971 if (hour < 12) { 40972 return 'صبØ'; 40973 } 40974 return 'شا٠'; 40975 }, 40976 calendar : { 40977 sameDay : '[اÚ] LT', 40978 nextDay : '[Ø³ÚØ§Ú»Ù] LT', 40979 nextWeek : 'dddd [اڳÙÙ ÙÙØªÙ تÙ] LT', 40980 lastDay : '[ڪاÙÙÙ] LT', 40981 lastWeek : '[گزرÙÙ ÙÙØªÙ] dddd [تÙ] LT', 40982 sameElse : 'L' 40983 }, 40984 relativeTime : { 40985 future : '%s Ù¾ÙØ¡', 40986 past : '%s اڳ', 40987 s : 'ÚÙØ¯ سÙÚªÙÚ', 40988 ss : '%d سÙÚªÙÚ', 40989 m : 'ÙÚª Ù ÙÙ½', 40990 mm : '%d Ù ÙÙ½', 40991 h : 'ÙÚª ÚªÙØ§Úª', 40992 hh : '%d ÚªÙØ§Úª', 40993 d : 'ÙÚª ÚÙÙÙÙ', 40994 dd : '%d ÚÙÙÙÙ', 40995 M : 'ÙÚª Ù ÙÙÙÙ', 40996 MM : '%d Ù ÙÙÙØ§', 40997 y : 'ÙÚª ساÙ', 40998 yy : '%d ساÙ' 40999 }, 41000 preparse: function (string) { 41001 return string.replace(/Ø/g, ','); 41002 }, 41003 postformat: function (string) { 41004 return string.replace(/,/g, 'Ø'); 41005 }, 41006 week : { 41007 dow : 1, // Monday is the first day of the week. 41008 doy : 4 // The week that contains Jan 4th is the first week of the year. 41009 } 41010 }); 41011 41012 return sd; 41013 41014}))); 41015 41016 41017/***/ }), 41018/* 310 */ 41019/***/ (function(module, exports, __webpack_require__) { 41020 41021//! moment.js locale configuration 41022 41023;(function (global, factory) { 41024 true ? factory(__webpack_require__(1)) : 41025 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 41026 factory(global.moment) 41027}(this, (function (moment) { 'use strict'; 41028 41029 41030 var se = moment.defineLocale('se', { 41031 months : 'oÄÄajagemánnu_guovvamánnu_njukÄamánnu_cuoÅománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_ÄakÄamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'), 41032 monthsShort : 'oÄÄj_guov_njuk_cuo_mies_geas_suoi_borg_ÄakÄ_golg_skáb_juov'.split('_'), 41033 weekdays : 'sotnabeaivi_vuossárga_maÅÅebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'), 41034 weekdaysShort : 'sotn_vuos_maÅ_gask_duor_bear_láv'.split('_'), 41035 weekdaysMin : 's_v_m_g_d_b_L'.split('_'), 41036 longDateFormat : { 41037 LT : 'HH:mm', 41038 LTS : 'HH:mm:ss', 41039 L : 'DD.MM.YYYY', 41040 LL : 'MMMM D. [b.] YYYY', 41041 LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm', 41042 LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm' 41043 }, 41044 calendar : { 41045 sameDay: '[otne ti] LT', 41046 nextDay: '[ihttin ti] LT', 41047 nextWeek: 'dddd [ti] LT', 41048 lastDay: '[ikte ti] LT', 41049 lastWeek: '[ovddit] dddd [ti] LT', 41050 sameElse: 'L' 41051 }, 41052 relativeTime : { 41053 future : '%s geažes', 41054 past : 'maÅit %s', 41055 s : 'moadde sekunddat', 41056 ss: '%d sekunddat', 41057 m : 'okta minuhta', 41058 mm : '%d minuhtat', 41059 h : 'okta diimmu', 41060 hh : '%d diimmut', 41061 d : 'okta beaivi', 41062 dd : '%d beaivvit', 41063 M : 'okta mánnu', 41064 MM : '%d mánut', 41065 y : 'okta jahki', 41066 yy : '%d jagit' 41067 }, 41068 dayOfMonthOrdinalParse: /\d{1,2}\./, 41069 ordinal : '%d.', 41070 week : { 41071 dow : 1, // Monday is the first day of the week. 41072 doy : 4 // The week that contains Jan 4th is the first week of the year. 41073 } 41074 }); 41075 41076 return se; 41077 41078}))); 41079 41080 41081/***/ }), 41082/* 311 */ 41083/***/ (function(module, exports, __webpack_require__) { 41084 41085//! moment.js locale configuration 41086 41087;(function (global, factory) { 41088 true ? factory(__webpack_require__(1)) : 41089 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 41090 factory(global.moment) 41091}(this, (function (moment) { 'use strict'; 41092 41093 41094 /*jshint -W100*/ 41095 var si = moment.defineLocale('si', { 41096 months : 'ජනà·à·à¶»à·_à¶´à·à¶¶à¶»à·à·à¶»à·_මà·à¶»à·à¶à·_à¶ à¶´à·âà¶»à·à¶½à·_මà·à¶ºà·_à¶¢à·à¶±à·_à¶¢à·à¶½à·_à¶ à¶à·à·à·à¶à·_à·à·à¶´à·à¶à·à¶¸à·à¶¶à¶»à·_à¶à¶à·à¶à·à¶¶à¶»à·_à¶±à·à·à·à¶¸à·à¶¶à¶»à·_දà·à·à·à¶¸à·à¶¶à¶»à·'.split('_'), 41097 monthsShort : 'ජන_à¶´à·à¶¶_මà·à¶»à·_à¶ à¶´à·_මà·à¶ºà·_à¶¢à·à¶±à·_à¶¢à·à¶½à·_à¶ à¶à·_à·à·à¶´à·_à¶à¶à·_à¶±à·à·à·_දà·à·à·'.split('_'), 41098 weekdays : 'à¶à¶»à·à¶¯à·_à·à¶³à·à¶¯à·_à¶ à¶à·à¶»à·à·à·à¶¯à·_බදà·à¶¯à·_à¶¶à·âà¶»à·à·à·à¶´à¶à·à¶±à·à¶¯à·_à·à·à¶à·à¶»à·à¶¯à·_à·à·à¶±à·à·à¶»à·à¶¯à·'.split('_'), 41099 weekdaysShort : 'à¶à¶»à·_à·à¶³à·_à¶ à¶_බදà·_à¶¶à·âà¶»à·_à·à·à¶à·_à·à·à¶±'.split('_'), 41100 weekdaysMin : 'à¶_à·_à¶ _à¶¶_à¶¶à·âà¶»_à·à·_à·à·'.split('_'), 41101 weekdaysParseExact : true, 41102 longDateFormat : { 41103 LT : 'a h:mm', 41104 LTS : 'a h:mm:ss', 41105 L : 'YYYY/MM/DD', 41106 LL : 'YYYY MMMM D', 41107 LLL : 'YYYY MMMM D, a h:mm', 41108 LLLL : 'YYYY MMMM D [à·à·à¶±à·] dddd, a h:mm:ss' 41109 }, 41110 calendar : { 41111 sameDay : '[චද] LT[à¶§]', 41112 nextDay : '[à·à·à¶§] LT[à¶§]', 41113 nextWeek : 'dddd LT[à¶§]', 41114 lastDay : '[à¶à¶ºà·] LT[à¶§]', 41115 lastWeek : '[à¶´à·à·à¶à·à¶º] dddd LT[à¶§]', 41116 sameElse : 'L' 41117 }, 41118 relativeTime : { 41119 future : '%sà¶à·à¶±à·', 41120 past : '%sà¶à¶§ à¶´à·à¶»', 41121 s : 'à¶à¶à·à¶´à¶» à¶à·à·à·à¶´à¶º', 41122 ss : 'à¶à¶à·à¶´à¶» %d', 41123 m : 'මà·à¶±à·à¶à·à¶à·à·', 41124 mm : 'මà·à¶±à·à¶à·à¶à· %d', 41125 h : 'à¶´à·à¶º', 41126 hh : 'à¶´à·à¶º %d', 41127 d : 'දà·à¶±à¶º', 41128 dd : 'දà·à¶± %d', 41129 M : 'මà·à·à¶º', 41130 MM : 'මà·à· %d', 41131 y : 'à·à·à¶»', 41132 yy : 'à·à·à¶» %d' 41133 }, 41134 dayOfMonthOrdinalParse: /\d{1,2} à·à·à¶±à·/, 41135 ordinal : function (number) { 41136 return number + ' à·à·à¶±à·'; 41137 }, 41138 meridiemParse : /à¶´à·à¶» à·à¶»à·|à¶´à·à· à·à¶»à·|à¶´à·.à·|à¶´.à·./, 41139 isPM : function (input) { 41140 return input === 'à¶´.à·.' || input === 'à¶´à·à· à·à¶»à·'; 41141 }, 41142 meridiem : function (hours, minutes, isLower) { 41143 if (hours > 11) { 41144 return isLower ? 'à¶´.à·.' : 'à¶´à·à· à·à¶»à·'; 41145 } else { 41146 return isLower ? 'à¶´à·.à·.' : 'à¶´à·à¶» à·à¶»à·'; 41147 } 41148 } 41149 }); 41150 41151 return si; 41152 41153}))); 41154 41155 41156/***/ }), 41157/* 312 */ 41158/***/ (function(module, exports, __webpack_require__) { 41159 41160//! moment.js locale configuration 41161 41162;(function (global, factory) { 41163 true ? factory(__webpack_require__(1)) : 41164 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 41165 factory(global.moment) 41166}(this, (function (moment) { 'use strict'; 41167 41168 41169 var months = 'január_február_marec_aprÃl_máj_jún_júl_august_september_október_november_december'.split('_'), 41170 monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_'); 41171 function plural(n) { 41172 return (n > 1) && (n < 5); 41173 } 41174 function translate(number, withoutSuffix, key, isFuture) { 41175 var result = number + ' '; 41176 switch (key) { 41177 case 's': // a few seconds / in a few seconds / a few seconds ago 41178 return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami'; 41179 case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago 41180 if (withoutSuffix || isFuture) { 41181 return result + (plural(number) ? 'sekundy' : 'sekúnd'); 41182 } else { 41183 return result + 'sekundami'; 41184 } 41185 break; 41186 case 'm': // a minute / in a minute / a minute ago 41187 return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou'); 41188 case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago 41189 if (withoutSuffix || isFuture) { 41190 return result + (plural(number) ? 'minúty' : 'minút'); 41191 } else { 41192 return result + 'minútami'; 41193 } 41194 break; 41195 case 'h': // an hour / in an hour / an hour ago 41196 return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou'); 41197 case 'hh': // 9 hours / in 9 hours / 9 hours ago 41198 if (withoutSuffix || isFuture) { 41199 return result + (plural(number) ? 'hodiny' : 'hodÃn'); 41200 } else { 41201 return result + 'hodinami'; 41202 } 41203 break; 41204 case 'd': // a day / in a day / a day ago 41205 return (withoutSuffix || isFuture) ? 'deÅ' : 'dÅom'; 41206 case 'dd': // 9 days / in 9 days / 9 days ago 41207 if (withoutSuffix || isFuture) { 41208 return result + (plural(number) ? 'dni' : 'dnÃ'); 41209 } else { 41210 return result + 'dÅami'; 41211 } 41212 break; 41213 case 'M': // a month / in a month / a month ago 41214 return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom'; 41215 case 'MM': // 9 months / in 9 months / 9 months ago 41216 if (withoutSuffix || isFuture) { 41217 return result + (plural(number) ? 'mesiace' : 'mesiacov'); 41218 } else { 41219 return result + 'mesiacmi'; 41220 } 41221 break; 41222 case 'y': // a year / in a year / a year ago 41223 return (withoutSuffix || isFuture) ? 'rok' : 'rokom'; 41224 case 'yy': // 9 years / in 9 years / 9 years ago 41225 if (withoutSuffix || isFuture) { 41226 return result + (plural(number) ? 'roky' : 'rokov'); 41227 } else { 41228 return result + 'rokmi'; 41229 } 41230 break; 41231 } 41232 } 41233 41234 var sk = moment.defineLocale('sk', { 41235 months : months, 41236 monthsShort : monthsShort, 41237 weekdays : 'nedeľa_pondelok_utorok_streda_Å¡tvrtok_piatok_sobota'.split('_'), 41238 weekdaysShort : 'ne_po_ut_st_Å¡t_pi_so'.split('_'), 41239 weekdaysMin : 'ne_po_ut_st_Å¡t_pi_so'.split('_'), 41240 longDateFormat : { 41241 LT: 'H:mm', 41242 LTS : 'H:mm:ss', 41243 L : 'DD.MM.YYYY', 41244 LL : 'D. MMMM YYYY', 41245 LLL : 'D. MMMM YYYY H:mm', 41246 LLLL : 'dddd D. MMMM YYYY H:mm' 41247 }, 41248 calendar : { 41249 sameDay: '[dnes o] LT', 41250 nextDay: '[zajtra o] LT', 41251 nextWeek: function () { 41252 switch (this.day()) { 41253 case 0: 41254 return '[v nedeľu o] LT'; 41255 case 1: 41256 case 2: 41257 return '[v] dddd [o] LT'; 41258 case 3: 41259 return '[v stredu o] LT'; 41260 case 4: 41261 return '[vo Å¡tvrtok o] LT'; 41262 case 5: 41263 return '[v piatok o] LT'; 41264 case 6: 41265 return '[v sobotu o] LT'; 41266 } 41267 }, 41268 lastDay: '[vÄera o] LT', 41269 lastWeek: function () { 41270 switch (this.day()) { 41271 case 0: 41272 return '[minulú nedeľu o] LT'; 41273 case 1: 41274 case 2: 41275 return '[minulý] dddd [o] LT'; 41276 case 3: 41277 return '[minulú stredu o] LT'; 41278 case 4: 41279 case 5: 41280 return '[minulý] dddd [o] LT'; 41281 case 6: 41282 return '[minulú sobotu o] LT'; 41283 } 41284 }, 41285 sameElse: 'L' 41286 }, 41287 relativeTime : { 41288 future : 'za %s', 41289 past : 'pred %s', 41290 s : translate, 41291 ss : translate, 41292 m : translate, 41293 mm : translate, 41294 h : translate, 41295 hh : translate, 41296 d : translate, 41297 dd : translate, 41298 M : translate, 41299 MM : translate, 41300 y : translate, 41301 yy : translate 41302 }, 41303 dayOfMonthOrdinalParse: /\d{1,2}\./, 41304 ordinal : '%d.', 41305 week : { 41306 dow : 1, // Monday is the first day of the week. 41307 doy : 4 // The week that contains Jan 4th is the first week of the year. 41308 } 41309 }); 41310 41311 return sk; 41312 41313}))); 41314 41315 41316/***/ }), 41317/* 313 */ 41318/***/ (function(module, exports, __webpack_require__) { 41319 41320//! moment.js locale configuration 41321 41322;(function (global, factory) { 41323 true ? factory(__webpack_require__(1)) : 41324 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 41325 factory(global.moment) 41326}(this, (function (moment) { 'use strict'; 41327 41328 41329 function processRelativeTime(number, withoutSuffix, key, isFuture) { 41330 var result = number + ' '; 41331 switch (key) { 41332 case 's': 41333 return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami'; 41334 case 'ss': 41335 if (number === 1) { 41336 result += withoutSuffix ? 'sekundo' : 'sekundi'; 41337 } else if (number === 2) { 41338 result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah'; 41339 } else if (number < 5) { 41340 result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah'; 41341 } else { 41342 result += withoutSuffix || isFuture ? 'sekund' : 'sekund'; 41343 } 41344 return result; 41345 case 'm': 41346 return withoutSuffix ? 'ena minuta' : 'eno minuto'; 41347 case 'mm': 41348 if (number === 1) { 41349 result += withoutSuffix ? 'minuta' : 'minuto'; 41350 } else if (number === 2) { 41351 result += withoutSuffix || isFuture ? 'minuti' : 'minutama'; 41352 } else if (number < 5) { 41353 result += withoutSuffix || isFuture ? 'minute' : 'minutami'; 41354 } else { 41355 result += withoutSuffix || isFuture ? 'minut' : 'minutami'; 41356 } 41357 return result; 41358 case 'h': 41359 return withoutSuffix ? 'ena ura' : 'eno uro'; 41360 case 'hh': 41361 if (number === 1) { 41362 result += withoutSuffix ? 'ura' : 'uro'; 41363 } else if (number === 2) { 41364 result += withoutSuffix || isFuture ? 'uri' : 'urama'; 41365 } else if (number < 5) { 41366 result += withoutSuffix || isFuture ? 'ure' : 'urami'; 41367 } else { 41368 result += withoutSuffix || isFuture ? 'ur' : 'urami'; 41369 } 41370 return result; 41371 case 'd': 41372 return withoutSuffix || isFuture ? 'en dan' : 'enim dnem'; 41373 case 'dd': 41374 if (number === 1) { 41375 result += withoutSuffix || isFuture ? 'dan' : 'dnem'; 41376 } else if (number === 2) { 41377 result += withoutSuffix || isFuture ? 'dni' : 'dnevoma'; 41378 } else { 41379 result += withoutSuffix || isFuture ? 'dni' : 'dnevi'; 41380 } 41381 return result; 41382 case 'M': 41383 return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem'; 41384 case 'MM': 41385 if (number === 1) { 41386 result += withoutSuffix || isFuture ? 'mesec' : 'mesecem'; 41387 } else if (number === 2) { 41388 result += withoutSuffix || isFuture ? 'meseca' : 'mesecema'; 41389 } else if (number < 5) { 41390 result += withoutSuffix || isFuture ? 'mesece' : 'meseci'; 41391 } else { 41392 result += withoutSuffix || isFuture ? 'mesecev' : 'meseci'; 41393 } 41394 return result; 41395 case 'y': 41396 return withoutSuffix || isFuture ? 'eno leto' : 'enim letom'; 41397 case 'yy': 41398 if (number === 1) { 41399 result += withoutSuffix || isFuture ? 'leto' : 'letom'; 41400 } else if (number === 2) { 41401 result += withoutSuffix || isFuture ? 'leti' : 'letoma'; 41402 } else if (number < 5) { 41403 result += withoutSuffix || isFuture ? 'leta' : 'leti'; 41404 } else { 41405 result += withoutSuffix || isFuture ? 'let' : 'leti'; 41406 } 41407 return result; 41408 } 41409 } 41410 41411 var sl = moment.defineLocale('sl', { 41412 months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'), 41413 monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'), 41414 monthsParseExact: true, 41415 weekdays : 'nedelja_ponedeljek_torek_sreda_Äetrtek_petek_sobota'.split('_'), 41416 weekdaysShort : 'ned._pon._tor._sre._Äet._pet._sob.'.split('_'), 41417 weekdaysMin : 'ne_po_to_sr_Äe_pe_so'.split('_'), 41418 weekdaysParseExact : true, 41419 longDateFormat : { 41420 LT : 'H:mm', 41421 LTS : 'H:mm:ss', 41422 L : 'DD.MM.YYYY', 41423 LL : 'D. MMMM YYYY', 41424 LLL : 'D. MMMM YYYY H:mm', 41425 LLLL : 'dddd, D. MMMM YYYY H:mm' 41426 }, 41427 calendar : { 41428 sameDay : '[danes ob] LT', 41429 nextDay : '[jutri ob] LT', 41430 41431 nextWeek : function () { 41432 switch (this.day()) { 41433 case 0: 41434 return '[v] [nedeljo] [ob] LT'; 41435 case 3: 41436 return '[v] [sredo] [ob] LT'; 41437 case 6: 41438 return '[v] [soboto] [ob] LT'; 41439 case 1: 41440 case 2: 41441 case 4: 41442 case 5: 41443 return '[v] dddd [ob] LT'; 41444 } 41445 }, 41446 lastDay : '[vÄeraj ob] LT', 41447 lastWeek : function () { 41448 switch (this.day()) { 41449 case 0: 41450 return '[prejÅ¡njo] [nedeljo] [ob] LT'; 41451 case 3: 41452 return '[prejÅ¡njo] [sredo] [ob] LT'; 41453 case 6: 41454 return '[prejÅ¡njo] [soboto] [ob] LT'; 41455 case 1: 41456 case 2: 41457 case 4: 41458 case 5: 41459 return '[prejÅ¡nji] dddd [ob] LT'; 41460 } 41461 }, 41462 sameElse : 'L' 41463 }, 41464 relativeTime : { 41465 future : 'Äez %s', 41466 past : 'pred %s', 41467 s : processRelativeTime, 41468 ss : processRelativeTime, 41469 m : processRelativeTime, 41470 mm : processRelativeTime, 41471 h : processRelativeTime, 41472 hh : processRelativeTime, 41473 d : processRelativeTime, 41474 dd : processRelativeTime, 41475 M : processRelativeTime, 41476 MM : processRelativeTime, 41477 y : processRelativeTime, 41478 yy : processRelativeTime 41479 }, 41480 dayOfMonthOrdinalParse: /\d{1,2}\./, 41481 ordinal : '%d.', 41482 week : { 41483 dow : 1, // Monday is the first day of the week. 41484 doy : 7 // The week that contains Jan 1st is the first week of the year. 41485 } 41486 }); 41487 41488 return sl; 41489 41490}))); 41491 41492 41493/***/ }), 41494/* 314 */ 41495/***/ (function(module, exports, __webpack_require__) { 41496 41497//! moment.js locale configuration 41498 41499;(function (global, factory) { 41500 true ? factory(__webpack_require__(1)) : 41501 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 41502 factory(global.moment) 41503}(this, (function (moment) { 'use strict'; 41504 41505 41506 var sq = moment.defineLocale('sq', { 41507 months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'), 41508 monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'), 41509 weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'), 41510 weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'), 41511 weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'), 41512 weekdaysParseExact : true, 41513 meridiemParse: /PD|MD/, 41514 isPM: function (input) { 41515 return input.charAt(0) === 'M'; 41516 }, 41517 meridiem : function (hours, minutes, isLower) { 41518 return hours < 12 ? 'PD' : 'MD'; 41519 }, 41520 longDateFormat : { 41521 LT : 'HH:mm', 41522 LTS : 'HH:mm:ss', 41523 L : 'DD/MM/YYYY', 41524 LL : 'D MMMM YYYY', 41525 LLL : 'D MMMM YYYY HH:mm', 41526 LLLL : 'dddd, D MMMM YYYY HH:mm' 41527 }, 41528 calendar : { 41529 sameDay : '[Sot në] LT', 41530 nextDay : '[Nesër në] LT', 41531 nextWeek : 'dddd [në] LT', 41532 lastDay : '[Dje në] LT', 41533 lastWeek : 'dddd [e kaluar në] LT', 41534 sameElse : 'L' 41535 }, 41536 relativeTime : { 41537 future : 'në %s', 41538 past : '%s më parë', 41539 s : 'disa sekonda', 41540 ss : '%d sekonda', 41541 m : 'një minutë', 41542 mm : '%d minuta', 41543 h : 'një orë', 41544 hh : '%d orë', 41545 d : 'një ditë', 41546 dd : '%d ditë', 41547 M : 'një muaj', 41548 MM : '%d muaj', 41549 y : 'një vit', 41550 yy : '%d vite' 41551 }, 41552 dayOfMonthOrdinalParse: /\d{1,2}\./, 41553 ordinal : '%d.', 41554 week : { 41555 dow : 1, // Monday is the first day of the week. 41556 doy : 4 // The week that contains Jan 4th is the first week of the year. 41557 } 41558 }); 41559 41560 return sq; 41561 41562}))); 41563 41564 41565/***/ }), 41566/* 315 */ 41567/***/ (function(module, exports, __webpack_require__) { 41568 41569//! moment.js locale configuration 41570 41571;(function (global, factory) { 41572 true ? factory(__webpack_require__(1)) : 41573 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 41574 factory(global.moment) 41575}(this, (function (moment) { 'use strict'; 41576 41577 41578 var translator = { 41579 words: { //Different grammatical cases 41580 ss: ['sekunda', 'sekunde', 'sekundi'], 41581 m: ['jedan minut', 'jedne minute'], 41582 mm: ['minut', 'minute', 'minuta'], 41583 h: ['jedan sat', 'jednog sata'], 41584 hh: ['sat', 'sata', 'sati'], 41585 dd: ['dan', 'dana', 'dana'], 41586 MM: ['mesec', 'meseca', 'meseci'], 41587 yy: ['godina', 'godine', 'godina'] 41588 }, 41589 correctGrammaticalCase: function (number, wordKey) { 41590 return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]); 41591 }, 41592 translate: function (number, withoutSuffix, key) { 41593 var wordKey = translator.words[key]; 41594 if (key.length === 1) { 41595 return withoutSuffix ? wordKey[0] : wordKey[1]; 41596 } else { 41597 return number + ' ' + translator.correctGrammaticalCase(number, wordKey); 41598 } 41599 } 41600 }; 41601 41602 var sr = moment.defineLocale('sr', { 41603 months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'), 41604 monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'), 41605 monthsParseExact: true, 41606 weekdays: 'nedelja_ponedeljak_utorak_sreda_Äetvrtak_petak_subota'.split('_'), 41607 weekdaysShort: 'ned._pon._uto._sre._Äet._pet._sub.'.split('_'), 41608 weekdaysMin: 'ne_po_ut_sr_Äe_pe_su'.split('_'), 41609 weekdaysParseExact : true, 41610 longDateFormat: { 41611 LT: 'H:mm', 41612 LTS : 'H:mm:ss', 41613 L: 'DD.MM.YYYY', 41614 LL: 'D. MMMM YYYY', 41615 LLL: 'D. MMMM YYYY H:mm', 41616 LLLL: 'dddd, D. MMMM YYYY H:mm' 41617 }, 41618 calendar: { 41619 sameDay: '[danas u] LT', 41620 nextDay: '[sutra u] LT', 41621 nextWeek: function () { 41622 switch (this.day()) { 41623 case 0: 41624 return '[u] [nedelju] [u] LT'; 41625 case 3: 41626 return '[u] [sredu] [u] LT'; 41627 case 6: 41628 return '[u] [subotu] [u] LT'; 41629 case 1: 41630 case 2: 41631 case 4: 41632 case 5: 41633 return '[u] dddd [u] LT'; 41634 } 41635 }, 41636 lastDay : '[juÄe u] LT', 41637 lastWeek : function () { 41638 var lastWeekDays = [ 41639 '[proÅ¡le] [nedelje] [u] LT', 41640 '[proÅ¡log] [ponedeljka] [u] LT', 41641 '[proÅ¡log] [utorka] [u] LT', 41642 '[proÅ¡le] [srede] [u] LT', 41643 '[proÅ¡log] [Äetvrtka] [u] LT', 41644 '[proÅ¡log] [petka] [u] LT', 41645 '[proÅ¡le] [subote] [u] LT' 41646 ]; 41647 return lastWeekDays[this.day()]; 41648 }, 41649 sameElse : 'L' 41650 }, 41651 relativeTime : { 41652 future : 'za %s', 41653 past : 'pre %s', 41654 s : 'nekoliko sekundi', 41655 ss : translator.translate, 41656 m : translator.translate, 41657 mm : translator.translate, 41658 h : translator.translate, 41659 hh : translator.translate, 41660 d : 'dan', 41661 dd : translator.translate, 41662 M : 'mesec', 41663 MM : translator.translate, 41664 y : 'godinu', 41665 yy : translator.translate 41666 }, 41667 dayOfMonthOrdinalParse: /\d{1,2}\./, 41668 ordinal : '%d.', 41669 week : { 41670 dow : 1, // Monday is the first day of the week. 41671 doy : 7 // The week that contains Jan 1st is the first week of the year. 41672 } 41673 }); 41674 41675 return sr; 41676 41677}))); 41678 41679 41680/***/ }), 41681/* 316 */ 41682/***/ (function(module, exports, __webpack_require__) { 41683 41684//! moment.js locale configuration 41685 41686;(function (global, factory) { 41687 true ? factory(__webpack_require__(1)) : 41688 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 41689 factory(global.moment) 41690}(this, (function (moment) { 'use strict'; 41691 41692 41693 var translator = { 41694 words: { //Different grammatical cases 41695 ss: ['ÑекÑнда', 'ÑекÑнде', 'ÑекÑнди'], 41696 m: ['Ñедан минÑÑ', 'Ñедне минÑÑе'], 41697 mm: ['минÑÑ', 'минÑÑе', 'минÑÑа'], 41698 h: ['Ñедан ÑаÑ', 'Ñедног ÑаÑа'], 41699 hh: ['ÑаÑ', 'ÑаÑа', 'ÑаÑи'], 41700 dd: ['дан', 'дана', 'дана'], 41701 MM: ['меÑеÑ', 'меÑеÑа', 'меÑеÑи'], 41702 yy: ['година', 'године', 'година'] 41703 }, 41704 correctGrammaticalCase: function (number, wordKey) { 41705 return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]); 41706 }, 41707 translate: function (number, withoutSuffix, key) { 41708 var wordKey = translator.words[key]; 41709 if (key.length === 1) { 41710 return withoutSuffix ? wordKey[0] : wordKey[1]; 41711 } else { 41712 return number + ' ' + translator.correctGrammaticalCase(number, wordKey); 41713 } 41714 } 41715 }; 41716 41717 var srCyrl = moment.defineLocale('sr-cyrl', { 41718 months: 'ÑанÑаÑ_ÑебÑÑаÑ_маÑÑ_апÑил_маÑ_ÑÑн_ÑÑл_авгÑÑÑ_ÑепÑембаÑ_окÑобаÑ_новембаÑ_деÑембаÑ'.split('_'), 41719 monthsShort: 'Ñан._Ñеб._маÑ._апÑ._маÑ_ÑÑн_ÑÑл_авг._Ñеп._окÑ._нов._деÑ.'.split('_'), 41720 monthsParseExact: true, 41721 weekdays: 'недеÑа_понедеÑак_ÑÑоÑак_ÑÑеда_ÑеÑвÑÑак_пеÑак_ÑÑбоÑа'.split('_'), 41722 weekdaysShort: 'нед._пон._ÑÑо._ÑÑе._ÑеÑ._пеÑ._ÑÑб.'.split('_'), 41723 weekdaysMin: 'не_по_ÑÑ_ÑÑ_Ñе_пе_ÑÑ'.split('_'), 41724 weekdaysParseExact : true, 41725 longDateFormat: { 41726 LT: 'H:mm', 41727 LTS : 'H:mm:ss', 41728 L: 'DD.MM.YYYY', 41729 LL: 'D. MMMM YYYY', 41730 LLL: 'D. MMMM YYYY H:mm', 41731 LLLL: 'dddd, D. MMMM YYYY H:mm' 41732 }, 41733 calendar: { 41734 sameDay: '[Ð´Ð°Ð½Ð°Ñ Ñ] LT', 41735 nextDay: '[ÑÑÑÑа Ñ] LT', 41736 nextWeek: function () { 41737 switch (this.day()) { 41738 case 0: 41739 return '[Ñ] [недеÑÑ] [Ñ] LT'; 41740 case 3: 41741 return '[Ñ] [ÑÑедÑ] [Ñ] LT'; 41742 case 6: 41743 return '[Ñ] [ÑÑбоÑÑ] [Ñ] LT'; 41744 case 1: 41745 case 2: 41746 case 4: 41747 case 5: 41748 return '[Ñ] dddd [Ñ] LT'; 41749 } 41750 }, 41751 lastDay : '[ÑÑÑе Ñ] LT', 41752 lastWeek : function () { 41753 var lastWeekDays = [ 41754 '[пÑоÑле] [недеÑе] [Ñ] LT', 41755 '[пÑоÑлог] [понедеÑка] [Ñ] LT', 41756 '[пÑоÑлог] [ÑÑоÑка] [Ñ] LT', 41757 '[пÑоÑле] [ÑÑеде] [Ñ] LT', 41758 '[пÑоÑлог] [ÑеÑвÑÑка] [Ñ] LT', 41759 '[пÑоÑлог] [пеÑка] [Ñ] LT', 41760 '[пÑоÑле] [ÑÑбоÑе] [Ñ] LT' 41761 ]; 41762 return lastWeekDays[this.day()]; 41763 }, 41764 sameElse : 'L' 41765 }, 41766 relativeTime : { 41767 future : 'за %s', 41768 past : 'пÑе %s', 41769 s : 'неколико ÑекÑнди', 41770 ss : translator.translate, 41771 m : translator.translate, 41772 mm : translator.translate, 41773 h : translator.translate, 41774 hh : translator.translate, 41775 d : 'дан', 41776 dd : translator.translate, 41777 M : 'меÑеÑ', 41778 MM : translator.translate, 41779 y : 'годинÑ', 41780 yy : translator.translate 41781 }, 41782 dayOfMonthOrdinalParse: /\d{1,2}\./, 41783 ordinal : '%d.', 41784 week : { 41785 dow : 1, // Monday is the first day of the week. 41786 doy : 7 // The week that contains Jan 1st is the first week of the year. 41787 } 41788 }); 41789 41790 return srCyrl; 41791 41792}))); 41793 41794 41795/***/ }), 41796/* 317 */ 41797/***/ (function(module, exports, __webpack_require__) { 41798 41799//! moment.js locale configuration 41800 41801;(function (global, factory) { 41802 true ? factory(__webpack_require__(1)) : 41803 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 41804 factory(global.moment) 41805}(this, (function (moment) { 'use strict'; 41806 41807 41808 var ss = moment.defineLocale('ss', { 41809 months : "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'), 41810 monthsShort : 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'), 41811 weekdays : 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'), 41812 weekdaysShort : 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'), 41813 weekdaysMin : 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'), 41814 weekdaysParseExact : true, 41815 longDateFormat : { 41816 LT : 'h:mm A', 41817 LTS : 'h:mm:ss A', 41818 L : 'DD/MM/YYYY', 41819 LL : 'D MMMM YYYY', 41820 LLL : 'D MMMM YYYY h:mm A', 41821 LLLL : 'dddd, D MMMM YYYY h:mm A' 41822 }, 41823 calendar : { 41824 sameDay : '[Namuhla nga] LT', 41825 nextDay : '[Kusasa nga] LT', 41826 nextWeek : 'dddd [nga] LT', 41827 lastDay : '[Itolo nga] LT', 41828 lastWeek : 'dddd [leliphelile] [nga] LT', 41829 sameElse : 'L' 41830 }, 41831 relativeTime : { 41832 future : 'nga %s', 41833 past : 'wenteka nga %s', 41834 s : 'emizuzwana lomcane', 41835 ss : '%d mzuzwana', 41836 m : 'umzuzu', 41837 mm : '%d emizuzu', 41838 h : 'lihora', 41839 hh : '%d emahora', 41840 d : 'lilanga', 41841 dd : '%d emalanga', 41842 M : 'inyanga', 41843 MM : '%d tinyanga', 41844 y : 'umnyaka', 41845 yy : '%d iminyaka' 41846 }, 41847 meridiemParse: /ekuseni|emini|entsambama|ebusuku/, 41848 meridiem : function (hours, minutes, isLower) { 41849 if (hours < 11) { 41850 return 'ekuseni'; 41851 } else if (hours < 15) { 41852 return 'emini'; 41853 } else if (hours < 19) { 41854 return 'entsambama'; 41855 } else { 41856 return 'ebusuku'; 41857 } 41858 }, 41859 meridiemHour : function (hour, meridiem) { 41860 if (hour === 12) { 41861 hour = 0; 41862 } 41863 if (meridiem === 'ekuseni') { 41864 return hour; 41865 } else if (meridiem === 'emini') { 41866 return hour >= 11 ? hour : hour + 12; 41867 } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') { 41868 if (hour === 0) { 41869 return 0; 41870 } 41871 return hour + 12; 41872 } 41873 }, 41874 dayOfMonthOrdinalParse: /\d{1,2}/, 41875 ordinal : '%d', 41876 week : { 41877 dow : 1, // Monday is the first day of the week. 41878 doy : 4 // The week that contains Jan 4th is the first week of the year. 41879 } 41880 }); 41881 41882 return ss; 41883 41884}))); 41885 41886 41887/***/ }), 41888/* 318 */ 41889/***/ (function(module, exports, __webpack_require__) { 41890 41891//! moment.js locale configuration 41892 41893;(function (global, factory) { 41894 true ? factory(__webpack_require__(1)) : 41895 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 41896 factory(global.moment) 41897}(this, (function (moment) { 'use strict'; 41898 41899 41900 var sv = moment.defineLocale('sv', { 41901 months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'), 41902 monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), 41903 weekdays : 'söndag_mÃ¥ndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'), 41904 weekdaysShort : 'sön_mÃ¥n_tis_ons_tor_fre_lör'.split('_'), 41905 weekdaysMin : 'sö_mÃ¥_ti_on_to_fr_lö'.split('_'), 41906 longDateFormat : { 41907 LT : 'HH:mm', 41908 LTS : 'HH:mm:ss', 41909 L : 'YYYY-MM-DD', 41910 LL : 'D MMMM YYYY', 41911 LLL : 'D MMMM YYYY [kl.] HH:mm', 41912 LLLL : 'dddd D MMMM YYYY [kl.] HH:mm', 41913 lll : 'D MMM YYYY HH:mm', 41914 llll : 'ddd D MMM YYYY HH:mm' 41915 }, 41916 calendar : { 41917 sameDay: '[Idag] LT', 41918 nextDay: '[Imorgon] LT', 41919 lastDay: '[IgÃ¥r] LT', 41920 nextWeek: '[PÃ¥] dddd LT', 41921 lastWeek: '[I] dddd[s] LT', 41922 sameElse: 'L' 41923 }, 41924 relativeTime : { 41925 future : 'om %s', 41926 past : 'för %s sedan', 41927 s : 'nÃ¥gra sekunder', 41928 ss : '%d sekunder', 41929 m : 'en minut', 41930 mm : '%d minuter', 41931 h : 'en timme', 41932 hh : '%d timmar', 41933 d : 'en dag', 41934 dd : '%d dagar', 41935 M : 'en mÃ¥nad', 41936 MM : '%d mÃ¥nader', 41937 y : 'ett Ã¥r', 41938 yy : '%d Ã¥r' 41939 }, 41940 dayOfMonthOrdinalParse: /\d{1,2}(e|a)/, 41941 ordinal : function (number) { 41942 var b = number % 10, 41943 output = (~~(number % 100 / 10) === 1) ? 'e' : 41944 (b === 1) ? 'a' : 41945 (b === 2) ? 'a' : 41946 (b === 3) ? 'e' : 'e'; 41947 return number + output; 41948 }, 41949 week : { 41950 dow : 1, // Monday is the first day of the week. 41951 doy : 4 // The week that contains Jan 4th is the first week of the year. 41952 } 41953 }); 41954 41955 return sv; 41956 41957}))); 41958 41959 41960/***/ }), 41961/* 319 */ 41962/***/ (function(module, exports, __webpack_require__) { 41963 41964//! moment.js locale configuration 41965 41966;(function (global, factory) { 41967 true ? factory(__webpack_require__(1)) : 41968 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 41969 factory(global.moment) 41970}(this, (function (moment) { 'use strict'; 41971 41972 41973 var sw = moment.defineLocale('sw', { 41974 months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'), 41975 monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'), 41976 weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'), 41977 weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'), 41978 weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'), 41979 weekdaysParseExact : true, 41980 longDateFormat : { 41981 LT : 'HH:mm', 41982 LTS : 'HH:mm:ss', 41983 L : 'DD.MM.YYYY', 41984 LL : 'D MMMM YYYY', 41985 LLL : 'D MMMM YYYY HH:mm', 41986 LLLL : 'dddd, D MMMM YYYY HH:mm' 41987 }, 41988 calendar : { 41989 sameDay : '[leo saa] LT', 41990 nextDay : '[kesho saa] LT', 41991 nextWeek : '[wiki ijayo] dddd [saat] LT', 41992 lastDay : '[jana] LT', 41993 lastWeek : '[wiki iliyopita] dddd [saat] LT', 41994 sameElse : 'L' 41995 }, 41996 relativeTime : { 41997 future : '%s baadaye', 41998 past : 'tokea %s', 41999 s : 'hivi punde', 42000 ss : 'sekunde %d', 42001 m : 'dakika moja', 42002 mm : 'dakika %d', 42003 h : 'saa limoja', 42004 hh : 'masaa %d', 42005 d : 'siku moja', 42006 dd : 'masiku %d', 42007 M : 'mwezi mmoja', 42008 MM : 'miezi %d', 42009 y : 'mwaka mmoja', 42010 yy : 'miaka %d' 42011 }, 42012 week : { 42013 dow : 1, // Monday is the first day of the week. 42014 doy : 7 // The week that contains Jan 1st is the first week of the year. 42015 } 42016 }); 42017 42018 return sw; 42019 42020}))); 42021 42022 42023/***/ }), 42024/* 320 */ 42025/***/ (function(module, exports, __webpack_require__) { 42026 42027//! moment.js locale configuration 42028 42029;(function (global, factory) { 42030 true ? factory(__webpack_require__(1)) : 42031 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 42032 factory(global.moment) 42033}(this, (function (moment) { 'use strict'; 42034 42035 42036 var symbolMap = { 42037 '1': '௧', 42038 '2': '௨', 42039 '3': '௩', 42040 '4': '௪', 42041 '5': '௫', 42042 '6': '௬', 42043 '7': 'à¯', 42044 '8': '௮', 42045 '9': '௯', 42046 '0': '௦' 42047 }, numberMap = { 42048 '௧': '1', 42049 '௨': '2', 42050 '௩': '3', 42051 '௪': '4', 42052 '௫': '5', 42053 '௬': '6', 42054 'à¯': '7', 42055 '௮': '8', 42056 '௯': '9', 42057 '௦': '0' 42058 }; 42059 42060 var ta = moment.defineLocale('ta', { 42061 months : 'à®à®©à®µà®°à®¿_பிபà¯à®°à®µà®°à®¿_மாரà¯à®à¯_à®à®ªà¯à®°à®²à¯_à®®à¯_à®à¯à®©à¯_à®à¯à®²à¯_à®à®à®¸à¯à®à¯_à®à¯à®ªà¯à®à¯à®®à¯à®ªà®°à¯_à® à®à¯à®à¯à®¾à®ªà®°à¯_நவமà¯à®ªà®°à¯_à®à®¿à®à®®à¯à®ªà®°à¯'.split('_'), 42062 monthsShort : 'à®à®©à®µà®°à®¿_பிபà¯à®°à®µà®°à®¿_மாரà¯à®à¯_à®à®ªà¯à®°à®²à¯_à®®à¯_à®à¯à®©à¯_à®à¯à®²à¯_à®à®à®¸à¯à®à¯_à®à¯à®ªà¯à®à¯à®®à¯à®ªà®°à¯_à® à®à¯à®à¯à®¾à®ªà®°à¯_நவமà¯à®ªà®°à¯_à®à®¿à®à®®à¯à®ªà®°à¯'.split('_'), 42063 weekdays : 'à®à®¾à®¯à®¿à®±à¯à®±à¯à®à¯à®à®¿à®´à®®à¯_திà®à¯à®à®à¯à®à®¿à®´à®®à¯_à®à¯à®µà¯à®µà®¾à®¯à¯à®à®¿à®´à®®à¯_பà¯à®¤à®©à¯à®à®¿à®´à®®à¯_வியாழà®à¯à®à®¿à®´à®®à¯_வà¯à®³à¯à®³à®¿à®à¯à®à®¿à®´à®®à¯_à®à®©à®¿à®à¯à®à®¿à®´à®®à¯'.split('_'), 42064 weekdaysShort : 'à®à®¾à®¯à®¿à®±à¯_திà®à¯à®à®³à¯_à®à¯à®µà¯à®µà®¾à®¯à¯_பà¯à®¤à®©à¯_வியாழனà¯_வà¯à®³à¯à®³à®¿_à®à®©à®¿'.split('_'), 42065 weekdaysMin : 'à®à®¾_தி_à®à¯_பà¯_வி_வà¯_à®'.split('_'), 42066 longDateFormat : { 42067 LT : 'HH:mm', 42068 LTS : 'HH:mm:ss', 42069 L : 'DD/MM/YYYY', 42070 LL : 'D MMMM YYYY', 42071 LLL : 'D MMMM YYYY, HH:mm', 42072 LLLL : 'dddd, D MMMM YYYY, HH:mm' 42073 }, 42074 calendar : { 42075 sameDay : '[à®à®©à¯à®±à¯] LT', 42076 nextDay : '[நாளà¯] LT', 42077 nextWeek : 'dddd, LT', 42078 lastDay : '[நà¯à®±à¯à®±à¯] LT', 42079 lastWeek : '[à®à®à®¨à¯à®¤ வாரமà¯] dddd, LT', 42080 sameElse : 'L' 42081 }, 42082 relativeTime : { 42083 future : '%s à®à®²à¯', 42084 past : '%s à®®à¯à®©à¯', 42085 s : 'à®à®°à¯ à®à®¿à®² விநாà®à®¿à®à®³à¯', 42086 ss : '%d விநாà®à®¿à®à®³à¯', 42087 m : 'à®à®°à¯ நிமிà®à®®à¯', 42088 mm : '%d நிமிà®à®à¯à®à®³à¯', 42089 h : 'à®à®°à¯ மணி நà¯à®°à®®à¯', 42090 hh : '%d மணி நà¯à®°à®®à¯', 42091 d : 'à®à®°à¯ நாளà¯', 42092 dd : '%d நாà®à¯à®à®³à¯', 42093 M : 'à®à®°à¯ மாதமà¯', 42094 MM : '%d மாதà®à¯à®à®³à¯', 42095 y : 'à®à®°à¯ வரà¯à®à®®à¯', 42096 yy : '%d à®à®£à¯à®à¯à®à®³à¯' 42097 }, 42098 dayOfMonthOrdinalParse: /\d{1,2}வதà¯/, 42099 ordinal : function (number) { 42100 return number + 'வதà¯'; 42101 }, 42102 preparse: function (string) { 42103 return string.replace(/[௧௨௩௪௫௬à¯à¯®à¯¯à¯¦]/g, function (match) { 42104 return numberMap[match]; 42105 }); 42106 }, 42107 postformat: function (string) { 42108 return string.replace(/\d/g, function (match) { 42109 return symbolMap[match]; 42110 }); 42111 }, 42112 // refer http://ta.wikipedia.org/s/1er1 42113 meridiemParse: /யாமமà¯|வà¯à®à®±à¯|à®à®¾à®²à¯|நணà¯à®ªà®à®²à¯|à®à®±à¯à®ªà®¾à®à¯|மாலà¯/, 42114 meridiem : function (hour, minute, isLower) { 42115 if (hour < 2) { 42116 return ' யாமமà¯'; 42117 } else if (hour < 6) { 42118 return ' வà¯à®à®±à¯'; // வà¯à®à®±à¯ 42119 } else if (hour < 10) { 42120 return ' à®à®¾à®²à¯'; // à®à®¾à®²à¯ 42121 } else if (hour < 14) { 42122 return ' நணà¯à®ªà®à®²à¯'; // நணà¯à®ªà®à®²à¯ 42123 } else if (hour < 18) { 42124 return ' à®à®±à¯à®ªà®¾à®à¯'; // à®à®±à¯à®ªà®¾à®à¯ 42125 } else if (hour < 22) { 42126 return ' மாலà¯'; // மால௠42127 } else { 42128 return ' யாமமà¯'; 42129 } 42130 }, 42131 meridiemHour : function (hour, meridiem) { 42132 if (hour === 12) { 42133 hour = 0; 42134 } 42135 if (meridiem === 'யாமமà¯') { 42136 return hour < 2 ? hour : hour + 12; 42137 } else if (meridiem === 'வà¯à®à®±à¯' || meridiem === 'à®à®¾à®²à¯') { 42138 return hour; 42139 } else if (meridiem === 'நணà¯à®ªà®à®²à¯') { 42140 return hour >= 10 ? hour : hour + 12; 42141 } else { 42142 return hour + 12; 42143 } 42144 }, 42145 week : { 42146 dow : 0, // Sunday is the first day of the week. 42147 doy : 6 // The week that contains Jan 1st is the first week of the year. 42148 } 42149 }); 42150 42151 return ta; 42152 42153}))); 42154 42155 42156/***/ }), 42157/* 321 */ 42158/***/ (function(module, exports, __webpack_require__) { 42159 42160//! moment.js locale configuration 42161 42162;(function (global, factory) { 42163 true ? factory(__webpack_require__(1)) : 42164 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 42165 factory(global.moment) 42166}(this, (function (moment) { 'use strict'; 42167 42168 42169 var te = moment.defineLocale('te', { 42170 months : 'à°à°¨à°µà°°à°¿_à°«à°¿à°¬à±à°°à°µà°°à°¿_మారà±à°à°¿_à°à°ªà±à°°à°¿à°²à±_à°®à±_à°à±à°¨à±_à°à±à°²à±à±_à°à°à°¸à±à°à±_à°¸à±à°ªà±à°à±à°à°¬à°°à±_à° à°à±à°à±à°¬à°°à±_నవà°à°¬à°°à±_à°¡à°¿à°¸à±à°à°¬à°°à±'.split('_'), 42171 monthsShort : 'à°à°¨._à°«à°¿à°¬à±à°°._మారà±à°à°¿_à°à°ªà±à°°à°¿._à°®à±_à°à±à°¨à±_à°à±à°²à±à±_à°à°._à°¸à±à°ªà±._à° à°à±à°à±._నవ._à°¡à°¿à°¸à±.'.split('_'), 42172 monthsParseExact : true, 42173 weekdays : 'à°à°¦à°¿à°µà°¾à°°à°_à°¸à±à°®à°µà°¾à°°à°_à°®à°à°à°³à°µà°¾à°°à°_à°¬à±à°§à°µà°¾à°°à°_à°à±à°°à±à°µà°¾à°°à°_à°¶à±à°à±à°°à°µà°¾à°°à°_శనివారà°'.split('_'), 42174 weekdaysShort : 'à°à°¦à°¿_à°¸à±à°®_à°®à°à°à°³_à°¬à±à°§_à°à±à°°à±_à°¶à±à°à±à°°_శని'.split('_'), 42175 weekdaysMin : 'à°_à°¸à±_à°®à°_à°¬à±_à°à±_à°¶à±_à°¶'.split('_'), 42176 longDateFormat : { 42177 LT : 'A h:mm', 42178 LTS : 'A h:mm:ss', 42179 L : 'DD/MM/YYYY', 42180 LL : 'D MMMM YYYY', 42181 LLL : 'D MMMM YYYY, A h:mm', 42182 LLLL : 'dddd, D MMMM YYYY, A h:mm' 42183 }, 42184 calendar : { 42185 sameDay : '[à°¨à±à°¡à±] LT', 42186 nextDay : '[à°°à±à°ªà±] LT', 42187 nextWeek : 'dddd, LT', 42188 lastDay : '[నినà±à°¨] LT', 42189 lastWeek : '[à°à°¤] dddd, LT', 42190 sameElse : 'L' 42191 }, 42192 relativeTime : { 42193 future : '%s à°²à±', 42194 past : '%s à°à±à°°à°¿à°¤à°', 42195 s : 'à°à±à°¨à±à°¨à°¿ à°à±à°·à°£à°¾à°²à±', 42196 ss : '%d à°¸à±à°à°¨à±à°²à±', 42197 m : 'à°à° నిమిషà°', 42198 mm : '%d నిమిషాలà±', 42199 h : 'à°à° à°à°à°', 42200 hh : '%d à°à°à°à°²à±', 42201 d : 'à°à° à°°à±à°à±', 42202 dd : '%d à°°à±à°à±à°²à±', 42203 M : 'à°à° à°¨à±à°²', 42204 MM : '%d à°¨à±à°²à°²à±', 42205 y : 'à°à° à°¸à°à°µà°¤à±à°¸à°°à°', 42206 yy : '%d à°¸à°à°µà°¤à±à°¸à°°à°¾à°²à±' 42207 }, 42208 dayOfMonthOrdinalParse : /\d{1,2}à°µ/, 42209 ordinal : '%dà°µ', 42210 meridiemParse: /రాతà±à°°à°¿|à°à°¦à°¯à°|మధà±à°¯à°¾à°¹à±à°¨à°|సాయà°à°¤à±à°°à°/, 42211 meridiemHour : function (hour, meridiem) { 42212 if (hour === 12) { 42213 hour = 0; 42214 } 42215 if (meridiem === 'రాతà±à°°à°¿') { 42216 return hour < 4 ? hour : hour + 12; 42217 } else if (meridiem === 'à°à°¦à°¯à°') { 42218 return hour; 42219 } else if (meridiem === 'మధà±à°¯à°¾à°¹à±à°¨à°') { 42220 return hour >= 10 ? hour : hour + 12; 42221 } else if (meridiem === 'సాయà°à°¤à±à°°à°') { 42222 return hour + 12; 42223 } 42224 }, 42225 meridiem : function (hour, minute, isLower) { 42226 if (hour < 4) { 42227 return 'రాతà±à°°à°¿'; 42228 } else if (hour < 10) { 42229 return 'à°à°¦à°¯à°'; 42230 } else if (hour < 17) { 42231 return 'మధà±à°¯à°¾à°¹à±à°¨à°'; 42232 } else if (hour < 20) { 42233 return 'సాయà°à°¤à±à°°à°'; 42234 } else { 42235 return 'రాతà±à°°à°¿'; 42236 } 42237 }, 42238 week : { 42239 dow : 0, // Sunday is the first day of the week. 42240 doy : 6 // The week that contains Jan 1st is the first week of the year. 42241 } 42242 }); 42243 42244 return te; 42245 42246}))); 42247 42248 42249/***/ }), 42250/* 322 */ 42251/***/ (function(module, exports, __webpack_require__) { 42252 42253//! moment.js locale configuration 42254 42255;(function (global, factory) { 42256 true ? factory(__webpack_require__(1)) : 42257 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 42258 factory(global.moment) 42259}(this, (function (moment) { 'use strict'; 42260 42261 42262 var tet = moment.defineLocale('tet', { 42263 months : 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split('_'), 42264 monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'), 42265 weekdays : 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'), 42266 weekdaysShort : 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'), 42267 weekdaysMin : 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'), 42268 longDateFormat : { 42269 LT : 'HH:mm', 42270 LTS : 'HH:mm:ss', 42271 L : 'DD/MM/YYYY', 42272 LL : 'D MMMM YYYY', 42273 LLL : 'D MMMM YYYY HH:mm', 42274 LLLL : 'dddd, D MMMM YYYY HH:mm' 42275 }, 42276 calendar : { 42277 sameDay: '[Ohin iha] LT', 42278 nextDay: '[Aban iha] LT', 42279 nextWeek: 'dddd [iha] LT', 42280 lastDay: '[Horiseik iha] LT', 42281 lastWeek: 'dddd [semana kotuk] [iha] LT', 42282 sameElse: 'L' 42283 }, 42284 relativeTime : { 42285 future : 'iha %s', 42286 past : '%s liuba', 42287 s : 'minutu balun', 42288 ss : 'minutu %d', 42289 m : 'minutu ida', 42290 mm : 'minutu %d', 42291 h : 'oras ida', 42292 hh : 'oras %d', 42293 d : 'loron ida', 42294 dd : 'loron %d', 42295 M : 'fulan ida', 42296 MM : 'fulan %d', 42297 y : 'tinan ida', 42298 yy : 'tinan %d' 42299 }, 42300 dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, 42301 ordinal : function (number) { 42302 var b = number % 10, 42303 output = (~~(number % 100 / 10) === 1) ? 'th' : 42304 (b === 1) ? 'st' : 42305 (b === 2) ? 'nd' : 42306 (b === 3) ? 'rd' : 'th'; 42307 return number + output; 42308 }, 42309 week : { 42310 dow : 1, // Monday is the first day of the week. 42311 doy : 4 // The week that contains Jan 4th is the first week of the year. 42312 } 42313 }); 42314 42315 return tet; 42316 42317}))); 42318 42319 42320/***/ }), 42321/* 323 */ 42322/***/ (function(module, exports, __webpack_require__) { 42323 42324//! moment.js locale configuration 42325 42326;(function (global, factory) { 42327 true ? factory(__webpack_require__(1)) : 42328 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 42329 factory(global.moment) 42330}(this, (function (moment) { 'use strict'; 42331 42332 42333 var suffixes = { 42334 0: '-Ñм', 42335 1: '-Ñм', 42336 2: '-Ñм', 42337 3: '-Ñм', 42338 4: '-Ñм', 42339 5: '-Ñм', 42340 6: '-Ñм', 42341 7: '-Ñм', 42342 8: '-Ñм', 42343 9: '-Ñм', 42344 10: '-Ñм', 42345 12: '-Ñм', 42346 13: '-Ñм', 42347 20: '-Ñм', 42348 30: '-Ñм', 42349 40: '-Ñм', 42350 50: '-Ñм', 42351 60: '-Ñм', 42352 70: '-Ñм', 42353 80: '-Ñм', 42354 90: '-Ñм', 42355 100: '-Ñм' 42356 }; 42357 42358 var tg = moment.defineLocale('tg', { 42359 months : 'ÑнваÑ_ÑевÑал_маÑÑ_апÑел_май_иÑн_иÑл_авгÑÑÑ_ÑенÑÑбÑ_окÑÑбÑ_ноÑбÑ_декабÑ'.split('_'), 42360 monthsShort : 'Ñнв_Ñев_маÑ_апÑ_май_иÑн_иÑл_авг_Ñен_окÑ_ноÑ_дек'.split('_'), 42361 weekdays : 'ÑкÑанбе_дÑÑанбе_ÑеÑанбе_ÑоÑÑанбе_панҷÑанбе_Ò·ÑмÑа_Ñанбе'.split('_'), 42362 weekdaysShort : 'ÑÑб_дÑб_ÑÑб_ÑÑб_пÑб_Ò·Ñм_Ñнб'.split('_'), 42363 weekdaysMin : 'ÑÑ_дÑ_ÑÑ_ÑÑ_пÑ_ҷм_Ñб'.split('_'), 42364 longDateFormat : { 42365 LT : 'HH:mm', 42366 LTS : 'HH:mm:ss', 42367 L : 'DD/MM/YYYY', 42368 LL : 'D MMMM YYYY', 42369 LLL : 'D MMMM YYYY HH:mm', 42370 LLLL : 'dddd, D MMMM YYYY HH:mm' 42371 }, 42372 calendar : { 42373 sameDay : '[ÐмÑӯз ÑоаÑи] LT', 42374 nextDay : '[Ðагоҳ ÑоаÑи] LT', 42375 lastDay : '[ÐиÑӯз ÑоаÑи] LT', 42376 nextWeek : 'dddd[и] [ҳаÑÑаи оÑнда ÑоаÑи] LT', 42377 lastWeek : 'dddd[и] [ҳаÑÑаи гÑзаÑÑа ÑоаÑи] LT', 42378 sameElse : 'L' 42379 }, 42380 relativeTime : { 42381 future : 'баÑди %s', 42382 past : '%s пеÑ', 42383 s : 'ÑкÑанд ÑониÑ', 42384 m : 'Ñк даÒиÒа', 42385 mm : '%d даÒиÒа', 42386 h : 'Ñк ÑоаÑ', 42387 hh : '%d ÑоаÑ', 42388 d : 'Ñк Ñӯз', 42389 dd : '%d Ñӯз', 42390 M : 'Ñк моҳ', 42391 MM : '%d моҳ', 42392 y : 'Ñк Ñол', 42393 yy : '%d Ñол' 42394 }, 42395 meridiemParse: /Ñаб|ÑÑбҳ|Ñӯз|бегоҳ/, 42396 meridiemHour: function (hour, meridiem) { 42397 if (hour === 12) { 42398 hour = 0; 42399 } 42400 if (meridiem === 'Ñаб') { 42401 return hour < 4 ? hour : hour + 12; 42402 } else if (meridiem === 'ÑÑбҳ') { 42403 return hour; 42404 } else if (meridiem === 'Ñӯз') { 42405 return hour >= 11 ? hour : hour + 12; 42406 } else if (meridiem === 'бегоҳ') { 42407 return hour + 12; 42408 } 42409 }, 42410 meridiem: function (hour, minute, isLower) { 42411 if (hour < 4) { 42412 return 'Ñаб'; 42413 } else if (hour < 11) { 42414 return 'ÑÑбҳ'; 42415 } else if (hour < 16) { 42416 return 'Ñӯз'; 42417 } else if (hour < 19) { 42418 return 'бегоҳ'; 42419 } else { 42420 return 'Ñаб'; 42421 } 42422 }, 42423 dayOfMonthOrdinalParse: /\d{1,2}-(Ñм|Ñм)/, 42424 ordinal: function (number) { 42425 var a = number % 10, 42426 b = number >= 100 ? 100 : null; 42427 return number + (suffixes[number] || suffixes[a] || suffixes[b]); 42428 }, 42429 week : { 42430 dow : 1, // Monday is the first day of the week. 42431 doy : 7 // The week that contains Jan 1th is the first week of the year. 42432 } 42433 }); 42434 42435 return tg; 42436 42437}))); 42438 42439 42440/***/ }), 42441/* 324 */ 42442/***/ (function(module, exports, __webpack_require__) { 42443 42444//! moment.js locale configuration 42445 42446;(function (global, factory) { 42447 true ? factory(__webpack_require__(1)) : 42448 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 42449 factory(global.moment) 42450}(this, (function (moment) { 'use strict'; 42451 42452 42453 var th = moment.defineLocale('th', { 42454 months : 'มà¸à¸£à¸²à¸à¸¡_à¸à¸¸à¸¡à¸ าà¸à¸±à¸à¸à¹_มีà¸à¸²à¸à¸¡_à¹à¸¡à¸©à¸²à¸¢à¸_à¸à¸¤à¸©à¸ าà¸à¸¡_มิà¸à¸¸à¸à¸²à¸¢à¸_à¸à¸£à¸à¸à¸²à¸à¸¡_สิà¸à¸«à¸²à¸à¸¡_à¸à¸±à¸à¸¢à¸²à¸¢à¸_à¸à¸¸à¸¥à¸²à¸à¸¡_à¸à¸¤à¸¨à¸à¸´à¸à¸²à¸¢à¸_à¸à¸±à¸à¸§à¸²à¸à¸¡'.split('_'), 42455 monthsShort : 'ม.à¸._à¸.à¸._มี.à¸._à¹à¸¡.ย._à¸.à¸._มิ.ย._à¸.à¸._ส.à¸._à¸.ย._à¸.à¸._à¸.ย._à¸.à¸.'.split('_'), 42456 monthsParseExact: true, 42457 weekdays : 'à¸à¸²à¸à¸´à¸à¸¢à¹_à¸à¸±à¸à¸à¸£à¹_à¸à¸±à¸à¸à¸²à¸£_à¸à¸¸à¸_à¸à¸¤à¸«à¸±à¸ªà¸à¸à¸µ_ศุà¸à¸£à¹_à¹à¸ªà¸²à¸£à¹'.split('_'), 42458 weekdaysShort : 'à¸à¸²à¸à¸´à¸à¸¢à¹_à¸à¸±à¸à¸à¸£à¹_à¸à¸±à¸à¸à¸²à¸£_à¸à¸¸à¸_à¸à¸¤à¸«à¸±à¸ª_ศุà¸à¸£à¹_à¹à¸ªà¸²à¸£à¹'.split('_'), // yes, three characters difference 42459 weekdaysMin : 'à¸à¸²._à¸._à¸._à¸._à¸à¸¤._ศ._ส.'.split('_'), 42460 weekdaysParseExact : true, 42461 longDateFormat : { 42462 LT : 'H:mm', 42463 LTS : 'H:mm:ss', 42464 L : 'DD/MM/YYYY', 42465 LL : 'D MMMM YYYY', 42466 LLL : 'D MMMM YYYY à¹à¸§à¸¥à¸² H:mm', 42467 LLLL : 'วัà¸ddddà¸à¸µà¹ D MMMM YYYY à¹à¸§à¸¥à¸² H:mm' 42468 }, 42469 meridiemParse: /à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸|หลัà¸à¹à¸à¸µà¹à¸¢à¸/, 42470 isPM: function (input) { 42471 return input === 'หลัà¸à¹à¸à¸µà¹à¸¢à¸'; 42472 }, 42473 meridiem : function (hour, minute, isLower) { 42474 if (hour < 12) { 42475 return 'à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸'; 42476 } else { 42477 return 'หลัà¸à¹à¸à¸µà¹à¸¢à¸'; 42478 } 42479 }, 42480 calendar : { 42481 sameDay : '[วัà¸à¸à¸µà¹ à¹à¸§à¸¥à¸²] LT', 42482 nextDay : '[à¸à¸£à¸¸à¹à¸à¸à¸µà¹ à¹à¸§à¸¥à¸²] LT', 42483 nextWeek : 'dddd[หà¸à¹à¸² à¹à¸§à¸¥à¸²] LT', 42484 lastDay : '[à¹à¸¡à¸·à¹à¸à¸§à¸²à¸à¸à¸µà¹ à¹à¸§à¸¥à¸²] LT', 42485 lastWeek : '[วัà¸]dddd[à¸à¸µà¹à¹à¸¥à¹à¸§ à¹à¸§à¸¥à¸²] LT', 42486 sameElse : 'L' 42487 }, 42488 relativeTime : { 42489 future : 'à¸à¸µà¸ %s', 42490 past : '%sà¸à¸µà¹à¹à¸¥à¹à¸§', 42491 s : 'à¹à¸¡à¹à¸à¸µà¹à¸§à¸´à¸à¸²à¸à¸µ', 42492 ss : '%d วิà¸à¸²à¸à¸µ', 42493 m : '1 à¸à¸²à¸à¸µ', 42494 mm : '%d à¸à¸²à¸à¸µ', 42495 h : '1 à¸à¸±à¹à¸§à¹à¸¡à¸', 42496 hh : '%d à¸à¸±à¹à¸§à¹à¸¡à¸', 42497 d : '1 วัà¸', 42498 dd : '%d วัà¸', 42499 M : '1 à¹à¸à¸·à¸à¸', 42500 MM : '%d à¹à¸à¸·à¸à¸', 42501 y : '1 à¸à¸µ', 42502 yy : '%d à¸à¸µ' 42503 } 42504 }); 42505 42506 return th; 42507 42508}))); 42509 42510 42511/***/ }), 42512/* 325 */ 42513/***/ (function(module, exports, __webpack_require__) { 42514 42515//! moment.js locale configuration 42516 42517;(function (global, factory) { 42518 true ? factory(__webpack_require__(1)) : 42519 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 42520 factory(global.moment) 42521}(this, (function (moment) { 'use strict'; 42522 42523 42524 var tlPh = moment.defineLocale('tl-ph', { 42525 months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'), 42526 monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), 42527 weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'), 42528 weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), 42529 weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), 42530 longDateFormat : { 42531 LT : 'HH:mm', 42532 LTS : 'HH:mm:ss', 42533 L : 'MM/D/YYYY', 42534 LL : 'MMMM D, YYYY', 42535 LLL : 'MMMM D, YYYY HH:mm', 42536 LLLL : 'dddd, MMMM DD, YYYY HH:mm' 42537 }, 42538 calendar : { 42539 sameDay: 'LT [ngayong araw]', 42540 nextDay: '[Bukas ng] LT', 42541 nextWeek: 'LT [sa susunod na] dddd', 42542 lastDay: 'LT [kahapon]', 42543 lastWeek: 'LT [noong nakaraang] dddd', 42544 sameElse: 'L' 42545 }, 42546 relativeTime : { 42547 future : 'sa loob ng %s', 42548 past : '%s ang nakalipas', 42549 s : 'ilang segundo', 42550 ss : '%d segundo', 42551 m : 'isang minuto', 42552 mm : '%d minuto', 42553 h : 'isang oras', 42554 hh : '%d oras', 42555 d : 'isang araw', 42556 dd : '%d araw', 42557 M : 'isang buwan', 42558 MM : '%d buwan', 42559 y : 'isang taon', 42560 yy : '%d taon' 42561 }, 42562 dayOfMonthOrdinalParse: /\d{1,2}/, 42563 ordinal : function (number) { 42564 return number; 42565 }, 42566 week : { 42567 dow : 1, // Monday is the first day of the week. 42568 doy : 4 // The week that contains Jan 4th is the first week of the year. 42569 } 42570 }); 42571 42572 return tlPh; 42573 42574}))); 42575 42576 42577/***/ }), 42578/* 326 */ 42579/***/ (function(module, exports, __webpack_require__) { 42580 42581//! moment.js locale configuration 42582 42583;(function (global, factory) { 42584 true ? factory(__webpack_require__(1)) : 42585 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 42586 factory(global.moment) 42587}(this, (function (moment) { 'use strict'; 42588 42589 42590 var numbersNouns = 'pagh_waâ_chaâ_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_'); 42591 42592 function translateFuture(output) { 42593 var time = output; 42594 time = (output.indexOf('jaj') !== -1) ? 42595 time.slice(0, -3) + 'leS' : 42596 (output.indexOf('jar') !== -1) ? 42597 time.slice(0, -3) + 'waQ' : 42598 (output.indexOf('DIS') !== -1) ? 42599 time.slice(0, -3) + 'nem' : 42600 time + ' pIq'; 42601 return time; 42602 } 42603 42604 function translatePast(output) { 42605 var time = output; 42606 time = (output.indexOf('jaj') !== -1) ? 42607 time.slice(0, -3) + 'Huâ' : 42608 (output.indexOf('jar') !== -1) ? 42609 time.slice(0, -3) + 'wen' : 42610 (output.indexOf('DIS') !== -1) ? 42611 time.slice(0, -3) + 'ben' : 42612 time + ' ret'; 42613 return time; 42614 } 42615 42616 function translate(number, withoutSuffix, string, isFuture) { 42617 var numberNoun = numberAsNoun(number); 42618 switch (string) { 42619 case 'ss': 42620 return numberNoun + ' lup'; 42621 case 'mm': 42622 return numberNoun + ' tup'; 42623 case 'hh': 42624 return numberNoun + ' rep'; 42625 case 'dd': 42626 return numberNoun + ' jaj'; 42627 case 'MM': 42628 return numberNoun + ' jar'; 42629 case 'yy': 42630 return numberNoun + ' DIS'; 42631 } 42632 } 42633 42634 function numberAsNoun(number) { 42635 var hundred = Math.floor((number % 1000) / 100), 42636 ten = Math.floor((number % 100) / 10), 42637 one = number % 10, 42638 word = ''; 42639 if (hundred > 0) { 42640 word += numbersNouns[hundred] + 'vatlh'; 42641 } 42642 if (ten > 0) { 42643 word += ((word !== '') ? ' ' : '') + numbersNouns[ten] + 'maH'; 42644 } 42645 if (one > 0) { 42646 word += ((word !== '') ? ' ' : '') + numbersNouns[one]; 42647 } 42648 return (word === '') ? 'pagh' : word; 42649 } 42650 42651 var tlh = moment.defineLocale('tlh', { 42652 months : 'teraâ jar waâ_teraâ jar chaâ_teraâ jar wej_teraâ jar loS_teraâ jar vagh_teraâ jar jav_teraâ jar Soch_teraâ jar chorgh_teraâ jar Hut_teraâ jar waâmaH_teraâ jar waâmaH waâ_teraâ jar waâmaH chaâ'.split('_'), 42653 monthsShort : 'jar waâ_jar chaâ_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar waâmaH_jar waâmaH waâ_jar waâmaH chaâ'.split('_'), 42654 monthsParseExact : true, 42655 weekdays : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), 42656 weekdaysShort : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), 42657 weekdaysMin : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), 42658 longDateFormat : { 42659 LT : 'HH:mm', 42660 LTS : 'HH:mm:ss', 42661 L : 'DD.MM.YYYY', 42662 LL : 'D MMMM YYYY', 42663 LLL : 'D MMMM YYYY HH:mm', 42664 LLLL : 'dddd, D MMMM YYYY HH:mm' 42665 }, 42666 calendar : { 42667 sameDay: '[DaHjaj] LT', 42668 nextDay: '[waâleS] LT', 42669 nextWeek: 'LLL', 42670 lastDay: '[waâHuâ] LT', 42671 lastWeek: 'LLL', 42672 sameElse: 'L' 42673 }, 42674 relativeTime : { 42675 future : translateFuture, 42676 past : translatePast, 42677 s : 'puS lup', 42678 ss : translate, 42679 m : 'waâ tup', 42680 mm : translate, 42681 h : 'waâ rep', 42682 hh : translate, 42683 d : 'waâ jaj', 42684 dd : translate, 42685 M : 'waâ jar', 42686 MM : translate, 42687 y : 'waâ DIS', 42688 yy : translate 42689 }, 42690 dayOfMonthOrdinalParse: /\d{1,2}\./, 42691 ordinal : '%d.', 42692 week : { 42693 dow : 1, // Monday is the first day of the week. 42694 doy : 4 // The week that contains Jan 4th is the first week of the year. 42695 } 42696 }); 42697 42698 return tlh; 42699 42700}))); 42701 42702 42703/***/ }), 42704/* 327 */ 42705/***/ (function(module, exports, __webpack_require__) { 42706 42707 42708;(function (global, factory) { 42709 true ? factory(__webpack_require__(1)) : 42710 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 42711 factory(global.moment) 42712}(this, (function (moment) { 'use strict'; 42713 42714 var suffixes = { 42715 1: '\'inci', 42716 5: '\'inci', 42717 8: '\'inci', 42718 70: '\'inci', 42719 80: '\'inci', 42720 2: '\'nci', 42721 7: '\'nci', 42722 20: '\'nci', 42723 50: '\'nci', 42724 3: '\'üncü', 42725 4: '\'üncü', 42726 100: '\'üncü', 42727 6: '\'ncı', 42728 9: '\'uncu', 42729 10: '\'uncu', 42730 30: '\'uncu', 42731 60: '\'ıncı', 42732 90: '\'ıncı' 42733 }; 42734 42735 var tr = moment.defineLocale('tr', { 42736 months : 'Ocak_Åubat_Mart_Nisan_Mayıs_Haziran_Temmuz_AÄustos_Eylül_Ekim_Kasım_Aralık'.split('_'), 42737 monthsShort : 'Oca_Åub_Mar_Nis_May_Haz_Tem_AÄu_Eyl_Eki_Kas_Ara'.split('_'), 42738 weekdays : 'Pazar_Pazartesi_Salı_ÃarÅamba_PerÅembe_Cuma_Cumartesi'.split('_'), 42739 weekdaysShort : 'Paz_Pts_Sal_Ãar_Per_Cum_Cts'.split('_'), 42740 weekdaysMin : 'Pz_Pt_Sa_Ãa_Pe_Cu_Ct'.split('_'), 42741 longDateFormat : { 42742 LT : 'HH:mm', 42743 LTS : 'HH:mm:ss', 42744 L : 'DD.MM.YYYY', 42745 LL : 'D MMMM YYYY', 42746 LLL : 'D MMMM YYYY HH:mm', 42747 LLLL : 'dddd, D MMMM YYYY HH:mm' 42748 }, 42749 calendar : { 42750 sameDay : '[bugün saat] LT', 42751 nextDay : '[yarın saat] LT', 42752 nextWeek : '[gelecek] dddd [saat] LT', 42753 lastDay : '[dün] LT', 42754 lastWeek : '[geçen] dddd [saat] LT', 42755 sameElse : 'L' 42756 }, 42757 relativeTime : { 42758 future : '%s sonra', 42759 past : '%s önce', 42760 s : 'birkaç saniye', 42761 ss : '%d saniye', 42762 m : 'bir dakika', 42763 mm : '%d dakika', 42764 h : 'bir saat', 42765 hh : '%d saat', 42766 d : 'bir gün', 42767 dd : '%d gün', 42768 M : 'bir ay', 42769 MM : '%d ay', 42770 y : 'bir yıl', 42771 yy : '%d yıl' 42772 }, 42773 ordinal: function (number, period) { 42774 switch (period) { 42775 case 'd': 42776 case 'D': 42777 case 'Do': 42778 case 'DD': 42779 return number; 42780 default: 42781 if (number === 0) { // special case for zero 42782 return number + '\'ıncı'; 42783 } 42784 var a = number % 10, 42785 b = number % 100 - a, 42786 c = number >= 100 ? 100 : null; 42787 return number + (suffixes[a] || suffixes[b] || suffixes[c]); 42788 } 42789 }, 42790 week : { 42791 dow : 1, // Monday is the first day of the week. 42792 doy : 7 // The week that contains Jan 1st is the first week of the year. 42793 } 42794 }); 42795 42796 return tr; 42797 42798}))); 42799 42800 42801/***/ }), 42802/* 328 */ 42803/***/ (function(module, exports, __webpack_require__) { 42804 42805//! moment.js locale configuration 42806 42807;(function (global, factory) { 42808 true ? factory(__webpack_require__(1)) : 42809 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 42810 factory(global.moment) 42811}(this, (function (moment) { 'use strict'; 42812 42813 42814 // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals. 42815 // This is currently too difficult (maybe even impossible) to add. 42816 var tzl = moment.defineLocale('tzl', { 42817 months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'), 42818 monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'), 42819 weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'), 42820 weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'), 42821 weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'), 42822 longDateFormat : { 42823 LT : 'HH.mm', 42824 LTS : 'HH.mm.ss', 42825 L : 'DD.MM.YYYY', 42826 LL : 'D. MMMM [dallas] YYYY', 42827 LLL : 'D. MMMM [dallas] YYYY HH.mm', 42828 LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm' 42829 }, 42830 meridiemParse: /d\'o|d\'a/i, 42831 isPM : function (input) { 42832 return 'd\'o' === input.toLowerCase(); 42833 }, 42834 meridiem : function (hours, minutes, isLower) { 42835 if (hours > 11) { 42836 return isLower ? 'd\'o' : 'D\'O'; 42837 } else { 42838 return isLower ? 'd\'a' : 'D\'A'; 42839 } 42840 }, 42841 calendar : { 42842 sameDay : '[oxhi à ] LT', 42843 nextDay : '[demà à ] LT', 42844 nextWeek : 'dddd [à ] LT', 42845 lastDay : '[ieiri à ] LT', 42846 lastWeek : '[sür el] dddd [lasteu à ] LT', 42847 sameElse : 'L' 42848 }, 42849 relativeTime : { 42850 future : 'osprei %s', 42851 past : 'ja%s', 42852 s : processRelativeTime, 42853 ss : processRelativeTime, 42854 m : processRelativeTime, 42855 mm : processRelativeTime, 42856 h : processRelativeTime, 42857 hh : processRelativeTime, 42858 d : processRelativeTime, 42859 dd : processRelativeTime, 42860 M : processRelativeTime, 42861 MM : processRelativeTime, 42862 y : processRelativeTime, 42863 yy : processRelativeTime 42864 }, 42865 dayOfMonthOrdinalParse: /\d{1,2}\./, 42866 ordinal : '%d.', 42867 week : { 42868 dow : 1, // Monday is the first day of the week. 42869 doy : 4 // The week that contains Jan 4th is the first week of the year. 42870 } 42871 }); 42872 42873 function processRelativeTime(number, withoutSuffix, key, isFuture) { 42874 var format = { 42875 's': ['viensas secunds', '\'iensas secunds'], 42876 'ss': [number + ' secunds', '' + number + ' secunds'], 42877 'm': ['\'n mÃut', '\'iens mÃut'], 42878 'mm': [number + ' mÃuts', '' + number + ' mÃuts'], 42879 'h': ['\'n þora', '\'iensa þora'], 42880 'hh': [number + ' þoras', '' + number + ' þoras'], 42881 'd': ['\'n ziua', '\'iensa ziua'], 42882 'dd': [number + ' ziuas', '' + number + ' ziuas'], 42883 'M': ['\'n mes', '\'iens mes'], 42884 'MM': [number + ' mesen', '' + number + ' mesen'], 42885 'y': ['\'n ar', '\'iens ar'], 42886 'yy': [number + ' ars', '' + number + ' ars'] 42887 }; 42888 return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]); 42889 } 42890 42891 return tzl; 42892 42893}))); 42894 42895 42896/***/ }), 42897/* 329 */ 42898/***/ (function(module, exports, __webpack_require__) { 42899 42900//! moment.js locale configuration 42901 42902;(function (global, factory) { 42903 true ? factory(__webpack_require__(1)) : 42904 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 42905 factory(global.moment) 42906}(this, (function (moment) { 'use strict'; 42907 42908 42909 var tzm = moment.defineLocale('tzm', { 42910 months : 'âµâµâµâ´°âµ¢âµ_â´±âµâ´°âµ¢âµ_âµâ´°âµâµ_âµâ´±âµâµâµ_âµâ´°âµ¢âµ¢âµ_âµ¢âµâµâµ¢âµ_âµ¢âµâµâµ¢âµâµ£_âµâµâµâµ_âµâµâµâ´°âµâ´±âµâµ_â´½âµâµâ´±âµ_âµâµâµ¡â´°âµâ´±âµâµ_â´·âµâµâµâ´±âµâµ'.split('_'), 42911 monthsShort : 'âµâµâµâ´°âµ¢âµ_â´±âµâ´°âµ¢âµ_âµâ´°âµâµ_âµâ´±âµâµâµ_âµâ´°âµ¢âµ¢âµ_âµ¢âµâµâµ¢âµ_âµ¢âµâµâµ¢âµâµ£_âµâµâµâµ_âµâµâµâ´°âµâ´±âµâµ_â´½âµâµâ´±âµ_âµâµâµ¡â´°âµâ´±âµâµ_â´·âµâµâµâ´±âµâµ'.split('_'), 42912 weekdays : 'â´°âµâ´°âµâ´°âµ_â´°âµ¢âµâ´°âµ_â´°âµâµâµâ´°âµ_â´°â´½âµâ´°âµ_ⴰⴽⵡⴰâµ_â´°âµâµâµâµ¡â´°âµ_â´°âµâµâ´¹âµ¢â´°âµ'.split('_'), 42913 weekdaysShort : 'â´°âµâ´°âµâ´°âµ_â´°âµ¢âµâ´°âµ_â´°âµâµâµâ´°âµ_â´°â´½âµâ´°âµ_ⴰⴽⵡⴰâµ_â´°âµâµâµâµ¡â´°âµ_â´°âµâµâ´¹âµ¢â´°âµ'.split('_'), 42914 weekdaysMin : 'â´°âµâ´°âµâ´°âµ_â´°âµ¢âµâ´°âµ_â´°âµâµâµâ´°âµ_â´°â´½âµâ´°âµ_ⴰⴽⵡⴰâµ_â´°âµâµâµâµ¡â´°âµ_â´°âµâµâ´¹âµ¢â´°âµ'.split('_'), 42915 longDateFormat : { 42916 LT : 'HH:mm', 42917 LTS: 'HH:mm:ss', 42918 L : 'DD/MM/YYYY', 42919 LL : 'D MMMM YYYY', 42920 LLL : 'D MMMM YYYY HH:mm', 42921 LLLL : 'dddd D MMMM YYYY HH:mm' 42922 }, 42923 calendar : { 42924 sameDay: '[â´°âµâ´·âµ â´´] LT', 42925 nextDay: '[â´°âµâ´½â´° â´´] LT', 42926 nextWeek: 'dddd [â´´] LT', 42927 lastDay: '[â´°âµâ´°âµâµ â´´] LT', 42928 lastWeek: 'dddd [â´´] LT', 42929 sameElse: 'L' 42930 }, 42931 relativeTime : { 42932 future : 'ⴷⴰⴷⵠⵠⵢⴰⵠ%s', 42933 past : 'ⵢⴰⵠ%s', 42934 s : 'âµâµâµâ´½', 42935 ss : '%d âµâµâµâ´½', 42936 m : 'âµâµâµâµâ´º', 42937 mm : '%d âµâµâµâµâ´º', 42938 h : 'âµâ´°âµâ´°', 42939 hh : '%d âµâ´°âµâµâ´°âµâµâµ', 42940 d : 'â´°âµâµ', 42941 dd : '%d oâµâµâ´°âµ', 42942 M : 'â´°âµ¢oâµâµ', 42943 MM : '%d âµâµ¢âµ¢âµâµâµ', 42944 y : 'â´°âµâ´³â´°âµ', 42945 yy : '%d âµâµâ´³â´°âµâµ' 42946 }, 42947 week : { 42948 dow : 6, // Saturday is the first day of the week. 42949 doy : 12 // The week that contains Jan 1st is the first week of the year. 42950 } 42951 }); 42952 42953 return tzm; 42954 42955}))); 42956 42957 42958/***/ }), 42959/* 330 */ 42960/***/ (function(module, exports, __webpack_require__) { 42961 42962//! moment.js locale configuration 42963 42964;(function (global, factory) { 42965 true ? factory(__webpack_require__(1)) : 42966 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 42967 factory(global.moment) 42968}(this, (function (moment) { 'use strict'; 42969 42970 42971 var tzmLatn = moment.defineLocale('tzm-latn', { 42972 months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_É£wÅ¡t_Å¡wtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'), 42973 monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_É£wÅ¡t_Å¡wtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'), 42974 weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiá¸yas'.split('_'), 42975 weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiá¸yas'.split('_'), 42976 weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiá¸yas'.split('_'), 42977 longDateFormat : { 42978 LT : 'HH:mm', 42979 LTS : 'HH:mm:ss', 42980 L : 'DD/MM/YYYY', 42981 LL : 'D MMMM YYYY', 42982 LLL : 'D MMMM YYYY HH:mm', 42983 LLLL : 'dddd D MMMM YYYY HH:mm' 42984 }, 42985 calendar : { 42986 sameDay: '[asdkh g] LT', 42987 nextDay: '[aska g] LT', 42988 nextWeek: 'dddd [g] LT', 42989 lastDay: '[assant g] LT', 42990 lastWeek: 'dddd [g] LT', 42991 sameElse: 'L' 42992 }, 42993 relativeTime : { 42994 future : 'dadkh s yan %s', 42995 past : 'yan %s', 42996 s : 'imik', 42997 ss : '%d imik', 42998 m : 'minuá¸', 42999 mm : '%d minuá¸', 43000 h : 'saÉa', 43001 hh : '%d tassaÉin', 43002 d : 'ass', 43003 dd : '%d ossan', 43004 M : 'ayowr', 43005 MM : '%d iyyirn', 43006 y : 'asgas', 43007 yy : '%d isgasn' 43008 }, 43009 week : { 43010 dow : 6, // Saturday is the first day of the week. 43011 doy : 12 // The week that contains Jan 1st is the first week of the year. 43012 } 43013 }); 43014 43015 return tzmLatn; 43016 43017}))); 43018 43019 43020/***/ }), 43021/* 331 */ 43022/***/ (function(module, exports, __webpack_require__) { 43023 43024//! moment.js language configuration 43025 43026;(function (global, factory) { 43027 true ? factory(__webpack_require__(1)) : 43028 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 43029 factory(global.moment) 43030}(this, (function (moment) { 'use strict'; 43031 43032 43033 var ugCn = moment.defineLocale('ug-cn', { 43034 months: 'ÙØ§ÙÛØ§Ø±_ÙÛÛØ±Ø§Ù_٠ارت_ئاپرÛÙ_٠اÙ_ئÙÙÛÙ_ئÙÙÛÙ_Ø¦Ø§ÛØºÛست_سÛÙØªÛØ¨ÙØ±_ئÛÙØªÛØ¨ÙØ±_ÙÙÙØ§Ø¨Ùر_دÛÙØ§Ø¨Ùر'.split( 43035 '_' 43036 ), 43037 monthsShort: 'ÙØ§ÙÛØ§Ø±_ÙÛÛØ±Ø§Ù_٠ارت_ئاپرÛÙ_٠اÙ_ئÙÙÛÙ_ئÙÙÛÙ_Ø¦Ø§ÛØºÛست_سÛÙØªÛØ¨ÙØ±_ئÛÙØªÛØ¨ÙØ±_ÙÙÙØ§Ø¨Ùر_دÛÙØ§Ø¨Ùر'.split( 43038 '_' 43039 ), 43040 weekdays: 'ÙÛÙØ´ÛÙØ¨Û_Ø¯ÛØ´ÛÙØ¨Û_سÛÙØ´ÛÙØ¨Û_ÚØ§Ø±Ø´ÛÙØ¨Û_Ù¾ÛÙØ´ÛÙØ¨Û_جÛÙ Û_Ø´ÛÙØ¨Û'.split( 43041 '_' 43042 ), 43043 weekdaysShort: 'ÙÛ_دÛ_سÛ_ÚØ§_Ù¾Û_جÛ_Ø´Û'.split('_'), 43044 weekdaysMin: 'ÙÛ_دÛ_سÛ_ÚØ§_Ù¾Û_جÛ_Ø´Û'.split('_'), 43045 longDateFormat: { 43046 LT: 'HH:mm', 43047 LTS: 'HH:mm:ss', 43048 L: 'YYYY-MM-DD', 43049 LL: 'YYYY-ÙÙÙÙM-ئاÙÙÙÚD-ÙÛÙÙ', 43050 LLL: 'YYYY-ÙÙÙÙM-ئاÙÙÙÚD-ÙÛÙÙØ HH:mm', 43051 LLLL: 'ddddØ YYYY-ÙÙÙÙM-ئاÙÙÙÚD-ÙÛÙÙØ HH:mm' 43052 }, 43053 meridiemParse: /ÙÛØ±ÙÙ ÙÛÚÛ|سÛÚ¾ÛØ±|ÚÛØ´ØªÙÙ Ø¨ÛØ±ÛÙ|ÚÛØ´|ÚÛØ´ØªÙÙ ÙÛÙÙÙ|ÙÛÚ/, 43054 meridiemHour: function (hour, meridiem) { 43055 if (hour === 12) { 43056 hour = 0; 43057 } 43058 if ( 43059 meridiem === 'ÙÛØ±ÙÙ ÙÛÚÛ' || 43060 meridiem === 'سÛÚ¾ÛØ±' || 43061 meridiem === 'ÚÛØ´ØªÙÙ Ø¨ÛØ±ÛÙ' 43062 ) { 43063 return hour; 43064 } else if (meridiem === 'ÚÛØ´ØªÙÙ ÙÛÙÙÙ' || meridiem === 'ÙÛÚ') { 43065 return hour + 12; 43066 } else { 43067 return hour >= 11 ? hour : hour + 12; 43068 } 43069 }, 43070 meridiem: function (hour, minute, isLower) { 43071 var hm = hour * 100 + minute; 43072 if (hm < 600) { 43073 return 'ÙÛØ±ÙÙ ÙÛÚÛ'; 43074 } else if (hm < 900) { 43075 return 'سÛÚ¾ÛØ±'; 43076 } else if (hm < 1130) { 43077 return 'ÚÛØ´ØªÙÙ Ø¨ÛØ±ÛÙ'; 43078 } else if (hm < 1230) { 43079 return 'ÚÛØ´'; 43080 } else if (hm < 1800) { 43081 return 'ÚÛØ´ØªÙÙ ÙÛÙÙÙ'; 43082 } else { 43083 return 'ÙÛÚ'; 43084 } 43085 }, 43086 calendar: { 43087 sameDay: '[بÛÚ¯ÛÙ Ø³Ø§Ø¦ÛØª] LT', 43088 nextDay: '[Ø¦ÛØªÛ Ø³Ø§Ø¦ÛØª] LT', 43089 nextWeek: '[ÙÛÙÛØ±ÙÙ] dddd [Ø³Ø§Ø¦ÛØª] LT', 43090 lastDay: '[تÛÙÛÚ¯ÛÙ] LT', 43091 lastWeek: '[Ø¦Ø§ÙØ¯ÙÙÙÙ] dddd [Ø³Ø§Ø¦ÛØª] LT', 43092 sameElse: 'L' 43093 }, 43094 relativeTime: { 43095 future: '%s ÙÛÙÙÙ', 43096 past: '%s Ø¨ÛØ±ÛÙ', 43097 s: 'ÙÛÚÚÛ Ø³ÛÙÙÙØª', 43098 ss: '%d سÛÙÙÙØª', 43099 m: 'Ø¨ÙØ± Ù ÙÙÛØª', 43100 mm: '%d Ù ÙÙÛØª', 43101 h: 'Ø¨ÙØ± Ø³Ø§Ø¦ÛØª', 43102 hh: '%d Ø³Ø§Ø¦ÛØª', 43103 d: 'Ø¨ÙØ± ÙÛÙ', 43104 dd: '%d ÙÛÙ', 43105 M: 'Ø¨ÙØ± ئاÙ', 43106 MM: '%d ئاÙ', 43107 y: 'Ø¨ÙØ± ÙÙÙ', 43108 yy: '%d ÙÙÙ' 43109 }, 43110 43111 dayOfMonthOrdinalParse: /\d{1,2}(-ÙÛÙÙ|-ئاÙ|-Ú¾ÛپتÛ)/, 43112 ordinal: function (number, period) { 43113 switch (period) { 43114 case 'd': 43115 case 'D': 43116 case 'DDD': 43117 return number + '-ÙÛÙÙ'; 43118 case 'w': 43119 case 'W': 43120 return number + '-Ú¾ÛپتÛ'; 43121 default: 43122 return number; 43123 } 43124 }, 43125 preparse: function (string) { 43126 return string.replace(/Ø/g, ','); 43127 }, 43128 postformat: function (string) { 43129 return string.replace(/,/g, 'Ø'); 43130 }, 43131 week: { 43132 // GB/T 7408-1994ãæ°æ®å åäº¤æ¢æ ¼å¼Â·ä¿¡æ¯äº¤æ¢Â·æ¥æåæ¶é´è¡¨ç¤ºæ³ãä¸ISO 8601:1988çæ 43133 dow: 1, // Monday is the first day of the week. 43134 doy: 7 // The week that contains Jan 1st is the first week of the year. 43135 } 43136 }); 43137 43138 return ugCn; 43139 43140}))); 43141 43142 43143/***/ }), 43144/* 332 */ 43145/***/ (function(module, exports, __webpack_require__) { 43146 43147//! moment.js locale configuration 43148 43149;(function (global, factory) { 43150 true ? factory(__webpack_require__(1)) : 43151 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 43152 factory(global.moment) 43153}(this, (function (moment) { 'use strict'; 43154 43155 43156 function plural(word, num) { 43157 var forms = word.split('_'); 43158 return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); 43159 } 43160 function relativeTimeWithPlural(number, withoutSuffix, key) { 43161 var format = { 43162 'ss': withoutSuffix ? 'ÑекÑнда_ÑекÑнди_ÑекÑнд' : 'ÑекÑндÑ_ÑекÑнди_ÑекÑнд', 43163 'mm': withoutSuffix ? 'Ñ Ð²Ð¸Ð»Ð¸Ð½Ð°_Ñ Ð²Ð¸Ð»Ð¸Ð½Ð¸_Ñ Ð²Ð¸Ð»Ð¸Ð½' : 'Ñ Ð²Ð¸Ð»Ð¸Ð½Ñ_Ñ Ð²Ð¸Ð»Ð¸Ð½Ð¸_Ñ Ð²Ð¸Ð»Ð¸Ð½', 43164 'hh': withoutSuffix ? 'година_години_годин' : 'годинÑ_години_годин', 43165 'dd': 'денÑ_днÑ_днÑв', 43166 'MM': 'мÑÑÑÑÑ_мÑÑÑÑÑ_мÑÑÑÑÑв', 43167 'yy': 'ÑÑк_Ñоки_ÑокÑв' 43168 }; 43169 if (key === 'm') { 43170 return withoutSuffix ? 'Ñ Ð²Ð¸Ð»Ð¸Ð½Ð°' : 'Ñ Ð²Ð¸Ð»Ð¸Ð½Ñ'; 43171 } 43172 else if (key === 'h') { 43173 return withoutSuffix ? 'година' : 'годинÑ'; 43174 } 43175 else { 43176 return number + ' ' + plural(format[key], +number); 43177 } 43178 } 43179 function weekdaysCaseReplace(m, format) { 43180 var weekdays = { 43181 'nominative': 'недÑлÑ_понедÑлок_вÑвÑоÑок_ÑеÑеда_ÑеÑвеÑ_пâÑÑниÑÑ_ÑÑбоÑа'.split('_'), 43182 'accusative': 'недÑлÑ_понедÑлок_вÑвÑоÑок_ÑеÑедÑ_ÑеÑвеÑ_пâÑÑниÑÑ_ÑÑбоÑÑ'.split('_'), 43183 'genitive': 'недÑлÑ_понедÑлка_вÑвÑоÑка_ÑеÑеди_ÑеÑвеÑга_пâÑÑниÑÑ_ÑÑбоÑи'.split('_') 43184 }; 43185 43186 if (!m) { 43187 return weekdays['nominative']; 43188 } 43189 43190 var nounCase = (/(\[[ÐвУÑ]\]) ?dddd/).test(format) ? 43191 'accusative' : 43192 ((/\[?(?:минÑлоÑ|наÑÑÑпноÑ)? ?\] ?dddd/).test(format) ? 43193 'genitive' : 43194 'nominative'); 43195 return weekdays[nounCase][m.day()]; 43196 } 43197 function processHoursFunction(str) { 43198 return function () { 43199 return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT'; 43200 }; 43201 } 43202 43203 var uk = moment.defineLocale('uk', { 43204 months : { 43205 'format': 'ÑÑÑнÑ_лÑÑого_беÑезнÑ_квÑÑнÑ_ÑÑавнÑ_ÑеÑвнÑ_липнÑ_ÑеÑпнÑ_веÑеÑнÑ_жовÑнÑ_лиÑÑопада_гÑÑднÑ'.split('_'), 43206 'standalone': 'ÑÑÑенÑ_лÑÑий_беÑезенÑ_квÑÑенÑ_ÑÑавенÑ_ÑеÑвенÑ_липенÑ_ÑеÑпенÑ_веÑеÑенÑ_жовÑенÑ_лиÑÑопад_гÑÑденÑ'.split('_') 43207 }, 43208 monthsShort : 'ÑÑÑ_лÑÑ_беÑ_квÑÑ_ÑÑав_ÑеÑв_лип_ÑеÑп_веÑ_жовÑ_лиÑÑ_гÑÑд'.split('_'), 43209 weekdays : weekdaysCaseReplace, 43210 weekdaysShort : 'нд_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб'.split('_'), 43211 weekdaysMin : 'нд_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб'.split('_'), 43212 longDateFormat : { 43213 LT : 'HH:mm', 43214 LTS : 'HH:mm:ss', 43215 L : 'DD.MM.YYYY', 43216 LL : 'D MMMM YYYY Ñ.', 43217 LLL : 'D MMMM YYYY Ñ., HH:mm', 43218 LLLL : 'dddd, D MMMM YYYY Ñ., HH:mm' 43219 }, 43220 calendar : { 43221 sameDay: processHoursFunction('[СÑÐ¾Ð³Ð¾Ð´Ð½Ñ '), 43222 nextDay: processHoursFunction('[ÐавÑÑа '), 43223 lastDay: processHoursFunction('[ÐÑоÑа '), 43224 nextWeek: processHoursFunction('[У] dddd ['), 43225 lastWeek: function () { 43226 switch (this.day()) { 43227 case 0: 43228 case 3: 43229 case 5: 43230 case 6: 43231 return processHoursFunction('[ÐинÑлоÑ] dddd [').call(this); 43232 case 1: 43233 case 2: 43234 case 4: 43235 return processHoursFunction('[ÐинÑлого] dddd [').call(this); 43236 } 43237 }, 43238 sameElse: 'L' 43239 }, 43240 relativeTime : { 43241 future : 'за %s', 43242 past : '%s ÑомÑ', 43243 s : 'декÑлÑка ÑекÑнд', 43244 ss : relativeTimeWithPlural, 43245 m : relativeTimeWithPlural, 43246 mm : relativeTimeWithPlural, 43247 h : 'годинÑ', 43248 hh : relativeTimeWithPlural, 43249 d : 'денÑ', 43250 dd : relativeTimeWithPlural, 43251 M : 'мÑÑÑÑÑ', 43252 MM : relativeTimeWithPlural, 43253 y : 'ÑÑк', 43254 yy : relativeTimeWithPlural 43255 }, 43256 // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason 43257 meridiemParse: /ноÑÑ|ÑанкÑ|днÑ|веÑоÑа/, 43258 isPM: function (input) { 43259 return /^(днÑ|веÑоÑа)$/.test(input); 43260 }, 43261 meridiem : function (hour, minute, isLower) { 43262 if (hour < 4) { 43263 return 'ноÑÑ'; 43264 } else if (hour < 12) { 43265 return 'ÑанкÑ'; 43266 } else if (hour < 17) { 43267 return 'днÑ'; 43268 } else { 43269 return 'веÑоÑа'; 43270 } 43271 }, 43272 dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/, 43273 ordinal: function (number, period) { 43274 switch (period) { 43275 case 'M': 43276 case 'd': 43277 case 'DDD': 43278 case 'w': 43279 case 'W': 43280 return number + '-й'; 43281 case 'D': 43282 return number + '-го'; 43283 default: 43284 return number; 43285 } 43286 }, 43287 week : { 43288 dow : 1, // Monday is the first day of the week. 43289 doy : 7 // The week that contains Jan 1st is the first week of the year. 43290 } 43291 }); 43292 43293 return uk; 43294 43295}))); 43296 43297 43298/***/ }), 43299/* 333 */ 43300/***/ (function(module, exports, __webpack_require__) { 43301 43302//! moment.js locale configuration 43303 43304;(function (global, factory) { 43305 true ? factory(__webpack_require__(1)) : 43306 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 43307 factory(global.moment) 43308}(this, (function (moment) { 'use strict'; 43309 43310 43311 var months = [ 43312 'جÙÙØ±Û', 43313 'ÙØ±ÙرÛ', 43314 '٠ارÚ', 43315 'اپرÛÙ', 43316 '٠ئÛ', 43317 'جÙÙ', 43318 'جÙÙØ§Ø¦Û', 43319 'اگست', 43320 'ست٠بر', 43321 'Ø§Ú©ØªÙØ¨Ø±', 43322 'ÙÙ٠بر', 43323 'دس٠بر' 43324 ]; 43325 var days = [ 43326 'Ø§ØªÙØ§Ø±', 43327 'Ù¾ÛØ±', 43328 'Ù ÙÚ¯Ù', 43329 'بدھ', 43330 'ج٠عرات', 43331 'ج٠عÛ', 43332 'ÛÙØªÛ' 43333 ]; 43334 43335 var ur = moment.defineLocale('ur', { 43336 months : months, 43337 monthsShort : months, 43338 weekdays : days, 43339 weekdaysShort : days, 43340 weekdaysMin : days, 43341 longDateFormat : { 43342 LT : 'HH:mm', 43343 LTS : 'HH:mm:ss', 43344 L : 'DD/MM/YYYY', 43345 LL : 'D MMMM YYYY', 43346 LLL : 'D MMMM YYYY HH:mm', 43347 LLLL : 'ddddØ D MMMM YYYY HH:mm' 43348 }, 43349 meridiemParse: /صبØ|شا٠/, 43350 isPM : function (input) { 43351 return 'شا٠' === input; 43352 }, 43353 meridiem : function (hour, minute, isLower) { 43354 if (hour < 12) { 43355 return 'صبØ'; 43356 } 43357 return 'شا٠'; 43358 }, 43359 calendar : { 43360 sameDay : '[آج بÙÙØª] LT', 43361 nextDay : '[ک٠بÙÙØª] LT', 43362 nextWeek : 'dddd [بÙÙØª] LT', 43363 lastDay : '[Ú¯Ø°Ø´ØªÛ Ø±ÙØ² بÙÙØª] LT', 43364 lastWeek : '[گذشتÛ] dddd [بÙÙØª] LT', 43365 sameElse : 'L' 43366 }, 43367 relativeTime : { 43368 future : '%s بعد', 43369 past : '%s ÙØ¨Ù', 43370 s : 'ÚÙØ¯ سÛÚ©ÙÚ', 43371 ss : '%d سÛÚ©ÙÚ', 43372 m : 'اÛÚ© Ù ÙÙ¹', 43373 mm : '%d Ù ÙÙ¹', 43374 h : 'اÛÚ© Ú¯Ú¾ÙÙ¹Û', 43375 hh : '%d Ú¯Ú¾ÙÙ¹Û', 43376 d : 'اÛÚ© دÙ', 43377 dd : '%d دÙ', 43378 M : 'اÛÚ© ٠اÛ', 43379 MM : '%d ٠اÛ', 43380 y : 'اÛÚ© ساÙ', 43381 yy : '%d ساÙ' 43382 }, 43383 preparse: function (string) { 43384 return string.replace(/Ø/g, ','); 43385 }, 43386 postformat: function (string) { 43387 return string.replace(/,/g, 'Ø'); 43388 }, 43389 week : { 43390 dow : 1, // Monday is the first day of the week. 43391 doy : 4 // The week that contains Jan 4th is the first week of the year. 43392 } 43393 }); 43394 43395 return ur; 43396 43397}))); 43398 43399 43400/***/ }), 43401/* 334 */ 43402/***/ (function(module, exports, __webpack_require__) { 43403 43404//! moment.js locale configuration 43405 43406;(function (global, factory) { 43407 true ? factory(__webpack_require__(1)) : 43408 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 43409 factory(global.moment) 43410}(this, (function (moment) { 'use strict'; 43411 43412 43413 var uz = moment.defineLocale('uz', { 43414 months : 'ÑнваÑ_ÑевÑал_маÑÑ_апÑел_май_иÑн_иÑл_авгÑÑÑ_ÑенÑÑбÑ_окÑÑбÑ_ноÑбÑ_декабÑ'.split('_'), 43415 monthsShort : 'Ñнв_Ñев_маÑ_апÑ_май_иÑн_иÑл_авг_Ñен_окÑ_ноÑ_дек'.split('_'), 43416 weekdays : 'ЯкÑанба_ÐÑÑанба_СеÑанба_ЧоÑÑанба_ÐайÑанба_ÐÑма_Шанба'.split('_'), 43417 weekdaysShort : 'ЯкÑ_ÐÑÑ_СеÑ_ЧоÑ_Ðай_ÐÑм_Шан'.split('_'), 43418 weekdaysMin : 'Як_ÐÑ_Се_Чо_Ðа_ÐÑ_Ша'.split('_'), 43419 longDateFormat : { 43420 LT : 'HH:mm', 43421 LTS : 'HH:mm:ss', 43422 L : 'DD/MM/YYYY', 43423 LL : 'D MMMM YYYY', 43424 LLL : 'D MMMM YYYY HH:mm', 43425 LLLL : 'D MMMM YYYY, dddd HH:mm' 43426 }, 43427 calendar : { 43428 sameDay : '[ÐÑгÑн ÑоаÑ] LT [да]', 43429 nextDay : '[ÐÑÑага] LT [да]', 43430 nextWeek : 'dddd [кÑни ÑоаÑ] LT [да]', 43431 lastDay : '[ÐеÑа ÑоаÑ] LT [да]', 43432 lastWeek : '[УÑган] dddd [кÑни ÑоаÑ] LT [да]', 43433 sameElse : 'L' 43434 }, 43435 relativeTime : { 43436 future : 'Якин %s иÑида', 43437 past : 'ÐÐ¸Ñ Ð½ÐµÑа %s олдин', 43438 s : 'ÑÑÑÑаÑ', 43439 ss : '%d ÑÑÑÑаÑ', 43440 m : 'Ð±Ð¸Ñ Ð´Ð°ÐºÐ¸ÐºÐ°', 43441 mm : '%d дакика', 43442 h : 'Ð±Ð¸Ñ ÑоаÑ', 43443 hh : '%d ÑоаÑ', 43444 d : 'Ð±Ð¸Ñ ÐºÑн', 43445 dd : '%d кÑн', 43446 M : 'Ð±Ð¸Ñ Ð¾Ð¹', 43447 MM : '%d ой', 43448 y : 'Ð±Ð¸Ñ Ð¹Ð¸Ð»', 43449 yy : '%d йил' 43450 }, 43451 week : { 43452 dow : 1, // Monday is the first day of the week. 43453 doy : 7 // The week that contains Jan 4th is the first week of the year. 43454 } 43455 }); 43456 43457 return uz; 43458 43459}))); 43460 43461 43462/***/ }), 43463/* 335 */ 43464/***/ (function(module, exports, __webpack_require__) { 43465 43466//! moment.js locale configuration 43467 43468;(function (global, factory) { 43469 true ? factory(__webpack_require__(1)) : 43470 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 43471 factory(global.moment) 43472}(this, (function (moment) { 'use strict'; 43473 43474 43475 var uzLatn = moment.defineLocale('uz-latn', { 43476 months : 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'), 43477 monthsShort : 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'), 43478 weekdays : 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'), 43479 weekdaysShort : 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'), 43480 weekdaysMin : 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'), 43481 longDateFormat : { 43482 LT : 'HH:mm', 43483 LTS : 'HH:mm:ss', 43484 L : 'DD/MM/YYYY', 43485 LL : 'D MMMM YYYY', 43486 LLL : 'D MMMM YYYY HH:mm', 43487 LLLL : 'D MMMM YYYY, dddd HH:mm' 43488 }, 43489 calendar : { 43490 sameDay : '[Bugun soat] LT [da]', 43491 nextDay : '[Ertaga] LT [da]', 43492 nextWeek : 'dddd [kuni soat] LT [da]', 43493 lastDay : '[Kecha soat] LT [da]', 43494 lastWeek : '[O\'tgan] dddd [kuni soat] LT [da]', 43495 sameElse : 'L' 43496 }, 43497 relativeTime : { 43498 future : 'Yaqin %s ichida', 43499 past : 'Bir necha %s oldin', 43500 s : 'soniya', 43501 ss : '%d soniya', 43502 m : 'bir daqiqa', 43503 mm : '%d daqiqa', 43504 h : 'bir soat', 43505 hh : '%d soat', 43506 d : 'bir kun', 43507 dd : '%d kun', 43508 M : 'bir oy', 43509 MM : '%d oy', 43510 y : 'bir yil', 43511 yy : '%d yil' 43512 }, 43513 week : { 43514 dow : 1, // Monday is the first day of the week. 43515 doy : 7 // The week that contains Jan 1st is the first week of the year. 43516 } 43517 }); 43518 43519 return uzLatn; 43520 43521}))); 43522 43523 43524/***/ }), 43525/* 336 */ 43526/***/ (function(module, exports, __webpack_require__) { 43527 43528//! moment.js locale configuration 43529 43530;(function (global, factory) { 43531 true ? factory(__webpack_require__(1)) : 43532 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 43533 factory(global.moment) 43534}(this, (function (moment) { 'use strict'; 43535 43536 43537 var vi = moment.defineLocale('vi', { 43538 months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'), 43539 monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'), 43540 monthsParseExact : true, 43541 weekdays : 'chá»§ nháºt_thứ hai_thứ ba_thứ tư_thứ nÄm_thứ sáu_thứ bảy'.split('_'), 43542 weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'), 43543 weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'), 43544 weekdaysParseExact : true, 43545 meridiemParse: /sa|ch/i, 43546 isPM : function (input) { 43547 return /^ch$/i.test(input); 43548 }, 43549 meridiem : function (hours, minutes, isLower) { 43550 if (hours < 12) { 43551 return isLower ? 'sa' : 'SA'; 43552 }
43552else { 43553 return isLower ? 'ch' : 'CH'; 43554 } 43555 }, 43556 longDateFormat : { 43557 LT : 'HH:mm', 43558 LTS : 'HH:mm:ss', 43559 L : 'DD/MM/YYYY', 43560 LL : 'D MMMM [nÄm] YYYY', 43561 LLL : 'D MMMM [nÄm] YYYY HH:mm', 43562 LLLL : 'dddd, D MMMM [nÄm] YYYY HH:mm', 43563 l : 'DD/M/YYYY', 43564 ll : 'D MMM YYYY', 43565 lll : 'D MMM YYYY HH:mm', 43566 llll : 'ddd, D MMM YYYY HH:mm' 43567 }, 43568 calendar : { 43569 sameDay: '[Hôm nay lúc] LT', 43570 nextDay: '[Ngà y mai lúc] LT', 43571 nextWeek: 'dddd [tuần tá»i lúc] LT', 43572 lastDay: '[Hôm qua lúc] LT', 43573 lastWeek: 'dddd [tuần rá»i lúc] LT', 43574 sameElse: 'L' 43575 }, 43576 relativeTime : { 43577 future : '%s tá»i', 43578 past : '%s trưá»c', 43579 s : 'và i giây', 43580 ss : '%d giây' , 43581 m : 'má»t phút', 43582 mm : '%d phút', 43583 h : 'má»t giá»', 43584 hh : '%d giá»', 43585 d : 'má»t ngà y', 43586 dd : '%d ngà y', 43587 M : 'má»t tháng', 43588 MM : '%d tháng', 43589 y : 'má»t nÄm', 43590 yy : '%d nÄm' 43591 }, 43592 dayOfMonthOrdinalParse: /\d{1,2}/, 43593 ordinal : function (number) { 43594 return number; 43595 }, 43596 week : { 43597 dow : 1, // Monday is the first day of the week. 43598 doy : 4 // The week that contains Jan 4th is the first week of the year. 43599 } 43600 }); 43601 43602 return vi; 43603 43604}))); 43605 43606 43607/***/ }), 43608/* 337 */ 43609/***/ (function(module, exports, __webpack_require__) { 43610 43611//! moment.js locale configuration 43612 43613;(function (global, factory) { 43614 true ? factory(__webpack_require__(1)) : 43615 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 43616 factory(global.moment) 43617}(this, (function (moment) { 'use strict'; 43618 43619 43620 var xPseudo = moment.defineLocale('x-pseudo', { 43621 months : 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Ãp~rÃl_~Máý_~Júñé~_Júl~ý_Ãú~gúst~_Sép~témb~ér_Ã~ctób~ér_Ã~óvém~bér_~Décé~mbér'.split('_'), 43622 monthsShort : 'J~áñ_~Féb_~Már_~Ãpr_~Máý_~Júñ_~Júl_~Ãúg_~Sép_~Ãct_~Ãóv_~Déc'.split('_'), 43623 monthsParseExact : true, 43624 weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~FrÃd~áý_S~átúr~dáý'.split('_'), 43625 weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~FrÃ_~Sát'.split('_'), 43626 weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'), 43627 weekdaysParseExact : true, 43628 longDateFormat : { 43629 LT : 'HH:mm', 43630 L : 'DD/MM/YYYY', 43631 LL : 'D MMMM YYYY', 43632 LLL : 'D MMMM YYYY HH:mm', 43633 LLLL : 'dddd, D MMMM YYYY HH:mm' 43634 }, 43635 calendar : { 43636 sameDay : '[T~ódá~ý át] LT', 43637 nextDay : '[T~ómó~rró~w át] LT', 43638 nextWeek : 'dddd [át] LT', 43639 lastDay : '[Ã~ést~érdá~ý át] LT', 43640 lastWeek : '[L~ást] dddd [át] LT', 43641 sameElse : 'L' 43642 }, 43643 relativeTime : { 43644 future : 'Ã~ñ %s', 43645 past : '%s á~gó', 43646 s : 'á ~féw ~sécó~ñds', 43647 ss : '%d s~écóñ~ds',
vendor: 15,322 bytes, lines 43648-44111
43648 m : 'á ~mÃñ~úté', 43649 mm : '%d m~Ãñú~tés', 43650 h : 'á~ñ hó~úr', 43651 hh : '%d h~óúrs', 43652 d : 'á ~dáý', 43653 dd : '%d d~áýs', 43654 M : 'á ~móñ~th', 43655 MM : '%d m~óñt~hs', 43656 y : 'á ~ýéár', 43657 yy : '%d ý~éárs' 43658 }, 43659 dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, 43660 ordinal : function (number) { 43661 var b = number % 10, 43662 output = (~~(number % 100 / 10) === 1) ? 'th' : 43663 (b === 1) ? 'st' : 43664 (b === 2) ? 'nd' : 43665 (b === 3) ? 'rd' : 'th'; 43666 return number + output; 43667 }, 43668 week : { 43669 dow : 1, // Monday is the first day of the week. 43670 doy : 4 // The week that contains Jan 4th is the first week of the year. 43671 } 43672 }); 43673 43674 return xPseudo; 43675 43676}))); 43677 43678 43679/***/ }), 43680/* 338 */ 43681/***/ (function(module, exports, __webpack_require__) { 43682 43683//! moment.js locale configuration 43684 43685;(function (global, factory) { 43686 true ? factory(__webpack_require__(1)) : 43687 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 43688 factory(global.moment) 43689}(this, (function (moment) { 'use strict'; 43690 43691 43692 var yo = moment.defineLocale('yo', { 43693 months : 'SẹÌrẹÌ_EÌreÌleÌ_ẸrẹÌnaÌ_IÌgbeÌ_EÌbibi_OÌkuÌdu_Agẹmo_OÌguÌn_Owewe_á»ÌwaÌraÌ_BeÌluÌ_á»ÌpẹÌÌ'.split('_'), 43694 monthsShort : 'SẹÌr_EÌrl_Ẹrn_IÌgb_EÌbi_OÌkuÌ_Agẹ_OÌguÌ_Owe_á»ÌwaÌ_BeÌl_á»ÌpẹÌÌ'.split('_'), 43695 weekdays : 'AÌiÌkuÌ_AjeÌ_IÌsẹÌgun_á»já»ÌruÌ_á»já»Ìbá»_ẸtiÌ_AÌbaÌmẹÌta'.split('_'), 43696 weekdaysShort : 'AÌiÌk_AjeÌ_IÌsẹÌ_á»jr_á»jb_ẸtiÌ_AÌbaÌ'.split('_'), 43697 weekdaysMin : 'AÌiÌ_Aj_IÌs_á»r_á»b_Ẹt_AÌb'.split('_'), 43698 longDateFormat : { 43699 LT : 'h:mm A', 43700 LTS : 'h:mm:ss A', 43701 L : 'DD/MM/YYYY', 43702 LL : 'D MMMM YYYY', 43703 LLL : 'D MMMM YYYY h:mm A', 43704 LLLL : 'dddd, D MMMM YYYY h:mm A' 43705 }, 43706 calendar : { 43707 sameDay : '[OÌniÌ ni] LT', 43708 nextDay : '[á»Ìla ni] LT', 43709 nextWeek : 'dddd [á»sáº¹Ì toÌn\'bá»] [ni] LT', 43710 lastDay : '[AÌna ni] LT', 43711 lastWeek : 'dddd [á»sáº¹Ì toÌlá»Ì] [ni] LT', 43712 sameElse : 'L' 43713 }, 43714 relativeTime : { 43715 future : 'niÌ %s', 43716 past : '%s ká»jaÌ', 43717 s : 'iÌsẹjuÌ aayaÌ die', 43718 ss :'aayaÌ %d', 43719 m : 'iÌsẹjuÌ kan', 43720 mm : 'iÌsẹjuÌ %d', 43721 h : 'waÌkati kan', 43722 hh : 'waÌkati %d', 43723 d : 'á»já»Ì kan', 43724 dd : 'á»já»Ì %d', 43725 M : 'osuÌ kan', 43726 MM : 'osuÌ %d', 43727 y : 'á»duÌn kan', 43728 yy : 'á»duÌn %d' 43729 }, 43730 dayOfMonthOrdinalParse : /á»já»Ì\s\d{1,2}/, 43731 ordinal : 'á»já»Ì %d', 43732 week : { 43733 dow : 1, // Monday is the first day of the week. 43734 doy : 4 // The week that contains Jan 4th is the first week of the year. 43735 } 43736 }); 43737 43738 return yo; 43739 43740}))); 43741 43742 43743/***/ }), 43744/* 339 */ 43745/***/ (function(module, exports, __webpack_require__) { 43746 43747//! moment.js locale configuration 43748 43749;(function (global, factory) { 43750 true ? factory(__webpack_require__(1)) : 43751 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 43752 factory(global.moment) 43753}(this, (function (moment) { 'use strict'; 43754 43755 43756 var zhCn = moment.defineLocale('zh-cn', { 43757 months : '䏿_äºæ_䏿_åæ_äºæ_å æ_䏿_å «æ_乿_åæ_å䏿_åäºæ'.split('_'), 43758 monthsShort : '1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ'.split('_'), 43759 weekdays : 'æææ¥_ææä¸_ææäº_ææä¸_ææå_ææäº_ææå '.split('_'), 43760 weekdaysShort : '卿¥_å¨ä¸_å¨äº_å¨ä¸_å¨å_å¨äº_å¨å '.split('_'), 43761 weekdaysMin : 'æ¥_ä¸_äº_ä¸_å_äº_å '.split('_'), 43762 longDateFormat : { 43763 LT : 'HH:mm', 43764 LTS : 'HH:mm:ss', 43765 L : 'YYYY/MM/DD', 43766 LL : 'YYYYå¹´MæDæ¥', 43767 LLL : 'YYYYå¹´MæDæ¥Ahç¹mmå', 43768 LLLL : 'YYYYå¹´MæDæ¥ddddAhç¹mmå', 43769 l : 'YYYY/M/D', 43770 ll : 'YYYYå¹´MæDæ¥', 43771 lll : 'YYYYå¹´MæDæ¥ HH:mm', 43772 llll : 'YYYYå¹´MæDæ¥dddd HH:mm' 43773 }, 43774 meridiemParse: /忍|æ©ä¸|ä¸å|ä¸å|ä¸å|æä¸/, 43775 meridiemHour: function (hour, meridiem) { 43776 if (hour === 12) { 43777 hour = 0; 43778 } 43779 if (meridiem === '忍' || meridiem === 'æ©ä¸' || 43780 meridiem === 'ä¸å') { 43781 return hour; 43782 } else if (meridiem === 'ä¸å' || meridiem === 'æä¸') { 43783 return hour + 12; 43784 } else { 43785 // 'ä¸å' 43786 return hour >= 11 ? hour : hour + 12; 43787 } 43788 }, 43789 meridiem : function (hour, minute, isLower) { 43790 var hm = hour * 100 + minute; 43791 if (hm < 600) { 43792 return '忍'; 43793 } else if (hm < 900) { 43794 return 'æ©ä¸'; 43795 } else if (hm < 1130) { 43796 return 'ä¸å'; 43797 } else if (hm < 1230) { 43798 return 'ä¸å'; 43799 } else if (hm < 1800) { 43800 return 'ä¸å'; 43801 } else { 43802 return 'æä¸'; 43803 } 43804 }, 43805 calendar : { 43806 sameDay : '[ä»å¤©]LT', 43807 nextDay : '[æå¤©]LT', 43808 nextWeek : '[ä¸]ddddLT', 43809 lastDay : '[æ¨å¤©]LT', 43810 lastWeek : '[ä¸]ddddLT', 43811 sameElse : 'L' 43812 }, 43813 dayOfMonthOrdinalParse: /\d{1,2}(æ¥|æ|å¨)/, 43814 ordinal : function (number, period) { 43815 switch (period) { 43816 case 'd': 43817 case 'D': 43818 case 'DDD': 43819 return number + 'æ¥'; 43820 case 'M': 43821 return number + 'æ'; 43822 case 'w': 43823 case 'W': 43824 return number + 'å¨'; 43825 default: 43826 return number; 43827 } 43828 }, 43829 relativeTime : { 43830 future : '%så ', 43831 past : '%så', 43832 s : 'å ç§', 43833 ss : '%d ç§', 43834 m : '1 åé', 43835 mm : '%d åé', 43836 h : '1 å°æ¶', 43837 hh : '%d å°æ¶', 43838 d : '1 天', 43839 dd : '%d 天', 43840 M : '1 个æ', 43841 MM : '%d 个æ', 43842 y : '1 å¹´', 43843 yy : '%d å¹´' 43844 }, 43845 week : { 43846 // GB/T 7408-1994ãæ°æ®å åäº¤æ¢æ ¼å¼Â·ä¿¡æ¯äº¤æ¢Â·æ¥æåæ¶é´è¡¨ç¤ºæ³ãä¸ISO 8601:1988çæ 43847 dow : 1, // Monday is the first day of the week. 43848 doy : 4 // The week that contains Jan 4th is the first week of the year. 43849 } 43850 }); 43851 43852 return zhCn; 43853 43854}))); 43855 43856 43857/***/ }), 43858/* 340 */ 43859/***/ (function(module, exports, __webpack_require__) { 43860 43861//! moment.js locale configuration 43862 43863;(function (global, factory) { 43864 true ? factory(__webpack_require__(1)) : 43865 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 43866 factory(global.moment) 43867}(this, (function (moment) { 'use strict'; 43868 43869 43870 var zhHk = moment.defineLocale('zh-hk', { 43871 months : '䏿_äºæ_䏿_åæ_äºæ_å æ_䏿_å «æ_乿_åæ_å䏿_åäºæ'.split('_'), 43872 monthsShort : '1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ'.split('_'), 43873 weekdays : 'æææ¥_ææä¸_ææäº_ææä¸_ææå_ææäº_ææå '.split('_'), 43874 weekdaysShort : '鱿¥_é±ä¸_é±äº_é±ä¸_é±å_é±äº_é±å '.split('_'), 43875 weekdaysMin : 'æ¥_ä¸_äº_ä¸_å_äº_å '.split('_'), 43876 longDateFormat : { 43877 LT : 'HH:mm', 43878 LTS : 'HH:mm:ss', 43879 L : 'YYYY/MM/DD', 43880 LL : 'YYYYå¹´MæDæ¥', 43881 LLL : 'YYYYå¹´MæDæ¥ HH:mm', 43882 LLLL : 'YYYYå¹´MæDæ¥dddd HH:mm', 43883 l : 'YYYY/M/D', 43884 ll : 'YYYYå¹´MæDæ¥', 43885 lll : 'YYYYå¹´MæDæ¥ HH:mm', 43886 llll : 'YYYYå¹´MæDæ¥dddd HH:mm' 43887 }, 43888 meridiemParse: /忍|æ©ä¸|ä¸å|ä¸å|ä¸å|æä¸/, 43889 meridiemHour : function (hour, meridiem) { 43890 if (hour === 12) { 43891 hour = 0; 43892 } 43893 if (meridiem === '忍' || meridiem === 'æ©ä¸' || meridiem === 'ä¸å') { 43894 return hour; 43895 } else if (meridiem === 'ä¸å') { 43896 return hour >= 11 ? hour : hour + 12; 43897 } else if (meridiem === 'ä¸å' || meridiem === 'æä¸') { 43898 return hour + 12; 43899 } 43900 }, 43901 meridiem : function (hour, minute, isLower) { 43902 var hm = hour * 100 + minute; 43903 if (hm < 600) { 43904 return '忍'; 43905 } else if (hm < 900) { 43906 return 'æ©ä¸'; 43907 } else if (hm < 1130) { 43908 return 'ä¸å'; 43909 } else if (hm < 1230) { 43910 return 'ä¸å'; 43911 } else if (hm < 1800) { 43912 return 'ä¸å'; 43913 } else { 43914 return 'æä¸'; 43915 } 43916 }, 43917 calendar : { 43918 sameDay : '[ä»å¤©]LT', 43919 nextDay : '[æå¤©]LT', 43920 nextWeek : '[ä¸]ddddLT', 43921 lastDay : '[æ¨å¤©]LT', 43922 lastWeek : '[ä¸]ddddLT', 43923 sameElse : 'L' 43924 }, 43925 dayOfMonthOrdinalParse: /\d{1,2}(æ¥|æ|é±)/, 43926 ordinal : function (number, period) { 43927 switch (period) { 43928 case 'd' : 43929 case 'D' : 43930 case 'DDD' : 43931 return number + 'æ¥'; 43932 case 'M' : 43933 return number + 'æ'; 43934 case 'w' : 43935 case 'W' : 43936 return number + 'é±'; 43937 default : 43938 return number; 43939 } 43940 }, 43941 relativeTime : { 43942 future : '%så §', 43943 past : '%så', 43944 s : 'å¹¾ç§', 43945 ss : '%d ç§', 43946 m : '1 åé', 43947 mm : '%d åé', 43948 h : '1 å°æ', 43949 hh : '%d å°æ', 43950 d : '1 天', 43951 dd : '%d 天', 43952 M : '1 åæ', 43953 MM : '%d åæ', 43954 y : '1 å¹´', 43955 yy : '%d å¹´' 43956 } 43957 }); 43958 43959 return zhHk; 43960 43961}))); 43962 43963 43964/***/ }), 43965/* 341 */ 43966/***/ (function(module, exports, __webpack_require__) { 43967 43968//! moment.js locale configuration 43969 43970;(function (global, factory) { 43971 true ? factory(__webpack_require__(1)) : 43972 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 43973 factory(global.moment) 43974}(this, (function (moment) { 'use strict'; 43975 43976 43977 var zhTw = moment.defineLocale('zh-tw', { 43978 months : '䏿_äºæ_䏿_åæ_äºæ_å æ_䏿_å «æ_乿_åæ_å䏿_åäºæ'.split('_'), 43979 monthsShort : '1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ'.split('_'), 43980 weekdays : 'æææ¥_ææä¸_ææäº_ææä¸_ææå_ææäº_ææå '.split('_'), 43981 weekdaysShort : '鱿¥_é±ä¸_é±äº_é±ä¸_é±å_é±äº_é±å '.split('_'), 43982 weekdaysMin : 'æ¥_ä¸_äº_ä¸_å_äº_å '.split('_'), 43983 longDateFormat : { 43984 LT : 'HH:mm', 43985 LTS : 'HH:mm:ss', 43986 L : 'YYYY/MM/DD', 43987 LL : 'YYYYå¹´MæDæ¥', 43988 LLL : 'YYYYå¹´MæDæ¥ HH:mm', 43989 LLLL : 'YYYYå¹´MæDæ¥dddd HH:mm', 43990 l : 'YYYY/M/D', 43991 ll : 'YYYYå¹´MæDæ¥', 43992 lll : 'YYYYå¹´MæDæ¥ HH:mm', 43993 llll : 'YYYYå¹´MæDæ¥dddd HH:mm' 43994 }, 43995 meridiemParse: /忍|æ©ä¸|ä¸å|ä¸å|ä¸å|æä¸/, 43996 meridiemHour : function (hour, meridiem) { 43997 if (hour === 12) { 43998 hour = 0; 43999 } 44000 if (meridiem === '忍' || meridiem === 'æ©ä¸' || meridiem === 'ä¸å') { 44001 return hour; 44002 } else if (meridiem === 'ä¸å') { 44003 return hour >= 11 ? hour : hour + 12; 44004 } else if (meridiem === 'ä¸å' || meridiem === 'æä¸') { 44005 return hour + 12; 44006 } 44007 }, 44008 meridiem : function (hour, minute, isLower) { 44009 var hm = hour * 100 + minute; 44010 if (hm < 600) { 44011 return '忍'; 44012 } else if (hm < 900) { 44013 return 'æ©ä¸'; 44014 } else if (hm < 1130) { 44015 return 'ä¸å'; 44016 } else if (hm < 1230) { 44017 return 'ä¸å'; 44018 } else if (hm < 1800) { 44019 return 'ä¸å'; 44020 } else { 44021 return 'æä¸'; 44022 } 44023 }, 44024 calendar : { 44025 sameDay : '[ä»å¤©] LT', 44026 nextDay : '[æå¤©] LT', 44027 nextWeek : '[ä¸]dddd LT', 44028 lastDay : '[æ¨å¤©] LT', 44029 lastWeek : '[ä¸]dddd LT', 44030 sameElse : 'L' 44031 }, 44032 dayOfMonthOrdinalParse: /\d{1,2}(æ¥|æ|é±)/, 44033 ordinal : function (number, period) { 44034 switch (period) { 44035 case 'd' : 44036 case 'D' : 44037 case 'DDD' : 44038 return number + 'æ¥'; 44039 case 'M' : 44040 return number + 'æ'; 44041 case 'w' : 44042 case 'W' : 44043 return number + 'é±'; 44044 default : 44045 return number; 44046 } 44047 }, 44048 relativeTime : { 44049 future : '%så §', 44050 past : '%så', 44051 s : 'å¹¾ç§', 44052 ss : '%d ç§', 44053 m : '1 åé', 44054 mm : '%d åé', 44055 h : '1 å°æ', 44056 hh : '%d å°æ', 44057 d : '1 天', 44058 dd : '%d 天', 44059 M : '1 åæ', 44060 MM : '%d åæ', 44061 y : '1 å¹´', 44062 yy : '%d å¹´' 44063 } 44064 }); 44065 44066 return zhTw; 44067 44068}))); 44069 44070 44071/***/ }), 44072/* 342 */, 44073/* 343 */ 44074/***/ (function(module, exports, __webpack_require__) { 44075 44076/* WEBPACK VAR INJECTION */(function(global) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* 44077 * base64.js 44078 * 44079 * Licensed under the BSD 3-Clause License. 44080 * http://opensource.org/licenses/BSD-3-Clause 44081 * 44082 * References: 44083 * http://en.wikipedia.org/wiki/Base64 44084 */ 44085;(function (global, factory) { 44086 true 44087 ? module.exports = factory(global) 44088 : typeof define === 'function' && define.amd 44089 ? define(factory) : factory(global) 44090}(( 44091 typeof self !== 'undefined' ? self 44092 : typeof window !== 'undefined' ? window 44093 : typeof global !== 'undefined' ? global 44094: this 44095), function(global) { 44096 'use strict'; 44097 // existing version for noConflict() 44098 var _Base64 = global.Base64; 44099 var version = "2.4.9"; 44100 // if node.js and NOT React Native, we use Buffer 44101 var buffer; 44102 if (typeof module !== 'undefined' && module.exports) { 44103 try { 44104 buffer = eval("require('buffer').Buffer"); 44105 } catch (err) { 44106 buffer = undefined; 44107 } 44108 } 44109 // constants 44110 var b64chars 44111 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 8,666 bytes, lines 44111-44362
44111+/'; 44112 var b64tab = function(bin) { 44113 var t = {}; 44114 for (var i = 0, l = bin.length; i < l; i++) t[bin.charAt(i)] = i; 44115 return t; 44116 }(b64chars); 44117 var fromCharCode = String.fromCharCode; 44118 // encoder stuff 44119 var cb_utob = function(c) { 44120 if (c.length < 2) { 44121 var cc = c.charCodeAt(0); 44122 return cc < 0x80 ? c 44123 : cc < 0x800 ? (fromCharCode(0xc0 | (cc >>> 6)) 44124 + fromCharCode(0x80 | (cc & 0x3f))) 44125 : (fromCharCode(0xe0 | ((cc >>> 12) & 0x0f)) 44126 + fromCharCode(0x80 | ((cc >>> 6) & 0x3f)) 44127 + fromCharCode(0x80 | ( cc & 0x3f))); 44128 } else { 44129 var cc = 0x10000 44130 + (c.charCodeAt(0) - 0xD800) * 0x400 44131 + (c.charCodeAt(1) - 0xDC00); 44132 return (fromCharCode(0xf0 | ((cc >>> 18) & 0x07)) 44133 + fromCharCode(0x80 | ((cc >>> 12) & 0x3f)) 44134 + fromCharCode(0x80 | ((cc >>> 6) & 0x3f)) 44135 + fromCharCode(0x80 | ( cc & 0x3f))); 44136 } 44137 }; 44138 var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g; 44139 var utob = function(u) { 44140 return u.replace(re_utob, cb_utob); 44141 }; 44142 var cb_encode = function(ccc) { 44143 var padlen = [0, 2, 1][ccc.length % 3], 44144 ord = ccc.charCodeAt(0) << 16 44145 | ((ccc.length > 1 ? ccc.charCodeAt(1) : 0) << 8) 44146 | ((ccc.length > 2 ? ccc.charCodeAt(2) : 0)), 44147 chars = [ 44148 b64chars.charAt( ord >>> 18), 44149 b64chars.charAt((ord >>> 12) & 63), 44150 padlen >= 2 ? '=' : b64chars.charAt((ord >>> 6) & 63), 44151 padlen >= 1 ? '=' : b64chars.charAt(ord & 63) 44152 ]; 44153 return chars.join(''); 44154 }; 44155 var btoa = global.btoa ? function(b) { 44156 return global.btoa(b); 44157 } : function(b) { 44158 return b.replace(/[\s\S]{1,3}/g, cb_encode); 44159 }; 44160 var _encode = buffer ? 44161 buffer.from && Uint8Array && buffer.from !== Uint8Array.from 44162 ? function (u) { 44163 return (u.constructor === buffer.constructor ? u : buffer.from(u)) 44164 .toString('base64') 44165 } 44166 : function (u) { 44167 return (u.constructor === buffer.constructor ? u : new buffer(u)) 44168 .toString('base64') 44169 } 44170 : function (u) { return btoa(utob(u)) } 44171 ; 44172 var encode = function(u, urisafe) { 44173 return !urisafe 44174 ? _encode(String(u)) 44175 : _encode(String(u)).replace(/[+\/]/g, function(m0) { 44176 return m0 == '+' ? '-' : '_'; 44177 }).replace(/=/g, ''); 44178 }; 44179 var encodeURI = function(u) { return encode(u, true) }; 44180 // decoder stuff 44181 var re_btou = new RegExp([ 44182 '[\xC0-\xDF][\x80-\xBF]', 44183 '[\xE0-\xEF][\x80-\xBF]{2}', 44184 '[\xF0-\xF7][\x80-\xBF]{3}' 44185 ].join('|'), 'g'); 44186 var cb_btou = function(cccc) { 44187 switch(cccc.length) { 44188 case 4: 44189 var cp = ((0x07 & cccc.charCodeAt(0)) << 18) 44190 | ((0x3f & cccc.charCodeAt(1)) << 12) 44191 | ((0x3f & cccc.charCodeAt(2)) << 6) 44192 | (0x3f & cccc.charCodeAt(3)), 44193 offset = cp - 0x10000; 44194 return (fromCharCode((offset >>> 10) + 0xD800) 44195 + fromCharCode((offset & 0x3FF) + 0xDC00)); 44196 case 3: 44197 return fromCharCode( 44198 ((0x0f & cccc.charCodeAt(0)) << 12) 44199 | ((0x3f & cccc.charCodeAt(1)) << 6) 44200 | (0x3f & cccc.charCodeAt(2)) 44201 ); 44202 default: 44203 return fromCharCode( 44204 ((0x1f & cccc.charCodeAt(0)) << 6) 44205 | (0x3f & cccc.charCodeAt(1)) 44206 ); 44207 } 44208 }; 44209 var btou = function(b) { 44210 return b.replace(re_btou, cb_btou); 44211 }; 44212 var cb_decode = function(cccc) { 44213 var len = cccc.length, 44214 padlen = len % 4, 44215 n = (len > 0 ? b64tab[cccc.charAt(0)] << 18 : 0) 44216 | (len > 1 ? b64tab[cccc.charAt(1)] << 12 : 0) 44217 | (len > 2 ? b64tab[cccc.charAt(2)] << 6 : 0) 44218 | (len > 3 ? b64tab[cccc.charAt(3)] : 0), 44219 chars = [ 44220 fromCharCode( n >>> 16), 44221 fromCharCode((n >>> 8) & 0xff), 44222 fromCharCode( n & 0xff) 44223 ]; 44224 chars.length -= [0, 0, 2, 1][padlen]; 44225 return chars.join(''); 44226 }; 44227 var atob = global.atob ? function(a) { 44228 return global.atob(a); 44229 } : function(a){ 44230 return a.replace(/[\s\S]{1,4}/g, cb_decode); 44231 }; 44232 var _decode = buffer ? 44233 buffer.from && Uint8Array && buffer.from !== Uint8Array.from 44234 ? function(a) { 44235 return (a.constructor === buffer.constructor 44236 ? a : buffer.from(a, 'base64')).toString(); 44237 } 44238 : function(a) { 44239 return (a.constructor === buffer.constructor 44240 ? a : new buffer(a, 'base64')).toString(); 44241 } 44242 : function(a) { return btou(atob(a)) }; 44243 var decode = function(a){ 44244 return _decode( 44245 String(a).replace(/[-_]/g, function(m0) { return m0 == '-' ? '+' : '/' }) 44246 .replace(/[^A-Za-z0-9\+\/]/g, '') 44247 ); 44248 }; 44249 var noConflict = function() { 44250 var Base64 = global.Base64; 44251 global.Base64 = _Base64; 44252 return Base64; 44253 }; 44254 // export Base64 44255 global.Base64 = { 44256 VERSION: version, 44257 atob: atob, 44258 btoa: btoa, 44259 fromBase64: decode, 44260 toBase64: encode, 44261 utob: utob, 44262 encode: encode, 44263 encodeURI: encodeURI, 44264 btou: btou, 44265 decode: decode, 44266 noConflict: noConflict, 44267 __buffer__: buffer 44268 }; 44269 // if ES5 is available, make Base64.extendString() available 44270 if (typeof Object.defineProperty === 'function') { 44271 var noEnum = function(v){ 44272 return {value:v,enumerable:false,writable:true,configurable:true}; 44273 }; 44274 global.Base64.extendString = function () { 44275 Object.defineProperty( 44276 String.prototype, 'fromBase64', noEnum(function () { 44277 return decode(this) 44278 })); 44279 Object.defineProperty( 44280 String.prototype, 'toBase64', noEnum(function (urisafe) { 44281 return encode(this, urisafe) 44282 })); 44283 Object.defineProperty( 44284 String.prototype, 'toBase64URI', noEnum(function () { 44285 return encode(this, true) 44286 })); 44287 }; 44288 } 44289 // 44290 // export Base64 to the namespace 44291 // 44292 if (global['Meteor']) { // Meteor.js 44293 Base64 = global.Base64; 44294 } 44295 // module.exports and AMD are mutually exclusive. 44296 // module.exports has precedence. 44297 if (typeof module !== 'undefined' && module.exports) { 44298 module.exports.Base64 = global.Base64; 44299 } 44300 else if (true) { 44301 // AMD. Register as an anonymous module. 44302 !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function(){ return global.Base64 }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), 44303 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); 44304 } 44305 // that's it! 44306 return {Base64: global.Base64} 44307})); 44308 44309/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(68))) 44310 44311/***/ }), 44312/* 344 */, 44313/* 345 */ 44314/***/ (function(module, exports, __webpack_require__) { 44315 44316module.exports = __webpack_require__(576); 44317 44318/***/ }), 44319/* 346 */ 44320/***/ (function(module, exports, __webpack_require__) { 44321 44322"use strict"; 44323 44324 44325module.exports = function bind(fn, thisArg) { 44326 return function wrap() { 44327 var args = new Array(arguments.length); 44328 for (var i = 0; i < args.length; i++) { 44329 args[i] = arguments[i]; 44330 } 44331 return fn.apply(thisArg, args); 44332 }; 44333}; 44334 44335 44336/***/ }), 44337/* 347 */ 44338/***/ (function(module, exports, __webpack_require__) { 44339 44340"use strict"; 44341 44342 44343var utils = __webpack_require__(26); 44344var settle = __webpack_require__(580); 44345var buildURL = __webpack_require__(582); 44346var parseHeaders = __webpack_require__(583); 44347var isURLSameOrigin = __webpack_require__(584); 44348var createError = __webpack_require__(348); 44349var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__(585); 44350 44351module.exports = function xhrAdapter(config) { 44352 return new Promise(function dispatchXhrRequest(resolve, reject) { 44353 var requestData = config.data; 44354 var requestHeaders = config.headers; 44355 44356 if (utils.isFormData(requestData)) { 44357 delete requestHeaders['Content-Type']; // Let the browser set it 44358 } 44359 44360 var request = new XMLHttpRequest(); 44361 var loadEvent = 'onreadystatechange'; 44362 var xDomain = false;
vendor: 4,117 bytes, lines 44363-44477
44363 44364 // For IE 8/9 CORS support 44365 // Only supports POST and GET calls and doesn't returns the response headers. 44366 // DON'T do this for testing b/c XMLHttpRequest is mocked, not XDomainRequest. 44367 if ("dev" !== 'test' && 44368 typeof window !== 'undefined' && 44369 window.XDomainRequest && !('withCredentials' in request) && 44370 !isURLSameOrigin(config.url)) { 44371 request = new window.XDomainRequest(); 44372 loadEvent = 'onload'; 44373 xDomain = true; 44374 request.onprogress = function handleProgress() {}; 44375 request.ontimeout = function handleTimeout() {}; 44376 } 44377 44378 // HTTP basic authentication 44379 if (config.auth) { 44380 var username = config.auth.username || ''; 44381 var password = config.auth.password || ''; 44382 requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); 44383 } 44384 44385 request.open(config.method.toUpperCase(), buildURL(config.url, config.params, config.paramsSerializer), true); 44386 44387 // Set the request timeout in MS 44388 request.timeout = config.timeout; 44389 44390 // Listen for ready state 44391 request[loadEvent] = function handleLoad() { 44392 if (!request || (request.readyState !== 4 && !xDomain)) { 44393 return; 44394 } 44395 44396 // The request errored out and we didn't get a response, this will be 44397 // handled by onerror instead 44398 // With one exception: request that using file: protocol, most browsers 44399 // will return status as 0 even though it's a successful request 44400 if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { 44401 return; 44402 } 44403 44404 // Prepare the response 44405 var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; 44406 var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response; 44407 var response = { 44408 data: responseData, 44409 // IE sends 1223 instead of 204 (https://github.com/mzabriskie/axios/issues/201) 44410 status: request.status === 1223 ? 204 : request.status, 44411 statusText: request.status === 1223 ? 'No Content' : request.statusText, 44412 headers: responseHeaders, 44413 config: config, 44414 request: request 44415 }; 44416 44417 settle(resolve, reject, response); 44418 44419 // Clean up request 44420 request = null; 44421 }; 44422 44423 // Handle low level network errors 44424 request.onerror = function handleError() { 44425 // Real errors are hidden from us by the browser 44426 // onerror should only fire if it's a network error 44427 reject(createError('Network Error', config, null, request)); 44428 44429 // Clean up request 44430 request = null; 44431 }; 44432 44433 // Handle timeout 44434 request.ontimeout = function handleTimeout() { 44435 reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED', 44436 request)); 44437 44438 // Clean up request 44439 request = null; 44440 }; 44441 44442 // Add xsrf header 44443 // This is only done if running in a standard browser environment. 44444 // Specifically not if we're in a web worker, or react-native. 44445 if (utils.isStandardBrowserEnv()) { 44446 var cookies = __webpack_require__(586); 44447 44448 // Add xsrf header 44449 var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ? 44450 cookies.read(config.xsrfCookieName) : 44451 undefined; 44452 44453 if (xsrfValue) { 44454 requestHeaders[config.xsrfHeaderName] = xsrfValue; 44455 } 44456 } 44457 44458 // Add headers to the request 44459 if ('setRequestHeader' in request) { 44460 utils.forEach(requestHeaders, function setRequestHeader(val, key) { 44461 if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { 44462 // Remove Content-Type if data is undefined 44463 delete requestHeaders[key]; 44464 } else { 44465 // Otherwise add header to the request 44466 request.setRequestHeader(key, val); 44467 } 44468 }); 44469 } 44470 44471 // Add withCredentials to request if needed 44472 if (config.withCredentials) { 44473 request.withCredentials = true; 44474 } 44475 44476 // Add responseType to request if needed 44477 if (config.responseType) {
44478 try { 44479 request.responseType = config.responseType; 44480 } catch (e) { 44481 // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2. 44482 // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function. 44483 if (config.responseType !== 'json') { 44484 throw e; 44485 } 44486 } 44487 } 44488 44489 // Handle progress if needed 44490 if (typeof config.onDownloadProgress === 'function') { 44491 request.addEventListener('progress', config.onDownloadProgress); 44492 } 44493 44494 // Not all browsers support upload events 44495 if (typeof config.onUploadProgress === 'function' && request.upload) { 44496 request.upload.addEventListener('progress', config.onUploadProgress); 44497 } 44498 44499 if (config.cancelToken) { 44500 // Handle cancellation 44501 config.cancelToken.promise.then(function onCanceled(cancel) { 44502 if (!request) { 44503 return; 44504 } 44505 44506 request.abort(); 44507 reject(cancel); 44508 // Clean up request 44509 request = null; 44510 }); 44511 } 44512 44513 if (requestData === undefined) { 44514 requestData = null; 44515 } 44516 44517 // Send the request 44518 request.send(requestData); 44519 }); 44520}; 44521 44522 44523/***/ }), 44524/* 348 */ 44525/***/ (function(module, exports, __webpack_require__) { 44526 44527"use strict"; 44528 44529 44530var enhanceError = __webpack_require__(581); 44531 44532/** 44533 * Create an Error with the specified message, config, error code, request and response. 44534 * 44535 * @param {string} message The error message. 44536 * @param {Object} config The config. 44537 * @param {string} [code] The error code (for example, 'ECONNABORTED'). 44538 * @param {Object} [request] The request. 44539 * @param {Object} [response] The response. 44540 * @returns {Error} The created error. 44541 */ 44542module.exports = function createError(message, config, code, request, response) { 44543 var error = new Error(message); 44544 return enhanceError(error, config, code, request, response); 44545}; 44546 44547 44548/***/ }), 44549/* 349 */ 44550/***/ (function(module, exports, __webpack_require__) { 44551 44552"use strict"; 44553 44554 44555module.exports = function isCancel(value) { 44556 return !!(value && value.__CANCEL__); 44557}; 44558 44559 44560/***/ }), 44561/* 350 */ 44562/***/ (function(module, exports, __webpack_require__) { 44563 44564"use strict"; 44565 44566 44567/** 44568 * A `Cancel` is an object that is thrown when an operation is canceled. 44569 * 44570 * @class 44571 * @param {string=} message The message. 44572 */ 44573function Cancel(message) { 44574 this.message = message; 44575} 44576 44577Cancel.prototype.toString = function toString() { 44578 return 'Cancel' + (this.message ? ': ' + this.message : ''); 44579}; 44580 44581Cancel.prototype.__CANCEL__ = true; 44582 44583module.exports = Cancel; 44584 44585 44586/***/ }), 44587/* 351 */, 44588/* 352 */ 44589/***/ (function(module, exports, __webpack_require__) { 44590 44591"use strict"; 44592 44593 44594exports.__esModule = true; 44595 44596function _interopRequire(obj) { return obj && obj.__esModule ? obj['default'] : obj; } 44597 44598var _Motion = __webpack_require__(607); 44599 44600exports.Motion = _interopRequire(_Motion); 44601 44602var _StaggeredMotion = __webpack_require__(609); 44603 44604exports.StaggeredMotion = _interopRequire(_StaggeredMotion); 44605 44606var _TransitionMotion = __webpack_require__(610); 44607 44608exports.TransitionMotion = _interopRequire(_TransitionMotion); 44609 44610var _spring = __webpack_require__(612); 44611 44612exports.spring = _interopRequire(_spring); 44613 44614var _presets = __webpack_require__(353); 44615 44616exports.presets = _interopRequire(_presets); 44617 44618var _stripStyle = __webpack_require__(89); 44619 44620exports.stripStyle = _interopRequire(_stripStyle); 44621 44622// deprecated, dummy warning function 44623 44624var _reorderKeys = __webpack_require__(613); 44625 44626exports.reorderKeys = _interopRequire(_reorderKeys); 44627 44628/***/ }), 44629/* 353 */ 44630/***/ (function(module, exports, __webpack_require__) { 44631 44632"use strict"; 44633 44634 44635exports.__esModule = true; 44636exports["default"] = { 44637 noWobble: { stiffness: 170, damping: 26 }, // the default, if nothing provided 44638 gentle: { stiffness: 120, damping: 14 }, 44639 wobbly: { stiffness: 180, damping: 12 }, 44640 stiff: { stiffness: 210, damping: 20 } 44641}; 44642module.exports = exports["default"]; 44643 44644/***/ }), 44645/* 354 */ 44646/***/ (function(module, exports, __webpack_require__) { 44647 44648"use strict"; 44649 44650 44651Object.defineProperty(exports, "__esModule", { 44652 value: true 44653}); 44654exports.default = findTabbableDescendants; 44655/*! 44656 * Adapted from jQuery UI core 44657 * 44658 * http://jqueryui.com 44659 * 44660 * Copyright 2014 jQuery Foundation and other contributors 44661 * Released under the MIT license. 44662 * http://jquery.org/license 44663 * 44664 * http://api.jqueryui.com/category/ui-core/ 44665 */ 44666 44667var tabbableNode = /input|select|textarea|button|object/; 44668 44669function hidden(el) { 44670 return el.offsetWidth <= 0 && el.offsetHeight <= 0 || el.style.display === 'none'; 44671} 44672 44673function visible(element) { 44674 var parentElement = element; 44675 while (parentElement) { 44676 if (parentElement === document.body) break; 44677 if (hidden(parentElement)) return false;
44678 parentElement = parentElement.parentNode; 44679 } 44680 return true; 44681} 44682 44683function focusable(element, isTabIndexNotNaN) { 44684 var nodeName = element.nodeName.toLowerCase(); 44685 var res = tabbableNode.test(nodeName) && !element.disabled || (nodeName === "a" ? element.href || isTabIndexNotNaN : isTabIndexNotNaN); 44686 return res && visible(element); 44687} 44688 44689function tabbable(element) { 44690 var tabIndex = element.getAttribute('tabindex'); 44691 if (tabIndex === null) tabIndex = undefined; 44692 var isTabIndexNaN = isNaN(tabIndex); 44693 return (isTabIndexNaN || tabIndex >= 0) && focusable(element, !isTabIndexNaN); 44694} 44695 44696function findTabbableDescendants(element) { 44697 return [].slice.call(element.querySelectorAll('*'), 0).filter(tabbable); 44698} 44699module.exports = exports['default']; 44700 44701/***/ }), 44702/* 355 */ 44703/***/ (function(module, exports, __webpack_require__) { 44704 44705"use strict"; 44706 44707 44708Object.defineProperty(exports, "__esModule", { 44709 value: true 44710}); 44711exports.assertNodeList = assertNodeList; 44712exports.setElement = setElement; 44713exports.tryForceFallback = tryForceFallback; 44714exports.validateElement = validateElement; 44715exports.hide = hide; 44716exports.show = show; 44717exports.documentNotReadyOrSSRTesting = documentNotReadyOrSSRTesting; 44718exports.resetForTesting = resetForTesting; 44719var globalElement = null; 44720 44721function assertNodeList(nodeList, selector) { 44722 if (!nodeList || !nodeList.length) { 44723 throw new Error('react-modal: No elements were found for selector ' + selector + '.'); 44724 } 44725} 44726 44727function setElement(element) { 44728 var useElement = element; 44729 if (typeof useElement === 'string') { 44730 var el = document.querySelectorAll(useElement); 44731 assertNodeList(el, useElement); 44732 useElement = 'length' in el ? el[0] : el; 44733 } 44734 globalElement = useElement || globalElement; 44735 return globalElement; 44736} 44737 44738function tryForceFallback() { 44739 if (document && document.body) { 44740 // force fallback to document.body 44741 setElement(document.body); 44742 return true; 44743 } 44744 return false; 44745} 44746 44747function validateElement(appElement) { 44748 if (!appElement && !globalElement && !tryForceFallback()) { 44749 throw new Error(['react-modal: Cannot fallback to `document.body`, because it\'s not ready or available.', 'If you are doing server-side rendering, use this function to defined an element.', '`Modal.setAppElement(el)` to make this accessible']); 44750 } 44751} 44752 44753function hide(appElement) { 44754 validateElement(appElement); 44755 (appElement || globalElement).setAttribute('aria-hidden', 'true'); 44756} 44757 44758function show(appElement) { 44759 validateElement(appElement); 44760 (appElement || globalElement).removeAttribute('aria-hidden'); 44761} 44762 44763function documentNotReadyOrSSRTesting() { 44764 globalElement = null; 44765} 44766 44767function resetForTesting() { 44768 globalElement = document.body; 44769} 44770 44771/***/ }), 44772/* 356 */ 44773/***/ (function(module, exports, __webpack_require__) { 44774 44775"use strict"; 44776 44777 44778Object.defineProperty(exports, "__esModule", { 44779 value: true 44780}); 44781exports.get = get; 44782exports.add = add; 44783exports.remove = remove; 44784exports.totalCount = totalCount; 44785var classListMap = {}; 44786 44787function get() { 44788 return classListMap; 44789} 44790 44791function add(bodyClass) { 44792 // Set variable and default if none 44793 if (!classListMap[bodyClass]) { 44794 classListMap[bodyClass] = 0; 44795 } 44796 classListMap[bodyClass] += 1; 44797 return bodyClass; 44798} 44799 44800function remove(bodyClass) { 44801 if (classListMap[bodyClass]) { 44802 classListMap[bodyClass] -= 1; 44803 } 44804 return bodyClass; 44805} 44806 44807function totalCount() { 44808 return Object.keys(classListMap).reduce(function (acc, curr) { 44809 return acc + classListMap[curr]; 44810 }, 0); 44811} 44812 44813/***/ }), 44814/* 357 */ 44815/***/ (function(module, exports, __webpack_require__) { 44816 44817"use strict"; 44818 44819 44820Object.defineProperty(exports, "__esModule", { 44821 value: true 44822}); 44823 44824var _exenv = __webpack_require__(623); 44825 44826var _exenv2 = _interopRequireDefault(_exenv); 44827 44828function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 44829 44830var EE = _exenv2.default; 44831 44832var SafeHTMLElement = EE.canUseDOM ? window.HTMLElement : {}; 44833 44834exports.default = SafeHTMLElement; 44835module.exports = exports['default']; 44836 44837/***/ }), 44838/* 358 */, 44839/* 359 */ 44840/***/ (function(module, __webpack_exports__, __webpack_require__) { 44841 44842"use strict"; 44843Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); 44844/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Accordion__ = __webpack_require__(635); 44845/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Accordion", function() { return __WEBPACK_IMPORTED_MODULE_0__Accordion__["a"]; }); 44846/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Alert__ = __webpack_require__(672); 44847/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Alert", function() { return __WEBPACK_IMPORTED_MODULE_1__Alert__["a"]; }); 44848/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Badge__ = __webpack_require__(675); 44849/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Badge", function() { return __WEBPACK_IMPORTED_MODULE_2__Badge__["a"]; }); 44850/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Breadcrumb__ = __webpack_require__(676); 44851/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Breadcrumb", function() { return __WEBPACK_IMPORTED_MODULE_3__Breadcrumb__["a"]; }); 44852/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__BreadcrumbItem__ = __webpack_require__(374); 44853/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "BreadcrumbItem", function() { return __WEBPACK_IMPORTED_MODULE_4__BreadcrumbItem__["a"]; }); 44854/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Button__ = __webpack_require__(74); 44855/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return __WEBPACK_IMPORTED_MODULE_5__Button__["a"]; }); 44856/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ButtonGroup__ = __webpack_require__(153); 44857/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonGroup", function() { return __WEBPACK_IMPORTED_MODULE_6__ButtonGroup__["a"]; }); 44858/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ButtonToolbar__ = __webpack_require__(679); 44859/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonToolbar", function() { return __WEBPACK_IMPORTED_MODULE_7__ButtonToolbar__["a"]; }); 44860/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Carousel__ = __webpack_require__(680); 44861/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Carousel", function() { return __WEBPACK_IMPORTED_MODULE_8__Carousel__["a"]; }); 44862/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__CarouselItem__ = __webpack_require__(375); 44863/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "CarouselItem", function() { return __WEBPACK_IMPORTED_MODULE_9__CarouselItem__["a"]; }); 44864/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Checkbox__ = __webpack_require__(683); 44865/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Checkbox", function() { return __WEBPACK_IMPORTED_MODULE_10__Checkbox__["a"]; }); 44866/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__Clearfix__ = __webpack_require__(684); 44867/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Clearfix", function() { return __WEBPACK_IMPORTED_MODULE_11__Clearfix__["a"]; }); 44868/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__CloseButton__ = __webpack_require__(152); 44869/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "CloseButton", function() { return __WEBPACK_IMPORTED_MODULE_12__CloseButton__["a"]; });
44870/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__ControlLabel__ = __webpack_require__(685); 44871/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ControlLabel", function() { return __WEBPACK_IMPORTED_MODULE_13__ControlLabel__["a"]; }); 44872/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__Col__ = __webpack_require__(686); 44873/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Col", function() { return __WEBPACK_IMPORTED_MODULE_14__Col__["a"]; }); 44874/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__Collapse__ = __webpack_require__(155); 44875/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Collapse", function() { return __WEBPACK_IMPORTED_MODULE_15__Collapse__["a"]; }); 44876/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__Dropdown__ = __webpack_require__(97); 44877/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Dropdown", function() { return __WEBPACK_IMPORTED_MODULE_16__Dropdown__["a"]; }); 44878/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__DropdownButton__ = __webpack_require__(706); 44879/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "DropdownButton", function() { return __WEBPACK_IMPORTED_MODULE_17__DropdownButton__["a"]; }); 44880/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__Fade__ = __webpack_require__(100); 44881/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Fade", function() { return __WEBPACK_IMPORTED_MODULE_18__Fade__["a"]; }); 44882/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__Form__ = __webpack_require__(707); 44883/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Form", function() { return __WEBPACK_IMPORTED_MODULE_19__Form__["a"]; }); 44884/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__FormControl__ = __webpack_require__(708); 44885/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "FormControl", function() { return __WEBPACK_IMPORTED_MODULE_20__FormControl__["a"]; }); 44886/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__FormGroup__ = __webpack_require__(711); 44887/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "FormGroup", function() { return __WEBPACK_IMPORTED_MODULE_21__FormGroup__["a"]; }); 44888/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__Glyphicon__ = __webpack_require__(154); 44889/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Glyphicon", function() { return __WEBPACK_IMPORTED_MODULE_22__Glyphicon__["a"]; }); 44890/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__Grid__ = __webpack_require__(384); 44891/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Grid", function() { return __WEBPACK_IMPORTED_MODULE_23__Grid__["a"]; }); 44892/* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__HelpBlock__ = __webpack_require__(712); 44893/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "HelpBlock", function() { return __WEBPACK_IMPORTED_MODULE_24__HelpBlock__["a"]; }); 44894/* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__Image__ = __webpack_require__(713); 44895/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Image", function() { return __WEBPACK_IMPORTED_MODULE_25__Image__["a"]; }); 44896/* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__InputGroup__ = __webpack_require__(714); 44897/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "InputGroup", function() { return __WEBPACK_IMPORTED_MODULE_26__InputGroup__["a"]; }); 44898/* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__Jumbotron__ = __webpack_require__(717); 44899/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Jumbotron", function() { return __WEBPACK_IMPORTED_MODULE_27__Jumbotron__["a"]; }); 44900/* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__Label__ = __webpack_require__(718); 44901/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Label", function() { return __WEBPACK_IMPORTED_MODULE_28__Label__["a"]; }); 44902/* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__ListGroup__ = __webpack_require__(719); 44903/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ListGroup", function() { return __WEBPACK_IMPORTED_MODULE_29__ListGroup__["a"]; }); 44904/* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__ListGroupItem__ = __webpack_require__(385); 44905/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ListGroupItem", function() { return __WEBPACK_IMPORTED_MODULE_30__ListGroupItem__["a"]; }); 44906/* harmony import */ var __WEBPACK_IMPORTED_MODULE_31__Media__ = __webpack_require__(101); 44907/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Media", function() { return __WEBPACK_IMPORTED_MODULE_31__Media__["a"]; }); 44908/* harmony import */ var __WEBPACK_IMPORTED_MODULE_32__MenuItem__ = __webpack_require__(726); 44909/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return __WEBPACK_IMPORTED_MODULE_32__MenuItem__["a"]; }); 44910/* harmony import */ var __WEBPACK_IMPORTED_MODULE_33__Modal__ = __webpack_require__(727); 44911/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Modal", function() { return __WEBPACK_IMPORTED_MODULE_33__Modal__["a"]; }); 44912/* harmony import */ var __WEBPACK_IMPORTED_MODULE_34__ModalBody__ = __webpack_require__(390); 44913/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ModalBody", function() { return __WEBPACK_IMPORTED_MODULE_34__ModalBody__["a"]; }); 44914/* harmony import */ var __WEBPACK_IMPORTED_MODULE_35__ModalFooter__ = __webpack_require__(391); 44915/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ModalFooter", function() { return __WEBPACK_IMPORTED_MODULE_35__ModalFooter__["a"]; }); 44916/* harmony import */ var __WEBPACK_IMPORTED_MODULE_36__ModalHeader__ = __webpack_require__(392); 44917/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ModalHeader", function() { return __WEBPACK_IMPORTED_MODULE_36__ModalHeader__["a"]; });
44918/* harmony import */ var __WEBPACK_IMPORTED_MODULE_37__ModalTitle__ = __webpack_require__(393); 44919/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ModalTitle", function() { return __WEBPACK_IMPORTED_MODULE_37__ModalTitle__["a"]; }); 44920/* harmony import */ var __WEBPACK_IMPORTED_MODULE_38__Nav__ = __webpack_require__(394); 44921/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Nav", function() { return __WEBPACK_IMPORTED_MODULE_38__Nav__["a"]; }); 44922/* harmony import */ var __WEBPACK_IMPORTED_MODULE_39__Navbar__ = __webpack_require__(743); 44923/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Navbar", function() { return __WEBPACK_IMPORTED_MODULE_39__Navbar__["a"]; }); 44924/* harmony import */ var __WEBPACK_IMPORTED_MODULE_40__NavbarBrand__ = __webpack_require__(395); 44925/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "NavbarBrand", function() { return __WEBPACK_IMPORTED_MODULE_40__NavbarBrand__["a"]; }); 44926/* harmony import */ var __WEBPACK_IMPORTED_MODULE_41__NavDropdown__ = __webpack_require__(747); 44927/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "NavDropdown", function() { return __WEBPACK_IMPORTED_MODULE_41__NavDropdown__["a"]; }); 44928/* harmony import */ var __WEBPACK_IMPORTED_MODULE_42__NavItem__ = __webpack_require__(396); 44929/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "NavItem", function() { return __WEBPACK_IMPORTED_MODULE_42__NavItem__["a"]; }); 44930/* harmony import */ var __WEBPACK_IMPORTED_MODULE_43__Overlay__ = __webpack_require__(397); 44931/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Overlay", function() { return __WEBPACK_IMPORTED_MODULE_43__Overlay__["a"]; }); 44932/* harmony import */ var __WEBPACK_IMPORTED_MODULE_44__OverlayTrigger__ = __webpack_require__(754); 44933/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "OverlayTrigger", function() { return __WEBPACK_IMPORTED_MODULE_44__OverlayTrigger__["a"]; }); 44934/* harmony import */ var __WEBPACK_IMPORTED_MODULE_45__PageHeader__ = __webpack_require__(755); 44935/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "PageHeader", function() { return __WEBPACK_IMPORTED_MODULE_45__PageHeader__["a"]; }); 44936/* harmony import */ var __WEBPACK_IMPORTED_MODULE_46__PageItem__ = __webpack_require__(756); 44937/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "PageItem", function() { return __WEBPACK_IMPORTED_MODULE_46__PageItem__["a"]; }); 44938/* harmony import */ var __WEBPACK_IMPORTED_MODULE_47__Pager__ = __webpack_require__(758); 44939/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Pager", function() { return __WEBPACK_IMPORTED_MODULE_47__Pager__["a"]; }); 44940/* harmony import */ var __WEBPACK_IMPORTED_MODULE_48__Pagination__ = __webpack_require__(759); 44941/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Pagination", function() { return __WEBPACK_IMPORTED_MODULE_48__Pagination__["a"]; }); 44942/* harmony import */ var __WEBPACK_IMPORTED_MODULE_49__PaginationButton__ = __webpack_require__(401); 44943/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "PaginationButton", function() { return __WEBPACK_IMPORTED_MODULE_49__PaginationButton__["a"]; }); 44944/* harmony import */ var __WEBPACK_IMPORTED_MODULE_50__Panel__ = __webpack_require__(760); 44945/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Panel", function() { return __WEBPACK_IMPORTED_MODULE_50__Panel__["a"]; }); 44946/* harmony import */ var __WEBPACK_IMPORTED_MODULE_51__PanelGroup__ = __webpack_require__(371); 44947/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "PanelGroup", function() { return __WEBPACK_IMPORTED_MODULE_51__PanelGroup__["a"]; }); 44948/* harmony import */ var __WEBPACK_IMPORTED_MODULE_52__Popover__ = __webpack_require__(761); 44949/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Popover", function() { return __WEBPACK_IMPORTED_MODULE_52__Popover__["a"]; }); 44950/* harmony import */ var __WEBPACK_IMPORTED_MODULE_53__ProgressBar__ = __webpack_require__(762); 44951/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ProgressBar", function() { return __WEBPACK_IMPORTED_MODULE_53__ProgressBar__["a"]; }); 44952/* harmony import */ var __WEBPACK_IMPORTED_MODULE_54__Radio__ = __webpack_require__(763); 44953/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Radio", function() { return __WEBPACK_IMPORTED_MODULE_54__Radio__["a"]; }); 44954/* harmony import */ var __WEBPACK_IMPORTED_MODULE_55__ResponsiveEmbed__ = __webpack_require__(764); 44955/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ResponsiveEmbed", function() { return __WEBPACK_IMPORTED_MODULE_55__ResponsiveEmbed__["a"]; }); 44956/* harmony import */ var __WEBPACK_IMPORTED_MODULE_56__Row__ = __webpack_require__(765); 44957/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Row", function() { return __WEBPACK_IMPORTED_MODULE_56__Row__["a"]; }); 44958/* harmony import */ var __WEBPACK_IMPORTED_MODULE_57__SafeAnchor__ = __webpack_require__(34); 44959/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "SafeAnchor", function() { return __WEBPACK_IMPORTED_MODULE_57__SafeAnchor__["a"]; }); 44960/* harmony import */ var __WEBPACK_IMPORTED_MODULE_58__SplitButton__ = __webpack_require__(766); 44961/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "SplitButton", function() { return __WEBPACK_IMPORTED_MODULE_58__SplitButton__["a"]; }); 44962/* harmony import */ var __WEBPACK_IMPORTED_MODULE_59__Tab__ = __webpack_require__(768); 44963/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Tab", function() { return __WEBPACK_IMPORTED_MODULE_59__Tab__["a"]; }); 44964/* harmony import */ var __WEBPACK_IMPORTED_MODULE_60__TabContainer__ = __webpack_require__(158); 44965/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TabContainer", function() { return __WEBPACK_IMPORTED_MODULE_60__TabContainer__["a"]; }); 44966/* harmony import */ var __WEBPACK_IMPORTED_MODULE_61__TabContent__ = __webpack_require__(159); 44967/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TabContent", function() { return __WEBPACK_IMPORTED_MODULE_61__TabContent__["a"]; }); 44968/* harmony import */ var __WEBPACK_IMPORTED_MODULE_62__Table__ = __webpack_require__(769); 44969/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Table", function() { return __WEBPACK_IMPORTED_MODULE_62__Table__["a"]; }); 44970/* harmony import */ var __WEBPACK_IMPORTED_MODULE_63__TabPane__ = __webpack_require__(402); 44971/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TabPane", function() { return __WEBPACK_IMPORTED_MODULE_63__TabPane__["a"]; }); 44972/* harmony import */ var __WEBPACK_IMPORTED_MODULE_64__Tabs__ = __webpack_require__(770); 44973/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Tabs", function() { return __WEBPACK_IMPORTED_MODULE_64__Tabs__["a"]; });
vendor: 4,513 bytes, lines 44974-45234
44974/* harmony import */ var __WEBPACK_IMPORTED_MODULE_65__Thumbnail__ = __webpack_require__(771); 44975/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Thumbnail", function() { return __WEBPACK_IMPORTED_MODULE_65__Thumbnail__["a"]; }); 44976/* harmony import */ var __WEBPACK_IMPORTED_MODULE_66__ToggleButton__ = __webpack_require__(403); 44977/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ToggleButton", function() { return __WEBPACK_IMPORTED_MODULE_66__ToggleButton__["a"]; }); 44978/* harmony import */ var __WEBPACK_IMPORTED_MODULE_67__ToggleButtonGroup__ = __webpack_require__(772); 44979/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ToggleButtonGroup", function() { return __WEBPACK_IMPORTED_MODULE_67__ToggleButtonGroup__["a"]; }); 44980/* harmony import */ var __WEBPACK_IMPORTED_MODULE_68__Tooltip__ = __webpack_require__(773); 44981/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Tooltip", function() { return __WEBPACK_IMPORTED_MODULE_68__Tooltip__["a"]; }); 44982/* harmony import */ var __WEBPACK_IMPORTED_MODULE_69__Well__ = __webpack_require__(774); 44983/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Well", function() { return __WEBPACK_IMPORTED_MODULE_69__Well__["a"]; }); 44984/* harmony import */ var __WEBPACK_IMPORTED_MODULE_70__utils__ = __webpack_require__(775); 44985/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "utils", function() { return __WEBPACK_IMPORTED_MODULE_70__utils__; }); 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099 45100 45101 45102 45103 45104 45105 45106 45107 45108 45109 45110 45111 45112 45113 45114 45115 45116 45117 45118 45119 45120 45121 45122 45123 45124 45125 45126 45127 45128 45129/***/ }), 45130/* 360 */ 45131/***/ (function(module, exports, __webpack_require__) { 45132 45133module.exports = { "default": __webpack_require__(636), __esModule: true }; 45134 45135/***/ }), 45136/* 361 */ 45137/***/ (function(module, exports, __webpack_require__) { 45138 45139module.exports = !__webpack_require__(61) && !__webpack_require__(69)(function () { 45140 return Object.defineProperty(__webpack_require__(362)('div'), 'a', { get: function () { return 7; } }).a != 7; 45141}); 45142 45143 45144/***/ }), 45145/* 362 */ 45146/***/ (function(module, exports, __webpack_require__) { 45147 45148var isObject = __webpack_require__(60); 45149var document = __webpack_require__(38).document; 45150// typeof document.createElement is 'object' in old IE 45151var is = isObject(document) && isObject(document.createElement); 45152module.exports = function (it) { 45153 return is ? document.createElement(it) : {}; 45154}; 45155 45156 45157/***/ }), 45158/* 363 */ 45159/***/ (function(module, exports, __webpack_require__) { 45160 45161var has = __webpack_require__(46); 45162var toIObject = __webpack_require__(47); 45163var arrayIndexOf = __webpack_require__(640)(false); 45164var IE_PROTO = __webpack_require__(142)('IE_PROTO'); 45165 45166module.exports = function (object, names) { 45167 var O = toIObject(object); 45168 var i = 0; 45169 var result = []; 45170 var key; 45171 for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 45172 // Don't enum bug & hidden keys 45173 while (names.length > i) if (has(O, key = names[i++])) { 45174 ~arrayIndexOf(result, key) || result.push(key); 45175 } 45176 return result; 45177}; 45178 45179 45180/***/ }), 45181/* 364 */ 45182/***/ (function(module, exports, __webpack_require__) { 45183 45184// fallback for non-array-like ES3 and non-enumerable old V8 strings 45185var cof = __webpack_require__(139); 45186// eslint-disable-next-line no-prototype-builtins 45187module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 45188 return cof(it) == 'String' ? it.split('') : Object(it); 45189}; 45190 45191 45192/***/ }), 45193/* 365 */ 45194/***/ (function(module, exports, __webpack_require__) { 45195 45196// 7.1.15 ToLength 45197var toInteger = __webpack_require__(141); 45198var min = Math.min; 45199module.exports = function (it) { 45200 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 45201}; 45202 45203 45204/***/ }), 45205/* 366 */ 45206/***/ (function(module, exports, __webpack_require__) { 45207 45208"use strict"; 45209 45210var $at = __webpack_require__(644)(true); 45211 45212// 21.1.3.27 String.prototype[@@iterator]() 45213__webpack_require__(367)(String, 'String', function (iterated) { 45214 this._t = String(iterated); // target 45215 this._i = 0; // next index 45216// 21.1.5.2.1 %StringIteratorPrototype%.next() 45217}, function () { 45218 var O = this._t; 45219 var index = this._i; 45220 var point; 45221 if (index >= O.length) return { value: undefined, done: true }; 45222 point = $at(O, index); 45223 this._i += point.length; 45224 return { value: point, done: false }; 45225}); 45226 45227 45228/***/ }), 45229/* 367 */ 45230/***/ (function(module, exports, __webpack_require__) { 45231 45232"use strict"; 45233 45234var LIBRARY = __webpack_require__(91);
vendor: 10,324 bytes, lines 45235-45479
45235var $export = __webpack_require__(37); 45236var redefine = __webpack_require__(368); 45237var hide = __webpack_require__(58); 45238var Iterators = __webpack_require__(73); 45239var $iterCreate = __webpack_require__(645); 45240var setToStringTag = __webpack_require__(149); 45241var getPrototypeOf = __webpack_require__(648); 45242var ITERATOR = __webpack_require__(33)('iterator'); 45243var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` 45244var FF_ITERATOR = '@@iterator'; 45245var KEYS = 'keys'; 45246var VALUES = 'values'; 45247 45248var returnThis = function () { return this; }; 45249 45250module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { 45251 $iterCreate(Constructor, NAME, next); 45252 var getMethod = function (kind) { 45253 if (!BUGGY && kind in proto) return proto[kind]; 45254 switch (kind) { 45255 case KEYS: return function keys() { return new Constructor(this, kind); }; 45256 case VALUES: return function values() { return new Constructor(this, kind); }; 45257 } return function entries() { return new Constructor(this, kind); }; 45258 }; 45259 var TAG = NAME + ' Iterator'; 45260 var DEF_VALUES = DEFAULT == VALUES; 45261 var VALUES_BUG = false; 45262 var proto = Base.prototype; 45263 var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; 45264 var $default = $native || getMethod(DEFAULT); 45265 var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; 45266 var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; 45267 var methods, key, IteratorPrototype; 45268 // Fix native 45269 if ($anyNative) { 45270 IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); 45271 if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { 45272 // Set @@toStringTag to native iterators 45273 setToStringTag(IteratorPrototype, TAG, true); 45274 // fix for some old engines 45275 if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); 45276 } 45277 } 45278 // fix Array#{values, @@iterator}.name in V8 / FF 45279 if (DEF_VALUES && $native && $native.name !== VALUES) { 45280 VALUES_BUG = true; 45281 $default = function values() { return $native.call(this); }; 45282 } 45283 // Define iterator 45284 if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { 45285 hide(proto, ITERATOR, $default); 45286 } 45287 // Plug for library 45288 Iterators[NAME] = $default; 45289 Iterators[TAG] = returnThis; 45290 if (DEFAULT) { 45291 methods = { 45292 values: DEF_VALUES ? $default : getMethod(VALUES), 45293 keys: IS_SET ? $default : getMethod(KEYS), 45294 entries: $entries 45295 }; 45296 if (FORCED) for (key in methods) { 45297 if (!(key in proto)) redefine(proto, key, methods[key]); 45298 } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); 45299 } 45300 return methods; 45301}; 45302 45303 45304/***/ }), 45305/* 368 */ 45306/***/ (function(module, exports, __webpack_require__) { 45307 45308module.exports = __webpack_require__(58); 45309 45310 45311/***/ }), 45312/* 369 */ 45313/***/ (function(module, exports, __webpack_require__) { 45314 45315// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) 45316var $keys = __webpack_require__(363); 45317var hiddenKeys = __webpack_require__(144).concat('length', 'prototype'); 45318 45319exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { 45320 return $keys(O, hiddenKeys); 45321}; 45322 45323 45324/***/ }), 45325/* 370 */ 45326/***/ (function(module, exports, __webpack_require__) { 45327 45328var pIE = __webpack_require__(72); 45329var createDesc = __webpack_require__(70); 45330var toIObject = __webpack_require__(47); 45331var toPrimitive = __webpack_require__(138); 45332var has = __webpack_require__(46); 45333var IE8_DOM_DEFINE = __webpack_require__(361); 45334var gOPD = Object.getOwnPropertyDescriptor; 45335 45336exports.f = __webpack_require__(61) ? gOPD : function getOwnPropertyDescriptor(O, P) { 45337 O = toIObject(O); 45338 P = toPrimitive(P, true); 45339 if (IE8_DOM_DEFINE) try { 45340 return gOPD(O, P); 45341 } catch (e) { /* empty */ } 45342 if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); 45343}; 45344 45345 45346/***/ }), 45347/* 371 */ 45348/***/ (function(module, __webpack_exports__, __webpack_require__) { 45349 45350"use strict"; 45351/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 45352/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 45353/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_assign__ = __webpack_require__(360); 45354/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_assign___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_assign__); 45355/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 45356/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties__); 45357/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 45358/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__); 45359/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 45360/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__); 45361/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(5); 45362/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__); 45363/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames__ = __webpack_require__(8); 45364/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_classnames__); 45365/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react__ = __webpack_require__(0); 45366/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react__); 45367/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types__ = __webpack_require__(2); 45368/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types__); 45369/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 45370/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_createChainedFunction__ = __webpack_require__(16); 45371/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__utils_ValidComponentChildren__ = __webpack_require__(22); 45372 45373 45374 45375 45376 45377 45378 45379 45380 45381 45382 45383 45384 45385 45386var propTypes = { 45387 accordion: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, 45388 activeKey: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.any, 45389 defaultActiveKey: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.any, 45390 onSelect: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, 45391 role: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string 45392}; 45393 45394var defaultProps = { 45395 accordion: false 45396}; 45397 45398// TODO: Use uncontrollable. 45399 45400var PanelGroup = function (_React$Component) { 45401 __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(PanelGroup, _React$Component); 45402 45403 function PanelGroup(props, context) { 45404 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck___default()(this, PanelGroup); 45405 45406 var _this = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props, context)); 45407 45408 _this.handleSelect = _this.handleSelect.bind(_this); 45409 45410 _this.state = { 45411 activeKey: props.defaultActiveKey 45412 }; 45413 return _this; 45414 } 45415 45416 PanelGroup.prototype.handleSelect = function handleSelect(key, e) { 45417 e.preventDefault(); 45418 45419 if (this.props.onSelect) { 45420 this.props.onSelect(key, e); 45421 } 45422 45423 if (this.state.activeKey === key) { 45424 key = null; 45425 } 45426 45427 this.setState({ activeKey: key }); 45428 }; 45429 45430 PanelGroup.prototype.render = function render() { 45431 var _this2 = this; 45432 45433 var _props = this.props, 45434 accordion = _props.accordion, 45435 propsActiveKey = _props.activeKey, 45436 className = _props.className, 45437 children = _props.children, 45438 props = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['accordion', 'activeKey', 'className', 'children']); 45439 45440 var _splitBsPropsAndOmit = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsPropsAndOmit"])(props, ['defaultActiveKey', 'onSelect']), 45441 bsProps = _splitBsPropsAndOmit[0], 45442 elementProps = _splitBsPropsAndOmit[1]; 45443 45444 var activeKey = void 0; 45445 if (accordion) { 45446 activeKey = propsActiveKey != null ? propsActiveKey : this.state.activeKey; 45447 elementProps.role = elementProps.role || 'tablist'; 45448 } 45449 45450 var classes = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["getClassSet"])(bsProps); 45451 45452 return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement( 45453 'div', 45454 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 45455 className: __WEBPACK_IMPORTED_MODULE_6_classnames___default()(className, classes) 45456 }), 45457 __WEBPACK_IMPORTED_MODULE_11__utils_ValidComponentChildren__["a" /* default */].map(children, function (child) { 45458 var childProps = { 45459 bsStyle: child.props.bsStyle || bsProps.bsStyle 45460 }; 45461 45462 if (accordion) { 45463 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_assign___default()(childProps, { 45464 headerRole: 'tab', 45465 panelRole: 'tabpanel', 45466 collapsible: true, 45467 expanded: child.props.eventKey === activeKey, 45468 onSelect: Object(__WEBPACK_IMPORTED_MODULE_10__utils_createChainedFunction__["a" /* default */])(_this2.handleSelect, child.props.onSelect) 45469 }); 45470 } 45471 45472 return Object(__WEBPACK_IMPORTED_MODULE_7_react__["cloneElement"])(child, childProps); 45473 }) 45474 ); 45475 }; 45476 45477 return PanelGroup; 45478}(__WEBPACK_IMPORTED_MODULE_7_react___default.a.Component); 45479
45480PanelGroup.propTypes = propTypes; 45481PanelGroup.defaultProps = defaultProps; 45482 45483/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('panel-group', PanelGroup)); 45484 45485/***/ }), 45486/* 372 */ 45487/***/ (function(module, exports, __webpack_require__) { 45488 45489module.exports = { "default": __webpack_require__(670), __esModule: true }; 45490 45491/***/ }), 45492/* 373 */ 45493/***/ (function(module, exports, __webpack_require__) { 45494 45495var getKeys = __webpack_require__(71); 45496var toIObject = __webpack_require__(47); 45497var isEnum = __webpack_require__(72).f; 45498module.exports = function (isEntries) { 45499 return function (it) { 45500 var O = toIObject(it); 45501 var keys = getKeys(O); 45502 var length = keys.length; 45503 var i = 0; 45504 var result = []; 45505 var key; 45506 while (length > i) if (isEnum.call(O, key = keys[i++])) { 45507 result.push(isEntries ? [key, O[key]] : O[key]); 45508 } return result; 45509 }; 45510}; 45511 45512 45513/***/ }), 45514/* 374 */ 45515/***/ (function(module, __webpack_exports__, __webpack_require__) { 45516 45517"use strict"; 45518/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 45519/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 45520/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 45521/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 45522/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 45523/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 45524/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 45525/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 45526/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 45527/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 45528/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 45529/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 45530/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 45531/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 45532/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 45533/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 45534/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__SafeAnchor__ = __webpack_require__(34); 45535 45536 45537 45538 45539 45540 45541 45542 45543 45544 45545 45546var propTypes = { 45547 /** 45548 * If set to true, renders `span` instead of `a` 45549 */ 45550 active: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 45551 /** 45552 * `href` attribute for the inner `a` element 45553 */ 45554 href: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 45555 /** 45556 * `title` attribute for the inner `a` element 45557 */ 45558 title: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.node, 45559 /** 45560 * `target` attribute for the inner `a` element 45561 */ 45562 target: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string 45563}; 45564 45565var defaultProps = { 45566 active: false 45567}; 45568 45569var BreadcrumbItem = function (_React$Component) { 45570 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(BreadcrumbItem, _React$Component); 45571 45572 function BreadcrumbItem() { 45573 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, BreadcrumbItem); 45574 45575 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 45576 } 45577 45578 BreadcrumbItem.prototype.render = function render() { 45579 var _props = this.props, 45580 active = _props.active, 45581 href = _props.href, 45582 title = _props.title, 45583 target = _props.target, 45584 className = _props.className, 45585 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['active', 'href', 'title', 'target', 'className']); 45586 45587 // Don't try to render these props on non-active <span>. 45588 45589 45590 var linkProps = { href: href, title: title, target: target }; 45591 45592 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 45593 'li', 45594 { className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, { active: active }) }, 45595 active ? __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('span', props) : __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__SafeAnchor__["a" /* default */], __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, linkProps)) 45596 ); 45597 }; 45598 45599 return BreadcrumbItem; 45600}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 45601
45602BreadcrumbItem.propTypes = propTypes; 45603BreadcrumbItem.defaultProps = defaultProps; 45604 45605/* harmony default export */ __webpack_exports__["a"] = (BreadcrumbItem); 45606 45607/***/ }), 45608/* 375 */ 45609/***/ (function(module, __webpack_exports__, __webpack_require__) { 45610 45611"use strict"; 45612/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 45613/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 45614/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 45615/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 45616/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 45617/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 45618/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 45619/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 45620/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 45621/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 45622/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 45623/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 45624/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 45625/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 45626/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 45627/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 45628/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_dom__ = __webpack_require__(17); 45629/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react_dom__); 45630/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_TransitionEvents__ = __webpack_require__(682); 45631 45632 45633 45634 45635 45636 45637 45638 45639 45640 45641 45642 45643// TODO: This should use a timeout instead of TransitionEvents, or else just 45644// not wait until transition end to trigger continuing animations. 45645 45646var propTypes = { 45647 direction: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOf(['prev', 'next']), 45648 onAnimateOutEnd: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 45649 active: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 45650 animateIn: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 45651 animateOut: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 45652 index: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number 45653}; 45654 45655var defaultProps = { 45656 active: false, 45657 animateIn: false, 45658 animateOut: false 45659}; 45660 45661var CarouselItem = function (_React$Component) { 45662 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(CarouselItem, _React$Component); 45663 45664 function CarouselItem(props, context) { 45665 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, CarouselItem); 45666 45667 var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props, context)); 45668 45669 _this.handleAnimateOutEnd = _this.handleAnimateOutEnd.bind(_this); 45670 45671 _this.state = { 45672 direction: null 45673 }; 45674 45675 _this.isUnmounted = false;
45676 return _this; 45677 } 45678 45679 CarouselItem.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { 45680 if (this.props.active !== nextProps.active) { 45681 this.setState({ direction: null }); 45682 } 45683 }; 45684 45685 CarouselItem.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { 45686 var _this2 = this; 45687 45688 var active = this.props.active; 45689 45690 var prevActive = prevProps.active; 45691 45692 if (!active && prevActive) { 45693 __WEBPACK_IMPORTED_MODULE_9__utils_TransitionEvents__["a" /* default */].addEndEventListener(__WEBPACK_IMPORTED_MODULE_8_react_dom___default.a.findDOMNode(this), this.handleAnimateOutEnd); 45694 } 45695 45696 if (active !== prevActive) { 45697 setTimeout(function () { 45698 return _this2.startAnimation(); 45699 }, 20); 45700 } 45701 }; 45702 45703 CarouselItem.prototype.componentWillUnmount = function componentWillUnmount() { 45704 this.isUnmounted = true; 45705 }; 45706 45707 CarouselItem.prototype.handleAnimateOutEnd = function handleAnimateOutEnd() { 45708 if (this.isUnmounted) { 45709 return; 45710 } 45711 45712 if (this.props.onAnimateOutEnd) { 45713 this.props.onAnimateOutEnd(this.props.index); 45714 } 45715 }; 45716 45717 CarouselItem.prototype.startAnimation = function startAnimation() { 45718 if (this.isUnmounted) { 45719 return; 45720 } 45721 45722 this.setState({ 45723 direction: this.props.direction === 'prev' ? 'right' : 'left' 45724 }); 45725 }; 45726 45727 CarouselItem.prototype.render = function render() { 45728 var _props = this.props, 45729 direction = _props.direction, 45730 active = _props.active, 45731 animateIn = _props.animateIn, 45732 animateOut = _props.animateOut, 45733 className = _props.className, 45734 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['direction', 'active', 'animateIn', 'animateOut', 'className']); 45735 45736 delete props.onAnimateOutEnd; 45737 delete props.index; 45738 45739 var classes = { 45740 item: true, 45741 active: active && !animateIn || animateOut 45742 }; 45743 if (direction && active && animateIn) { 45744 classes[direction] = true; 45745 } 45746 if (this.state.direction && (animateIn || animateOut)) { 45747 classes[this.state.direction] = true; 45748 } 45749 45750 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('div', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, { 45751 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 45752 })); 45753 }; 45754 45755 return CarouselItem; 45756}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 45757 45758CarouselItem.propTypes = propTypes; 45759CarouselItem.defaultProps = defaultProps; 45760 45761/* harmony default export */ __webpack_exports__["a"] = (CarouselItem); 45762 45763/***/ }), 45764/* 376 */ 45765/***/ (function(module, __webpack_exports__, __webpack_require__) { 45766 45767"use strict"; 45768/* harmony export (immutable) */ __webpack_exports__["a"] = capitalize; 45769function capitalize(string) { 45770 return "" + string.charAt(0).toUpperCase() + string.slice(1); 45771} 45772 45773/***/ }), 45774/* 377 */ 45775/***/ (function(module, exports, __webpack_require__) { 45776 45777"use strict"; 45778 45779 45780Object.defineProperty(exports, "__esModule", { 45781 value: true 45782}); 45783exports.default = camelizeStyleName; 45784 45785var _camelize = __webpack_require__(687); 45786 45787var _camelize2 = _interopRequireDefault(_camelize); 45788 45789function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 45790 45791var msPattern = /^-ms-/; /** 45792 * Copyright 2014-2015, Facebook, Inc. 45793 * All rights reserved. 45794 * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/camelizeStyleName.js 45795 */ 45796function camelizeStyleName(string) { 45797 return (0, _camelize2.default)(string.replace(msPattern, 'ms-')); 45798} 45799module.exports = exports['default']; 45800 45801/***/ }), 45802/* 378 */ 45803/***/ (function(module, exports, __webpack_require__) { 45804 45805"use strict"; 45806 45807 45808Object.defineProperty(exports, "__esModule", { 45809 value: true 45810});
45811exports.animationEnd = exports.animationDelay = exports.animationTiming = exports.animationDuration = exports.animationName = exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = undefined; 45812 45813var _inDOM = __webpack_require__(39); 45814 45815var _inDOM2 = _interopRequireDefault(_inDOM); 45816 45817function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 45818 45819var transform = 'transform'; 45820var prefix = void 0, 45821 transitionEnd = void 0, 45822 animationEnd = void 0; 45823var transitionProperty = void 0, 45824 transitionDuration = void 0, 45825 transitionTiming = void 0, 45826 transitionDelay = void 0; 45827var animationName = void 0, 45828 animationDuration = void 0, 45829 animationTiming = void 0, 45830 animationDelay = void 0; 45831 45832if (_inDOM2.default) { 45833 var _getTransitionPropert = getTransitionProperties(); 45834 45835 prefix = _getTransitionPropert.prefix; 45836 exports.transitionEnd = transitionEnd = _getTransitionPropert.transitionEnd; 45837 exports.animationEnd = animationEnd = _getTransitionPropert.animationEnd; 45838 45839 45840 exports.transform = transform = prefix + '-' + transform; 45841 exports.transitionProperty = transitionProperty = prefix + '-transition-property'; 45842 exports.transitionDuration = transitionDuration = prefix + '-transition-duration'; 45843 exports.transitionDelay = transitionDelay = prefix + '-transition-delay'; 45844 exports.transitionTiming = transitionTiming = prefix + '-transition-timing-function'; 45845 45846 exports.animationName = animationName = prefix + '-animation-name'; 45847 exports.animationDuration = animationDuration = prefix + '-animation-duration'; 45848 exports.animationTiming = animationTiming = prefix + '-animation-delay'; 45849 exports.animationDelay = animationDelay = prefix + '-animation-timing-function'; 45850} 45851 45852exports.transform = transform; 45853exports.transitionProperty = transitionProperty; 45854exports.transitionTiming = transitionTiming; 45855exports.transitionDelay = transitionDelay; 45856exports.transitionDuration = transitionDuration; 45857exports.transitionEnd = transitionEnd; 45858exports.animationName = animationName; 45859exports.animationDuration = animationDuration; 45860exports.animationTiming = animationTiming; 45861exports.animationDelay = animationDelay; 45862exports.animationEnd = animationEnd; 45863exports.default = { 45864 transform: transform, 45865 end: transitionEnd, 45866 property: transitionProperty, 45867 timing: transitionTiming, 45868 delay: transitionDelay, 45869 duration: transitionDuration 45870}; 45871 45872 45873function getTransitionProperties() { 45874 var style = document.createElement('div').style; 45875 45876 var vendorMap = { 45877 O: function O(e) { 45878 return 'o' + e.toLowerCase(); 45879 }, 45880 Moz: function Moz(e) { 45881 return e.toLowerCase(); 45882 }, 45883 Webkit: function Webkit(e) { 45884 return 'webkit' + e; 45885 }, 45886 ms: function ms(e) { 45887 return 'MS' + e; 45888 } 45889 }; 45890 45891 var vendors = Object.keys(vendorMap); 45892 45893 var transitionEnd = void 0, 45894 animationEnd = void 0; 45895 var prefix = ''; 45896 45897 for (var i = 0; i < vendors.length; i++) { 45898 var vendor = vendors[i]; 45899 45900 if (vendor + 'TransitionProperty' in style) { 45901 prefix = '-' + vendor.toLowerCase(); 45902 transitionEnd = vendorMap[vendor]('TransitionEnd'); 45903 animationEnd = vendorMap[vendor]('AnimationEnd'); 45904 break; 45905 } 45906 } 45907 45908 if (!transitionEnd && 'transitionProperty' in style) transitionEnd = 'transitionend'; 45909 45910 if (!animationEnd && 'animationName' in style) animationEnd = 'animationend'; 45911 45912 style = null; 45913 45914 return { animationEnd: animationEnd, transitionEnd: transitionEnd, prefix: prefix }; 45915} 45916 45917/***/ }), 45918/* 379 */ 45919/***/ (function(module, exports, __webpack_require__) { 45920 45921"use strict"; 45922 45923 45924exports.__esModule = true;
vendor: 2,292 bytes, lines 45925-45967
45925exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined; 45926 45927var _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; }; 45928 45929var _classnames = __webpack_require__(8); 45930 45931var _classnames2 = _interopRequireDefault(_classnames); 45932 45933var _on = __webpack_require__(96); 45934 45935var _on2 = _interopRequireDefault(_on); 45936 45937var _properties = __webpack_require__(378); 45938 45939var _properties2 = _interopRequireDefault(_properties); 45940 45941var _propTypes = __webpack_require__(2); 45942 45943var _propTypes2 = _interopRequireDefault(_propTypes); 45944 45945var _react = __webpack_require__(0); 45946 45947var _react2 = _interopRequireDefault(_react); 45948 45949var _reactDom = __webpack_require__(17); 45950 45951var _reactDom2 = _interopRequireDefault(_reactDom); 45952 45953function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 45954 45955function _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; } 45956 45957function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 45958 45959function _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; } 45960 45961function _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; } 45962 45963var transitionEndEvent = _properties2.default.end; 45964 45965var UNMOUNTED = exports.UNMOUNTED = 0; 45966var EXITED = exports.EXITED = 1; 45967var ENTERING = exports.ENTERING = 2;
45968var ENTERED = exports.ENTERED = 3; 45969var EXITING = exports.EXITING = 4; 45970 45971/** 45972 * The Transition component lets you define and run css transitions with a simple declarative api. 45973 * It works similar to React's own [CSSTransitionGroup](http://facebook.github.io/react/docs/animation.html#high-level-api-reactcsstransitiongroup) 45974 * but is specifically optimized for transitioning a single child "in" or "out". 45975 * 45976 * You don't even need to use class based css transitions if you don't want to (but it is easiest). 45977 * The extensive set of lifecycle callbacks means you have control over 45978 * the transitioning now at each step of the way. 45979 */ 45980 45981var Transition = function (_React$Component) { 45982 _inherits(Transition, _React$Component); 45983 45984 function Transition(props, context) { 45985 _classCallCheck(this, Transition); 45986 45987 var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); 45988 45989 _this.updateStatus = function () { 45990 if (_this.nextStatus !== null) { 45991 // nextStatus will always be ENTERING or EXITING. 45992 _this.cancelNextCallback(); 45993 var node = _reactDom2.default.findDOMNode(_this); 45994 45995 if (_this.nextStatus === ENTERING) { 45996 _this.props.onEnter(node); 45997 45998 _this.safeSetState({ status: ENTERING }, function () { 45999 _this.props.onEntering(node); 46000 46001 _this.onTransitionEnd(node, function () { 46002 _this.safeSetState({ status: ENTERED }, function () { 46003 _this.props.onEntered(node); 46004 }); 46005 }); 46006 }); 46007 } else { 46008 _this.props.onExit(node); 46009 46010 _this.safeSetState({ status: EXITING }, function () { 46011 _this.props.onExiting(node); 46012 46013 _this.onTransitionEnd(node, function () { 46014 _this.safeSetState({ status: EXITED }, function () { 46015 _this.props.onExited(node); 46016 }); 46017 }); 46018 }); 46019 } 46020 46021 _this.nextStatus = null; 46022 } else if (_this.props.unmountOnExit && _this.state.status === EXITED) { 46023 _this.setState({ status: UNMOUNTED }); 46024 } 46025 }; 46026 46027 _this.cancelNextCallback = function () { 46028 if (_this.nextCallback !== null) { 46029 _this.nextCallback.cancel(); 46030 _this.nextCallback = null; 46031 } 46032 }; 46033 46034 _this.safeSetState = function (nextState, callback) { 46035 // This shouldn't be necessary, but there are weird race conditions with 46036 // setState callbacks and unmounting in testing, so always make sure that 46037 // we can cancel any pending setState callbacks after we unmount. 46038 _this.setState(nextState, _this.setNextCallback(callback)); 46039 }; 46040 46041 _this.setNextCallback = function (callback) { 46042 var active = true; 46043 46044 _this.nextCallback = function (event) { 46045 if (active) { 46046 active = false; 46047 _this.nextCallback = null; 46048 46049 callback(event); 46050 } 46051 }; 46052 46053 _this.nextCallback.cancel = function () { 46054 active = false; 46055 }; 46056 46057 return _this.nextCallback; 46058 }; 46059 46060 _this.onTransitionEnd = function (node, handler) { 46061 _this.setNextCallback(handler); 46062 46063 if (node) { 46064 (0, _on2.default)(node, transitionEndEvent, _this.nextCallback); 46065 setTimeout(_this.nextCallback, _this.props.timeout); 46066 } else { 46067 setTimeout(_this.nextCallback, 0); 46068 } 46069 }; 46070 46071 var initialStatus = void 0; 46072 _this.nextStatus = null; 46073 46074 if (props.in) { 46075 if (props.transitionAppear) { 46076 initialStatus = EXITED; 46077 _this.nextStatus = ENTERING; 46078 } else { 46079 initialStatus = ENTERED; 46080 } 46081 } else { 46082 if (props.unmountOnExit || props.mountOnEnter) { 46083 initialStatus = UNMOUNTED; 46084 } else { 46085 initialStatus = EXITED; 46086 } 46087 } 46088 46089 _this.state = { status: initialStatus }; 46090 46091 _this.nextCallback = null; 46092 return _this; 46093 } 46094 46095 Transition.prototype.componentDidMount = function componentDidMount() { 46096 this.updateStatus(); 46097 }; 46098 46099 Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { 46100 var status = this.state.status; 46101 46102 46103 if (nextProps.in) { 46104 if (status === UNMOUNTED) { 46105 this.setState({ status: EXITED }); 46106 } 46107 if (status !== ENTERING && status !== ENTERED) { 46108 this.nextStatus = ENTERING; 46109 } 46110 } else { 46111 if (status === ENTERING || status === ENTERED) { 46112 this.nextStatus = EXITING; 46113 } 46114 } 46115 }; 46116 46117 Transition.prototype.componentDidUpdate = function componentDidUpdate() { 46118 this.updateStatus(); 46119 }; 46120 46121 Transition.prototype.componentWillUnmount = function componentWillUnmount() { 46122 this.cancelNextCallback(); 46123 }; 46124 46125 Transition.prototype.render = function render() { 46126 var status = this.state.status; 46127 if (status === UNMOUNTED) { 46128 return null; 46129 } 46130 46131 var _props = this.props, 46132 children = _props.children, 46133 className = _props.className, 46134 childProps = _objectWithoutProperties(_props, ['children', 'className']); 46135
46136 Object.keys(Transition.propTypes).forEach(function (key) { 46137 return delete childProps[key]; 46138 }); 46139 46140 var transitionClassName = void 0; 46141 if (status === EXITED) { 46142 transitionClassName = this.props.exitedClassName; 46143 } else if (status === ENTERING) { 46144 transitionClassName = this.props.enteringClassName; 46145 } else if (status === ENTERED) { 46146 transitionClassName = this.props.enteredClassName; 46147 } else if (status === EXITING) { 46148 transitionClassName = this.props.exitingClassName; 46149 } 46150 46151 var child = _react2.default.Children.only(children); 46152 return _react2.default.cloneElement(child, _extends({}, childProps, { 46153 className: (0, _classnames2.default)(child.props.className, className, transitionClassName) 46154 })); 46155 }; 46156 46157 return Transition; 46158}(_react2.default.Component); 46159 46160Transition.propTypes = { 46161 /** 46162 * Show the component; triggers the enter or exit animation 46163 */ 46164 in: _propTypes2.default.bool, 46165 46166 /** 46167 * Wait until the first "enter" transition to mount the component (ad
46167d it to the DOM) 46168 */ 46169 mountOnEnter: _propTypes2.default.bool, 46170 46171 /** 46172 * Unmount the component (remove it from the DOM) when it is not shown 46173 */ 46174 unmountOnExit: _propTypes2.default.bool, 46175 46176 /** 46177 * Run the enter animation when the component mounts, if it is initially 46178 * shown 46179 */ 46180 transitionAppear: _propTypes2.default.bool, 46181 46182 /** 46183 * A Timeout for the animation, in milliseconds, to ensure that a node doesn't 46184 * transition indefinately if the browser transitionEnd events are 46185 * canceled or interrupted. 46186 * 46187 * By default this is set to a high number (5 seconds) as a failsafe. You should consider 46188 * setting this to the duration of your animation (or a bit above it). 46189 */ 46190 timeout: _propTypes2.default.number, 46191 46192 /** 46193 * CSS class or classes applied when the component is exited 46194 */ 46195 exitedClassName: _propTypes2.default.string, 46196 /** 46197 * CSS class or classes applied while the component is exiting 46198 */ 46199 exitingClassName: _propTypes2.default.string, 46200 /** 46201 * CSS class or classes applied when the component is entered 46202 */ 46203 enteredClassName: _propTypes2.default.string, 46204 /** 46205 * CSS class or classes applied while the component is entering 46206 */ 46207 enteringClassName: _propTypes2.default.string, 46208 46209 /** 46210 * Callback fired before the "entering" classes are applied 46211 */ 46212 onEnter: _propTypes2.default.func, 46213 /** 46214 * Callback fired after the "entering" classes are applied 46215 */ 46216 onEntering: _propTypes2.default.func, 46217 /** 46218 * Callback fired after the "enter" classes are applied 46219 */ 46220 onEntered: _propTypes2.default.func, 46221 /** 46222 * Callback fired before the "exiting" classes are applied 46223 */ 46224 onExit: _propTypes2.default.func, 46225 /** 46226 * Callback fired after the "exiting" classes are applied 46227 */ 46228 onExiting: _propTypes2.default.func, 46229 /** 46230 * Callback fired after the "exited" classes are applied 46231 */ 46232 onExited: _propTypes2.default.func 46233}; 46234 46235// Name the function so it is clearer in the documentation 46236function noop() {} 46237 46238Transition.displayName = 'Transition'; 46239 46240Transition.defaultProps = { 46241 in: false, 46242 unmountOnExit: false, 46243 transitionAppear: false, 46244 46245 timeout: 5000, 46246 46247 onEnter: noop, 46248 onEntering: noop, 46249 onEntered: noop, 46250 46251 onExit: noop, 46252 onExiting: noop, 46253 onExited: noop 46254}; 46255 46256exports.default = Transition; 46257 46258/***/ }), 46259/* 380 */ 46260/***/ (function(module, exports, __webpack_require__) { 46261 46262"use strict"; 46263 46264 46265Object.defineProperty(exports, "__esModule", { 46266 value: true 46267}); 46268exports.default = activeElement; 46269 46270var _ownerDocument = __webpack_require__(63); 46271 46272var _ownerDocument2 = _interopRequireDefault(_ownerDocument); 46273 46274function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 46275 46276function activeElement() { 46277 var doc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (0, _ownerDocument2.default)(); 46278 46279 try { 46280 return doc.activeElement; 46281 } catch (e) {/* ie throws if no active element */} 46282} 46283module.exports = exports['default']; 46284 46285/***/ }), 46286/* 381 */ 46287/***/ (function(module, exports, __webpack_require__) { 46288 46289"use strict"; 46290 46291 46292exports.__esModule = true; 46293 46294var _contains = __webpack_require__(64); 46295 46296var _contains2 = _interopRequireDefault(_contains); 46297 46298var _propTypes = __webpack_require__(2); 46299 46300var _propTypes2 = _interopRequireDefault(_propTypes); 46301 46302var _react = __webpack_require__(0); 46303 46304var _react2 = _interopRequireDefault(_react); 46305 46306var _reactDom = __webpack_require__(17); 46307 46308var _reactDom2 = _interopRequireDefault(_reactDom); 46309 46310var _addEventListener = __webpack_require__(382); 46311 46312var _addEventListener2 = _interopRequireDefault(_addEventListener); 46313 46314var _ownerDocument = __webpack_require__(65); 46315 46316var _ownerDocument2 = _interopRequireDefault(_ownerDocument); 46317 46318function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 46319 46320function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 46321 46322function _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; } 46323 46324function _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, { c
46324onstructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } 46325 46326var escapeKeyCode = 27; 46327 46328function isLeftClickEvent(event) { 46329 return event.button === 0; 46330} 46331 46332function isModifiedEvent(event) { 46333 return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); 46334} 46335 46336/** 46337 * The `<RootCloseWrapper/>` component registers your callback on the document 46338 * when rendered. Powers the `<Overlay/>` component. This is used achieve modal 46339 * style behavior where your callback is triggered when the user tries to 46340 * interact with the rest of the document or hits the `esc` key. 46341 */ 46342 46343var RootCloseWrapper = function (_React$Component) { 46344 _inherits(RootCloseWrapper, _React$Component); 46345 46346 function RootCloseWrapper(props, context) { 46347 _classCallCheck(this, RootCloseWrapper); 46348 46349 var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); 46350 46351 _this.addEventListeners = function () { 46352 var event = _this.props.event; 46353 46354 var doc = (0, _ownerDocument2.default)(_this); 46355 46356 // Use capture for this listener so it fires before React's listener, to 46357 // avoid false positives in the contains() check below if the target DOM 46358 // element is removed in the React mouse callback. 46359 _this.documentMouseCaptureListener = (0, _addEventListener2.default)(doc, event, _this.handleMouseCapture, true); 46360 46361 _this.documentMouseListener = (0, _addEventListener2.default)(doc, event, _this.handleMouse); 46362 46363 _this.documentKeyupListener = (0, _addEventListener2.default)(doc, 'keyup', _this.handleKeyUp); 46364 }; 46365 46366 _this.removeEventListeners = function () { 46367 if (_this.documentMouseCaptureListener) { 46368 _this.documentMouseCaptureListener.remove(); 46369 } 46370 46371 if (_this.documentMouseListener) { 46372 _this.documentMouseListener.remove(); 46373 } 46374 46375 if (_this.documentKeyupListener) { 46376 _this.documentKeyupListener.remove(); 46377 } 46378 }; 46379 46380 _this.handleMouseCapture = function (e) { 46381 _this.preventMouseRootClose = isModifiedEvent(e) || !isLeftClickEvent(e) || (0, _contains2.default)(_reactDom2.default.findDOMNode(_this), e.target); 46382 }; 46383 46384 _this.handleMouse = function (e) { 46385 if (!_this.preventMouseRootClose && _this.props.onRootClose) { 46386 _this.props.onRootClose(e); 46387 } 46388 }; 46389 46390 _this.handleKeyUp = function (e) { 46391 if (e.keyCode === escapeKeyCode && _this.props.onRootClose) { 46392 _this.props.onRootClose(e); 46393 } 46394 }; 46395 46396 _this.preventMouseRootClose = false; 46397 return _this; 46398 } 46399 46400 RootCloseWrapper.prototype.componentDidMount = function componentDidMount() { 46401 if (!this.props.disabled) { 46402 this.addEventListeners(); 46403 } 46404 }; 46405 46406 RootCloseWrapper.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { 46407 if (!this.props.disabled && prevProps.disabled) { 46408 this.addEventListeners(); 46409 } else if (this.props.disabled && !prevProps.disabled) { 46410 this.removeEventListeners(); 46411 } 46412 }; 46413 46414 RootCloseWrapper.prototype.componentWillUnmount = function componentWillUnmount() { 46415 if (!this.props.disabled) { 46416 this.removeEventListeners(); 46417 } 46418 }; 46419 46420 RootCloseWrapper.prototype.render = function render() { 46421 return this.props.children; 46422 }; 46423 46424 return RootCloseWrapper; 46425}(_react2.default.Component); 46426 46427RootCloseWrapper.displayName = 'RootCloseWrapper'; 46428 46429RootCloseWrapper.propTypes = { 46430 /** 46431 * Callback fired after click or mousedown. Also triggers when user hits `esc`. 46432 */ 46433 onRootClose: _propTypes2.default.func, 46434 /** 46435 * Children to render. 46436 */ 46437 children: _propTypes2.default.element, 46438 /** 46439 * Disable the the RootCloseWrapper, preventing it from triggering `onRootClose`. 46440 */ 46441 disabled: _propTypes2.default.bool, 46442 /** 46443 * Choose which document mouse event to bind to. 46444 */ 46445 event: _propTypes2.default.oneOf(['click', 'mousedown']) 46446}; 46447 46448RootCloseWrapper.defaultProps = { 46449 event: 'click' 46450}; 46451 46452exports.default = RootCloseWrapper; 46453module.exports = exports['default']; 46454 46455/***/ }), 46456/* 382 */ 46457/***/ (function(module, exports, __webpack_require__) { 46458 46459"use strict"; 46460 46461 46462exports.__esModule = true; 46463 46464exports.default = function (node, event, handler, capture) { 46465 (0, _on2.default)(node, event, handler, capture); 46466 46467 return { 46468 remove: function remove() { 46469 (0, _off2.default)(node, event, handler, capture); 46470 } 46471 }; 46472}; 46473 46474var _on = __webpack_require__(96); 46475 46476var _on2 = _interopRequireDefault(_on); 46477 46478var _off = __webpack_require__(157); 46479 46480var _off2 = _interopRequireDefault(_off); 46481 46482function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 46483 46484module.exports = exports['default']; 46485 46486/***/ }), 46487/* 383 */ 46488/***/ (function(module, __webpack_exports__, __webpack_require__) { 46489 46490"use strict"; 46491/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 46492/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 46493/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 46494/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 46495/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 46496/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 46497/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 46498/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 46499/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 46500/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 46501/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0); 46502/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__); 46503/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(2); 46504/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__); 46505/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_classnames__ = __webpack_require__(8); 46506/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_classnames__); 46507/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Button__ = __webpack_require__(74); 46508/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__SafeAnchor__ = __webpack_require__(34); 46509/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__ = __webpack_require__(9); 46510 46511 46512 46513 46514 46515 46516 46517 46518 46519 46520 46521 46522 46523var propTypes = { 46524 noCaret: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 46525 open: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 46526 title: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 46527 useAnchor: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool 46528}; 46529 46530var defaultProps = { 46531 open: false, 46532 useAnchor: false, 46533 bsRole: 'toggle' 46534}; 46535 46536var DropdownToggle = function (_React$Component) { 46537 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(DropdownToggle, _React$Component); 46538
46539 function DropdownToggle() { 46540 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, DropdownToggle); 46541 46542 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 46543 } 46544 46545 DropdownToggle.prototype.render = function render() { 46546 var _props = this.props, 46547 noCaret = _props.noCaret, 46548 open = _props.open, 46549 useAnchor = _props.useAnchor, 46550 bsClass = _props.bsClass, 46551 className = _props.className, 46552 children = _props.children, 46553 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['noCaret', 'open', 'useAnchor', 'bsClass', 'className', 'children']); 46554 46555 delete props.bsRole; 46556 46557 var Component = useAnchor ? __WEBPACK_IMPORTED_MODULE_9__SafeAnchor__["a" /* default */] : __WEBPACK_IMPORTED_MODULE_8__Button__["a" /* default */]; 46558 var useCaret = !noCaret; 46559 46560 // This intentionally forwards bsSize and bsStyle (if set) to the 46561 // underlying component, to allow it to render size and style variants. 46562 46563 // FIXME: Should this really fall back to `title` as children? 46564 46565 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( 46566 Component, 46567 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, { 46568 role: 'button', 46569 className: __WEBPACK_IMPORTED_MODULE_7_classnames___default()(className, bsClass), 46570 'aria-haspopup': true, 46571 'aria-expanded': open 46572 }), 46573 children || props.title, 46574 useCaret && ' ', 46575 useCaret && __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('span', { className: 'caret' }) 46576 ); 46577 }; 46578 46579 return DropdownToggle; 46580}(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component); 46581 46582DropdownToggle.propTypes = propTypes; 46583DropdownToggle.defaultProps = defaultProps; 46584 46585/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["bsClass"])('dropdown-toggle', DropdownToggle)); 46586 46587/***/ }), 46588/* 384 */ 46589/***/ (function(module, __webpack_exports__, __webpack_require__) { 46590 46591"use strict"; 46592/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 46593/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 46594/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 46595/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 46596/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 46597/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 46598/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 46599/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 46600/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 46601/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 46602/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 46603/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 46604/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 46605/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 46606/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 46607/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 46608/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__ = __webpack_require__(13); 46609/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__); 46610/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 46611 46612 46613 46614 46615 46616 46617 46618 46619 46620 46621 46622 46623var propTypes = { 46624 /** 46625 * Turn any fixed-width grid layout into a full-width layout by this property. 46626 * 46627 * Adds `container-fluid` class. 46628 */ 46629 fluid: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 46630 /** 46631 * You can use a custom element for this component 46632 */ 46633 componentClass: __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default.a 46634}; 46635 46636var defaultProps = { 46637 componentClass: 'div', 46638 fluid: false 46639}; 46640 46641var Grid = function (_React$Component) { 46642 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Grid, _React$Component); 46643 46644 function Grid() { 46645 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Grid); 46646 46647 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 46648 } 46649 46650 Grid.prototype.render = function render() { 46651 var _props = this.props, 46652 fluid = _props.fluid, 46653 Component = _props.componentClass, 46654 className = _props.className, 46655 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['fluid', 'componentClass', 'className']); 46656 46657 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 46658 bsProps = _splitBsProps[0], 46659 elementProps = _splitBsProps[1]; 46660 46661 var classes = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(bsProps, fluid && 'fluid'); 46662 46663 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 46664 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 46665 })); 46666 }; 46667 46668 return Grid; 46669}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 46670
46671Grid.propTypes = propTypes; 46672Grid.defaultProps = defaultProps; 46673 46674/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('container', Grid)); 46675 46676/***/ }), 46677/* 385 */ 46678/***/ (function(module, __webpack_exports__, __webpack_require__) { 46679 46680"use strict"; 46681/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values__ = __webpack_require__(62); 46682/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values__); 46683/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(6); 46684/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__); 46685/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 46686/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties__); 46687/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 46688/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__); 46689/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 46690/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__); 46691/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(5); 46692/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__); 46693/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames__ = __webpack_require__(8); 46694/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_classnames__); 46695/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react__ = __webpack_require__(0); 46696/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react__); 46697/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types__ = __webpack_require__(2); 46698/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types__); 46699/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 46700/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_StyleConfig__ = __webpack_require__(20); 46701 46702 46703 46704 46705 46706 46707 46708 46709 46710 46711 46712 46713 46714var propTypes = { 46715 active: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.any, 46716 disabled: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.any, 46717 header: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.node, 46718 listItem: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, 46719 onClick: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, 46720 href: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string, 46721 type: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string 46722}; 46723 46724var defaultProps = { 46725 listItem: false 46726}; 46727 46728var ListGroupItem = function (_React$Component) { 46729 __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(ListGroupItem, _React$Component); 46730 46731 function ListGroupItem() { 46732 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck___default()(this, ListGroupItem); 46733 46734 return __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 46735 } 46736 46737 ListGroupItem.prototype.renderHeader = function renderHeader(header, headingClassName) { 46738 if (__WEBPACK_IMPORTED_MODULE_7_react___default.a.isValidElement(header)) { 46739 return Object(__WEBPACK_IMPORTED_MODULE_7_react__["cloneElement"])(header, { 46740 className: __WEBPACK_IMPORTED_MODULE_6_classnames___default()(header.props.className, headingClassName) 46741 }); 46742 } 46743 46744 return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement( 46745 'h4', 46746 { className: headingClassName }, 46747 header 46748 ); 46749 }; 46750 46751 ListGroupItem.prototype.render = function render() { 46752 var _props = this.props, 46753 active = _props.active, 46754 disabled = _props.disabled, 46755 className = _props.className, 46756 header = _props.header, 46757 listItem = _props.listItem, 46758 children = _props.children, 46759 props = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['active', 'disabled', 'className', 'header', 'listItem', 'children']); 46760 46761 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 46762 bsProps = _splitBsProps[0], 46763 elementProps = _splitBsProps[1]; 46764 46765 var classes = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["getClassSet"])(bsProps), { 46766 active: active, 46767 disabled: disabled 46768 }); 46769 46770 var Component = void 0; 46771 46772 if (elementProps.href) { 46773 Component = 'a'; 46774 } else if (elementProps.onClick) { 46775 Component = 'button'; 46776 elementProps.type = elementProps.type || 'button'; 46777 } else if (listItem) { 46778 Component = 'li'; 46779 } else { 46780 Component = 'span'; 46781 } 46782 46783 elementProps.className = __WEBPACK_IMPORTED_MODULE_6_classnames___default()(className, classes); 46784 46785 // TODO: Deprecate `header` prop. 46786 if (header) { 46787 return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement( 46788 Component, 46789 elementProps, 46790 this.renderHeader(header, Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(bsProps, 'heading')), 46791 __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement( 46792 'p', 46793 { className: Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(bsProps, 'text') }, 46794 children 46795 ) 46796 ); 46797 } 46798 46799 return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement( 46800 Component, 46801 elementProps, 46802 children 46803 ); 46804 }; 46805 46806 return ListGroupItem; 46807}(__WEBPACK_IMPORTED_MODULE_7_react___default.a.Component); 46808
46809ListGroupItem.propTypes = propTypes; 46810ListGroupItem.defaultProps = defaultProps; 46811 46812/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('list-group-item', Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsStyles"])(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values___default()(__WEBPACK_IMPORTED_MODULE_10__utils_StyleConfig__["d" /* State */]), ListGroupItem))); 46813 46814/***/ }), 46815/* 386 */ 46816/***/ (function(module, exports, __webpack_require__) { 46817 46818"use strict"; 46819 46820 46821Object.defineProperty(exports, "__esModule", { 46822 value: true 46823}); 46824 46825exports.default = function (recalc) { 46826 if (!size && size !== 0 || recalc) { 46827 if (_inDOM2.default) { 46828 var scrollDiv = document.createElement('div'); 46829 46830 scrollDiv.style.position = 'absolute'; 46831 scrollDiv.style.top = '-9999px'; 46832 scrollDiv.style.width = '50px'; 46833 scrollDiv.style.height = '50px'; 46834 scrollDiv.style.overflow = 'scroll'; 46835 46836 document.body.appendChild(scrollDiv); 46837 size = scrollDiv.offsetWidth - scrollDiv.clientWidth; 46838 document.body.removeChild(scrollDiv); 46839 } 46840 } 46841 46842 return size; 46843}; 46844 46845var _inDOM = __webpack_require__(39); 46846 46847var _inDOM2 = _interopRequireDefault(_inDOM); 46848 46849function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 46850 46851var size = void 0; 46852 46853module.exports = exports['default']; 46854 46855/***/ }), 46856/* 387 */ 46857/***/ (function(module, exports, __webpack_require__) { 46858 46859"use strict"; 46860 46861 46862Object.defineProperty(exports, "__esModule", { 46863 value: true 46864}); 46865exports.default = hasClass; 46866function hasClass(element, className) { 46867 if (element.classList) return !!className && element.classList.contains(className);else return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1; 46868} 46869module.exports = exports["default"]; 46870 46871/***/ }), 46872/* 388 */ 46873/***/ (function(module, exports, __webpack_require__) { 46874 46875"use strict"; 46876 46877 46878exports.__esModule = true; 46879exports.default = isOverflowing; 46880 46881var _isWindow = __webpack_require__(103); 46882 46883var _isWindow2 = _interopRequireDefault(_isWindow); 46884 46885var _ownerDocument = __webpack_require__(63); 46886 46887var _ownerDocument2 = _interopRequireDefault(_ownerDocument); 46888 46889function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 46890 46891function isBody(node) { 46892 return node && node.tagName.toLowerCase() === 'body'; 46893} 46894 46895function bodyIsOverflowing(node) { 46896 var doc = (0, _ownerDocument2.default)(node); 46897 var win = (0, _isWindow2.default)(doc); 46898 var fullWidth = win.innerWidth; 46899 46900 // Support: ie8, no innerWidth 46901 if (!fullWidth) { 46902 var documentElementRect = doc.documentElement.getBoundingClientRect(); 46903 fullWidth = documentElementRect.right - Math.abs(documentElementRect.left); 46904 } 46905 46906 return doc.body.clientWidth < fullWidth; 46907} 46908 46909function isOverflowing(container) { 46910 var win = (0, _isWindow2.default)(container); 46911 46912 return win || isBody(container) ? bodyIsOverflowing(container) : container.scrollHeight > container.clientHeight; 46913} 46914module.exports = exports['default']; 46915 46916/***/ }), 46917/* 389 */ 46918/***/ (function(module, exports, __webpack_require__) { 46919 46920"use strict"; 46921 46922 46923exports.__esModule = true; 46924 46925var _propTypes = __webpack_require__(2); 46926 46927var _propTypes2 = _interopRequireDefault(_propTypes); 46928 46929var _componentOrElement = __webpack_require__(102); 46930 46931var _componentOrElement2 = _interopRequireDefault(_componentOrElement); 46932 46933var _react = __webpack_require__(0); 46934 46935var _react2 = _interopRequireDefault(_react); 46936 46937var _reactDom = __webpack_require__(17); 46938 46939var _reactDom2 = _interopRequireDefault(_reactDom); 46940 46941var _getContainer = __webpack_require__(104); 46942 46943var _getContainer2 = _interopRequireDefault(_getContainer); 46944 46945var _ownerDocument = __webpack_require__(65); 46946 46947var _ownerDocument2 = _interopRequireDefault(_ownerDocument); 46948 46949var _LegacyPortal = __webpack_require__(739); 46950 46951var _LegacyPortal2 = _interopRequireDefault(_LegacyPortal); 46952 46953function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 46954 46955function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 46956 46957function _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; } 46958 46959function _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, { c
46959onstructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } 46960 46961/** 46962 * The `<Portal/>` component renders its children into a new "subtree" outside of current component hierarchy. 46963 * You can think of it as a declarative `appendChild()`, or jQuery's `$.fn.appendTo()`. 46964 * The children of `<Portal/>` component will be appended to the `container` specified. 46965 */ 46966var Portal = function (_React$Component) { 46967 _inherits(Portal, _React$Component); 46968 46969 function Portal() { 46970 var _temp, _this, _ret; 46971 46972 _classCallCheck(this, Portal); 46973 46974 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { 46975 args[_key] = arguments[_key]; 46976 } 46977 46978 return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.setContainer = function () { 46979 var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _this.props; 46980 46981 _this._portalContainerNode = (0, _getContainer2.default)(props.container, (0, _ownerDocument2.default)(_this).body); 46982 }, _this.getMountNode = function () { 46983 return _this._portalContainerNode; 46984 }, _temp), _possibleConstructorReturn(_this, _ret); 46985 } 46986 46987 Portal.prototype.componentDidMount = function componentDidMount() { 46988 this.setContainer(); 46989 this.forceUpdate(this.props.onRendered); 46990 }; 46991 46992 Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { 46993 if (nextProps.container !== this.props.container) { 46994 this.setContainer(nextProps); 46995 } 46996 }; 46997 46998 Portal.prototype.componentWillUnmount = function componentWillUnmount() { 46999 this._portalContainerNode = null; 47000 }; 47001 47002 Portal.prototype.render = function render() { 47003 return this.props.children && this._portalContainerNode ? _reactDom2.default.createPortal(this.props.children, this._portalContainerNode) : null; 47004 }; 47005 47006 return Portal; 47007}(_react2.default.Component); 47008 47009Portal.displayName = 'Portal'; 47010Portal.propTypes = { 47011 /** 47012 * A Node, Component instance, or function that returns either. The `container` will have the Portal children 47013 * appended to it. 47014 */ 47015 container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]), 47016 47017 onRendered: _propTypes2.default.func 47018}; 47019exports.default = _reactDom2.default.createPortal ? Portal : _LegacyPortal2.default; 47020module.exports = exports['default']; 47021 47022/***/ }), 47023/* 390 */ 47024/***/ (function(module, __webpack_exports__, __webpack_require__) { 47025 47026"use strict"; 47027/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 47028/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 47029/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 47030/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 47031/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 47032/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 47033/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 47034/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 47035/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 47036/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 47037/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 47038/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 47039/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 47040/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 47041/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__ = __webpack_require__(13); 47042/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__); 47043/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 47044 47045 47046 47047 47048 47049 47050 47051 47052 47053 47054 47055var propTypes = { 47056 componentClass: __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default.a 47057}; 47058 47059var defaultProps = { 47060 componentClass: 'div' 47061}; 47062 47063var ModalBody = function (_React$Component) { 47064 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(ModalBody, _React$Component); 47065 47066 function ModalBody() { 47067 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, ModalBody); 47068 47069 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 47070 } 47071 47072 ModalBody.prototype.render = function render() { 47073 var _props = this.props, 47074 Component = _props.componentClass, 47075 className = _props.className, 47076 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['componentClass', 'className']); 47077 47078 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["splitBsProps"])(props), 47079 bsProps = _splitBsProps[0], 47080 elementProps = _splitBsProps[1]; 47081 47082 var classes = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["getClassSet"])(bsProps); 47083 47084 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 47085 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 47086 })); 47087 }; 47088 47089 return ModalBody; 47090}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 47091
47092ModalBody.propTypes = propTypes; 47093ModalBody.defaultProps = defaultProps; 47094 47095/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsClass"])('modal-body', ModalBody)); 47096 47097/***/ }), 47098/* 391 */ 47099/***/ (function(module, __webpack_exports__, __webpack_require__) { 47100 47101"use strict"; 47102/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 47103/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 47104/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 47105/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 47106/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 47107/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 47108/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 47109/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 47110/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 47111/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 47112/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 47113/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 47114/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 47115/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 47116/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__ = __webpack_require__(13); 47117/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__); 47118/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 47119 47120 47121 47122 47123 47124 47125 47126 47127 47128 47129 47130var propTypes = { 47131 componentClass: __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default.a 47132}; 47133 47134var defaultProps = { 47135 componentClass: 'div' 47136}; 47137 47138var ModalFooter = function (_React$Component) { 47139 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(ModalFooter, _React$Component); 47140 47141 function ModalFooter() { 47142 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, ModalFooter); 47143 47144 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 47145 } 47146 47147 ModalFooter.prototype.render = function render() { 47148 var _props = this.props, 47149 Component = _props.componentClass, 47150 className = _props.className, 47151 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['componentClass', 'className']); 47152 47153 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["splitBsProps"])(props), 47154 bsProps = _splitBsProps[0], 47155 elementProps = _splitBsProps[1]; 47156 47157 var classes = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["getClassSet"])(bsProps); 47158 47159 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 47160 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 47161 })); 47162 }; 47163 47164 return ModalFooter; 47165}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 47166
47167ModalFooter.propTypes = propTypes; 47168ModalFooter.defaultProps = defaultProps; 47169 47170/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsClass"])('modal-footer', ModalFooter)); 47171 47172/***/ }), 47173/* 392 */ 47174/***/ (function(module, __webpack_exports__, __webpack_require__) { 47175 47176"use strict"; 47177/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 47178/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 47179/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 47180/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 47181/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 47182/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 47183/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 47184/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 47185/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 47186/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 47187/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 47188/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 47189/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 47190/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 47191/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 47192/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 47193/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 47194/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_createChainedFunction__ = __webpack_require__(16); 47195/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__CloseButton__ = __webpack_require__(152); 47196 47197 47198 47199 47200 47201 47202 47203 47204 47205 47206 47207 47208 47209// TODO: `aria-label` should be `closeLabel`. 47210 47211var propTypes = { 47212 /** 47213 * Provides an accessible label for the close 47214 * button. It is used for Assistive Technology when the label text is not 47215 * readable. 47216 */ 47217 closeLabel: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 47218 47219 /** 47220 * Specify whether the Component should contain a close button 47221 */ 47222 closeButton: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 47223 47224 /** 47225 * A Callback fired when the close button is clicked. If used directly inside 47226 * a Modal component, the onHide will automatically be propagated up to the 47227 * parent Modal `onHide`. 47228 */ 47229 onHide: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func 47230}; 47231 47232var defaultProps = { 47233 closeLabel: 'Close', 47234 closeButton: false 47235}; 47236 47237var contextTypes = { 47238 $bs_modal: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.shape({ 47239 onHide: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func 47240 }) 47241}; 47242 47243var ModalHeader = function (_React$Component) { 47244 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(ModalHeader, _React$Component); 47245 47246 function ModalHeader() { 47247 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, ModalHeader); 47248 47249 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 47250 } 47251 47252 ModalHeader.prototype.render = function render() { 47253 var _props = this.props, 47254 closeLabel = _props.closeLabel, 47255 closeButton = _props.closeButton, 47256 onHide = _props.onHide, 47257 className = _props.className, 47258 children = _props.children, 47259 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['closeLabel', 'closeButton', 'onHide', 'className', 'children']); 47260 47261 var modal = this.context.$bs_modal; 47262 47263 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["splitBsProps"])(props), 47264 bsProps = _splitBsProps[0], 47265 elementProps = _splitBsProps[1]; 47266 47267 var classes = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["getClassSet"])(bsProps); 47268 47269 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 47270 'div', 47271 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 47272 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 47273 }), 47274 closeButton && __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__CloseButton__["a" /* default */], { 47275 label: closeLabel, 47276 onClick: Object(__WEBPACK_IMPORTED_MODULE_9__utils_createChainedFunction__["a" /* default */])(modal && modal.onHide, onHide) 47277 }), 47278 children 47279 ); 47280 }; 47281 47282 return ModalHeader; 47283}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 47284
47285ModalHeader.propTypes = propTypes; 47286ModalHeader.defaultProps = defaultProps; 47287ModalHeader.contextTypes = contextTypes; 47288 47289/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsClass"])('modal-header', ModalHeader)); 47290 47291/***/ }), 47292/* 393 */ 47293/***/ (function(module, __webpack_exports__, __webpack_require__) { 47294 47295"use strict"; 47296/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 47297/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 47298/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 47299/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 47300/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 47301/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 47302/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 47303/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 47304/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 47305/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 47306/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 47307/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 47308/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 47309/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 47310/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__ = __webpack_require__(13); 47311/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__); 47312/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 47313 47314 47315 47316 47317 47318 47319 47320 47321 47322 47323 47324var propTypes = { 47325 componentClass: __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default.a 47326}; 47327 47328var defaultProps = { 47329 componentClass: 'h4' 47330}; 47331 47332var ModalTitle = function (_React$Component) { 47333 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(ModalTitle, _React$Component); 47334 47335 function ModalTitle() { 47336 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, ModalTitle); 47337 47338 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 47339 } 47340 47341 ModalTitle.prototype.render = function render() { 47342 var _props = this.props, 47343 Component = _props.componentClass, 47344 className = _props.className, 47345 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['componentClass', 'className']); 47346 47347 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["splitBsProps"])(props), 47348 bsProps = _splitBsProps[0], 47349 elementProps = _splitBsProps[1]; 47350 47351 var classes = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["getClassSet"])(bsProps); 47352 47353 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 47354 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 47355 })); 47356 }; 47357 47358 return ModalTitle; 47359}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 47360
47361ModalTitle.propTypes = propTypes; 47362ModalTitle.defaultProps = defaultProps; 47363 47364/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsClass"])('modal-title', ModalTitle)); 47365 47366/***/ }), 47367/* 394 */ 47368/***/ (function(module, __webpack_exports__, __webpack_require__) { 47369 47370"use strict"; 47371/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 47372/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 47373/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 47374/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 47375/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 47376/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 47377/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 47378/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 47379/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 47380/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 47381/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 47382/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 47383/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_keycode__ = __webpack_require__(156); 47384/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_keycode___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_keycode__); 47385/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react__ = __webpack_require__(0); 47386/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react__); 47387/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types__ = __webpack_require__(2); 47388/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types__); 47389/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_dom__ = __webpack_require__(17); 47390/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_react_dom__); 47391/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_prop_types_extra_lib_all__ = __webpack_require__(94); 47392/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_prop_types_extra_lib_all___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_prop_types_extra_lib_all__); 47393/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_warning__ = __webpack_require__(19); 47394/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_warning__); 47395/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__ = __webpack_require__(9); 47396/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__utils_createChainedFunction__ = __webpack_require__(16); 47397/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__utils_ValidComponentChildren__ = __webpack_require__(22); 47398 47399 47400 47401 47402 47403 47404 47405 47406 47407 47408 47409 47410 47411 47412 47413 47414 47415// TODO: Should we expose `<NavItem>` as `<Nav.Item>`? 47416 47417// TODO: This `bsStyle` is very unlike the others. Should we rename it? 47418 47419// TODO: `pullRight` and `pullLeft` don't render right outside of `navbar`. 47420// Consider renaming or replacing them. 47421 47422var propTypes = { 47423 /** 47424 * Marks the NavItem with a matching `eventKey` as active. Has a 47425 * higher precedence over `activeHref`. 47426 */ 47427 activeKey: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.any, 47428 47429 /** 47430 * Marks the child NavItem with a matching `href` prop as active. 47431 */ 47432 activeHref: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string, 47433 47434 /** 47435 * NavItems are be positioned vertically. 47436 */ 47437 stacked: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, 47438 47439 justified: __WEBPACK_IMPORTED_MODULE_10_prop_types_extra_lib_all___default()(__WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, function (_ref) { 47440 var justified = _ref.justified, 47441 navbar = _ref.navbar; 47442 return justified && navbar ? Error('justified navbar `Nav`s are not supported') : null; 47443 }), 47444 47445 /**
47446 * A callback fired when a NavItem is selected. 47447 * 47448 * ```js 47449 * function ( 47450 * Any eventKey, 47451 * SyntheticEvent event? 47452 * ) 47453 * ``` 47454 */ 47455 onSelect: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, 47456 47457 /** 47458 * ARIA role for the Nav, in the context of a TabContainer, the default will 47459 * be set to "tablist", but can be overridden by the Nav when set explicitly. 47460 * 47461 * When the role is set to "tablist" NavItem focus is managed according to 47462 * the ARIA authoring practices for tabs: 47463 * https://www.w3.org/TR/2013/WD-wai-aria-practices-20130307/#tabpanel 47464 */ 47465 role: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string, 47466 47467 /** 47468 * Apply styling an alignment for use in a Navbar. This prop will be set 47469 * automatically when the Nav is used inside a Navbar. 47470 */ 47471 navbar: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, 47472 47473 /** 47474 * Float the Nav to the right. When `navbar` is `true` the appropriate 47475 * contextual classes are added as well. 47476 */ 47477 pullRight: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, 47478 47479 /** 47480 * Float the Nav to the left. When `navbar` is `true` the appropriate 47481 * contextual classes are added as well. 47482 */ 47483 pullLeft: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool 47484}; 47485 47486var defaultProps = { 47487 justified: false, 47488 pullRight: false, 47489 pullLeft: false, 47490 stacked: false 47491}; 47492 47493var contextTypes = { 47494 $bs_navbar: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.shape({ 47495 bsClass: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string, 47496 onSelect: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func 47497 }), 47498 47499 $bs_tabContainer: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.shape({ 47500 activeKey: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.any, 47501 onSelect: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func.isRequired, 47502 getTabId: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func.isRequired, 47503 getPaneId: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func.isRequired 47504 }) 47505}; 47506 47507var Nav = function (_React$Component) { 47508 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Nav, _React$Component); 47509 47510 function Nav() { 47511 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Nav); 47512 47513 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 47514 } 47515 47516 Nav.prototype.componentDidUpdate = function componentDidUpdate() { 47517 var _this2 = this; 47518 47519 if (!this._needsRefocus) { 47520 return; 47521 } 47522 47523 this._needsRefocus = false; 47524 47525 var children = this.props.children; 47526 47527 var _getActiveProps = this.getActiveProps(), 47528 activeKey = _getActiveProps.activeKey, 47529 activeHref = _getActiveProps.activeHref; 47530 47531 var activeChild = __WEBPACK_IMPORTED_MODULE_14__utils_ValidComponentChildren__["a" /* default */].find(children, function (child) { 47532 return _this2.isActive(child, activeKey, activeHref); 47533 }); 47534 47535 var childrenArray = __WEBPACK_IMPORTED_MODULE_14__utils_ValidComponentChildren__["a" /* default */].toArray(children); 47536 var activeChildIndex = childrenArray.indexOf(activeChild); 47537 47538 var childNodes = __WEBPACK_IMPORTED_MODULE_9_react_dom___default.a.findDOMNode(this).children; 47539 var activeNode = childNodes && childNodes[activeChildIndex]; 47540 47541 if (!activeNode || !activeNode.firstChild) { 47542 return; 47543 } 47544 47545 activeNode.firstChild.focus(); 47546 }; 47547 47548 Nav.prototype.getActiveProps = function getActiveProps() { 47549 var tabContainer = this.context.$bs_tabContainer; 47550 47551 if (tabContainer) { 47552 true ? __WEBPACK_IMPORTED_MODULE_11_warning___default()(this.props.activeKey == null && !this.props.activeHref, 'Specifying a `<Nav>` `activeKey` or `activeHref` in the context of ' + 'a `<TabContainer>` is not supported. Instead use `<TabContainer ' + ('activeKey={' + this.props.activeKey + '} />`.')) : void 0; 47553 47554 return tabContainer; 47555 } 47556 47557 return this.props; 47558 }; 47559 47560 Nav.prototype.getNextActiveChild = function getNextActiveChild(offset) { 47561 var _this3 = this; 47562 47563 var children = this.props.children; 47564
47565 var validChildren = children.filter(function (child) { 47566 return child.props.eventKey != null && !child.props.disabled; 47567 }); 47568 47569 var _getActiveProps2 = this.getActiveProps(), 47570 activeKey = _getActiveProps2.activeKey, 47571 activeHref = _getActiveProps2.activeHref; 47572 47573 var activeChild = __WEBPACK_IMPORTED_MODULE_14__utils_ValidComponentChildren__["a" /* default */].find(children, function (child) { 47574 return _this3.isActive(child, activeKey, activeHref); 47575 }); 47576 47577 // This assumes the active child is not disabled. 47578 var activeChildIndex = validChildren.indexOf(activeChild); 47579 if (activeChildIndex === -1) { 47580 // Something has gone wrong. Select the first valid child we can find. 47581 return validChildren[0]; 47582 } 47583 47584 var nextIndex = activeChildIndex + offset; 47585 var numValidChildren = validChildren.length; 47586 47587 if (nextIndex >= numValidChildren) { 47588 nextIndex = 0; 47589 } else if (nextIndex < 0) { 47590 nextIndex = numValidChildren - 1; 47591 } 47592 47593 return validChildren[nextIndex]; 47594 }; 47595 47596 Nav.prototype.getTabProps = function getTabProps(child, tabContainer, navRole, active, onSelect) { 47597 var _this4 = this; 47598 47599 if (!tabContainer && navRole !== 'tablist') { 47600 // No tab props here. 47601 return null; 47602 } 47603 47604 var _child$props = child.props, 47605 id = _child$props.id, 47606 controls = _child$props['aria-controls'], 47607 eventKey = _child$props.eventKey, 47608 role = _child$props.role, 47609 onKeyDown = _child$props.onKeyDown, 47610 tabIndex = _child$props.tabIndex; 47611 47612 47613 if (tabContainer) { 47614 true ? __WEBPACK_IMPORTED_MODULE_11_warning___default()(!id && !controls, 'In the context of a `<TabContainer>`, `<NavItem>`s are given ' + 'generated `id` and `aria-controls` attributes for the sake of ' + 'proper component accessibility. Any provided ones will be ignored. ' + 'To control these attributes directly, provide a `generateChildId` ' + 'prop to the parent `<TabContainer>`.') : void 0; 47615 47616 id = tabContainer.getTabId(eventKey); 47617 controls = tabContainer.getPaneId(eventKey); 47618 } 47619 47620 if (navRole === 'tablist') { 47621 role = role || 'tab'; 47622 onKeyDown = Object(__WEBPACK_IMPORTED_MODULE_13__utils_createChainedFunction__["a" /* default */])(function (event) { 47623 return _this4.handleTabKeyDown(onSelect, event); 47624 }, onKeyDown); 47625 tabIndex = active ? tabIndex : -1; 47626 } 47627 47628 return { 47629 id: id, 47630 role: role, 47631 onKeyDown: onKeyDown, 47632 'aria-controls': controls, 47633 tabIndex: tabIndex 47634 }; 47635 }; 47636 47637 Nav.prototype.handleTabKeyDown = function handleTabKeyDown(onSelect, event) { 47638 var nextActiveChild = void 0; 47639 47640 switch (event.keyCode) { 47641 case __WEBPACK_IMPORTED_MODULE_6_keycode___default.a.codes.left: 47642 case __WEBPACK_IMPORTED_MODULE_6_keycode___default.a.codes.up: 47643 nextActiveChild = this.getNextActiveChild(-1); 47644 break; 47645 case __WEBPACK_IMPORTED_MODULE_6_keycode___default.a.codes.right: 47646 case __WEBPACK_IMPORTED_MODULE_6_keycode___default.a.codes.down: 47647 nextActiveChild = this.getNextActiveChild(1); 47648 break; 47649 default: 47650 // It was a different key; don't handle this keypress. 47651 return; 47652 } 47653 47654 event.preventDefault(); 47655 47656 if (onSelect && nextActiveChild && nextActiveChild.props.eventKey != null) { 47657 onSelect(nextActiveChild.props.eventKey); 47658 } 47659 47660 this._needsRefocus = true; 47661 }; 47662 47663 Nav.prototype.isActive = function isActive(_ref2, activeKey, activeHref) { 47664 var props = _ref2.props; 47665 47666 if (props.active || activeKey != null && props.eventKey === activeKey || activeHref && props.href === activeHref) { 47667 return true; 47668 } 47669 47670 return props.active; 47671 }; 47672 47673 Nav.prototype.render = function render() { 47674 var _extends2, 47675 _this5 = this; 47676 47677 var _props = this.props, 47678 stacked = _props.stacked, 47679 justified = _props.justified, 47680 onSelect = _props.onSelect, 47681 propsRole = _props.role, 47682 propsNavbar = _props.navbar, 47683 pullRight = _props.pullRight, 47684 pullLeft = _props.pullLeft, 47685 className = _props.className, 47686 children = _props.children, 47687 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['stacked', 'justified', 'onSelect', 'role', 'navbar', 'pullRight', 'pullLeft', 'className', 'children']); 47688 47689 var tabContainer = this.context.$bs_tabContainer; 47690 var role = propsRole || (tabContainer ? 'tablist' : null); 47691 47692 var _getActiveProps3 = this.getActiveProps(), 47693 activeKey = _getActiveProps3.activeKey, 47694 activeHref = _getActiveProps3.activeHref; 47695 47696 delete props.activeKey; // Accessed via this.getActiveProps(). 47697 delete props.activeHref; // Accessed via this.getActiveProps(). 47698 47699 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["splitBsProps"])(props), 47700 bsProps = _splitBsProps[0], 47701 elementProps = _splitBsProps[1]; 47702 47703 var classes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["prefix"])(bsProps, 'stacked')] = stacked, _extends2[Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["prefix"])(bsProps, 'justified')] = justified, _extends2)); 47704 47705 var navbar = propsNavbar != null ? propsNavbar : this.context.$bs_navbar; 47706 var pullLeftClassName = void 0; 47707 var pullRightClassName = void 0; 47708 47709 if (navbar) { 47710 var navbarProps = this.context.$bs_navbar || { bsClass: 'navbar' }; 47711 47712 classes[Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["prefix"])(navbarProps, 'nav')] = true; 47713 47714 pullRightClassName = Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["prefix"])(navbarProps, 'right'); 47715 pullLeftClassName = Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["prefix"])(navbarProps, 'left'); 47716 } else { 47717 pullRightClassName = 'pull-right'; 47718 pullLeftClassName = 'pull-left'; 47719 } 47720 47721 classes[pullRightClassName] = pullRight; 47722 classes[pullLeftClassName] = pullLeft; 47723 47724 return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement( 47725 'ul', 47726 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 47727 role: role, 47728 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 47729 }), 47730 __WEBPACK_IMPORTED_MODULE_14__utils_ValidComponentChildren__["a" /* default */].map(children, function (child) { 47731 var active = _this5.isActive(child, activeKey, activeHref); 47732 var childOnSelect = Object(__WEBPACK_IMPORTED_MODULE_13__utils_createChainedFunction__["a" /* default */])(child.props.onSelect, onSelect, navbar && navbar.onSelect, tabContainer && tabContainer.onSelect); 47733 47734 return Object(__WEBPACK_IMPORTED_MODULE_7_react__["cloneElement"])(child, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, _this5.getTabProps(child, tabContainer, role, active, childOnSelect), { 47735 active: active, 47736 activeKey: activeKey, 47737 activeHref: activeHref, 47738 onSelect: childOnSelect 47739 })); 47740 }) 47741 ); 47742 }; 47743 47744 return Nav;
47745}(__WEBPACK_IMPORTED_MODULE_7_react___default.a.Component); 47746 47747Nav.propTypes = propTypes; 47748Nav.defaultProps = defaultProps; 47749Nav.contextTypes = contextTypes; 47750 47751/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["bsClass"])('nav', Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["bsStyles"])(['tabs', 'pills'], Nav))); 47752 47753/***/ }), 47754/* 395 */ 47755/***/ (function(module, __webpack_exports__, __webpack_require__) { 47756 47757"use strict"; 47758/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 47759/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 47760/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 47761/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 47762/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 47763/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 47764/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 47765/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 47766/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 47767/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 47768/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 47769/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 47770/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 47771/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 47772/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 47773/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 47774/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 47775 47776 47777 47778 47779 47780 47781 47782 47783 47784 47785 47786var contextTypes = { 47787 $bs_navbar: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.shape({ 47788 bsClass: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string 47789 }) 47790}; 47791 47792var NavbarBrand = function (_React$Component) { 47793 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(NavbarBrand, _React$Component); 47794 47795 function NavbarBrand() { 47796 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, NavbarBrand); 47797 47798 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 47799 } 47800 47801 NavbarBrand.prototype.render = function render() { 47802 var _props = this.props, 47803 className = _props.className, 47804 children = _props.children, 47805 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['className', 'children']); 47806 47807 var navbarProps = this.context.$bs_navbar || { bsClass: 'navbar' }; 47808 47809 var bsClassName = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["prefix"])(navbarProps, 'brand'); 47810 47811 if (__WEBPACK_IMPORTED_MODULE_6_react___default.a.isValidElement(children)) { 47812 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(children, { 47813 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(children.props.className, className, bsClassName) 47814 }); 47815 } 47816 47817 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 47818 'span', 47819 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, { className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, bsClassName) }), 47820 children 47821 ); 47822 }; 47823 47824 return NavbarBrand; 47825}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 47826 47827NavbarBrand.contextTypes = contextTypes; 47828 47829/* harmony default export */ __webpack_exports__["a"] = (NavbarBrand); 47830 47831/***/ }), 47832/* 396 */ 47833/***/ (function(module, __webpack_exports__, __webpack_require__) { 47834 47835"use strict"; 47836/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 47837/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 47838/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 47839/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 47840/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 47841/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 47842/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 47843/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 47844/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 47845/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 47846/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 47847/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 47848/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 47849/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 47850/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 47851/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 47852/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__SafeAnchor__ = __webpack_require__(34); 47853/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_createChainedFunction__ = __webpack_require__(16); 47854 47855 47856 47857 47858 47859 47860 47861 47862 47863 47864 47865 47866var propTypes = { 47867 active: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 47868 disabled: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 47869 role: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 47870 href: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 47871 onClick: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 47872 onSelect: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 47873 eventKey: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any 47874}; 47875 47876var defaultProps = { 47877 active: false, 47878 disabled: false 47879}; 47880 47881var NavItem = function (_React$Component) { 47882 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(NavItem, _React$Component); 47883 47884 function NavItem(props, context) { 47885 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, NavItem); 47886 47887 var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props, context)); 47888 47889 _this.handleClick = _this.handleClick.bind(_this); 47890 return _this; 47891 } 47892 47893 NavItem.prototype.handleClick = function handleClick(e) { 47894 if (this.props.onSelect) { 47895 e.preventDefault(); 47896 47897 if (!this.props.disabled) { 47898 this.props.onSelect(this.props.eventKey, e); 47899 } 47900 } 47901 }; 47902 47903 NavItem.prototype.render = function render() { 47904 var _props = this.props, 47905 active = _props.active, 47906 disabled = _props.disabled, 47907 onClick = _props.onClick, 47908 className = _props.className, 47909 style = _props.style, 47910 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['active', 'disabled', 'onClick', 'className', 'style']); 47911 47912 delete props.onSelect; 47913 delete props.eventKey; 47914 47915 // These are injected down by `<Nav>` for building `<SubNav>`s. 47916 delete props.activeKey; 47917 delete props.activeHref; 47918 47919 if (!props.role) { 47920 if (props.href === '#') { 47921 props.role = 'button'; 47922 } 47923 } else if (props.role === 'tab') { 47924 props['aria-selected'] = active; 47925 } 47926 47927 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 47928 'li', 47929 { 47930 role: 'presentation', 47931 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, { active: active, disabled: disabled }), 47932 style: style 47933 }, 47934 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__SafeAnchor__["a" /* default */], __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, { 47935 disabled: disabled, 47936 onClick: Object(__WEBPACK_IMPORTED_MODULE_9__utils_createChainedFunction__["a" /* default */])(onClick, this.handleClick) 47937 })) 47938 ); 47939 }; 47940 47941 return NavItem; 47942}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 47943
47944NavItem.propTypes = propTypes; 47945NavItem.defaultProps = defaultProps; 47946 47947/* harmony default export */ __webpack_exports__["a"] = (NavItem); 47948 47949/***/ }), 47950/* 397 */ 47951/***/ (function(module, __webpack_exports__, __webpack_require__) { 47952 47953"use strict"; 47954/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 47955/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__); 47956/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 47957/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); 47958/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 47959/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); 47960/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(5); 47961/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); 47962/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__ = __webpack_require__(6); 47963/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__); 47964/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 47965/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 47966/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 47967/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 47968/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 47969/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 47970/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_overlays_lib_Overlay__ = __webpack_require__(748); 47971/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_overlays_lib_Overlay___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react_overlays_lib_Overlay__); 47972/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_prop_types_extra_lib_elementType__ = __webpack_require__(13); 47973/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_prop_types_extra_lib_elementType__); 47974/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Fade__ = __webpack_require__(100); 47975 47976 47977 47978 47979 47980 47981 47982 47983 47984 47985 47986 47987 47988var propTypes = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, __WEBPACK_IMPORTED_MODULE_8_react_overlays_lib_Overlay___default.a.propTypes, { 47989 47990 /** 47991 * Set the visibility of the Overlay 47992 */ 47993 show: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 47994 /** 47995 * Specify whether the overlay should trigger onHide when the user clicks outside the overlay 47996 */ 47997 rootClose: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 47998 /** 47999 * A callback invoked by the overlay when it wishes to be hidden. Required if 48000 * `rootClose` is specified. 48001 */ 48002 onHide: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 48003 48004 /** 48005 * Use animation 48006 */ 48007 animation: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_9_prop_types_extra_lib_elementType___default.a]), 48008 48009 /** 48010 * Callback fired before the Overlay transitions in 48011 */ 48012 onEnter: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 48013 48014 /** 48015 * Callback fired as the Overlay begins to transition in 48016 */ 48017 onEntering: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 48018 48019 /** 48020 * Callback fired after the Overlay finishes transitioning in 48021 */ 48022 onEntered: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 48023 48024 /** 48025 * Callback fired right before the Overlay transitions out 48026 */ 48027 onExit: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 48028 48029 /** 48030 * Callback fired as the Overlay begins to transition out 48031 */ 48032 onExiting: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 48033 48034 /** 48035 * Callback fired after the Overlay finishes transitioning out 48036 */ 48037 onExited: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 48038 48039 /** 48040 * Sets the direction of the Overlay. 48041 */ 48042 placement: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOf(['top', 'right', 'bottom', 'left']) 48043}); 48044 48045var defaultProps = { 48046 animation: __WEBPACK_IMPORTED_MODULE_10__Fade__["a" /* default */], 48047 rootClose: false, 48048 show: false, 48049 placement: 'right' 48050}; 48051 48052var Overlay = function (_React$Component) { 48053 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(Overlay, _React$Component); 48054 48055 function Overlay() { 48056 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Overlay); 48057 48058 return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 48059 } 48060 48061 Overlay.prototype.render = function render() { 48062 var _props = this.props, 48063 animation = _props.animation, 48064 children = _props.children, 48065 props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['animation', 'children']); 48066 48067 var transition = animation === true ? __WEBPACK_IMPORTED_MODULE_10__Fade__["a" /* default */] : animation || null; 48068 48069 var child = void 0; 48070 48071 if (!transition) { 48072 child = Object(__WEBPACK_IMPORTED_MODULE_6_react__["cloneElement"])(children, { 48073 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(children.props.className, 'in') 48074 }); 48075 } else { 48076 child = children; 48077 } 48078 48079 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 48080 __WEBPACK_IMPORTED_MODULE_8_react_overlays_lib_Overlay___default.a, 48081 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, props, { 48082 transition: transition 48083 }), 48084 child 48085 ); 48086 }; 48087 48088 return Overlay; 48089}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 48090
48091Overlay.propTypes = propTypes; 48092Overlay.defaultProps = defaultProps; 48093 48094/* harmony default export */ __webpack_exports__["a"] = (Overlay); 48095 48096/***/ }), 48097/* 398 */ 48098/***/ (function(module, exports, __webpack_require__) { 48099 48100"use strict"; 48101 48102 48103Object.defineProperty(exports, "__esModule", { 48104 value: true 48105}); 48106exports.default = offset; 48107 48108var _contains = __webpack_require__(64); 48109 48110var _contains2 = _interopRequireDefault(_contains); 48111 48112var _isWindow = __webpack_require__(103); 48113 48114var _isWindow2 = _interopRequireDefault(_isWindow); 48115 48116var _ownerDocument = __webpack_require__(63); 48117 48118var _ownerDocument2 = _interopRequireDefault(_ownerDocument); 48119 48120function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 48121 48122function offset(node) { 48123 var doc = (0, _ownerDocument2.default)(node), 48124 win = (0, _isWindow2.default)(doc), 48125 docElem = doc && doc.documentElement, 48126 box = { top: 0, left: 0, height: 0, width: 0 }; 48127 48128 if (!doc) return; 48129 48130 // Make sure it's not a disconnected DOM node 48131 if (!(0, _contains2.default)(docElem, node)) return box; 48132 48133 if (node.getBoundingClientRect !== undefined) box = node.getBoundingClientRect(); 48134 48135 // IE8 getBoundingClientRect doesn't support width & height 48136 box = { 48137 top: box.top + (win.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0), 48138 left: box.left + (win.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0), 48139 width: (box.width == null ? node.offsetWidth : box.width) || 0, 48140 height: (box.height == null ? node.offsetHeight : box.height) || 0 48141 }; 48142 48143 return box; 48144} 48145module.exports = exports['default']; 48146 48147/***/ }), 48148/* 399 */ 48149/***/ (function(module, exports, __webpack_require__) { 48150 48151"use strict"; 48152 48153 48154Object.defineProperty(exports, "__esModule", { 48155 value: true 48156}); 48157exports.default = scrollTop; 48158 48159var _isWindow = __webpack_require__(103); 48160 48161var _isWindow2 = _interopRequireDefault(_isWindow); 48162 48163function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 48164 48165function scrollTop(node, val) { 48166 var win = (0, _isWindow2.default)(node); 48167 48168 if (val === undefined) return win ? 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop : node.scrollTop; 48169 48170 if (win) win.scrollTo('pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft, val);else node.scrollTop = val; 48171} 48172module.exports = exports['default']; 48173 48174/***/ }), 48175/* 400 */ 48176/***/ (function(module, __webpack_exports__, __webpack_require__) { 48177 48178"use strict"; 48179/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 48180/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 48181/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 48182/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 48183/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 48184/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 48185/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 48186/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 48187/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 48188/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 48189/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 48190/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 48191/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 48192/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 48193/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 48194/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 48195/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__SafeAnchor__ = __webpack_require__(34); 48196/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_createChainedFunction__ = __webpack_require__(16); 48197 48198 48199 48200 48201 48202 48203 48204 48205 48206 48207 48208 48209var propTypes = { 48210 disabled: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 48211 previous: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 48212 next: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 48213 onClick: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 48214 onSelect: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 48215 eventKey: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any 48216}; 48217 48218var defaultProps = { 48219 disabled: false, 48220 previous: false, 48221 next: false 48222}; 48223 48224var PagerItem = function (_React$Component) { 48225 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(PagerItem, _React$Component); 48226 48227 function PagerItem(props, context) { 48228 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, PagerItem); 48229 48230 var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props, context)); 48231 48232 _this.handleSelect = _this.handleSelect.bind(_this); 48233 return _this; 48234 } 48235 48236 PagerItem.prototype.handleSelect = function handleSelect(e) { 48237 var _props = this.props, 48238 disabled = _props.disabled, 48239 onSelect = _props.onSelect, 48240 eventKey = _props.eventKey; 48241 48242 48243 if (onSelect || disabled) { 48244 e.preventDefault(); 48245 } 48246 48247 if (disabled) { 48248 return; 48249 } 48250 48251 if (onSelect) { 48252 onSelect(eventKey, e); 48253 } 48254 }; 48255 48256 PagerItem.prototype.render = function render() { 48257 var _props2 = this.props, 48258 disabled = _props2.disabled, 48259 previous = _props2.previous, 48260 next = _props2.next, 48261 onClick = _props2.onClick, 48262 className = _props2.className, 48263 style = _props2.style, 48264 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props2, ['disabled', 'previous', 'next', 'onClick', 'className', 'style']); 48265 48266 delete props.onSelect; 48267 delete props.eventKey; 48268 48269 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 48270 'li', 48271 { 48272 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, { disabled: disabled, previous: previous, next: next }), 48273 style: style 48274 }, 48275 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__SafeAnchor__["a" /* default */], __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, { 48276 disabled: disabled, 48277 onClick: Object(__WEBPACK_IMPORTED_MODULE_9__utils_createChainedFunction__["a" /* default */])(onClick, this.handleSelect) 48278 })) 48279 ); 48280 }; 48281 48282 return PagerItem; 48283}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 48284
48285PagerItem.propTypes = propTypes; 48286PagerItem.defaultProps = defaultProps; 48287 48288/* harmony default export */ __webpack_exports__["a"] = (PagerItem); 48289 48290/***/ }), 48291/* 401 */ 48292/***/ (function(module, __webpack_exports__, __webpack_require__) { 48293 48294"use strict"; 48295/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 48296/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 48297/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 48298/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 48299/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 48300/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 48301/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 48302/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 48303/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 48304/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 48305/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 48306/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 48307/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 48308/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 48309/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 48310/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 48311/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__ = __webpack_require__(13); 48312/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__); 48313/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__SafeAnchor__ = __webpack_require__(34); 48314/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_createChainedFunction__ = __webpack_require__(16); 48315 48316 48317 48318 48319 48320 48321 48322 48323 48324 48325 48326 48327 48328// TODO: This should be `<Pagination.Item>`. 48329 48330// TODO: This should use `componentClass` like other components. 48331 48332var propTypes = { 48333 componentClass: __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default.a, 48334 className: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 48335 eventKey: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any, 48336 onSelect: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 48337 disabled: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 48338 active: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 48339 onClick: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func 48340}; 48341 48342var defaultProps = { 48343 componentClass: __WEBPACK_IMPORTED_MODULE_9__SafeAnchor__["a" /* default */], 48344 active: false, 48345 disabled: false 48346}; 48347 48348var PaginationButton = function (_React$Component) { 48349 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(PaginationButton, _React$Component); 48350 48351 function PaginationButton(props, context) { 48352 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, PaginationButton); 48353 48354 var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props, context)); 48355 48356 _this.handleClick = _this.handleClick.bind(_this); 48357 return _this; 48358 } 48359 48360 PaginationButton.prototype.handleClick = function handleClick(event) { 48361 var _props = this.props, 48362 disabled = _props.disabled, 48363 onSelect = _props.onSelect, 48364 eventKey = _props.eventKey; 48365 48366 48367 if (disabled) { 48368 return; 48369 } 48370 48371 if (onSelect) { 48372 onSelect(eventKey, event); 48373 } 48374 }; 48375 48376 PaginationButton.prototype.render = function render() { 48377 var _props2 = this.props, 48378 Component = _props2.componentClass, 48379 active = _props2.active, 48380 disabled = _props2.disabled, 48381 onClick = _props2.onClick, 48382 className = _props2.className, 48383 style = _props2.style, 48384 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props2, ['componentClass', 'active', 'disabled', 'onClick', 'className', 'style']); 48385 48386 if (Component === __WEBPACK_IMPORTED_MODULE_9__SafeAnchor__["a" /* default */]) { 48387 // Assume that custom components want `eventKey`. 48388 delete props.eventKey; 48389 } 48390 48391 delete props.onSelect; 48392 48393 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 48394 'li', 48395 { 48396 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, { active: active, disabled: disabled }), 48397 style: style 48398 }, 48399 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, { 48400 disabled: disabled, 48401 onClick: Object(__WEBPACK_IMPORTED_MODULE_10__utils_createChainedFunction__["a" /* default */])(onClick, this.handleClick) 48402 })) 48403 ); 48404 }; 48405 48406 return PaginationButton; 48407}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 48408
48409PaginationButton.propTypes = propTypes; 48410PaginationButton.defaultProps = defaultProps; 48411 48412/* harmony default export */ __webpack_exports__["a"] = (PaginationButton); 48413 48414/***/ }), 48415/* 402 */ 48416/***/ (function(module, __webpack_exports__, __webpack_require__) { 48417 48418"use strict"; 48419/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 48420/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 48421/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 48422/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 48423/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 48424/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 48425/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 48426/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 48427/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 48428/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 48429/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 48430/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 48431/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 48432/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 48433/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 48434/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 48435/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__ = __webpack_require__(13); 48436/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__); 48437/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_warning__ = __webpack_require__(19); 48438/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_warning__); 48439/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__ = __webpack_require__(9); 48440/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__utils_createChainedFunction__ = __webpack_require__(16); 48441/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__Fade__ = __webpack_require__(100); 48442 48443 48444 48445 48446 48447 48448 48449 48450 48451 48452 48453 48454 48455 48456 48457 48458var propTypes = { 48459 /** 48460 * Uniquely identify the `<TabPane>` among its siblings. 48461 */ 48462 eventKey: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any, 48463 48464 /** 48465 * Use animation when showing or hiding `<TabPane>`s. Use `false` to disable, 48466 * `true` to enable the default `<Fade>` animation or any `<Transition>` 48467 * component. 48468 */ 48469 animation: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default.a]), 48470 48471 /** @private * */ 48472 id: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 48473 48474 /** @private * */ 48475 'aria-labelledby': __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 48476 48477 /** 48478 * If not explicitly specified and rendered in the context of a 48479 * `<TabContent>`, the `bsClass` of the `<TabContent>` suffixed by `-pane`. 48480 * If otherwise not explicitly specified, `tab-pane`. 48481 */ 48482 bsClass: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 48483 48484 /** 48485 * Transition onEnter callback when animation is not `false` 48486 */ 48487 onEnter: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 48488 48489 /** 48490 * Transition onEntering callback when animation is not `false` 48491 */ 48492 onEntering: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 48493 48494 /** 48495 * Transition onEntered callback when animation is not `false` 48496 */ 48497 onEntered: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 48498 48499 /** 48500 * Transition onExit callback when animation is not `false` 48501 */ 48502 onExit: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 48503 48504 /** 48505 * Transition onExiting callback when animation is not `false` 48506 */ 48507 onExiting: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 48508 48509 /** 48510 * Transition onExited callback when animation is not `false` 48511 */ 48512 onExited: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 48513 48514 /** 48515 * Wait until the first "enter" transition to mount the tab (add it to the DOM) 48516 */ 48517 mountOnEnter: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 48518 48519 /** 48520 * Unmount the tab (remove it from the DOM) when it is no longer visible 48521 */ 48522 unmountOnExit: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool 48523}; 48524
48525var contextTypes = { 48526 $bs_tabContainer: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.shape({ 48527 getTabId: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 48528 getPaneId: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func 48529 }), 48530 $bs_tabContent: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.shape({ 48531 bsClass: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 48532 animation: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default.a]), 48533 activeKey: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any, 48534 mountOnEnter: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 48535 unmountOnExit: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 48536 onPaneEnter: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func.isRequired, 48537 onPaneExited: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func.isRequired, 48538 exiting: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool.isRequired 48539 }) 48540}; 48541 48542/** 48543 * We override the `<TabContainer>` context so `<Nav>`s in `<TabPane>`s don't 48544 * conflict with the top level one. 48545 */ 48546var childContextTypes = { 48547 $bs_tabContainer: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOf([null]) 48548}; 48549 48550var TabPane = function (_React$Component) { 48551 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(TabPane, _React$Component); 48552 48553 function TabPane(props, context) { 48554 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, TabPane); 48555 48556 var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props, context)); 48557 48558 _this.handleEnter = _this.handleEnter.bind(_this); 48559 _this.handleExited = _this.handleExited.bind(_this); 48560 48561 _this.in = false; 48562 return _this; 48563 } 48564 48565 TabPane.prototype.getChildContext = function getChildContext() { 48566 return { 48567 $bs_tabContainer: null 48568 }; 48569 }; 48570 48571 TabPane.prototype.componentDidMount = function componentDidMount() { 48572 if (this.shouldBeIn()) { 48573 // In lieu of the action event firing. 48574 this.handleEnter(); 48575 } 48576 }; 48577 48578 TabPane.prototype.componentDidUpdate = function componentDidUpdate() { 48579 if (this.in) { 48580 if (!this.shouldBeIn()) { 48581 // We shouldn't be active any more. Notify the parent. 48582 this.handleExited(); 48583 } 48584 } else if (this.shouldBeIn()) { 48585 // We are the active child. Notify the parent. 48586 this.handleEnter(); 48587 } 48588 }; 48589 48590 TabPane.prototype.componentWillUnmount = function componentWillUnmount() { 48591 if (this.in) { 48592 // In lieu of the action event firing. 48593 this.handleExited(); 48594 } 48595 }; 48596 48597 TabPane.prototype.getAnimation = function getAnimation() { 48598 if (this.props.animation != null) { 48599 return this.props.animation; 48600 } 48601 48602 var tabContent = this.context.$bs_tabContent; 48603 return tabContent && tabContent.animation; 48604 }; 48605 48606 TabPane.prototype.handleEnter = function handleEnter() { 48607 var tabContent = this.context.$bs_tabContent; 48608 if (!tabContent) { 48609 return; 48610 } 48611 48612 this.in = tabContent.onPaneEnter(this, this.props.eventKey); 48613 }; 48614 48615 TabPane.prototype.handleExited = function handleExited() { 48616 var tabContent = this.context.$bs_tabContent; 48617 if (!tabContent) { 48618 return; 48619 } 48620 48621 tabContent.onPaneExited(this); 48622 this.in = false; 48623 }; 48624 48625 TabPane.prototype.isActive = function isActive() { 48626 var tabContent = this.context.$bs_tabContent; 48627 var activeKey = tabContent && tabContent.activeKey; 48628 48629 return this.props.eventKey === activeKey; 48630 }; 48631 48632 TabPane.prototype.shouldBeIn = function shouldBeIn() { 48633 return this.getAnimation() && this.isActive(); 48634 }; 48635 48636 TabPane.prototype.render = function render() { 48637 var _props = this.props, 48638 eventKey = _props.eventKey, 48639 className = _props.className, 48640 onEnter = _props.onEnter, 48641 onEntering = _props.onEntering, 48642 onEntered = _props.onEntered, 48643 onExit = _props.onExit, 48644 onExiting = _props.onExiting, 48645 onExited = _props.onExited, 48646 propsMountOnEnter = _props.mountOnEnter, 48647 propsUnmountOnExit = _props.unmountOnExit, 48648 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['eventKe
48648y', 'className', 'onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'onExited', 'mountOnEnter', 'unmountOnExit']); 48649 48650 var _context = this.context, 48651 tabContent = _context.$bs_tabContent, 48652 tabContainer = _context.$bs_tabContainer; 48653 48654 var _splitBsPropsAndOmit = Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["splitBsPropsAndOmit"])(props, ['animation']), 48655 bsProps = _splitBsPropsAndOmit[0], 48656 elementProps = _splitBsPropsAndOmit[1]; 48657 48658 var active = this.isActive(); 48659 var animation = this.getAnimation(); 48660 48661 var mountOnEnter = propsMountOnEnter != null ? propsMountOnEnter : tabContent && tabContent.mountOnEnter; 48662 var unmountOnExit = propsUnmountOnExit != null ? propsUnmountOnExit : tabContent && tabContent.unmountOnExit; 48663 48664 if (!active && !animation && unmountOnExit) { 48665 return null; 48666 } 48667 48668 var Transition = animation === true ? __WEBPACK_IMPORTED_MODULE_12__Fade__["a" /* default */] : animation || null; 48669 48670 if (tabContent) { 48671 bsProps.bsClass = Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["prefix"])(tabContent, 'pane'); 48672 } 48673 48674 var classes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["getClassSet"])(bsProps), { 48675 active: active 48676 }); 48677 48678 if (tabContainer) { 48679 true ? __WEBPACK_IMPORTED_MODULE_9_warning___default()(!elementProps.id && !elementProps['aria-labelledby'], 'In the context of a `<TabContainer>`, `<TabPanes>` are given ' + 'generated `id` and `aria-labelledby` attributes for the sake of ' + 'proper component accessibility. Any provided ones will be ignored. ' + 'To control these attributes directly provide a `generateChildId` ' + 'prop to the parent `<TabContainer>`.') : void 0; 48680 48681 elementProps.id = tabContainer.getPaneId(eventKey); 48682 elementProps['aria-labelledby'] = tabContainer.getTabId(eventKey); 48683 } 48684 48685 var pane = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('div', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 48686 role: 'tabpanel', 48687 'aria-hidden': !active, 48688 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 48689 })); 48690 48691 if (Transition) { 48692 var exiting = tabContent && tabContent.exiting; 48693 48694 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 48695 Transition, 48696 { 48697 'in': active && !exiting, 48698 onEnter: Object(__WEBPACK_IMPORTED_MODULE_11__utils_createChainedFunction__["a" /* default */])(this.handleEnter, onEnter), 48699 onEntering: onEntering, 48700 onEntered: onEntered, 48701 onExit: onExit, 48702 onExiting: onExiting, 48703 onExited: Object(__WEBPACK_IMPORTED_MODULE_11__utils_createChainedFunction__["a" /* default */])(this.handleExited, onExited), 48704 mountOnEnter: mountOnEnter, 48705 unmountOnExit: unmountOnExit 48706 }, 48707 pane 48708 ); 48709 } 48710 48711 return pane; 48712 }; 48713 48714 return TabPane; 48715}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 48716 48717TabPane.propTypes = propTypes; 48718TabPane.contextTypes = contextTypes; 48719TabPane.childContextTypes = childContextTypes; 48720 48721/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["bsClass"])('tab-pane', TabPane)); 48722 48723/***/ }), 48724/* 403 */ 48725/***/ (function(module, __webpack_exports__, __webpack_require__) { 48726 48727"use strict"; 48728/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 48729/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 48730/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 48731/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 48732/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 48733/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 48734/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 48735/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 48736/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 48737/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 48738/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(2); 48739/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__); 48740/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 48741/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 48742/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Button__ = __webpack_require__(74); 48743 48744 48745 48746 48747 48748 48749 48750 48751 48752 48753var propTypes = { 48754 /** 48755 * The `<input>` `type` 48756 * @type {[type]} 48757 */ 48758 type: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOf(['checkbox', 'radio']), 48759 48760 /** 48761 * The HTML input name, used to group like checkboxes or radio buttons together 48762 * semantically 48763 */ 48764 name: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, 48765 48766 /** 48767 * The checked state of the input, managed by `<ToggleButtonGroup>`` automatically 48768 */ 48769 checked: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, 48770 48771 /** 48772 * The disabled state of both the label and input 48773 */ 48774 disabled: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, 48775 48776 /** 48777 * [onChange description] 48778 */ 48779 onChange: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, 48780 /** 48781 * The value of the input, and unique identifier in the ToggleButtonGroup 48782 */ 48783 value: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any.isRequired 48784}; 48785 48786var ToggleButton = function (_React$Component) { 48787 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(ToggleButton, _React$Component); 48788 48789 function ToggleButton() { 48790 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, ToggleButton); 48791 48792 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 48793 } 48794 48795 ToggleButton.prototype.render = function render() { 48796 var _props = this.props, 48797 children = _props.children, 48798 name = _props.name, 48799 checked = _props.checked, 48800 type = _props.type, 48801 onChange = _props.onChange, 48802 value = _props.value, 48803 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['children', 'name', 'checked', 'type', 'onCh
48803ange', 'value']); 48804 48805 var disabled = props.disabled; 48806 48807 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 48808 __WEBPACK_IMPORTED_MODULE_7__Button__["a" /* default */], 48809 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, { 48810 active: !!checked, 48811 componentClass: 'label' 48812 }), 48813 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('input', { 48814 name: name, 48815 type: type, 48816 autoComplete: 'off', 48817 value: value, 48818 checked: !!checked, 48819 disabled: !!disabled, 48820 onChange: onChange 48821 }), 48822 children 48823 ); 48824 }; 48825 48826 return ToggleButton; 48827}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 48828 48829ToggleButton.propTypes = propTypes; 48830 48831/* harmony default export */ __webpack_exports__["a"] = (ToggleButton); 48832 48833/***/ }), 48834/* 404 */ 48835/***/ (function(module, exports, __webpack_require__) { 48836 48837"use strict"; 48838 48839 48840Object.defineProperty(exports, "__esModule", { 48841 value: true 48842}); 48843 48844var _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; }; 48845 48846var _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; }; }(); 48847 48848var _react = __webpack_require__(0); 48849 48850var _react2 = _interopRequireDefault(_react); 48851 48852var _defaultPropTypes = __webpack_require__(405); 48853 48854var _defaultPropTypes2 = _interopRequireDefault(_defaultPropTypes); 48855 48856function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 48857 48858function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 48859 48860function _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; } 48861 48862function _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; } /* linting temp disabled while working on updates */ 48863/* eslint-disable */ 48864 48865 48866var Notification = function (_Component) { 48867 _inherits(Notification, _Component); 48868 48869 function Notification(props) { 48870 _classCallCheck(this, Notification); 48871 48872 var _this = _possibleConstructorReturn(this, (Notification.__proto__ || Object.getPrototypeOf(Notification)).call(this, props)); 48873 48874 _this.getBarStyle = _this.getBarStyle.bind(_this); 48875 _this.getActionStyle = _this.getActionStyle.bind(_this); 48876 _this.getTitleStyle = _this.getTitleStyle.bind(_this); 48877 _this.handleClick = _this.handleClick.bind(_this); 48878 48879 if (props.onDismiss && props.isActive) { 48880 _this.dismissTimeout = setTimeout(props.onDismiss, props.dismissAfter); 48881 } 48882 return _this; 48883 } 48884 48885 _createClass(Notification, [{ 48886 key: 'componentWillReceiveProps', 48887 value: function componentWillReceiveProps(nextProps) { 48888 if (nextProps.dismissAfter === false) return; 48889 48890 // See http://eslint.org/docs/rules/no-prototype-builtins 48891 if (!{}.hasOwnProperty.call(nextProps, 'isLast')) {
48892 clearTimeout(this.dismissTimeout); 48893 } 48894 48895 if (nextProps.onDismiss) { 48896 if (nextProps.isActive && !this.props.isActive || nextProps.dismissAfter && this.props.dismissAfter === false) { 48897 this.dismissTimeout = setTimeout(nextProps.onDismiss, nextProps.dismissAfter); 48898 } 48899 } 48900 } 48901 }, { 48902 key: 'componentWillUnmount', 48903 value: function componentWillUnmount() { 48904 if (this.props.dismissAfter) clearTimeout(this.dismissTimeout); 48905 } 48906 48907 /* 48908 * @description Dynamically get the styles for the bar. 48909 * @returns {object} result The style. 48910 */ 48911 48912 }, { 48913 key: 'getBarStyle', 48914 value: function getBarStyle() { 48915 if (this.props.style === false) return {}; 48916 48917 var _props = this.props, 48918 isActive = _props.isActive, 48919 barStyle = _props.barStyle, 48920 activeBarStyle = _props.activeBarStyle; 48921 48922 48923 var baseStyle = { 48924 position: 'fixed', 48925 bottom: '2rem', 48926 left: '-100%', 48927 width: 'auto', 48928 padding: '1rem', 48929 margin: 0, 48930 color: '#fafafa', 48931 font: '1rem normal Roboto, sans-serif', 48932 borderRadius: '5px', 48933 background: '#212121', 48934 borderSizing: 'border-box', 48935 boxShadow: '0 0 1px 1px rgba(10, 10, 11, .125)', 48936 cursor: 'default', 48937 WebKitTransition: '.5s cubic-bezier(0.89, 0.01, 0.5, 1.1)', 48938 MozTransition: '.5s cubic-bezier(0.89, 0.01, 0.5, 1.1)', 48939 msTransition: '.5s cubic-bezier(0.89, 0.01, 0.5, 1.1)', 48940 OTransition: '.5s cubic-bezier(0.89, 0.01, 0.5, 1.1)', 48941 transition: '.5s cubic-bezier(0.89, 0.01, 0.5, 1.1)', 48942 WebkitTransform: 'translatez(0)', 48943 MozTransform: 'translatez(0)', 48944 msTransform: 'translatez(0)', 48945 OTransform: 'translatez(0)', 48946 transform: 'translatez(0)' 48947 }; 48948 48949 return isActive ? _extends({}, baseStyle, { left: '1rem' }, barStyle, activeBarStyle) : _extends({}, baseStyle, barStyle); 48950 } 48951 48952 /* 48953 * @function getActionStyle 48954 * @description Dynamically get the styles for the action text. 48955 * @returns {object} result The style. 48956 */ 48957 48958 }, { 48959 key: 'getActionStyle', 48960 value: function getActionStyle() { 48961 return this.props.style !== false ? _extends({}, { 48962 padding: '0.125rem', 48963 marginLeft: '1rem', 48964 color: '#f44336', 48965 font: '.75rem normal Roboto, sans-serif', 48966 lineHeight: '1rem', 48967 letterSpacing: '.125ex', 48968 textTransform: 'uppercase', 48969 borderRadius: '5px', 48970 cursor: 'pointer' 48971 }, this.props.actionStyle) : {}; 48972 } 48973 48974 /* 48975 * @function getTitleStyle 48976 * @description Dynamically get the styles for the title. 48977 * @returns {object} result The style. 48978 */ 48979 48980 }, { 48981 key: 'getTitleStyle', 48982 value: function getTitleStyle() { 48983 return this.props.style !== false ? _extends({}, { 48984 fontWeight: '700', 48985 marginRight: '.5rem' 48986 }, this.props.titleStyle) : {}; 48987 } 48988 48989 /* 48990 * @function handleClick 48991 * @description Handle click events on the action button. 48992 */ 48993 48994 }, { 48995 key: 'handleClick', 48996 value: function handleClick() { 48997 if (this.props.onClick && typeof this.props.onClick === 'function') { 48998 return this.props.onClick(); 48999 } 49000 } 49001 }, { 49002 key: 'render', 49003 value: function render() { 49004 var className = 'notification-bar'; 49005 49006 if (this.props.isActive) className += ' ' + this.props.activeClassName; 49007 if (this.props.className) className += ' ' + this.props.className; 49008 49009 return _react2.default.createElement( 49010 'div', 49011 { className: className, style: this.getBarStyle() }, 49012 _react2.default.createElement( 49013 'div', 49014 { className: 'notification-bar-wrapper' }, 49015 this.props.title ? _react2.default.createElement( 49016 'span', 49017 { 49018 className: 'notification-bar-title', 49019 style: this.getTitleStyle() 49020 }, 49021 this.props.title 49022 ) : null, 49023 _react2.default.createElement( 49024 'span', 49025 { className: 'notification-bar-message' }, 49026 this.props.message 49027 ), 49028 this.props.action ? _react2.default.createElement( 49029 'span', 49030 { 49031 className: 'notification-bar-action', 49032 onClick: this.handleClick, 49033 style: this.getActionStyle() 49034 }, 49035 this.props.action 49036 ) : null 49037 ) 49038 ); 49039 } 49040 }]); 49041 49042 return Notification; 49043}(_react.Component); 49044 49045Notification.propTypes = _defaultPropTypes2.default; 49046 49047Notification.defaultProps = { 49048 isActive: false, 49049 dismissAfter: 2000, 49050 activeClassName: 'notification-bar-active' 49051}; 49052 49053exports.default = Notification; 49054 49055/***/ }), 49056/* 405 */ 49057/***/ (function(module, exports, __webpack_require__) { 49058 49059"use strict"; 49060 49061 49062Object.defineProperty(exports, "__esModule", { 49063 value: true 49064}); 49065 49066var _propTypes = __webpack_require__(2); 49067 49068var _propTypes2 = _interopRequireDefault(_propTypes); 49069 49070function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 49071 49072exports.default = { 49073 message: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.element]).isRequired, 49074 action: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.string, _propTypes2.default.node]), 49075 onClick: _propTypes2.default.func, 49076 style: _propTypes2.default.bool, 49077 actionStyle: _propTypes2.default.object, 49078 titleStyle: _propTypes2.default.object, 49079 barStyle: _propTypes2.default.object, 49080 activeBarStyle: _propTypes2.default.object, 49081 dismissAfter: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]), 49082 onDismiss: _propTypes2.default.func, 49083 className: _propTypes2.default.string, 49084 activeClassName: _propTypes2.default.string, 49085 isActive: _propTypes2.default.bool, 49086 title: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.node]) 49087}; 49088 49089/***/ }), 49090/* 406 */, 49091/* 407 */, 49092/* 408 */ 49093/***/ (function(module, exports, __webpack_require__) { 49094 49095"use strict"; 49096/** 49097 * Copyright (c) 2013-present, Facebook, Inc. 49098 * 49099 * This source code is licensed under the MIT license found in the 49100 * LICENSE file in the root directory of this source tree. 49101 * 49102 */ 49103 49104 49105 49106var PooledClass = __webpack_require__(409); 49107var ReactElement = __webpack_require__(40); 49108 49109var emptyFunction = __webpack_require__(29); 49110var traverseAllChildren = __webpack_require__(410); 49111 49112var twoArgumentPooler = PooledClass.twoArgumentPooler; 49113var fourArgumentPooler = PooledClass.fourArgumentPooler; 49114 49115var userProvidedKeyEscapeRegex = /\/+/g; 49116function escapeUserProvidedKey(text) { 49117 return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/'); 49118} 49119 49120/** 49121 * PooledClass representing the bookkeeping associated with performing a child 49122 * traversal. Allows avoiding binding callbacks. 49123 * 49124 * @constructor ForEachBookKeeping 49125 * @param {!function} forEachFunction Function to perform traversal with. 49126 * @param {?*} forEachContext Context to perform context with. 49127 */
49128function ForEachBookKeeping(forEachFunction, forEachContext) { 49129 this.func = forEachFunction; 49130 this.context = forEachContext; 49131 this.count = 0; 49132} 49133ForEachBookKeeping.prototype.destructor = function () { 49134 this.func = null; 49135 this.context = null; 49136 this.count = 0; 49137}; 49138PooledClass.addPoolingTo(ForEachBookKeeping, twoArgumentPooler); 49139 49140function forEachSingleChild(bookKeeping, child, name) { 49141 var func = bookKeeping.func, 49142 context = bookKeeping.context; 49143 49144 func.call(context, child, bookKeeping.count++); 49145} 49146 49147/** 49148 * Iterates through children that are typically specified as `props.children`. 49149 * 49150 * See https://facebook.github.io/react/docs/top-level-api.html#react.children.foreach 49151 * 49152 * The provided forEachFunc(child, index) will be called for each 49153 * leaf child. 49154 * 49155 * @param {?*} children Children tree container. 49156 * @param {function(*, int)} forEachFunc 49157 * @param {*} forEachContext Context for forEachContext. 49158 */ 49159function forEachChildren(children, forEachFunc, forEachContext) { 49160 if (children == null) { 49161 return children; 49162 } 49163 var traverseContext = ForEachBookKeeping.getPooled(forEachFunc, forEachContext); 49164 traverseAllChildren(children, forEachSingleChild, traverseContext); 49165 ForEachBookKeeping.release(traverseContext); 49166} 49167 49168/** 49169 * PooledClass representing the bookkeeping associated with performing a child 49170 * mapping. Allows avoiding binding callbacks. 49171 * 49172 * @constructor MapBookKeeping 49173 * @param {!*} mapResult Object containing the ordered map of results. 49174 * @param {!function} mapFunction Function to perform mapping with. 49175 * @param {?*} mapContext Context to perform mapping with. 49176 */ 49177function MapBookKeeping(mapResult, keyPrefix, mapFunction, mapContext) { 49178 this.result = mapResult; 49179 this.keyPrefix = keyPrefix; 49180 this.func = mapFunction; 49181 this.context = mapContext; 49182 this.count = 0; 49183} 49184MapBookKeeping.prototype.destructor = function () { 49185 this.result = null; 49186 this.keyPrefix = null; 49187 this.func = null; 49188 this.context = null; 49189 this.count = 0; 49190}; 49191PooledClass.addPoolingTo(MapBookKeeping, fourArgumentPooler); 49192 49193function mapSingleChildIntoContext(bookKeeping, child, childKey) { 49194 var result = bookKeeping.result, 49195 keyPrefix = bookKeeping.keyPrefix, 49196 func = bookKeeping.func, 49197 context = bookKeeping.context; 49198 49199 49200 var mappedChild = func.call(context, child, bookKeeping.count++); 49201 if (Array.isArray(mappedChild)) { 49202 mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, emptyFunction.thatReturnsArgument); 49203 } else if (mappedChild != null) { 49204 if (ReactElement.isValidElement(mappedChild)) { 49205 mappedChild = ReactElement.cloneAndReplaceKey(mappedChild, 49206 // Keep both the (mapped) and old keys if they differ, just as 49207 // traverseAllChildren used to do for objects as children 49208 keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey); 49209 } 49210 result.push(mappedChild); 49211 } 49212} 49213 49214function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) { 49215 var escapedPrefix = ''; 49216 if (prefix != null) { 49217 escapedPrefix = escapeUserProvidedKey(prefix) + '/'; 49218 } 49219 var traverseContext = MapBookKeeping.getPooled(array, escapedPrefix, func, context); 49220 traverseAllChildren(children, mapSingleChildIntoContext, traverseContext); 49221 MapBookKeeping.release(traverseContext); 49222} 49223 49224/** 49225 * Maps children that are typically specified as `props.children`. 49226 * 49227 * See https://facebook.github.io/react/docs/top-level-api.html#react.children.map 49228 * 49229 * The provided mapFunction(child, key, index) will be called for each 49230 * leaf child. 49231 * 49232 * @param {?*} children Children tree container. 49233 * @param {function(*, int)} func The map function. 49234 * @param {*} context Context for mapFunction. 49235 * @return {object} Object containing the ordered map of results. 49236 */ 49237function mapChildren(children, func, context) { 49238 if (children == null) { 49239 return children; 49240 } 49241 var result = []; 49242 mapIntoWithKeyPrefixInternal(children, result, null, func, context); 49243 return result; 49244} 49245 49246function forEachSingleChildDummy(traverseContext, child, name) { 49247 return null; 49248} 49249 49250/** 49251 * Count the number of children that are typically specified as 49252 * `props.children`. 49253 * 49254 * See https://facebook.github.io/react/docs/top-level-api.html#react.children.count 49255 * 49256 * @param {?*} children Children tree container. 49257 * @return {number} The number of children. 49258 */ 49259function countChildren(children, context) {
49260 return traverseAllChildren(children, forEachSingleChildDummy, null); 49261} 49262 49263/** 49264 * Flatten a children object (typically specified as `props.children`) and 49265 * return an array with appropriately re-keyed children. 49266 * 49267 * See https://facebook.github.io/react/docs/top-level-api.html#react.children.toarray 49268 */ 49269function toArray(children) { 49270 var result = []; 49271 mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument); 49272 return result; 49273} 49274 49275var ReactChildren = { 49276 forEach: forEachChildren, 49277 map: mapChildren, 49278 mapIntoWithKeyPrefixInternal: mapIntoWithKeyPrefixInternal, 49279 count: countChildren, 49280 toArray: toArray 49281}; 49282 49283module.exports = ReactChildren; 49284 49285/***/ }), 49286/* 409 */ 49287/***/ (function(module, exports, __webpack_require__) { 49288 49289"use strict"; 49290/** 49291 * Copyright (c) 2013-present, Facebook, Inc. 49292 * 49293 * This source code is licensed under the MIT license found in the 49294 * LICENSE file in the root directory of this source tree. 49295 * 49296 * 49297 */ 49298 49299 49300 49301var _prodInvariant = __webpack_require__(49); 49302 49303var invariant = __webpack_require__(10); 49304 49305/** 49306 * Static poolers. Several custom versions for each potential number of 49307 * arguments. A completely generic pooler is easy to implement, but would 49308 * require accessing the `arguments` object. In each of these, `this` refers to 49309 * the Class itself, not an instance. If any others are needed, simply add them
49310 * here, or in their own files. 49311 */ 49312var oneArgumentPooler = function (copyFieldsFrom) { 49313 var Klass = this; 49314 if (Klass.instancePool.length) { 49315 var instance = Klass.instancePool.pop(); 49316 Klass.call(instance, copyFieldsFrom); 49317 return instance; 49318 } else { 49319 return new Klass(copyFieldsFrom); 49320 } 49321}; 49322 49323var twoArgumentPooler = function (a1, a2) { 49324 var Klass = this; 49325 if (Klass.instancePool.length) { 49326 var instance = Klass.instancePool.pop(); 49327 Klass.call(instance, a1, a2); 49328 return instance; 49329 } else { 49330 return new Klass(a1, a2); 49331 } 49332}; 49333 49334var threeArgumentPooler = function (a1, a2, a3) { 49335 var Klass = this; 49336 if (Klass.instancePool.length) { 49337 var instance = Klass.instancePool.pop(); 49338 Klass.call(instance, a1, a2, a3); 49339 return instance; 49340 } else { 49341 return new Klass(a1, a2, a3); 49342 } 49343}; 49344 49345var fourArgumentPooler = function (a1, a2, a3, a4) { 49346 var Klass = this; 49347 if (Klass.instancePool.length) { 49348 var instance = Klass.instancePool.pop(); 49349 Klass.call(instance, a1, a2, a3, a4); 49350 return instance; 49351 } else { 49352 return new Klass(a1, a2, a3, a4); 49353 } 49354}; 49355 49356var standardReleaser = function (instance) { 49357 var Klass = this; 49358 !(instance instanceof Klass) ? true ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0; 49359 instance.destructor(); 49360 if (Klass.instancePool.length < Klass.poolSize) { 49361 Klass.instancePool.push(instance); 49362 } 49363}; 49364 49365var DEFAULT_POOL_SIZE = 10; 49366var DEFAULT_POOLER = oneArgumentPooler; 49367 49368/** 49369 * Augments `CopyConstructor` to be a poolable class, augmenting only the class 49370 * itself (statically) not adding any prototypical fields. Any CopyConstructor 49371 * you give this may have a `poolSize` property, and will look for a 49372 * prototypical `destructor` on instances. 49373 * 49374 * @param {Function} CopyConstructor Constructor that can be used to reset. 49375 * @param {Function} pooler Customizable pooler. 49376 */ 49377var addPoolingTo = function (CopyConstructor, pooler) { 49378 // Casting as any so that flow ignores the actual implementation and trusts 49379 // it to match the type we declared 49380 var NewKlass = CopyConstructor; 49381 NewKlass.instancePool = []; 49382 NewKlass.getPooled = pooler || DEFAULT_POOLER; 49383 if (!NewKlass.poolSize) { 49384 NewKlass.poolSize = DEFAULT_POOL_SIZE; 49385 } 49386 NewKlass.release = standardReleaser; 49387 return NewKlass; 49388}; 49389 49390var PooledClass = { 49391 addPoolingTo: addPoolingTo, 49392 oneArgumentPooler: oneArgumentPooler, 49393 twoArgumentPooler: twoArgumentPooler, 49394 threeArgumentPooler: threeArgumentPooler, 49395 fourArgumentPooler: fourArgumentPooler 49396}; 49397 49398module.exports = PooledClass; 49399 49400/***/ }), 49401/* 410 */ 49402/***/ (function(module, exports, __webpack_require__) { 49403 49404"use strict"; 49405/** 49406 * Copyright (c) 2013-present, Facebook, Inc. 49407 * 49408 * This source code is licensed under the MIT license found in the 49409 * LICENSE file in the root directory of this source tree. 49410 * 49411 */ 49412 49413 49414 49415var _prodInvariant = __webpack_require__(49); 49416 49417var ReactCurrentOwner = __webpack_require__(30); 49418var REACT_ELEMENT_TYPE = __webpack_require__(162); 49419 49420var getIteratorFn = __webpack_require__(163); 49421var invariant = __webpack_require__(10); 49422var KeyEscapeUtils = __webpack_require__(411); 49423var warning = __webpack_require__(11); 49424 49425var SEPARATOR = '.'; 49426var SUBSEPARATOR = ':'; 49427 49428/** 49429 * This is inlined from ReactElement since this file is shared between 49430 * isomorphic and renderers. We could extract this to a 49431 * 49432 */ 49433 49434/** 49435 * TODO: Test that a single child and an array with one item have the same key 49436 * pattern. 49437 */ 49438 49439var didWarnAboutMaps = false; 49440 49441/** 49442 * Generate a key string that identifies a component within a set. 49443 * 49444 * @param {*} component A component that could contain a manual key. 49445 * @param {number} index Index that is used if a manual key is not provided. 49446 * @return {string} 49447 */ 49448function getComponentKey(component, index) { 49449 // Do some typechecking here since we call this blindly. We want to ensure 49450 // that we don't block potential future ES APIs. 49451 if (component && typeof component === 'object' && component.key != null) { 49452 // Explicit key 49453 return KeyEscapeUtils.escape(component.key); 49454 } 49455 // Implicit key determined by the index in the set 49456 return index.toString(36); 49457} 49458 49459/** 49460 * @param {?*} children Children tree container. 49461 * @param {!string} nameSoFar Name of the key path so far. 49462 * @param {!function} callback Callback to invoke with each child found. 49463 * @param {?*} traverseContext Used to pass information throughout the traversal 49464 * process. 49465 * @return {!number} The number of children in this subtree. 49466 */ 49467function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) { 49468 var type = typeof children; 49469 49470 if (type === 'undefined' || type === 'boolean') { 49471 // All of the above are perceived as null. 49472 children = null; 49473 } 49474 49475 if (children === null || type === 'string' || type === 'number' || 49476 // The following is inlined from ReactElement. This means we can optimize 49477 // some checks. React Fiber also inlines this logic for similar purposes. 49478 type === 'object' && children.$$typeof === REACT_ELEMENT_TYPE) { 49479 callback(traverseContext, children, 49480 // If it's the only child, treat the name as if it was wrapped in an array 49481 // so that it's consistent if the number of children grows. 49482 nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar); 49483 return 1; 49484 } 49485 49486 var child; 49487 var nextName;
49488 var subtreeCount = 0; // Count of children found in the current subtree. 49489 var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR; 49490 49491 if (Array.isArray(children)) { 49492 for (var i = 0; i < children.length; i++) { 49493 child = children[i]; 49494 nextName = nextNamePrefix + getComponentKey(child, i); 49495 subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); 49496 } 49497 } else { 49498 var iteratorFn = getIteratorFn(children); 49499 if (iteratorFn) { 49500 var iterator = iteratorFn.call(children); 49501 var step; 49502 if (iteratorFn !== children.entries) { 49503 var ii = 0; 49504 while (!(step = iterator.next()).done) { 49505 child = step.value; 49506 nextName = nextNamePrefix + getComponentKey(child, ii++); 49507 subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); 49508 } 49509 } else { 49510 if (true) { 49511 var mapsAsChildrenAddendum = ''; 49512 if (ReactCurrentOwner.current) { 49513 var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName(); 49514 if (mapsAsChildrenOwnerName) { 49515 mapsAsChildrenAddendum = ' Check the render method of `' + mapsAsChildrenOwnerName + '`.'; 49516 } 49517 } 49518 true ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.%s', mapsAsChildrenAddendum) : void 0; 49519 didWarnAboutMaps = true; 49520 } 49521 // Iterator will provide entry [k,v] tuples rather than values. 49522 while (!(step = iterator.next()).done) { 49523 var entry = step.value; 49524 if (entry) { 49525 child = entry[1]; 49526 nextName = nextNamePrefix + KeyEscapeUtils.escape(entry[0]) + SUBSEPARATOR + getComponentKey(child, 0); 49527 subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); 49528 } 49529 } 49530 } 49531 } else if (type === 'object') { 49532 var addendum = ''; 49533 if (true) { 49534 addendum = ' If you meant to render a collection of children, use an array ' + 'instead or wrap the object using createFragment(object) from the ' + 'React add-ons.'; 49535 if (children._isReactElement) { 49536 addendum = " It looks like you're using an element created by a different " + 'version of React. Make sure to use only one copy of React.'; 49537 } 49538 if (ReactCurrentOwner.current) { 49539 var name = ReactCurrentOwner.current.getName(); 49540 if (name) { 49541 addendum += ' Check the render method of `' + name + '`.'; 49542 } 49543 } 49544 } 49545 var childrenString = String(children); 49546 true ? true ? invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : _prodInvariant('31', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : void 0; 49547 } 49548 } 49549 49550 return subtreeCount; 49551} 49552 49553/** 49554 * Traverses children that are typically specified as `props.children`, but 49555 * might also be specified through attributes: 49556 * 49557 * - `traverseAllChildren(this.props.children, ...)` 49558 * - `traverseAllChildren(this.props.leftPanelChildren, ...)` 49559 * 49560 * The `traverseContext` is an optional argument that is passed through the 49561 * entire traversal. It can be used to store accumulations or anything else that 49562 * the callback might find relevant. 49563 * 49564 * @param {?*} children Children tree object. 49565 * @param {!function} callback To invoke upon traversing each child. 49566 * @param {?*} traverseContext Context for traversal. 49567 * @return {!number} The number of children in this subtree. 49568 */ 49569function traverseAllChildren(children, callback, traverseContext) { 49570 if (children == null) { 49571 return 0; 49572 } 49573 49574 return traverseAllChildrenImpl(children, '', callback, traverseContext); 49575} 49576 49577module.exports = traverseAllChildren; 49578 49579/***/ }), 49580/* 411 */ 49581/***/ (function(module, exports, __webpack_require__) { 49582 49583"use strict"; 49584/** 49585 * Copyright (c) 2013-present, Facebook, Inc. 49586 * 49587 * This source code is licensed under the MIT license found in the 49588 * LICENSE file in the root directory of this source tree. 49589 * 49590 * 49591 */ 49592 49593 49594 49595/** 49596 * Escape and wrap key so it is safe to use as a reactid 49597 * 49598 * @param {string} key to be escaped. 49599 * @return {string} the escaped key. 49600 */ 49601 49602function escape(key) { 49603 var escapeRegex = /[=:]/g; 49604 var escaperLookup = { 49605 '=': '=0', 49606 ':': '=2' 49607 }; 49608 var escapedString = ('' + key).replace(escapeRegex, function (match) { 49609 return escaperLookup[match]; 49610 }); 49611 49612 return '$' + escapedString; 49613} 49614 49615/** 49616 * Unescape and unwrap key for human-readable display 49617 * 49618 * @param {string} key to unescape. 49619 * @return {string} the unescaped key. 49620 */ 49621function unescape(key) { 49622 var unescapeRegex = /(=0|=2)/g; 49623 var unescaperLookup = { 49624 '=0': '=', 49625 '=2': ':' 49626 }; 49627 var keySubstring = key[0] === '.' && key[1] === '$' ? key.substring(2) : key.substring(1); 49628 49629 return ('' + keySubstring).replace(unescapeRegex, function (match) { 49630 return unescaperLookup[match]; 49631 }); 49632} 49633 49634var KeyEscapeUtils = { 49635 escape: escape, 49636 unescape: unescape 49637}; 49638 49639module.exports = KeyEscapeUtils; 49640 49641/***/ }), 49642/* 412 */ 49643/***/ (function(module, exports, __webpack_require__) { 49644 49645"use strict"; 49646/** 49647 * Copyright (c) 2013-present, Facebook, Inc. 49648 * 49649 * This source code is licensed under the MIT license found in the 49650 * LICENSE file in the root directory of this source tree. 49651 * 49652 */ 49653 49654 49655 49656var ReactElement = __webpack_require__(40); 49657 49658/** 49659 * Create a factory that creates HTML tag elements. 49660 * 49661 * @private 49662 */ 49663var createDOMFactory = ReactElement.createFactory; 49664if (true) { 49665 var ReactElementValidator = __webpack_require__(164); 49666 createDOMFactory = ReactElementValidator.createFactory; 49667} 49668 49669/** 49670 * Creates a mapping from supported HTML tags to `ReactDOMComponent` classes. 49671 * 49672 * @public 49673 */ 49674var ReactDOMFactories = { 49675 a: createDOMFactory('a'), 49676 abbr: createDOMFactory('abbr'), 49677 address: createDOMFactory('address'), 49678 area: createDOMFactory('area'), 49679 article: createDOMFactory('article'), 49680 aside: createDOMFactory('aside'), 49681 audio: createDOMFactory('audio'), 49682 b: createDOMFactory('b'), 49683 base: createDOMFactory('base'), 49684 bdi: createDOMFactory('bdi'),
49685 bdo: createDOMFactory('bdo'), 49686 big: createDOMFactory('big'), 49687 blockquote: createDOMFactory('blockquote'), 49688 body: createDOMFactory('body'), 49689 br: createDOMFactory('br'), 49690 button: createDOMFactory('button'), 49691 canvas: createDOMFactory('canvas'), 49692 caption: createDOMFactory('caption'), 49693 cite: createDOMFactory('cite'), 49694 code: createDOMFactory('code'), 49695 col: createDOMFactory('col'), 49696 colgroup: createDOMFactory('colgroup'), 49697 data: createDOMFactory('data'), 49698 datalist: createDOMFactory('datalist'), 49699 dd: createDOMFactory('dd'), 49700 del: createDOMFactory('del'), 49701 details: createDOMFactory('details'), 49702 dfn: createDOMFactory('dfn'), 49703 dialog: createDOMFactory('dialog'), 49704 div: createDOMFactory('div'), 49705 dl: createDOMFactory('dl'), 49706 dt: createDOMFactory('dt'), 49707 em: createDOMFactory('em'), 49708 embed: createDOMFactory('embed'), 49709 fieldset: createDOMFactory('fieldset'), 49710 figcaption: createDOMFactory('figcaption'), 49711 figure: createDOMFactory('figure'), 49712 footer: createDOMFactory('footer'), 49713 form: createDOMFactory('form'), 49714 h1: createDOMFactory('h1'), 49715 h2: createDOMFactory('h2'), 49716 h3: createDOMFactory('h3'), 49717 h4: createDOMFactory('h4'), 49718 h5: createDOMFactory('h5'), 49719 h6: createDOMFactory('h6'), 49720 head: createDOMFactory('head'), 49721 header: createDOMFactory('header'), 49722 hgroup: createDOMFactory('hgroup'), 49723 hr: createDOMFactory('hr'), 49724 html: createDOMFactory('html'), 49725 i: createDOMFactory('i'), 49726 iframe: createDOMFactory('iframe'), 49727 img: createDOMFactory('img'), 49728 input: createDOMFactory('input'), 49729 ins: createDOMFactory('ins'), 49730 kbd: createDOMFactory('kbd'), 49731 keygen: createDOMFactory('keygen'), 49732 label: createDOMFactory('label'), 49733 legend: createDOMFactory('legend'), 49734 li: createDOMFactory('li'), 49735 link: createDOMFactory('link'), 49736 main: createDOMFactory('main'), 49737 map: createDOMFactory('map'), 49738 mark: createDOMFactory('mark'), 49739 menu: createDOMFactory('menu'), 49740 menuitem: createDOMFactory('menuitem'), 49741 meta: createDOMFactory('meta'), 49742 meter: createDOMFactory('meter'), 49743 nav: createDOMFactory('nav'), 49744 noscript: createDOMFactory('noscript'), 49745 object: createDOMFactory('object'), 49746 ol: createDOMFactory('ol'), 49747 optgroup: createDOMFactory('optgroup'), 49748 option: createDOMFactory('option'), 49749 output: createDOMFactory('output'), 49750 p: createDOMFactory('p'), 49751 param: createDOMFactory('param'), 49752 picture: createDOMFactory('picture'), 49753 pre: createDOMFactory('pre'), 49754 progress: createDOMFactory('progress'), 49755 q: createDOMFactory('q'), 49756 rp: createDOMFactory('rp'), 49757 rt: createDOMFactory('rt'), 49758 ruby: createDOMFactory('ruby'), 49759 s: createDOMFactory('s'), 49760 samp: createDOMFactory('samp'), 49761 script: createDOMFactory('script'), 49762 section: createDOMFactory('section'), 49763 select: createDOMFactory('select'), 49764 small: createDOMFactory('small'), 49765 source: createDOMFactory('source'), 49766 span: createDOMFactory('span'), 49767 strong: createDOMFactory('strong'), 49768 style: createDOMFactory('style'), 49769 sub: createDOMFactory('sub'), 49770 summary: createDOMFactory('summary'), 49771 sup: createDOMFactory('sup'), 49772 table: createDOMFactory('table'), 49773 tbody: createDOMFactory('tbody'), 49774 td: createDOMFactory('td'), 49775 textarea: createDOMFactory('textarea'), 49776 tfoot: createDOMFactory('tfoot'), 49777 th: createDOMFactory('th'), 49778 thead: createDOMFactory('thead'), 49779 time: createDOMFactory('time'), 49780 title: createDOMFactory('title'), 49781 tr: createDOMFactory('tr'), 49782 track: createDOMFactory('track'), 49783 u: createDOMFactory('u'), 49784 ul: createDOMFactory('ul'), 49785 'var': createDOMFactory('var'), 49786 video: createDOMFactory('video'), 49787 wbr: createDOMFactory('wbr'), 49788 49789 // SVG 49790 circle: createDOMFactory('circle'), 49791 clipPath: createDOMFactory('clipPath'), 49792 defs: createDOMFactory('defs'), 49793 ellipse: createDOMFactory('ellipse'), 49794 g: createDOMFactory('g'), 49795 image: createDOMFactory('image'), 49796 line: createDOMFactory('line'), 49797 linearGradient: createDOMFactory('linearGradient'), 49798 mask: createDOMFactory('mask'), 49799 path: createDOMFactory('path'), 49800 pattern: createDOMFactory('pattern'), 49801 polygon: createDOMFactory('polygon'), 49802 polyline: createDOMFactory('polyline'), 49803 radialGradient: createDOMFactory('radialGradient'), 49804 rect: createDOMFactory('rect'), 49805 stop: createDOMFactory('stop'), 49806 svg: createDOMFactory('svg'), 49807 text: createDOMFactory('text'), 49808 tspan: createDOMFactory('tspan') 49809}; 49810 49811module.exports = ReactDOMFactories; 49812 49813/***/ }), 49814/* 413 */ 49815/***/ (function(module, exports, __webpack_require__) { 49816 49817"use strict"; 49818/* WEBPACK VAR INJECTION */(function(process) {/** 49819 * Copyright (c) 2013-present, Facebook, Inc. 49820 * 49821 * This source code is licensed under the MIT license found in the 49822 * LICENSE file in the root directory of this source tree. 49823 * 49824 */ 49825 49826 49827 49828var _prodInvariant = __webpack_require__(49); 49829 49830var ReactPropTypeLocationNames = __webpack_require__(414); 49831var ReactPropTypesSecret = __webpack_require__(415); 49832 49833var invariant = __webpack_require__(10); 49834var warning = __webpack_require__(11); 49835 49836var ReactComponentTreeHook; 49837 49838if (typeof process !== 'undefined' && Object({"NODE_ENV":"dev"}) && "dev" === 'test') { 49839 // Temporary hack. 49840 // Inline requires don't work well with Jest: 49841 // https://github.com/facebook/react/issues/7240 49842 // Remove the inline requires when we don't need them anymore: 49843 // https://github.com/facebook/react/pull/7178 49844 ReactComponentTreeHook = __webpack_require__(23); 49845} 49846 49847var loggedTypeFailures = {}; 49848 49849/** 49850 * Assert that the values match with the type specs. 49851 * Error messages are memorized and will only be shown once. 49852 * 49853 * @param {object} typeSpecs Map of name to a ReactPropType 49854 * @param {object} values Runtime values that need to be type-checked 49855 * @param {string} location e.g. "prop", "context", "child context" 49856 * @param {string} componentName Name of the component for error messages. 49857 * @param {?object} element The React element that is being type-checked 49858 * @param {?number} debugID The React component instance that is being type-checked 49859 * @private 49860 */ 49861function checkReactTypeSpec(typeSpecs, values, location, componentName, element, debugID) { 49862 for (var typeSpecName in typeSpecs) { 49863 if (typeSpecs.hasOwnProperty(typeSpecName)) { 49864 var error; 49865 // Prop type validation may throw. In case they do, we don't want to 49866 // fail the render phase where it didn't fail before. So we log it. 49867 // After these have been cleaned up, we'll let them throw.
49868 try { 49869 // This is intentionally an invariant that gets caught. It's the same 49870 // behavior as without this statement except with a better message. 49871 !(typeof typeSpecs[typeSpecName] === 'function') ? true ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : _prodInvariant('84', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : void 0; 49872 error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); 49873 } catch (ex) { 49874 error = ex; 49875 } 49876 true ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName, typeof error) : void 0; 49877 if (error instanceof Error && !(error.message in loggedTypeFailures)) { 49878 // Only monitor this failure once because there tends to be a lot of the 49879 // same error. 49880 loggedTypeFailures[error.message] = true; 49881 49882 var componentStackInfo = ''; 49883 49884 if (true) { 49885 if (!ReactComponentTreeHook) { 49886 ReactComponentTreeHook = __webpack_require__(23); 49887 } 49888 if (debugID !== null) { 49889 componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID); 49890 } else if (element !== null) { 49891 componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element); 49892 } 49893 } 49894 49895 true ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : void 0; 49896 } 49897 } 49898 } 49899} 49900 49901module.exports = checkReactTypeSpec; 49902/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(41))) 49903 49904/***/ }), 49905/* 414 */ 49906/***/ (function(module, exports, __webpack_require__) { 49907 49908"use strict"; 49909/** 49910 * Copyright (c) 2013-present, Facebook, Inc. 49911 * 49912 * This source code is licensed under the MIT license found in the 49913 * LICENSE file in the root directory of this source tree. 49914 * 49915 * 49916 */ 49917 49918 49919 49920var ReactPropTypeLocationNames = {}; 49921 49922if (true) { 49923 ReactPropTypeLocationNames = { 49924 prop: 'prop', 49925 context: 'context', 49926 childContext: 'child context' 49927 }; 49928} 49929 49930module.exports = ReactPropTypeLocationNames; 49931 49932/***/ }), 49933/* 415 */ 49934/***/ (function(module, exports, __webpack_require__) { 49935 49936"use strict"; 49937/** 49938 * Copyright (c) 2013-present, Facebook, Inc. 49939 * 49940 * This source code is licensed under the MIT license found in the 49941 * LICENSE file in the root directory of this source tree. 49942 * 49943 * 49944 */ 49945 49946 49947 49948var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; 49949 49950module.exports = ReactPropTypesSecret; 49951 49952/***/ }), 49953/* 416 */ 49954/***/ (function(module, exports, __webpack_require__) { 49955 49956"use strict"; 49957/** 49958 * Copyright (c) 2013-present, Facebook, Inc. 49959 * 49960 * This source code is licensed under the MIT license found in the 49961 * LICENSE file in the root directory of this source tree. 49962 * 49963 */ 49964 49965 49966 49967var _require = __webpack_require__(40), 49968 isValidElement = _require.isValidElement; 49969 49970var factory = __webpack_require__(165); 49971 49972module.exports = factory(isValidElement); 49973 49974/***/ }), 49975/* 417 */ 49976/***/ (function(module, exports, __webpack_require__) { 49977 49978"use strict"; 49979/** 49980 * Copyright (c) 2013-present, Facebook, Inc. 49981 * 49982 * This source code is licensed under the MIT license found in the 49983 * LICENSE file in the root directory of this source tree. 49984 */ 49985 49986 49987 49988var printWarning = function() {}; 49989 49990if (true) { 49991 var ReactPropTypesSecret = __webpack_require__(167); 49992 var loggedTypeFailures = {}; 49993 49994 printWarning = function(text) { 49995 var message = 'Warning: ' + text; 49996 if (typeof console !== 'undefined') { 49997 console.error(message); 49998 } 49999 try { 50000 // --- Welcome to debugging React --- 50001 // This error was thrown as a convenience so that you can use this stack 50002 // to find the callsite that caused this warning to fire. 50003 throw new Error(message); 50004 } catch (x) {} 50005 }; 50006} 50007 50008/** 50009 * Assert that the values match with the type specs. 50010 * Error messages are memorized and will only be shown once. 50011 * 50012 * @param {object} typeSpecs Map of name to a ReactPropType 50013 * @param {object} values Runtime values that need to be type-checked 50014 * @param {string} location e.g. "prop", "context", "child context" 50015 * @param {string} componentName Name of the component for error messages. 50016 * @param {?Function} getStack Returns the component stack. 50017 * @private 50018 */ 50019function checkPropTypes(typeSpecs, values, location, componentName, getStack) { 50020 if (true) { 50021 for (var typeSpecName in typeSpecs) { 50022 if (typeSpecs.hasOwnProperty(typeSpecName)) { 50023 var error; 50024 // Prop type validation may throw. In case they do, we don't want to 50025 // fail the render phase where it didn't fail before. So we log it. 50026 // After these have been cleaned up, we'll let them throw. 50027 try { 50028 // This is intentionally an invariant that gets caught. It's the same 50029 // behavior as without this statement except with a better message. 50030 if (typeof typeSpecs[typeSpecName] !== 'function') { 50031 var err = Error( 50032 (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invali
vendor: 3,250 bytes, lines 50032-50155
50032d; ' + 50033 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' 50034 ); 50035 err.name = 'Invariant Violation'; 50036 throw err; 50037 } 50038 error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); 50039 } catch (ex) { 50040 error = ex; 50041 } 50042 if (error && !(error instanceof Error)) { 50043 printWarning( 50044 (componentName || 'React class') + ': type specification of ' + 50045 location + ' `' + typeSpecName + '` is invalid; the type checker ' + 50046 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 50047 'You may have forgotten to pass an argument to the type checker ' + 50048 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 50049 'shape all require an argument).' 50050 ) 50051 50052 } 50053 if (error instanceof Error && !(error.message in loggedTypeFailures)) { 50054 // Only monitor this failure once because there tends to be a lot of the 50055 // same error. 50056 loggedTypeFailures[error.message] = true; 50057 50058 var stack = getStack ? getStack() : ''; 50059 50060 printWarning( 50061 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') 50062 ); 50063 } 50064 } 50065 } 50066 } 50067} 50068 50069module.exports = checkPropTypes; 50070 50071 50072/***/ }), 50073/* 418 */ 50074/***/ (function(module, exports, __webpack_require__) { 50075 50076"use strict"; 50077/** 50078 * Copyright (c) 2013-present, Facebook, Inc. 50079 * 50080 * This source code is licensed under the MIT license found in the 50081 * LICENSE file in the root directory of this source tree. 50082 * 50083 */ 50084 50085 50086 50087module.exports = '15.6.2'; 50088 50089/***/ }), 50090/* 419 */ 50091/***/ (function(module, exports, __webpack_require__) { 50092 50093"use strict"; 50094/** 50095 * Copyright (c) 2013-present, Facebook, Inc. 50096 * 50097 * This source code is licensed under the MIT license found in the 50098 * LICENSE file in the root directory of this source tree. 50099 * 50100 */ 50101 50102 50103 50104var _require = __webpack_require__(160), 50105 Component = _require.Component; 50106 50107var _require2 = __webpack_require__(40), 50108 isValidElement = _require2.isValidElement; 50109 50110var ReactNoopUpdateQueue = __webpack_require__(161); 50111var factory = __webpack_require__(420); 50112 50113module.exports = factory(Component, isValidElement, ReactNoopUpdateQueue); 50114 50115/***/ }), 50116/* 420 */ 50117/***/ (function(module, exports, __webpack_require__) { 50118 50119"use strict"; 50120/** 50121 * Copyright (c) 2013-present, Facebook, Inc. 50122 * 50123 * This source code is licensed under the MIT license found in the 50124 * LICENSE file in the root directory of this source tree. 50125 * 50126 */ 50127 50128 50129 50130var _assign = __webpack_require__(14); 50131 50132var emptyObject = __webpack_require__(77); 50133var _invariant = __webpack_require__(10); 50134 50135if (true) { 50136 var warning = __webpack_require__(11); 50137} 50138 50139var MIXINS_KEY = 'mixins'; 50140 50141// Helper function to allow the creation of anonymous functions which do not 50142// have .name set to the name of the variable being assigned to. 50143function identity(fn) { 50144 return fn; 50145} 50146 50147var ReactPropTypeLocationNames; 50148if (true) { 50149 ReactPropTypeLocationNames = { 50150 prop: 'prop', 50151 context: 'context', 50152 childContext: 'child context' 50153 }; 50154} else { 50155 ReactPropTypeLocationNames = {};
vendor: 28,468 bytes, lines 50156-51048
50156} 50157 50158function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { 50159 /** 50160 * Policies that describe methods in `ReactClassInterface`. 50161 */ 50162 50163 var injectedMixins = []; 50164 50165 /** 50166 * Composite components are higher-level components that compose other composite 50167 * or host components. 50168 * 50169 * To create a new type of `ReactClass`, pass a specification of 50170 * your new class to `React.createClass`. The only requirement of your class 50171 * specification is that you implement a `render` method. 50172 * 50173 * var MyComponent = React.createClass({ 50174 * render: function() { 50175 * return <div>Hello World</div>; 50176 * } 50177 * }); 50178 * 50179 * The class specification supports a specific protocol of methods that have 50180 * special meaning (e.g. `render`). See `ReactClassInterface` for 50181 * more the comprehensive protocol. Any other properties and methods in the 50182 * class specification will be available on the prototype. 50183 * 50184 * @interface ReactClassInterface 50185 * @internal 50186 */ 50187 var ReactClassInterface = { 50188 /** 50189 * An array of Mixin objects to include when defining your component. 50190 * 50191 * @type {array} 50192 * @optional 50193 */ 50194 mixins: 'DEFINE_MANY', 50195 50196 /** 50197 * An object containing properties and methods that should be defined on 50198 * the component's constructor instead of its prototype (static methods). 50199 * 50200 * @type {object} 50201 * @optional 50202 */ 50203 statics: 'DEFINE_MANY', 50204 50205 /** 50206 * Definition of prop types for this component. 50207 * 50208 * @type {object} 50209 * @optional 50210 */ 50211 propTypes: 'DEFINE_MANY', 50212 50213 /** 50214 * Definition of context types for this component. 50215 * 50216 * @type {object} 50217 * @optional 50218 */ 50219 contextTypes: 'DEFINE_MANY', 50220 50221 /** 50222 * Definition of context types this component sets for its children. 50223 * 50224 * @type {object} 50225 * @optional 50226 */ 50227 childContextTypes: 'DEFINE_MANY', 50228 50229 // ==== Definition methods ==== 50230 50231 /** 50232 * Invoked when the component is mounted. Values in the mapping will be set on 50233 * `this.props` if that prop is not specified (i.e. using an `in` check). 50234 * 50235 * This method is invoked before `getInitialState` and therefore cannot rely 50236 * on `this.state` or use `this.setState`. 50237 * 50238 * @return {object} 50239 * @optional 50240 */ 50241 getDefaultProps: 'DEFINE_MANY_MERGED', 50242 50243 /** 50244 * Invoked once before the component is mounted. The return value will be used 50245 * as the initial value of `this.state`. 50246 * 50247 * getInitialState: function() { 50248 * return { 50249 * isOn: false, 50250 * fooBaz: new BazFoo() 50251 * } 50252 * } 50253 * 50254 * @return {object} 50255 * @optional 50256 */ 50257 getInitialState: 'DEFINE_MANY_MERGED', 50258 50259 /** 50260 * @return {object} 50261 * @optional 50262 */ 50263 getChildContext: 'DEFINE_MANY_MERGED', 50264 50265 /** 50266 * Uses props from `this.props` and state from `this.state` to render the 50267 * structure of the component. 50268 * 50269 * No guarantees are made about when or how often this method is invoked, so 50270 * it must not have side effects. 50271 * 50272 * render: function() { 50273 * var name = this.props.name; 50274 * return <div>Hello, {name}!</div>; 50275 * } 50276 * 50277 * @return {ReactComponent} 50278 * @required 50279 */ 50280 render: 'DEFINE_ONCE', 50281 50282 // ==== Delegate methods ==== 50283 50284 /** 50285 * Invoked when the component is initially created and about to be mounted. 50286 * This may have side effects, but any external subscriptions or data created 50287 * by this method must be cleaned up in `componentWillUnmount`. 50288 * 50289 * @optional 50290 */ 50291 componentWillMount: 'DEFINE_MANY', 50292 50293 /** 50294 * Invoked when the component has been mounted and has a DOM representation. 50295 * However, there is no guarantee that the DOM node is in the document. 50296 * 50297 * Use this as an opportunity to operate on the DOM when the component has 50298 * been mounted (initialized and rendered) for the first time. 50299 * 50300 * @param {DOMElement} rootNode DOM element representing the component. 50301 * @optional 50302 */ 50303 componentDidMount: 'DEFINE_MANY', 50304 50305 /** 50306 * Invoked before the component receives new props. 50307 * 50308 * Use this as an opportunity to react to a prop transition by updating the 50309 * state using `this.setState`. Current props are accessed via `this.props`. 50310 * 50311 * componentWillReceiveProps: function(nextProps, nextContext) { 50312 * this.setState({ 50313 * likesIncreasing: nextProps.likeCount > this.props.likeCount 50314 * }); 50315 * } 50316 * 50317 * NOTE: There is no equivalent `componentWillReceiveState`. An incoming prop 50318 * transition may cause a state change, but the opposite is not true. If you 50319 * need it, you are probably looking for `componentWillUpdate`. 50320 * 50321 * @param {object} nextProps 50322 * @optional 50323 */ 50324 componentWillReceiveProps: 'DEFINE_MANY', 50325 50326 /** 50327 * Invoked while deciding if the component should be updated as a result of 50328 * receiving new props, state and/or context. 50329 * 50330 * Use this as an opportunity to `return false` when you're certain that the 50331 * transition to the new props/state/context will not require a component 50332 * update. 50333 * 50334 * shouldComponentUpdate: function(nextProps, nextState, nextContext) { 50335 * return !equal(nextProps, this.props) || 50336 * !equal(nextState, this.state) || 50337 * !equal(nextContext, this.context); 50338 * } 50339 * 50340 * @param {object} nextProps 50341 * @param {?object} nextState 50342 * @param {?object} nextContext 50343 * @return {boolean} True if the component should update. 50344 * @optional 50345 */ 50346 shouldComponentUpdate: 'DEFINE_ONCE', 50347 50348 /** 50349 * Invoked when the component is about to update due to a transition from 50350 * `this.props`, `this.state` and `this.context` to `nextProps`, `nextState` 50351 * and `nextContext`. 50352 * 50353 * Use this as an opportunity to perform preparation before an update occurs. 50354 * 50355 * NOTE: You **cannot** use `this.setState()` in this method. 50356 * 50357 * @param {object} nextProps 50358 * @param {?object} nextState 50359 * @param {?object} nextContext 50360 * @param {ReactReconcileTransaction} transaction 50361 * @optional 50362 */ 50363 componentWillUpdate: 'DEFINE_MANY', 50364 50365 /** 50366 * Invoked when the component's DOM representation has been updated. 50367 * 50368 * Use this as an opportunity to operate on the DOM when the component has 50369 * been updated. 50370 * 50371 * @param {object} prevProps 50372 * @param {?object} prevState 50373 * @param {?object} prevContext 50374 * @param {DOMElement} rootNode DOM element representing the component. 50375 * @optional 50376 */ 50377 componentDidUpdate: 'DEFINE_MANY', 50378 50379 /** 50380 * Invoked when the component is about to be removed from its parent and have 50381 * its DOM representation destroyed. 50382 * 50383 * Use this as an opportunity to deallocate any external resources. 50384 * 50385 * NOTE: There is no `componentDidUnmount` since your component will have been 50386 * destroyed by that point. 50387 * 50388 * @optional 50389 */ 50390 componentWillUnmount: 'DEFINE_MANY', 50391 50392 /** 50393 * Replacement for (deprecated) `componentWillMount`. 50394 * 50395 * @optional 50396 */ 50397 UNSAFE_componentWillMount: 'DEFINE_MANY', 50398 50399 /** 50400 * Replacement for (deprecated) `componentWillReceiveProps`. 50401 * 50402 * @optional 50403 */ 50404 UNSAFE_componentWillReceiveProps: 'DEFINE_MANY', 50405 50406 /** 50407 * Replacement for (deprecated) `componentWillUpdate`. 50408 * 50409 * @optional 50410 */ 50411 UNSAFE_componentWillUpdate: 'DEFINE_MANY', 50412 50413 // ==== Advanced methods ==== 50414 50415 /** 50416 * Updates the component's currently mounted DOM representation. 50417 * 50418 * By default, this implements React's rendering and reconciliation algorithm. 50419 * Sophisticated clients may wish to override this. 50420 * 50421 * @param {ReactReconcileTransaction} transaction 50422 * @internal 50423 * @overridable 50424 */ 50425 updateComponent: 'OVERRIDE_BASE' 50426 }; 50427 50428 /** 50429 * Similar to ReactClassInterface but for static methods. 50430 */ 50431 var ReactClassStaticInterface = { 50432 /** 50433 * This method is invoked after a component is instantiated and when it 50434 * receives new props. Return an object to update state in response to 50435 * prop changes. Return null to indicate no change to state. 50436 * 50437 * If an object is returned, its keys will be merged into the existing state. 50438 * 50439 * @return {object || null} 50440 * @optional 50441 */ 50442 getDerivedStateFromProps: 'DEFINE_MANY_MERGED' 50443 }; 50444 50445 /** 50446 * Mapping from class specification keys to special processing functions. 50447 * 50448 * Although these are declared like instance properties in the specification 50449 * when defining classes using `React.createClass`, they are actually static 50450 * and are accessible on the constructor instead of the prototype. Despite 50451 * being static, they must be defined outside of the "statics" key under 50452 * which all other static methods are defined. 50453 */ 50454 var RESERVED_SPEC_KEYS = { 50455 displayName: function(Constructor, displayName) { 50456 Constructor.displayName = displayName; 50457 }, 50458 mixins: function(Constructor, mixins) { 50459 if (mixins) { 50460 for (var i = 0; i < mixins.length; i++) { 50461 mixSpecIntoComponent(Constructor, mixins[i]); 50462 } 50463 } 50464 }, 50465 childContextTypes: function(Constructor, childContextTypes) { 50466 if (true) { 50467 validateTypeDef(Constructor, childContextTypes, 'childContext'); 50468 } 50469 Constructor.childContextTypes = _assign( 50470 {}, 50471 Constructor.childContextTypes, 50472 childContextTypes 50473 ); 50474 }, 50475 contextTypes: function(Constructor, contextTypes) { 50476 if (true) { 50477 validateTypeDef(Constructor, contextTypes, 'context'); 50478 } 50479 Constructor.contextTypes = _assign( 50480 {}, 50481 Constructor.contextTypes, 50482 contextTypes 50483 ); 50484 }, 50485 /** 50486 * Special case getDefaultProps which should move into statics but requires 50487 * automatic merging. 50488 */ 50489 getDefaultProps: function(Constructor, getDefaultProps) { 50490 if (Constructor.getDefaultProps) { 50491 Constructor.getDefaultProps = createMergedResultFunction( 50492 Constructor.getDefaultProps, 50493 getDefaultProps 50494 ); 50495 } else { 50496 Constructor.getDefaultProps = getDefaultProps; 50497 } 50498 }, 50499 propTypes: function(Constructor, propTypes) { 50500 if (true) { 50501 validateTypeDef(Constructor, propTypes, 'prop'); 50502 } 50503 Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes); 50504 }, 50505 statics: function(Constructor, statics) { 50506 mixStaticSpecIntoComponent(Constructor, statics); 50507 }, 50508 autobind: function() {} 50509 }; 50510 50511 function validateTypeDef(Constructor, typeDef, location) { 50512 for (var propName in typeDef) { 50513 if (typeDef.hasOwnProperty(propName)) { 50514 // use a warning instead of an _invariant so components 50515 // don't show up in prod but only in __DEV__ 50516 if (true) { 50517 warning( 50518 typeof typeDef[propName] === 'function', 50519 '%s: %s type `%s` is invalid; it must be a function, usually from ' + 50520 'React.PropTypes.', 50521 Constructor.displayName || 'ReactClass', 50522 ReactPropTypeLocationNames[location], 50523 propName 50524 ); 50525 } 50526 } 50527 } 50528 } 50529 50530 function validateMethodOverride(isAlreadyDefined, name) { 50531 var specPolicy = ReactClassInterface.hasOwnProperty(name) 50532 ? ReactClassInterface[name] 50533 : null; 50534 50535 // Disallow overriding of base class methods unless explicitly allowed. 50536 if (ReactClassMixin.hasOwnProperty(name)) { 50537 _invariant( 50538 specPolicy === 'OVERRIDE_BASE', 50539 'ReactClassInterface: You are attempting to override ' + 50540 '`%s` from your class specification. Ensure that your method names ' + 50541 'do not overlap with React methods.', 50542 name 50543 ); 50544 } 50545 50546 // Disallow defining methods more than once unless explicitly allowed. 50547 if (isAlreadyDefined) { 50548 _invariant( 50549 specPolicy === 'DEFINE_MANY' || specPolicy === 'DEFINE_MANY_MERGED', 50550 'ReactClassInterface: You are attempting to define ' + 50551 '`%s` on your component more than once. This conflict may be due ' + 50552 'to a mixin.', 50553 name 50554 ); 50555 } 50556 } 50557 50558 /** 50559 * Mixin helper which handles policy validation and reserved 50560 * specification keys when building React classes. 50561 */ 50562 function mixSpecIntoComponent(Constructor, spec) { 50563 if (!spec) { 50564 if (true) { 50565 var typeofSpec = typeof spec; 50566 var isMixinValid = typeofSpec === 'object' && spec !== null; 50567 50568 if (true) { 50569 warning( 50570 isMixinValid, 50571 "%s: You're attempting to include a mixin that is either null " + 50572 'or not an object. Check the mixins included by the component, ' + 50573 'as well as any mixins they include themselves. ' + 50574 'Expected object but got %s.', 50575 Constructor.displayName || 'ReactClass', 50576 spec === null ? null : typeofSpec 50577 ); 50578 } 50579 } 50580 50581 return; 50582 } 50583 50584 _invariant( 50585 typeof spec !== 'function', 50586 "ReactClass: You're attempting to " + 50587 'use a component class or function as a mixin. Instead, just use a ' + 50588 'regular object.' 50589 ); 50590 _invariant( 50591 !isValidElement(spec), 50592 "ReactClass: You're attempting to " + 50593 'use a component as a mixin. Instead, just use a regular object.' 50594 ); 50595 50596 var proto = Constructor.prototype; 50597 var autoBindPairs = proto.__reactAutoBindPairs; 50598 50599 // By handling mixins before any other properties, we ensure the same 50600 // chaining order is applied to methods with DEFINE_MANY policy, whether 50601 // mixins are listed before or after these methods in the spec. 50602 if (spec.hasOwnProperty(MIXINS_KEY)) { 50603 RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins); 50604 } 50605 50606 for (var name in spec) { 50607 if (!spec.hasOwnProperty(name)) { 50608 continue; 50609 } 50610 50611 if (name === MIXINS_KEY) { 50612 // We have already handled mixins in a special case above. 50613 continue; 50614 } 50615 50616 var property = spec[name]; 50617 var isAlreadyDefined = proto.hasOwnProperty(name); 50618 validateMethodOverride(isAlreadyDefined, name); 50619 50620 if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) { 50621 RESERVED_SPEC_KEYS[name](Constructor, property); 50622 } else { 50623 // Setup methods on prototype: 50624 // The following member methods should not be automatically bound: 50625 // 1. Expected ReactClass methods (in the "interface"). 50626 // 2. Overridden methods (that were mixed in). 50627 var isReactClassMethod = ReactClassInterface.hasOwnProperty(name); 50628 var isFunction = typeof property === 'function'; 50629 var shouldAutoBind = 50630 isFunction && 50631 !isReactClassMethod && 50632 !isAlreadyDefined && 50633 spec.autobind !== false; 50634 50635 if (shouldAutoBind) { 50636 autoBindPairs.push(name, property); 50637 proto[name] = property; 50638 } else { 50639 if (isAlreadyDefined) { 50640 var specPolicy = ReactClassInterface[name]; 50641 50642 // These cases should already be caught by validateMethodOverride. 50643 _invariant( 50644 isReactClassMethod && 50645 (specPolicy === 'DEFINE_MANY_MERGED' || 50646 specPolicy === 'DEFINE_MANY'), 50647 'ReactClass: Unexpected spec policy %s for key %s ' + 50648 'when mixing in component specs.', 50649 specPolicy, 50650 name 50651 ); 50652 50653 // For methods which are defined more than once, call the existing 50654 // methods before calling the new property, merging if appropriate. 50655 if (specPolicy === 'DEFINE_MANY_MERGED') { 50656 proto[name] = createMergedResultFunction(proto[name], property); 50657 } else if (specPolicy === 'DEFINE_MANY') { 50658 proto[name] = createChainedFunction(proto[name], property); 50659 } 50660 } else { 50661 proto[name] = property; 50662 if (true) { 50663 // Add verbose displayName to the function, which helps when looking 50664 // at profiling tools. 50665 if (typeof property === 'function' && spec.displayName) { 50666 proto[name].displayName = spec.displayName + '_' + name; 50667 } 50668 } 50669 } 50670 } 50671 } 50672 } 50673 } 50674 50675 function mixStaticSpecIntoComponent(Constructor, statics) { 50676 if (!statics) { 50677 return; 50678 } 50679 50680 for (var name in statics) { 50681 var property = statics[name]; 50682 if (!statics.hasOwnProperty(name)) { 50683 continue; 50684 } 50685 50686 var isReserved = name in RESERVED_SPEC_KEYS; 50687 _invariant( 50688 !isReserved, 50689 'ReactClass: You are attempting to define a reserved ' + 50690 'property, `%s`, that shouldn\'t be on the "statics" key. Define it ' + 50691 'as an instance property instead; it will still be accessible on the ' + 50692 'constructor.', 50693 name 50694 ); 50695 50696 var isAlreadyDefined = name in Constructor; 50697 if (isAlreadyDefined) { 50698 var specPolicy = ReactClassStaticInterface.hasOwnProperty(name) 50699 ? ReactClassStaticInterface[name] 50700 : null; 50701 50702 _invariant( 50703 specPolicy === 'DEFINE_MANY_MERGED', 50704 'ReactClass: You are attempting to define ' + 50705 '`%s` on your component more than once. This conflict may be ' + 50706 'due to a mixin.', 50707 name 50708 ); 50709 50710 Constructor[name] = createMergedResultFunction(Constructor[name], property); 50711 50712 return; 50713 } 50714 50715 Constructor[name] = property; 50716 } 50717 } 50718 50719 /** 50720 * Merge two objects, but throw if both contain the same key. 50721 * 50722 * @param {object} one The first object, which is mutated. 50723 * @param {object} two The second object 50724 * @return {object} one after it has been mutated to contain everything in two. 50725 */ 50726 function mergeIntoWithNoDuplicateKeys(one, two) { 50727 _invariant( 50728 one && two && typeof one === 'object' && typeof two === 'object', 50729 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.' 50730 ); 50731 50732 for (var key in two) { 50733 if (two.hasOwnProperty(key)) { 50734 _invariant( 50735 one[key] === undefined, 50736 'mergeIntoWithNoDuplicateKeys(): ' + 50737 'Tried to merge two objects with the same key: `%s`. This conflict ' + 50738 'may be due to a mixin; in particular, this may be caused by two ' + 50739 'getInitialState() or getDefaultProps() methods returning objects ' + 50740 'with clashing keys.', 50741 key 50742 ); 50743 one[key] = two[key]; 50744 } 50745 } 50746 return one; 50747 } 50748 50749 /** 50750 * Creates a function that invokes two functions and merges their return values. 50751 * 50752 * @param {function} one Function to invoke first. 50753 * @param {function} two Function to invoke second. 50754 * @return {function} Function that invokes the two argument functions. 50755 * @private 50756 */ 50757 function createMergedResultFunction(one, two) { 50758 return function mergedResult() { 50759 var a = one.apply(this, arguments); 50760 var b = two.apply(this, arguments); 50761 if (a == null) { 50762 return b; 50763 } else if (b == null) { 50764 return a; 50765 } 50766 var c = {}; 50767 mergeIntoWithNoDuplicateKeys(c, a); 50768 mergeIntoWithNoDuplicateKeys(c, b); 50769 return c; 50770 }; 50771 } 50772 50773 /** 50774 * Creates a function that invokes two functions and ignores their return vales. 50775 * 50776 * @param {function} one Function to invoke first. 50777 * @param {function} two Function to invoke second. 50778 * @return {function} Function that invokes the two argument functions. 50779 * @private 50780 */ 50781 function createChainedFunction(one, two) { 50782 return function chainedFunction() { 50783 one.apply(this, arguments); 50784 two.apply(this, arguments); 50785 }; 50786 } 50787 50788 /** 50789 * Binds a method to the component. 50790 * 50791 * @param {object} component Component whose method is going to be bound. 50792 * @param {function} method Method to be bound. 50793 * @return {function} The bound method. 50794 */ 50795 function bindAutoBindMethod(component, method) { 50796 var boundMethod = method.bind(component); 50797 if (true) { 50798 boundMethod.__reactBoundContext = component; 50799 boundMethod.__reactBoundMethod = method; 50800 boundMethod.__reactBoundArguments = null; 50801 var componentName = component.constructor.displayName; 50802 var _bind = boundMethod.bind; 50803 boundMethod.bind = function(newThis) { 50804 for ( 50805 var _len = arguments.length, 50806 args = Array(_len > 1 ? _len - 1 : 0), 50807 _key = 1; 50808 _key < _len; 50809 _key++ 50810 ) { 50811 args[_key - 1] = arguments[_key]; 50812 } 50813 50814 // User is trying to bind() an autobound method; we effectively will 50815 // ignore the value of "this" that the user is trying to use, so 50816 // let's warn. 50817 if (newThis !== component && newThis !== null) { 50818 if (true) { 50819 warning( 50820 false, 50821 'bind(): React component methods may only be bound to the ' + 50822 'component instance. See %s', 50823 componentName 50824 ); 50825 } 50826 } else if (!args.length) { 50827 if (true) { 50828 warning( 50829 false, 50830 'bind(): You are binding a component method to the component. ' + 50831 'React does this for you automatically in a high-performance ' + 50832 'way, so you can safely remove this call. See %s', 50833 componentName 50834 ); 50835 } 50836 return boundMethod; 50837 } 50838 var reboundMethod = _bind.apply(boundMethod, arguments); 50839 reboundMethod.__reactBoundContext = component; 50840 reboundMethod.__reactBoundMethod = method; 50841 reboundMethod.__reactBoundArguments = args; 50842 return reboundMethod; 50843 }; 50844 } 50845 return boundMethod; 50846 } 50847 50848 /** 50849 * Binds all auto-bound methods in a component. 50850 * 50851 * @param {object} component Component whose method is going to be bound. 50852 */ 50853 function bindAutoBindMethods(component) { 50854 var pairs = component.__reactAutoBindPairs; 50855 for (var i = 0; i < pairs.length; i += 2) { 50856 var autoBindKey = pairs[i]; 50857 var method = pairs[i + 1]; 50858 component[autoBindKey] = bindAutoBindMethod(component, method); 50859 } 50860 } 50861 50862 var IsMountedPreMixin = { 50863 componentDidMount: function() { 50864 this.__isMounted = true; 50865 } 50866 }; 50867 50868 var IsMountedPostMixin = { 50869 componentWillUnmount: function() { 50870 this.__isMounted = false; 50871 } 50872 }; 50873 50874 /** 50875 * Add more to the ReactClass base class. These are all legacy features and 50876 * therefore not already part of the modern ReactComponent. 50877 */ 50878 var ReactClassMixin = { 50879 /** 50880 * TODO: This will be deprecated because state should always keep a consistent 50881 * type signature and the only use case for this, is to avoid that. 50882 */ 50883 replaceState: function(newState, callback) { 50884 this.updater.enqueueReplaceState(this, newState, callback); 50885 }, 50886 50887 /** 50888 * Checks whether or not this composite component is mounted. 50889 * @return {boolean} True if mounted, false otherwise. 50890 * @protected 50891 * @final 50892 */ 50893 isMounted: function() { 50894 if (true) { 50895 warning( 50896 this.__didWarnIsMounted, 50897 '%s: isMounted is deprecated. Instead, make sure to clean up ' + 50898 'subscriptions and pending requests in componentWillUnmount to ' + 50899 'prevent memory leaks.', 50900 (this.constructor && this.constructor.displayName) || 50901 this.name || 50902 'Component' 50903 ); 50904 this.__didWarnIsMounted = true; 50905 } 50906 return !!this.__isMounted; 50907 } 50908 }; 50909 50910 var ReactClassComponent = function() {}; 50911 _assign( 50912 ReactClassComponent.prototype, 50913 ReactComponent.prototype, 50914 ReactClassMixin 50915 ); 50916 50917 /** 50918 * Creates a composite component class given a class specification. 50919 * See https://facebook.github.io/react/docs/top-level-api.html#react.createclass 50920 * 50921 * @param {object} spec Class specification (which must define `render`). 50922 * @return {function} Component constructor function. 50923 * @public 50924 */ 50925 function createClass(spec) { 50926 // To keep our warnings more understandable, we'll use a little hack here to 50927 // ensure that Constructor.name !== 'Constructor'. This makes sure we don't 50928 // unnecessarily identify a class without displayName as 'Constructor'. 50929 var Constructor = identity(function(props, context, updater) { 50930 // This constructor gets overridden by mocks. The argument is used 50931 // by mocks to assert on what gets mounted. 50932 50933 if (true) { 50934 warning( 50935 this instanceof Constructor, 50936 'Something is calling a React component directly. Use a factory or ' + 50937 'JSX instead. See: https://fb.me/react-legacyfactory' 50938 ); 50939 } 50940 50941 // Wire up auto-binding 50942 if (this.__reactAutoBindPairs.length) { 50943 bindAutoBindMethods(this); 50944 } 50945 50946 this.props = props; 50947 this.context = context; 50948 this.refs = emptyObject; 50949 this.updater = updater || ReactNoopUpdateQueue; 50950 50951 this.state = null; 50952 50953 // ReactClasses doesn't have constructors. Instead, they use the 50954 // getInitialState and componentWillMount methods for initialization. 50955 50956 var initialState = this.getInitialState ? this.getInitialState() : null; 50957 if (true) { 50958 // We allow auto-mocks to proceed as if they're returning null. 50959 if ( 50960 initialState === undefined && 50961 this.getInitialState._isMockFunction 50962 ) { 50963 // This is probably bad practice. Consider warning here and 50964 // deprecating this convenience. 50965 initialState = null; 50966 } 50967 } 50968 _invariant( 50969 typeof initialState === 'object' && !Array.isArray(initialState), 50970 '%s.getInitialState(): must return an object or null', 50971 Constructor.displayName || 'ReactCompositeComponent' 50972 ); 50973 50974 this.state = initialState; 50975 }); 50976 Constructor.prototype = new ReactClassComponent(); 50977 Constructor.prototype.constructor = Constructor; 50978 Constructor.prototype.__reactAutoBindPairs = []; 50979 50980 injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor)); 50981 50982 mixSpecIntoComponent(Constructor, IsMountedPreMixin); 50983 mixSpecIntoComponent(Constructor, spec); 50984 mixSpecIntoComponent(Constructor, IsMountedPostMixin); 50985 50986 // Initialize the defaultProps property after all mixins have been merged. 50987 if (Constructor.getDefaultProps) { 50988 Constructor.defaultProps = Constructor.getDefaultProps(); 50989 } 50990 50991 if (true) { 50992 // This is a tag to indicate that the use of these method names is ok, 50993 // since it's used with createClass. If it's not, then it's likely a 50994 // mistake so we'll warn you to use the static property, property 50995 // initializer or constructor respectively. 50996 if (Constructor.getDefaultProps) { 50997 Constructor.getDefaultProps.isReactClassApproved = {}; 50998 } 50999 if (Constructor.prototype.getInitialState) { 51000 Constructor.prototype.getInitialState.isReactClassApproved = {}; 51001 } 51002 } 51003 51004 _invariant( 51005 Constructor.prototype.render, 51006 'createClass(...): Class specification must implement a `render` method.' 51007 ); 51008 51009 if (true) { 51010 warning( 51011 !Constructor.prototype.componentShouldUpdate, 51012 '%s has a method called ' + 51013 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 51014 'The name is phrased as a question because the function is ' + 51015 'expected to return a value.', 51016 spec.displayName || 'A component' 51017 ); 51018 warning( 51019 !Constructor.prototype.componentWillRecieveProps, 51020 '%s has a method called ' + 51021 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', 51022 spec.displayName || 'A component' 51023 ); 51024 warning( 51025 !Constructor.prototype.UNSAFE_componentWillRecieveProps, 51026 '%s has a method called UNSAFE_componentWillRecieveProps(). ' + 51027 'Did you mean UNSAFE_componentWillReceiveProps()?', 51028 spec.displayName || 'A component' 51029 ); 51030 } 51031 51032 // Reduce time spent doing lookups by setting these on the prototype. 51033 for (var methodName in ReactClassInterface) { 51034 if (!Constructor.prototype[methodName]) { 51035 Constructor.prototype[methodName] = null; 51036 } 51037 } 51038 51039 return Constructor; 51040 } 51041 51042 return createClass; 51043} 51044 51045module.exports = factory; 51046 51047 51048/***/ }),
51049/* 421 */ 51050/***/ (function(module, exports, __webpack_require__) { 51051 51052"use strict"; 51053/** 51054 * Copyright (c) 2013-present, Facebook, Inc. 51055 * 51056 * This source code is licensed under the MIT license found in the 51057 * LICENSE file in the root directory of this source tree. 51058 * 51059 */ 51060 51061 51062var _prodInvariant = __webpack_require__(49); 51063 51064var ReactElement = __webpack_require__(40); 51065 51066var invariant = __webpack_require__(10); 51067 51068/** 51069 * Returns the first child in a collection of children and verifies that there 51070 * is only one child in the collection. 51071 * 51072 * See https://facebook.github.io/react/docs/top-level-api.html#react.children.only 51073 * 51074 * The current implementation of this function assumes that a single child gets 51075 * passed without a wrapper, but the purpose of this helper function is to 51076 * abstract away the particular structure of children. 51077 * 51078 * @param {?object} children Child collection structure. 51079 * @return {ReactElement} The first and only `ReactElement` contained in the 51080 * structure. 51081 */ 51082function onlyChild(children) { 51083 !ReactElement.isValidElement(children) ? true ? invariant(false, 'React.Children.only expected to receive a single React element child.') : _prodInvariant('143') : void 0; 51084 return children; 51085} 51086 51087module.exports = onlyChild; 51088 51089/***/ }), 51090/* 422 */ 51091/***/ (function(module, exports, __webpack_require__) { 51092 51093"use strict"; 51094/** 51095 * Copyright (c) 2013-present, Facebook, Inc. 51096 * 51097 * This source code is licensed under the MIT license found in the 51098 * LICENSE file in the root directory of this source tree. 51099 * 51100 */ 51101 51102/* globals __REACT_DEVTOOLS_GLOBAL_HOOK__*/ 51103 51104 51105 51106var ReactDOMComponentTree = __webpack_require__(15); 51107var ReactDefaultInjection = __webpack_require__(423); 51108var ReactMount = __webpack_require__(190); 51109var ReactReconciler = __webpack_require__(52); 51110var ReactUpdates = __webpack_require__(31); 51111var ReactVersion = __webpack_require__(501); 51112 51113var findDOMNode = __webpack_require__(502); 51114var getHostComponentFromComposite = __webpack_require__(191); 51115var renderSubtreeIntoContainer = __webpack_require__(503); 51116var warning = __webpack_require__(11); 51117 51118ReactDefaultInjection.inject(); 51119 51120var ReactDOM = { 51121 findDOMNode: findDOMNode, 51122 render: ReactMount.render, 51123 unmountComponentAtNode: ReactMount.unmountComponentAtNode, 51124 version: ReactVersion, 51125 51126 /* eslint-disable camelcase */ 51127 unstable_batchedUpdates: ReactUpdates.batchedUpdates, 51128 unstable_renderSubtreeIntoContainer: renderSubtreeIntoContainer 51129 /* eslint-enable camelcase */ 51130}; 51131 51132// Inject the runtime into a devtools global hook regardless of browser. 51133// Allows for debugging when the hook is injected on the page. 51134if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject === 'function') { 51135 __REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ 51136 ComponentTree: { 51137 getClosestInstanceFromNode: ReactDOMComponentTree.getClosestInstanceFromNode, 51138 getNodeFromInstance: function (inst) { 51139 // inst is an internal instance (but could be a composite) 51140 if (inst._renderedComponent) { 51141 inst = getHostComponentFromComposite(inst); 51142 } 51143 if (inst) { 51144 return ReactDOMComponentTree.getNodeFromInstance(inst); 51145 } else { 51146 return null; 51147 } 51148 } 51149 }, 51150 Mount: ReactMount, 51151 Reconciler: ReactReconciler 51152 }); 51153} 51154 51155if (true) { 51156 var ExecutionEnvironment = __webpack_require__(18); 51157 if (ExecutionEnvironment.canUseDOM && window.top === window.self) { 51158 // First check if devtools is not installed 51159 if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') { 51160 // If we're in Chrome or Firefox, provide a download link if not installed. 51161 if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) { 51162 // Firefox does not have the issue with devtools loaded over file:// 51163 var showFileUrlMessage = window.location.protocol.indexOf('http') === -1 && navigator.userAgent.indexOf('Firefox') === -1; 51164 console.debug('Download the React DevTools ' + (showFileUrlMessage ? 'and use an HTTP server (instead of a file: URL) ' : '') + 'for a better development experience: ' + 'https://fb.me/react-devtools'); 51165 } 51166 } 51167 51168 var testFunc = function testFn() {}; 51169 true ? warning((testFunc.name || testFunc.toString()).indexOf('testFn') !== -1, "It looks like you're using a minified copy of the development build " + 'of React. When deploying React apps to production, make sure to use ' + 'the production build which skips development warnings and is faster. ' + 'See https://fb.me/react-minification for more details.') : void 0; 51170 51171 // If we're in IE8, check to see if we are in compatibility mode and provide 51172 // information on preventing compatibility mode 51173 var ieCompatibilityMode = document.documentMode && document.documentMode < 8; 51174 51175 true ? warning(!ieCompatibilityMode, 'Internet Explorer is running in compatibility mode; please add the ' + 'following tag to your HTML to prevent this from happening: ' + '<meta http-equiv="X-UA-Compatible" content="IE=edge" />') : void 0; 51176 51177 var expectedFeatures = [ 51178 // shims 51179 Array.isArray, Array.prototype.every, Array.prototype.forEach, Array.prototype.indexOf, Array.prototype.map, Date.now, Function.prototype.bind, Object.keys, String.prototype.trim]; 51180 51181 for (var i = 0; i < expectedFeatures.length; i++) { 51182 if (!expectedFeatures[i]) { 51183 true ? warning(false, 'One or more ES5 shims expected by React are not available: ' + 'https://fb.me/react-warning-polyfills') : void 0; 51184 break; 51185 } 51186 } 51187 } 51188} 51189 51190if (true) { 51191 var ReactInstrumentation = __webpack_require__(24); 51192 var ReactDOMUnknownPropertyHook = __webpack_require__(504); 51193 var ReactDOMNullInputValuePropHook = __webpack_require__(505); 51194 var ReactDOMInvalidARIAHook = __webpack_require__(506); 51195 51196 ReactInstrumentation.debugTool.addHook(ReactDOMUnknownPropertyHook); 51197 ReactInstrumentation.debugTool.addHook(ReactDOMNullInputValuePropHook); 51198 ReactInstrumentation.debugTool.addHook(ReactDOMInvalidARIAHook); 51199} 51200 51201module.exports = ReactDOM; 51202 51203/***/ }), 51204/* 423 */ 51205/***/ (function(module, exports, __webpack_require__) { 51206 51207"use strict"; 51208/** 51209 * Copyright (c) 2013-present, Facebook, Inc. 51210 * 51211 * This source code is licensed under the MIT license found in the 51212 * LICENSE file in the root directory of this source tree. 51213 * 51214 */ 51215 51216 51217 51218var ARIADOMPropertyConfig = __webpack_require__(424); 51219var BeforeInputEventPlugin = __webpack_require__(425); 51220var ChangeEventPlugin = __webpack_require__(429); 51221var DefaultEventPluginOrder = __webpack_require__(437); 51222var EnterLeaveEventPlugin = __webpack_require__(438); 51223var HTMLDOMPropertyConfig = __webpack_require__(439); 51224var ReactComponentBrowserEnvironment = __webpack_require__(440); 51225var ReactDOMComponent = __webpack_require__(446); 51226var ReactDOMComponentTree = __webpack_require__(15); 51227var ReactDOMEmptyComponent = __webpack_require__(472); 51228var ReactDOMTreeTraversal = __webpack_require__(473); 51229var ReactDOMTextComponent = __webpack_require__(474); 51230var ReactDefaultBatchingStrategy = __webpack_require__(475); 51231var ReactEventListener = __webpack_require__(476); 51232var ReactInjection = __webpack_require__(478); 51233var ReactReconcileTransaction = __webpack_require__(479); 51234var SVGDOMPropertyConfig = __webpack_require__(485); 51235var SelectEventPlugin = __webpack_require__(486); 51236var SimpleEventPlugin = __webpack_require__(487); 51237 51238var alreadyInjected = false;
51239 51240function inject() { 51241 if (alreadyInjected) { 51242 // TODO: This is currently true because these injections are shared between 51243 // the client and the server package. They should be built independently 51244 // and not share any injection state. Then this problem will be solved. 51245 return; 51246 } 51247 alreadyInjected = true; 51248 51249 ReactInjection.EventEmitter.injectReactEventListener(ReactEventListener); 51250 51251 /** 51252 * Inject modules for resolving DOM hierarchy and plugin ordering. 51253 */ 51254 ReactInjection.EventPluginHub.injectEventPluginOrder(DefaultEventPluginOrder); 51255 ReactInjection.EventPluginUtils.injectComponentTree(ReactDOMComponentTree); 51256 ReactInjection.EventPluginUtils.injectTreeTraversal(ReactDOMTreeTraversal); 51257 51258 /** 51259 * Some important event plugins included by default (without having to require 51260 * them). 51261 */ 51262 ReactInjection.EventPluginHub.injectEventPluginsByName({ 51263 SimpleEventPlugin: SimpleEventPlugin, 51264 EnterLeaveEventPlugin: EnterLeaveEventPlugin, 51265 ChangeEventPlugin: ChangeEventPlugin, 51266 SelectEventPlugin: SelectEventPlugin, 51267 BeforeInputEventPlugin: BeforeInputEventPlugin 51268 }); 51269 51270 ReactInjection.HostComponent.injectGenericComponentClass(ReactDOMComponent); 51271 51272 ReactInjection.HostComponent.injectTextComponentClass(ReactDOMTextComponent); 51273 51274 ReactInjection.DOMProperty.injectDOMPropertyConfig(ARIADOMPropertyConfig); 51275 ReactInjection.DOMProperty.injectDOMPropertyConfig(HTMLDOMPropertyConfig); 51276 ReactInjection.DOMProperty.injectDOMPropertyConfig(SVGDOMPropertyConfig); 51277 51278 ReactInjection.EmptyComponent.injectEmptyComponentFactory(function (instantiate) { 51279 return new ReactDOMEmptyComponent(instantiate); 51280 }); 51281 51282 ReactInjection.Updates.injectReconcileTransaction(ReactReconcileTransaction); 51283 ReactInjection.Updates.injectBatchingStrategy(ReactDefaultBatchingStrategy); 51284 51285 ReactInjection.Component.injectEnvironment(ReactComponentBrowserEnvironment); 51286} 51287 51288module.exports = { 51289 inject: inject 51290}; 51291 51292/***/ }), 51293/* 424 */ 51294/***/ (function(module, exports, __webpack_require__) { 51295 51296"use strict"; 51297/** 51298 * Copyright (c) 2013-present, Facebook, Inc. 51299 * 51300 * This source code is licensed under the MIT license found in the 51301 * LICENSE file in the root directory of this source tree. 51302 * 51303 */ 51304 51305 51306 51307var ARIADOMPropertyConfig = { 51308 Properties: { 51309 // Global States and Properties 51310 'aria-current': 0, // state 51311 'aria-details': 0, 51312 'aria-disabled': 0, // state 51313 'aria-hidden': 0, // state 51314 'aria-invalid': 0, // state 51315 'aria-keyshortcuts': 0, 51316 'aria-label': 0, 51317 'aria-roledescription': 0, 51318 // Widget Attributes 51319 'aria-autocomplete': 0, 51320 'aria-checked': 0, 51321 'aria-expanded': 0, 51322 'aria-haspopup': 0, 51323 'aria-level': 0,
51324 'aria-modal': 0, 51325 'aria-multiline': 0, 51326 'aria-multiselectable': 0, 51327 'aria-orientation': 0, 51328 'aria-placeholder': 0, 51329 'aria-pressed': 0, 51330 'aria-readonly': 0, 51331 'aria-required': 0, 51332 'aria-selected': 0, 51333 'aria-sort': 0, 51334 'aria-valuemax': 0, 51335 'aria-valuemin': 0, 51336 'aria-valuenow': 0, 51337 'aria-valuetext': 0, 51338 // Live Region Attributes 51339 'aria-atomic': 0, 51340 'aria-busy': 0, 51341 'aria-live': 0, 51342 'aria-relevant': 0, 51343 // Drag-and-Drop Attributes 51344 'aria-dropeffect': 0, 51345 'aria-grabbed': 0, 51346 // Relationship Attributes 51347 'aria-activedescendant': 0, 51348 'aria-colcount': 0, 51349 'aria-colindex': 0, 51350 'aria-colspan': 0, 51351 'aria-controls': 0, 51352 'aria-describedby': 0, 51353 'aria-errormessage': 0, 51354 'aria-flowto': 0, 51355 'aria-labelledby': 0, 51356 'aria-owns': 0, 51357 'aria-posinset': 0, 51358 'aria-rowcount': 0, 51359 'aria-rowindex': 0, 51360 'aria-rowspan': 0, 51361 'aria-setsize': 0 51362 }, 51363 DOMAttributeNames: {}, 51364 DOMPropertyNames: {} 51365}; 51366 51367module.exports = ARIADOMPropertyConfig; 51368 51369/***/ }), 51370/* 425 */ 51371/***/ (function(module, exports, __webpack_require__) { 51372 51373"use strict"; 51374/** 51375 * Copyright (c) 2013-present, Facebook, Inc. 51376 * 51377 * This source code is licensed under the MIT license found in the 51378 * LICENSE file in the root directory of this source tree. 51379 * 51380 */ 51381 51382 51383 51384var EventPropagators = __webpack_require__(50); 51385var ExecutionEnvironment = __webpack_require__(18); 51386var FallbackCompositionState = __webpack_require__(426); 51387var SyntheticCompositionEvent = __webpack_require__(427); 51388var SyntheticInputEvent = __webpack_require__(428); 51389 51390var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space 51391var START_KEYCODE = 229; 51392 51393var canUseCompositionEvent = ExecutionEnvironment.canUseDOM && 'CompositionEvent' in window; 51394 51395var documentMode = null; 51396if (ExecutionEnvironment.canUseDOM && 'documentMode' in document) { 51397 documentMode = document.documentMode; 51398} 51399 51400// Webkit offers a very useful `textInput` event that can be used to 51401// directly represent `beforeInput`. The IE `textinput` event is not as 51402// useful, so we don't use it. 51403var canUseTextInputEvent = ExecutionEnvironment.canUseDOM && 'TextEvent' in window && !documentMode && !isPresto(); 51404 51405// In IE9+, we have access to composition events, but the data supplied 51406// by the native compositionend event may be incorrect. Japanese ideographic 51407// spaces, for instance (\u3000) are not recorded correctly. 51408var useFallbackCompositionData = ExecutionEnvironment.canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11); 51409 51410/** 51411 * Opera <= 12 includes TextEvent in window, but does not fire 51412 * text input events. Rely on keypress instead. 51413 */ 51414function isPresto() { 51415 var opera = window.opera; 51416 return typeof opera === 'object' && typeof opera.version === 'function' && parseInt(opera.version(), 10) <= 12; 51417} 51418 51419var SPACEBAR_CODE = 32; 51420var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE); 51421 51422// Events and their corresponding property names. 51423var eventTypes = { 51424 beforeInput: { 51425 phasedRegistrationNames: { 51426 bubbled: 'onBeforeInput', 51427 captured: 'onBeforeInputCapture' 51428 }, 51429 dependencies: ['topCompositionEnd', 'topKeyPress', 'topTextInput', 'topPaste'] 51430 }, 51431 compositionEnd: { 51432 phasedRegistrationNames: { 51433 bubbled: 'onCompositionEnd', 51434 captured: 'onCompositionEndCapture' 51435 }, 51436 dependencies: ['topBlur', 'topCompositionEnd', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown'] 51437 }, 51438 compositionStart: { 51439 phasedRegistrationNames: { 51440 bubbled: 'onCompositionStart', 51441 captured: 'onCompositionStartCapture' 51442 }, 51443 dependencies: ['topBlur', 'topCompositionStart', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown'] 51444 }, 51445 compositionUpdate: { 51446 phasedRegistrationNames: { 51447 bubbled: 'onCompositionUpdate', 51448 captured: 'onCompositionUpdateCapture' 51449 }, 51450 dependencies: ['topBlur', 'topCompositionUpdate', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown'] 51451 } 51452}; 51453 51454// Track whether we've ever handled a keypress on the space key. 51455var hasSpaceKeypress = false; 51456 51457/** 51458 * Return whether a native keypress event is assumed to be a command. 51459 * This is required because Firefox fires `keypress` events for key commands 51460 * (cut, copy, select-all, etc.) even though no character is inserted. 51461 */ 51462function isKeypressCommand(nativeEvent) { 51463 return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && 51464 // ctrlKey && altKey is equivalent to AltGr, and is not a command. 51465 !(nativeEvent.ctrlKey && nativeEvent.altKey); 51466} 51467 51468/** 51469 * Translate native top level events into event types. 51470 * 51471 * @param {string} topLevelType 51472 * @return {object} 51473 */ 51474function getCompositionEventType(topLevelType) { 51475 switch (topLevelType) { 51476 case 'topCompositionStart': 51477 return eventTypes.compositionStart; 51478 case 'topCompositionEnd': 51479 return eventTypes.compositionEnd; 51480 case 'topCompositionUpdate': 51481 return eventTypes.compositionUpdate; 51482 } 51483} 51484 51485/** 51486 * Does our fallback best-guess model think this event signifies that 51487 * composition has begun? 51488 * 51489 * @param {string} topLevelType 51490 * @param {object} nativeEvent 51491 * @return {boolean} 51492 */ 51493function isFallbackCompositionStart(topLevelType, nativeEvent) { 51494 return topLevelType === 'topKeyDown' && nativeEvent.keyCode === START_KEYCODE; 51495} 51496 51497/** 51498 * Does our fallback mode think that this event is the end of composition? 51499 * 51500 * @param {string} topLevelType 51501 * @param {object} nativeEvent 51502 * @return {boolean} 51503 */ 51504function isFallbackCompositionEnd(topLevelType, nativeEvent) { 51505 switch (topLevelType) { 51506 case 'topKeyUp': 51507 // Command keys insert or clear IME input. 51508 return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1; 51509 case 'topKeyDown': 51510 // Expect IME keyCode on each keydown. If we get any other 51511 // code we must have exited earlier. 51512 return nativeEvent.keyCode !== START_KEYCODE; 51513 case 'topKeyPress': 51514 case 'topMouseDown': 51515 case 'topBlur': 51516 // Events are not possible without cancelling IME. 51517 return true; 51518 default: 51519 return false;
51520 } 51521} 51522 51523/** 51524 * Google Input Tools provides composition data via a CustomEvent, 51525 * with the `data` property populated in the `detail` object. If this 51526 * is available on the event object, use it. If not, this is a plain 51527 * composition event and we have nothing special to extract. 51528 * 51529 * @param {object} nativeEvent 51530 * @return {?string} 51531 */ 51532function getDataFromCustomEvent(nativeEvent) { 51533 var detail = nativeEvent.detail; 51534 if (typeof detail === 'object' && 'data' in detail) { 51535 return detail.data; 51536 } 51537 return null; 51538} 51539 51540// Track the current IME composition fallback object, if any. 51541var currentComposition = null; 51542 51543/** 51544 * @return {?object} A SyntheticCompositionEvent. 51545 */ 51546function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 51547 var eventType; 51548 var fallbackData; 51549 51550 if (canUseCompositionEvent) { 51551 eventType = getCompositionEventType(topLevelType); 51552 } else if (!currentComposition) { 51553 if (isFallbackCompositionStart(topLevelType, nativeEvent)) { 51554 eventType = eventTypes.compositionStart; 51555 } 51556 } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) { 51557 eventType = eventTypes.compositionEnd; 51558 } 51559 51560 if (!eventType) { 51561 return null; 51562 } 51563 51564 if (useFallbackCompositionData) { 51565 // The current composition is stored statically and must not be 51566 // overwritten while composition continues. 51567 if (!currentComposition && eventType === eventTypes.compositionStart) { 51568 currentComposition = FallbackCompositionState.getPooled(nativeEventTarget); 51569 } else if (eventType === eventTypes.compositionEnd) { 51570 if (currentComposition) { 51571 fallbackData = currentComposition.getData(); 51572 } 51573 } 51574 } 51575 51576 var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget); 51577 51578 if (fallbackData) { 51579 // Inject data generated from fallback path into the synthetic event. 51580 // This matches the property of native CompositionEventInterface. 51581 event.data = fallbackData; 51582 } else { 51583 var customData = getDataFromCustomEvent(nativeEvent); 51584 if (customData !== null) { 51585 event.data = customData; 51586 } 51587 } 51588 51589 EventPropagators.accumulateTwoPhaseDispatches(event); 51590 return event; 51591} 51592 51593/** 51594 * @param {string} topLevelType Record from `EventConstants`. 51595 * @param {object} nativeEvent Native browser event. 51596 * @return {?string} The string corresponding to this `beforeInput` event. 51597 */ 51598function getNativeBeforeInputChars(topLevelType, nativeEvent) { 51599 switch (topLevelType) { 51600 case 'topCompositionEnd': 51601 return getDataFromCustomEvent(nativeEvent); 51602 case 'topKeyPress': 51603 /** 51604 * If native `textInput` events are available, our goal is to make 51605 * use of them. However, there is a special case: the spacebar key. 51606 * In Webkit, preventing default on a spacebar `textInput` event 51607 * cancels character insertion, but it *also* causes the browser 51608 * to fall back to its default spacebar behavior of scrolling the 51609 * page. 51610 * 51611 * Tracking at: 51612 * https://code.google.com/p/chromium/issues/detail?id=355103 51613 * 51614 * To avoid this issue, use the keypress event as if no `textInput` 51615 * event is available. 51616 */ 51617 var which = nativeEvent.which; 51618 if (which !== SPACEBAR_CODE) { 51619 return null; 51620 } 51621 51622 hasSpaceKeypress = true; 51623 return SPACEBAR_CHAR; 51624 51625 case 'topTextInput': 51626 // Record the characters to be added to the DOM. 51627 var chars = nativeEvent.data; 51628 51629 // If it's a spacebar character, assume that we have already handled 51630 // it at the keypress level and bail immediately. Android Chrome 51631 // doesn't give us keycodes, so we need to blacklist it. 51632 if (chars === SPACEBAR_CHAR && hasSpaceKeypress) { 51633 return null; 51634 } 51635 51636 return chars; 51637 51638 default: 51639 // For other native event types, do nothing. 51640 return null; 51641 } 51642} 51643 51644/** 51645 * For browsers that do not provide the `textInput` event, extract the 51646 * appropriate string to use for SyntheticInputEvent. 51647 * 51648 * @param {string} topLevelType Record from `EventConstants`. 51649 * @param {object} nativeEvent Native browser event. 51650 * @return {?string} The fallback string for this `beforeInput` event. 51651 */ 51652function getFallbackBeforeInputChars(topLevelType, nativeEvent) { 51653 // If we are currently composing (IME) and using a fallback to do so, 51654 // try to extract the composed characters from the fallback object. 51655 // If composition event is available, we extract a string only at 51656 // compositionevent, otherwise extract it at fallback events. 51657 if (currentComposition) { 51658 if (topLevelType === 'topCompositionEnd' || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) { 51659 var chars = currentComposition.getData(); 51660 FallbackCompositionState.release(currentComposition); 51661 currentComposition = null; 51662 return chars; 51663 } 51664 return null; 51665 } 51666 51667 switch (topLevelType) { 51668 case 'topPaste': 51669 // If a paste event occurs after a keypress, throw out the input 51670 // chars. Paste events should not lead to BeforeInput events. 51671 return null; 51672 case 'topKeyPress': 51673 /** 51674 * As of v27, Firefox may fire keypress events even when no character 51675 * will be inserted. A few possibilities: 51676 * 51677 * - `which` is `0`. Arrow keys, Esc key, etc. 51678 * 51679 * - `which` is the pressed key code, but no char is available. 51680 * Ex: 'AltGr + d` in Polish. There is no modified character for 51681 * this key combination and no character is inserted into the 51682 * document, but FF fires the keypress for char code `100` anyway. 51683 * No `input` event will occur. 51684 * 51685 * - `which` is the pressed key code, but a command combination is 51686 * being used. Ex: `Cmd+C`. No character is inserted, and no 51687 * `input` event will occur. 51688 */ 51689 if (nativeEvent.which && !isKeypressCommand(nativeEvent)) { 51690 return String.fromCharCode(nativeEvent.which); 51691 } 51692 return null; 51693 case 'topCompositionEnd': 51694 return useFallbackCompositionData ? null : nativeEvent.data; 51695 default: 51696 return null; 51697 } 51698} 51699 51700/** 51701 * Extract a SyntheticInputEvent for `beforeInput`, based on either native 51702 * `textInput` or fallback behavior. 51703 * 51704 * @return {?object} A SyntheticInputEvent. 51705 */ 51706function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 51707 var chars; 51708 51709 if (canUseTextInputEvent) { 51710 chars = getNativeBeforeInputChars(topLevelType, nativeEvent); 51711 } else { 51712 chars = getFallbackBeforeInputChars(topLevelType, nativeEvent); 51713 } 51714 51715 // If no characters are being inserted, no BeforeInput event should 51716 // be fired. 51717 if (!chars) { 51718 return null; 51719 } 51720 51721 var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget); 51722 51723 event.data = chars; 51724 EventPropagators.accumulateTwoPhaseDispatches(event); 51725 return event; 51726} 51727
51728/** 51729 * Create an `onBeforeInput` event to match 51730 * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents. 51731 * 51732 * This event plugin is based on the native `textInput` event 51733 * available in Chrome, Safari, Opera, and IE. This event fires after 51734 * `onKeyPress` and `onCompositionEnd`, but before `onInput`. 51735 * 51736 * `beforeInput` is spec'd but not implemented in any browsers, and 51737 * the `input` event does not provide any useful information about what has 51738 * actually been added, contrary to the spec. Thus, `textInput` is the best 51739 * available event to identify the characters that have actually been inserted 51740 * into the target node. 51741 * 51742 * This plugin is also responsible for emitting `composition` events, thus 51743 * allowing us to share composition fallback code for both `beforeInput` and 51744 * `composition` event types. 51745 */ 51746var BeforeInputEventPlugin = { 51747 eventTypes: eventTypes, 51748 51749 extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) { 51750 return [extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget), extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget)]; 51751 } 51752}; 51753 51754module.exports = BeforeInputEventPlugin; 51755 51756/***/ }), 51757/* 426 */ 51758/***/ (function(module, exports, __webpack_require__) { 51759 51760"use strict"; 51761/** 51762 * Copyright (c) 2013-present, Facebook, Inc. 51763 * 51764 * This source code is licensed under the MIT license found in the 51765 * LICENSE file in the root directory of this source tree. 51766 * 51767 */ 51768 51769 51770 51771var _assign = __webpack_require__(14); 51772 51773var PooledClass = __webpack_require__(42); 51774 51775var getTextContentAccessor = __webpack_require__(171); 51776 51777/** 51778 * This helper class stores information about text content of a target node, 51779 * allowing comparison of content before and after a given event. 51780 * 51781 * Identify the node where selection currently begins, then observe 51782 * both its text content and its current position in the DOM. Since the 51783 * browser may natively replace the target node during composition, we can 51784 * use its position to find its replacement. 51785 * 51786 * @param {DOMEventTarget} root 51787 */ 51788function FallbackCompositionState(root) { 51789 this._root = root; 51790 this._startText = this.getText(); 51791 this._fallbackText = null; 51792} 51793 51794_assign(FallbackCompositionState.prototype, { 51795 destructor: function () { 51796 this._root = null; 51797 this._startText = null; 51798 this._fallbackText = null; 51799 }, 51800 51801 /** 51802 * Get current text of input. 51803 * 51804 * @return {string} 51805 */ 51806 getText: function () { 51807 if ('value' in this._root) { 51808 return this._root.value; 51809 } 51810 return this._root[getTextContentAccessor()]; 51811 }, 51812 51813 /** 51814 * Determine the differing substring between the initially stored 51815 * text content and the current content. 51816 * 51817 * @return {string} 51818 */ 51819 getData: function () { 51820 if (this._fallbackText) { 51821 return this._fallbackText; 51822 } 51823 51824 var start; 51825 var startValue = this._startText; 51826 var startLength = startValue.length; 51827 var end; 51828 var endValue = this.getText(); 51829 var endLength = endValue.length; 51830 51831 for (start = 0; start < startLength; start++) { 51832 if (startValue[start] !== endValue[start]) { 51833 break; 51834 } 51835 } 51836 51837 var minEnd = startLength - start; 51838 for (end = 1; end <= minEnd; end++) { 51839 if (startValue[startLength - end] !== endValue[endLength - end]) { 51840 break; 51841 } 51842 } 51843 51844 var sliceTail = end > 1 ? 1 - end : undefined; 51845 this._fallbackText = endValue.slice(start, sliceTail); 51846 return this._fallbackText; 51847 } 51848}); 51849 51850PooledClass.addPoolingTo(FallbackCompositionState); 51851 51852module.exports = FallbackCompositionState; 51853 51854/***/ }), 51855/* 427 */ 51856/***/ (function(module, exports, __webpack_require__) { 51857 51858"use strict"; 51859/** 51860 * Copyright (c) 2013-present, Facebook, Inc. 51861 * 51862 * This source code is licensed under the MIT license found in the 51863 * LICENSE file in the root directory of this source tree. 51864 * 51865 */ 51866 51867 51868 51869var SyntheticEvent = __webpack_require__(35); 51870 51871/** 51872 * @interface Event 51873 * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents 51874 */ 51875var CompositionEventInterface = { 51876 data: null 51877}; 51878 51879/** 51880 * @param {object} dispatchConfig Configuration used to dispatch this event. 51881 * @param {string} dispatchMarker Marker identifying the event target. 51882 * @param {object} nativeEvent Native browser event. 51883 * @extends {SyntheticUIEvent} 51884 */
51885function SyntheticCompositionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { 51886 return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); 51887} 51888 51889SyntheticEvent.augmentClass(SyntheticCompositionEvent, CompositionEventInterface); 51890 51891module.exports = SyntheticCompositionEvent; 51892 51893/***/ }), 51894/* 428 */ 51895/***/ (function(module, exports, __webpack_require__) { 51896 51897"use strict"; 51898/** 51899 * Copyright (c) 2013-present, Facebook, Inc. 51900 * 51901 * This source code is licensed under the MIT license found in the 51902 * LICENSE file in the root directory of this source tree. 51903 * 51904 */ 51905 51906 51907 51908var SyntheticEvent = __webpack_require__(35); 51909 51910/** 51911 * @interface Event 51912 * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105 51913 * /#events-inputevents 51914 */ 51915var InputEventInterface = { 51916 data: null 51917}; 51918 51919/** 51920 * @param {object} dispatchConfig Configuration used to dispatch this event. 51921 * @param {string} dispatchMarker Marker identifying the event target. 51922 * @param {object} nativeEvent Native browser event. 51923 * @extends {SyntheticUIEvent} 51924 */ 51925function SyntheticInputEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { 51926 return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); 51927} 51928 51929SyntheticEvent.augmentClass(SyntheticInputEvent, InputEventInterface); 51930 51931module.exports = SyntheticInputEvent; 51932 51933/***/ }), 51934/* 429 */ 51935/***/ (function(module, exports, __webpack_require__) { 51936 51937"use strict"; 51938/** 51939 * Copyright (c) 2013-present, Facebook, Inc. 51940 * 51941 * This source code is licensed under the MIT license found in the 51942 * LICENSE file in the root directory of this source tree. 51943 * 51944 */ 51945 51946 51947 51948var EventPluginHub = __webpack_require__(51); 51949var EventPropagators = __webpack_require__(50); 51950var ExecutionEnvironment = __webpack_require__(18); 51951var ReactDOMComponentTree = __webpack_require__(15); 51952var ReactUpdates = __webpack_require__(31); 51953var SyntheticEvent = __webpack_require__(35); 51954 51955var inputValueTracking = __webpack_require__(174); 51956var getEventTarget = __webpack_require__(107); 51957var isEventSupported = __webpack_require__(108); 51958var isTextInputElement = __webpack_require__(175); 51959 51960var eventTypes = { 51961 change: { 51962 phasedRegistrationNames: { 51963 bubbled: 'onChange', 51964 captured: 'onChangeCapture' 51965 }, 51966 dependencies: ['topBlur', 'topChange', 'topClick', 'topFocus', 'topInput', 'topKeyDown', 'topKeyUp', 'topSelectionChange'] 51967 } 51968}; 51969 51970function createAndAccumulateChangeEvent(inst, nativeEvent, target) { 51971 var event = SyntheticEvent.getPooled(eventTypes.change, inst, nativeEvent, target); 51972 event.type = 'change'; 51973 EventPropagators.accumulateTwoPhaseDispatches(event); 51974 return event; 51975} 51976/** 51977 * For IE shims 51978 */ 51979var activeElement = null; 51980var activeElementInst = null; 51981 51982/** 51983 * SECTION: handle `change` event 51984 */ 51985function shouldUseChangeEvent(elem) { 51986 var nodeName = elem.nodeName && elem.nodeName.toLowerCase(); 51987 return nodeName === 'select' || nodeName === 'input' && elem.type === 'file'; 51988} 51989 51990var doesChangeEventBubble = false; 51991if (ExecutionEnvironment.canUseDOM) { 51992 // See `handleChange` comment below 51993 doesChangeEventBubble = isEventSupported('change') && (!document.documentMode || document.documentMode > 8); 51994} 51995 51996function manualDispatchChangeEvent(nativeEvent) { 51997 var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent)); 51998 51999 // If change and propertychange bubbled, we'd just bind to it like all the 52000 // other events and have it go through ReactBrowserEventEmitter. Since it 52001 // doesn't, we manually listen for the events and so we have to enqueue and 52002 // process the abstract event manually. 52003 // 52004 // Batching is necessary here in order to ensure that all event handlers run 52005 // before the next rerender (including event handlers attached to ancestor 52006 // elements instead of directly on the input). Without this, controlled 52007 // components don't work properly in conjunction with event bubbling because 52008 // the component is rerendered and the value reverted before all the event 52009 // handlers can run. See https://github.com/facebook/react/issues/708. 52010 ReactUpdates.batchedUpdates(runEventInBatch, event); 52011} 52012 52013function runEventInBatch(event) { 52014 EventPluginHub.enqueueEvents(event); 52015 EventPluginHub.processEventQueue(false); 52016} 52017 52018function startWatchingForChangeEventIE8(target, targetInst) { 52019 activeElement = target; 52020 activeElementInst = targetInst; 52021 activeElement.attachEvent('onchange', manualDispatchChangeEvent); 52022} 52023 52024function stopWatchingForChangeEventIE8() { 52025 if (!activeElement) { 52026 return; 52027 } 52028 activeElement.detachEvent('onchange', manualDispatchChangeEvent); 52029 activeElement = null; 52030 activeElementInst = null; 52031} 52032 52033function getInstIfValueChanged(targetInst, nativeEvent) { 52034 var updated = inputValueTracking.updateValueIfChanged(targetInst); 52035 var simulated = nativeEvent.simulated === true && ChangeEventPlugin._allowSimulatedPassThrough; 52036 52037 if (updated || simulated) { 52038 return targetInst; 52039 } 52040} 52041 52042function getTargetInstForChangeEvent(topLevelType, targetInst) { 52043 if (topLevelType === 'topChange') { 52044 return targetInst; 52045 } 52046} 52047 52048function handleEventsForChangeEventIE8(topLevelType, target, targetInst) { 52049 if (topLevelType === 'topFocus') { 52050 // stopWatching() should be a noop here but we call it just in case we 52051 // missed a blur event somehow. 52052 stopWatchingForChangeEventIE8(); 52053 startWatchingForChangeEventIE8(target, targetInst); 52054 } else if (topLevelType === 'topBlur') { 52055 stopWatchingForChangeEventIE8(); 52056 } 52057} 52058 52059/** 52060 * SECTION: handle `input` event 52061 */ 52062var isInputEventSupported = false;
52063if (ExecutionEnvironment.canUseDOM) { 52064 // IE9 claims to support the input event but fails to trigger it when 52065 // deleting text, so we ignore its input events. 52066 52067 isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9); 52068} 52069 52070/** 52071 * (For IE <=9) Starts tracking propertychange events on the passed-in element 52072 * and override the value property so that we can distinguish user events from 52073 * value changes in JS. 52074 */ 52075function startWatchingForValueChange(target, targetInst) { 52076 activeElement = target; 52077 activeElementInst = targetInst; 52078 activeElement.attachEvent('onpropertychange', handlePropertyChange); 52079} 52080 52081/** 52082 * (For IE <=9) Removes the event listeners from the currently-tracked element, 52083 * if any exists. 52084 */ 52085function stopWatchingForValueChange() { 52086 if (!activeElement) { 52087 return; 52088 } 52089 activeElement.detachEvent('onpropertychange', handlePropertyChange); 52090 52091 activeElement = null; 52092 activeElementInst = null; 52093} 52094 52095/** 52096 * (For IE <=9) Handles a propertychange event, sending a `change` event if 52097 * the value of the active element has changed. 52098 */ 52099function handlePropertyChange(nativeEvent) { 52100 if (nativeEvent.propertyName !== 'value') { 52101 return; 52102 } 52103 if (getInstIfValueChanged(activeElementInst, nativeEvent)) { 52104 manualDispatchChangeEvent(nativeEvent); 52105 } 52106} 52107 52108function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) { 52109 if (topLevelType === 'topFocus') { 52110 // In IE8, we can capture almost all .value changes by adding a 52111 // propertychange handler and looking for events with propertyName 52112 // equal to 'value' 52113 // In IE9, propertychange fires for most input events but is buggy and 52114 // doesn't fire when text is deleted, but conveniently, selectionchange 52115 // appears to fire in all of the remaining cases so we catch those and 52116 // forward the event if the value has changed 52117 // In either case, we don't want to call the event handler if the value 52118 // is changed from JS so we redefine a setter for `.value` that updates 52119 // our activeElementValue variable, allowing us to ignore those changes 52120 // 52121 // stopWatching() should be a noop here but we call it just in case we 52122 // missed a blur event somehow. 52123 stopWatchingForValueChange(); 52124 startWatchingForValueChange(target, targetInst); 52125 } else if (topLevelType === 'topBlur') { 52126 stopWatchingForValueChange(); 52127 } 52128} 52129 52130// For IE8 and IE9. 52131function getTargetInstForInputEventPolyfill(topLevelType, targetInst, nativeEvent) { 52132 if (topLevelType === 'topSelectionChange' || topLevelType === 'topKeyUp' || topLevelType === 'topKeyDown') { 52133 // On the selectionchange event, the target is just document which isn't 52134 // helpful for us so just check activeElement instead. 52135 // 52136 // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire 52137 // propertychange on the first input event after setting `value` from a 52138 // script and fires only keydown, keypress, keyup. Catching keyup usually 52139 // gets it and catching keydown lets us fire an event for the first 52140 // keystroke if user does a key repeat (it'll be a little delayed: right 52141 // before the second keystroke). Other input methods (e.g., paste) seem to 52142 // fire selectionchange normally. 52143 return getInstIfValueChanged(activeElementInst, nativeEvent); 52144 } 52145} 52146 52147/** 52148 * SECTION: handle `click` event 52149 */ 52150function shouldUseClickEvent(elem) { 52151 // Use the `click` event to detect changes to checkbox and radio inputs. 52152 // This approach works across all browsers, whereas `change` does not fire 52153 // until `blur` in IE8. 52154 var nodeName = elem.nodeName; 52155 return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio'); 52156} 52157 52158function getTargetInstForClickEvent(topLevelType, targetInst, nativeEvent) { 52159 if (topLevelType === 'topClick') { 52160 return getInstIfValueChanged(targetInst, nativeEvent); 52161 } 52162} 52163 52164function getTargetInstForInputOrChangeEvent(topLevelType, targetInst, nativeEvent) { 52165 if (topLevelType === 'topInput' || topLevelType === 'topChange') { 52166 return getInstIfValueChanged(targetInst, nativeEvent); 52167 } 52168} 52169 52170function handleControlledInputBlur(inst, node) { 52171 // TODO: In IE, inst is occasionally null. Why? 52172 if (inst == null) { 52173 return; 52174 } 52175 52176 // Fiber and ReactDOM keep wrapper state in separate places 52177 var state = inst._wrapperState || node._wrapperState; 52178 52179 if (!state || !state.controlled || node.type !== 'number') { 52180 return; 52181 } 52182 52183 // If controlled, assign the value attribute to the current value on blur 52184 var value = '' + node.value; 52185 if (node.getAttribute('value') !== value) { 52186 node.setAttribute('value', value); 52187 } 52188} 52189 52190/** 52191 * This plugin creates an `onChange` event that normalizes change events 52192 * across form elements. This event fires at a time when it's possible to 52193 * change the element's value without seeing a flicker. 52194 * 52195 * Supported elements are: 52196 * - input (see `isTextInputElement`) 52197 * - textarea 52198 * - select 52199 */ 52200var ChangeEventPlugin = { 52201 eventTypes: eventTypes, 52202 52203 _allowSimulatedPassThrough: true, 52204 _isInputEventSupported: isInputEventSupported, 52205 52206 extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) { 52207 var targetNode = targetInst ? ReactDOMComponentTree.getNodeFromInstance(targetInst) : window; 52208 52209 var getTargetInstFunc, handleEventFunc; 52210 if (shouldUseChangeEvent(targetNode)) { 52211 if (doesChangeEventBubble) { 52212 getTargetInstFunc = getTargetInstForChangeEvent; 52213 } else { 52214 handleEventFunc = handleEventsForChangeEventIE8; 52215 } 52216 } else if (isTextInputElement(targetNode)) { 52217 if (isInputEventSupported) { 52218 getTargetInstFunc = getTargetInstForInputOrChangeEvent; 52219 } else { 52220 getTargetInstFunc = getTargetInstForInputEventPolyfill; 52221 handleEventFunc = handleEventsForInputEventPolyfill; 52222 } 52223 } else if (shouldUseClickEvent(targetNode)) { 52224 getTargetInstFunc = getTargetInstForClickEvent; 52225 } 52226 52227 if (getTargetInstFunc) { 52228 var inst = getTargetInstFunc(topLevelType, targetInst, nativeEvent); 52229 if (inst) { 52230 var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget); 52231 return event; 52232 } 52233 } 52234 52235 if (handleEventFunc) { 52236 handleEventFunc(topLevelType, targetNode, targetInst); 52237 } 52238 52239 // When blurring, set the value attribute for number inputs 52240 if (topLevelType === 'topBlur') { 52241 handleControlledInputBlur(targetInst, targetNode); 52242 } 52243 } 52244}; 52245 52246module.exports = ChangeEventPlugin; 52247 52248/***/ }), 52249/* 430 */ 52250/***/ (function(module, exports, __webpack_require__) { 52251 52252"use strict"; 52253/** 52254 * Copyright (c) 2013-present, Facebook, Inc. 52255 * 52256 * This source code is licensed under the MIT license found in the 52257 * LICENSE file in the root directory of this source tree. 52258 * 52259 * 52260 */ 52261 52262 52263 52264var ReactOwner = __webpack_require__(431); 52265 52266var ReactRef = {}; 52267 52268function attachRef(ref, component, owner) { 52269 if (typeof ref === 'function') { 52270 ref(component.getPublicInstance()); 52271 } else { 52272 // Legacy ref 52273 ReactOwner.addComponentAsRefTo(component, ref, owner); 52274 } 52275} 52276 52277function detachRef(ref, component, owner) { 52278 if (typeof ref === 'function') { 52279 ref(null); 52280 } else { 52281 // Legacy ref 52282 ReactOwner.removeComponentAsRefFrom(component, ref, owner); 52283 } 52284} 52285 52286ReactRef.attachRefs = function (instance, element) { 52287 if (element === null || typeof element !== 'object') { 52288 return; 52289 } 52290 var ref = element.ref; 52291 if (ref != null) { 52292 attachRef(ref, instance, element._owner); 52293 } 52294}; 52295 52296ReactRef.shouldUpdateRefs = function (prevElement, nextElement) { 52297 // If either the owner or a `ref` has changed, make sure the newest owner 52298 // has stored a reference to `this`, and the previous owner (if different) 52299 // has forgotten the reference to `this`. We use the element instead 52300 // of the public this.props because the post processing cannot determine 52301 // a ref. The ref conceptually lives on the element. 52302 52303 // TODO: Should this even be possible? The owner cannot change because 52304 // it's forbidden by shouldUpdateReactComponent. The ref can change 52305 // if you swap the keys of but not the refs. Reconsider where this check 52306 // is made. It probably belongs where the key checking and 52307 // instantiateReactComponent is done. 52308 52309 var prevRef = null; 52310 var prevOwner = null; 52311 if (prevElement !== null && typeof prevElement === 'object') { 52312 prevRef = prevElement.ref; 52313 prevOwner = prevElement._owner; 52314 } 52315 52316 var nextRef = null; 52317 var nextOwner = null; 52318 if (nextElement !== null && typeof nextElement === 'object') { 52319 nextRef = nextElement.ref; 52320 nextOwner = nextElement._owner; 52321 } 52322 52323 return prevRef !== nextRef || 52324 // If owner changes but we have an unchanged function ref, don't update refs 52325 typeof nextRef === 'string' && nextOwner !== prevOwner; 52326}; 52327 52328ReactRef.detachRefs = function (instance, element) { 52329 if (element === null || typeof element !== 'object') { 52330 return; 52331 } 52332 var ref = element.ref; 52333 if (ref != null) { 52334 detachRef(ref, instance, element._owner); 52335 } 52336}; 52337 52338module.exports = ReactRef; 52339 52340/***/ }), 52341/* 431 */ 52342/***/ (function(module, exports, __webpack_require__) { 52343 52344"use strict"; 52345/** 52346 * Copyright (c) 2013-present, Facebook, Inc. 52347 * 52348 * This source code is licensed under the MIT license found in the 52349 * LICENSE file in the root directory of this source tree. 52350 * 52351 * 52352 */ 52353 52354 52355 52356var _prodInvariant = __webpack_require__(12); 52357 52358var invariant = __webpack_require__(10); 52359 52360/** 52361 * @param {?object} object 52362 * @return {boolean} True if `object` is a valid owner. 52363 * @final 52364 */ 52365function isValidOwner(object) { 52366 return !!(object && typeof object.attachRef === 'function' && typeof object.detachRef === 'function'); 52367} 52368 52369/** 52370 * ReactOwners are capable of storing references to owned components. 52371 * 52372 * All components are capable of //being// referenced by owner components, but 52373 * only ReactOwner components are capable of //referencing// owned components. 52374 * The named reference is known as a "ref". 52375 * 52376 * Refs are available when mounted and updated during reconciliation. 52377 * 52378 * var MyComponent = React.createClass({ 52379 * render: function() { 52380 * return ( 52381 * <div onClick={this.handleClick}> 52382 * <CustomComponent ref="custom" /> 52383 * </div> 52384 * ); 52385 * }, 52386 * handleClick: function() { 52387 * this.refs.custom.handleClick(); 52388 * }, 52389 * componentDidMount: function() { 52390 * this.refs.custom.initialize(); 52391 * } 52392 * }); 52393 * 52394 * Refs should rarely be used. When refs are used, they should only be done to 52395 * control data that is not handled by React's data flow. 52396 * 52397 * @class ReactOwner 52398 */ 52399var ReactOwner = { 52400 /** 52401 * Adds a component by ref to an owner component. 52402 * 52403 * @param {ReactComponent} component Component to reference. 52404 * @param {string} ref Name by which to refer to the component. 52405 * @param {ReactOwner} owner Component on which to record the ref. 52406 * @final 52407 * @internal 52408 */ 52409 addComponentAsRefTo: function (component, ref, owner) { 52410 !isValidOwner(owner) ? true ? invariant(false, 'addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('119') : void 0; 52411 owner.attachRef(ref, component); 52412 }, 52413 52414 /** 52415 * Removes a component by ref from an owner component. 52416 * 52417 * @param {ReactComponent} component Component to dereference. 52418 * @param {string} ref Name of the ref to remove. 52419 * @param {ReactOwner} owner Component on which the ref is recorded. 52420 * @final 52421 * @internal 52422 */ 52423 removeComponentAsRefFrom: function (component, ref, owner) { 52424 !isValidOwner(owner) ? true ? invariant(false, 'removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('12
524240') : void 0; 52425 var ownerPublicInstance = owner.getPublicInstance(); 52426 // Check that `component`'s owner is still alive and that `component` is still the current ref 52427 // because we do not want to detach the ref if another component stole it. 52428 if (ownerPublicInstance && ownerPublicInstance.refs[ref] === component.getPublicInstance()) { 52429 owner.detachRef(ref); 52430 } 52431 } 52432}; 52433 52434module.exports = ReactOwner; 52435 52436/***/ }), 52437/* 432 */ 52438/***/ (function(module, exports, __webpack_require__) { 52439 52440"use strict"; 52441/** 52442 * Copyright (c) 2016-present, Facebook, Inc. 52443 * 52444 * This source code is licensed under the MIT license found in the 52445 * LICENSE file in the root directory of this source tree. 52446 * 52447 * 52448 */ 52449 52450 52451 52452var ReactInvalidSetStateWarningHook = __webpack_require__(433); 52453var ReactHostOperationHistoryHook = __webpack_require__(434); 52454var ReactComponentTreeHook = __webpack_require__(23); 52455var ExecutionEnvironment = __webpack_require__(18); 52456 52457var performanceNow = __webpack_require__(435); 52458var warning = __webpack_require__(11); 52459 52460var hooks = []; 52461var didHookThrowForEvent = {}; 52462 52463function callHook(event, fn, context, arg1, arg2, arg3, arg4, arg5) { 52464 try { 52465 fn.call(context, arg1, arg2, arg3, arg4, arg5); 52466 } catch (e) { 52467 true ? warning(didHookThrowForEvent[event], 'Exception thrown by hook while handling %s: %s', event, e + '\n' + e.stack) : void 0; 52468 didHookThrowForEvent[event] = true; 52469 } 52470} 52471 52472function emitEvent(event, arg1, arg2, arg3, arg4, arg5) { 52473 for (var i = 0; i < hooks.length; i++) { 52474 var hook = hooks[i]; 52475 var fn = hook[event]; 52476 if (fn) { 52477 callHook(event, fn, hook, arg1, arg2, arg3, arg4, arg5); 52478 } 52479 } 52480} 52481 52482var isProfiling = false; 52483var flushHistory = []; 52484var lifeCycleTimerStack = []; 52485var currentFlushNesting = 0; 52486var currentFlushMeasurements = []; 52487var currentFlushStartTime = 0; 52488var currentTimerDebugID = null; 52489var currentTimerStartTime = 0; 52490var currentTimerNestedFlushDuration = 0; 52491var currentTimerType = null; 52492 52493var lifeCycleTimerHasWarned = false; 52494 52495function clearHistory() { 52496 ReactComponentTreeHook.purgeUnmountedComponents(); 52497 ReactHostOperationHistoryHook.clearHistory(); 52498} 52499 52500function getTreeSnapshot(registeredIDs) { 52501 return registeredIDs.reduce(function (tree, id) { 52502 var ownerID = ReactComponentTreeHook.getOwnerID(id); 52503 var parentID = ReactComponentTreeHook.getParentID(id); 52504 tree[id] = { 52505 displayName: ReactComponentTreeHook.getDisplayName(id), 52506 text: ReactComponentTreeHook.getText(id), 52507 updateCount: ReactComponentTreeHook.getUpdateCount(id), 52508 childIDs: ReactComponentTreeHook.getChildIDs(id), 52509 // Text nodes don't have owners but this is close enough. 52510 ownerID: ownerID || parentID && ReactComponentTreeHook.getOwnerID(parentID) || 0, 52511 parentID: parentID 52512 }; 52513 return tree; 52514 }, {}); 52515} 52516 52517function resetMeasurements() { 52518 var previousStartTime = currentFlushStartTime; 52519 var previousMeasurements = currentFlushMeasurements; 52520 var previousOperations = ReactHostOperationHistoryHook.getHistory(); 52521 52522 if (currentFlushNesting === 0) { 52523 currentFlushStartTime = 0; 52524 currentFlushMeasurements = []; 52525 clearHistory(); 52526 return; 52527 } 52528 52529 if (previousMeasurements.length || previousOperations.length) { 52530 var registeredIDs = ReactComponentTreeHook.getRegisteredIDs(); 52531 flushHistory.push({ 52532 duration: performanceNow() - previousStartTime, 52533 measurements: previousMeasurements || [], 52534 operations: previousOperations || [], 52535 treeSnapshot: getTreeSnapshot(registeredIDs) 52536 }); 52537 } 52538 52539 clearHistory(); 52540 currentFlushStartTime = performanceNow(); 52541 currentFlushMeasurements = []; 52542} 52543 52544function checkDebugID(debugID) { 52545 var allowRoot = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; 52546 52547 if (allowRoot && debugID === 0) { 52548 return; 52549 } 52550 if (!debugID) { 52551 true ? warning(false, 'ReactDebugTool: debugID may not be empty.') : void 0; 52552 } 52553} 52554 52555function beginLifeCycleTimer(debugID, timerType) { 52556 if (currentFlushNesting === 0) { 52557 return; 52558 } 52559 if (currentTimerType && !lifeCycleTimerHasWarned) { 52560 true ? warning(false, 'There is an internal error in the React performance measurement code. ' + 'Did not expect %s timer to start while %s timer is still in ' + 'progress for %s instance.', timerType, currentTimerType || 'no', debugID === currentTimerDebugID ? 'the same' : 'another') : void 0; 52561 lifeCycleTimerHasWarned = true; 52562 } 52563 currentTimerStartTime = performanceNow(); 52564 currentTimerNestedFlushDuration = 0; 52565 currentTimerDebugID = debugID; 52566 currentTimerType = timerType; 52567} 52568 52569function endLifeCycleTimer(debugID, timerType) { 52570 if (currentFlushNesting === 0) { 52571 return; 52572 } 52573 if (currentTimerType !== timerType && !lifeCycleTimerHasWarned) { 52574 true ? warning(false, 'There is an internal error in the React performance measurement code. ' + 'We did not expect %s timer to stop while %s timer is still in ' + 'progress for %s instance. Please report this as a bug in React.', timerType, currentTimerType || 'no', debugID === currentTimerDebugID ? 'the same' : 'another') : void 0; 52575 lifeCycleTimerHasWarned = true; 52576 } 52577 if (isProfiling) { 52578 currentFlushMeasurements.push({ 52579 timerType: timerType, 52580 instanceID: debugID, 52581 duration: performanceNow() - currentTimerStartTime - currentTimerNestedFlushDuration 52582 }); 52583 } 52584 currentTimerStartTime = 0; 52585 currentTimerNestedFlushDuration = 0; 52586 currentTimerDebugID = null; 52587 currentTimerType = null; 52588} 52589 52590function pauseCurrentLifeCycleTimer() { 52591 var currentTimer = { 52592 startTime: currentTimerStartTime, 52593 nestedFlushStartTime: performanceNow(), 52594 debugID: currentTimerDebugID, 52595 timerType: currentTimerType 52596 }; 52597 lifeCycleTimerStack.push(currentTimer); 52598 currentTimerStartTime = 0; 52599 currentTimerNestedFlushDuration = 0; 52600 currentTimerDebugID = null; 52601 currentTimerType = null; 52602} 52603 52604function resumeCurrentLifeCycleTimer() { 52605 var _lifeCycleTimerStack$ = lifeCycleTimerStack.pop(), 52606 startTime = _lifeCycleTimerStack$.startTime, 52607 nestedFlushStartTime = _lifeCycleTimerStack$.nestedFlushStartTime, 52608 debugID = _lifeCycleTimerStack$.debugID,
52609 timerType = _lifeCycleTimerStack$.timerType; 52610 52611 var nestedFlushDuration = performanceNow() - nestedFlushStartTime; 52612 currentTimerStartTime = startTime; 52613 currentTimerNestedFlushDuration += nestedFlushDuration; 52614 currentTimerDebugID = debugID; 52615 currentTimerType = timerType; 52616} 52617 52618var lastMarkTimeStamp = 0; 52619var canUsePerformanceMeasure = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function'; 52620 52621function shouldMark(debugID) { 52622 if (!isProfiling || !canUsePerformanceMeasure) { 52623 return false; 52624 } 52625 var element = ReactComponentTreeHook.getElement(debugID); 52626 if (element == null || typeof element !== 'object') { 52627 return false; 52628 } 52629 var isHostElement = typeof element.type === 'string'; 52630 if (isHostElement) { 52631 return false; 52632 } 52633 return true; 52634} 52635 52636function markBegin(debugID, markType) { 52637 if (!shouldMark(debugID)) { 52638 return; 52639 } 52640 52641 var markName = debugID + '::' + markType; 52642 lastMarkTimeStamp = performanceNow(); 52643 performance.mark(markName); 52644} 52645 52646function markEnd(debugID, markType) { 52647 if (!shouldMark(debugID)) { 52648 return; 52649 } 52650 52651 var markName = debugID + '::' + markType; 52652 var displayName = ReactComponentTreeHook.getDisplayName(debugID) || 'Unknown'; 52653 52654 // Chrome has an issue of dropping markers recorded too fast: 52655 // https://bugs.chromium.org/p/chromium/issues/detail?id=640652 52656 // To work around this, we will not report very small measurements. 52657 // I determined the magic number by tweaking it back and forth. 52658 // 0.05ms was enough to prevent the issue, but I set it to 0.1ms to be safe. 52659 // When the bug is fixed, we can `measure()` unconditionally if we want to. 52660 var timeStamp = performanceNow(); 52661 if (timeStamp - lastMarkTimeStamp > 0.1) { 52662 var measurementName = displayName + ' [' + markType + ']'; 52663 performance.measure(measurementName, markName); 52664 } 52665 52666 performance.clearMarks(markName); 52667 if (measurementName) { 52668 performance.clearMeasures(measurementName); 52669 } 52670} 52671 52672var ReactDebugTool = { 52673 addHook: function (hook) { 52674 hooks.push(hook); 52675 }, 52676 removeHook: function (hook) { 52677 for (var i = 0; i < hooks.length; i++) { 52678 if (hooks[i] === hook) { 52679 hooks.splice(i, 1); 52680 i--; 52681 } 52682 } 52683 }, 52684 isProfiling: function () { 52685 return isProfiling; 52686 }, 52687 beginProfiling: function () { 52688 if (isProfiling) { 52689 return; 52690 } 52691 52692 isProfiling = true; 52693 flushHistory.length = 0; 52694 resetMeasurements(); 52695 ReactDebugTool.addHook(ReactHostOperationHistoryHook); 52696 }, 52697 endProfiling: function () { 52698 if (!isProfiling) { 52699 return; 52700 } 52701 52702 isProfiling = false; 52703 resetMeasurements(); 52704 ReactDebugTool.removeHook(ReactHostOperationHistoryHook); 52705 }, 52706 getFlushHistory: function () { 52707 return flushHistory; 52708 }, 52709 onBeginFlush: function () { 52710 currentFlushNesting++; 52711 resetMeasurements(); 52712 pauseCurrentLifeCycleTimer(); 52713 emitEvent('onBeginFlush'); 52714 }, 52715 onEndFlush: function () { 52716 resetMeasurements(); 52717 currentFlushNesting--; 52718 resumeCurrentLifeCycleTimer(); 52719 emitEvent('onEndFlush'); 52720 }, 52721 onBeginLifeCycleTimer: function (debugID, timerType) { 52722 checkDebugID(debugID); 52723 emitEvent('onBeginLifeCycleTimer', debugID, timerType); 52724 markBegin(debugID, timerType); 52725 beginLifeCycleTimer(debugID, timerType); 52726 }, 52727 onEndLifeCycleTimer: function (debugID, timerType) { 52728 checkDebugID(debugID); 52729 endLifeCycleTimer(debugID, timerType); 52730 markEnd(debugID, timerType); 52731 emitEvent('onEndLifeCycleTimer', debugID, timerType); 52732 }, 52733 onBeginProcessingChildContext: function () { 52734 emitEvent('onBeginProcessingChildContext'); 52735 }, 52736 onEndProcessingChildContext: function () { 52737 emitEvent('onEndProcessingChildContext'); 52738 }, 52739 onHostOperation: function (operation) { 52740 checkDebugID(operation.instanceID); 52741 emitEvent('onHostOperation', operation); 52742 }, 52743 onSetState: function () { 52744 emitEvent('onSetState'); 52745 }, 52746 onSetChildren: function (debugID, childDebugIDs) { 52747 checkDebugID(debugID); 52748 childDebugIDs.forEach(checkDebugID); 52749 emitEvent('onSetChildren', debugID, childDebugIDs); 52750 }, 52751 onBeforeMountComponent: function (debugID, element, parentDebugID) { 52752 checkDebugID(debugID); 52753 checkDebugID(parentDebugID, true); 52754 emitEvent('onBeforeMountComponent', debugID, element, parentDebugID); 52755 markBegin(debugID, 'mount'); 52756 }, 52757 onMountComponent: function (debugID) { 52758 checkDebugID(debugID); 52759 markEnd(debugID, 'mount'); 52760 emitEvent('onMountComponent', debugID); 52761 }, 52762 onBeforeUpdateComponent: function (debugID, element) { 52763 checkDebugID(debugID); 52764 emitEvent('onBeforeUpdateComponent', debugID, element); 52765 markBegin(debugID, 'update'); 52766 }, 52767 onUpdateComponent: function (debugID) { 52768 checkDebugID(debugID); 52769 markEnd(debugID, 'update'); 52770 emitEvent('onUpdateComponent', debugID); 52771 }, 52772 onBeforeUnmountComponent: function (debugID) { 52773 checkDebugID(debugID); 52774 emitEvent('onBeforeUnmountComponent', debugID); 52775 markBegin(debugID, 'unmount'); 52776 }, 52777 onUnmountComponent: function (debugID) { 52778 checkDebugID(debugID); 52779 markEnd(debugID, 'unmount'); 52780 emitEvent('onUnmountComponent', debugID); 52781 }, 52782 onTestEvent: function () { 52783 emitEvent('onTestEvent'); 52784 } 52785}; 52786 52787// TODO remove these when RN/www gets updated 52788ReactDebugTool.addDevtool = ReactDebugTool.addHook; 52789ReactDebugTool.removeDevtool = ReactDebugTool.removeHook; 52790 52791ReactDebugTool.addHook(ReactInvalidSetStateWarningHook); 52792ReactDebugTool.addHook(ReactComponentTreeHook); 52793var url = ExecutionEnvironment.canUseDOM && window.location.href || ''; 52794if (/[?&]react_perf\b/.test(url)) { 52795 ReactDebugTool.beginProfiling(); 52796} 52797 52798module.exports = ReactDebugTool; 52799 52800/***/ }), 52801/* 433 */ 52802/***/ (function(module, exports, __webpack_require__) { 52803 52804"use strict"; 52805/** 52806 * Copyright (c) 2016-present, Facebook, Inc. 52807 * 52808 * This source code is licensed under the MIT license found in the 52809 * LICENSE file in the root directory of this source tree. 52810 * 52811 * 52812 */ 52813 52814 52815 52816var warning = __webpack_require__(11); 52817 52818if (true) { 52819 var processingChildContext = false;
52820 52821 var warnInvalidSetState = function () { 52822 true ? warning(!processingChildContext, 'setState(...): Cannot call setState() inside getChildContext()') : void 0; 52823 }; 52824} 52825 52826var ReactInvalidSetStateWarningHook = { 52827 onBeginProcessingChildContext: function () { 52828 processingChildContext = true; 52829 }, 52830 onEndProcessingChildContext: function () { 52831 processingChildContext = false; 52832 }, 52833 onSetState: function () { 52834 warnInvalidSetState(); 52835 } 52836}; 52837 52838module.exports = ReactInvalidSetStateWarningHook; 52839 52840/***/ }), 52841/* 434 */ 52842/***/ (function(module, exports, __webpack_require__) { 52843 52844"use strict"; 52845/** 52846 * Copyright (c) 2016-present, Facebook, Inc. 52847 * 52848 * This source code is licensed under the MIT license found in the 52849 * LICENSE file in the root directory of this source tree. 52850 * 52851 * 52852 */ 52853 52854 52855 52856var history = []; 52857 52858var ReactHostOperationHistoryHook = { 52859 onHostOperation: function (operation) { 52860 history.push(operation); 52861 }, 52862 clearHistory: function () { 52863 if (ReactHostOperationHistoryHook._preventClearing) { 52864 // Should only be used for tests. 52865 return; 52866 } 52867 52868 history = []; 52869 }, 52870 getHistory: function () { 52871 return history; 52872 } 52873}; 52874 52875module.exports = ReactHostOperationHistoryHook; 52876 52877/***/ }), 52878/* 435 */ 52879/***/ (function(module, exports, __webpack_require__) { 52880 52881"use strict"; 52882 52883 52884/** 52885 * Copyright (c) 2013-present, Facebook, Inc. 52886 * 52887 * This source code is licensed under the MIT license found in the 52888 * LICENSE file in the root directory of this source tree. 52889 * 52890 * @typechecks 52891 */ 52892 52893var performance = __webpack_require__(436); 52894 52895var performanceNow; 52896 52897/** 52898 * Detect if we can use `window.performance.now()` and gracefully fallback to 52899 * `Date.now()` if it doesn't exist. We need to support Firefox < 15 for now 52900 * because of Facebook's testing infrastructure. 52901 */ 52902if (performance.now) { 52903 performanceNow = function performanceNow() { 52904 return performance.now(); 52905 }; 52906} else { 52907 performanceNow = function performanceNow() { 52908 return Date.now(); 52909 }; 52910} 52911 52912module.exports = performanceNow; 52913 52914/***/ }), 52915/* 436 */ 52916/***/ (function(module, exports, __webpack_require__) { 52917 52918"use strict"; 52919/** 52920 * Copyright (c) 2013-present, Facebook, Inc. 52921 * 52922 * This source code is licensed under the MIT license found in the 52923 * LICENSE file in the root directory of this source tree. 52924 * 52925 * @typechecks 52926 */ 52927 52928 52929 52930var ExecutionEnvironment = __webpack_require__(18); 52931 52932var performance; 52933 52934if (ExecutionEnvironment.canUseDOM) { 52935 performance = window.performance || window.msPerformance || window.webkitPerformance; 52936} 52937 52938module.exports = performance || {}; 52939 52940/***/ }), 52941/* 437 */ 52942/***/ (function(module, exports, __webpack_require__) { 52943 52944"use strict"; 52945/** 52946 * Copyright (c) 2013-present, Facebook, Inc. 52947 * 52948 * This source code is licensed under the MIT license found in the 52949 * LICENSE file in the root directory of this source tree. 52950 * 52951 */ 52952 52953 52954 52955/** 52956 * Module that is injectable into `EventPluginHub`, that specifies a 52957 * deterministic ordering of `EventPlugin`s. A convenient way to reason about 52958 * plugins, without having to package every one of them. This is better than 52959 * having plugins be ordered in the same order that they are injected because 52960 * that ordering would be influenced by the packaging order. 52961 * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that 52962 * preventing default on events is convenient in `SimpleEventPlugin` handlers. 52963 */ 52964 52965var DefaultEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'TapEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin']; 52966 52967module.exports = DefaultEventPluginOrder; 52968 52969/***/ }), 52970/* 438 */ 52971/***/ (function(module, exports, __webpack_require__) { 52972 52973"use strict"; 52974/** 52975 * Copyright (c) 2013-present, Facebook, Inc. 52976 * 52977 * This source code is licensed under the MIT license found in the 52978 * LICENSE file in the root directory of this source tree. 52979 * 52980 */ 52981 52982 52983 52984var EventPropagators = __webpack_require__(50); 52985var ReactDOMComponentTree = __webpack_require__(15); 52986var SyntheticMouseEvent = __webpack_require__(81); 52987 52988var eventTypes = { 52989 mouseEnter: { 52990 registrationName: 'onMouseEnter', 52991 dependencies: ['topMouseOut', 'topMouseOver'] 52992 }, 52993 mouseLeave: { 52994 registrationName: 'onMouseLeave', 52995 dependencies: ['topMouseOut', 'topMouseOver'] 52996 } 52997}; 52998 52999var EnterLeaveEventPlugin = { 53000 eventTypes: eventTypes, 53001 53002 /** 53003 * For almost every interaction we care about, there will be both a top-level 53004 * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that 53005 * we do not extract duplicate events. However, moving the mouse into the 53006 * browser from outside will not fire a `mouseout` event. In this case, we use 53007 * the `mouseover` top-level event. 53008 */ 53009 extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) { 53010 if (topLevelType === 'topMouseOver' && (nativeEvent.relatedTarget || nativeEvent.fromElement)) { 53011 return null; 53012 } 53013 if (topLevelType !== 'topMouseOut' && topLevelType !== 'topMouseOver') { 53014 // Must not be a mouse in or mouse out - ignoring. 53015 return null; 53016 } 53017 53018 var win; 53019 if (nativeEventTarget.window === nativeEventTarget) { 53020 // `nativeEventTarget` is probably a window object. 53021 win = nativeEventTarget; 53022 } else { 53023 // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8. 53024 var doc = nativeEventTarget.ownerDocument; 53025 if (doc) { 53026 win = doc.defaultView || doc.parentWindow; 53027 } else { 53028 win = window; 53029 } 53030 } 53031 53032 var from; 53033 var to; 53034 if (topLevelType === 'topMouseOut') { 53035 from = targetInst; 53036 var related = nativeEvent.relatedTarget || nativeEvent.toElement; 53037 to = related ? ReactDOMComponentTree.getClosestInstanceFromNode(related) : null; 53038 } else { 53039 // Moving to a node from outside the window. 53040 from = null; 53041 to = targetInst; 53042 } 53043 53044 if (from === to) { 53045 // Nothing pertains to our managed components. 53046 return null; 53047 } 53048 53049 var fromNode = from == null ? win : ReactDOMComponentTree.getNodeFromInstance(from); 53050 var toNode = to == null ? win : ReactDOMComponentTree.getNodeFromInstance(to); 53051 53052 var leave = SyntheticMouseEvent.getPooled(eventTypes.mouseLeave, from, nativeEvent, nativeEventTarget); 53053 leave.type = 'mouseleave'; 53054 leave.target = fromNode; 53055 leave.relatedTarget = toNode; 53056 53057 var enter = SyntheticMouseEvent.getPooled(eventTypes.mouseEnter, to, nativeEvent, nativeEventTarget); 53058 enter.type = 'mouseenter'; 53059 enter.target = toNode; 53060 enter.relatedTarget = fromNode; 53061 53062 EventPropagators.accumulateEnterLeaveDispatches(leave, enter, from, to); 53063 53064 return [leave, enter]; 53065 } 53066}; 53067 53068module.exports = EnterLeaveEventPlugin; 53069 53070/***/ }), 53071/* 439 */ 53072/***/ (function(module, exports, __webpack_require__) { 53073 53074"use strict"; 53075/** 53076 * Copyright (c) 2013-present, Facebook, Inc. 53077 * 53078 * This source code is licensed under the MIT license found in the 53079 * LICENSE file in the root directory of this source tree. 53080 * 53081 */ 53082 53083 53084 53085var DOMProperty = __webpack_require__(36); 53086 53087var MUST_USE_PROPERTY = DOMProperty.injection.MUST_USE_PROPERTY; 53088var HAS_BOOLEAN_VALUE = DOMProperty.injection.HAS_BOOLEAN_VALUE; 53089var HAS_NUMERIC_VALUE = DOMProperty.injection.HAS_NUMERIC_VALUE; 53090var HAS_POSITIVE_NUMERIC_VALUE = DOMProperty.injection.HAS_POSITIVE_NUMERIC_VALUE; 53091var HAS_OVERLOADED_BOOLEAN_VALUE = DOMProperty.injection.HAS_OVERLOADED_BOOLEAN_VALUE; 53092 53093var HTMLDOMPropertyConfig = { 53094 isCustomAttribute: RegExp.prototype.test.bind(new RegExp('^(data|aria)-[' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$')), 53095 Properties: { 53096 /** 53097 * Standard Properties 53098 */ 53099 accept: 0, 53100 acceptCharset: 0, 53101 accessKey: 0, 53102 action: 0, 53103 allowFullScreen: HAS_BOOLEAN_VALUE, 53104 allowTransparency: 0, 53105 alt: 0, 53106 // specifies target context for links with `preload` type 53107 as: 0, 53108 async: HAS_BOOLEAN_VALUE, 53109 autoComplete: 0, 53110 // autoFocus is polyfilled/normalized by AutoFocusUtils 53111 // autoFocus: HAS_BOOLEAN_VALUE, 53112 autoPlay: HAS_BOOLEAN_VALUE, 53113 capture: HAS_BOOLEAN_VALUE, 53114 cellPadding: 0, 53115 cellSpacing: 0, 53116 charSet: 0, 53117 challenge: 0, 53118 checked: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, 53119 cite: 0, 53120 classID: 0, 53121 className: 0, 53122 cols: HAS_POSITIVE_NUMERIC_VALUE, 53123 colSpan: 0, 53124 content: 0, 53125 contentEditable: 0, 53126 contextMenu: 0, 53127 controls: HAS_BOOLEAN_VALUE, 53128 controlsList: 0, 53129 coords: 0, 53130 crossOrigin: 0, 53131 data: 0, // For `<object />` acts as `src`. 53132 dateTime: 0, 53133 'default': HAS_BOOLEAN_VALUE, 53134 defer: HAS_BOOLEAN_VALUE, 53135 dir: 0, 53136 disabled: HAS_BOOLEAN_VALUE, 53137 download: HAS_OVERLOADED_BOOLEAN_VALUE, 53138 draggable: 0, 53139 encType: 0, 53140 form: 0, 53141 formAction: 0, 53142 formEncType: 0, 53143 formMethod: 0, 53144 formNoValidate: HAS_BOOLEAN_VALUE, 53145 formTarget: 0, 53146 frameBorder: 0, 53147 headers: 0, 53148 height: 0, 53149 hidden: HAS_BOOLEAN_VALUE, 53150 high: 0, 53151 href: 0, 53152 hrefLang: 0, 53153 htmlFor: 0, 53154 httpEquiv: 0, 53155 icon: 0, 53156 id: 0, 53157 inputMode: 0, 53158 integrity: 0, 53159 is: 0, 53160 keyParams: 0, 53161 keyType: 0, 53162 kind: 0, 53163 label: 0, 53164 lang: 0, 53165 list: 0, 53166 loop: HAS_BOOLEAN_VALUE, 53167 low: 0, 53168 manifest: 0, 53169 marginHeight: 0, 53170 marginWidth: 0, 53171 max: 0, 53172 maxLength: 0, 53173 media: 0, 53174 mediaGroup: 0, 53175 method: 0, 53176 min: 0, 53177 minLength: 0, 53178 // Caution; `option.selected` is not updated if `select.multiple` is
53179 // disabled with `removeAttribute`. 53180 multiple: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, 53181 muted: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, 53182 name: 0, 53183 nonce: 0, 53184 noValidate: HAS_BOOLEAN_VALUE, 53185 open: HAS_BOOLEAN_VALUE, 53186 optimum: 0, 53187 pattern: 0, 53188 placeholder: 0, 53189 playsInline: HAS_BOOLEAN_VALUE, 53190 poster: 0, 53191 preload: 0, 53192 profile: 0, 53193 radioGroup: 0, 53194 readOnly: HAS_BOOLEAN_VALUE, 53195 referrerPolicy: 0, 53196 rel: 0, 53197 required: HAS_BOOLEAN_VALUE, 53198 reversed: HAS_BOOLEAN_VALUE, 53199 role: 0, 53200 rows: HAS_POSITIVE_NUMERIC_VALUE, 53201 rowSpan: HAS_NUMERIC_VALUE, 53202 sandbox: 0, 53203 scope: 0, 53204 scoped: HAS_BOOLEAN_VALUE, 53205 scrolling: 0, 53206 seamless: HAS_BOOLEAN_VALUE, 53207 selected: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, 53208 shape: 0, 53209 size: HAS_POSITIVE_NUMERIC_VALUE, 53210 sizes: 0, 53211 span: HAS_POSITIVE_NUMERIC_VALUE, 53212 spellCheck: 0, 53213 src: 0, 53214 srcDoc: 0, 53215 srcLang: 0, 53216 srcSet: 0, 53217 start: HAS_NUMERIC_VALUE, 53218 step: 0, 53219 style: 0, 53220 summary: 0, 53221 tabIndex: 0, 53222 target: 0, 53223 title: 0, 53224 // Setting .type throws on non-<input> tags 53225 type: 0, 53226 useMap: 0, 53227 value: 0, 53228 width: 0, 53229 wmode: 0, 53230 wrap: 0, 53231 53232 /** 53233 * RDFa Properties 53234 */ 53235 about: 0, 53236 datatype: 0, 53237 inlist: 0, 53238 prefix: 0, 53239 // property is also supported for OpenGraph in meta tags. 53240 property: 0, 53241 resource: 0, 53242 'typeof': 0, 53243 vocab: 0, 53244 53245 /** 53246 * Non-standard Properties 53247 */ 53248 // autoCapitalize and autoCorrect are supported in Mobile Safari for 53249 // keyboard hints. 53250 autoCapitalize: 0, 53251 autoCorrect: 0, 53252 // autoSave allows WebKit/Blink to persist values of input fields on page reloads 53253 autoSave: 0, 53254 // color is for Safari mask-icon link 53255 color: 0, 53256 // itemProp, itemScope, itemType are for 53257 // Microdata support. See http://schema.org/docs/gs.html 53258 itemProp: 0, 53259 itemScope: HAS_BOOLEAN_VALUE, 53260 itemType: 0, 53261 // itemID and itemRef are for Microdata support as well but 53262 // only specified in the WHATWG spec document. See 53263 // https://html.spec.whatwg.org/multipage/microdata.html#microdata-dom-api 53264 itemID: 0, 53265 itemRef: 0, 53266 // results show looking glass icon and recent searches on input 53267 // search fields in WebKit/Blink 53268 results: 0, 53269 // IE-only attribute that specifies security restrictions on an iframe 53270 // as an alternative to the sandbox attribute on IE<10 53271 security: 0, 53272 // IE-only attribute that controls focus behavior 53273 unselectable: 0 53274 }, 53275 DOMAttributeNames: { 53276 acceptCharset: 'accept-charset', 53277 className: 'class', 53278 htmlFor: 'for', 53279 httpEquiv: 'http-equiv' 53280 }, 53281 DOMPropertyNames: {}, 53282 DOMMutationMethods: { 53283 value: function (node, value) { 53284 if (value == null) { 53285 return node.removeAttribute('value'); 53286 } 53287 53288 // Number inputs get special treatment due to some edge cases in 53289 // Chrome. Let everything else assign the value attribute as normal. 53290 // https://github.com/facebook/react/issues/7253#issuecomment-236074326 53291 if (node.type !== 'number' || node.hasAttribute('value') === false) { 53292 node.setAttribute('value', '' + value); 53293 } else if (node.validity && !node.validity.badInput && node.ownerDocument.activeElement !== node) { 53294 // Don't assign an attribute if validation reports bad 53295 // input. Chrome will clear the value. Additionally, don't 53296 // operate on inputs that have focus, otherwise Chrome might 53297 // strip off trailing decimal places and cause the user's 53298 // cursor position to jump to the beginning of the input. 53299 // 53300 // In ReactDOMInput, we have an onBlur event that will trigger 53301 // this function again when focus is lost. 53302 node.setAttribute('value', '' + value); 53303 } 53304 } 53305 } 53306}; 53307 53308module.exports = HTMLDOMPropertyConfig; 53309 53310/***/ }), 53311/* 440 */ 53312/***/ (function(module, exports, __webpack_require__) { 53313 53314"use strict"; 53315/** 53316 * Copyright (c) 2013-present, Facebook, Inc. 53317 * 53318 * This source code is licensed under the MIT license found in the 53319 * LICENSE file in the root directory of this source tree. 53320 * 53321 */ 53322 53323 53324 53325var DOMChildrenOperations = __webpack_require__(111); 53326var ReactDOMIDOperations = __webpack_require__(445); 53327 53328/** 53329 * Abstracts away all functionality of the reconciler that requires knowledge of 53330 * the browser context. TODO: These callers should be refactored to avoid the 53331 * need for this injection. 53332 */ 53333var ReactComponentBrowserEnvironment = { 53334 processChildrenUpdates: ReactDOMIDOperations.dangerouslyProcessChildrenUpdates, 53335 53336 replaceNodeWithMarkup: DOMChildrenOperations.dangerouslyReplaceNodeWithMarkup 53337}; 53338 53339module.exports = ReactComponentBrowserEnvironment; 53340 53341/***/ }), 53342/* 441 */ 53343/***/ (function(module, exports, __webpack_require__) { 53344 53345"use strict"; 53346/** 53347 * Copyright (c) 2013-present, Facebook, Inc. 53348 * 53349 * This source code is licensed under the MIT license found in the 53350 * LICENSE file in the root directory of this source tree. 53351 * 53352 */ 53353 53354 53355 53356var _prodInvariant = __webpack_require__(12); 53357 53358var DOMLazyTree = __webpack_require__(54); 53359var ExecutionEnvironment = __webpack_require__(18); 53360 53361var createNodesFromMarkup = __webpack_require__(442); 53362var emptyFunction = __webpack_require__(29); 53363var invariant = __webpack_require__(10); 53364 53365var Danger = { 53366 /** 53367 * Replaces a node with a string of markup at its current position within its 53368 * parent. The markup must render into a single root node. 53369 * 53370 * @param {DOMElement} oldChild Child node to replace. 53371 * @param {string} markup Markup to render in place of the child node. 53372 * @internal 53373 */ 53374 dangerouslyReplaceNodeWithMarkup: function (oldChild, markup) { 53375 !ExecutionEnvironment.canUseDOM ? true ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString() for server rendering.') : _prodInvariant('56') : void 0; 53376 !markup ? true ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Missing markup.') : _prodInvariant('57') : void 0; 53377 !(oldChild.nodeName !== 'HTML') ? true ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the <html> node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See ReactDOMServer.renderToString().') : _prodInvariant('58') : void 0; 53378 53379 if (typeof markup === 'string') { 53380 var newChild = createNodesFromMarkup(markup, emptyFunction)[0]; 53381 oldChild.parentNode.replaceChild(newChild, oldChild); 53382 } else { 53383 DOMLazyTree.replaceChildWithTree(oldChild, markup); 53384 } 53385 } 53386}; 53387 53388module.exports = Danger; 53389 53390/***/ }), 53391/* 442 */ 53392/***/ (function(module, exports, __webpack_require__) { 53393 53394"use strict"; 53395 53396 53397/** 53398 * Copyright (c) 2013-present, Facebook, Inc. 53399 * 53400 * This source code is licensed under the MIT license found in the 53401 * LICENSE file in the root directory of this source tree. 53402 * 53403 * @typechecks 53404 */ 53405 53406/*eslint-disable fb-www/unsafe-html*/ 53407 53408var ExecutionEnvironment = __webpack_require__(18); 53409 53410var createArrayFromMixed = __webpack_require__(443); 53411var getMarkupWrap = __webpack_require__(444); 53412var invariant = __webpack_require__(10); 53413 53414/** 53415 * Dummy container used to render all markup. 53416 */ 53417var dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null; 53418 53419/** 53420 * Pattern used by `getNodeName`. 53421 */ 53422var nodeNamePattern = /^\s*<(\w+)/; 53423 53424/** 53425 * Extracts the `nodeName` of the first element in a string of markup. 53426 * 53427 * @param {string} markup String of markup. 53428 * @return {?string} Node name of the supplied markup. 53429 */ 53430function getNodeName(markup) { 53431 var nodeNameMatch = markup.match(nodeNamePattern); 53432 return nodeNameMatch && nodeNameMatch[1].toLowerCase(); 53433} 53434 53435/** 53436 * Creates an array containing the nodes rendered from the supplied markup. The 53437 * optionally supplied `handleScript` function will be invoked once for each 53438 * <script> element that is rendered. If no `handleScript` function is supplied, 53439 * an exception is thrown if any <script> elements are rendered. 53440 * 53441 * @param {string} markup A string of valid HTML markup. 53442 * @param {?function} handleScript Invoked once for each rendered <script>. 53443 * @return {array<DOMElement|DOMTextNode>} An array of rendered nodes. 53444 */ 53445function createNodesFromMarkup(markup, handleScript) { 53446 var node = dummyNode; 53447 !!!dummyNode ? true ? invariant(false, 'createNodesFromMarkup dummy not initialized') : invariant(false) : void 0; 53448 var nodeName = getNodeName(markup); 53449 53450 var wrap = nodeName && getMarkupWrap(nodeName); 53451 if (wrap) { 53452 node.innerHTML = wrap[1] + markup + wrap[2]; 53453 53454 var wrapDepth = wrap[0]; 53455 while (wrapDepth--) { 53456 node = node.lastChild; 53457 } 53458 } else { 53459 node.innerHTML = markup; 53460 } 53461 53462 var scripts = node.getElementsByTagName('script'); 53463 if (scripts.length) { 53464 !handleScript ? true ? invariant(false, 'createNodesFromMarkup(...): Unexpected <script> element rendered.') : invariant(false) : void 0;
53465 createArrayFromMixed(scripts).forEach(handleScript); 53466 } 53467 53468 var nodes = Array.from(node.childNodes); 53469 while (node.lastChild) { 53470 node.removeChild(node.lastChild); 53471 } 53472 return nodes; 53473} 53474 53475module.exports = createNodesFromMarkup; 53476 53477/***/ }), 53478/* 443 */ 53479/***/ (function(module, exports, __webpack_require__) { 53480 53481"use strict"; 53482 53483 53484/** 53485 * Copyright (c) 2013-present, Facebook, Inc. 53486 * 53487 * This source code is licensed under the MIT license found in the 53488 * LICENSE file in the root directory of this source tree. 53489 * 53490 * @typechecks 53491 */ 53492 53493var invariant = __webpack_require__(10); 53494 53495/** 53496 * Convert array-like objects to arrays. 53497 * 53498 * This API assumes the caller knows the contents of the data type. For less 53499 * well defined inputs use createArrayFromMixed. 53500 * 53501 * @param {object|function|filelist} obj 53502 * @return {array} 53503 */ 53504function toArray(obj) { 53505 var length = obj.length; 53506 53507 // Some browsers builtin objects can report typeof 'function' (e.g. NodeList 53508 // in old versions of Safari). 53509 !(!Array.isArray(obj) && (typeof obj === 'object' || typeof obj === 'function')) ? true ? invariant(false, 'toArray: Array-like object expected') : invariant(false) : void 0; 53510 53511 !(typeof length === 'number') ? true ? invariant(false, 'toArray: Object needs a length property') : invariant(false) : void 0; 53512 53513 !(length === 0 || length - 1 in obj) ? true ? invariant(false, 'toArray: Object should have keys for indices') : invariant(false) : void 0; 53514 53515 !(typeof obj.callee !== 'function') ? true ? invariant(false, 'toArray: Object can\'t be `arguments`. Use rest params ' + '(function(...args) {}) or Array.from() instead.') : invariant(false) : void 0; 53516 53517 // Old IE doesn't give collections access to hasOwnProperty. Assume inputs 53518 // without method will throw during the slice call and skip straight to the 53519 // fallback. 53520 if (obj.hasOwnProperty) { 53521 try { 53522 return Array.prototype.slice.call(obj); 53523 } catch (e) { 53524 // IE < 9 does not support Array#slice on collections objects 53525 } 53526 } 53527 53528 // Fall back to copying key by key. This assumes all keys have a value, 53529 // so will not preserve sparsely populated inputs. 53530 var ret = Array(length); 53531 for (var ii = 0; ii < length; ii++) { 53532 ret[ii] = obj[ii]; 53533 } 53534 return ret; 53535} 53536 53537/** 53538 * Perform a heuristic test to determine if an object is "array-like". 53539 * 53540 * A monk asked Joshu, a Zen master, "Has a dog Buddha nature?" 53541 * Joshu replied: "Mu." 53542 * 53543 * This function determines if its argument has "array nature": it returns 53544 * true if the argument is an actual array, an `arguments' object, or an 53545 * HTMLCollection (e.g. node.childNodes or node.getElementsByTagName()). 53546 * 53547 * It will return false for other array-like objects like Filelist. 53548 * 53549 * @param {*} obj 53550 * @return {boolean} 53551 */ 53552function hasArrayNature(obj) { 53553 return ( 53554 // not null/false 53555 !!obj && ( 53556 // arrays are objects, NodeLists are functions in Safari 53557 typeof obj == 'object' || typeof obj == 'function') && 53558 // quacks like an array 53559 'length' in obj && 53560 // not window 53561 !('setInterval' in obj) && 53562 // no DOM node should be considered an array-like 53563 // a 'select' element has 'length' and 'item' properties on IE8 53564 typeof obj.nodeType != 'number' && ( 53565 // a real array 53566 Array.isArray(obj) || 53567 // arguments 53568 'callee' in obj || 53569 // HTMLCollection/NodeList 53570 'item' in obj) 53571 ); 53572} 53573 53574/** 53575 * Ensure that the argument is an array by wrapping it in an array if it is not. 53576 * Creates a copy of the argument if it is already an array. 53577 * 53578 * This is mostly useful idiomatically: 53579 * 53580 * var createArrayFromMixed = require('createArrayFromMixed'); 53581 * 53582 * function takesOneOrMoreThings(things) { 53583 * things = createArrayFromMixed(things); 53584 * ... 53585 * } 53586 * 53587 * This allows you to treat `things' as an array, but accept scalars in the API. 53588 * 53589 * If you need to convert an array-like object, like `arguments`, into an array 53590 * use toArray instead. 53591 * 53592 * @param {*} obj 53593 * @return {array} 53594 */ 53595function createArrayFromMixed(obj) { 53596 if (!hasArrayNature(obj)) { 53597 return [obj]; 53598 } else if (Array.isArray(obj)) { 53599 return obj.slice(); 53600 } else { 53601 return toArray(obj); 53602 } 53603} 53604 53605module.exports = createArrayFromMixed; 53606 53607/***/ }), 53608/* 444 */ 53609/***/ (function(module, exports, __webpack_require__) { 53610 53611"use strict"; 53612 53613 53614/** 53615 * Copyright (c) 2013-present, Facebook, Inc. 53616 * 53617 * This source code is licensed under the MIT license found in the 53618 * LICENSE file in the root directory of this source tree. 53619 * 53620 */ 53621 53622/*eslint-disable fb-www/unsafe-html */ 53623 53624var ExecutionEnvironment = __webpack_require__(18); 53625 53626var invariant = __webpack_require__(10); 53627 53628/** 53629 * Dummy container used to detect which wraps are necessary. 53630 */ 53631var dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null; 53632 53633/** 53634 * Some browsers cannot use `innerHTML` to render certain elements standalone,
53635 * so we wrap them, render the wrapped nodes, then extract the desired node. 53636 * 53637 * In IE8, certain elements cannot render alone, so wrap all elements ('*'). 53638 */ 53639 53640var shouldWrap = {}; 53641 53642var selectWrap = [1, '<select multiple="true">', '</select>']; 53643var tableWrap = [1, '<table>', '</table>']; 53644var trWrap = [3, '<table><tbody><tr>', '</tr></tbody></table>']; 53645 53646var svgWrap = [1, '<svg xmlns="http://www.w3.org/2000/svg">', '</svg>']; 53647 53648var markupWrap = { 53649 '*': [1, '?<div>', '</div>'], 53650 53651 'area': [1, '<map>', '</map>'], 53652 'col': [2, '<table><tbody></tbody><colgroup>', '</colgroup></table>'], 53653 'legend': [1, '<fieldset>', '</fieldset>'], 53654 'param': [1, '<object>', '</object>'], 53655 'tr': [2, '<table><tbody>', '</tbody></table>'], 53656 53657 'optgroup': selectWrap, 53658 'option': selectWrap, 53659 53660 'caption': tableWrap, 53661 'colgroup': tableWrap, 53662 'tbody': tableWrap, 53663 'tfoot': tableWrap, 53664 'thead': tableWrap, 53665 53666 'td': trWrap, 53667 'th': trWrap 53668}; 53669 53670// Initialize the SVG elements since we know they'll always need to be wrapped 53671// consistently. If they are created inside a <div> they will be initialized in 53672// the wrong namespace (and will not display). 53673var svgElements = ['circle', 'clipPath', 'defs', 'ellipse', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'text', 'tspan']; 53674svgElements.forEach(function (nodeName) { 53675 markupWrap[nodeName] = svgWrap; 53676 shouldWrap[nodeName] = true; 53677}); 53678 53679/** 53680 * Gets the markup wrap configuration for the supplied `nodeName`. 53681 * 53682 * NOTE: This lazily detects which wraps are necessary for the current browser. 53683 * 53684 * @param {string} nodeName Lowercase `nodeName`. 53685 * @return {?array} Markup wrap configuration, if applicable. 53686 */ 53687function getMarkupWrap(nodeName) { 53688 !!!dummyNode ? true ? invariant(false, 'Markup wrapping node not initialized') : invariant(false) : void 0; 53689 if (!markupWrap.hasOwnProperty(nodeName)) { 53690 nodeName = '*'; 53691 } 53692 if (!shouldWrap.hasOwnProperty(nodeName)) { 53693 if (nodeName === '*') { 53694 dummyNode.innerHTML = '<link />'; 53695 } else { 53696 dummyNode.innerHTML = '<' + nodeName + '></' + nodeName + '>'; 53697 } 53698 shouldWrap[nodeName] = !dummyNode.firstChild; 53699 } 53700 return shouldWrap[nodeName] ? markupWrap[nodeName] : null; 53701} 53702 53703module.exports = getMarkupWrap; 53704 53705/***/ }), 53706/* 445 */ 53707/***/ (function(module, exports, __webpack_require__) { 53708 53709"use strict"; 53710/** 53711 * Copyright (c) 2013-present, Facebook, Inc. 53712 * 53713 * This source code is licensed under the MIT license found in the 53714 * LICENSE file in the root directory of this source tree. 53715 * 53716 */ 53717 53718 53719 53720var DOMChildrenOperations = __webpack_require__(111); 53721var ReactDOMComponentTree = __webpack_require__(15); 53722 53723/** 53724 * Operations used to process updates to DOM nodes. 53725 */ 53726var ReactDOMIDOperations = { 53727 /** 53728 * Updates a component's children by processing a series of updates. 53729 * 53730 * @param {array<object>} updates List of update configurations. 53731 * @internal 53732 */ 53733 dangerouslyProcessChildrenUpdates: function (parentInst, updates) { 53734 var node = ReactDOMComponentTree.getNodeFromInstance(parentInst); 53735 DOMChildrenOperations.processUpdates(node, updates); 53736 } 53737}; 53738 53739module.exports = ReactDOMIDOperations; 53740 53741/***/ }), 53742/* 446 */ 53743/***/ (function(module, exports, __webpack_require__) { 53744 53745"use strict"; 53746/** 53747 * Copyright (c) 2013-present, Facebook, Inc. 53748 * 53749 * This source code is licensed under the MIT license found in the 53750 * LICENSE file in the root directory of this source tree. 53751 * 53752 */ 53753 53754/* global hasOwnProperty:true */ 53755 53756 53757 53758var _prodInvariant = __webpack_require__(12), 53759 _assign = __webpack_require__(14); 53760 53761var AutoFocusUtils = __webpack_require__(447); 53762var CSSPropertyOperations = __webpack_require__(448); 53763var DOMLazyTree = __webpack_require__(54); 53764var DOMNamespaces = __webpack_require__(112); 53765var DOMProperty = __webpack_require__(36); 53766var DOMPropertyOperations = __webpack_require__(179); 53767var EventPluginHub = __webpack_require__(51); 53768var EventPluginRegistry = __webpack_require__(78); 53769var ReactBrowserEventEmitter = __webpack_require__(84); 53770var ReactDOMComponentFlags = __webpack_require__(168); 53771var ReactDOMComponentTree = __webpack_require__(15); 53772var ReactDOMInput = __webpack_require__(458); 53773var ReactDOMOption = __webpack_require__(459); 53774var ReactDOMSelect = __webpack_require__(181); 53775var ReactDOMTextarea = __webpack_require__(460); 53776var ReactInstrumentation = __webpack_require__(24); 53777var ReactMultiChild = __webpack_require__(461); 53778var ReactServerRenderingTransaction = __webpack_require__(470); 53779 53780var emptyFunction = __webpack_require__(29); 53781var escapeTextContentForBrowser = __webpack_require__(83); 53782var invariant = __webpack_require__(10); 53783var isEventSupported = __webpack_require__(108); 53784var shallowEqual = __webpack_require__(116); 53785var inputValueTracking = __webpack_require__(174); 53786var validateDOMNesting = __webpack_require__(120); 53787var warning = __webpack_require__(11); 53788 53789var Flags = ReactDOMComponentFlags; 53790var deleteListener = EventPluginHub.deleteListener; 53791var getNode = ReactDOMComponentTree.getNodeFromInstance; 53792var listenTo = ReactBrowserEventEmitter.listenTo; 53793var registrationNameModules = EventPluginRegistry.registrationNameModules; 53794 53795// For quickly matching children type, to test if can be treated as content. 53796var CONTENT_TYPES = { string: true, number: true }; 53797 53798var STYLE = 'style'; 53799var HTML = '__html'; 53800var RESERVED_PROPS = { 53801 children: null,
53802 dangerouslySetInnerHTML: null, 53803 suppressContentEditableWarning: null 53804}; 53805 53806// Node type for document fragments (Node.DOCUMENT_FRAGMENT_NODE). 53807var DOC_FRAGMENT_TYPE = 11; 53808 53809function getDeclarationErrorAddendum(internalInstance) { 53810 if (internalInstance) { 53811 var owner = internalInstance._currentElement._owner || null; 53812 if (owner) { 53813 var name = owner.getName(); 53814 if (name) { 53815 return ' This DOM node was rendered by `' + name + '`.'; 53816 } 53817 } 53818 } 53819 return ''; 53820} 53821 53822function friendlyStringify(obj) { 53823 if (typeof obj === 'object') { 53824 if (Array.isArray(obj)) { 53825 return '[' + obj.map(friendlyStringify).join(', ') + ']'; 53826 } else { 53827 var pairs = []; 53828 for (var key in obj) { 53829 if (Object.prototype.hasOwnProperty.call(obj, key)) { 53830 var keyEscaped = /^[a-z$_][\w$_]*$/i.test(key) ? key : JSON.stringify(key); 53831 pairs.push(keyEscaped + ': ' + friendlyStringify(obj[key])); 53832 } 53833 } 53834 return '{' + pairs.join(', ') + '}'; 53835 } 53836 } else if (typeof obj === 'string') { 53837 return JSON.stringify(obj); 53838 } else if (typeof obj === 'function') { 53839 return '[function object]'; 53840 } 53841 // Differs from JSON.stringify in that undefined because undefined and that 53842 // inf and nan don't become null 53843 return String(obj); 53844} 53845 53846var styleMutationWarning = {}; 53847 53848function checkAndWarnForMutatedStyle(style1, style2, component) { 53849 if (style1 == null || style2 == null) { 53850 return; 53851 } 53852 if (shallowEqual(style1, style2)) { 53853 return; 53854 } 53855 53856 var componentName = component._tag; 53857 var owner = component._currentElement._owner; 53858 var ownerName; 53859 if (owner) { 53860 ownerName = owner.getName(); 53861 } 53862 53863 var hash = ownerName + '|' + componentName; 53864 53865 if (styleMutationWarning.hasOwnProperty(hash)) { 53866 return; 53867 } 53868 53869 styleMutationWarning[hash] = true; 53870 53871 true ? warning(false, '`%s` was passed a style object that has previously been mutated. ' + 'Mutating `style` is deprecated. Consider cloning it beforehand. Check ' + 'the `render` %s. Previous style: %s. Mutated style: %s.', componentName, owner ? 'of `' + ownerName + '`' : 'using <' + componentName + '>', friendlyStringify(style1), friendlyStringify(style2)) : void 0; 53872} 53873 53874/** 53875 * @param {object} component 53876 * @param {?object} props 53877 */ 53878function assertValidProps(component, props) { 53879 if (!props) { 53880 return; 53881 } 53882 // Note the use of `==` which checks for null or undefined. 53883 if (voidElementTags[component._tag]) { 53884 !(props.children == null && props.dangerouslySetInnerHTML == null) ? true ? invariant(false, '%s is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.%s', component._tag, component._currentElement._owner ? ' Check the render method of ' + component._currentElement._owner.getName() + '.' : '') : _prodInvariant('137', component._tag, component._currentElement._owner ? ' Check the render method of ' + component._currentElement._owner.getName() + '.' : '') : void 0; 53885 } 53886 if (props.dangerouslySetInnerHTML != null) { 53887 !(props.children == null) ? true ? invariant(false, 'Can only set one of `children` or `props.dangerouslySetInnerHTML`.') : _prodInvariant('60') : void 0; 53888 !(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML) ? true ? invariant(false, '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.') : _prodInvariant('61') : void 0; 53889 } 53890 if (true) { 53891 true ? warning(props.innerHTML == null, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.') : void 0; 53892 true ? warning(props.suppressContentEditableWarning || !props.contentEditable || props.children == null, 'A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.') : void 0; 53893 true ? warning(props.onFocusIn == null && props.onFocusOut == null, 'React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.') : void 0; 53894 } 53895 !(props.style == null || typeof props.style === 'object') ? true ? invariant(false, 'The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \'em\'}} when using JSX.%s', getDeclarationErrorAddendum(component)) : _prodInvariant('62', getDeclarationErrorAddendum(component)) : void 0; 53896} 53897 53898function enqueuePutListener(inst, registrationName, listener, transaction) { 53899 if (transaction instanceof ReactServerRenderingTransaction) { 53900 return; 53901 } 53902 if (true) { 53903 // IE8 has no API for event capturing and the `onScroll` event doesn't 53904 // bubble. 53905 true ? warning(registrationName !== 'onScroll' || isEventSupported('scroll', true), "This browser doesn't support the `onScroll` event") : void 0; 53906 } 53907 var containerInfo = inst._hostContainerInfo; 53908 var isDocumentFragment = containerInfo._node && containerInfo._node.nodeType === DOC_FRAGMENT_TYPE; 53909 var doc = isDocumentFragment ? containerInfo._node : containerInfo._ownerDocument; 53910 listenTo(registrationName, doc); 53911 transaction.getReactMountReady().enqueue(putListener, { 53912 inst: inst, 53913 registrationName: registrationName, 53914 listener: listener 53915 }); 53916} 53917 53918function putListener() { 53919 var listenerToPut = this; 53920 EventPluginHub.putListener(listenerToPut.inst, listenerToPut.registrationName, listenerToPut.listener); 53921} 53922 53923function inputPostMount() { 53924 var inst = this; 53925 ReactDOMInput.postMountWrapper(inst); 53926} 53927 53928function textareaPostMount() { 53929 var inst = this; 53930 ReactDOMTextarea.postMountWrapper(inst); 53931} 53932 53933function optionPostMount() { 53934 var inst = this; 53935 ReactDOMOption.postMountWrapper(inst); 53936} 53937 53938var setAndValidateContentChildDev = emptyFunction; 53939if (true) { 53940 setAndValidateContentChildDev = function (content) { 53941 var hasExistingContent = this._contentDebugID != null; 53942 var debugID = this._debugID; 53943 // This ID represents the inlined child that has no backing instance: 53944 var contentDebugID = -debugID; 53945 53946 if (content == null) { 53947 if (hasExistingContent) { 53948 ReactInstrumentation.debugTool.onUnmountComponent(this._contentDebugID); 53949 } 53950 this._contentDebugID = null; 53951 return; 53952 } 53953 53954 validateDOMNesting(null, String(content), this, this._ancestorInfo); 53955 this._contentDebugID = contentDebugID; 53956 if (hasExistingContent) { 53957 ReactInstrumentation.debugTool.onBeforeUpdateComponent(contentDebugID, content); 53958 ReactInstrumentation.debugTool.onUpdateComponent(contentDebugID); 53959 } else { 53960 ReactInstrumentation.debugTool.onBeforeMountComponent(contentDebugID, content, debugID); 53961 ReactInstrumentation.debugTool.onMountComponent(contentDebugID); 53962 ReactInstrumentation.debugTool.onSetChildren(debugID, [contentDebugID]); 53963 } 53964 }; 53965} 53966 53967// There are so many media events, it makes sense to just
53968// maintain a list rather than create a `trapBubbledEvent` for each 53969var mediaEvents = { 53970 topAbort: 'abort', 53971 topCanPlay: 'canplay', 53972 topCanPlayThrough: 'canplaythrough', 53973 topDurationChange: 'durationchange', 53974 topEmptied: 'emptied', 53975 topEncrypted: 'encrypted', 53976 topEnded: 'ended', 53977 topError: 'error', 53978 topLoadedData: 'loadeddata', 53979 topLoadedMetadata: 'loadedmetadata', 53980 topLoadStart: 'loadstart', 53981 topPause: 'pause', 53982 topPlay: 'play', 53983 topPlaying: 'playing', 53984 topProgress: 'progress', 53985 topRateChange: 'ratechange', 53986 topSeeked: 'seeked', 53987 topSeeking: 'seeking', 53988 topStalled: 'stalled', 53989 topSuspend: 'suspend', 53990 topTimeUpdate: 'timeupdate', 53991 topVolumeChange: 'volumechange', 53992 topWaiting: 'waiting' 53993}; 53994 53995function trackInputValue() { 53996 inputValueTracking.track(this); 53997} 53998 53999function trapBubbledEventsLocal() { 54000 var inst = this; 54001 // If a component renders to null or if another component fatals and causes 54002 // the state of the tree to be corrupted, `node` here can be null. 54003 !inst._rootNodeID ? true ? invariant(false, 'Must be mounted to trap events') : _prodInvariant('63') : void 0; 54004 var node = getNode(inst); 54005 !node ? true ? invariant(false, 'trapBubbledEvent(...): Requires node to be rendered.') : _prodInvariant('64') : void 0; 54006 54007 switch (inst._tag) { 54008 case 'iframe': 54009 case 'object': 54010 inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topLoad', 'load', node)]; 54011 break; 54012 case 'video': 54013 case 'audio': 54014 inst._wrapperState.listeners = []; 54015 // Create listener for each media event 54016 for (var event in mediaEvents) { 54017 if (mediaEvents.hasOwnProperty(event)) { 54018 inst._wrapperState.listeners.push(ReactBrowserEventEmitter.trapBubbledEvent(event, mediaEvents[event], node)); 54019 } 54020 } 54021 break; 54022 case 'source': 54023 inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topError', 'error', node)]; 54024 break; 54025 case 'img': 54026 inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topError', 'error', node), ReactBrowserEventEmitter.trapBubbledEvent('topLoad', 'load', node)]; 54027 break; 54028 case 'form': 54029 inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topReset', 'reset', node), ReactBrowserEventEmitter.trapBubbledEvent('topSubmit', 'submit', node)]; 54030 break; 54031 case 'input': 54032 case 'select': 54033 case 'textarea': 54034 inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topInvalid', 'invalid', node)]; 54035 break; 54036 } 54037} 54038 54039function postUpdateSelectWrapper() { 54040 ReactDOMSelect.postUpdateWrapper(this); 54041} 54042 54043// For HTML, certain tags should omit their close tag. We keep a whitelist for 54044// those special-case tags. 54045 54046var omittedCloseTags = { 54047 area: true, 54048 base: true, 54049 br: true, 54050 col: true, 54051 embed: true, 54052 hr: true, 54053 img: true, 54054 input: true, 54055 keygen: true, 54056 link: true, 54057 meta: true, 54058 param: true, 54059 source: true, 54060 track: true, 54061 wbr: true 54062 // NOTE: menuitem's close tag should be omitted, but that causes problems. 54063}; 54064 54065var newlineEatingTags = { 54066 listing: true, 54067 pre: true, 54068 textarea: true 54069}; 54070 54071// For HTML, certain tags cannot have children. This has the same purpose as 54072// `omittedCloseTags` except that `menuitem` should still have its closing tag. 54073 54074var voidElementTags = _assign({ 54075 menuitem: true 54076}, omittedCloseTags); 54077 54078// We accept any tag to be rendered but since this gets injected into arbitrary 54079// HTML, we want to make sure that it's a safe tag. 54080// http://www.w3.org/TR/REC-xml/#NT-Name 54081 54082var VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/; // Simplified subset 54083var validatedTagCache = {}; 54084var hasOwnProperty = {}.hasOwnProperty; 54085 54086function validateDangerousTag(tag) { 54087 if (!hasOwnProperty.call(validatedTagCache, tag)) { 54088 !VALID_TAG_REGEX.test(tag) ? true ? invariant(false, 'Invalid tag: %s', tag) : _prodInvariant('65', tag) : void 0; 54089 validatedTagCache[tag] = true; 54090 } 54091} 54092 54093function isCustomComponent(tagName, props) { 54094 return tagName.indexOf('-') >= 0 || props.is != null; 54095} 54096 54097var globalIdCounter = 1; 54098 54099/** 54100 * Creates a new React class that is idempotent and capable of containing other 54101 * React components. It accepts event listeners and DOM properties that are 54102 * valid according to `DOMProperty`. 54103 * 54104 * - Event listeners: `onClick`, `onMouseDown`, etc. 54105 * - DOM properties: `className`, `name`, `title`, etc. 54106 * 54107 * The `style` property functions differently from the DOM API. It accepts an 54108 * object mapping of style properties to values. 54109 * 54110 * @constructor ReactDOMComponent 54111 * @extends ReactMultiChild 54112 */ 54113function ReactDOMComponent(element) { 54114 var tag = element.type; 54115 validateDangerousTag(tag); 54116 this._currentElement = element; 54117 this._tag = tag.toLowerCase(); 54118 this._namespaceURI = null; 54119 this._renderedChildren = null; 54120 this._previousStyle = null; 54121 this._previousStyleCopy = null; 54122 this._hostNode = null; 54123 this._hostParent = null; 54124 this._rootNodeID = 0; 54125 this._domID = 0; 54126 this._hostContainerInfo = null; 54127 this._wrapperState = null; 54128 this._topLevelWrapper = null; 54129 this._flags = 0; 54130 if (true) { 54131 this._ancestorInfo = null; 54132 setAndValidateContentChildDev.call(this, null); 54133 } 54134} 54135 54136ReactDOMComponent.displayName = 'ReactDOMComponent'; 54137 54138ReactDOMComponent.Mixin = { 54139 /** 54140 * Generates root tag markup then recurses. This method has side effects and 54141 * is not idempotent. 54142 * 54143 * @internal 54144 * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction 54145 * @param {?ReactDOMComponent} the parent component instance 54146 * @param {?object} info about the host container 54147 * @param {object} context 54148 * @return {string} The computed markup. 54149 */ 54150 mountComponent: function (transaction, hostParent, hostContainerInfo, context) { 54151 this._rootNodeID = globalIdCounter++; 54152 this._domID = hostContainerInfo._idCounter++; 54153 this._hostParent = hostParent; 54154 this._hostContainerInfo = hostContainerInfo; 54155 54156 var props = this._currentElement.props; 54157 54158 switch (this._tag) { 54159 case 'audio': 54160 case 'form': 54161 case 'iframe': 54162 case 'img': 54163 case 'link': 54164 case 'object': 54165 case 'source': 54166 case 'video': 54167 this._wrapperState = { 54168 listeners: null 54169 }; 54170 transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this); 54171 break; 54172 case 'input': 54173 ReactDOMInput.mountWrapper(this, props, hostParent); 54174 props = ReactDOMInput.getHostProps(this, props); 54175 transaction.getReactMountReady().enqueue(trackInputValue, this); 54176 transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this); 54177 break; 54178 case 'option': 54179 ReactDOMOption.mountWrapper(this, props, hostParent); 54180 props = ReactDOMOption.getHostProps(this, props); 54181 break; 54182 case 'select': 54183 ReactDOMSelect.mountWrapper(this, props, hostParent); 54184 props = ReactDOMSelect.getHostProps(this, props); 54185 transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this); 54186 break; 54187 case 'textarea': 54188 ReactDOMTextarea.mountWrapper(this, props, hostParent); 54189 props = ReactDOMTextarea.getHostProps(this, props); 54190 transaction.getReactMountReady().enqueue(trackInputValue, this); 54191 transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this); 54192 break; 54193 } 54194 54195 assertValidProps(this, props); 54196 54197 // We create tags in the namespace of their parent container, except HTML 54198 // tags get no namespace. 54199 var namespaceURI; 54200 var parentTag; 54201 if (hostParent != null) { 54202 namespaceURI = hostParent._namespaceURI; 54203 parentTag = hostParent._tag; 54204 } else if (hostContainerInfo._tag) { 54205 namespaceURI = hostContainerInfo._namespaceURI; 54206 parentTag = hostContainerInfo._tag; 54207 } 54208 if (namespaceURI == null || namespaceURI === DOMNamespaces.svg && parentTag === 'foreignobject') { 54209 namespaceURI = DOMNamespaces.html; 54210 } 54211 if (namespaceURI === DOMNamespaces.html) { 54212 if (this._tag === 'svg') { 54213 namespaceURI = DOMNamespaces.svg; 54214 } else if (this._tag === 'math') { 54215 namespaceURI = DOMNamespaces.mathml; 54216 } 54217 } 54218 this._namespaceURI = namespaceURI; 54219 54220 if (true) { 54221 var parentInfo; 54222 if (hostParent != null) { 54223 parentInfo = hostParent._ancestorInfo; 54224 } else if (hostContainerInfo._tag) { 54225 parentInfo = hostContainerInfo._ancestorInfo; 54226 } 54227 if (parentInfo) { 54228 // parentInfo should always be present except for the top-level 54229 // component when server rendering 54230 validateDOMNesting(this._tag, null, this, parentInfo); 54231 } 54232 this._ancestorInfo = validateDOMNesting.updatedAncestorInfo(p
54232arentInfo, this._tag, this); 54233 } 54234 54235 var mountImage; 54236 if (transaction.useCreateElement) { 54237 var ownerDocument = hostContainerInfo._ownerDocument; 54238 var el; 54239 if (namespaceURI === DOMNamespaces.html) { 54240 if (this._tag === 'script') { 54241 // Create the script via .innerHTML so its "parser-inserted" flag is 54242 // set to true and it does not execute 54243 var div = ownerDocument.createElement('div'); 54244 var type = this._currentElement.type; 54245 div.innerHTML = '<' + type + '></' + type + '>'; 54246 el = div.removeChild(div.firstChild); 54247 } else if (props.is) { 54248 el = ownerDocument.createElement(this._currentElement.type, props.is); 54249 } else { 54250 // Separate else branch instead of using `props.is || undefined` above becuase of a Firefox bug. 54251 // See discussion in https://github.com/facebook/react/pull/6896 54252 // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240 54253 el = ownerDocument.createElement(this._currentElement.type); 54254 } 54255 } else { 54256 el = ownerDocument.createElementNS(namespaceURI, this._currentElement.type); 54257 } 54258 ReactDOMComponentTree.precacheNode(this, el); 54259 this._flags |= Flags.hasCachedChildNodes; 54260 if (!this._hostParent) { 54261 DOMPropertyOperations.setAttributeForRoot(el); 54262 } 54263 this._updateDOMProperties(null, props, transaction); 54264 var lazyTree = DOMLazyTree(el); 54265 this._createInitialChildren(transaction, props, context, lazyTree); 54266 mountImage = lazyTree; 54267 } else { 54268 var tagOpen = this._createOpenTagMarkupAndPutListeners(transaction, props); 54269 var tagContent = this._createContentMarkup(transaction, props, context); 54270 if (!tagContent && omittedCloseTags[this._tag]) { 54271 mountImage = tagOpen + '/>'; 54272 } else { 54273 mountImage = tagOpen + '>' + tagContent + '</' + this._currentElement.type + '>'; 54274 } 54275 } 54276 54277 switch (this._tag) { 54278 case 'input': 54279 transaction.getReactMountReady().enqueue(inputPostMount, this); 54280 if (props.autoFocus) { 54281 transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this); 54282 } 54283 break; 54284 case 'textarea': 54285 transaction.getReactMountReady().enqueue(textareaPostMount, this); 54286 if (props.autoFocus) { 54287 transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this); 54288 } 54289 break; 54290 case 'select': 54291 if (props.autoFocus) { 54292 transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this); 54293 } 54294 break; 54295 case 'button': 54296 if (props.autoFocus) { 54297 transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this); 54298 } 54299 break; 54300 case 'option': 54301 transaction.getReactMountReady().enqueue(optionPostMount, this); 54302 break; 54303 } 54304 54305 return mountImage; 54306 }, 54307 54308 /** 54309 * Creates markup for the open tag and all attributes. 54310 * 54311 * This method has side effects because events get registered. 54312 * 54313 * Iterating over object properties is faster than iterating over arrays. 54314 * @see http://jsperf.com/obj-vs-arr-iteration 54315 * 54316 * @private 54317 * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction 54318 * @param {object} props 54319 * @return {string} Markup of opening tag. 54320 */ 54321 _createOpenTagMarkupAndPutListeners: function (transaction, props) { 54322 var ret = '<' + this._currentElement.type; 54323 54324 for (var propKey in props) { 54325 if (!props.hasOwnProperty(propKey)) { 54326 continue; 54327 } 54328 var propValue = props[propKey]; 54329 if (propValue == null) { 54330 continue; 54331 } 54332 if (registrationNameModules.hasOwnProperty(propKey)) { 54333 if (propValue) { 54334 enqueuePutListener(this, propKey, propValue, transaction); 54335 } 54336 } else { 54337 if (propKey === STYLE) { 54338 if (propValue) { 54339 if (true) { 54340 // See `_updateDOMProperties`. style block 54341 this._previousStyle = propValue; 54342 } 54343 propValue = this._previousStyleCopy = _assign({}, props.style); 54344 } 54345 propValue = CSSPropertyOperations.createMarkupForStyles(propValue, this); 54346 } 54347 var markup = null; 54348 if (this._tag != null && isCustomComponent(this._tag, props)) { 54349 if (!RESERVED_PROPS.hasOwnProperty(propKey)) {
54350 markup = DOMPropertyOperations.createMarkupForCustomAttribute(propKey, propValue); 54351 } 54352 } else { 54353 markup = DOMPropertyOperations.createMarkupForProperty(propKey, propValue); 54354 } 54355 if (markup) { 54356 ret += ' ' + markup; 54357 } 54358 } 54359 } 54360 54361 // For static pages, no need to put React ID and checksum. Saves lots of 54362 // bytes. 54363 if (transaction.renderToStaticMarkup) { 54364 return ret; 54365 } 54366 54367 if (!this._hostParent) { 54368 ret += ' ' + DOMPropertyOperations.createMarkupForRoot(); 54369 } 54370 ret += ' ' + DOMPropertyOperations.createMarkupForID(this._domID); 54371 return ret; 54372 }, 54373 54374 /** 54375 * Creates markup for the content between the tags. 54376 * 54377 * @private 54378 * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction 54379 * @param {object} props 54380 * @param {object} context 54381 * @return {string} Content markup. 54382 */ 54383 _createContentMarkup: function (transaction, props, context) { 54384 var ret = ''; 54385 54386 // Intentional use of != to avoid catching zero/false. 54387 var innerHTML = props.dangerouslySetInnerHTML; 54388 if (innerHTML != null) { 54389 if (innerHTML.__html != null) { 54390 ret = innerHTML.__html; 54391 } 54392 } else { 54393 var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null; 54394 var childrenToUse = contentToUse != null ? null : props.children; 54395 if (contentToUse != null) { 54396 // TODO: Validate that text is allowed as a child of this node 54397 ret = escapeTextContentForBrowser(contentToUse); 54398 if (true) { 54399 setAndValidateContentChildDev.call(this, contentToUse); 54400 } 54401 } else if (childrenToUse != null) { 54402 var mountImages = this.mountChildren(childrenToUse, transaction, context); 54403 ret = mountImages.join(''); 54404 } 54405 } 54406 if (newlineEatingTags[this._tag] && ret.charAt(0) === '\n') { 54407 // text/html ignores the first character in these tags if it's a newline 54408 // Prefer to break application/xml over text/html (for now) by adding 54409 // a newline specifically to get eaten by the parser. (Alternately for 54410 // textareas, replacing "^\n" with "\r\n" doesn't get eaten, and the first 54411 // \r is normalized out by HTMLTextAreaElement#value.) 54412 // See: <http://www.w3.org/TR/html-polyglot/#newlines-in-textarea-and-pre> 54413 // See: <http://www.w3.org/TR/html5/syntax.html#element-restrictions> 54414 // See: <http://www.w3.org/TR/html5/syntax.html#newlines> 54415 // See: Parsing of "textarea" "listing" and "pre" elements 54416 // from <http://www.w3.org/TR/html5/syntax.html#parsing-main-inbody> 54417 return '\n' + ret; 54418 } else { 54419 return ret; 54420 } 54421 }, 54422 54423 _createInitialChildren: function (transaction, props, context, lazyTree) { 54424 // Intentional use of != to avoid catching zero/false. 54425 var innerHTML = props.dangerouslySetInnerHTML; 54426 if (innerHTML != null) { 54427 if (innerHTML.__html != null) { 54428 DOMLazyTree.queueHTML(lazyTree, innerHTML.__html); 54429 } 54430 } else { 54431 var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null; 54432 var childrenToUse = contentToUse != null ? null : props.children; 54433 // TODO: Validate that text is allowed as a child of this node 54434 if (contentToUse != null) { 54435 // Avoid setting textContent when the text is empty. In IE11 setting 54436 // textContent on a text area will cause the placeholder to not 54437 // show within the textarea until it has been focused and blurred again. 54438 // https://github.com/facebook/react/issues/6731#issuecomment-254874553 54439 if (contentToUse !== '') { 54440 if (true) { 54441 setAndValidateContentChildDev.call(this, contentToUse); 54442 } 54443 DOMLazyTree.queueText(lazyTree, contentToUse); 54444 } 54445 } else if (childrenToUse != null) { 54446 var mountImages = this.mountChildren(childrenToUse, transaction, context); 54447 for (var i = 0; i < mountImages.length; i++) { 54448 DOMLazyTree.queueChild(lazyTree, mountImages[i]); 54449 } 54450 } 54451 } 54452 }, 54453 54454 /** 54455 * Receives a next element and updates the component. 54456 * 54457 * @internal 54458 * @param {ReactElement} nextElement 54459 * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction 54460 * @param {object} context 54461 */ 54462 receiveComponent: function (nextElement, transaction, context) { 54463 var prevElement = this._currentElement; 54464 this._currentElement = nextElement; 54465 this.updateComponent(transaction, prevElement, nextElement, context); 54466 }, 54467 54468 /** 54469 * Updates a DOM component after it has already been allocated and 54470 * attached to the DOM. Reconciles the root DOM node, then recurses. 54471 * 54472 * @param {ReactReconcileTransaction} transaction 54473 * @param {ReactElement} prevElement 54474 * @param {ReactElement} nextElement 54475 * @internal 54476 * @overridable 54477 */ 54478 updateComponent: function (transaction, prevElement, nextElement, context) { 54479 var lastProps = prevElement.props; 54480 var nextProps = this._currentElement.props; 54481 54482 switch (this._tag) { 54483 case 'input': 54484 lastProps = ReactDOMInput.getHostProps(this, lastProps); 54485 nextProps = ReactDOMInput.getHostProps(this, nextProps); 54486 break; 54487 case 'option': 54488 lastProps = ReactDOMOption.getHostProps(this, lastProps); 54489 nextProps = ReactDOMOption.getHostProps(this, nextProps); 54490 break; 54491 case 'select': 54492 lastProps = ReactDOMSelect.getHostProps(this, lastProps); 54493 nextProps = ReactDOMSelect.getHostProps(this, nextProps); 54494 break; 54495 case 'textarea': 54496 lastProps = ReactDOMTextarea.getHostProps(this, lastProps); 54497 nextProps = ReactDOMTextarea.getHostProps(this, nextProps); 54498 break; 54499 } 54500 54501 assertValidProps(this, nextProps); 54502 this._updateDOMProperties(lastProps, nextProps, transaction); 54503 this._updateDOMChildren(lastProps, nextProps, transaction, context); 54504 54505 switch (this._tag) { 54506 case 'input':
54507 // Update the wrapper around inputs *after* updating props. This has to 54508 // happen after `_updateDOMProperties`. Otherwise HTML5 input validations 54509 // raise warnings and prevent the new value from being assigned. 54510 ReactDOMInput.updateWrapper(this); 54511 54512 // We also check that we haven't missed a value update, such as a 54513 // Radio group shifting the checked value to another named radio input. 54514 inputValueTracking.updateValueIfChanged(this); 54515 break; 54516 case 'textarea': 54517 ReactDOMTextarea.updateWrapper(this); 54518 break; 54519 case 'select': 54520 // <select> value update needs to occur after <option> children 54521 // reconciliation 54522 transaction.getReactMountReady().enqueue(postUpdateSelectWrapper, this); 54523 break; 54524 } 54525 }, 54526 54527 /** 54528 * Reconciles the properties by detecting differences in property values and 54529 * updating the DOM as necessary. This function is probably the single most 54530 * critical path for performance optimization. 54531 * 54532 * TODO: Benchmark whether checking for changed values in memory actually 54533 * improves performance (especially statically positioned elements). 54534 * TODO: Benchmark the effects of putting this at the top since 99% of props 54535 * do not change for a given reconciliation. 54536 * TODO: Benchmark areas that can be improved with caching. 54537 * 54538 * @private 54539 * @param {object} lastProps 54540 * @param {object} nextProps 54541 * @param {?DOMElement} node 54542 */ 54543 _updateDOMProperties: function (lastProps, nextProps, transaction) { 54544 var propKey; 54545 var styleName; 54546 var styleUpdates; 54547 for (propKey in lastProps) { 54548 if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) { 54549 continue; 54550 } 54551 if (propKey === STYLE) { 54552 var lastStyle = this._previousStyleCopy; 54553 for (styleName in lastStyle) { 54554 if (lastStyle.hasOwnProperty(styleName)) { 54555 styleUpdates = styleUpdates || {}; 54556 styleUpdates[styleName] = ''; 54557 } 54558 } 54559 this._previousStyleCopy = null; 54560 } else if (registrationNameModules.hasOwnProperty(propKey)) { 54561 if (lastProps[propKey]) { 54562 // Only call deleteListener if there was a listener previously or 54563 // else willDeleteListener gets called when there wasn't actually a 54564 // listener (e.g., onClick={null}) 54565 deleteListener(this, propKey); 54566 } 54567 } else if (isCustomComponent(this._tag, lastProps)) { 54568 if (!RESERVED_PROPS.hasOwnProperty(propKey)) { 54569 DOMPropertyOperations.deleteValueForAttribute(getNode(this), propKey); 54570 } 54571 } else if (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) { 54572 DOMPropertyOperations.deleteValueForProperty(getNode(this), propKey); 54573 } 54574 } 54575 for (propKey in nextProps) { 54576 var nextProp = nextProps[propKey]; 54577 var lastProp = propKey === STYLE ? this._previousStyleCopy : lastProps != null ? lastProps[propKey] : undefined; 54578 if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) { 54579 continue; 54580 } 54581 if (propKey === STYLE) { 54582 if (nextProp) { 54583 if (true) { 54584 checkAndWarnForMutatedStyle(this._previousStyleCopy, this._previousStyle, this); 54585 this._previousStyle = nextProp; 54586 } 54587 nextProp = this._previousStyleCopy = _assign({}, nextProp); 54588 } else { 54589 this._previousStyleCopy = null; 54590 } 54591 if (lastProp) { 54592 // Unset styles on `lastProp` but not on `nextProp`. 54593 for (styleName in lastProp) { 54594 if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) { 54595 styleUpdates = styleUpdates || {}; 54596 styleUpdates[styleName] = ''; 54597 } 54598 } 54599 // Update styles that changed since `lastProp`. 54600 for (styleName in nextProp) { 54601 if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) { 54602 styleUpdates = styleUpdates || {}; 54603 styleUpdates[styleName] = nextProp[styleName]; 54604 } 54605 } 54606 } else { 54607 // Relies on `updateStylesByID` not mutating `styleUpdates`. 54608 styleUpdates = nextProp; 54609 } 54610 } else if (registrationNameModules.hasOwnProperty(propKey)) { 54611 if (nextProp) { 54612 enqueuePutListener(this, propKey, nextProp, transaction); 54613 } else if (lastProp) { 54614 deleteListener(this, propKey); 54615 } 54616 } else if (isCustomComponent(this._tag, nextProps)) { 54617 if (!RESERVED_PROPS.hasOwnProperty(propKey)) { 54618 DOMPropertyOperations.setValueForAttribute(getNode(this), propKey, nextProp); 54619 } 54620 } else if (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) { 54621 var node = getNode(this); 54622 // If we're updating to null or undefined, we should remove the property 54623 // from the DOM node instead of inadvertently setting to a string. This 54624 // brings us in line with the same behavior we have on initial render. 54625 if (nextProp != null) { 54626 DOMPropertyOperations.setValueForProperty(node, propKey, nextProp); 54627 } else { 54628 DOMPropertyOperations.deleteValueForProperty(node, propKey); 54629 } 54630 } 54631 } 54632 if (styleUpdates) { 54633 CSSPropertyOperations.setValueForStyles(getNode(this), styleUpdates, this); 54634 } 54635 }, 54636 54637 /** 54638 * Reconciles the children with the various properties that affect the 54639 * children content. 54640 * 54641 * @param {object} lastProps 54642 * @param {object} nextProps 54643 * @param {ReactReconcileTransaction} transaction 54644 * @param {object} context 54645 */ 54646 _updateDOMChildren: function (lastProps, nextProps, transaction, context) { 54647 var lastContent = CONTENT_TYPES[typeof lastProps.children] ? lastProps.children : null; 54648 var nextContent = CONTENT_TYPES[typeof nextProps.children] ? nextProps.children : null; 54649 54650 var lastHtml = lastProps.dangerouslySetInnerHTML && lastProps.dangerouslySetInnerHTML.__html; 54651 var nextHtml = nextProps.dangerouslySetInnerHTML && nextProps.dangerouslySetInnerHTML.__html; 54652 54653 // Note the use of `!=` which checks for null or undefined. 54654 var lastChildren = lastContent != null ? null : lastProps.children; 54655 var nextChildren = nextContent != null ? null : nextProps.children; 54656 54657 // If we're switching from children to content/html or vice versa, remove 54658 // the old content
54659 var lastHasContentOrHtml = lastContent != null || lastHtml != null; 54660 var nextHasContentOrHtml = nextContent != null || nextHtml != null; 54661 if (lastChildren != null && nextChildren == null) { 54662 this.updateChildren(null, transaction, context); 54663 } else if (lastHasContentOrHtml && !nextHasContentOrHtml) { 54664 this.updateTextContent(''); 54665 if (true) { 54666 ReactInstrumentation.debugTool.onSetChildren(this._debugID, []); 54667 } 54668 } 54669 54670 if (nextContent != null) { 54671 if (lastContent !== nextContent) { 54672 this.updateTextContent('' + nextContent); 54673 if (true) { 54674 setAndValidateContentChildDev.call(this, nextContent); 54675 } 54676 } 54677 } else if (nextHtml != null) { 54678 if (lastHtml !== nextHtml) { 54679 this.updateMarkup('' + nextHtml); 54680 } 54681 if (true) { 54682 ReactInstrumentation.debugTool.onSetChildren(this._debugID, []); 54683 } 54684 } else if (nextChildren != null) { 54685 if (true) { 54686 setAndValidateContentChildDev.call(this, null); 54687 } 54688 54689 this.updateChildren(nextChildren, transaction, context); 54690 } 54691 }, 54692 54693 getHostNode: function () { 54694 return getNode(this); 54695 }, 54696 54697 /** 54698 * Destroys all event registrations for this instance. Does not remove from 54699 * the DOM. That must be done by the parent. 54700 * 54701 * @internal 54702 */ 54703 unmountComponent: function (safely) { 54704 switch (this._tag) { 54705 case 'audio': 54706 case 'form': 54707 case 'iframe': 54708 case 'img': 54709 case 'link': 54710 case 'object': 54711 case 'source': 54712 case 'video': 54713 var listeners = this._wrapperState.listeners; 54714 if (listeners) { 54715 for (var i = 0; i < listeners.length; i++) { 54716 listeners[i].remove(); 54717 } 54718 } 54719 break; 54720 case 'input': 54721 case 'textarea': 54722 inputValueTracking.stopTracking(this); 54723 break; 54724 case 'html': 54725 case 'head': 54726 case 'body': 54727 /** 54728 * Components like <html> <head> and <body> can't be removed or added 54729 * easily in a cross-browser way, however it's valuable to be able to 54730 * take advantage of React's reconciliation for styling and <title> 54731 * management. So we just document it and throw in dangerous cases. 54732 */ 54733 true ? true ? invariant(false, '<%s> tried to unmount. Because of cross-browser quirks it is impossible to unmount some top-level components (eg <html>, <head>, and <body>) reliably and efficiently. To fix this, have a single top-level component that never unmounts render these elements.', this._tag) : _prodInvariant('66', this._tag) : void 0; 54734 break; 54735 } 54736 54737 this.unmountChildren(safely); 54738 ReactDOMComponentTree.uncacheNode(this); 54739 EventPluginHub.deleteAllListeners(this); 54740 this._rootNodeID = 0; 54741 this._domID = 0; 54742 this._wrapperState = null; 54743 54744 if (true) { 54745 setAndValidateContentChildDev.call(this, null); 54746 } 54747 }, 54748 54749 getPublicInstance: function () { 54750 return getNode(this); 54751 } 54752}; 54753 54754_assign(ReactDOMComponent.prototype, ReactDOMComponent.Mixin, ReactMultiChild.Mixin); 54755 54756module.exports = ReactDOMComponent; 54757 54758/***/ }), 54759/* 447 */ 54760/***/ (function(module, exports, __webpack_require__) { 54761 54762"use strict"; 54763/** 54764 * Copyright (c) 2013-present, Facebook, Inc. 54765 * 54766 * This source code is licensed under the MIT license found in the 54767 * LICENSE file in the root directory of this source tree. 54768 * 54769 */ 54770 54771 54772 54773var ReactDOMComponentTree = __webpack_require__(15); 54774 54775var focusNode = __webpack_require__(177); 54776 54777var AutoFocusUtils = { 54778 focusDOMComponent: function () { 54779 focusNode(ReactDOMComponentTree.getNodeFromInstance(this)); 54780 } 54781}; 54782 54783module.exports = AutoFocusUtils; 54784 54785/***/ }), 54786/* 448 */ 54787/***/ (function(module, exports, __webpack_require__) { 54788 54789"use strict"; 54790/** 54791 * Copyright (c) 2013-present, Facebook, Inc. 54792 * 54793 * This source code is licensed under the MIT license found in the 54794 * LICENSE file in the root directory of this source tree. 54795 * 54796 */ 54797 54798 54799 54800var CSSProperty = __webpack_require__(178); 54801var ExecutionEnvironment = __webpack_require__(18); 54802var ReactInstrumentation = __webpack_require__(24); 54803 54804var camelizeStyleName = __webpack_require__(449); 54805var dangerousStyleValue = __webpack_require__(451); 54806var hyphenateStyleName = __webpack_require__(452); 54807var memoizeStringOnly = __webpack_require__(454); 54808var warning = __webpack_require__(11); 54809 54810var processStyleName = memoizeStringOnly(function (styleName) { 54811 return hyphenateStyleName(styleName); 54812}); 54813 54814var hasShorthandPropertyBug = false;
54815var styleFloatAccessor = 'cssFloat'; 54816if (ExecutionEnvironment.canUseDOM) { 54817 var tempStyle = document.createElement('div').style; 54818 try { 54819 // IE8 throws "Invalid argument." if resetting shorthand style properties. 54820 tempStyle.font = ''; 54821 } catch (e) { 54822 hasShorthandPropertyBug = true; 54823 } 54824 // IE8 only supports accessing cssFloat (standard) as styleFloat 54825 if (document.documentElement.style.cssFloat === undefined) { 54826 styleFloatAccessor = 'styleFloat'; 54827 } 54828} 54829 54830if (true) { 54831 // 'msTransform' is correct, but the other prefixes should be capitalized 54832 var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/; 54833 54834 // style values shouldn't contain a semicolon 54835 var badStyleValueWithSemicolonPattern = /;\s*$/; 54836 54837 var warnedStyleNames = {}; 54838 var warnedStyleValues = {}; 54839 var warnedForNaNValue = false; 54840 54841 var warnHyphenatedStyleName = function (name, owner) { 54842 if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { 54843 return; 54844 } 54845 54846 warnedStyleNames[name] = true; 54847 true ? warning(false, 'Unsupported style property %s. Did you mean %s?%s', name, camelizeStyleName(name), checkRenderMessage(owner)) : void 0; 54848 }; 54849 54850 var warnBadVendoredStyleName = function (name, owner) { 54851 if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { 54852 return; 54853 } 54854 54855 warnedStyleNames[name] = true; 54856 true ? warning(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?%s', name, name.charAt(0).toUpperCase() + name.slice(1), checkRenderMessage(owner)) : void 0; 54857 }; 54858 54859 var warnStyleValueWithSemicolon = function (name, value, owner) { 54860 if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) { 54861 return; 54862 } 54863 54864 warnedStyleValues[value] = true; 54865 true ? warning(false, "Style property values shouldn't contain a semicolon.%s " + 'Try "%s: %s" instead.', checkRenderMessage(owner), name, value.replace(badStyleValueWithSemicolonPattern, '')) : void 0; 54866 }; 54867 54868 var warnStyleValueIsNaN = function (name, value, owner) { 54869 if (warnedForNaNValue) { 54870 return; 54871 } 54872 54873 warnedForNaNValue = true; 54874 true ? warning(false, '`NaN` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage(owner)) : void 0; 54875 }; 54876 54877 var checkRenderMessage = function (owner) { 54878 if (owner) { 54879 var name = owner.getName(); 54880 if (name) { 54881 return ' Check the render method of `' + name + '`.'; 54882 } 54883 } 54884 return ''; 54885 }; 54886 54887 /** 54888 * @param {string} name 54889 * @param {*} value 54890 * @param {ReactDOMComponent} component 54891 */ 54892 var warnValidStyle = function (name, value, component) { 54893 var owner; 54894 if (component) { 54895 owner = component._currentElement._owner; 54896 } 54897 if (name.indexOf('-') > -1) { 54898 warnHyphenatedStyleName(name, owner); 54899 } else if (badVendoredStyleNamePattern.test(name)) { 54900 warnBadVendoredStyleName(name, owner); 54901 } else if (badStyleValueWithSemicolonPattern.test(value)) { 54902 warnStyleValueWithSemicolon(name, value, owner); 54903 } 54904 54905 if (typeof value === 'number' && isNaN(value)) { 54906 warnStyleValueIsNaN(name, value, owner); 54907 } 54908 }; 54909} 54910 54911/** 54912 * Operations for dealing with CSS properties. 54913 */ 54914var CSSPropertyOperations = { 54915 /** 54916 * Serializes a mapping of style properties for use as inline styles: 54917 * 54918 * > createMarkupForStyles({width: '200px', height: 0}) 54919 * "width:200px;height:0;" 54920 * 54921 * Undefined values are ignored so that declarative programming is easier. 54922 * The result should be HTML-escaped before insertion into the DOM. 54923 * 54924 * @param {object} styles 54925 * @param {ReactDOMComponent} component 54926 * @return {?string} 54927 */ 54928 createMarkupForStyles: function (styles, component) { 54929 var serialized = ''; 54930 for (var styleName in styles) { 54931 if (!styles.hasOwnProperty(styleName)) { 54932 continue; 54933 } 54934 var isCustomProperty = styleName.indexOf('--') === 0; 54935 var styleValue = styles[styleName]; 54936 if (true) { 54937 if (!isCustomProperty) { 54938 warnValidStyle(styleName, styleValue, component); 54939 } 54940 } 54941 if (styleValue != null) { 54942 serialized += processStyleName(styleName) + ':'; 54943 serialized += dangerousStyleValue(styleName, styleValue, component, isCustomProperty) + ';'; 54944 } 54945 } 54946 return serialized || null; 54947 }, 54948 54949 /** 54950 * Sets the value for multiple styles on a node. If a value is specified as 54951 * '' (empty string), the corresponding style property will be unset. 54952 * 54953 * @param {DOMElement} node 54954 * @param {object} styles 54955 * @param {ReactDOMComponent} component 54956 */ 54957 setValueForStyles: function (node, styles, component) { 54958 if (true) { 54959 ReactInstrumentation.debugTool.onHostOperation({ 54960 instanceID: component._debugID, 54961 type: 'update styles', 54962 payload: styles 54963 }); 54964 } 54965 54966 var style = node.style; 54967 for (var styleName in styles) { 54968 if (!styles.hasOwnProperty(styleName)) { 54969 continue; 54970 } 54971 var isCustomProperty = styleName.indexOf('--') === 0; 54972 if (true) { 54973 if (!isCustomProperty) { 54974 warnValidStyle(styleName, styles[styleName], component); 54975 } 54976 } 54977 var styleValue = dangerousStyleValue(styleName, styles[styleName], component, isCustomProperty); 54978 if (styleName === 'float' || styleName === 'cssFloat') { 54979 styleName = styleFloatAccessor; 54980 } 54981 if (isCustomProperty) { 54982 style.setProperty(styleName, styleValue); 54983 } else if (styleValue) { 54984 style[styleName] = styleValue; 54985 } else { 54986 var expansion = hasShorthandPropertyBug && CSSProperty.shorthandPropertyExpansions[styleName]; 54987 if (expansion) { 54988 // Shorthand property that IE8 won't like unsetting, so unset each 54989 // component to placate it 54990 for (var individualStyleName in expansion) { 54991 style[individualStyleName] = ''; 54992 } 54993 } else { 54994 style[styleName] = ''; 54995 } 54996 } 54997 } 54998 } 54999}; 55000 55001module.exports = CSSPropertyOperations; 55002 55003/***/ }), 55004/* 449 */ 55005/***/ (function(module, exports, __webpack_require__) { 55006 55007"use strict"; 55008/** 55009 * Copyright (c) 2013-present, Facebook, Inc. 55010 * 55011 * This source code is licensed under the MIT license found in the 55012 * LICENSE file in the root directory of this source tree. 55013 * 55014 * @typechecks 55015 */ 55016 55017 55018 55019var camelize = __webpack_require__(450); 55020 55021var msPattern = /^-ms-/; 55022 55023/** 55024 * Camelcases a hyphenated CSS property name, for example: 55025 * 55026 * > camelizeStyleName('background-color') 55027 * < "backgroundColor" 55028 * > camelizeStyleName('-moz-transition') 55029 * < "MozTransition" 55030 * > camelizeStyleName('-ms-transition') 55031 * < "msTransition" 55032 * 55033 * As Andi Smith suggests 55034 * (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix 55035 * is converted to lowercase `ms`. 55036 * 55037 * @param {string} string 55038 * @return {string} 55039 */ 55040function camelizeStyleName(string) { 55041 return camelize(string.replace(msPattern, 'ms-')); 55042} 55043 55044module.exports = camelizeStyleName; 55045 55046/***/ }), 55047/* 450 */ 55048/***/ (function(module, exports, __webpack_require__) { 55049 55050"use strict"; 55051 55052 55053/** 55054 * Copyright (c) 2013-present, Facebook, Inc. 55055 * 55056 * This source code is licensed under the MIT license found in the 55057 * LICENSE file in the root directory of this source tree. 55058 * 55059 * @typechecks 55060 */ 55061 55062var _hyphenPattern = /-(.)/g; 55063 55064/** 55065 * Camelcases a hyphenated string, for example: 55066 * 55067 * > camelize('background-color') 55068 * < "backgroundColor" 55069 * 55070 * @param {string} string 55071 * @return {string} 55072 */ 55073function camelize(string) { 55074 return string.replace(_hyphenPattern, function (_, character) { 55075 return character.toUpperCase(); 55076 }); 55077} 55078 55079module.exports = camelize; 55080 55081/***/ }), 55082/* 451 */ 55083/***/ (function(module, exports, __webpack_require__) { 55084 55085"use strict"; 55086/** 55087 * Copyright (c) 2013-present, Facebook, Inc. 55088 * 55089 * This source code is licensed under the MIT license found in the 55090 * LICENSE file in the root directory of this source tree. 55091 * 55092 */ 55093 55094 55095 55096var CSSProperty = __webpack_require__(178); 55097var warning = __webpack_require__(11); 55098 55099var isUnitlessNumber = CSSProperty.isUnitlessNumber; 55100var styleWarnings = {}; 55101 55102/** 55103 * Convert a value into the proper css writable value. The style name `name` 55104 * should be logical (no hyphens), as specified 55105 * in `CSSProperty.isUnitlessNumber`. 55106 * 55107 * @param {string} name CSS property name such as `topMargin`. 55108 * @param {*} value CSS property value such as `10px`. 55109 * @param {ReactDOMComponent} component 55110 * @return {string} Normalized style value with dimensions applied. 55111 */ 55112function dangerousStyleValue(name, value, component, isCustomProperty) { 55113 // Note that we've removed escapeTextForBrowser() calls here since the 55114 // whole string will be escaped when the attribute is injected into 55115 // the markup. If you provide unsafe user data here they can inject 55116 // arbitrary CSS which may be problematic (I couldn't repro this): 55117 // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet 55118 // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/ 55119 // This is not an XSS hole but instead a potential CSS injection issue 55120 // which has lead to a greater discussion about how we're going to 55121 // trust URLs moving forward. See #2115901 55122 55123 var isEmpty = value == null || typeof value === 'boolean' || value === ''; 55124 if (isEmpty) { 55125 return ''; 55126 } 55127 55128 var isNonNumeric = isNaN(value); 55129 if (isCustomProperty || isNonNumeric || value === 0 || isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]) { 55130 return '' + value; // cast to string 55131 } 55132 55133 if (typeof value === 'string') { 55134 if (true) { 55135 // Allow '0' to pass through without warning. 0 is already special and 55136 // doesn't require units, so we don't need to warn about it. 55137 if (component && value !== '0') { 55138 var owner = component._currentElement._owner; 55139 var ownerName = owner ? owner.getName() : null; 55140 if (ownerName && !styleWarnings[ownerName]) { 55141 styleWarnings[ownerName] = {}; 55142 } 55143 var warned = false;
55144 if (ownerName) { 55145 var warnings = styleWarnings[ownerName]; 55146 warned = warnings[name]; 55147 if (!warned) { 55148 warnings[name] = true; 55149 } 55150 } 55151 if (!warned) { 55152 true ? warning(false, 'a `%s` tag (owner: `%s`) was passed a numeric string value ' + 'for CSS property `%s` (value: `%s`) which will be treated ' + 'as a unitless number in a future version of React.', component._currentElement.type, ownerName || 'unknown', name, value) : void 0; 55153 } 55154 } 55155 } 55156 value = value.trim(); 55157 } 55158 return value + 'px'; 55159} 55160 55161module.exports = dangerousStyleValue; 55162 55163/***/ }), 55164/* 452 */ 55165/***/ (function(module, exports, __webpack_require__) { 55166 55167"use strict"; 55168/** 55169 * Copyright (c) 2013-present, Facebook, Inc. 55170 * 55171 * This source code is licensed under the MIT license found in the 55172 * LICENSE file in the root directory of this source tree. 55173 * 55174 * @typechecks 55175 */ 55176 55177 55178 55179var hyphenate = __webpack_require__(453); 55180 55181var msPattern = /^ms-/; 55182 55183/** 55184 * Hyphenates a camelcased CSS property name, for example: 55185 * 55186 * > hyphenateStyleName('backgroundColor') 55187 * < "background-color" 55188 * > hyphenateStyleName('MozTransition') 55189 * < "-moz-transition" 55190 * > hyphenateStyleName('msTransition') 55191 * < "-ms-transition" 55192 * 55193 * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix 55194 * is converted to `-ms-`. 55195 * 55196 * @param {string} string 55197 * @return {string} 55198 */ 55199function hyphenateStyleName(string) { 55200 return hyphenate(string).replace(msPattern, '-ms-'); 55201} 55202 55203module.exports = hyphenateStyleName; 55204 55205/***/ }), 55206/* 453 */ 55207/***/ (function(module, exports, __webpack_require__) { 55208 55209"use strict"; 55210 55211 55212/** 55213 * Copyright (c) 2013-present, Facebook, Inc. 55214 * 55215 * This source code is licensed under the MIT license found in the 55216 * LICENSE file in the root directory of this source tree. 55217 * 55218 * @typechecks 55219 */ 55220 55221var _uppercasePattern = /([A-Z])/g; 55222 55223/** 55224 * Hyphenates a camelcased string, for example: 55225 * 55226 * > hyphenate('backgroundColor') 55227 * < "background-color" 55228 * 55229 * For CSS style names, use `hyphenateStyleName` instead which works properly 55230 * with all vendor prefixes, including `ms`. 55231 * 55232 * @param {string} string 55233 * @return {string} 55234 */ 55235function hyphenate(string) { 55236 return string.replace(_uppercasePattern, '-$1').toLowerCase(); 55237} 55238 55239module.exports = hyphenate; 55240 55241/***/ }), 55242/* 454 */ 55243/***/ (function(module, exports, __webpack_require__) { 55244 55245"use strict"; 55246/** 55247 * Copyright (c) 2013-present, Facebook, Inc. 55248 * 55249 * This source code is licensed under the MIT license found in the 55250 * LICENSE file in the root directory of this source tree. 55251 * 55252 * 55253 * @typechecks static-only 55254 */ 55255 55256 55257 55258/** 55259 * Memoizes the return value of a function that accepts one string argument. 55260 */ 55261 55262function memoizeStringOnly(callback) { 55263 var cache = {}; 55264 return function (string) { 55265 if (!cache.hasOwnProperty(string)) { 55266 cache[string] = callback.call(this, string); 55267 } 55268 return cache[string]; 55269 }; 55270} 55271 55272module.exports = memoizeStringOnly; 55273 55274/***/ }), 55275/* 455 */ 55276/***/ (function(module, exports, __webpack_require__) { 55277 55278"use strict"; 55279/** 55280 * Copyright (c) 2013-present, Facebook, Inc. 55281 * 55282 * This source code is licensed under the MIT license found in the 55283 * LICENSE file in the root directory of this source tree. 55284 * 55285 */ 55286 55287 55288 55289var escapeTextContentForBrowser = __webpack_require__(83); 55290 55291/** 55292 * Escapes attribute value to prevent scripting attacks. 55293 * 55294 * @param {*} value Value to escape. 55295 * @return {string} An escaped string. 55296 */ 55297function quoteAttributeValueForBrowser(value) { 55298 return '"' + escapeTextContentForBrowser(value) + '"'; 55299} 55300 55301module.exports = quoteAttributeValueForBrowser; 55302 55303/***/ }), 55304/* 456 */ 55305/***/ (function(module, exports, __webpack_require__) { 55306 55307"use strict"; 55308/** 55309 * Copyright (c) 2013-present, Facebook, Inc. 55310 * 55311 * This source code is licensed under the MIT license found in the 55312 * LICENSE file in the root directory of this source tree. 55313 * 55314 */ 55315 55316 55317 55318var EventPluginHub = __webpack_require__(51); 55319 55320function runEventQueueInBatch(events) { 55321 EventPluginHub.enqueueEvents(events); 55322 EventPluginHub.processEventQueue(false); 55323} 55324 55325var ReactEventEmitterMixin = { 55326 /** 55327 * Streams a fired top-level event to `EventPluginHub` where plugins have the 55328 * opportunity to create `ReactEvent`s to be dispatched. 55329 */ 55330 handleTopLevel: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) { 55331 var events = EventPluginHub.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); 55332 runEventQueueInBatch(events); 55333 } 55334}; 55335 55336module.exports = ReactEventEmitterMixin; 55337 55338/***/ }), 55339/* 457 */ 55340/***/ (function(module, exports, __webpack_require__) { 55341 55342"use strict"; 55343/** 55344 * Copyright (c) 2013-present, Facebook, Inc. 55345 * 55346 * This source code is licensed under the MIT license found in the 55347 * LICENSE file in the root directory of this source tree. 55348 * 55349 */ 55350 55351 55352 55353var ExecutionEnvironment = __webpack_require__(18); 55354 55355/** 55356 * Generate a mapping of standard vendor prefixes using the defined style property and event name. 55357 * 55358 * @param {string} styleProp 55359 * @param {string} eventName 55360 * @returns {object} 55361 */ 55362function makePrefixMap(styleProp, eventName) { 55363 var prefixes = {}; 55364 55365 prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(); 55366 prefixes['Webkit' + styleProp] = 'webkit' + eventName; 55367 prefixes['Moz' + styleProp] = 'moz' + eventName; 55368 prefixes['ms' + styleProp] = 'MS' + eventName; 55369 prefixes['O' + styleProp] = 'o' + eventName.toLowerCase(); 55370 55371 return prefixes; 55372} 55373 55374/** 55375 * A list of event names to a configurable list of vendor prefixes. 55376 */ 55377var vendorPrefixes = { 55378 animationend: makePrefixMap('Animation', 'AnimationEnd'), 55379 animationiteration: makePrefixMap('Animation', 'AnimationIteration'), 55380 animationstart: makePrefixMap('Animation', 'AnimationStart'), 55381 transitionend: makePrefixMap('Transition', 'TransitionEnd') 55382}; 55383 55384/** 55385 * Event names that have already been detected and prefixed (if applicable). 55386 */ 55387var prefixedEventNames = {}; 55388 55389/** 55390 * Element to check for prefixes on. 55391 */ 55392var style = {}; 55393 55394/** 55395 * Bootstrap if a DOM exists. 55396 */ 55397if (ExecutionEnvironment.canUseDOM) { 55398 style = document.createElement('div').style; 55399 55400 // On some platforms, in particular some releases of Android 4.x, 55401 // the un-prefixed "animation" and "transition" properties are defined on the 55402 // style object but the events that fire will still be prefixed, so we need 55403 // to check if the un-prefixed events are usable, and if not remove them from the map. 55404 if (!('AnimationEvent' in window)) { 55405 delete vendorPrefixes.animationend.animation; 55406 delete vendorPrefixes.animationiteration.animation; 55407 delete vendorPrefixes.animationstart.animation; 55408 } 55409 55410 // Same as above 55411 if (!('TransitionEvent' in window)) { 55412 delete vendorPrefixes.transitionend.transition; 55413 } 55414} 55415 55416/** 55417 * Attempts to determine the correct vendor prefixed event name. 55418 * 55419 * @param {string} eventName 55420 * @returns {string} 55421 */ 55422function getVendorPrefixedEventName(eventName) { 55423 if (prefixedEventNames[eventName]) { 55424 return prefixedEventNames[eventName]; 55425 } else if (!vendorPrefixes[eventName]) { 55426 return eventName; 55427 } 55428
55429 var prefixMap = vendorPrefixes[eventName]; 55430 55431 for (var styleProp in prefixMap) { 55432 if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) { 55433 return prefixedEventNames[eventName] = prefixMap[styleProp]; 55434 } 55435 } 55436 55437 return ''; 55438} 55439 55440module.exports = getVendorPrefixedEventName; 55441 55442/***/ }), 55443/* 458 */ 55444/***/ (function(module, exports, __webpack_require__) { 55445 55446"use strict"; 55447/** 55448 * Copyright (c) 2013-present, Facebook, Inc. 55449 * 55450 * This source code is licensed under the MIT license found in the 55451 * LICENSE file in the root directory of this source tree. 55452 * 55453 */ 55454 55455 55456 55457var _prodInvariant = __webpack_require__(12), 55458 _assign = __webpack_require__(14); 55459 55460var DOMPropertyOperations = __webpack_require__(179); 55461var LinkedValueUtils = __webpack_require__(114); 55462var ReactDOMComponentTree = __webpack_require__(15); 55463var ReactUpdates = __webpack_require__(31); 55464 55465var invariant = __webpack_require__(10); 55466var warning = __webpack_require__(11); 55467 55468var didWarnValueLink = false; 55469var didWarnCheckedLink = false; 55470var didWarnValueDefaultValue = false; 55471var didWarnCheckedDefaultChecked = false; 55472var didWarnControlledToUncontrolled = false; 55473var didWarnUncontrolledToControlled = false; 55474 55475function forceUpdateIfMounted() { 55476 if (this._rootNodeID) { 55477 // DOM component is still mounted; update 55478 ReactDOMInput.updateWrapper(this); 55479 } 55480} 55481 55482function isControlled(props) { 55483 var usesChecked = props.type === 'checkbox' || props.type === 'radio'; 55484 return usesChecked ? props.checked != null : props.value != null; 55485} 55486 55487/** 55488 * Implements an <input> host component that allows setting these optional 55489 * props: `checked`, `value`, `defaultChecked`, and `defaultValue`. 55490 * 55491 * If `checked` or `value` are not supplied (or null/undefined), user actions 55492 * that affect the checked state or value will trigger updates to the element. 55493 * 55494 * If they are supplied (and not null/undefined), the rendered element will not 55495 * trigger updates to the element. Instead, the props must change in order for 55496 * the rendered element to be updated. 55497 * 55498 * The rendered element will be initialized as unchecked (or `defaultChecked`) 55499 * with an empty value (or `defaultValue`). 55500 * 55501 * @see http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html 55502 */ 55503var ReactDOMInput = { 55504 getHostProps: function (inst, props) { 55505 var value = LinkedValueUtils.getValue(props); 55506 var checked = LinkedValueUtils.getChecked(props); 55507 55508 var hostProps = _assign({ 55509 // Make sure we set .type before any other properties (setting .value 55510 // before .type means .value is lost in IE11 and below) 55511 type: undefined, 55512 // Make sure we set .step before .value (setting .value before .step 55513 // means .value is rounded on mount, based upon step precision) 55514 step: undefined, 55515 // Make sure we set .min & .max before .value (to ensure proper order 55516 // in corner cases such as min or max deriving from value, e.g. Issue #7170) 55517 min: undefined, 55518 max: undefined 55519 }, props, { 55520 defaultChecked: undefined, 55521 defaultValue: undefined, 55522 value: value != null ? value : inst._wrapperState.initialValue, 55523 checked: checked != null ? checked : inst._wrapperState.initialChecked, 55524 onChange: inst._wrapperState.onChange 55525 }); 55526 55527 return hostProps; 55528 }, 55529 55530 mountWrapper: function (inst, props) { 55531 if (true) { 55532 LinkedValueUtils.checkPropTypes('input', props, inst._currentElement._owner); 55533 55534 var owner = inst._currentElement._owner; 55535 55536 if (props.valueLink !== undefined && !didWarnValueLink) { 55537 true ? warning(false, '`valueLink` prop on `input` is deprecated; set `value` and `onChange` instead.') : void 0; 55538 didWarnValueLink = true; 55539 } 55540 if (props.checkedLink !== undefined && !didWarnCheckedLink) { 55541 true ? warning(false, '`checkedLink` prop on `input` is deprecated; set `value` and `onChange` instead.') : void 0; 55542 didWarnCheckedLink = true; 55543 } 55544 if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) { 55545 true ? warning(false, '%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', owner && owner.getName() || 'A c
55545omponent', props.type) : void 0; 55546 didWarnCheckedDefaultChecked = true; 55547 } 55548 if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) { 55549 true ? warning(false, '%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', owner && owner.getName() || 'A component', props.type) : void 0; 55550 didWarnValueDefaultValue = true; 55551 } 55552 } 55553 55554 var defaultValue = props.defaultValue; 55555 inst._wrapperState = { 55556 initialChecked: props.checked != null ? props.checked : props.defaultChecked, 55557 initialValue: props.value != null ? props.value : defaultValue, 55558 listeners: null, 55559 onChange: _handleChange.bind(inst), 55560 controlled: isControlled(props) 55561 }; 55562 }, 55563 55564 updateWrapper: function (inst) { 55565 var props = inst._currentElement.props; 55566 55567 if (true) { 55568 var controlled = isControlled(props); 55569 var owner = inst._currentElement._owner; 55570 55571 if (!inst._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) { 55572 true ? warning(false, '%s is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', owner && owner.getName() || 'A c
55572omponent', props.type) : void 0; 55573 didWarnUncontrolledToControlled = true; 55574 } 55575 if (inst._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) { 55576 true ? warning(false, '%s is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', owner && owner.getName() || 'A component', props.type) : void 0; 55577 didWarnControlledToUncontrolled = true; 55578 } 55579 } 55580 55581 // TODO: Shouldn't this be getChecked(props)? 55582 var checked = props.checked; 55583 if (checked != null) { 55584 DOMPropertyOperations.setValueForProperty(ReactDOMComponentTree.getNodeFromInstance(inst), 'checked', checked || false); 55585 } 55586 55587 var node = ReactDOMComponentTree.getNodeFromInstance(inst); 55588 var value = LinkedValueUtils.getValue(props); 55589 if (value != null) { 55590 if (value === 0 && node.value === '') { 55591 node.value = '0'; 55592 // Note: IE9 reports a number inputs as 'text', so check props instead. 55593 } else if (props.type === 'number') { 55594 // Simulate `input.valueAsNumber`. IE9 does not support it 55595 var valueAsNumber = parseFloat(node.value, 10) || 0; 55596 55597 if ( 55598 // eslint-disable-next-line 55599 value != valueAsNumber || 55600 // eslint-disable-next-line 55601 value == valueAsNumber && node.value != value) { 55602 // Cast `value` to a string to ensure the value is set correctly. While 55603 // browsers typically do this as necessary, jsdom doesn't. 55604 node.value = '' + value; 55605 } 55606 } else if (node.value !== '' + value) { 55607 // Cast `value` to a string to ensure the value is set correctly. While 55608 // browsers typically do this as necessary, jsdom doesn't. 55609 node.value = '' + value; 55610 } 55611 } else { 55612 if (props.value == null && props.defaultValue != null) { 55613 // In Chrome, assigning defaultValue to certain input types triggers input validation. 55614 // For number inputs, the display value loses trailing decimal points. For email inputs, 55615 // Chrome raises "The specified value <x> is not a valid email address". 55616 // 55617 // Here we check to see if the defaultValue has actually changed, avoiding these problems 55618 // when the user is inputting text 55619 // 55620 // https://github.com/facebook/react/issues/7253 55621 if (node.defaultValue !== '' + props.defaultValue) { 55622 node.defaultValue = '' + props.defaultValue; 55623 } 55624 } 55625 if (props.checked == null && props.defaultChecked != null) { 55626 node.defaultChecked = !!props.defaultChecked; 55627 } 55628 } 55629 }, 55630 55631 postMountWrapper: function (inst) { 55632 var props = inst._currentElement.props; 55633 55634 // This is in postMount because we need access to the DOM node, which is not 55635 // available until after the component has mounted. 55636 var node = ReactDOMComponentTree.getNodeFromInstance(inst); 55637 55638 // Detach value from defaultValue. We won't do anything if we're working on 55639 // submit or reset inputs as those values & defaultValues are linked. They 55640 // are not resetable nodes so this operation doesn't matter and actually 55641 // removes browser-default values (eg "Submit Query") when no value is 55642 // provided. 55643 55644 switch (props.type) { 55645 case 'submit': 55646 case 'reset': 55647 break; 55648 case 'color': 55649 case 'date': 55650 case 'datetime': 55651 case 'datetime-local': 55652 case 'month': 55653 case 'time': 55654 case 'week': 55655 // This fixes the no-show issue on iOS Safari and Android Chrome: 55656 // https://github.com/facebook/react/issues/7233 55657 node.value = ''; 55658 node.value = node.defaultValue; 55659 break; 55660 default: 55661 node.value = node.value; 55662 break; 55663 } 55664 55665 // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug 55666 // this is needed to work around a chrome bug where setting defaultChecked 55667 // will sometimes influence the value of checked (even after detachment). 55668 // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416 55669 // We need to temporarily unset name to avoid disrupting radio button groups. 55670 var name = node.name; 55671 if (name !== '') { 55672 node.name = ''; 55673 } 55674 node.defaultChecked = !node.defaultChecked; 55675 node.defaultChecked = !node.defaultChecked; 55676 if (name !== '') { 55677 node.name = name; 55678 } 55679 } 55680}; 55681 55682function _handleChange(event) { 55683 var props = this._currentElement.props; 55684 55685 var returnValue = LinkedValueUtils.executeOnChange(props, event); 55686 55687 // Here we use asap to wait until all updates have propagated, which 55688 // is important when using controlled components within layers: 55689 // https://github.com/facebook/react/issues/1698 55690 ReactUpdates.asap(forceUpdateIfMounted, this); 55691 55692 var name = props.name; 55693 if (props.type === 'radio' && name != null) { 55694 var rootNode = ReactDOMComponentTree.getNodeFromInstance(this); 55695 var queryRoot = rootNode; 55696 55697 while (queryRoot.parentNode) { 55698 queryRoot = queryRoot.parentNode; 55699 } 55700 55701 // If `rootNode.form` was non-null, then we could try `form.elements`, 55702 // but that sometimes behaves strangely in IE8. We could also try using 55703 // `form.getElementsByName`, but that will only return direct children 55704 // and won't include inputs that use the HTML5 `form=` attribute. Since 55705 // the input might not even be in a form, let's just use the global 55706 // `querySelectorAll` to ensure we don't miss anything. 55707 var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]'); 55708 55709 for (var i = 0; i < group.length; i++) { 55710 var otherNode = group[i];
55711 if (otherNode === rootNode || otherNode.form !== rootNode.form) { 55712 continue; 55713 } 55714 // This will throw if radio buttons rendered by different copies of React 55715 // and the same name are rendered into the same form (same as #1939). 55716 // That's probably okay; we don't support it just as we don't support 55717 // mixing React radio buttons with non-React ones. 55718 var otherInstance = ReactDOMComponentTree.getInstanceFromNode(otherNode); 55719 !otherInstance ? true ? invariant(false, 'ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.') : _prodInvariant('90') : void 0; 55720 // If this is a controlled radio button group, forcing the input that 55721 // was previously checked to update will cause it to be come re-checked 55722 // as appropriate. 55723 ReactUpdates.asap(forceUpdateIfMounted, otherInstance); 55724 } 55725 } 55726 55727 return returnValue; 55728} 55729 55730module.exports = ReactDOMInput; 55731 55732/***/ }), 55733/* 459 */ 55734/***/ (function(module, exports, __webpack_require__) { 55735 55736"use strict"; 55737/** 55738 * Copyright (c) 2013-present, Facebook, Inc. 55739 * 55740 * This source code is licensed under the MIT license found in the 55741 * LICENSE file in the root directory of this source tree. 55742 * 55743 */ 55744 55745 55746 55747var _assign = __webpack_require__(14); 55748 55749var React = __webpack_require__(48); 55750var ReactDOMComponentTree = __webpack_require__(15); 55751var ReactDOMSelect = __webpack_require__(181); 55752 55753var warning = __webpack_require__(11); 55754var didWarnInvalidOptionChildren = false; 55755 55756function flattenChildren(children) { 55757 var content = ''; 55758 55759 // Flatten children and warn if they aren't strings or numbers; 55760 // invalid types are ignored. 55761 React.Children.forEach(children, function (child) { 55762 if (child == null) { 55763 return; 55764 } 55765 if (typeof child === 'string' || typeof child === 'number') { 55766 content += child; 55767 } else if (!didWarnInvalidOptionChildren) { 55768 didWarnInvalidOptionChildren = true; 55769 true ? warning(false, 'Only strings and numbers are supported as <option> children.') : void 0; 55770 } 55771 }); 55772 55773 return content; 55774} 55775 55776/** 55777 * Implements an <option> host component that warns when `selected` is set. 55778 */ 55779var ReactDOMOption = { 55780 mountWrapper: function (inst, props, hostParent) { 55781 // TODO (yungsters): Remove support for `selected` in <option>. 55782 if (true) { 55783 true ? warning(props.selected == null, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.') : void 0; 55784 } 55785 55786 // Look up whether this option is 'selected' 55787 var selectValue = null; 55788 if (hostParent != null) { 55789 var selectParent = hostParent; 55790 55791 if (selectParent._tag === 'optgroup') { 55792 selectParent = selectParent._hostParent; 55793 } 55794 55795 if (selectParent != null && selectParent._tag === 'select') { 55796 selectValue = ReactDOMSelect.getSelectValueContext(selectParent); 55797 } 55798 } 55799 55800 // If the value is null (e.g., no specified value or after initial mount) 55801 // or missing (e.g., for <datalist>), we don't change props.selected 55802 var selected = null; 55803 if (selectValue != null) { 55804 var value; 55805 if (props.value != null) { 55806 value = props.value + ''; 55807 } else { 55808 value = flattenChildren(props.children); 55809 } 55810 selected = false; 55811 if (Array.isArray(selectValue)) { 55812 // multiple 55813 for (var i = 0; i < selectValue.length; i++) { 55814 if ('' + selectValue[i] === value) { 55815 selected = true; 55816 break; 55817 } 55818 } 55819 } else { 55820 selected = '' + selectValue === value; 55821 } 55822 } 55823 55824 inst._wrapperState = { selected: selected }; 55825 }, 55826 55827 postMountWrapper: function (inst) { 55828 // value="" should make a value attribute (#6219) 55829 var props = inst._currentElement.props; 55830 if (props.value != null) { 55831 var node = ReactDOMComponentTree.getNodeFromInstance(inst); 55832 node.setAttribute('value', props.value); 55833 } 55834 }, 55835 55836 getHostProps: function (inst, props) { 55837 var hostProps = _assign({ selected: undefined, children: undefined }, props); 55838 55839 // Read state only from initial mount because <select> updates value 55840 // manually; we need the initial state only for server rendering 55841 if (inst._wrapperState.selected != null) { 55842 hostProps.selected = inst._wrapperState.selected; 55843 } 55844 55845 var content = flattenChildren(props.children); 55846 55847 if (content) { 55848 hostProps.children = content; 55849 } 55850 55851 return hostProps; 55852 } 55853}; 55854 55855module.exports = ReactDOMOption; 55856 55857/***/ }), 55858/* 460 */ 55859/***/ (function(module, exports, __webpack_require__) { 55860 55861"use strict"; 55862/** 55863 * Copyright (c) 2013-present, Facebook, Inc. 55864 * 55865 * This source code is licensed under the MIT license found in the 55866 * LICENSE file in the root directory of this source tree. 55867 * 55868 */ 55869 55870 55871 55872var _prodInvariant = __webpack_require__(12), 55873 _assign = __webpack_require__(14); 55874 55875var LinkedValueUtils = __webpack_require__(114); 55876var ReactDOMComponentTree = __webpack_require__(15); 55877var ReactUpdates = __webpack_require__(31); 55878 55879var invariant = __webpack_require__(10); 55880var warning = __webpack_require__(11); 55881 55882var didWarnValueLink = false;
55883var didWarnValDefaultVal = false; 55884 55885function forceUpdateIfMounted() { 55886 if (this._rootNodeID) { 55887 // DOM component is still mounted; update 55888 ReactDOMTextarea.updateWrapper(this); 55889 } 55890} 55891 55892/** 55893 * Implements a <textarea> host component that allows setting `value`, and 55894 * `defaultValue`. This differs from the traditional DOM API because value is 55895 * usually set as PCDATA children. 55896 * 55897 * If `value` is not supplied (or null/undefined), user actions that affect the 55898 * value will trigger updates to the element. 55899 * 55900 * If `value` is supplied (and not null/undefined), the rendered element will 55901 * not trigger updates to the element. Instead, the `value` prop must change in 55902 * order for the rendered element to be updated. 55903 * 55904 * The rendered element will be initialized with an empty value, the prop 55905 * `defaultValue` if specified, or the children content (deprecated). 55906 */ 55907var ReactDOMTextarea = { 55908 getHostProps: function (inst, props) { 55909 !(props.dangerouslySetInnerHTML == null) ? true ? invariant(false, '`dangerouslySetInnerHTML` does not make sense on <textarea>.') : _prodInvariant('91') : void 0; 55910 55911 // Always set children to the same thing. In IE9, the selection range will 55912 // get reset if `textContent` is mutated. We could add a check in setTextContent 55913 // to only set the value if/when the value differs from the node value (which would 55914 // completely solve this IE9 bug), but Sebastian+Ben seemed to like this solution. 55915 // The value can be a boolean or object so that's why it's forced to be a string. 55916 var hostProps = _assign({}, props, { 55917 value: undefined, 55918 defaultValue: undefined, 55919 children: '' + inst._wrapperState.initialValue, 55920 onChange: inst._wrapperState.onChange 55921 }); 55922 55923 return hostProps; 55924 }, 55925 55926 mountWrapper: function (inst, props) { 55927 if (true) { 55928 LinkedValueUtils.checkPropTypes('textarea', props, inst._currentElement._owner); 55929 if (props.valueLink !== undefined && !didWarnValueLink) { 55930 true ? warning(false, '`valueLink` prop on `textarea` is deprecated; set `value` and `onChange` instead.') : void 0; 55931 didWarnValueLink = true; 55932 } 55933 if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) { 55934 true ? warning(false, 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components') : void 0; 55935 didWarnValDefaultVal = true; 55936 } 55937 } 55938 55939 var value = LinkedValueUtils.getValue(props); 55940 var initialValue = value; 55941 55942 // Only bother fetching default value if we're going to use it 55943 if (value == null) { 55944 var defaultValue = props.defaultValue; 55945 // TODO (yungsters): Remove support for children content in <textarea>. 55946 var children = props.children; 55947 if (children != null) { 55948 if (true) { 55949 true ? warning(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.') : void 0; 55950 } 55951 !(defaultValue == null) ? true ? invariant(false, 'If you supply `defaultValue` on a <textarea>, do not pass children.') : _prodInvariant('92') : void 0; 55952 if (Array.isArray(children)) { 55953 !(children.length <= 1) ? true ? invariant(false, '<textarea> can only have at most one child.') : _prodInvariant('93') : void 0; 55954 children = children[0]; 55955 } 55956 55957 defaultValue = '' + children; 55958 } 55959 if (defaultValue == null) { 55960 defaultValue = ''; 55961 } 55962 initialValue = defaultValue; 55963 } 55964 55965 inst._wrapperState = { 55966 initialValue: '' + initialValue, 55967 listeners: null, 55968 onChange: _handleChange.bind(inst) 55969 }; 55970 }, 55971 55972 updateWrapper: function (inst) { 55973 var props = inst._currentElement.props; 55974 55975 var node = ReactDOMComponentTree.getNodeFromInstance(inst); 55976 var value = LinkedValueUtils.getValue(props); 55977 if (value != null) { 55978 // Cast `value` to a string to ensure the value is set correctly. While 55979 // browsers typically do this as necessary, jsdom doesn't. 55980 var newValue = '' + value; 55981 55982 // To avoid side effects (such as losing text selection), only set value if changed 55983 if (newValue !== node.value) { 55984 node.value = newValue; 55985 } 55986 if (props.defaultValue == null) { 55987 node.defaultValue = newValue; 55988 } 55989 } 55990 if (props.defaultValue != null) { 55991 node.defaultValue = props.defaultValue; 55992 } 55993 }, 55994 55995 postMountWrapper: function (inst) { 55996 // This is in postMount because we need access to the DOM node, which is not 55997 // available until after the component has mounted. 55998 var node = ReactDOMComponentTree.getNodeFromInstance(inst); 55999 var textContent = node.textContent; 56000 56001 // Only set node.value if textContent is equal to the expected 56002 // initial value. In IE10/IE11 there is a bug where the placeholder attribute 56003 // will populate textContent as well. 56004 // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/ 56005 if (textContent === inst._wrapperState.initialValue) { 56006 node.value = textContent; 56007 } 56008 } 56009}; 56010 56011function _handleChange(event) { 56012 var props = this._currentElement.props; 56013 var returnValue = LinkedValueUtils.executeOnChange(props, event); 56014 ReactUpdates.asap(forceUpdateIfMounted, this); 56015 return returnValue; 56016} 56017 56018module.exports = ReactDOMTextarea; 56019 56020/***/ }), 56021/* 461 */ 56022/***/ (function(module, exports, __webpack_require__) { 56023 56024"use strict"; 56025/** 56026 * Copyright (c) 2013-present, Facebook, Inc. 56027 * 56028 * This source code is licensed under the MIT license found in the 56029 * LICENSE file in the root directory of this source tree. 56030 * 56031 */ 56032 56033 56034 56035var _prodInvariant = __webpack_require__(12); 56036 56037var ReactComponentEnvironment = __webpack_require__(115); 56038var ReactInstanceMap = __webpack_require__(66); 56039var ReactInstrumentation = __webpack_require__(24); 56040 56041var ReactCurrentOwner = __webpack_require__(30); 56042var ReactReconciler = __webpack_require__(52); 56043var ReactChildReconciler = __webpack_require__(462); 56044 56045var emptyFunction = __webpack_require__(29); 56046var flattenChildren = __webpack_require__(469); 56047var invariant = __webpack_require__(10); 56048 56049/** 56050 * Make an update for markup to be rendered and inserted at a supplied index. 56051 * 56052 * @param {string} markup Markup that renders into an element. 56053 * @param {number} toIndex Destination index. 56054 * @private 56055 */ 56056function makeInsertMarkup(markup, afterNode, toIndex) { 56057 // NOTE: Null values reduce hidden classes. 56058 return { 56059 type: 'INSERT_MARKUP', 56060 content: markup, 56061 fromIndex: null, 56062 fromNode: null, 56063 toIndex: toIndex, 56064 afterNode: afterNode 56065 }; 56066} 56067 56068/** 56069 * Make an update for moving an existing element to another index. 56070 * 56071 * @param {number} fromIndex Source index of the existing element. 56072 * @param {number} toIndex Destination index of the element. 56073 * @private 56074 */ 56075function makeMove(child, afterNode, toIndex) { 56076 // NOTE: Null values reduce hidden classes. 56077 return { 56078 type: 'MOVE_EXISTING', 56079 content: null, 56080 fromIndex: child._mountIndex, 56081 fromNode: ReactReconciler.getHostNode(child), 56082 toIndex: toIndex, 56083 afterNode: afterNode 56084 }; 56085} 56086 56087/** 56088 * Make an update for removing an element at an index. 56089 * 56090 * @param {number} fromIndex Index of the element to remove. 56091 * @private 56092 */ 56093function makeRemove(child, node) { 56094 // NOTE: Null values reduce hidden classes. 56095 return { 56096 type: 'REMOVE_NODE', 56097 content: null, 56098 fromIndex: child._mountIndex, 56099 fromNode: node, 56100 toIndex: null, 56101 afterNode: null 56102 }; 56103} 56104 56105/** 56106 * Make an update for setting the markup of a node. 56107 * 56108 * @param {string} markup Markup that renders into an element. 56109 * @private 56110 */ 56111function makeSetMarkup(markup) { 56112 // NOTE: Null values reduce hidden classes. 56113 return { 56114 type: 'SET_MARKUP', 56115 content: markup, 56116 fromIndex: null, 56117 fromNode: null, 56118 toIndex: null, 56119 afterNode: null 56120 }; 56121} 56122 56123/** 56124 * Make an update for setting the text content. 56125 * 56126 * @param {string} textContent Text content to set. 56127 * @private 56128 */ 56129function makeTextContent(textContent) { 56130 // NOTE: Null values reduce hidden classes. 56131 return { 56132 type: 'TEXT_CONTENT', 56133 content: textContent, 56134 fromIndex: null, 56135 fromNode: null, 56136 toIndex: null, 56137 afterNode: null 56138 }; 56139} 56140 56141/** 56142 * Push an update, if any, onto the queue. Creates a new queue if none is 56143 * passed and always returns the queue. Mutative. 56144 */ 56145function enqueue(queue, update) { 56146 if (update) { 56147 queue = queue || []; 56148 queue.push(update); 56149 } 56150 return queue; 56151} 56152 56153/** 56154 * Processes any enqueued updates. 56155 * 56156 * @private 56157 */ 56158function processQueue(inst, updateQueue) { 56159 ReactComponentEnvironment.processChildrenUpdates(inst, updateQueue); 56160} 56161 56162var setChildrenForInstrumentation = emptyFunction; 56163if (true) { 56164 var getDebugID = function (inst) { 56165 if (!inst._debugID) { 56166 // Check for ART-like instances. TODO: This is silly/gross. 56167 var internal; 56168 if (internal = ReactInstanceMap.get(inst)) { 56169 inst = internal; 56170 } 56171 } 56172 return inst._debugID; 56173 }; 56174 setChildrenForInstrumentation = function (children) { 56175 var debugID = getDebugID(this);
56176 // TODO: React Native empty components are also multichild. 56177 // This means they still get into this method but don't have _debugID. 56178 if (debugID !== 0) { 56179 ReactInstrumentation.debugTool.onSetChildren(debugID, children ? Object.keys(children).map(function (key) { 56180 return children[key]._debugID; 56181 }) : []); 56182 } 56183 }; 56184} 56185 56186/** 56187 * ReactMultiChild are capable of reconciling multiple children. 56188 * 56189 * @class ReactMultiChild 56190 * @internal 56191 */ 56192var ReactMultiChild = { 56193 /** 56194 * Provides common functionality for components that must reconcile multiple 56195 * children. This is used by `ReactDOMComponent` to mount, update, and 56196 * unmount child components. 56197 * 56198 * @lends {ReactMultiChild.prototype} 56199 */ 56200 Mixin: { 56201 _reconcilerInstantiateChildren: function (nestedChildren, transaction, context) { 56202 if (true) { 56203 var selfDebugID = getDebugID(this); 56204 if (this._currentElement) { 56205 try { 56206 ReactCurrentOwner.current = this._currentElement._owner; 56207 return ReactChildReconciler.instantiateChildren(nestedChildren, transaction, context, selfDebugID); 56208 } finally { 56209 ReactCurrentOwner.current = null; 56210 } 56211 } 56212 } 56213 return ReactChildReconciler.instantiateChildren(nestedChildren, transaction, context); 56214 }, 56215 56216 _reconcilerUpdateChildren: function (prevChildren, nextNestedChildrenElements, mountImages, removedNodes, transaction, context) { 56217 var nextChildren; 56218 var selfDebugID = 0; 56219 if (true) { 56220 selfDebugID = getDebugID(this); 56221 if (this._currentElement) { 56222 try { 56223 ReactCurrentOwner.current = this._currentElement._owner; 56224 nextChildren = flattenChildren(nextNestedChildrenElements, selfDebugID); 56225 } finally { 56226 ReactCurrentOwner.current = null; 56227 } 56228 ReactChildReconciler.updateChildren(prevChildren, nextChildren, mountImages, removedNodes, transaction, this, this._hostContainerInfo, context, selfDebugID); 56229 return nextChildren; 56230 } 56231 } 56232 nextChildren = flattenChildren(nextNestedChildrenElements, selfDebugID); 56233 ReactChildReconciler.updateChildren(prevChildren, nextChildren, mountImages, removedNodes, transaction, this, this._hostContainerInfo, context, selfDebugID); 56234 return nextChildren; 56235 }, 56236 56237 /** 56238 * Generates a "mount image" for each of the supplied children. In the case 56239 * of `ReactDOMComponent`, a mount image is a string of markup. 56240 * 56241 * @param {?object} nestedChildren Nested child maps. 56242 * @return {array} An array of mounted representations. 56243 * @internal 56244 */ 56245 mountChildren: function (nestedChildren, transaction, context) { 56246 var children = this._reconcilerInstantiateChildren(nestedChildren, transaction, context); 56247 this._renderedChildren = children; 56248 56249 var mountImages = []; 56250 var index = 0; 56251 for (var name in children) { 56252 if (children.hasOwnProperty(name)) { 56253 var child = children[name]; 56254 var selfDebugID = 0; 56255 if (true) { 56256 selfDebugID = getDebugID(this); 56257 } 56258 var mountImage = ReactReconciler.mountComponent(child, transaction, this, this._hostContainerInfo, context, selfDebugID); 56259 child._mountIndex = index++; 56260 mountImages.push(mountImage); 56261 } 56262 } 56263 56264 if (true) { 56265 setChildrenForInstrumentation.call(this, children); 56266 } 56267 56268 return mountImages; 56269 }, 56270 56271 /** 56272 * Replaces any rendered children with a text content string. 56273 * 56274 * @param {string} nextContent String of content. 56275 * @internal 56276 */ 56277 updateTextContent: function (nextContent) { 56278 var prevChildren = this._renderedChildren; 56279 // Remove any rendered children. 56280 ReactChildReconciler.unmountChildren(prevChildren, false); 56281 for (var name in prevChildren) { 56282 if (prevChildren.hasOwnProperty(name)) { 56283 true ? true ? invariant(false, 'updateTextContent called on non-empty component.') : _prodInvariant('118') : void 0; 56284 } 56285 } 56286 // Set new text content. 56287 var updates = [makeTextContent(nextContent)]; 56288 processQueue(this, updates); 56289 }, 56290 56291 /** 56292 * Replaces any rendered children with a markup string. 56293 * 56294 * @param {string} nextMarkup String of markup. 56295 * @internal 56296 */ 56297 updateMarkup: function (nextMarkup) { 56298 var prevChildren = this._renderedChildren; 56299 // Remove any rendered children. 56300 ReactChildReconciler.unmountChildren(prevChildren, false); 56301 for (var name in prevChildren) { 56302 if (prevChildren.hasOwnProperty(name)) { 56303 true ? true ? invariant(false, 'updateTextContent called on non-empty component.') : _prodInvariant('118') : void 0; 56304 } 56305 } 56306 var updates = [makeSetMarkup(nextMarkup)]; 56307 processQueue(this, updates); 56308 }, 56309 56310 /** 56311 * Updates the rendered children with new children. 56312 * 56313 * @param {?object} nextNestedChildrenElements Nested child element maps. 56314 * @param {ReactReconcileTransaction} transaction 56315 * @internal 56316 */ 56317 updateChildren: function (nextNestedChildrenElements, transaction, context) { 56318 // Hook used by React ART 56319 this._updateChildren(nextNestedChildrenElements, transaction, context); 56320 }, 56321 56322 /** 56323 * @param {?object} nextNestedChildrenElements Nested child element maps. 56324 * @param {ReactReconcileTransaction} transaction 56325 * @final 56326 * @protected 56327 */ 56328 _updateChildren: function (nextNestedChildrenElements, transaction, context) { 56329 var prevChildren = this._renderedChildren; 56330 var removedNodes = {}; 56331 var mountImages = []; 56332 var nextChildren = this._reconcilerUpdateChildren(prevChildren, nextNestedChildrenElements, mountImages, removedNodes, transaction, context); 56333 if (!nextChildren && !prevChildren) { 56334 return; 56335 } 56336 var updates = null; 56337 var name; 56338 // `nextIndex` will increment for each child in `nextChildren`, but 56339 // `lastIndex` will be the last index visited in `prevChildren`. 56340 var nextIndex = 0; 56341 var lastIndex = 0; 56342 // `nextMountIndex` will increment for each newly mounted child. 56343 var nextMountIndex = 0; 56344 var lastPlacedNode = null; 56345 for (name in nextChildren) { 56346 if (!nextChildren.hasOwnProperty(name)) { 56347 continue; 56348 } 56349 var prevChild = prevChildren && prevChildren[name]; 56350 var nextChild = nextChildren[name]; 56351 if (prevChild === nextChild) { 56352 updates = enqueue(updates, this.moveChild(prevChild, lastPlacedNode, nextIndex, lastIndex)); 56353 lastIndex = Math.max(prevChild._mountIndex, lastIndex); 56354 prevChild._mountIndex = nextIndex; 56355 } else { 56356 if (prevChild) { 56357 // Update `lastIndex` before `_mountIndex` gets unset by unmounting. 56358 lastIndex = Math.max(prevChild._mountIndex, lastIndex); 56359 // The `removedNodes` loop below will actually remove the child. 56360 } 56361 // The child must be instantiated before it's mounted. 56362 updates = enqueue(updates, this._mountChildAtIndex(nextChild, mountImages[nextMountIndex], lastPlacedNode, nextIndex, transaction, context)); 56363 nextMountIndex++; 56364 } 56365 nextIndex++; 56366 lastPlacedNode = ReactReconciler.getHostNode(nextChild); 56367 } 56368 // Remove children that are no longer present.
56369 for (name in removedNodes) { 56370 if (removedNodes.hasOwnProperty(name)) { 56371 updates = enqueue(updates, this._unmountChild(prevChildren[name], removedNodes[name])); 56372 } 56373 } 56374 if (updates) { 56375 processQueue(this, updates); 56376 } 56377 this._renderedChildren = nextChildren; 56378 56379 if (true) { 56380 setChildrenForInstrumentation.call(this, nextChildren); 56381 } 56382 }, 56383 56384 /** 56385 * Unmounts all rendered children. This should be used to clean up children 56386 * when this component is unmounted. It does not actually perform any 56387 * backend operations. 56388 * 56389 * @internal 56390 */ 56391 unmountChildren: function (safely) { 56392 var renderedChildren = this._renderedChildren; 56393 ReactChildReconciler.unmountChildren(renderedChildren, safely); 56394 this._renderedChildren = null; 56395 }, 56396 56397 /** 56398 * Moves a child component to the supplied index. 56399 * 56400 * @param {ReactComponent} child Component to move. 56401 * @param {number} toIndex Destination index of the element. 56402 * @param {number} lastIndex Last index visited of the siblings of `child`. 56403 * @protected 56404 */ 56405 moveChild: function (child, afterNode, toIndex, lastIndex) { 56406 // If the index of `child` is less than `lastIndex`, then it needs to 56407 // be moved. Otherwise, we do not need to move it because a child will be 56408 // inserted or moved before `child`. 56409 if (child._mountIndex < lastIndex) { 56410 return makeMove(child, afterNode, toIndex); 56411 } 56412 }, 56413 56414 /** 56415 * Creates a child component. 56416 * 56417 * @param {ReactComponent} child Component to create. 56418 * @param {string} mountImage Markup to insert. 56419 * @protected 56420 */ 56421 createChild: function (child, afterNode, mountImage) { 56422 return makeInsertMarkup(mountImage, afterNode, child._mountIndex); 56423 }, 56424 56425 /** 56426 * Removes a child component. 56427 * 56428 * @param {ReactComponent} child Child to remove. 56429 * @protected 56430 */ 56431 removeChild: function (child, node) { 56432 return makeRemove(child, node); 56433 }, 56434 56435 /** 56436 * Mounts a child with the supplied name. 56437 * 56438 * NOTE: This is part of `updateChildren` and is here for readability. 56439 * 56440 * @param {ReactComponent} child Component to mount. 56441 * @param {string} name Name of the child. 56442 * @param {number} index Index at which to insert the child. 56443 * @param {ReactReconcileTransaction} transaction 56444 * @private 56445 */ 56446 _mountChildAtIndex: function (child, mountImage, afterNode, index, transaction, context) { 56447 child._mountIndex = index; 56448 return this.createChild(child, afterNode, mountImage); 56449 }, 56450 56451 /** 56452 * Unmounts a rendered child. 56453 * 56454 * NOTE: This is part of `updateChildren` and is here for readability. 56455 * 56456 * @param {ReactComponent} child Component to unmount. 56457 * @private 56458 */ 56459 _unmountChild: function (child, node) { 56460 var update = this.removeChild(child, node); 56461 child._mountIndex = null; 56462 return update; 56463 } 56464 } 56465}; 56466 56467module.exports = ReactMultiChild; 56468 56469/***/ }), 56470/* 462 */ 56471/***/ (function(module, exports, __webpack_require__) { 56472 56473"use strict"; 56474/* WEBPACK VAR INJECTION */(function(process) {/** 56475 * Copyright (c) 2014-present, Facebook, Inc. 56476 * 56477 * This source code is licensed under the MIT license found in the 56478 * LICENSE file in the root directory of this source tree. 56479 * 56480 */ 56481 56482 56483 56484var ReactReconciler = __webpack_require__(52); 56485 56486var instantiateReactComponent = __webpack_require__(182); 56487var KeyEscapeUtils = __webpack_require__(118); 56488var shouldUpdateReactComponent = __webpack_require__(117); 56489var traverseAllChildren = __webpack_require__(186); 56490var warning = __webpack_require__(11); 56491 56492var ReactComponentTreeHook; 56493 56494if (typeof process !== 'undefined' && Object({"NODE_ENV":"dev"}) && "dev" === 'test') { 56495 // Temporary hack. 56496 // Inline requires don't work well with Jest: 56497 // https://github.com/facebook/react/issues/7240 56498 // Remove the inline requires when we don't need them anymore: 56499 // https://github.com/facebook/react/pull/7178 56500 ReactComponentTreeHook = __webpack_require__(23); 56501} 56502 56503function instantiateChild(childInstances, child, name, selfDebugID) { 56504 // We found a component instance. 56505 var keyUnique = childInstances[name] === undefined; 56506 if (true) { 56507 if (!ReactComponentTreeHook) { 56508 ReactComponentTreeHook = __webpack_require__(23); 56509 } 56510 if (!keyUnique) { 56511 true ? warning(false, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.%s', KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0; 56512 } 56513 } 56514 if (child != null && keyUnique) { 56515 childInstances[name] = instantiateReactComponent(child, true); 56516 } 56517} 56518 56519/** 56520 * ReactChildReconciler provides helpers for initializing or updating a set of 56521 * children. Its output is suitable for passing it onto ReactMultiChild which 56522 * does diffed reordering and insertion. 56523 */ 56524var ReactChildReconciler = { 56525 /** 56526 * Generates a "mount image" for each of the supplied children. In the case 56527 * of `ReactDOMComponent`, a mount image is a string of markup. 56528 * 56529 * @param {?object} nestedChildNodes Nested child maps. 56530 * @return {?object} A set of child instances. 56531 * @internal 56532 */ 56533 instantiateChildren: function (nestedChildNodes, transaction, context, selfDebugID) // 0 in production and for roots 56534 { 56535 if (nestedChildNodes == null) { 56536 return null; 56537 } 56538 var childInstances = {}; 56539 56540 if (true) { 56541 traverseAllChildren(nestedChildNodes, function (childInsts, child, name) { 56542 return instantiateChild(childInsts, child, name, selfDebugID); 56543 }, childInstances); 56544 } else { 56545 traverseAllChildren(nestedChildNodes, instantiateChild, childInstances); 56546 } 56547 return childInstances; 56548 }, 56549 56550 /** 56551 * Updates the rendered children and returns a new set of children. 56552 * 56553 * @param {?object} prevChildren Previously initialized set of children. 56554 * @param {?object} nextChildren Flat child element maps. 56555 * @param {ReactReconcileTransaction} transaction 56556 * @param {object} context 56557 * @return {?object} A new set of child instances. 56558 * @internal 56559 */ 56560 updateChildren: function (prevChildren, nextChildren, mountImages, removedNodes, transaction, hostParent, hostContainerInfo, context, selfDebugID) // 0 in production and for roots 56561 { 56562 // We currently don't have a way to track moves here but if we use iterators 56563 // instead of for..in we can zip the iterators and check if an item has 56564 // moved. 56565 // TODO: If nothing has changed, return the prevChildren object so that we 56566 // can quickly bailout if nothing has changed. 56567 if (!nextChildren && !prevChildren) { 56568 return; 56569 } 56570 var name; 56571 var prevChild; 56572 for (name in nextChildren) { 56573 if (!nextChildren.hasOwnProperty(name)) { 56574 continue; 56575 } 56576 prevChild = prevChildren && prevChildren[name]; 56577 var prevElement = prevChild && prevChild._currentElement; 56578 var nextElement = nextChildren[name]; 56579 if (prevChild != null && shouldUpdateReactComponent(prevElement, nextElement)) { 56580 ReactReconciler.receiveComponent(prevChild, nextElement, transaction, context); 56581 nextChildren[name] = prevChild; 56582 } else { 56583 if (prevChild) { 56584 removedNodes[name] = ReactReconciler.getHostNode(prevChild); 56585 ReactReconciler.unmountComponent(prevChild, false); 56586 } 56587 // The child must be instantiated before it's mounted. 56588 var nextChildInstance = instantiateReactComponent(nextElement, true); 56589 nextChildren[name] = nextChildInstance;
56590 // Creating mount image now ensures refs are resolved in right order 56591 // (see https://github.com/facebook/react/pull/7101 for explanation). 56592 var nextChildMountImage = ReactReconciler.mountComponent(nextChildInstance, transaction, hostParent, hostContainerInfo, context, selfDebugID); 56593 mountImages.push(nextChildMountImage); 56594 } 56595 } 56596 // Unmount children that are no longer present. 56597 for (name in prevChildren) { 56598 if (prevChildren.hasOwnProperty(name) && !(nextChildren && nextChildren.hasOwnProperty(name))) { 56599 prevChild = prevChildren[name]; 56600 removedNodes[name] = ReactReconciler.getHostNode(prevChild); 56601 ReactReconciler.unmountComponent(prevChild, false); 56602 } 56603 } 56604 }, 56605 56606 /** 56607 * Unmounts all rendered children. This should be used to clean up children 56608 * when this component is unmounted. 56609 * 56610 * @param {?object} renderedChildren Previously initialized set of children. 56611 * @internal 56612 */ 56613 unmountChildren: function (renderedChildren, safely) { 56614 for (var name in renderedChildren) { 56615 if (renderedChildren.hasOwnProperty(name)) { 56616 var renderedChild = renderedChildren[name]; 56617 ReactReconciler.unmountComponent(renderedChild, safely); 56618 } 56619 } 56620 } 56621}; 56622 56623module.exports = ReactChildReconciler; 56624/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(41))) 56625 56626/***/ }), 56627/* 463 */ 56628/***/ (function(module, exports, __webpack_require__) { 56629 56630"use strict"; 56631/** 56632 * Copyright (c) 2013-present, Facebook, Inc. 56633 * 56634 * This source code is licensed under the MIT license found in the 56635 * LICENSE file in the root directory of this source tree. 56636 * 56637 */ 56638 56639 56640 56641var _prodInvariant = __webpack_require__(12), 56642 _assign = __webpack_require__(14); 56643 56644var React = __webpack_require__(48); 56645var ReactComponentEnvironment = __webpack_require__(115); 56646var ReactCurrentOwner = __webpack_require__(30); 56647var ReactErrorUtils = __webpack_require__(106); 56648var ReactInstanceMap = __webpack_require__(66); 56649var ReactInstrumentation = __webpack_require__(24); 56650var ReactNodeTypes = __webpack_require__(183); 56651var ReactReconciler = __webpack_require__(52); 56652 56653if (true) { 56654 var checkReactTypeSpec = __webpack_require__(464); 56655} 56656 56657var emptyObject = __webpack_require__(77); 56658var invariant = __webpack_require__(10); 56659var shallowEqual = __webpack_require__(116); 56660var shouldUpdateReactComponent = __webpack_require__(117); 56661var warning = __webpack_require__(11); 56662 56663var CompositeTypes = { 56664 ImpureClass: 0, 56665 PureClass: 1, 56666 StatelessFunctional: 2 56667}; 56668 56669function StatelessComponent(Component) {} 56670StatelessComponent.prototype.render = function () { 56671 var Component = ReactInstanceMap.get(this)._currentElement.type; 56672 var element = Component(this.props, this.context, this.updater); 56673 warnIfInvalidElement(Component, element); 56674 return element; 56675}; 56676 56677function warnIfInvalidElement(Component, element) { 56678 if (true) { 56679 true ? warning(element === null || element === false || React.isValidElement(element), '%s(...): A val
56679id React element (or null) must be returned. You may have ' + 'returned undefined, an array or some other invalid object.', Component.displayName || Component.name || 'Component') : void 0; 56680 true ? warning(!Component.childContextTypes, '%s(...): childContextTypes cannot be defined on a functional component.', Component.displayName || Component.name || 'Component') : void 0; 56681 } 56682} 56683 56684function shouldConstruct(Component) { 56685 return !!(Component.prototype && Component.prototype.isReactComponent); 56686} 56687 56688function isPureComponent(Component) { 56689 return !!(Component.prototype && Component.prototype.isPureReactComponent); 56690} 56691 56692// Separated into a function to contain deoptimizations caused by try/finally. 56693function measureLifeCyclePerf(fn, debugID, timerType) { 56694 if (debugID === 0) { 56695 // Top-level wrappers (see ReactMount) and empty components (see 56696 // ReactDOMEmptyComponent) are invisible to hooks and devtools. 56697 // Both are implementation details that should go away in the future. 56698 return fn(); 56699 } 56700 56701 ReactInstrumentation.debugTool.onBeginLifeCycleTimer(debugID, timerType); 56702 try { 56703 return fn(); 56704 } finally { 56705 ReactInstrumentation.debugTool.onEndLifeCycleTimer(debugID, timerType); 56706 } 56707} 56708 56709/** 56710 * ------------------ The Life-Cycle of a Composite Component ------------------ 56711 * 56712 * - constructor: Initialization of state. The instance is now retained. 56713 * - componentWillMount 56714 * - render 56715 * - [children's constructors] 56716 * - [children's componentWillMount and render] 56717 * - [children's componentDidMount] 56718 * - componentDidMount 56719 * 56720 * Update Phases: 56721 * - componentWillReceiveProps (only called if parent updated) 56722 * - shouldComponentUpdate 56723 * - componentWillUpdate 56724 * - render 56725 * - [children's constructors or receive props phases] 56726 * - componentDidUpdate 56727 * 56728 * - componentWillUnmount 56729 * - [children's componentWillUnmount] 56730 * - [children destroyed] 56731 * - (destroyed): The instance is now blank, released by React and ready for GC. 56732 * 56733 * ----------------------------------------------------------------------------- 56734 */ 56735 56736/** 56737 * An incrementing ID assigned to each component when it is mounted. This is 56738 * used to enforce the order in which `ReactUpdates` updates dirty components. 56739 * 56740 * @private 56741 */ 56742var nextMountID = 1; 56743 56744/** 56745 * @lends {ReactCompositeComponent.prototype} 56746 */ 56747var ReactCompositeComponent = { 56748 /** 56749 * Base constructor for all composite component. 56750 * 56751 * @param {ReactElement} element 56752 * @final 56753 * @internal 56754 */ 56755 construct: function (element) { 56756 this._currentElement = element; 56757 this._rootNodeID = 0; 56758 this._compositeType = null; 56759 this._instance = null; 56760 this._hostParent = null; 56761 this._hostContainerInfo = null; 56762 56763 // See ReactUpdateQueue 56764 this._updateBatchNumber = null; 56765 this._pendingElement = null; 56766 this._pendingStateQueue = null; 56767 this._pendingReplaceState = false; 56768 this._pendingForceUpdate = false; 56769 56770 this._renderedNodeType = null; 56771 this._renderedComponent = null; 56772 this._context = null; 56773 this._mountOrder = 0; 56774 this._topLevelWrapper = null; 56775 56776 // See ReactUpdates and ReactUpdateQueue. 56777 this._pendingCallbacks = null; 56778 56779 // ComponentWillUnmount shall only be called once 56780 this._calledComponentWillUnmount = false; 56781 56782 if (true) { 56783 this._warnedAboutRefsInRender = false;
56784 } 56785 }, 56786 56787 /** 56788 * Initializes the component, renders markup, and registers event listeners. 56789 * 56790 * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction 56791 * @param {?object} hostParent 56792 * @param {?object} hostContainerInfo 56793 * @param {?object} context 56794 * @return {?string} Rendered markup to be inserted into the DOM. 56795 * @final 56796 * @internal 56797 */ 56798 mountComponent: function (transaction, hostParent, hostContainerInfo, context) { 56799 var _this = this; 56800 56801 this._context = context; 56802 this._mountOrder = nextMountID++; 56803 this._hostParent = hostParent; 56804 this._hostContainerInfo = hostContainerInfo; 56805 56806 var publicProps = this._currentElement.props; 56807 var publicContext = this._processContext(context); 56808 56809 var Component = this._currentElement.type; 56810 56811 var updateQueue = transaction.getUpdateQueue(); 56812 56813 // Initialize the public class 56814 var doConstruct = shouldConstruct(Component); 56815 var inst = this._constructComponent(doConstruct, publicProps, publicContext, updateQueue); 56816 var renderedElement; 56817 56818 // Support functional components 56819 if (!doConstruct && (inst == null || inst.render == null)) { 56820 renderedElement = inst; 56821 warnIfInvalidElement(Component, renderedElement); 56822 !(inst === null || inst === false || React.isValidElement(inst)) ? true ? invariant(false, '%s(...): A val
56822id React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.', Component.displayName || Component.name || 'Component') : _prodInvariant('105', Component.displayName || Component.name || 'Component') : void 0; 56823 inst = new StatelessComponent(Component); 56824 this._compositeType = CompositeTypes.StatelessFunctional; 56825 } else { 56826 if (isPureComponent(Component)) { 56827 this._compositeType = CompositeTypes.PureClass; 56828 } else { 56829 this._compositeType = CompositeTypes.ImpureClass; 56830 } 56831 } 56832 56833 if (true) { 56834 // This will throw later in _renderValidatedComponent, but add an early 56835 // warning now to help debugging 56836 if (inst.render == null) { 56837 true ? warning(false, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', Component.displayName || Component.name || 'Component') : void 0; 56838 } 56839 56840 var propsMutated = inst.props !== publicProps; 56841 var componentName = Component.displayName || Component.name || 'Component'; 56842 56843 true ? warning(inst.props === undefined || !propsMutated, '%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", componentName, componentName) : void 0; 56844 } 56845 56846 // These should be set up in the constructor, but as a convenience for 56847 // simpler class abstractions, we set them up after the fact. 56848 inst.props = publicProps; 56849 inst.context = publicContext; 56850 inst.refs = emptyObject; 56851 inst.updater = updateQueue; 56852 56853 this._instance = inst; 56854 56855 // Store a reference from the instance back to the internal representation 56856 ReactInstanceMap.set(inst, this); 56857 56858 if (true) { 56859 // Since plain JS classes are defined without any special initialization 56860 // logic, we can not catch common errors early. Therefore, we have to 56861 // catch them here, at initialization time, instead. 56862 true ? warning(!inst.getInitialState || inst.getInitialState.isReactClassApproved || inst.state, 'getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', this.getName() || 'a component') : void 0; 56863 true ? warning(!inst.getDefaultProps || inst.getDefaultProps.isReactClassApproved, 'getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', this.getName() || 'a component') : void 0; 56864 true ? warning(!inst.propTypes, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', this.getName() || 'a component') : void 0; 56865 true ? warning(!inst.contextTypes, 'contextTypes was defined as an instance property on %s. Use a ' + 'static property to define contextTypes instead.', this.getName() || 'a component') : void 0; 56866 true ? warning(typeof inst.componentShouldUpdate !== 'function', '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', this.getName() || 'A c
56866omponent') : void 0; 56867 true ? warning(typeof inst.componentDidUnmount !== 'function', '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', this.getName() || 'A component') : void 0; 56868 true ? warning(typeof inst.componentWillRecieveProps !== 'function', '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', this.getName() || 'A component') : void 0; 56869 } 56870 56871 var initialState = inst.state; 56872 if (initialState === undefined) { 56873 inst.state = initialState = null; 56874 } 56875 !(typeof initialState === 'object' && !Array.isArray(initialState)) ? true ? invariant(false, '%s.state: must be set to an object or null', this.getName() || 'ReactCompositeComponent') : _prodInvariant('106', this.getName() || 'ReactCompositeComponent') : void 0; 56876 56877 this._pendingStateQueue = null; 56878 this._pendingReplaceState = false; 56879 this._pendingForceUpdate = false; 56880 56881 var markup; 56882 if (inst.unstable_handleError) { 56883 markup = this.performInitialMountWithErrorHandling(renderedElement, hostParent, hostContainerInfo, transaction, context); 56884 } else { 56885 markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context); 56886 } 56887 56888 if (inst.componentDidMount) { 56889 if (true) { 56890 transaction.getReactMountReady().enqueue(function () { 56891 measureLifeCyclePerf(function () { 56892 return inst.componentDidMount(); 56893 }, _this._debugID, 'componentDidMount'); 56894 }); 56895 } else { 56896 transaction.getReactMountReady().enqueue(inst.componentDidMount, inst); 56897 } 56898 } 56899 56900 return markup; 56901 }, 56902 56903 _constructComponent: function (doConstruct, publicProps, publicContext, updateQueue) { 56904 if ("dev" !== 'production' && !doConstruct) { 56905 ReactCurrentOwner.current = this; 56906 try { 56907 return this._constructComponentWithoutOwner(doConstruct, publicProps, publicContext, updateQueue); 56908 } finally { 56909 ReactCurrentOwner.current = null; 56910 } 56911 } else { 56912 return this._constructComponentWithoutOwner(doConstruct, publicProps, publicContext, updateQueue); 56913 } 56914 }, 56915 56916 _constructComponentWithoutOwner: function (doConstruct, publicProps, publicContext, updateQueue) { 56917 var Component = this._currentElement.type; 56918 56919 if (doConstruct) { 56920 if (true) { 56921 return measureLifeCyclePerf(function () { 56922 return new Component(publicProps, publicContext, updateQueue); 56923 }, this._debugID, 'ctor'); 56924 } else { 56925 return new Component(publicProps, publicContext, updateQueue); 56926 } 56927 } 56928 56929 // This can still be an instance in case of factory components 56930 // but we'll count this as time spent rendering as the more common case. 56931 if (true) { 56932 return measureLifeCyclePerf(function () { 56933 return Component(publicProps, publicContext, updateQueue); 56934 }, this._debugID, 'render'); 56935 } else { 56936 return Component(publicProps, publicContext, updateQueue); 56937 } 56938 }, 56939 56940 performInitialMountWithErrorHandling: function (renderedElement, hostParent, hostContainerInfo, transaction, context) { 56941 var markup; 56942 var checkpoint = transaction.checkpoint(); 56943 try { 56944 markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context); 56945 } catch (e) { 56946 // Roll back to checkpoint, handle error (which may add items to the transaction), and take a new checkpoint 56947 transaction.rollback(checkpoint); 56948 this._instance.unstable_handleError(e); 56949 if (this._pendingStateQueue) { 56950 this._instance.state = this._processPendingState(this._instance.props, this._instance.context); 56951 } 56952 checkpoint = transaction.checkpoint(); 56953 56954 this._renderedComponent.unmountComponent(true); 56955 transaction.rollback(checkpoint); 56956 56957 // Try again - we've informed the component about the error, so they can render an error message this time. 56958 // If this throws again, the error will bubble up (and can be caught by a higher error boundary). 56959 markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context); 56960 } 56961 return markup; 56962 }, 56963 56964 performInitialMount: function (renderedElement, hostParent, hostContainerInfo, transaction, context) { 56965 var inst = this._instance; 56966 56967 var debugID = 0; 56968 if (true) { 56969 debugID = this._debugID; 56970 } 56971 56972 if (inst.componentWillMount) { 56973 if (true) { 56974 measureLifeCyclePerf(function () { 56975 return inst.componentWillMount(); 56976 }, debugID, 'componentWillMount'); 56977 } else { 56978 inst.componentWillMount(); 56979 } 56980 // When mounting, calls to `setState` by `componentWillMount` will set 56981 // `this._pendingStateQueue` without triggering a re-render.
56982 if (this._pendingStateQueue) { 56983 inst.state = this._processPendingState(inst.props, inst.context); 56984 } 56985 } 56986 56987 // If not a stateless component, we now render 56988 if (renderedElement === undefined) { 56989 renderedElement = this._renderValidatedComponent(); 56990 } 56991 56992 var nodeType = ReactNodeTypes.getType(renderedElement); 56993 this._renderedNodeType = nodeType; 56994 var child = this._instantiateReactComponent(renderedElement, nodeType !== ReactNodeTypes.EMPTY /* shouldHaveDebugID */ 56995 ); 56996 this._renderedComponent = child; 56997 56998 var markup = ReactReconciler.mountComponent(child, transaction, hostParent, hostContainerInfo, this._processChildContext(context), debugID); 56999 57000 if (true) { 57001 if (debugID !== 0) { 57002 var childDebugIDs = child._debugID !== 0 ? [child._debugID] : []; 57003 ReactInstrumentation.debugTool.onSetChildren(debugID, childDebugIDs); 57004 } 57005 } 57006 57007 return markup; 57008 }, 57009 57010 getHostNode: function () { 57011 return ReactReconciler.getHostNode(this._renderedComponent); 57012 }, 57013 57014 /** 57015 * Releases any resources allocated by `mountComponent`. 57016 * 57017 * @final 57018 * @internal 57019 */ 57020 unmountComponent: function (safely) { 57021 if (!this._renderedComponent) { 57022 return; 57023 } 57024 57025 var inst = this._instance; 57026 57027 if (inst.componentWillUnmount && !inst._calledComponentWillUnmount) { 57028 inst._calledComponentWillUnmount = true; 57029 57030 if (safely) { 57031 var name = this.getName() + '.componentWillUnmount()'; 57032 ReactErrorUtils.invokeGuardedCallback(name, inst.componentWillUnmount.bind(inst)); 57033 } else { 57034 if (true) { 57035 measureLifeCyclePerf(function () { 57036 return inst.componentWillUnmount(); 57037 }, this._debugID, 'componentWillUnmount'); 57038 } else { 57039 inst.componentWillUnmount(); 57040 } 57041 } 57042 } 57043 57044 if (this._renderedComponent) { 57045 ReactReconciler.unmountComponent(this._renderedComponent, safely); 57046 this._renderedNodeType = null; 57047 this._renderedComponent = null; 57048 this._instance = null; 57049 } 57050 57051 // Reset pending fields 57052 // Even if this component is scheduled for another update in ReactUpdates, 57053 // it would still be ignored because these fields are reset. 57054 this._pendingStateQueue = null; 57055 this._pendingReplaceState = false; 57056 this._pendingForceUpdate = false; 57057 this._pendingCallbacks = null; 57058 this._pendingElement = null; 57059 57060 // These fields do not really need to be reset since this object is no 57061 // longer accessible. 57062 this._context = null; 57063 this._rootNodeID = 0; 57064 this._topLevelWrapper = null; 57065 57066 // Delete the reference from the instance to this internal representation 57067 // which allow the internals to be properly cleaned up even if the user 57068 // leaks a reference to the public instance. 57069 ReactInstanceMap.remove(inst); 57070 57071 // Some existing components rely on inst.props even after they've been 57072 // destroyed (in event handlers). 57073 // TODO: inst.props = null; 57074 // TODO: inst.state = null; 57075 // TODO: inst.context = null; 57076 }, 57077 57078 /** 57079 * Filters the context object to only contain keys specified in 57080 * `contextTypes` 57081 * 57082 * @param {object} context 57083 * @return {?object} 57084 * @private 57085 */ 57086 _maskContext: function (context) { 57087 var Component = this._currentElement.type; 57088 var contextTypes = Component.contextTypes; 57089 if (!contextTypes) { 57090 return emptyObject; 57091 } 57092 var maskedContext = {}; 57093 for (var contextName in contextTypes) { 57094 maskedContext[contextName] = context[contextName]; 57095 } 57096 return maskedContext; 57097 }, 57098 57099 /** 57100 * Filters the context object to only contain keys specified in 57101 * `contextTypes`, and asserts that they are valid. 57102 * 57103 * @param {object} context 57104 * @return {?object} 57105 * @private 57106 */ 57107 _processContext: function (context) { 57108 var maskedContext = this._maskContext(context); 57109 if (true) { 57110 var Component = this._currentElement.type; 57111 if (Component.contextTypes) { 57112 this._checkContextTypes(Component.contextTypes, maskedContext, 'context'); 57113 } 57114 } 57115 return maskedContext; 57116 }, 57117 57118 /** 57119 * @param {object} currentContext 57120 * @return {object} 57121 * @private 57122 */ 57123 _processChildContext: function (currentContext) { 57124 var Component = this._currentElement.type; 57125 var inst = this._instance; 57126 var childContext; 57127 57128 if (inst.getChildContext) { 57129 if (true) { 57130 ReactInstrumentation.debugTool.onBeginProcessingChildContext(); 57131 try { 57132 childContext = inst.getChildContext(); 57133 } finally { 57134 ReactInstrumentation.debugTool.onEndProcessingChildContext(); 57135 } 57136 } else { 57137 childContext = inst.getChildContext(); 57138 } 57139 } 57140 57141 if (childContext) { 57142 !(typeof Component.childContextTypes === 'object') ? true ? invariant(false, '%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().', this.getName() || 'ReactCompositeComponent') : _prodInvariant('107', this.getName() || 'ReactCompositeComponent') : void 0; 57143 if (true) { 57144 this._checkContextTypes(Component.childContextTypes, childContext, 'child context'); 57145 } 57146 for (var name in childContext) { 57147 !(name in Component.childContextTypes) ? true ? invariant(false, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', this.getName() || 'ReactCompositeComponent', name) : _prodInvariant('108', this.getName() || 'ReactCompositeComponent', name) : void 0; 57148 } 57149 return _assign({}, currentContext, childContext); 57150 } 57151 return currentContext; 57152 }, 57153 57154 /** 57155 * Assert that the context types are valid 57156 * 57157 * @param {object} typeSpecs Map of context field to a ReactPropType 57158 * @param {object} values Runtime values that need to be type-checked 57159 * @param {string} location e.g. "prop", "context", "child context" 57160 * @private 57161 */ 57162 _checkContextTypes: function (typeSpecs, values, location) { 57163 if (true) { 57164 checkReactTypeSpec(typeSpecs, values, location, this.getName(), null, this._debugID); 57165 } 57166 }, 57167 57168 receiveComponent: function (nextElement, transaction, nextContext) { 57169 var prevElement = this._currentElement; 57170 var prevContext = this._context; 57171 57172 this._pendingElement = null; 57173 57174 this.updateComponent(transaction, prevElement, nextElement, prevContext, nextContext); 57175 }, 57176 57177 /** 57178 * If any of `_pendingElement`, `_pendingStateQueue`, or `_pendingForceUpdate` 57179 * is set, update the component. 57180 * 57181 * @param {ReactReconcileTransaction} transaction 57182 * @internal 57183 */ 57184 performUpdateIfNecessary: function (transaction) {
57185 if (this._pendingElement != null) { 57186 ReactReconciler.receiveComponent(this, this._pendingElement, transaction, this._context); 57187 } else if (this._pendingStateQueue !== null || this._pendingForceUpdate) { 57188 this.updateComponent(transaction, this._currentElement, this._currentElement, this._context, this._context); 57189 } else { 57190 this._updateBatchNumber = null; 57191 } 57192 }, 57193 57194 /** 57195 * Perform an update to a mounted component. The componentWillReceiveProps and 57196 * shouldComponentUpdate methods are called, then (assuming the update isn't 57197 * skipped) the remaining update lifecycle methods are called and the DOM 57198 * representation is updated. 57199 * 57200 * By default, this implements React's rendering and reconciliation algorithm. 57201 * Sophisticated clients may wish to override this. 57202 * 57203 * @param {ReactReconcileTransaction} transaction 57204 * @param {ReactElement} prevParentElement 57205 * @param {ReactElement} nextParentElement 57206 * @internal 57207 * @overridable 57208 */ 57209 updateComponent: function (transaction, prevParentElement, nextParentElement, prevUnmaskedContext, nextUnmaskedContext) { 57210 var inst = this._instance; 57211 !(inst != null) ? true ? invariant(false, 'Attempted to update component `%s` that has already been unmounted (or failed to mount).', this.getName() || 'ReactCompositeComponent') : _prodInvariant('136', this.getName() || 'ReactCompositeComponent') : void 0; 57212 57213 var willReceive = false; 57214 var nextContext; 57215 57216 // Determine if the context has changed or not 57217 if (this._context === nextUnmaskedContext) { 57218 nextContext = inst.context; 57219 } else { 57220 nextContext = this._processContext(nextUnmaskedContext); 57221 willReceive = true; 57222 } 57223 57224 var prevProps = prevParentElement.props; 57225 var nextProps = nextParentElement.props; 57226 57227 // Not a simple state update but a props update 57228 if (prevParentElement !== nextParentElement) { 57229 willReceive = true; 57230 } 57231 57232 // An update here will schedule an update but immediately set 57233 // _pendingStateQueue which will ensure that any state updates gets 57234 // immediately reconciled instead of waiting for the next batch. 57235 if (willReceive && inst.componentWillReceiveProps) { 57236 if (true) { 57237 measureLifeCyclePerf(function () { 57238 return inst.componentWillReceiveProps(nextProps, nextContext); 57239 }, this._debugID, 'componentWillReceiveProps'); 57240 } else { 57241 inst.componentWillReceiveProps(nextProps, nextContext); 57242 } 57243 } 57244 57245 var nextState = this._processPendingState(nextProps, nextContext); 57246 var shouldUpdate = true; 57247 57248 if (!this._pendingForceUpdate) { 57249 if (inst.shouldComponentUpdate) { 57250 if (true) { 57251 shouldUpdate = measureLifeCyclePerf(function () { 57252 return inst.shouldComponentUpdate(nextProps, nextState, nextContext); 57253 }, this._debugID, 'shouldComponentUpdate'); 57254 } else { 57255 shouldUpdate = inst.shouldComponentUpdate(nextProps, nextState, nextContext); 57256 } 57257 } else { 57258 if (this._compositeType === CompositeTypes.PureClass) { 57259 shouldUpdate = !shallowEqual(prevProps, nextProps) || !shallowEqual(inst.state, nextState); 57260 } 57261 } 57262 } 57263 57264 if (true) { 57265 true ? warning(shouldUpdate !== undefined, '%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', this.getName() || 'ReactCompositeComponent') : void 0; 57266 } 57267 57268 this._updateBatchNumber = null; 57269 if (shouldUpdate) { 57270 this._pendingForceUpdate = false; 57271 // Will set `this.props`, `this.state` and `this.context`. 57272 this._performComponentUpdate(nextParentElement, nextProps, nextState, nextContext, transaction, nextUnmaskedContext); 57273 } else { 57274 // If it's determined that a component should not update, we still want 57275 // to set props and state but we shortcut the rest of the update. 57276 this._currentElement = nextParentElement; 57277 this._context = nextUnmaskedContext; 57278 inst.props = nextProps; 57279 inst.state = nextState; 57280 inst.context = nextContext; 57281 } 57282 }, 57283 57284 _processPendingState: function (props, context) { 57285 var inst = this._instance; 57286 var queue = this._pendingStateQueue; 57287 var replace = this._pendingReplaceState; 57288 this._pendingReplaceState = false;
57289 this._pendingStateQueue = null; 57290 57291 if (!queue) { 57292 return inst.state; 57293 } 57294 57295 if (replace && queue.length === 1) { 57296 return queue[0]; 57297 } 57298 57299 var nextState = _assign({}, replace ? queue[0] : inst.state); 57300 for (var i = replace ? 1 : 0; i < queue.length; i++) { 57301 var partial = queue[i]; 57302 _assign(nextState, typeof partial === 'function' ? partial.call(inst, nextState, props, context) : partial); 57303 } 57304 57305 return nextState; 57306 }, 57307 57308 /** 57309 * Merges new props and state, notifies delegate methods of update and 57310 * performs update. 57311 * 57312 * @param {ReactElement} nextElement Next element 57313 * @param {object} nextProps Next public object to set as properties. 57314 * @param {?object} nextState Next object to set as state. 57315 * @param {?object} nextContext Next public object to set as context. 57316 * @param {ReactReconcileTransaction} transaction 57317 * @param {?object} unmaskedContext 57318 * @private 57319 */ 57320 _performComponentUpdate: function (nextElement, nextProps, nextState, nextContext, transaction, unmaskedContext) { 57321 var _this2 = this; 57322 57323 var inst = this._instance; 57324 57325 var hasComponentDidUpdate = Boolean(inst.componentDidUpdate); 57326 var prevProps; 57327 var prevState; 57328 var prevContext; 57329 if (hasComponentDidUpdate) { 57330 prevProps = inst.props; 57331 prevState = inst.state; 57332 prevContext = inst.context; 57333 } 57334 57335 if (inst.componentWillUpdate) { 57336 if (true) { 57337 measureLifeCyclePerf(function () { 57338 return inst.componentWillUpdate(nextProps, nextState, nextContext); 57339 }, this._debugID, 'componentWillUpdate'); 57340 } else { 57341 inst.componentWillUpdate(nextProps, nextState, nextContext); 57342 } 57343 } 57344 57345 this._currentElement = nextElement; 57346 this._context = unmaskedContext; 57347 inst.props = nextProps; 57348 inst.state = nextState; 57349 inst.context = nextContext; 57350 57351 this._updateRenderedComponent(transaction, unmaskedContext); 57352 57353 if (hasComponentDidUpdate) { 57354 if (true) { 57355 transaction.getReactMountReady().enqueue(function () { 57356 measureLifeCyclePerf(inst.componentDidUpdate.bind(inst, prevProps, prevState, prevContext), _this2._debugID, 'componentDidUpdate'); 57357 }); 57358 } else { 57359 transaction.getReactMountReady().enqueue(inst.componentDidUpdate.bind(inst, prevProps, prevState, prevContext), inst); 57360 } 57361 } 57362 }, 57363 57364 /** 57365 * Call the component's `render` method and update the DOM accordingly. 57366 * 57367 * @param {ReactReconcileTransaction} transaction 57368 * @internal 57369 */ 57370 _updateRenderedComponent: function (transaction, context) { 57371 var prevComponentInstance = this._renderedComponent; 57372 var prevRenderedElement = prevComponentInstance._currentElement; 57373 var nextRenderedElement = this._renderValidatedComponent(); 57374 57375 var debugID = 0; 57376 if (true) { 57377 debugID = this._debugID; 57378 } 57379 57380 if (shouldUpdateReactComponent(prevRenderedElement, nextRenderedElement)) { 57381 ReactReconciler.receiveComponent(prevComponentInstance, nextRenderedElement, transaction, this._processChildContext(context)); 57382 } else { 57383 var oldHostNode = ReactReconciler.getHostNode(prevComponentInstance); 57384 ReactReconciler.unmountComponent(prevComponentInstance, false); 57385 57386 var nodeType = ReactNodeTypes.getType(nextRenderedElement); 57387 this._renderedNodeType = nodeType; 57388 var child = this._instantiateReactComponent(nextRenderedElement, nodeType !== ReactNodeTypes.EMPTY /* shouldHaveDebugID */ 57389 ); 57390 this._renderedComponent = child; 57391 57392 var nextMarkup = ReactReconciler.mountComponent(child, transaction, this._hostParent, this._hostContainerInfo, this._processChildContext(context), debugID); 57393 57394 if (true) { 57395 if (debugID !== 0) { 57396 var childDebugIDs = child._debugID !== 0 ? [child._debugID] : []; 57397 ReactInstrumentation.debugTool.onSetChildren(debugID, childDebugIDs); 57398 } 57399 } 57400 57401 this._replaceNodeWithMarkup(oldHostNode, nextMarkup, prevComponentInstance); 57402 } 57403 }, 57404 57405 /** 57406 * Overridden in shallow rendering. 57407 * 57408 * @protected 57409 */ 57410 _replaceNodeWithMarkup: function (oldHostNode, nextMarkup, prevInstance) { 57411 ReactComponentEnvironment.replaceNodeWithMarkup(oldHostNode, nextMarkup, prevInstance); 57412 }, 57413 57414 /** 57415 * @protected 57416 */ 57417 _renderValidatedComponentWithoutOwnerOrContext: function () { 57418 var inst = this._instance; 57419 var renderedElement; 57420 57421 if (true) { 57422 renderedElement = measureLifeCyclePerf(function () { 57423 return inst.render(); 57424 }, this._debugID, 'render'); 57425 } else { 57426 renderedElement = inst.render(); 57427 } 57428 57429 if (true) { 57430 // We allow auto-mocks to proceed as if they're returning null. 57431 if (renderedElement === undefined && inst.render._isMockFunction) { 57432 // This is probably bad practice. Consider warning here and 57433 // deprecating this convenience. 57434 renderedElement = null; 57435 } 57436 } 57437 57438 return renderedElement; 57439 }, 57440 57441 /** 57442 * @private 57443 */ 57444 _renderValidatedComponent: function () { 57445 var renderedElement; 57446 if (true) { 57447 ReactCurrentOwner.current = this;
57448 try { 57449 renderedElement = this._renderValidatedComponentWithoutOwnerOrContext(); 57450 } finally { 57451 ReactCurrentOwner.current = null; 57452 } 57453 } else { 57454 renderedElement = this._renderValidatedComponentWithoutOwnerOrContext(); 57455 } 57456 !( 57457 // TODO: An `isValidNode` function would probably be more appropriate 57458 renderedElement === null || renderedElement === false || React.isValidElement(renderedElement)) ? true ? invariant(false, '%s.render(): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.', this.getName() || 'ReactCompositeComponent') : _prodInvariant('109', this.getName() || 'ReactCompositeComponent') : void 0; 57459 57460 return renderedElement; 57461 }, 57462 57463 /** 57464 * Lazily allocates the refs object and stores `component` as `ref`. 57465 * 57466 * @param {string} ref Reference name. 57467 * @param {component} component Component to store as `ref`. 57468 * @final 57469 * @private 57470 */ 57471 attachRef: function (ref, component) { 57472 var inst = this.getPublicInstance(); 57473 !(inst != null) ? true ? invariant(false, 'Stateless function components cannot have refs.') : _prodInvariant('110') : void 0; 57474 var publicComponentInstance = component.getPublicInstance(); 57475 if (true) { 57476 var componentName = component && component.getName ? component.getName() : 'a component'; 57477 true ? warning(publicComponentInstance != null || component._compositeType !== CompositeTypes.StatelessFunctional, 'Stateless function components cannot be given refs ' + '(See ref "%s" in %s created by %s). ' + 'Attempts to access this ref will fail.', ref, componentName, this.getName()) : void 0; 57478 } 57479 var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs; 57480 refs[ref] = publicComponentInstance; 57481 }, 57482 57483 /** 57484 * Detaches a reference name. 57485 * 57486 * @param {string} ref Name to dereference. 57487 * @final 57488 * @private 57489 */ 57490 detachRef: function (ref) { 57491 var refs = this.getPublicInstance().refs; 57492 delete refs[ref]; 57493 }, 57494 57495 /** 57496 * Get a text description of the component that can be used to identify it 57497 * in error messages. 57498 * @return {string} The name or null. 57499 * @internal 57500 */ 57501 getName: function () { 57502 var type = this._currentElement.type; 57503 var constructor = this._instance && this._instance.constructor; 57504 return type.displayName || constructor && constructor.displayName || type.name || constructor && constructor.name || null; 57505 }, 57506 57507 /** 57508 * Get the publicly accessible representation of this component - i.e. what 57509 * is exposed by refs and returned by render. Can be null for stateless 57510 * components. 57511 * 57512 * @return {ReactComponent} the public component instance. 57513 * @internal 57514 */ 57515 getPublicInstance: function () { 57516 var inst = this._instance; 57517 if (this._compositeType === CompositeTypes.StatelessFunctional) { 57518 return null; 57519 } 57520 return inst; 57521 }, 57522 57523 // Stub 57524 _instantiateReactComponent: null 57525}; 57526 57527module.exports = ReactCompositeComponent; 57528 57529/***/ }), 57530/* 464 */ 57531/***/ (function(module, exports, __webpack_require__) { 57532 57533"use strict"; 57534/* WEBPACK VAR INJECTION */(function(process) {/** 57535 * Copyright (c) 2013-present, Facebook, Inc. 57536 * 57537 * This source code is licensed under the MIT license found in the 57538 * LICENSE file in the root directory of this source tree. 57539 * 57540 */ 57541 57542 57543 57544var _prodInvariant = __webpack_require__(12); 57545 57546var ReactPropTypeLocationNames = __webpack_require__(465); 57547var ReactPropTypesSecret = __webpack_require__(180); 57548 57549var invariant = __webpack_require__(10); 57550var warning = __webpack_require__(11); 57551 57552var ReactComponentTreeHook; 57553 57554if (typeof process !== 'undefined' && Object({"NODE_ENV":"dev"}) && "dev" === 'test') { 57555 // Temporary hack. 57556 // Inline requires don't work well with Jest: 57557 // https://github.com/facebook/react/issues/7240 57558 // Remove the inline requires when we don't need them anymore: 57559 // https://github.com/facebook/react/pull/7178 57560 ReactComponentTreeHook = __webpack_require__(23); 57561} 57562 57563var loggedTypeFailures = {}; 57564 57565/** 57566 * Assert that the values match with the type specs. 57567 * Error messages are memorized and will only be shown once. 57568 * 57569 * @param {object} typeSpecs Map of name to a ReactPropType 57570 * @param {object} values Runtime values that need to be type-checked 57571 * @param {string} location e.g. "prop", "context", "child context" 57572 * @param {string} componentName Name of the component for error messages. 57573 * @param {?object} element The React element that is being type-checked 57574 * @param {?number} debugID The React component instance that is being type-checked 57575 * @private 57576 */ 57577function checkReactTypeSpec(typeSpecs, values, location, componentName, element, debugID) { 57578 for (var typeSpecName in typeSpecs) { 57579 if (typeSpecs.hasOwnProperty(typeSpecName)) { 57580 var error; 57581 // Prop type validation may throw. In case they do, we don't want to 57582 // fail the render phase where it didn't fail before. So we log it. 57583 // After these have been cleaned up, we'll let them throw.
57584 try { 57585 // This is intentionally an invariant that gets caught. It's the same 57586 // behavior as without this statement except with a better message. 57587 !(typeof typeSpecs[typeSpecName] === 'function') ? true ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : _prodInvariant('84', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : void 0; 57588 error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); 57589 } catch (ex) { 57590 error = ex; 57591 } 57592 true ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName, typeof error) : void 0; 57593 if (error instanceof Error && !(error.message in loggedTypeFailures)) { 57594 // Only monitor this failure once because there tends to be a lot of the 57595 // same error. 57596 loggedTypeFailures[error.message] = true; 57597 57598 var componentStackInfo = ''; 57599 57600 if (true) { 57601 if (!ReactComponentTreeHook) { 57602 ReactComponentTreeHook = __webpack_require__(23); 57603 } 57604 if (debugID !== null) { 57605 componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID); 57606 } else if (element !== null) { 57607 componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element); 57608 } 57609 } 57610 57611 true ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : void 0; 57612 } 57613 } 57614 } 57615} 57616 57617module.exports = checkReactTypeSpec; 57618/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(41))) 57619 57620/***/ }), 57621/* 465 */ 57622/***/ (function(module, exports, __webpack_require__) { 57623 57624"use strict"; 57625/** 57626 * Copyright (c) 2013-present, Facebook, Inc. 57627 * 57628 * This source code is licensed under the MIT license found in the 57629 * LICENSE file in the root directory of this source tree. 57630 * 57631 * 57632 */ 57633 57634 57635 57636var ReactPropTypeLocationNames = {}; 57637 57638if (true) { 57639 ReactPropTypeLocationNames = { 57640 prop: 'prop', 57641 context: 'context', 57642 childContext: 'child context' 57643 }; 57644} 57645 57646module.exports = ReactPropTypeLocationNames; 57647 57648/***/ }), 57649/* 466 */ 57650/***/ (function(module, exports, __webpack_require__) { 57651 57652"use strict"; 57653/** 57654 * Copyright (c) 2013-present, Facebook, Inc. 57655 * 57656 * This source code is licensed under the MIT license found in the 57657 * LICENSE file in the root directory of this source tree. 57658 * 57659 * 57660 */ 57661 57662 57663 57664var nextDebugID = 1; 57665 57666function getNextDebugID() { 57667 return nextDebugID++; 57668} 57669 57670module.exports = getNextDebugID; 57671 57672/***/ }), 57673/* 467 */ 57674/***/ (function(module, exports, __webpack_require__) { 57675 57676"use strict"; 57677/** 57678 * Copyright (c) 2014-present, Facebook, Inc. 57679 * 57680 * This source code is licensed under the MIT license found in the 57681 * LICENSE file in the root directory of this source tree. 57682 * 57683 * 57684 */ 57685 57686 57687 57688// The Symbol used to tag the ReactElement type. If there is no native Symbol 57689// nor polyfill, then a plain number is used for performance. 57690 57691var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7; 57692 57693module.exports = REACT_ELEMENT_TYPE; 57694 57695/***/ }), 57696/* 468 */ 57697/***/ (function(module, exports, __webpack_require__) { 57698 57699"use strict"; 57700/** 57701 * Copyright (c) 2013-present, Facebook, Inc. 57702 * 57703 * This source code is licensed under the MIT license found in the 57704 * LICENSE file in the root directory of this source tree. 57705 * 57706 * 57707 */ 57708 57709 57710 57711/* global Symbol */ 57712 57713var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; 57714var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. 57715 57716/** 57717 * Returns the iterator method function contained on the iterable object. 57718 * 57719 * Be sure to invoke the function with the iterable as context: 57720 * 57721 * var iteratorFn = getIteratorFn(myIterable); 57722 * if (iteratorFn) { 57723 * var iterator = iteratorFn.call(myIterable); 57724 * ... 57725 * } 57726 * 57727 * @param {?object} maybeIterable 57728 * @return {?function} 57729 */ 57730function getIteratorFn(maybeIterable) { 57731 var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); 57732 if (typeof iteratorFn === 'function') { 57733 return iteratorFn; 57734 } 57735} 57736 57737module.exports = getIteratorFn; 57738 57739/***/ }), 57740/* 469 */ 57741/***/ (function(module, exports, __webpack_require__) { 57742 57743"use strict"; 57744/* WEBPACK VAR INJECTION */(function(process) {/** 57745 * Copyright (c) 2013-present, Facebook, Inc. 57746 * 57747 * This source code is licensed under the MIT license found in the 57748 * LICENSE file in the root directory of this source tree. 57749 * 57750 * 57751 */ 57752 57753 57754 57755var KeyEscapeUtils = __webpack_require__(118); 57756var traverseAllChildren = __webpack_require__(186); 57757var warning = __webpack_require__(11); 57758 57759var ReactComponentTreeHook; 57760 57761if (typeof process !== 'undefined' && Object({"NODE_ENV":"dev"}) && "dev" === 'test') { 57762 // Temporary hack. 57763 // Inline requires don't work well with Jest: 57764 // https://github.com/facebook/react/issues/7240 57765 // Remove the inline requires when we don't need them anymore: 57766 // https://github.com/facebook/react/pull/7178 57767 ReactComponentTreeHook = __webpack_require__(23); 57768} 57769 57770/** 57771 * @param {function} traverseContext Context passed through traversal. 57772 * @param {?ReactComponent} child React child component. 57773 * @param {!string} name String name of key path to child. 57774 * @param {number=} selfDebugID Optional debugID of the current internal instance. 57775 */ 57776function flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID) { 57777 // We found a component instance. 57778 if (traverseContext && typeof traverseContext === 'object') { 57779 var result = traverseContext; 57780 var keyUnique = result[name] === undefined; 57781 if (true) { 57782 if (!ReactComponentTreeHook) { 57783 ReactComponentTreeHook = __webpack_require__(23); 57784 } 57785 if (!keyUnique) { 57786 true ? warning(false, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.%s', KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0; 57787 } 57788 } 57789 if (keyUnique && child != null) { 57790 result[name] = child; 57791 } 57792 } 57793} 57794 57795/** 57796 * Flattens children that are typically specified as `props.children`. Any null 57797 * children will not be included in the resulting object. 57798 * @return {!object} flattened children keyed by name. 57799 */ 57800function flattenChildren(children, selfDebugID) { 57801 if (children == null) { 57802 return children; 57803 } 57804 var result = {}; 57805 57806 if (true) { 57807 traverseAllChildren(children, function (traverseContext, child, name) { 57808 return flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID); 57809 }, result); 57810 } else { 57811 traverseAllChildren(children, flattenSingleChildIntoContext, result); 57812 } 57813 return result; 57814} 57815 57816module.exports = flattenChildren; 57817/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(41))) 57818 57819/***/ }), 57820/* 470 */ 57821/***/ (function(module, exports, __webpack_require__) { 57822 57823"use strict"; 57824/** 57825 * Copyright (c) 2014-present, Facebook, Inc. 57826 * 57827 * This source code is licensed under the MIT license found in the 57828 * LICENSE file in the root directory of this source tree. 57829 * 57830 */ 57831 57832 57833 57834var _assign = __webpack_require__(14); 57835 57836var PooledClass = __webpack_require__(42); 57837var Transaction = __webpack_require__(80); 57838var ReactInstrumentation = __webpack_require__(24); 57839var ReactServerUpdateQueue = __webpack_require__(471); 57840 57841/** 57842 * Executed within the scope of the `Transaction` instance. Consider these as 57843 * being member methods, but with an implied ordering while being isolated from 57844 * each other. 57845 */ 57846var TRANSACTION_WRAPPERS = []; 57847 57848if (true) { 57849 TRANSACTION_WRAPPERS.push({ 57850 initialize: ReactInstrumentation.debugTool.onBeginFlush, 57851 close: ReactInstrumentation.debugTool.onEndFlush 57852 }); 57853} 57854 57855var noopCallbackQueue = { 57856 enqueue: function () {} 57857}; 57858 57859/** 57860 * @class ReactServerRenderingTransaction 57861 * @param {boolean} renderToStaticMarkup 57862 */ 57863function ReactServerRenderingTransaction(renderToStaticMarkup) { 57864 this.reinitializeTransaction(); 57865 this.renderToStaticMarkup = renderToStaticMarkup; 57866 this.useCreateElement = false;
57867 this.updateQueue = new ReactServerUpdateQueue(this); 57868} 57869 57870var Mixin = { 57871 /** 57872 * @see Transaction 57873 * @abstract 57874 * @final 57875 * @return {array} Empty list of operation wrap procedures. 57876 */ 57877 getTransactionWrappers: function () { 57878 return TRANSACTION_WRAPPERS; 57879 }, 57880 57881 /** 57882 * @return {object} The queue to collect `onDOMReady` callbacks with. 57883 */ 57884 getReactMountReady: function () { 57885 return noopCallbackQueue; 57886 }, 57887 57888 /** 57889 * @return {object} The queue to collect React async events. 57890 */ 57891 getUpdateQueue: function () { 57892 return this.updateQueue; 57893 }, 57894 57895 /** 57896 * `PooledClass` looks for this, and will invoke this before allowing this 57897 * instance to be reused. 57898 */ 57899 destructor: function () {}, 57900 57901 checkpoint: function () {}, 57902 57903 rollback: function () {} 57904}; 57905 57906_assign(ReactServerRenderingTransaction.prototype, Transaction, Mixin); 57907 57908PooledClass.addPoolingTo(ReactServerRenderingTransaction); 57909 57910module.exports = ReactServerRenderingTransaction; 57911 57912/***/ }), 57913/* 471 */ 57914/***/ (function(module, exports, __webpack_require__) { 57915 57916"use strict"; 57917/** 57918 * Copyright (c) 2015-present, Facebook, Inc. 57919 * 57920 * This source code is licensed under the MIT license found in the 57921 * LICENSE file in the root directory of this source tree. 57922 * 57923 * 57924 */ 57925 57926 57927 57928function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 57929 57930var ReactUpdateQueue = __webpack_require__(119); 57931 57932var warning = __webpack_require__(11); 57933 57934function warnNoop(publicInstance, callerName) { 57935 if (true) { 57936 var constructor = publicInstance.constructor; 57937 true ? warning(false, '%s(...): Can only update a mounting component. ' + 'This usually means you called %s() outside componentWillMount() on the server. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : void 0; 57938 } 57939} 57940 57941/** 57942 * This is the update queue used for server rendering. 57943 * It delegates to ReactUpdateQueue while server rendering is in progress and 57944 * switches to ReactNoopUpdateQueue after the transaction has completed. 57945 * @class ReactServerUpdateQueue 57946 * @param {Transaction} transaction 57947 */ 57948 57949var ReactServerUpdateQueue = function () { 57950 function ReactServerUpdateQueue(transaction) { 57951 _classCallCheck(this, ReactServerUpdateQueue); 57952 57953 this.transaction = transaction; 57954 } 57955 57956 /** 57957 * Checks whether or not this composite component is mounted. 57958 * @param {ReactClass} publicInstance The instance we want to test. 57959 * @return {boolean} True if mounted, false otherwise. 57960 * @protected 57961 * @final 57962 */ 57963 57964 57965 ReactServerUpdateQueue.prototype.isMounted = function isMounted(publicInstance) { 57966 return false; 57967 }; 57968 57969 /** 57970 * Enqueue a callback that will be executed after all the pending updates 57971 * have processed. 57972 * 57973 * @param {ReactClass} publicInstance The instance to use as `this` context. 57974 * @param {?function} callback Called after state is updated. 57975 * @internal 57976 */ 57977 57978 57979 ReactServerUpdateQueue.prototype.enqueueCallback = function enqueueCallback(publicInstance, callback, callerName) { 57980 if (this.transaction.isInTransaction()) { 57981 ReactUpdateQueue.enqueueCallback(publicInstance, callback, callerName); 57982 } 57983 }; 57984 57985 /** 57986 * Forces an update. This should only be invoked when it is known with 57987 * certainty that we are **not** in a DOM transaction. 57988 * 57989 * You may want to call this when you know that some deeper aspect of the 57990 * component's state has changed but `setState` was not called. 57991 * 57992 * This will not invoke `shouldComponentUpdate`, but it will invoke 57993 * `componentWillUpdate` and `componentDidUpdate`. 57994 * 57995 * @param {ReactClass} publicInstance The instance that should rerender. 57996 * @internal 57997 */ 57998 57999 58000 ReactServerUpdateQueue.prototype.enqueueForceUpdate = function enqueueForceUpdate(publicInstance) { 58001 if (this.transaction.isInTransaction()) { 58002 ReactUpdateQueue.enqueueForceUpdate(publicInstance); 58003 } else { 58004 warnNoop(publicInstance, 'forceUpdate'); 58005 } 58006 }; 58007 58008 /** 58009 * Replaces all of the state. Always use this or `setState` to mutate state. 58010 * You should treat `this.state` as immutable. 58011 * 58012 * There is no guarantee that `this.state` will be immediately updated, so 58013 * accessing `this.state` after calling this method may return the old value. 58014 * 58015 * @param {ReactClass} publicInstance The instance that should rerender. 58016 * @param {object|function} completeState Next state. 58017 * @internal 58018 */ 58019 58020 58021 ReactServerUpdateQueue.prototype.enqueueReplaceState = function enqueueReplaceState(publicInstance, completeState) { 58022 if (this.transaction.isInTransaction()) { 58023 ReactUpdateQueue.enqueueReplaceState(publicInstance, completeState); 58024 } else { 58025 warnNoop(publicInstance, 'replaceState'); 58026 } 58027 }; 58028 58029 /** 58030 * Sets a subset of the state. This only exists because _pendingState is 58031 * internal. This provides a merging strategy that is not available to deep 58032 * properties which is confusing. TODO: Expose pendingState or don't use it 58033 * during the merge. 58034 * 58035 * @param {ReactClass} publicInstance The instance that should rerender. 58036 * @param {object|function} partialState Next partial state to be merged with state. 58037 * @internal 58038 */ 58039 58040 58041 ReactServerUpdateQueue.prototype.enqueueSetState = function enqueueSetState(publicInstance, partialState) { 58042 if (this.transaction.isInTransaction()) { 58043 ReactUpdateQueue.enqueueSetState(publicInstance, partialState); 58044 } else { 58045 warnNoop(publicInstance, 'setState'); 58046 } 58047 }; 58048 58049 return ReactServerUpdateQueue; 58050}(); 58051 58052module.exports = ReactServerUpdateQueue; 58053 58054/***/ }), 58055/* 472 */ 58056/***/ (function(module, exports, __webpack_require__) { 58057 58058"use strict"; 58059/** 58060 * Copyright (c) 2014-present, Facebook, Inc. 58061 * 58062 * This source code is licensed under the MIT license found in the 58063 * LICENSE file in the root directory of this source tree. 58064 * 58065 */ 58066 58067 58068 58069var _assign = __webpack_require__(14); 58070 58071var DOMLazyTree = __webpack_require__(54); 58072var ReactDOMComponentTree = __webpack_require__(15); 58073 58074var ReactDOMEmptyComponent = function (instantiate) { 58075 // ReactCompositeComponent uses this: 58076 this._currentElement = null; 58077 // ReactDOMComponentTree uses these: 58078 this._hostNode = null; 58079 this._hostParent = null; 58080 this._hostContainerInfo = null; 58081 this._domID = 0; 58082}; 58083_assign(ReactDOMEmptyComponent.prototype, { 58084 mountComponent: function (transaction, hostParent, hostContainerInfo, context) { 58085 var domID = hostContainerInfo._idCounter++; 58086 this._domID = domID; 58087 this._hostParent = hostParent; 58088 this._hostContainerInfo = hostContainerInfo; 58089 58090 var nodeValue = ' react-empty: ' + this._domID + ' '; 58091 if (transaction.useCreateElement) { 58092 var ownerDocument = hostContainerInfo._ownerDocument; 58093 var node = ownerDocument.createComment(nodeValue); 58094 ReactDOMComponentTree.precacheNode(this, node); 58095 return DOMLazyTree(node); 58096 } else { 58097 if (transaction.renderToStaticMarkup) { 58098 // Normally we'd insert a comment node, but since this is a situation 58099 // where React won't take over (static pages), we can simply return 58100 // nothing. 58101 return ''; 58102 } 58103 return '<!--' + nodeValue + '-->'; 58104 } 58105 }, 58106 receiveComponent: function () {}, 58107 getHostNode: function () { 58108 return ReactDOMComponentTree.getNodeFromInstance(this); 58109 }, 58110 unmountComponent: function () { 58111 ReactDOMComponentTree.uncacheNode(this); 58112 } 58113}); 58114 58115module.exports = ReactDOMEmptyComponent; 58116 58117/***/ }), 58118/* 473 */ 58119/***/ (function(module, exports, __webpack_require__) { 58120 58121"use strict"; 58122/** 58123 * Copyright (c) 2015-present, Facebook, Inc. 58124 * 58125 * This source code is licensed under the MIT license found in the 58126 * LICENSE file in the root directory of this source tree. 58127 * 58128 */ 58129 58130 58131 58132var _prodInvariant = __webpack_require__(12); 58133 58134var invariant = __webpack_require__(10); 58135 58136/** 58137 * Return the lowest common ancestor of A and B, or null if they are in 58138 * different trees. 58139 */ 58140function getLowestCommonAncestor(instA, instB) { 58141 !('_hostNode' in instA) ? true ? invariant(false, 'getNodeFromInstance: Invalid argument.') : _prodInvariant('33') : void 0; 58142 !('_hostNode' in instB) ? true ? invariant(false, 'getNodeFromInstance: Invalid argument.') : _prodInvariant('33') : void 0; 58143 58144 var depthA = 0; 58145 for (var tempA = instA; tempA; tempA = tempA._hostParent) { 58146 depthA++; 58147 } 58148 var depthB = 0; 58149 for (var tempB = instB; tempB; tempB = tempB._hostParent) { 58150 depthB++; 58151 } 58152 58153 // If A is deeper, crawl up. 58154 while (depthA - depthB > 0) { 58155 instA = instA._hostParent; 58156 depthA--; 58157 } 58158 58159 // If B is deeper, crawl up. 58160 while (depthB - depthA > 0) { 58161 instB = instB._hostParent; 58162 depthB--; 58163 } 58164 58165 // Walk in lockstep until we find a match. 58166 var depth = depthA; 58167 while (depth--) { 58168 if (instA === instB) { 58169 return instA; 58170 } 58171 instA = instA._hostParent; 58172 instB = instB._hostParent; 58173 } 58174 return null; 58175} 58176 58177/** 58178 * Return if A is an ancestor of B. 58179 */ 58180function isAncestor(instA, instB) { 58181 !('_hostNode' in instA) ? true ? invariant(false, 'isAncestor: Invalid argument.') : _prodInvariant('35') : void 0; 58182 !('_hostNode' in instB) ? true ? invariant(false, 'isAncestor: Invalid argument.') : _prodInvariant('35') : void 0; 58183 58184 while (instB) { 58185 if (instB === instA) { 58186 return true; 58187 } 58188 instB = instB._hostParent; 58189 } 58190 return false;
58191} 58192 58193/** 58194 * Return the parent instance of the passed-in instance. 58195 */ 58196function getParentInstance(inst) { 58197 !('_hostNode' in inst) ? true ? invariant(false, 'getParentInstance: Invalid argument.') : _prodInvariant('36') : void 0; 58198 58199 return inst._hostParent; 58200} 58201 58202/** 58203 * Simulates the traversal of a two-phase, capture/bubble event dispatch. 58204 */ 58205function traverseTwoPhase(inst, fn, arg) { 58206 var path = []; 58207 while (inst) { 58208 path.push(inst); 58209 inst = inst._hostParent; 58210 } 58211 var i; 58212 for (i = path.length; i-- > 0;) { 58213 fn(path[i], 'captured', arg); 58214 } 58215 for (i = 0; i < path.length; i++) { 58216 fn(path[i], 'bubbled', arg); 58217 } 58218} 58219 58220/** 58221 * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that 58222 * should would receive a `mouseEnter` or `mouseLeave` event. 58223 * 58224 * Does not invoke the callback on the nearest common ancestor because nothing 58225 * "entered" or "left" that element. 58226 */ 58227function traverseEnterLeave(from, to, fn, argFrom, argTo) { 58228 var common = from && to ? getLowestCommonAncestor(from, to) : null; 58229 var pathFrom = []; 58230 while (from && from !== common) { 58231 pathFrom.push(from); 58232 from = from._hostParent; 58233 } 58234 var pathTo = []; 58235 while (to && to !== common) { 58236 pathTo.push(to); 58237 to = to._hostParent; 58238 } 58239 var i; 58240 for (i = 0; i < pathFrom.length; i++) { 58241 fn(pathFrom[i], 'bubbled', argFrom); 58242 } 58243 for (i = pathTo.length; i-- > 0;) { 58244 fn(pathTo[i], 'captured', argTo); 58245 } 58246} 58247 58248module.exports = { 58249 isAncestor: isAncestor, 58250 getLowestCommonAncestor: getLowestCommonAncestor, 58251 getParentInstance: getParentInstance, 58252 traverseTwoPhase: traverseTwoPhase, 58253 traverseEnterLeave: traverseEnterLeave 58254}; 58255 58256/***/ }), 58257/* 474 */ 58258/***/ (function(module, exports, __webpack_require__) { 58259 58260"use strict"; 58261/** 58262 * Copyright (c) 2013-present, Facebook, Inc. 58263 * 58264 * This source code is licensed under the MIT license found in the 58265 * LICENSE file in the root directory of this source tree. 58266 * 58267 */ 58268 58269 58270 58271var _prodInvariant = __webpack_require__(12), 58272 _assign = __webpack_require__(14); 58273 58274var DOMChildrenOperations = __webpack_require__(111); 58275var DOMLazyTree = __webpack_require__(54); 58276var ReactDOMComponentTree = __webpack_require__(15); 58277 58278var escapeTextContentForBrowser = __webpack_require__(83); 58279var invariant = __webpack_require__(10); 58280var validateDOMNesting = __webpack_require__(120); 58281 58282/** 58283 * Text nodes violate a couple assumptions that React makes about components: 58284 * 58285 * - When mounting text into the DOM, adjacent text nodes are merged. 58286 * - Text nodes cannot be assigned a React root ID. 58287 * 58288 * This component is used to wrap strings between comment nodes so that they 58289 * can undergo the same reconciliation that is applied to elements. 58290 * 58291 * TODO: Investigate representing React components in the DOM with text nodes. 58292 * 58293 * @class ReactDOMTextComponent 58294 * @extends ReactComponent 58295 * @internal 58296 */ 58297var ReactDOMTextComponent = function (text) { 58298 // TODO: This is really a ReactText (ReactNode), not a ReactElement 58299 this._currentElement = text; 58300 this._stringText = '' + text; 58301 // ReactDOMComponentTree uses these: 58302 this._hostNode = null; 58303 this._hostParent = null; 58304 58305 // Properties 58306 this._domID = 0; 58307 this._mountIndex = 0; 58308 this._closingComment = null; 58309 this._commentNodes = null; 58310}; 58311 58312_assign(ReactDOMTextComponent.prototype, { 58313 /** 58314 * Creates the markup for this text node. This node is not intended to have 58315 * any features besides containing text content. 58316 * 58317 * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction 58318 * @return {string} Markup for this text node. 58319 * @internal 58320 */ 58321 mountComponent: function (transaction, hostParent, hostContainerInfo, context) { 58322 if (true) { 58323 var parentInfo; 58324 if (hostParent != null) { 58325 parentInfo = hostParent._ancestorInfo; 58326 } else if (hostContainerInfo != null) { 58327 parentInfo = hostContainerInfo._ancestorInfo; 58328 } 58329 if (parentInfo) { 58330 // parentInfo should always be present except for the top-level 58331 // component when server rendering 58332 validateDOMNesting(null, this._stringText, this, parentInfo); 58333 } 58334 } 58335 58336 var domID = hostContainerInfo._idCounter++; 58337 var openingValue = ' react-text: ' + domID + ' '; 58338 var closingValue = ' /react-text '; 58339 this._domID = domID; 58340 this._hostParent = hostParent; 58341 if (transaction.useCreateElement) { 58342 var ownerDocument = hostContainerInfo._ownerDocument; 58343 var openingComment = ownerDocument.createComment(openingValue); 58344 var closingComment = ownerDocument.createComment(closingValue); 58345 var lazyTree = DOMLazyTree(ownerDocument.createDocumentFragment()); 58346 DOMLazyTree.queueChild(lazyTree, DOMLazyTree(openingComment)); 58347 if (this._stringText) { 58348 DOMLazyTree.queueChild(lazyTree, DOMLazyTree(ownerDocument.createTextNode(this._stringText))); 58349 } 58350 DOMLazyTree.queueChild(lazyTree, DOMLazyTree(closingComment)); 58351 ReactDOMComponentTree.precacheNode(this, openingComment); 58352 this._closingComment = closingComment; 58353 return lazyTree; 58354 } else { 58355 var escapedText = escapeTextContentForBrowser(this._stringText); 58356 58357 if (transaction.renderToStaticMarkup) { 58358 // Normally we'd wrap this between comment nodes for the reasons stated 58359 // above, but since this is a situation where React won't take over 58360 // (static pages), we can simply return the text as it is. 58361 return escapedText; 58362 } 58363 58364 return '<!--' + openingValue + '-->' + escapedText + '<!--' + closingValue + '-->'; 58365 } 58366 }, 58367 58368 /** 58369 * Updates this component by updating the text content. 58370 * 58371 * @param {ReactText} nextText The next text content 58372 * @param {ReactReconcileTransaction} transaction 58373 * @internal 58374 */ 58375 receiveComponent: function (nextText, transaction) { 58376 if (nextText !== this._currentElement) { 58377 this._currentElement = nextText; 58378 var nextStringText = '' + nextText; 58379 if (nextStringText !== this._stringText) { 58380 // TODO: Save this as pending props and use performUpdateIfNecessary 58381 // and/or updateComponent to do the actual update for consistency with 58382 // other component types? 58383 this._stringText = nextStringText; 58384 var commentNodes = this.getHostNode(); 58385 DOMChildrenOperations.replaceDelimitedText(commentNodes[0], commentNodes[1], nextStringText); 58386 } 58387 } 58388 }, 58389 58390 getHostNode: function () { 58391 var hostNode = this._commentNodes; 58392 if (hostNode) { 58393 return hostNode; 58394 } 58395 if (!this._closingComment) { 58396 var openingComment = ReactDOMComponentTree.getNodeFromInstance(this);
58397 var node = openingComment.nextSibling; 58398 while (true) { 58399 !(node != null) ? true ? invariant(false, 'Missing closing comment for text component %s', this._domID) : _prodInvariant('67', this._domID) : void 0; 58400 if (node.nodeType === 8 && node.nodeValue === ' /react-text ') { 58401 this._closingComment = node; 58402 break; 58403 } 58404 node = node.nextSibling; 58405 } 58406 } 58407 hostNode = [this._hostNode, this._closingComment]; 58408 this._commentNodes = hostNode; 58409 return hostNode; 58410 }, 58411 58412 unmountComponent: function () { 58413 this._closingComment = null; 58414 this._commentNodes = null; 58415 ReactDOMComponentTree.uncacheNode(this); 58416 } 58417}); 58418 58419module.exports = ReactDOMTextComponent; 58420 58421/***/ }), 58422/* 475 */ 58423/***/ (function(module, exports, __webpack_require__) { 58424 58425"use strict"; 58426/** 58427 * Copyright (c) 2013-present, Facebook, Inc. 58428 * 58429 * This source code is licensed under the MIT license found in the 58430 * LICENSE file in the root directory of this source tree. 58431 * 58432 */ 58433 58434 58435 58436var _assign = __webpack_require__(14); 58437 58438var ReactUpdates = __webpack_require__(31); 58439var Transaction = __webpack_require__(80); 58440 58441var emptyFunction = __webpack_require__(29); 58442 58443var RESET_BATCHED_UPDATES = { 58444 initialize: emptyFunction, 58445 close: function () { 58446 ReactDefaultBatchingStrategy.isBatchingUpdates = false; 58447 } 58448}; 58449 58450var FLUSH_BATCHED_UPDATES = { 58451 initialize: emptyFunction, 58452 close: ReactUpdates.flushBatchedUpdates.bind(ReactUpdates) 58453}; 58454 58455var TRANSACTION_WRAPPERS = [FLUSH_BATCHED_UPDATES, RESET_BATCHED_UPDATES]; 58456 58457function ReactDefaultBatchingStrategyTransaction() { 58458 this.reinitializeTransaction(); 58459} 58460 58461_assign(ReactDefaultBatchingStrategyTransaction.prototype, Transaction, { 58462 getTransactionWrappers: function () { 58463 return TRANSACTION_WRAPPERS; 58464 } 58465}); 58466 58467var transaction = new ReactDefaultBatchingStrategyTransaction(); 58468 58469var ReactDefaultBatchingStrategy = { 58470 isBatchingUpdates: false, 58471 58472 /** 58473 * Call the provided function in a context within which calls to `setState` 58474 * and friends are batched such that components aren't updated unnecessarily. 58475 */ 58476 batchedUpdates: function (callback, a, b, c, d, e) { 58477 var alreadyBatchingUpdates = ReactDefaultBatchingStrategy.isBatchingUpdates; 58478 58479 ReactDefaultBatchingStrategy.isBatchingUpdates = true; 58480 58481 // The code is written this way to avoid extra allocations 58482 if (alreadyBatchingUpdates) { 58483 return callback(a, b, c, d, e); 58484 } else { 58485 return transaction.perform(callback, null, a, b, c, d, e); 58486 } 58487 } 58488}; 58489 58490module.exports = ReactDefaultBatchingStrategy; 58491 58492/***/ }), 58493/* 476 */ 58494/***/ (function(module, exports, __webpack_require__) { 58495 58496"use strict"; 58497/** 58498 * Copyright (c) 2013-present, Facebook, Inc. 58499 * 58500 * This source code is licensed under the MIT license found in the 58501 * LICENSE file in the root directory of this source tree. 58502 * 58503 */ 58504 58505 58506 58507var _assign = __webpack_require__(14); 58508 58509var EventListener = __webpack_require__(187); 58510var ExecutionEnvironment = __webpack_require__(18); 58511var PooledClass = __webpack_require__(42); 58512var ReactDOMComponentTree = __webpack_require__(15); 58513var ReactUpdates = __webpack_require__(31); 58514 58515var getEventTarget = __webpack_require__(107); 58516var getUnboundedScrollPosition = __webpack_require__(477); 58517 58518/** 58519 * Find the deepest React component completely containing the root of the 58520 * passed-in instance (for use when entire React trees are nested within each 58521 * other). If React trees are not nested, returns null. 58522 */ 58523function findParent(inst) { 58524 // TODO: It may be a good idea to cache this to prevent unnecessary DOM 58525 // traversal, but caching is difficult to do correctly without using a 58526 // mutation observer to listen for all DOM changes. 58527 while (inst._hostParent) { 58528 inst = inst._hostParent; 58529 } 58530 var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst); 58531 var container = rootNode.parentNode; 58532 return ReactDOMComponentTree.getClosestInstanceFromNode(container); 58533} 58534 58535// Used to store ancestor hierarchy in top level callback 58536function TopLevelCallbackBookKeeping(topLevelType, nativeEvent) { 58537 this.topLevelType = topLevelType; 58538 this.nativeEvent = nativeEvent; 58539 this.ancestors = []; 58540}
58541_assign(TopLevelCallbackBookKeeping.prototype, { 58542 destructor: function () { 58543 this.topLevelType = null; 58544 this.nativeEvent = null; 58545 this.ancestors.length = 0; 58546 } 58547}); 58548PooledClass.addPoolingTo(TopLevelCallbackBookKeeping, PooledClass.twoArgumentPooler); 58549 58550function handleTopLevelImpl(bookKeeping) { 58551 var nativeEventTarget = getEventTarget(bookKeeping.nativeEvent); 58552 var targetInst = ReactDOMComponentTree.getClosestInstanceFromNode(nativeEventTarget); 58553 58554 // Loop through the hierarchy, in case there's any nested components. 58555 // It's important that we build the array of ancestors before calling any 58556 // event handlers, because event handlers can modify the DOM, leading to 58557 // inconsistencies with ReactMount's node cache. See #1105. 58558 var ancestor = targetInst; 58559 do { 58560 bookKeeping.ancestors.push(ancestor); 58561 ancestor = ancestor && findParent(ancestor); 58562 } while (ancestor); 58563 58564 for (var i = 0; i < bookKeeping.ancestors.length; i++) { 58565 targetInst = bookKeeping.ancestors[i]; 58566 ReactEventListener._handleTopLevel(bookKeeping.topLevelType, targetInst, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent)); 58567 } 58568} 58569 58570function scrollValueMonitor(cb) { 58571 var scrollPosition = getUnboundedScrollPosition(window); 58572 cb(scrollPosition); 58573} 58574 58575var ReactEventListener = { 58576 _enabled: true, 58577 _handleTopLevel: null, 58578 58579 WINDOW_HANDLE: ExecutionEnvironment.canUseDOM ? window : null, 58580 58581 setHandleTopLevel: function (handleTopLevel) { 58582 ReactEventListener._handleTopLevel = handleTopLevel; 58583 }, 58584 58585 setEnabled: function (enabled) { 58586 ReactEventListener._enabled = !!enabled; 58587 }, 58588 58589 isEnabled: function () { 58590 return ReactEventListener._enabled; 58591 }, 58592 58593 /** 58594 * Traps top-level events by using event bubbling. 58595 * 58596 * @param {string} topLevelType Record from `EventConstants`. 58597 * @param {string} handlerBaseName Event name (e.g. "click"). 58598 * @param {object} element Element on which to attach listener. 58599 * @return {?object} An object with a remove function which will forcefully 58600 * remove the listener. 58601 * @internal 58602 */ 58603 trapBubbledEvent: function (topLevelType, handlerBaseName, element) { 58604 if (!element) { 58605 return null; 58606 } 58607 return EventListener.listen(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType)); 58608 }, 58609 58610 /** 58611 * Traps a top-level event by using event capturing. 58612 * 58613 * @param {string} topLevelType Record from `EventConstants`. 58614 * @param {string} handlerBaseName Event name (e.g. "click"). 58615 * @param {object} element Element on which to attach listener. 58616 * @return {?object} An object with a remove function which will forcefully 58617 * remove the listener. 58618 * @internal 58619 */ 58620 trapCapturedEvent: function (topLevelType, handlerBaseName, element) { 58621 if (!element) { 58622 return null; 58623 } 58624 return EventListener.capture(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType)); 58625 }, 58626 58627 monitorScrollValue: function (refresh) { 58628 var callback = scrollValueMonitor.bind(null, refresh); 58629 EventListener.listen(window, 'scroll', callback); 58630 }, 58631 58632 dispatchEvent: function (topLevelType, nativeEvent) { 58633 if (!ReactEventListener._enabled) { 58634 return; 58635 } 58636 58637 var bookKeeping = TopLevelCallbackBookKeeping.getPooled(topLevelType, nativeEvent); 58638 try { 58639 // Event queue being processed in the same cycle allows 58640 // `preventDefault`. 58641 ReactUpdates.batchedUpdates(handleTopLevelImpl, bookKeeping); 58642 } finally { 58643 TopLevelCallbackBookKeeping.release(bookKeeping); 58644 } 58645 } 58646}; 58647 58648module.exports = ReactEventListener; 58649 58650/***/ }), 58651/* 477 */ 58652/***/ (function(module, exports, __webpack_require__) { 58653 58654"use strict"; 58655/** 58656 * Copyright (c) 2013-present, Facebook, Inc. 58657 * 58658 * This source code is licensed under the MIT license found in the 58659 * LICENSE file in the root directory of this source tree. 58660 * 58661 * @typechecks 58662 */ 58663 58664 58665 58666/** 58667 * Gets the scroll position of the supplied element or window. 58668 * 58669 * The return values are unbounded, unlike `getScrollPosition`. This means they 58670 * may be negative or exceed the element boundaries (which is possible using 58671 * inertial scrolling). 58672 * 58673 * @param {DOMWindow|DOMElement} scrollable 58674 * @return {object} Map with `x` and `y` keys. 58675 */ 58676
58677function getUnboundedScrollPosition(scrollable) { 58678 if (scrollable.Window && scrollable instanceof scrollable.Window) { 58679 return { 58680 x: scrollable.pageXOffset || scrollable.document.documentElement.scrollLeft, 58681 y: scrollable.pageYOffset || scrollable.document.documentElement.scrollTop 58682 }; 58683 } 58684 return { 58685 x: scrollable.scrollLeft, 58686 y: scrollable.scrollTop 58687 }; 58688} 58689 58690module.exports = getUnboundedScrollPosition; 58691 58692/***/ }), 58693/* 478 */ 58694/***/ (function(module, exports, __webpack_require__) { 58695 58696"use strict"; 58697/** 58698 * Copyright (c) 2013-present, Facebook, Inc. 58699 * 58700 * This source code is licensed under the MIT license found in the 58701 * LICENSE file in the root directory of this source tree. 58702 * 58703 */ 58704 58705 58706 58707var DOMProperty = __webpack_require__(36); 58708var EventPluginHub = __webpack_require__(51); 58709var EventPluginUtils = __webpack_require__(79); 58710var ReactComponentEnvironment = __webpack_require__(115); 58711var ReactEmptyComponent = __webpack_require__(184); 58712var ReactBrowserEventEmitter = __webpack_require__(84); 58713var ReactHostComponent = __webpack_require__(185); 58714var ReactUpdates = __webpack_require__(31); 58715 58716var ReactInjection = { 58717 Component: ReactComponentEnvironment.injection, 58718 DOMProperty: DOMProperty.injection, 58719 EmptyComponent: ReactEmptyComponent.injection, 58720 EventPluginHub: EventPluginHub.injection, 58721 EventPluginUtils: EventPluginUtils.injection, 58722 EventEmitter: ReactBrowserEventEmitter.injection, 58723 HostComponent: ReactHostComponent.injection, 58724 Updates: ReactUpdates.injection 58725}; 58726 58727module.exports = ReactInjection; 58728 58729/***/ }), 58730/* 479 */ 58731/***/ (function(module, exports, __webpack_require__) { 58732 58733"use strict"; 58734/** 58735 * Copyright (c) 2013-present, Facebook, Inc. 58736 * 58737 * This source code is licensed under the MIT license found in the 58738 * LICENSE file in the root directory of this source tree. 58739 * 58740 */ 58741 58742 58743 58744var _assign = __webpack_require__(14); 58745 58746var CallbackQueue = __webpack_require__(172); 58747var PooledClass = __webpack_require__(42); 58748var ReactBrowserEventEmitter = __webpack_require__(84); 58749var ReactInputSelection = __webpack_require__(188); 58750var ReactInstrumentation = __webpack_require__(24); 58751var Transaction = __webpack_require__(80); 58752var ReactUpdateQueue = __webpack_require__(119); 58753 58754/** 58755 * Ensures that, when possible, the selection range (currently selected text 58756 * input) is not disturbed by performing the transaction. 58757 */ 58758var SELECTION_RESTORATION = { 58759 /** 58760 * @return {Selection} Selection information. 58761 */ 58762 initialize: ReactInputSelection.getSelectionInformation, 58763 /** 58764 * @param {Selection} sel Selection information returned from `initialize`. 58765 */ 58766 close: ReactInputSelection.restoreSelection 58767}; 58768 58769/** 58770 * Suppresses events (blur/focus) that could be inadvertently dispatched due to 58771 * high level DOM manipulations (like temporarily removing a text input from the 58772 * DOM). 58773 */ 58774var EVENT_SUPPRESSION = { 58775 /** 58776 * @return {boolean} The enabled status of `ReactBrowserEventEmitter` before 58777 * the reconciliation. 58778 */ 58779 initialize: function () { 58780 var currentlyEnabled = ReactBrowserEventEmitter.isEnabled(); 58781 ReactBrowserEventEmitter.setEnabled(false); 58782 return currentlyEnabled; 58783 }, 58784 58785 /** 58786 * @param {boolean} previouslyEnabled Enabled status of 58787 * `ReactBrowserEventEmitter` before the reconciliation occurred. `close` 58788 * restores the previous value. 58789 */ 58790 close: function (previouslyEnabled) { 58791 ReactBrowserEventEmitter.setEnabled(previouslyEnabled); 58792 } 58793}; 58794 58795/** 58796 * Provides a queue for collecting `componentDidMount` and 58797 * `componentDidUpdate` callbacks during the transaction. 58798 */ 58799var ON_DOM_READY_QUEUEING = { 58800 /** 58801 * Initializes the internal `onDOMReady` queue. 58802 */ 58803 initialize: function () { 58804 this.reactMountReady.reset(); 58805 }, 58806 58807 /** 58808 * After DOM is flushed, invoke all registered `onDOMReady` callbacks. 58809 */ 58810 close: function () { 58811 this.reactMountReady.notifyAll(); 58812 } 58813}; 58814 58815/** 58816 * Executed within the scope of the `Transaction` instance. Consider these as 58817 * being member methods, but with an implied ordering while being isolated from 58818 * each other. 58819 */ 58820var TRANSACTION_WRAPPERS = [SELECTION_RESTORATION, EVENT_SUPPRESSION, ON_DOM_READY_QUEUEING]; 58821 58822if (true) { 58823 TRANSACTION_WRAPPERS.push({ 58824 initialize: ReactInstrumentation.debugTool.onBeginFlush, 58825 close: ReactInstrumentation.debugTool.onEndFlush 58826 }); 58827} 58828 58829/** 58830 * Currently: 58831 * - The order that these are listed in the transaction is critical: 58832 * - Suppresses events. 58833 * - Restores selection range. 58834 * 58835 * Future: 58836 * - Restore document/overflow scroll positions that were unintentionally 58837 * modified via DOM insertions above the top viewport boundary. 58838 * - Implement/integrate with customized constraint based layout system and keep 58839 * track of which dimensions must be remeasured. 58840 * 58841 * @class ReactReconcileTransaction 58842 */ 58843function ReactReconcileTransaction(useCreateElement) { 58844 this.reinitializeTransaction(); 58845 // Only server-side rendering really needs this option (see 58846 // `ReactServerRendering`), but server-side uses 58847 // `ReactServerRenderingTransaction` instead. This option is here so that it's 58848 // accessible and defaults to false when `ReactDOMComponent` and 58849 // `ReactDOMTextComponent` checks it in `mountComponent`.` 58850 this.renderToStaticMarkup = false;
58851 this.reactMountReady = CallbackQueue.getPooled(null); 58852 this.useCreateElement = useCreateElement; 58853} 58854 58855var Mixin = { 58856 /** 58857 * @see Transaction 58858 * @abstract 58859 * @final 58860 * @return {array<object>} List of operation wrap procedures. 58861 * TODO: convert to array<TransactionWrapper> 58862 */ 58863 getTransactionWrappers: function () { 58864 return TRANSACTION_WRAPPERS; 58865 }, 58866 58867 /** 58868 * @return {object} The queue to collect `onDOMReady` callbacks with. 58869 */ 58870 getReactMountReady: function () { 58871 return this.reactMountReady; 58872 }, 58873 58874 /** 58875 * @return {object} The queue to collect React async events. 58876 */ 58877 getUpdateQueue: function () { 58878 return ReactUpdateQueue; 58879 }, 58880 58881 /** 58882 * Save current transaction state -- if the return value from this method is 58883 * passed to `rollback`, the transaction will be reset to that state. 58884 */ 58885 checkpoint: function () { 58886 // reactMountReady is the our only stateful wrapper 58887 return this.reactMountReady.checkpoint(); 58888 }, 58889 58890 rollback: function (checkpoint) { 58891 this.reactMountReady.rollback(checkpoint); 58892 }, 58893 58894 /** 58895 * `PooledClass` looks for this, and will invoke this before allowing this 58896 * instance to be reused. 58897 */ 58898 destructor: function () { 58899 CallbackQueue.release(this.reactMountReady); 58900 this.reactMountReady = null; 58901 } 58902}; 58903 58904_assign(ReactReconcileTransaction.prototype, Transaction, Mixin); 58905 58906PooledClass.addPoolingTo(ReactReconcileTransaction); 58907 58908module.exports = ReactReconcileTransaction; 58909 58910/***/ }), 58911/* 480 */ 58912/***/ (function(module, exports, __webpack_require__) { 58913 58914"use strict"; 58915/** 58916 * Copyright (c) 2013-present, Facebook, Inc. 58917 * 58918 * This source code is licensed under the MIT license found in the 58919 * LICENSE file in the root directory of this source tree. 58920 * 58921 */ 58922 58923 58924 58925var ExecutionEnvironment = __webpack_require__(18); 58926 58927var getNodeForCharacterOffset = __webpack_require__(481); 58928var getTextContentAccessor = __webpack_require__(171); 58929 58930/** 58931 * While `isCollapsed` is available on the Selection object and `collapsed` 58932 * is available on the Range object, IE11 sometimes gets them wrong. 58933 * If the anchor/focus nodes and offsets are the same, the range is collapsed. 58934 */ 58935function isCollapsed(anchorNode, anchorOffset, focusNode, focusOffset) { 58936 return anchorNode === focusNode && anchorOffset === focusOffset; 58937} 58938 58939/** 58940 * Get the appropriate anchor and focus node/offset pairs for IE. 58941 * 58942 * The catch here is that IE's selection API doesn't provide information 58943 * about whether the selection is forward or backward, so we have to 58944 * behave as though it's always forward. 58945 * 58946 * IE text differs from modern selection in that it behaves as though 58947 * block elements end with a new line. This means character offsets will 58948 * differ between the two APIs. 58949 * 58950 * @param {DOMElement} node 58951 * @return {object} 58952 */ 58953function getIEOffsets(node) { 58954 var selection = document.selection; 58955 var selectedRange = selection.createRange(); 58956 var selectedLength = selectedRange.text.length; 58957 58958 // Duplicate selection so we can move range without breaking user selection. 58959 var fromStart = selectedRange.duplicate(); 58960 fromStart.moveToElementText(node); 58961 fromStart.setEndPoint('EndToStart', selectedRange); 58962 58963 var startOffset = fromStart.text.length; 58964 var endOffset = startOffset + selectedLength; 58965 58966 return { 58967 start: startOffset, 58968 end: endOffset 58969 }; 58970} 58971 58972/** 58973 * @param {DOMElement} node 58974 * @return {?object} 58975 */ 58976function getModernOffsets(node) { 58977 var selection = window.getSelection && window.getSelection(); 58978 58979 if (!selection || selection.rangeCount === 0) { 58980 return null; 58981 } 58982 58983 var anchorNode = selection.anchorNode; 58984 var anchorOffset = selection.anchorOffset; 58985 var focusNode = selection.focusNode; 58986 var focusOffset = selection.focusOffset; 58987 58988 var currentRange = selection.getRangeAt(0); 58989 58990 // In Firefox, range.startContainer and range.endContainer can be "anonymous 58991 // divs", e.g. the up/down buttons on an <input type="number">. Anonymous 58992 // divs do not seem to expose properties, triggering a "Permission denied 58993 // error" if any of its properties are accessed. The only seemingly possible 58994 // way to avoid erroring is to access a property that typically works for 58995 // non-anonymous divs and catch any error that may otherwise arise. See 58996 // https://bugzilla.mozilla.org/show_bug.cgi?id=208427 58997 try { 58998 /* eslint-disable no-unused-expressions */ 58999 currentRange.startContainer.nodeType; 59000 currentRange.endContainer.nodeType; 59001 /* eslint-enable no-unused-expressions */ 59002 } catch (e) { 59003 return null; 59004 } 59005 59006 // If the node and offset values are the same, the selection is collapsed. 59007 // `Selection.isCollapsed` is available natively, but IE sometimes gets 59008 // this value wrong. 59009 var isSelectionCollapsed = isCollapsed(selection.anchorNode, selection.anchorOffset, selection.focusNode, selection.focusOffset); 59010 59011 var rangeLength = isSelectionCollapsed ? 0 : currentRange.toString().length; 59012 59013 var tempRange = currentRange.cloneRange(); 59014 tempRange.selectNodeContents(node); 59015 tempRange.setEnd(currentRange.startContainer, currentRange.startOffset); 59016 59017 var isTempRangeCollapsed = isCollapsed(tempRange.startContainer, tempRange.startOffset, tempRange.endContainer, tempRange.endOffset); 59018 59019 var start = isTempRangeCollapsed ? 0 : tempRange.toString().length; 59020 var end = start + rangeLength; 59021 59022 // Detect whether the selection is backward. 59023 var detectionRange = document.createRange(); 59024 detectionRange.setStart(anchorNode, anchorOffset); 59025 detectionRange.setEnd(focusNode, focusOffset); 59026 var isBackward = detectionRange.collapsed; 59027 59028 return { 59029 start: isBackward ? end : start, 59030 end: isBackward ? start : end 59031 }; 59032} 59033 59034/** 59035 * @param {DOMElement|DOMTextNode} node 59036 * @param {object} offsets 59037 */ 59038function setIEOffsets(node, offsets) { 59039 var range = document.selection.createRange().duplicate(); 59040 var start, end; 59041 59042 if (offsets.end === undefined) { 59043 start = offsets.start; 59044 end = start; 59045 } else if (offsets.start > offsets.end) { 59046 start = offsets.end; 59047 end = offsets.start; 59048 } else { 59049 start = offsets.start; 59050 end = offsets.end; 59051 } 59052 59053 range.moveToElementText(node); 59054 range.moveStart('character', start); 59055 range.setEndPoint('EndToStart', range); 59056 range.moveEnd('character', end - start); 59057 range.select(); 59058} 59059 59060/** 59061 * In modern non-IE browsers, we can support both forward and backward 59062 * selections. 59063 *
59064 * Note: IE10+ supports the Selection object, but it does not support 59065 * the `extend` method, which means that even in modern IE, it's not possible 59066 * to programmatically create a backward selection. Thus, for all IE 59067 * versions, we use the old IE API to create our selections. 59068 * 59069 * @param {DOMElement|DOMTextNode} node 59070 * @param {object} offsets 59071 */ 59072function setModernOffsets(node, offsets) { 59073 if (!window.getSelection) { 59074 return; 59075 } 59076 59077 var selection = window.getSelection(); 59078 var length = node[getTextContentAccessor()].length; 59079 var start = Math.min(offsets.start, length); 59080 var end = offsets.end === undefined ? start : Math.min(offsets.end, length); 59081 59082 // IE 11 uses modern selection, but doesn't support the extend method. 59083 // Flip backward selections, so we can set with a single range. 59084 if (!selection.extend && start > end) { 59085 var temp = end; 59086 end = start; 59087 start = temp; 59088 } 59089 59090 var startMarker = getNodeForCharacterOffset(node, start); 59091 var endMarker = getNodeForCharacterOffset(node, end); 59092 59093 if (startMarker && endMarker) { 59094 var range = document.createRange(); 59095 range.setStart(startMarker.node, startMarker.offset); 59096 selection.removeAllRanges(); 59097 59098 if (start > end) { 59099 selection.addRange(range); 59100 selection.extend(endMarker.node, endMarker.offset); 59101 } else { 59102 range.setEnd(endMarker.node, endMarker.offset); 59103 selection.addRange(range); 59104 } 59105 } 59106} 59107 59108var useIEOffsets = ExecutionEnvironment.canUseDOM && 'selection' in document && !('getSelection' in window); 59109 59110var ReactDOMSelection = { 59111 /** 59112 * @param {DOMElement} node 59113 */ 59114 getOffsets: useIEOffsets ? getIEOffsets : getModernOffsets, 59115 59116 /** 59117 * @param {DOMElement|DOMTextNode} node 59118 * @param {object} offsets 59119 */ 59120 setOffsets: useIEOffsets ? setIEOffsets : setModernOffsets 59121}; 59122 59123module.exports = ReactDOMSelection; 59124 59125/***/ }), 59126/* 481 */ 59127/***/ (function(module, exports, __webpack_require__) { 59128 59129"use strict"; 59130/** 59131 * Copyright (c) 2013-present, Facebook, Inc. 59132 * 59133 * This source code is licensed under the MIT license found in the 59134 * LICENSE file in the root directory of this source tree. 59135 * 59136 */ 59137 59138 59139 59140/** 59141 * Given any node return the first leaf node without children. 59142 * 59143 * @param {DOMElement|DOMTextNode} node 59144 * @return {DOMElement|DOMTextNode} 59145 */ 59146 59147function getLeafNode(node) { 59148 while (node && node.firstChild) { 59149 node = node.firstChild; 59150 } 59151 return node; 59152} 59153 59154/** 59155 * Get the next sibling within a container. This will walk up the 59156 * DOM if a node's siblings have been exhausted. 59157 * 59158 * @param {DOMElement|DOMTextNode} node 59159 * @return {?DOMElement|DOMTextNode} 59160 */ 59161function getSiblingNode(node) { 59162 while (node) { 59163 if (node.nextSibling) { 59164 return node.nextSibling; 59165 } 59166 node = node.parentNode; 59167 } 59168} 59169 59170/** 59171 * Get object describing the nodes which contain characters at offset. 59172 * 59173 * @param {DOMElement|DOMTextNode} root 59174 * @param {number} offset 59175 * @return {?object} 59176 */ 59177function getNodeForCharacterOffset(root, offset) { 59178 var node = getLeafNode(root); 59179 var nodeStart = 0; 59180 var nodeEnd = 0; 59181 59182 while (node) { 59183 if (node.nodeType === 3) { 59184 nodeEnd = nodeStart + node.textContent.length; 59185 59186 if (nodeStart <= offset && nodeEnd >= offset) { 59187 return { 59188 node: node, 59189 offset: offset - nodeStart 59190 }; 59191 } 59192 59193 nodeStart = nodeEnd; 59194 } 59195 59196 node = getLeafNode(getSiblingNode(node)); 59197 } 59198} 59199 59200module.exports = getNodeForCharacterOffset; 59201 59202/***/ }), 59203/* 482 */ 59204/***/ (function(module, exports, __webpack_require__) { 59205 59206"use strict"; 59207 59208 59209/** 59210 * Copyright (c) 2013-present, Facebook, Inc. 59211 * 59212 * This source code is licensed under the MIT license found in the 59213 * LICENSE file in the root directory of this source tree. 59214 * 59215 * 59216 */ 59217 59218var isTextNode = __webpack_require__(483); 59219 59220/*eslint-disable no-bitwise */ 59221 59222/** 59223 * Checks if a given DOM node contains or is another DOM node. 59224 */ 59225function containsNode(outerNode, innerNode) { 59226 if (!outerNode || !innerNode) { 59227 return false; 59228 } else if (outerNode === innerNode) { 59229 return true; 59230 } else if (isTextNode(outerNode)) { 59231 return false; 59232 } else if (isTextNode(innerNode)) {
59233 return containsNode(outerNode, innerNode.parentNode); 59234 } else if ('contains' in outerNode) { 59235 return outerNode.contains(innerNode); 59236 } else if (outerNode.compareDocumentPosition) { 59237 return !!(outerNode.compareDocumentPosition(innerNode) & 16); 59238 } else { 59239 return false; 59240 } 59241} 59242 59243module.exports = containsNode; 59244 59245/***/ }), 59246/* 483 */ 59247/***/ (function(module, exports, __webpack_require__) { 59248 59249"use strict"; 59250 59251 59252/** 59253 * Copyright (c) 2013-present, Facebook, Inc. 59254 * 59255 * This source code is licensed under the MIT license found in the 59256 * LICENSE file in the root directory of this source tree. 59257 * 59258 * @typechecks 59259 */ 59260 59261var isNode = __webpack_require__(484); 59262 59263/** 59264 * @param {*} object The object to check. 59265 * @return {boolean} Whether or not the object is a DOM text node. 59266 */ 59267function isTextNode(object) { 59268 return isNode(object) && object.nodeType == 3; 59269} 59270 59271module.exports = isTextNode; 59272 59273/***/ }), 59274/* 484 */ 59275/***/ (function(module, exports, __webpack_require__) { 59276 59277"use strict"; 59278 59279 59280/** 59281 * Copyright (c) 2013-present, Facebook, Inc. 59282 * 59283 * This source code is licensed under the MIT license found in the 59284 * LICENSE file in the root directory of this source tree. 59285 * 59286 * @typechecks 59287 */ 59288 59289/** 59290 * @param {*} object The object to check. 59291 * @return {boolean} Whether or not the object is a DOM node. 59292 */ 59293function isNode(object) { 59294 var doc = object ? object.ownerDocument || object : document; 59295 var defaultView = doc.defaultView || window; 59296 return !!(object && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string')); 59297} 59298 59299module.exports = isNode; 59300 59301/***/ }), 59302/* 485 */ 59303/***/ (function(module, exports, __webpack_require__) { 59304 59305"use strict"; 59306/** 59307 * Copyright (c) 2013-present, Facebook, Inc. 59308 * 59309 * This source code is licensed under the MIT license found in the 59310 * LICENSE file in the root directory of this source tree. 59311 * 59312 */ 59313 59314 59315 59316var NS = { 59317 xlink: 'http://www.w3.org/1999/xlink', 59318 xml: 'http://www.w3.org/XML/1998/namespace' 59319}; 59320 59321// We use attributes for everything SVG so let's avoid some duplication and run 59322// code instead. 59323// The following are all specified in the HTML config already so we exclude here. 59324// - class (as className) 59325// - color 59326// - height 59327// - id 59328// - lang 59329// - max 59330// - media 59331// - method 59332// - min 59333// - name 59334// - style 59335// - target 59336// - type 59337// - width 59338var ATTRS = { 59339 accentHeight: 'accent-height', 59340 accumulate: 0, 59341 additive: 0, 59342 alignmentBaseline: 'alignment-baseline', 59343 allowReorder: 'allowReorder', 59344 alphabetic: 0, 59345 amplitude: 0, 59346 arabicForm: 'arabic-form', 59347 ascent: 0, 59348 attributeName: 'attributeName', 59349 attributeType: 'attributeType', 59350 autoReverse: 'autoReverse', 59351 azimuth: 0, 59352 baseFrequency: 'baseFrequency', 59353 baseProfile: 'baseProfile', 59354 baselineShift: 'baseline-shift', 59355 bbox: 0, 59356 begin: 0, 59357 bias: 0, 59358 by: 0, 59359 calcMode: 'calcMode', 59360 capHeight: 'cap-height', 59361 clip: 0, 59362 clipPath: 'clip-path', 59363 clipRule: 'clip-rule', 59364 clipPathUnits: 'clipPathUnits', 59365 colorInterpolation: 'color-interpolation', 59366 colorInterpolationFilters: 'color-interpolation-filters', 59367 colorProfile: 'color-profile', 59368 colorRendering: 'color-rendering', 59369 contentScriptType: 'contentScriptType', 59370 contentStyleType: 'contentStyleType', 59371 cursor: 0, 59372 cx: 0, 59373 cy: 0, 59374 d: 0, 59375 decelerate: 0, 59376 descent: 0, 59377 diffuseConstant: 'diffuseConstant', 59378 direction: 0, 59379 display: 0, 59380 divisor: 0, 59381 dominantBaseline: 'dominant-baseline', 59382 dur: 0, 59383 dx: 0, 59384 dy: 0, 59385 edgeMode: 'edgeMode', 59386 elevation: 0, 59387 enableBackground: 'enable-background', 59388 end: 0, 59389 exponent: 0, 59390 externalResourcesRequired: 'externalResourcesRequired', 59391 fill: 0, 59392 fillOpacity: 'fill-opacity', 59393 fillRule: 'fill-rule', 59394 filter: 0, 59395 filterRes: 'filterRes', 59396 filterUnits: 'filterUnits', 59397 floodColor: 'flood-color', 59398 floodOpacity: 'flood-opacity', 59399 focusable: 0, 59400 fontFamily: 'font-family', 59401 fontSize: 'font-size', 59402 fontSizeAdjust: 'font-size-adjust', 59403 fontStretch: 'font-stretch', 59404 fontStyle: 'font-style', 59405 fontVariant: 'font-variant', 59406 fontWeight: 'font-weight', 59407 format: 0, 59408 from: 0, 59409 fx: 0, 59410 fy: 0, 59411 g1: 0, 59412 g2: 0, 59413 glyphName: 'glyph-name', 59414 glyphOrientationHorizontal: 'glyph-orientation-horizontal', 59415 glyphOrientationVertical: 'glyph-orientation-vertical', 59416 glyphRef: 'glyphRef', 59417 gradientTransform: 'gradientTransform', 59418 gradientUnits: 'gradientUnits', 59419 hanging: 0, 59420 horizAdvX: 'horiz-adv-x', 59421 horizOriginX: 'horiz-origin-x', 59422 ideographic: 0, 59423 imageRendering: 'image-rendering', 59424 'in': 0, 59425 in2: 0, 59426 intercept: 0, 59427 k: 0, 59428 k1: 0, 59429 k2: 0, 59430 k3: 0, 59431 k4: 0, 59432 kernelMatrix: 'kernelMatrix', 59433 kernelUnitLength: 'kernelUnitLength', 59434 kerning: 0, 59435 keyPoints: 'keyPoints', 59436 keySplines: 'keySplines', 59437 keyTimes: 'keyTimes', 59438 lengthAdjust: 'lengthAdjust', 59439 letterSpacing: 'letter-spacing', 59440 lightingColor: 'lighting-color', 59441 limitingConeAngle: 'limitingConeAngle', 59442 local: 0, 59443 markerEnd: 'marker-end', 59444 markerMid: 'marker-mid', 59445 markerStart: 'marker-start', 59446 markerHeight: 'markerHeight', 59447 markerUnits: 'markerUnits', 59448 markerWidth: 'markerWidth', 59449 mask: 0, 59450 maskContentUnits: 'maskContentUnits', 59451 maskUnits: 'maskUnits', 59452 mathematical: 0, 59453 mode: 0, 59454 numOctaves: 'numOctaves', 59455 offset: 0, 59456 opacity: 0, 59457 operator: 0, 59458 order: 0, 59459 orient: 0, 59460 orientation: 0, 59461 origin: 0, 59462 overflow: 0, 59463 overlinePosition: 'overline-position', 59464 overlineThickness: 'overline-thickness', 59465 paintOrder: 'paint-order', 59466 panose1: 'panose-1', 59467 pathLength: 'pathLength', 59468 patternContentUnits: 'patternContentUnits', 59469 patternTransform: 'patternTransform', 59470 patternUnits: 'patternUnits', 59471 pointerEvents: 'pointer-events', 59472 points: 0, 59473 pointsAtX: 'pointsAtX', 59474 pointsAtY: 'pointsAtY', 59475 pointsAtZ: 'pointsAtZ', 59476 preserveAlpha: 'preserveAlpha', 59477 preserveAspectRatio: 'preserveAspectRatio', 59478 primitiveUnits: 'primitiveUnits', 59479 r: 0, 59480 radius: 0, 59481 refX: 'refX', 59482 refY: 'refY', 59483 renderingIntent: 'rendering-intent', 59484 repeatCount: 'repeatCount', 59485 repeatDur: 'repeatDur', 59486 requiredExtensions: 'requiredExtensions', 59487 requiredFeatures: 'requiredFeatures', 59488 restart: 0, 59489 result: 0, 59490 rotate: 0, 59491 rx: 0, 59492 ry: 0, 59493 scale: 0, 59494 seed: 0, 59495 shapeRendering: 'shape-rendering', 59496 slope: 0, 59497 spacing: 0, 59498 specularConstant: 'specularConstant', 59499 specularExponent: 'specularExponent', 59500 speed: 0, 59501 spreadMethod: 'spreadMethod', 59502 startOffset: 'startOffset', 59503 stdDeviation: 'stdDeviation', 59504 stemh: 0, 59505 stemv: 0, 59506 stitchTiles: 'stitchTiles', 59507 stopColor: 'stop-color', 59508 stopOpacity: 'stop-opacity', 59509 strikethroughPosition: 'strikethrough-position', 59510 strikethroughThickness: 'strikethrough-thickness', 59511 string: 0, 59512 stroke: 0, 59513 strokeDasharray: 'stroke-dasharray', 59514 strokeDashoffset: 'stroke-dashoffset', 59515 strokeLinecap: 'stroke-linecap', 59516 strokeLinejoin: 'stroke-linejoin', 59517 strokeMiterlimit: 'stroke-miterlimit', 59518 strokeOpacity: 'stroke-opacity', 59519 strokeWidth: 'stroke-width', 59520 surfaceScale: 'surfaceScale', 59521 systemLanguage: 'systemLanguage', 59522 tableValues: 'tableValues', 59523 targetX: 'targetX', 59524 targetY: 'targetY', 59525 textAnchor: 'text-anchor', 59526 textDecoration: 'text-decoration', 59527 textRendering: 'text-rendering', 59528 textLength: 'textLength', 59529 to: 0, 59530 transform: 0, 59531 u1: 0, 59532 u2: 0, 59533 underlinePosition: 'underline-position', 59534 underlineThickness: 'underline-thickness', 59535 unicode: 0,
59536 unicodeBidi: 'unicode-bidi', 59537 unicodeRange: 'unicode-range', 59538 unitsPerEm: 'units-per-em', 59539 vAlphabetic: 'v-alphabetic', 59540 vHanging: 'v-hanging', 59541 vIdeographic: 'v-ideographic', 59542 vMathematical: 'v-mathematical', 59543 values: 0, 59544 vectorEffect: 'vector-effect', 59545 version: 0, 59546 vertAdvY: 'vert-adv-y', 59547 vertOriginX: 'vert-origin-x', 59548 vertOriginY: 'vert-origin-y', 59549 viewBox: 'viewBox', 59550 viewTarget: 'viewTarget', 59551 visibility: 0, 59552 widths: 0, 59553 wordSpacing: 'word-spacing', 59554 writingMode: 'writing-mode', 59555 x: 0, 59556 xHeight: 'x-height', 59557 x1: 0, 59558 x2: 0, 59559 xChannelSelector: 'xChannelSelector', 59560 xlinkActuate: 'xlink:actuate', 59561 xlinkArcrole: 'xlink:arcrole', 59562 xlinkHref: 'xlink:href', 59563 xlinkRole: 'xlink:role', 59564 xlinkShow: 'xlink:show', 59565 xlinkTitle: 'xlink:title', 59566 xlinkType: 'xlink:type', 59567 xmlBase: 'xml:base', 59568 xmlns: 0, 59569 xmlnsXlink: 'xmlns:xlink', 59570 xmlLang: 'xml:lang', 59571 xmlSpace: 'xml:space', 59572 y: 0, 59573 y1: 0, 59574 y2: 0, 59575 yChannelSelector: 'yChannelSelector', 59576 z: 0, 59577 zoomAndPan: 'zoomAndPan' 59578}; 59579 59580var SVGDOMPropertyConfig = { 59581 Properties: {}, 59582 DOMAttributeNamespaces: { 59583 xlinkActuate: NS.xlink, 59584 xlinkArcrole: NS.xlink, 59585 xlinkHref: NS.xlink, 59586 xlinkRole: NS.xlink, 59587 xlinkShow: NS.xlink, 59588 xlinkTitle: NS.xlink, 59589 xlinkType: NS.xlink, 59590 xmlBase: NS.xml, 59591 xmlLang: NS.xml, 59592 xmlSpace: NS.xml 59593 }, 59594 DOMAttributeNames: {} 59595}; 59596 59597Object.keys(ATTRS).forEach(function (key) { 59598 SVGDOMPropertyConfig.Properties[key] = 0; 59599 if (ATTRS[key]) { 59600 SVGDOMPropertyConfig.DOMAttributeNames[key] = ATTRS[key]; 59601 } 59602}); 59603 59604module.exports = SVGDOMPropertyConfig; 59605 59606/***/ }), 59607/* 486 */ 59608/***/ (function(module, exports, __webpack_require__) { 59609 59610"use strict"; 59611/** 59612 * Copyright (c) 2013-present, Facebook, Inc. 59613 * 59614 * This source code is licensed under the MIT license found in the 59615 * LICENSE file in the root directory of this source tree. 59616 * 59617 */ 59618 59619 59620 59621var EventPropagators = __webpack_require__(50); 59622var ExecutionEnvironment = __webpack_require__(18); 59623var ReactDOMComponentTree = __webpack_require__(15); 59624var ReactInputSelection = __webpack_require__(188); 59625var SyntheticEvent = __webpack_require__(35); 59626 59627var getActiveElement = __webpack_require__(189); 59628var isTextInputElement = __webpack_require__(175); 59629var shallowEqual = __webpack_require__(116); 59630 59631var skipSelectionChangeEvent = ExecutionEnvironment.canUseDOM && 'documentMode' in document && document.documentMode <= 11; 59632 59633var eventTypes = { 59634 select: { 59635 phasedRegistrationNames: { 59636 bubbled: 'onSelect', 59637 captured: 'onSelectCapture' 59638 }, 59639 dependencies: ['topBlur', 'topContextMenu', 'topFocus', 'topKeyDown', 'topKeyUp', 'topMouseDown', 'topMouseUp', 'topSelectionChange'] 59640 } 59641}; 59642 59643var activeElement = null; 59644var activeElementInst = null; 59645var lastSelection = null; 59646var mouseDown = false; 59647 59648// Track whether a listener exists for this plugin. If none exist, we do 59649// not extract events. See #3639. 59650var hasListener = false;
59651 59652/** 59653 * Get an object which is a unique representation of the current selection. 59654 * 59655 * The return value will not be consistent across nodes or browsers, but 59656 * two identical selections on the same node will return identical objects. 59657 * 59658 * @param {DOMElement} node 59659 * @return {object} 59660 */ 59661function getSelection(node) { 59662 if ('selectionStart' in node && ReactInputSelection.hasSelectionCapabilities(node)) { 59663 return { 59664 start: node.selectionStart, 59665 end: node.selectionEnd 59666 }; 59667 } else if (window.getSelection) { 59668 var selection = window.getSelection(); 59669 return { 59670 anchorNode: selection.anchorNode, 59671 anchorOffset: selection.anchorOffset, 59672 focusNode: selection.focusNode, 59673 focusOffset: selection.focusOffset 59674 }; 59675 } else if (document.selection) { 59676 var range = document.selection.createRange(); 59677 return { 59678 parentElement: range.parentElement(), 59679 text: range.text, 59680 top: range.boundingTop, 59681 left: range.boundingLeft 59682 }; 59683 } 59684} 59685 59686/** 59687 * Poll selection to see whether it's changed. 59688 * 59689 * @param {object} nativeEvent 59690 * @return {?SyntheticEvent} 59691 */ 59692function constructSelectEvent(nativeEvent, nativeEventTarget) { 59693 // Ensure we have the right element, and that the user is not dragging a 59694 // selection (this matches native `select` event behavior). In HTML5, select 59695 // fires only on input and textarea thus if there's no focused element we 59696 // won't dispatch. 59697 if (mouseDown || activeElement == null || activeElement !== getActiveElement()) { 59698 return null; 59699 } 59700 59701 // Only fire when selection has actually changed. 59702 var currentSelection = getSelection(activeElement); 59703 if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) { 59704 lastSelection = currentSelection; 59705 59706 var syntheticEvent = SyntheticEvent.getPooled(eventTypes.select, activeElementInst, nativeEvent, nativeEventTarget); 59707 59708 syntheticEvent.type = 'select'; 59709 syntheticEvent.target = activeElement; 59710 59711 EventPropagators.accumulateTwoPhaseDispatches(syntheticEvent); 59712 59713 return syntheticEvent; 59714 } 59715 59716 return null; 59717} 59718 59719/** 59720 * This plugin creates an `onSelect` event that normalizes select events 59721 * across form elements. 59722 * 59723 * Supported elements are: 59724 * - input (see `isTextInputElement`) 59725 * - textarea 59726 * - contentEditable 59727 * 59728 * This differs from native browser implementations in the following ways: 59729 * - Fires on contentEditable fields as well as inputs. 59730 * - Fires for collapsed selection. 59731 * - Fires after user input. 59732 */ 59733var SelectEventPlugin = { 59734 eventTypes: eventTypes, 59735 59736 extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) { 59737 if (!hasListener) { 59738 return null; 59739 } 59740 59741 var targetNode = targetInst ? ReactDOMComponentTree.getNodeFromInstance(targetInst) : window; 59742 59743 switch (topLevelType) { 59744 // Track the input node that has focus. 59745 case 'topFocus': 59746 if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') { 59747 activeElement = targetNode; 59748 activeElementInst = targetInst; 59749 lastSelection = null; 59750 } 59751 break; 59752 case 'topBlur': 59753 activeElement = null; 59754 activeElementInst = null; 59755 lastSelection = null; 59756 break; 59757 // Don't fire the event while the user is dragging. This matches the 59758 // semantics of the native select event. 59759 case 'topMouseDown': 59760 mouseDown = true; 59761 break; 59762 case 'topContextMenu': 59763 case 'topMouseUp': 59764 mouseDown = false; 59765 return constructSelectEvent(nativeEvent, nativeEventTarget); 59766 // Chrome and IE fire non-standard event when selection is changed (and 59767 // sometimes when it hasn't). IE's event fires out of order with respect 59768 // to key and input events on deletion, so we discard it. 59769 // 59770 // Firefox doesn't support selectionchange, so check selection status 59771 // after each key entry. The selection changes after keydown and before 59772 // keyup, but we check on keydown as well in the case of holding down a 59773 // key, when multiple keydown events are fired but only one keyup is. 59774 // This is also our approach for IE handling, for the reason above. 59775 case 'topSelectionChange': 59776 if (skipSelectionChangeEvent) { 59777 break; 59778 } 59779 // falls through 59780 case 'topKeyDown': 59781 case 'topKeyUp': 59782 return constructSelectEvent(nativeEvent, nativeEventTarget); 59783 } 59784 59785 return null; 59786 }, 59787 59788 didPutListener: function (inst, registrationName, listener) { 59789 if (registrationName === 'onSelect') { 59790 hasListener = true; 59791 } 59792 } 59793}; 59794 59795module.exports = SelectEventPlugin; 59796 59797/***/ }), 59798/* 487 */ 59799/***/ (function(module, exports, __webpack_require__) { 59800 59801"use strict"; 59802/** 59803 * Copyright (c) 2013-present, Facebook, Inc. 59804 * 59805 * This source code is licensed under the MIT license found in the 59806 * LICENSE file in the root directory of this source tree. 59807 * 59808 * 59809 */ 59810 59811 59812 59813var _prodInvariant = __webpack_require__(12); 59814 59815var EventListener = __webpack_require__(187); 59816var EventPropagators = __webpack_require__(50); 59817var ReactDOMComponentTree = __webpack_require__(15); 59818var SyntheticAnimationEvent = __webpack_require__(488); 59819var SyntheticClipboardEvent = __webpack_require__(489); 59820var SyntheticEvent = __webpack_require__(35); 59821var SyntheticFocusEvent = __webpack_require__(490); 59822var SyntheticKeyboardEvent = __webpack_require__(491); 59823var SyntheticMouseEvent = __webpack_require__(81); 59824var SyntheticDragEvent = __webpack_require__(493); 59825var SyntheticTouchEvent = __webpack_require__(494); 59826var SyntheticTransitionEvent = __webpack_require__(495); 59827var SyntheticUIEvent = __webpack_require__(53); 59828var SyntheticWheelEvent = __webpack_require__(496); 59829 59830var emptyFunction = __webpack_require__(29);
59831var getEventCharCode = __webpack_require__(121); 59832var invariant = __webpack_require__(10); 59833 59834/** 59835 * Turns 59836 * ['abort', ...] 59837 * into 59838 * eventTypes = { 59839 * 'abort': { 59840 * phasedRegistrationNames: { 59841 * bubbled: 'onAbort', 59842 * captured: 'onAbortCapture', 59843 * }, 59844 * dependencies: ['topAbort'], 59845 * }, 59846 * ... 59847 * }; 59848 * topLevelEventsToDispatchConfig = { 59849 * 'topAbort': { sameConfig } 59850 * }; 59851 */ 59852var eventTypes = {}; 59853var topLevelEventsToDispatchConfig = {}; 59854['abort', 'animationEnd', 'animationIteration', 'animationStart', 'blur', 'canPlay', 'canPlayThrough', 'click', 'contextMenu', 'copy', 'cut', 'doubleClick', 'drag', 'dragEnd', 'dragEnter', 'dragExit', 'dragLeave', 'dragOver', 'dragStart', 'drop', 'durationChange', 'emptied', 'encrypted', 'ended', 'error', 'focus', 'input', 'invalid', 'keyDown', 'keyPress', 'keyUp', 'load', 'loadedData', 'loadedMetadata', 'loadStart', 'mouseDown', 'mouseMove', 'mouseOut', 'mouseOver', 'mouseUp', 'paste', 'pause', 'play', 'playing', 'progress', 'rateChange', 'reset', 'scroll', 'seeked', 'seeking', 'stalled', 'submit', 'suspend', 'timeUpdate', 'touchCancel', 'touchEnd', 'touchMove', 'touchStart', 'transitionEnd', 'volumeChange', 'waiting', 'wheel'].forEach(function (event) { 59855 var capitalizedEvent = event[0].toUpperCase() + event.slice(1); 59856 var onEvent = 'on' + capitalizedEvent; 59857 var topEvent = 'top' + capitalizedEvent; 59858 59859 var type = { 59860 phasedRegistrationNames: { 59861 bubbled: onEvent, 59862 captured: onEvent + 'Capture' 59863 }, 59864 dependencies: [topEvent] 59865 }; 59866 eventTypes[event] = type; 59867 topLevelEventsToDispatchConfig[topEvent] = type; 59868}); 59869 59870var onClickListeners = {}; 59871 59872function getDictionaryKey(inst) { 59873 // Prevents V8 performance issue: 59874 // https://github.com/facebook/react/pull/7232 59875 return '.' + inst._rootNodeID; 59876} 59877 59878function isInteractive(tag) { 59879 return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea'; 59880} 59881 59882var SimpleEventPlugin = { 59883 eventTypes: eventTypes, 59884 59885 extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) { 59886 var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType]; 59887 if (!dispatchConfig) { 59888 return null; 59889 } 59890 var EventConstructor; 59891 switch (topLevelType) { 59892 case 'topAbort': 59893 case 'topCanPlay': 59894 case 'topCanPlayThrough': 59895 case 'topDurationChange': 59896 case 'topEmptied': 59897 case 'topEncrypted': 59898 case 'topEnded': 59899 case 'topError': 59900 case 'topInput': 59901 case 'topInvalid': 59902 case 'topLoad': 59903 case 'topLoadedData': 59904 case 'topLoadedMetadata': 59905 case 'topLoadStart': 59906 case 'topPause': 59907 case 'topPlay': 59908 case 'topPlaying': 59909 case 'topProgress': 59910 case 'topRateChange': 59911 case 'topReset': 59912 case 'topSeeked': 59913 case 'topSeeking': 59914 case 'topStalled': 59915 case 'topSubmit': 59916 case 'topSuspend': 59917 case 'topTimeUpdate': 59918 case 'topVolumeChange': 59919 case 'topWaiting': 59920 // HTML Events 59921 // @see http://www.w3.org/TR/html5/index.html#events-0 59922 EventConstructor = SyntheticEvent; 59923 break; 59924 case 'topKeyPress': 59925 // Firefox creates a keypress event for function keys too. This removes 59926 // the unwanted keypress events. Enter is however both printable and 59927 // non-printable. One would expect Tab to be as well (but it isn't). 59928 if (getEventCharCode(nativeEvent) === 0) { 59929 return null; 59930 } 59931 /* falls through */ 59932 case 'topKeyDown': 59933 case 'topKeyUp': 59934 EventConstructor = SyntheticKeyboardEvent; 59935 break; 59936 case 'topBlur': 59937 case 'topFocus': 59938 EventConstructor = SyntheticFocusEvent; 59939 break; 59940 case 'topClick': 59941 // Firefox creates a click event on right mouse clicks. This removes the 59942 // unwanted click events. 59943 if (nativeEvent.button === 2) { 59944 return null; 59945 } 59946 /* falls through */ 59947 case 'topDoubleClick': 59948 case 'topMouseDown': 59949 case 'topMouseMove': 59950 case 'topMouseUp': 59951 // TODO: Disabled elements should not respond to mouse events 59952 /* falls through */ 59953 case 'topMouseOut': 59954 case 'topMouseOver': 59955 case 'topContextMenu': 59956 EventConstructor = SyntheticMouseEvent; 59957 break; 59958 case 'topDrag': 59959 case 'topDragEnd': 59960 case 'topDragEnter': 59961 case 'topDragExit': 59962 case 'topDragLeave': 59963 case 'topDragOver': 59964 case 'topDragStart': 59965 case 'topDrop': 59966 EventConstructor = SyntheticDragEvent; 59967 break; 59968 case 'topTouchCancel': 59969 case 'topTouchEnd': 59970 case 'topTouchMove': 59971 case 'topTouchStart': 59972 EventConstructor = SyntheticTouchEvent; 59973 break; 59974 case 'topAnimationEnd': 59975 case 'topAnimationIteration': 59976 case 'topAnimationStart': 59977 EventConstructor = SyntheticAnimationEvent; 59978 break; 59979 case 'topTransitionEnd': 59980 EventConstructor = SyntheticTransitionEvent; 59981 break; 59982 case 'topScroll': 59983 EventConstructor = SyntheticUIEvent; 59984 break; 59985 case 'topWheel': 59986 EventConstructor = SyntheticWheelEvent; 59987 break; 59988 case 'topCopy': 59989 case 'topCut': 59990 case 'topPaste': 59991 EventConstructor = SyntheticClipboardEvent; 59992 break; 59993 } 59994 !EventConstructor ? true ? invariant(false, 'SimpleEventPlugin: Unhandled event type, `%s`.', topLevelType) : _prodInvariant('86', topLevelType) : void 0;
59995 var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget); 59996 EventPropagators.accumulateTwoPhaseDispatches(event); 59997 return event; 59998 }, 59999 60000 didPutListener: function (inst, registrationName, listener) { 60001 // Mobile Safari does not fire properly bubble click events on 60002 // non-interactive elements, which means delegated click listeners do not 60003 // fire. The workaround for this bug involves attaching an empty click 60004 // listener on the target node. 60005 // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html 60006 if (registrationName === 'onClick' && !isInteractive(inst._tag)) { 60007 var key = getDictionaryKey(inst); 60008 var node = ReactDOMComponentTree.getNodeFromInstance(inst); 60009 if (!onClickListeners[key]) { 60010 onClickListeners[key] = EventListener.listen(node, 'click', emptyFunction); 60011 } 60012 } 60013 }, 60014 60015 willDeleteListener: function (inst, registrationName) { 60016 if (registrationName === 'onClick' && !isInteractive(inst._tag)) { 60017 var key = getDictionaryKey(inst); 60018 onClickListeners[key].remove(); 60019 delete onClickListeners[key]; 60020 } 60021 } 60022}; 60023 60024module.exports = SimpleEventPlugin; 60025 60026/***/ }), 60027/* 488 */ 60028/***/ (function(module, exports, __webpack_require__) { 60029 60030"use strict"; 60031/** 60032 * Copyright (c) 2013-present, Facebook, Inc. 60033 * 60034 * This source code is licensed under the MIT license found in the 60035 * LICENSE file in the root directory of this source tree. 60036 * 60037 */ 60038 60039 60040 60041var SyntheticEvent = __webpack_require__(35); 60042 60043/** 60044 * @interface Event 60045 * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface 60046 * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent 60047 */ 60048var AnimationEventInterface = { 60049 animationName: null, 60050 elapsedTime: null, 60051 pseudoElement: null 60052}; 60053 60054/** 60055 * @param {object} dispatchConfig Configuration used to dispatch this event. 60056 * @param {string} dispatchMarker Marker identifying the event target. 60057 * @param {object} nativeEvent Native browser event. 60058 * @extends {SyntheticEvent} 60059 */ 60060function SyntheticAnimationEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { 60061 return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); 60062} 60063 60064SyntheticEvent.augmentClass(SyntheticAnimationEvent, AnimationEventInterface); 60065 60066module.exports = SyntheticAnimationEvent; 60067 60068/***/ }), 60069/* 489 */ 60070/***/ (function(module, exports, __webpack_require__) { 60071 60072"use strict"; 60073/** 60074 * Copyright (c) 2013-present, Facebook, Inc. 60075 * 60076 * This source code is licensed under the MIT license found in the 60077 * LICENSE file in the root directory of this source tree. 60078 * 60079 */ 60080 60081 60082 60083var SyntheticEvent = __webpack_require__(35); 60084 60085/** 60086 * @interface Event 60087 * @see http://www.w3.org/TR/clipboard-apis/ 60088 */ 60089var ClipboardEventInterface = { 60090 clipboardData: function (event) { 60091 return 'clipboardData' in event ? event.clipboardData : window.clipboardData; 60092 } 60093}; 60094 60095/** 60096 * @param {object} dispatchConfig Configuration used to dispatch this event. 60097 * @param {string} dispatchMarker Marker identifying the event target. 60098 * @param {object} nativeEvent Native browser event. 60099 * @extends {SyntheticUIEvent} 60100 */ 60101function SyntheticClipboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { 60102 return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); 60103} 60104 60105SyntheticEvent.augmentClass(SyntheticClipboardEvent, ClipboardEventInterface); 60106 60107module.exports = SyntheticClipboardEvent; 60108 60109/***/ }), 60110/* 490 */ 60111/***/ (function(module, exports, __webpack_require__) { 60112 60113"use strict"; 60114/** 60115 * Copyright (c) 2013-present, Facebook, Inc. 60116 * 60117 * This source code is licensed under the MIT license found in the 60118 * LICENSE file in the root directory of this source tree. 60119 * 60120 */ 60121 60122 60123 60124var SyntheticUIEvent = __webpack_require__(53); 60125 60126/** 60127 * @interface FocusEvent 60128 * @see http://www.w3.org/TR/DOM-Level-3-Events/ 60129 */ 60130var FocusEventInterface = { 60131 relatedTarget: null 60132}; 60133 60134/** 60135 * @param {object} dispatchConfig Configuration used to dispatch this event. 60136 * @param {string} dispatchMarker Marker identifying the event target. 60137 * @param {object} nativeEvent Native browser event. 60138 * @extends {SyntheticUIEvent} 60139 */
60140function SyntheticFocusEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { 60141 return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); 60142} 60143 60144SyntheticUIEvent.augmentClass(SyntheticFocusEvent, FocusEventInterface); 60145 60146module.exports = SyntheticFocusEvent; 60147 60148/***/ }), 60149/* 491 */ 60150/***/ (function(module, exports, __webpack_require__) { 60151 60152"use strict"; 60153/** 60154 * Copyright (c) 2013-present, Facebook, Inc. 60155 * 60156 * This source code is licensed under the MIT license found in the 60157 * LICENSE file in the root directory of this source tree. 60158 * 60159 */ 60160 60161 60162 60163var SyntheticUIEvent = __webpack_require__(53); 60164 60165var getEventCharCode = __webpack_require__(121); 60166var getEventKey = __webpack_require__(492); 60167var getEventModifierState = __webpack_require__(110); 60168 60169/** 60170 * @interface KeyboardEvent 60171 * @see http://www.w3.org/TR/DOM-Level-3-Events/ 60172 */ 60173var KeyboardEventInterface = { 60174 key: getEventKey, 60175 location: null, 60176 ctrlKey: null, 60177 shiftKey: null, 60178 altKey: null, 60179 metaKey: null, 60180 repeat: null, 60181 locale: null, 60182 getModifierState: getEventModifierState, 60183 // Legacy Interface 60184 charCode: function (event) { 60185 // `charCode` is the result of a KeyPress event and represents the value of 60186 // the actual printable character. 60187 60188 // KeyPress is deprecated, but its replacement is not yet final and n
60188ot 60189 // implemented in any major browser. Only KeyPress has charCode. 60190 if (event.type === 'keypress') { 60191 return getEventCharCode(event); 60192 } 60193 return 0; 60194 }, 60195 keyCode: function (event) { 60196 // `keyCode` is the result of a KeyDown/Up event and represents the value of 60197 // physical keyboard key. 60198 60199 // The actual meaning of the value depends on the users' keyboard layout 60200 // which cannot be detected. Assuming that it is a US keyboard layout 60201 // provides a surprisingly accurate mapping for US and European users. 60202 // Due to this, it is left to the user to implement at this time. 60203 if (event.type === 'keydown' || event.type === 'keyup') { 60204 return event.keyCode; 60205 } 60206 return 0; 60207 }, 60208 which: function (event) { 60209 // `which` is an alias for either `keyCode` or `charCode` depending on the 60210 // type of the event. 60211 if (event.type === 'keypress') { 60212 return getEventCharCode(event); 60213 } 60214 if (event.type === 'keydown' || event.type === 'keyup') { 60215 return event.keyCode; 60216 } 60217 return 0; 60218 } 60219}; 60220 60221/** 60222 * @param {object} dispatchConfig Configuration used to dispatch this event. 60223 * @param {string} dispatchMarker Marker identifying the event target. 60224 * @param {object} nativeEvent Native browser event. 60225 * @extends {SyntheticUIEvent} 60226 */ 60227function SyntheticKeyboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { 60228 return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); 60229} 60230 60231SyntheticUIEvent.augmentClass(SyntheticKeyboardEvent, KeyboardEventInterface); 60232 60233module.exports = SyntheticKeyboardEvent; 60234 60235/***/ }), 60236/* 492 */ 60237/***/ (function(module, exports, __webpack_require__) { 60238 60239"use strict"; 60240/** 60241 * Copyright (c) 2013-present, Facebook, Inc. 60242 * 60243 * This source code is licensed under the MIT license found in the 60244 * LICENSE file in the root directory of this source tree. 60245 * 60246 */ 60247 60248 60249 60250var getEventCharCode = __webpack_require__(121); 60251 60252/** 60253 * Normalization of deprecated HTML5 `key` values 60254 * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names 60255 */ 60256var normalizeKey = { 60257 Esc: 'Escape', 60258 Spacebar: ' ', 60259 Left: 'ArrowLeft', 60260 Up: 'ArrowUp', 60261 Right: 'ArrowRight', 60262 Down: 'ArrowDown', 60263 Del: 'Delete', 60264 Win: 'OS', 60265 Menu: 'ContextMenu', 60266 Apps: 'ContextMenu', 60267 Scroll: 'ScrollLock', 60268 MozPrintableKey: 'Unidentified' 60269}; 60270 60271/** 60272 * Translation from legacy `keyCode` to HTML5 `key` 60273 * Only special keys supported, all others depend on keyboard layout or browser 60274 * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names 60275 */ 60276var translateToKey = { 60277 8: 'Backspace', 60278 9: 'Tab', 60279 12: 'Clear', 60280 13: 'Enter', 60281 16: 'Shift', 60282 17: 'Control', 60283 18: 'Alt', 60284 19: 'Pause', 60285 20: 'CapsLock', 60286 27: 'Escape', 60287 32: ' ', 60288 33: 'PageUp', 60289 34: 'PageDown', 60290 35: 'End', 60291 36: 'Home', 60292 37: 'ArrowLeft', 60293 38: 'ArrowUp', 60294 39: 'ArrowRight', 60295 40: 'ArrowDown', 60296 45: 'Insert', 60297 46: 'Delete', 60298 112: 'F1', 60299 113: 'F2', 60300 114: 'F3', 60301 115: 'F4', 60302 116: 'F5', 60303 117: 'F6', 60304 118: 'F7', 60305 119: 'F8', 60306 120: 'F9', 60307 121: 'F10', 60308 122: 'F11', 60309 123: 'F12', 60310 144: 'NumLock', 60311 145: 'ScrollLock', 60312 224: 'Meta' 60313}; 60314 60315/** 60316 * @param {object} nativeEvent Native browser event. 60317 * @return {string} Normalized `key` property. 60318 */ 60319function getEventKey(nativeEvent) { 60320 if (nativeEvent.key) { 60321 // Normalize inconsistent values reported by browsers due to 60322 // implementations of a working draft specification. 60323 60324 // FireFox implements `key` but returns `MozPrintableKey` for all 60325 // printable characters (normalized to `Unidentified`), ignore it. 60326 var key = normalizeKey[nativeEvent.key] || nativeEvent.key; 60327 if (key !== 'Unidentified') { 60328 return key; 60329 } 60330 } 60331 60332 // Browser does not implement `key`, polyfill as much of it as we can. 60333 if (nativeEvent.type === 'keypress') { 60334 var charCode = getEventCharCode(nativeEvent); 60335 60336 // The enter-key is technically both printable and non-printable and can 60337 // thus be captured by `keypress`, no other non-printable key should. 60338 return charCode === 13 ? 'Enter' : String.fromCharCode(charCode); 60339 } 60340 if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') { 60341 // While user keyboard layout determines the actual meaning of each 60342 // `keyCode` value, almost all function keys have a universal value. 60343 return translateToKey[nativeEvent.keyCode] || 'Unidentified'; 60344 } 60345 return ''; 60346} 60347 60348module.exports = getEventKey; 60349 60350/***/ }), 60351/* 493 */ 60352/***/ (function(module, exports, __webpack_require__) { 60353 60354"use strict"; 60355/** 60356 * Copyright (c) 2013-present, Facebook, Inc. 60357 * 60358 * This source code is licensed under the MIT license found in the 60359 * LICENSE file in the root directory of this source tree. 60360 * 60361 */ 60362 60363 60364 60365var SyntheticMouseEvent = __webpack_require__(81); 60366 60367/** 60368 * @interface DragEvent 60369 * @see http://www.w3.org/TR/DOM-Level-3-Events/ 60370 */ 60371var DragEventInterface = { 60372 dataTransfer: null 60373}; 60374 60375/** 60376 * @param {object} dispatchConfig Configuration used to dispatch this event. 60377 * @param {string} dispatchMarker Marker identifying the event target. 60378 * @param {object} nativeEvent Native browser event. 60379 * @extends {SyntheticUIEvent} 60380 */
60381function SyntheticDragEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { 60382 return SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); 60383} 60384 60385SyntheticMouseEvent.augmentClass(SyntheticDragEvent, DragEventInterface); 60386 60387module.exports = SyntheticDragEvent; 60388 60389/***/ }), 60390/* 494 */ 60391/***/ (function(module, exports, __webpack_require__) { 60392 60393"use strict"; 60394/** 60395 * Copyright (c) 2013-present, Facebook, Inc. 60396 * 60397 * This source code is licensed under the MIT license found in the 60398 * LICENSE file in the root directory of this source tree. 60399 * 60400 */ 60401 60402 60403 60404var SyntheticUIEvent = __webpack_require__(53); 60405 60406var getEventModifierState = __webpack_require__(110); 60407 60408/** 60409 * @interface TouchEvent 60410 * @see http://www.w3.org/TR/touch-events/ 60411 */ 60412var TouchEventInterface = { 60413 touches: null, 60414 targetTouches: null, 60415 changedTouches: null, 60416 altKey: null, 60417 metaKey: null, 60418 ctrlKey: null, 60419 shiftKey: null, 60420 getModifierState: getEventModifierState 60421}; 60422 60423/** 60424 * @param {object} dispatchConfig Configuration used to dispatch this event. 60425 * @param {string} dispatchMarker Marker identifying the event target. 60426 * @param {object} nativeEvent Native browser event. 60427 * @extends {SyntheticUIEvent} 60428 */ 60429function SyntheticTouchEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { 60430 return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); 60431} 60432 60433SyntheticUIEvent.augmentClass(SyntheticTouchEvent, TouchEventInterface); 60434 60435module.exports = SyntheticTouchEvent; 60436 60437/***/ }), 60438/* 495 */ 60439/***/ (function(module, exports, __webpack_require__) { 60440 60441"use strict"; 60442/** 60443 * Copyright (c) 2013-present, Facebook, Inc. 60444 * 60445 * This source code is licensed under the MIT license found in the 60446 * LICENSE file in the root directory of this source tree. 60447 * 60448 */ 60449 60450 60451 60452var SyntheticEvent = __webpack_require__(35); 60453 60454/** 60455 * @interface Event 60456 * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events- 60457 * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent 60458 */ 60459var TransitionEventInterface = { 60460 propertyName: null, 60461 elapsedTime: null, 60462 pseudoElement: null 60463}; 60464 60465/** 60466 * @param {object} dispatchConfig Configuration used to dispatch this event. 60467 * @param {string} dispatchMarker Marker identifying the event target. 60468 * @param {object} nativeEvent Native browser event. 60469 * @extends {SyntheticEvent} 60470 */ 60471function SyntheticTransitionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { 60472 return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); 60473} 60474 60475SyntheticEvent.augmentClass(SyntheticTransitionEvent, TransitionEventInterface); 60476 60477module.exports = SyntheticTransitionEvent; 60478 60479/***/ }), 60480/* 496 */ 60481/***/ (function(module, exports, __webpack_require__) { 60482 60483"use strict"; 60484/** 60485 * Copyright (c) 2013-present, Facebook, Inc. 60486 * 60487 * This source code is licensed under the MIT license found in the 60488 * LICENSE file in the root directory of this source tree. 60489 * 60490 */ 60491 60492 60493 60494var SyntheticMouseEvent = __webpack_require__(81); 60495 60496/** 60497 * @interface WheelEvent 60498 * @see http://www.w3.org/TR/DOM-Level-3-Events/ 60499 */ 60500var WheelEventInterface = { 60501 deltaX: function (event) { 60502 return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive). 60503 'wheelDeltaX' in event ? -event.wheelDeltaX : 0; 60504 }, 60505 deltaY: function (event) { 60506 return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive). 60507 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive). 60508 'wheelDelta' in event ? -event.wheelDelta : 0; 60509 }, 60510 deltaZ: null, 60511 60512 // Browsers without "deltaMode" is reporting in raw wheel delta where one 60513 // notch on the scroll is always +/- 120, roughly equivalent to pixels. 60514 // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or 60515 // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size. 60516 deltaMode: null 60517}; 60518 60519/** 60520 * @param {object} dispatchConfig Configuration used to dispatch this event. 60521 * @param {string} dispatchMarker Marker identifying the event target. 60522 * @param {object} nativeEvent Native browser event. 60523 * @extends {SyntheticMouseEvent} 60524 */
60525function SyntheticWheelEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) { 60526 return SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget); 60527} 60528 60529SyntheticMouseEvent.augmentClass(SyntheticWheelEvent, WheelEventInterface); 60530 60531module.exports = SyntheticWheelEvent; 60532 60533/***/ }), 60534/* 497 */ 60535/***/ (function(module, exports, __webpack_require__) { 60536 60537"use strict"; 60538/** 60539 * Copyright (c) 2013-present, Facebook, Inc. 60540 * 60541 * This source code is licensed under the MIT license found in the 60542 * LICENSE file in the root directory of this source tree. 60543 * 60544 */ 60545 60546 60547 60548var validateDOMNesting = __webpack_require__(120); 60549 60550var DOC_NODE_TYPE = 9; 60551 60552function ReactDOMContainerInfo(topLevelWrapper, node) { 60553 var info = { 60554 _topLevelWrapper: topLevelWrapper, 60555 _idCounter: 1, 60556 _ownerDocument: node ? node.nodeType === DOC_NODE_TYPE ? node : node.ownerDocument : null, 60557 _node: node, 60558 _tag: node ? node.nodeName.toLowerCase() : null, 60559 _namespaceURI: node ? node.namespaceURI : null 60560 }; 60561 if (true) { 60562 info._ancestorInfo = node ? validateDOMNesting.updatedAncestorInfo(null, info._tag, null) : null; 60563 } 60564 return info; 60565} 60566 60567module.exports = ReactDOMContainerInfo; 60568 60569/***/ }), 60570/* 498 */ 60571/***/ (function(module, exports, __webpack_require__) { 60572 60573"use strict"; 60574/** 60575 * Copyright (c) 2013-present, Facebook, Inc. 60576 * 60577 * This source code is licensed under the MIT license found in the 60578 * LICENSE file in the root directory of this source tree. 60579 * 60580 */ 60581 60582 60583 60584var ReactDOMFeatureFlags = { 60585 useCreateElement: true, 60586 useFiber: false 60587}; 60588 60589module.exports = ReactDOMFeatureFlags; 60590 60591/***/ }), 60592/* 499 */ 60593/***/ (function(module, exports, __webpack_require__) { 60594 60595"use strict"; 60596/** 60597 * Copyright (c) 2013-present, Facebook, Inc. 60598 * 60599 * This source code is licensed under the MIT license found in the 60600 * LICENSE file in the root directory of this source tree. 60601 * 60602 */ 60603 60604 60605 60606var adler32 = __webpack_require__(500); 60607 60608var TAG_END = /\/?>/; 60609var COMMENT_START = /^<\!\-\-/; 60610 60611var ReactMarkupChecksum = { 60612 CHECKSUM_ATTR_NAME: 'data-react-checksum', 60613 60614 /** 60615 * @param {string} markup Markup string 60616 * @return {string} Markup string with checksum attribute attached 60617 */ 60618 addChecksumToMarkup: function (markup) { 60619 var checksum = adler32(markup); 60620 60621 // Add checksum (handle both parent tags, comments and self-closing tags) 60622 if (COMMENT_START.test(markup)) { 60623 return markup; 60624 } else { 60625 return markup.replace(TAG_END, ' ' + ReactMarkupChecksum.CHECKSUM_ATTR_NAME + '="' + checksum + '"$&'); 60626 } 60627 }, 60628 60629 /** 60630 * @param {string} markup to use 60631 * @param {DOMElement} element root React element 60632 * @returns {boolean} whether or not the markup is the same 60633 */ 60634 canReuseMarkup: function (markup, element) { 60635 var existingChecksum = element.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME); 60636 existingChecksum = existingChecksum && parseInt(existingChecksum, 10); 60637 var markupChecksum = adler32(markup); 60638 return markupChecksum === existingChecksum; 60639 } 60640}; 60641 60642module.exports = ReactMarkupChecksum; 60643 60644/***/ }), 60645/* 500 */ 60646/***/ (function(module, exports, __webpack_require__) { 60647 60648"use strict"; 60649/** 60650 * Copyright (c) 2013-present, Facebook, Inc. 60651 * 60652 * This source code is licensed under the MIT license found in the 60653 * LICENSE file in the root directory of this source tree. 60654 * 60655 * 60656 */ 60657 60658 60659 60660var MOD = 65521; 60661 60662// adler32 is not cryptographically strong, and is only used to sanity check that 60663// markup generated on the server matches the markup generated on the client. 60664// This implementation (a modified version of the SheetJS version) has been optimized 60665// for our use case, at the expense of conforming to the adler32 specification 60666// for non-ascii inputs. 60667function adler32(data) { 60668 var a = 1; 60669 var b = 0; 60670 var i = 0; 60671 var l = data.length; 60672 var m = l & ~0x3; 60673 while (i < m) { 60674 var n = Math.min(i + 4096, m); 60675 for (; i < n; i += 4) { 60676 b += (a += data.charCodeAt(i)) + (a += data.charCodeAt(i + 1)) + (a += data.charCodeAt(i + 2)) + (a += data.charCodeAt(i + 3)); 60677 } 60678 a %= MOD; 60679 b %= MOD; 60680 } 60681 for (; i < l; i++) { 60682 b += a += data.charCodeAt(i); 60683 } 60684 a %= MOD; 60685 b %= MOD; 60686 return a | b << 16; 60687} 60688 60689module.exports = adler32; 60690 60691/***/ }), 60692/* 501 */ 60693/***/ (function(module, exports, __webpack_require__) { 60694 60695"use strict"; 60696/** 60697 * Copyright (c) 2013-present, Facebook, Inc. 60698 * 60699 * This source code is licensed under the MIT license found in the 60700 * LICENSE file in the root directory of this source tree. 60701 * 60702 */ 60703 60704 60705 60706module.exports = '15.6.2'; 60707 60708/***/ }), 60709/* 502 */ 60710/***/ (function(module, exports, __webpack_require__) { 60711 60712"use strict"; 60713/** 60714 * Copyright (c) 2013-present, Facebook, Inc. 60715 * 60716 * This source code is licensed under the MIT license found in the 60717 * LICENSE file in the root directory of this source tree. 60718 * 60719 */ 60720 60721 60722 60723var _prodInvariant = __webpack_require__(12); 60724 60725var ReactCurrentOwner = __webpack_require__(30); 60726var ReactDOMComponentTree = __webpack_require__(15); 60727var ReactInstanceMap = __webpack_require__(66); 60728 60729var getHostComponentFromComposite = __webpack_require__(191); 60730var invariant = __webpack_require__(10); 60731var warning = __webpack_require__(11); 60732 60733/** 60734 * Returns the DOM node rendered by this element. 60735 * 60736 * See https://facebook.github.io/react/docs/top-level-api.html#reactdom.finddomnode 60737 * 60738 * @param {ReactComponent|DOMElement} componentOrElement 60739 * @return {?DOMElement} The root node of this element. 60740 */ 60741function findDOMNode(componentOrElement) { 60742 if (true) { 60743 var owner = ReactCurrentOwner.current; 60744 if (owner !== null) { 60745 true ? warning(owner._warnedAboutRefsInRender, '%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', owner.getName() || 'A c
60745omponent') : void 0; 60746 owner._warnedAboutRefsInRender = true; 60747 } 60748 } 60749 if (componentOrElement == null) { 60750 return null; 60751 } 60752 if (componentOrElement.nodeType === 1) { 60753 return componentOrElement; 60754 } 60755 60756 var inst = ReactInstanceMap.get(componentOrElement); 60757 if (inst) { 60758 inst = getHostComponentFromComposite(inst); 60759 return inst ? ReactDOMComponentTree.getNodeFromInstance(inst) : null; 60760 } 60761 60762 if (typeof componentOrElement.render === 'function') { 60763 true ? true ? invariant(false, 'findDOMNode was called on an unmounted component.') : _prodInvariant('44') : void 0; 60764 } else { 60765 true ? true ? invariant(false, 'Element appears to be neither ReactComponent nor DOMNode (keys: %s)', Object.keys(componentOrElement)) : _prodInvariant('45', Object.keys(componentOrElement)) : void 0; 60766 } 60767} 60768 60769module.exports = findDOMNode; 60770 60771/***/ }), 60772/* 503 */ 60773/***/ (function(module, exports, __webpack_require__) { 60774 60775"use strict"; 60776/** 60777 * Copyright (c) 2013-present, Facebook, Inc. 60778 * 60779 * This source code is licensed under the MIT license found in the 60780 * LICENSE file in the root directory of this source tree. 60781 * 60782 */ 60783 60784 60785 60786var ReactMount = __webpack_require__(190); 60787 60788module.exports = ReactMount.renderSubtreeIntoContainer; 60789 60790/***/ }), 60791/* 504 */ 60792/***/ (function(module, exports, __webpack_require__) { 60793 60794"use strict"; 60795/** 60796 * Copyright (c) 2013-present, Facebook, Inc. 60797 * 60798 * This source code is licensed under the MIT license found in the 60799 * LICENSE file in the root directory of this source tree. 60800 * 60801 */ 60802 60803 60804 60805var DOMProperty = __webpack_require__(36); 60806var EventPluginRegistry = __webpack_require__(78); 60807var ReactComponentTreeHook = __webpack_require__(23); 60808 60809var warning = __webpack_require__(11); 60810 60811if (true) { 60812 var reactProps = { 60813 children: true, 60814 dangerouslySetInnerHTML: true, 60815 key: true, 60816 ref: true, 60817 60818 autoFocus: true, 60819 defaultValue: true, 60820 valueLink: true, 60821 defaultChecked: true, 60822 checkedLink: true, 60823 innerHTML: true, 60824 suppressContentEditableWarning: true, 60825 onFocusIn: true, 60826 onFocusOut: true 60827 }; 60828 var warnedProperties = {}; 60829 60830 var validateProperty = function (tagName, name, debugID) { 60831 if (DOMProperty.properties.hasOwnProperty(name) || DOMProperty.isCustomAttribute(name)) { 60832 return true; 60833 } 60834 if (reactProps.hasOwnProperty(name) && reactProps[name] || warnedProperties.hasOwnProperty(name) && warnedProperties[name]) { 60835 return true; 60836 } 60837 if (EventPluginRegistry.registrationNameModules.hasOwnProperty(name)) { 60838 return true; 60839 } 60840 warnedProperties[name] = true; 60841 var lowerCasedName = name.toLowerCase(); 60842 60843 // data-* attributes should be lowercase; suggest the lowercase version 60844 var standardName = DOMProperty.isCustomAttribute(lowerCasedName) ? lowerCasedName : DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName) ? DOMProperty.getPossibleStandardName[lowerCasedName] : null; 60845 60846 var registrationName = EventPluginRegistry.possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? EventPluginRegistry.possibleRegistrationNames[lowerCasedName] : null; 60847 60848 if (standardName != null) { 60849 true ? warning(false, 'Unknown DOM property %s. Did you mean %s?%s', name, standardName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0; 60850 return true; 60851 } else if (registrationName != null) { 60852 true ? warning(false, 'Unknown event handler property %s. Did you mean `%s`?%s', name, registrationName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0; 60853 return true; 60854 } else { 60855 // We were unable to guess which prop the user intended. 60856 // It is likely that the user was just blindly spreading/forwarding props 60857 // Components should be careful to only render valid props/attributes. 60858 // Warning will be invoked in warnUnknownProperties to allow grouping. 60859 return false; 60860 } 60861 }; 60862} 60863 60864var warnUnknownProperties = function (debugID, element) { 60865 var unknownProps = []; 60866 for (var key in element.props) { 60867 var isValid = validateProperty(element.type, key, debugID); 60868 if (!isValid) { 60869 unknownProps.push(key); 60870 } 60871 } 60872 60873 var unknownPropString = unknownProps.map(function (prop) { 60874 return '`' + prop + '`'; 60875 }).join(', '); 60876 60877 if (unknownProps.length === 1) { 60878 true ? warning(false, 'Unknown prop %s on <%s> tag. Remove this prop from the element. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0; 60879 } else if (unknownProps.length > 1) { 60880 true ? warning(false, 'Unknown props %s on <%s> tag. Remove these props from the element. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0; 60881 } 60882}; 60883 60884function handleElement(debugID, element) { 60885 if (element == null || typeof element.type !== 'string') { 60886 return; 60887 } 60888 if (element.type.indexOf('-') >= 0 || element.props.is) { 60889 return; 60890 } 60891 warnUnknownProperties(debugID, element); 60892} 60893 60894var ReactDOMUnknownPropertyHook = { 60895 onBeforeMountComponent: function (debugID, element) { 60896 handleElement(debugID, element); 60897 }, 60898 onBeforeUpdateComponent: function (debugID, element) { 60899 handleElement(debugID, element); 60900 } 60901}; 60902 60903module.exports = ReactDOMUnknownPropertyHook; 60904 60905/***/ }), 60906/* 505 */ 60907/***/ (function(module, exports, __webpack_require__) { 60908 60909"use strict"; 60910/** 60911 * Copyright (c) 2013-present, Facebook, Inc. 60912 * 60913 * This source code is licensed under the MIT license found in the 60914 * LICENSE file in the root directory of this source tree. 60915 * 60916 */ 60917 60918 60919 60920var ReactComponentTreeHook = __webpack_require__(23); 60921 60922var warning = __webpack_require__(11); 60923 60924var didWarnValueNull = false;
60925 60926function handleElement(debugID, element) { 60927 if (element == null) { 60928 return; 60929 } 60930 if (element.type !== 'input' && element.type !== 'textarea' && element.type !== 'select') { 60931 return; 60932 } 60933 if (element.props != null && element.props.value === null && !didWarnValueNull) { 60934 true ? warning(false, '`value` prop on `%s` should not be null. ' + 'Consider using the empty string to clear the component or `undefined` ' + 'for uncontrolled components.%s', element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0; 60935 60936 didWarnValueNull = true; 60937 } 60938} 60939 60940var ReactDOMNullInputValuePropHook = { 60941 onBeforeMountComponent: function (debugID, element) { 60942 handleElement(debugID, element); 60943 }, 60944 onBeforeUpdateComponent: function (debugID, element) { 60945 handleElement(debugID, element); 60946 } 60947}; 60948 60949module.exports = ReactDOMNullInputValuePropHook; 60950 60951/***/ }), 60952/* 506 */ 60953/***/ (function(module, exports, __webpack_require__) { 60954 60955"use strict"; 60956/** 60957 * Copyright (c) 2013-present, Facebook, Inc. 60958 * 60959 * This source code is licensed under the MIT license found in the 60960 * LICENSE file in the root directory of this source tree. 60961 * 60962 */ 60963 60964 60965 60966var DOMProperty = __webpack_require__(36); 60967var ReactComponentTreeHook = __webpack_require__(23); 60968 60969var warning = __webpack_require__(11); 60970 60971var warnedProperties = {}; 60972var rARIA = new RegExp('^(aria)-[' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$'); 60973 60974function validateProperty(tagName, name, debugID) { 60975 if (warnedProperties.hasOwnProperty(name) && warnedProperties[name]) { 60976 return true; 60977 } 60978 60979 if (rARIA.test(name)) { 60980 var lowerCasedName = name.toLowerCase(); 60981 var standardName = DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName) ? DOMProperty.getPossibleStandardName[lowerCasedName] : null; 60982 60983 // If this is an aria-* attribute, but is not listed in the known DOM 60984 // DOM properties, then it is an invalid aria-* attribute. 60985 if (standardName == null) { 60986 warnedProperties[name] = true; 60987 return false; 60988 } 60989 // aria-* attributes should be lowercase; suggest the lowercase version. 60990 if (name !== standardName) { 60991 true ? warning(false, 'Unknown ARIA attribute %s. Did you mean %s?%s', name, standardName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0; 60992 warnedProperties[name] = true; 60993 return true; 60994 } 60995 } 60996 60997 return true; 60998} 60999 61000function warnInvalidARIAProps(debugID, element) { 61001 var invalidProps = []; 61002 61003 for (var key in element.props) { 61004 var isValid = validateProperty(element.type, key, debugID); 61005 if (!isValid) { 61006 invalidProps.push(key); 61007 } 61008 } 61009 61010 var unknownPropString = invalidProps.map(function (prop) { 61011 return '`' + prop + '`'; 61012 }).join(', '); 61013 61014 if (invalidProps.length === 1) { 61015 true ? warning(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0; 61016 } else if (invalidProps.length > 1) { 61017 true ? warning(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0; 61018 } 61019} 61020 61021function handleElement(debugID, element) { 61022 if (element == null || typeof element.type !== 'string') { 61023 return; 61024 } 61025 if (element.type.indexOf('-') >= 0 || element.props.is) { 61026 return; 61027 } 61028 61029 warnInvalidARIAProps(debugID, element); 61030} 61031 61032var ReactDOMInvalidARIAHook = { 61033 onBeforeMountComponent: function (debugID, element) { 61034 if (true) { 61035 handleElement(debugID, element); 61036 } 61037 }, 61038 onBeforeUpdateComponent: function (debugID, element) { 61039 if (true) { 61040 handleElement(debugID, element); 61041 } 61042 } 61043}; 61044 61045module.exports = ReactDOMInvalidARIAHook; 61046 61047/***/ }), 61048/* 507 */ 61049/***/ (function(module, exports) { 61050 61051module.exports = function(lastTouchEvent, clickTimestamp) { 61052 if (lastTouchEvent && (clickTimestamp - lastTouchEvent) < 750) { 61053 return true; 61054 } 61055}; 61056 61057 61058/***/ }), 61059/* 508 */ 61060/***/ (function(module, exports, __webpack_require__) { 61061 61062"use strict"; 61063/** 61064 * Copyright 2013-2014 Facebook, Inc. 61065 * 61066 * Licensed under the Apache License, Version 2.0 (the "License");
61067 * you may not use this file except in compliance with the License. 61068 * You may obtain a copy of the License at 61069 * 61070 * http://www.apache.org/licenses/LICENSE-2.0 61071 * 61072 * Unless required by applicable law or agreed to in writing, software 61073 * distributed under the License is distributed on an "AS IS" BASIS, 61074 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 61075 * See the License for the specific language governing permissions and 61076 * limitations under the License. 61077 * 61078 * @providesModule TapEventPlugin 61079 * @typechecks static-only 61080 */ 61081 61082 61083 61084var EventConstants = __webpack_require__(509); 61085var EventPluginUtils = __webpack_require__(79); 61086var EventPropagators = __webpack_require__(50); 61087var SyntheticUIEvent = __webpack_require__(53); 61088var TouchEventUtils = __webpack_require__(510); 61089var ViewportMetrics = __webpack_require__(109); 61090 61091var keyOf = __webpack_require__(511); 61092var topLevelTypes = EventConstants.topLevelTypes; 61093 61094var isStartish = EventPluginUtils.isStartish; 61095var isEndish = EventPluginUtils.isEndish; 61096 61097var isTouch = function(topLevelType) { 61098 var touchTypes = [ 61099 'topTouchCancel', 61100 'topTouchEnd', 61101 'topTouchStart', 61102 'topTouchMove' 61103 ]; 61104 return touchTypes.indexOf(topLevelType) >= 0; 61105} 61106 61107/** 61108 * Number of pixels that are tolerated in between a `touchStart` and `touchEnd` 61109 * in order to still be considered a 'tap' event. 61110 */ 61111var tapMoveThreshold = 10; 61112var ignoreMouseThreshold = 750; 61113var startCoords = {x: null, y: null}; 61114var lastTouchEvent = null; 61115 61116var Axis = { 61117 x: {page: 'pageX', client: 'clientX', envScroll: 'currentPageScrollLeft'}, 61118 y: {page: 'pageY', client: 'clientY', envScroll: 'currentPageScrollTop'} 61119}; 61120 61121function getAxisCoordOfEvent(axis, nativeEvent) { 61122 var singleTouch = TouchEventUtils.extractSingleTouch(nativeEvent); 61123 if (singleTouch) { 61124 return singleTouch[axis.page]; 61125 } 61126 return axis.page in nativeEvent ? 61127 nativeEvent[axis.page] : 61128 nativeEvent[axis.client] + ViewportMetrics[axis.envScroll]; 61129} 61130 61131function getDistance(coords, nativeEvent) { 61132 var pageX = getAxisCoordOfEvent(Axis.x, nativeEvent); 61133 var pageY = getAxisCoordOfEvent(Axis.y, nativeEvent); 61134 return Math.pow( 61135 Math.pow(pageX - coords.x, 2) + Math.pow(pageY - coords.y, 2), 61136 0.5 61137 ); 61138} 61139 61140var touchEvents = [ 61141 'topTouchStart', 61142 'topTouchCancel', 61143 'topTouchEnd', 61144 'topTouchMove', 61145]; 61146 61147var dependencies = [ 61148 'topMouseDown', 61149 'topMouseMove', 61150 'topMouseUp', 61151].concat(touchEvents); 61152 61153var eventTypes = { 61154 touchTap: { 61155 phasedRegistrationNames: { 61156 bubbled: keyOf({onTouchTap: null}), 61157 captured: keyOf({onTouchTapCapture: null}) 61158 }, 61159 dependencies: dependencies 61160 } 61161}; 61162 61163var now = (function() { 61164 if (Date.now) { 61165 return Date.now; 61166 } else { 61167 // IE8 support: http://stackoverflow.com/questions/9430357/please-explain-why-and-how-new-date-works-as-workaround-for-date-now-in 61168 return function () { 61169 return +new Date; 61170 } 61171 } 61172})(); 61173 61174function createTapEventPlugin(shouldRejectClick) { 61175 return { 61176
61177 tapMoveThreshold: tapMoveThreshold, 61178 61179 ignoreMouseThreshold: ignoreMouseThreshold, 61180 61181 eventTypes: eventTypes, 61182 61183 /** 61184 * @param {string} topLevelType Record from `EventConstants`. 61185 * @param {DOMEventTarget} targetInst The listening component root node. 61186 * @param {object} nativeEvent Native browser event. 61187 * @return {*} An accumulation of synthetic events. 61188 * @see {EventPluginHub.extractEvents} 61189 */ 61190 extractEvents: function( 61191 topLevelType, 61192 targetInst, 61193 nativeEvent, 61194 nativeEventTarget 61195 ) { 61196 61197 if (!isStartish(topLevelType) && !isEndish(topLevelType)) { 61198 return null; 61199 } 61200 61201 if (isTouch(topLevelType)) { 61202 lastTouchEvent = now(); 61203 } else { 61204 if (shouldRejectClick(lastTouchEvent, now())) { 61205 return null; 61206 } 61207 } 61208 61209 var event = null; 61210 var distance = getDistance(startCoords, nativeEvent); 61211 if (isEndish(topLevelType) && distance < tapMoveThreshold) { 61212 event = SyntheticUIEvent.getPooled( 61213 eventTypes.touchTap, 61214 targetInst, 61215 nativeEvent, 61216 nativeEventTarget 61217 ); 61218 } 61219 if (isStartish(topLevelType)) { 61220 startCoords.x = getAxisCoordOfEvent(Axis.x, nativeEvent); 61221 startCoords.y = getAxisCoordOfEvent(Axis.y, nativeEvent); 61222 } else if (isEndish(topLevelType)) { 61223 startCoords.x = 0; 61224 startCoords.y = 0; 61225 } 61226 EventPropagators.accumulateTwoPhaseDispatches(event); 61227 return event; 61228 } 61229 61230 }; 61231} 61232 61233module.exports = createTapEventPlugin; 61234 61235 61236/***/ }), 61237/* 509 */ 61238/***/ (function(module, exports, __webpack_require__) { 61239 61240"use strict"; 61241/** 61242 * Copyright (c) 2013-present, Facebook, Inc. 61243 * 61244 * This source code is licensed under the MIT license found in the 61245 * LICENSE file in the root directory of this source tree. 61246 * 61247 */ 61248 61249 61250 61251/** 61252 * Types of raw signals from the browser caught at the top level. 61253 */ 61254var topLevelTypes = { 61255 topAbort: null, 61256 topAnimationEnd: null, 61257 topAnimationIteration: null, 61258 topAnimationStart: null, 61259 topBlur: null, 61260 topCanPlay: null, 61261 topCanPlayThrough: null, 61262 topChange: null, 61263 topClick: null, 61264 topCompositionEnd: null, 61265 topCompositionStart: null, 61266 topCompositionUpdate: null, 61267 topContextMenu: null, 61268 topCopy: null, 61269 topCut: null, 61270 topDoubleClick: null, 61271 topDrag: null, 61272 topDragEnd: null, 61273 topDragEnter: null, 61274 topDragExit: null, 61275 topDragLeave: null, 61276 topDragOver: null, 61277 topDragStart: null, 61278 topDrop: null, 61279 topDurationChange: null, 61280 topEmptied: null, 61281 topEncrypted: null, 61282 topEnded: null, 61283 topError: null, 61284 topFocus: null, 61285 topInput: null, 61286 topInvalid: null, 61287 topKeyDown: null, 61288 topKeyPress: null, 61289 topKeyUp: null, 61290 topLoad: null, 61291 topLoadedData: null, 61292 topLoadedMetadata: null, 61293 topLoadStart: null, 61294 topMouseDown: null, 61295 topMouseMove: null, 61296 topMouseOut: null, 61297 topMouseOver: null, 61298 topMouseUp: null, 61299 topPaste: null, 61300 topPause: null, 61301 topPlay: null, 61302 topPlaying: null, 61303 topProgress: null, 61304 topRateChange: null, 61305 topReset: null, 61306 topScroll: null, 61307 topSeeked: null, 61308 topSeeking: null, 61309 topSelectionChange: null, 61310 topStalled: null, 61311 topSubmit: null, 61312 topSuspend: null, 61313 topTextInput: null, 61314 topTimeUpdate: null, 61315 topTouchCancel: null, 61316 topTouchEnd: null, 61317 topTouchMove: null, 61318 topTouchStart: null, 61319 topTransitionEnd: null, 61320 topVolumeChange: null, 61321 topWaiting: null, 61322 topWheel: null 61323}; 61324 61325var EventConstants = { 61326 topLevelTypes: topLevelTypes 61327}; 61328 61329module.exports = EventConstants; 61330 61331/***/ }), 61332/* 510 */ 61333/***/ (function(module, exports) { 61334 61335/** 61336 * Copyright 2013-2014 Facebook, Inc. 61337 * 61338 * Licensed under the Apache License, Version 2.0 (the "License"); 61339 * you may not use this file except in compliance with the License. 61340 * You may obtain a copy of the License at 61341 * 61342 * http://www.apache.org/licenses/LICENSE-2.0 61343 * 61344 * Unless required by applicable law or agreed to in writing, software 61345 * distributed under the License is distributed on an "AS IS" BASIS, 61346 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 61347 * See the License for the specific language governing permissions and 61348 * limitations under the License. 61349 * 61350 * @providesModule TouchEventUtils 61351 */ 61352 61353var TouchEventUtils = { 61354 /** 61355 * Utility function for common case of extracting out the primary touch from a 61356 * touch event. 61357 * - `touchEnd` events usually do not have the `touches` property. 61358 * http://stackoverflow.com/questions/3666929/ 61359 * mobile-sarai-touchend-event-not-firing-when-last-touch-is-removed 61360 * 61361 * @param {Event} nativeEvent Native event that may or may not be a touch. 61362 * @return {TouchesObject?} an object with pageX and pageY or null. 61363 */ 61364 extractSingleTouch: function(nativeEvent) {
61365 var touches = nativeEvent.touches; 61366 var changedTouches = nativeEvent.changedTouches; 61367 var hasTouches = touches && touches.length > 0; 61368 var hasChangedTouches = changedTouches && changedTouches.length > 0; 61369 61370 return !hasTouches && hasChangedTouches ? changedTouches[0] : 61371 hasTouches ? touches[0] : 61372 nativeEvent; 61373 } 61374}; 61375 61376module.exports = TouchEventUtils; 61377 61378 61379/***/ }), 61380/* 511 */ 61381/***/ (function(module, exports, __webpack_require__) { 61382 61383"use strict"; 61384 61385 61386/** 61387 * Copyright (c) 2013-present, Facebook, Inc. 61388 * 61389 * This source code is licensed under the MIT license found in the 61390 * LICENSE file in the root directory of this source tree. 61391 * 61392 */ 61393 61394/** 61395 * Allows extraction of a minified key. Let's the build system minify keys 61396 * without losing the ability to dynamically use key strings as values 61397 * themselves. Pass in an object with a single key/val pair and it will return 61398 * you the string key of that single record. Suppose you want to grab the 61399 * value for a key 'className' inside of an object. Key/val minification may 61400 * have aliased that key to be 'xa12'. keyOf({className: null}) will return 61401 * 'xa12' in that case. Resolve keys you want to use once at startup time, then 61402 * reuse those resolutions. 61403 */ 61404var keyOf = function keyOf(oneKeyObj) { 61405 var key; 61406 for (key in oneKeyObj) { 61407 if (!oneKeyObj.hasOwnProperty(key)) { 61408 continue; 61409 } 61410 return key; 61411 } 61412 return null; 61413}; 61414 61415module.exports = keyOf; 61416 61417/***/ }), 61418/* 512 */ 61419/***/ (function(module, exports, __webpack_require__) { 61420 61421"use strict"; 61422/* eslint-disable global-require */ 61423 61424 61425 61426if (true) { 61427 module.exports = __webpack_require__(513); 61428} else { 61429 module.exports = require('./index.dev'); 61430} 61431 61432/***/ }), 61433/* 513 */ 61434/***/ (function(module, exports, __webpack_require__) { 61435 61436"use strict"; 61437 61438 61439module.exports.AppContainer = __webpack_require__(514); 61440 61441/***/ }), 61442/* 514 */ 61443/***/ (function(module, exports, __webpack_require__) { 61444 61445"use strict"; 61446/* eslint-disable global-require */ 61447 61448 61449 61450if (true) { 61451 module.exports = __webpack_require__(515); 61452} else { 61453 module.exports = require('./AppContainer.dev'); 61454} 61455 61456/***/ }), 61457/* 515 */ 61458/***/ (function(module, exports, __webpack_require__) { 61459 61460"use strict"; 61461/* eslint-disable react/prop-types */ 61462 61463 61464 61465var _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; }; }(); 61466 61467function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 61468 61469function _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; } 61470 61471function _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; } 61472 61473var React = __webpack_require__(0); 61474var Component = React.Component; 61475 61476var AppContainer = function (_Component) { 61477 _inherits(AppContainer, _Component); 61478 61479 function AppContainer() { 61480 _classCallCheck(this, AppContainer); 61481 61482 return _possibleConstructorReturn(this, (AppContainer.__proto__ || Object.getPrototypeOf(AppContainer)).apply(this, arguments)); 61483 } 61484 61485 _createClass(AppContainer, [{ 61486 key: 'render', 61487 value: function render() { 61488 if (this.props.component) { 61489 return React.createElement(this.props.component, this.props.props); 61490 } 61491 61492 return React.Children.only(this.props.children); 61493 } 61494 }]); 61495 61496 return AppContainer; 61497}(Component); 61498 61499module.exports = AppContainer; 61500 61501/***/ }), 61502/* 516 */, 61503/* 517 */, 61504/* 518 */, 61505/* 519 */, 61506/* 520 */, 61507/* 521 */ 61508/***/ (function(module, __webpack_exports__, __webpack_require__) { 61509 61510"use strict"; 61511/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning__ = __webpack_require__(19); 61512/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_warning__); 61513/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant__ = __webpack_require__(21); 61514/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_invariant__); 61515/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__LocationUtils__ = __webpack_require__(85); 61516/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__PathUtils__ = __webpack_require__(67); 61517/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__createTransitionManager__ = __webpack_require__(122); 61518/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__DOMUtils__ = __webpack_require__(196); 61519var _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; }; 61520 61521var _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; }; 61522 61523 61524 61525 61526 61527 61528 61529 61530var PopStateEvent = 'popstate'; 61531var HashChangeEvent = 'hashchange'; 61532 61533var getHistoryState = function getHistoryState() { 61534 try { 61535 return window.history.state || {}; 61536 } catch (e) { 61537 // IE 11 sometimes throws when accessing window.history.state 61538 // See https://github.com/ReactTraining/history/pull/289 61539 return {}; 61540 } 61541}; 61542 61543/** 61544 * Creates a history object that uses the HTML5 history API including 61545 * pushState, replaceState, and the popstate event. 61546 */ 61547var createBrowserHistory = function createBrowserHistory() { 61548 var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; 61549 61550 __WEBPACK_IMPORTED_MODULE_1_invariant___default()(__WEBPACK_IMPORTED_MODULE_5__DOMUtils__["b" /* canUseDOM */], 'Browser history needs a DOM'); 61551 61552 var globalHistory = window.history; 61553 var canUseHistory = Object(__WEBPACK_IMPORTED_MODULE_5__DOMUtils__["g" /* supportsHistory */])(); 61554 var needsHashChangeListener = !Object(__WEBPACK_IMPORTED_MODULE_5__DOMUtils__["h" /* supportsPopStateOnHashChange */])(); 61555 61556 var _props$forceRefresh = props.forceRefresh, 61557 forceRefresh = _props$forceRefresh === undefined ? false : _props$forceRefresh, 61558 _props$getUserConfirm = props.getUserConfirmation, 61559 getUserConfirmation = _props$getUserConfirm === undefined ? __WEBPACK_IMPORTED_MODULE_5__DOMUtils__["c" /* getConfirmation */] : _props$getUserConfirm, 61560 _props$keyLength = props.keyLength,
61561 keyLength = _props$keyLength === undefined ? 6 : _props$keyLength; 61562 61563 var basename = props.basename ? Object(__WEBPACK_IMPORTED_MODULE_3__PathUtils__["g" /* stripTrailingSlash */])(Object(__WEBPACK_IMPORTED_MODULE_3__PathUtils__["a" /* addLeadingSlash */])(props.basename)) : ''; 61564 61565 var getDOMLocation = function getDOMLocation(historyState) { 61566 var _ref = historyState || {}, 61567 key = _ref.key, 61568 state = _ref.state; 61569 61570 var _window$location = window.location, 61571 pathname = _window$location.pathname, 61572 search = _window$location.search, 61573 hash = _window$location.hash; 61574 61575 61576 var path = pathname + search + hash; 61577 61578 __WEBPACK_IMPORTED_MODULE_0_warning___default()(!basename || Object(__WEBPACK_IMPORTED_MODULE_3__PathUtils__["c" /* hasBasename */])(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".'); 61579 61580 if (basename) path = Object(__WEBPACK_IMPORTED_MODULE_3__PathUtils__["e" /* stripBasename */])(path, basename); 61581 61582 return Object(__WEBPACK_IMPORTED_MODULE_2__LocationUtils__["a" /* createLocation */])(path, state, key); 61583 }; 61584 61585 var createKey = function createKey() { 61586 return Math.random().toString(36).substr(2, keyLength); 61587 }; 61588 61589 var transitionManager = Object(__WEBPACK_IMPORTED_MODULE_4__createTransitionManager__["a" /* default */])(); 61590 61591 var setState = function setState(nextState) { 61592 _extends(history, nextState); 61593 61594 history.length = globalHistory.length; 61595 61596 transitionManager.notifyListeners(history.location, history.action); 61597 }; 61598 61599 var handlePopState = function handlePopState(event) { 61600 // Ignore extraneous popstate events in WebKit. 61601 if (Object(__WEBPACK_IMPORTED_MODULE_5__DOMUtils__["d" /* isExtraneousPopstateEvent */])(event)) return; 61602 61603 handlePop(getDOMLocation(event.state)); 61604 }; 61605 61606 var handleHashChange = function handleHashChange() { 61607 handlePop(getDOMLocation(getHistoryState())); 61608 }; 61609 61610 var forceNextPop = false; 61611 61612 var handlePop = function handlePop(location) { 61613 if (forceNextPop) { 61614 forceNextPop = false; 61615 setState(); 61616 } else { 61617 var action = 'POP'; 61618 61619 transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) { 61620 if (ok) { 61621 setState({ action: action, location: location }); 61622 } else { 61623 revertPop(location); 61624 } 61625 }); 61626 } 61627 }; 61628 61629 var revertPop = function revertPop(fromLocation) { 61630 var toLocation = history.location; 61631 61632 // TODO: We could probably make this more reliable by 61633 // keeping a list of keys we've seen in sessionStorage. 61634 // Instead, we just default to 0 for keys we don't know. 61635 61636 var toIndex = allKeys.indexOf(toLocation.key); 61637 61638 if (toIndex === -1) toIndex = 0; 61639 61640 var fromIndex = allKeys.indexOf(fromLocation.key); 61641 61642 if (fromIndex === -1) fromIndex = 0; 61643 61644 var delta = toIndex - fromIndex; 61645 61646 if (delta) { 61647 forceNextPop = true; 61648 go(delta); 61649 } 61650 }; 61651 61652 var initialLocation = getDOMLocation(getHistoryState()); 61653 var allKeys = [initialLocation.key]; 61654 61655 // Public interface 61656 61657 var createHref = function createHref(location) { 61658 return basename + Object(__WEBPACK_IMPORTED_MODULE_3__PathUtils__["b" /* createPath */])(location); 61659 }; 61660 61661 var push = function push(path, state) { 61662 __WEBPACK_IMPORTED_MODULE_0_warning___default()(!((typeof path === 'undefined' ? 'undefined' : _typeof(path)) === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored'); 61663 61664 var action = 'PUSH'; 61665 var location = Object(__WEBPACK_IMPORTED_MODULE_2__LocationUtils__["a" /* createLocation */])(path, state, createKey(), history.location); 61666 61667 transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) { 61668 if (!ok) return; 61669 61670 var href = createHref(location); 61671 var key = location.key, 61672 state = location.state; 61673 61674 61675 if (canUseHistory) { 61676 globalHistory.pushState({ key: key, state: state }, null, href); 61677 61678 if (forceRefresh) { 61679 window.location.href = href; 61680 } else {
61681 var prevIndex = allKeys.indexOf(history.location.key); 61682 var nextKeys = allKeys.slice(0, prevIndex === -1 ? 0 : prevIndex + 1); 61683 61684 nextKeys.push(location.key); 61685 allKeys = nextKeys; 61686 61687 setState({ action: action, location: location }); 61688 } 61689 } else { 61690 __WEBPACK_IMPORTED_MODULE_0_warning___default()(state === undefined, 'Browser history cannot push state in browsers that do not support HTML5 history'); 61691 61692 window.location.href = href; 61693 } 61694 }); 61695 }; 61696 61697 var replace = function replace(path, state) { 61698 __WEBPACK_IMPORTED_MODULE_0_warning___default()(!((typeof path === 'undefined' ? 'undefined' : _typeof(path)) === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored'); 61699 61700 var action = 'REPLACE'; 61701 var location = Object(__WEBPACK_IMPORTED_MODULE_2__LocationUtils__["a" /* createLocation */])(path, state, createKey(), history.location); 61702 61703 transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) { 61704 if (!ok) return; 61705 61706 var href = createHref(location); 61707 var key = location.key, 61708 state = location.state; 61709 61710 61711 if (canUseHistory) { 61712 globalHistory.replaceState({ key: key, state: state }, null, href); 61713 61714 if (forceRefresh) { 61715 window.location.replace(href); 61716 } else { 61717 var prevIndex = allKeys.indexOf(history.location.key); 61718 61719 if (prevIndex !== -1) allKeys[prevIndex] = location.key; 61720 61721 setState({ action: action, location: location }); 61722 } 61723 } else { 61724 __WEBPACK_IMPORTED_MODULE_0_warning___default()(state === undefined, 'Browser history cannot replace state in browsers that do not support HTML5 history'); 61725 61726 window.location.replace(href); 61727 } 61728 }); 61729 }; 61730 61731 var go = function go(n) { 61732 globalHistory.go(n); 61733 }; 61734 61735 var goBack = function goBack() { 61736 return go(-1); 61737 }; 61738 61739 var goForward = function goForward() { 61740 return go(1); 61741 }; 61742 61743 var listenerCount = 0; 61744 61745 var checkDOMListeners = function checkDOMListeners(delta) { 61746 listenerCount += delta; 61747 61748 if (listenerCount === 1) { 61749 Object(__WEBPACK_IMPORTED_MODULE_5__DOMUtils__["a" /* addEventListener */])(window, PopStateEvent, handlePopState); 61750 61751 if (needsHashChangeListener) Object(__WEBPACK_IMPORTED_MODULE_5__DOMUtils__["a" /* addEventListener */])(window, HashChangeEvent, handleHashChange); 61752 } else if (listenerCount === 0) { 61753 Object(__WEBPACK_IMPORTED_MODULE_5__DOMUtils__["e" /* removeEventListener */])(window, PopStateEvent, handlePopState); 61754 61755 if (needsHashChangeListener) Object(__WEBPACK_IMPORTED_MODULE_5__DOMUtils__["e" /* removeEventListener */])(window, HashChangeEvent, handleHashChange); 61756 } 61757 }; 61758 61759 var isBlocked = false; 61760 61761 var block = function block() { 61762 var prompt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; 61763 61764 var unblock = transitionManager.setPrompt(prompt); 61765 61766 if (!isBlocked) { 61767 checkDOMListeners(1); 61768 isBlocked = true; 61769 } 61770 61771 return function () { 61772 if (isBlocked) { 61773 isBlocked = false; 61774 checkDOMListeners(-1); 61775 } 61776 61777 return unblock(); 61778 }; 61779 }; 61780 61781 var listen = function listen(listener) { 61782 var unlisten = transitionManager.appendListener(listener); 61783 checkDOMListeners(1); 61784 61785 return function () { 61786 checkDOMListeners(-1); 61787 unlisten(); 61788 }; 61789 }; 61790 61791 var history = { 61792 length: globalHistory.length, 61793 action: 'POP', 61794 location: initialLocation, 61795 createHref: createHref, 61796 push: push, 61797 replace: replace, 61798 go: go, 61799 goBack: goBack, 61800 goForward: goForward, 61801 block: block, 61802 listen: listen 61803 }; 61804 61805 return history; 61806}; 61807 61808/* harmony default export */ __webpack_exports__["a"] = (createBrowserHistory); 61809 61810/***/ }), 61811/* 522 */ 61812/***/ (function(module, __webpack_exports__, __webpack_require__) { 61813 61814"use strict"; 61815function isAbsolute(pathname) { 61816 return pathname.charAt(0) === '/'; 61817} 61818 61819// About 1.5x faster than the two-arg version of Array#splice() 61820function spliceOne(list, index) { 61821 for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) { 61822 list[i] = list[k]; 61823 } 61824 61825 list.pop(); 61826} 61827 61828// This implementation is based heavily on node's url.parse 61829function resolvePathname(to) { 61830 var from = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; 61831 61832 var toParts = to && to.split('/') || []; 61833 var fromParts = from && from.split('/') || []; 61834 61835 var isToAbs = to && isAbsolute(to); 61836 var isFromAbs = from && isAbsolute(from); 61837 var mustEndAbs = isToAbs || isFromAbs; 61838 61839 if (to && isAbsolute(to)) { 61840 // to is absolute 61841 fromParts = toParts; 61842 } else if (toParts.length) { 61843 // to is relative, drop the filename 61844 fromParts.pop(); 61845 fromParts = fromParts.concat(toParts); 61846 } 61847 61848 if (!fromParts.length) return '/'; 61849 61850 var hasTrailingSlash = void 0; 61851 if (fromParts.length) { 61852 var last = fromParts[fromParts.length - 1]; 61853 hasTrailingSlash = last === '.' || last === '..' || last === ''; 61854 } else { 61855 hasTrailingSlash = false;
61856 } 61857 61858 var up = 0; 61859 for (var i = fromParts.length; i >= 0; i--) { 61860 var part = fromParts[i]; 61861 61862 if (part === '.') { 61863 spliceOne(fromParts, i); 61864 } else if (part === '..') { 61865 spliceOne(fromParts, i); 61866 up++; 61867 } else if (up) { 61868 spliceOne(fromParts, i); 61869 up--; 61870 } 61871 } 61872 61873 if (!mustEndAbs) for (; up--; up) { 61874 fromParts.unshift('..'); 61875 }if (mustEndAbs && fromParts[0] !== '' && (!fromParts[0] || !isAbsolute(fromParts[0]))) fromParts.unshift(''); 61876 61877 var result = fromParts.join('/'); 61878 61879 if (hasTrailingSlash && result.substr(-1) !== '/') result += '/'; 61880 61881 return result; 61882} 61883 61884/* harmony default export */ __webpack_exports__["a"] = (resolvePathname); 61885 61886/***/ }), 61887/* 523 */ 61888/***/ (function(module, __webpack_exports__, __webpack_require__) { 61889 61890"use strict"; 61891var _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; }; 61892 61893function valueEqual(a, b) { 61894 if (a === b) return true; 61895 61896 if (a == null || b == null) return false; 61897 61898 if (Array.isArray(a)) { 61899 return Array.isArray(b) && a.length === b.length && a.every(function (item, index) { 61900 return valueEqual(item, b[index]); 61901 }); 61902 } 61903 61904 var aType = typeof a === 'undefined' ? 'undefined' : _typeof(a); 61905 var bType = typeof b === 'undefined' ? 'undefined' : _typeof(b); 61906 61907 if (aType !== bType) return false; 61908 61909 if (aType === 'object') { 61910 var aValue = a.valueOf(); 61911 var bValue = b.valueOf(); 61912 61913 if (aValue !== a || bValue !== b) return valueEqual(aValue, bValue); 61914 61915 var aKeys = Object.keys(a); 61916 var bKeys = Object.keys(b); 61917 61918 if (aKeys.length !== bKeys.length) return false; 61919 61920 return aKeys.every(function (key) { 61921 return valueEqual(a[key], b[key]); 61922 }); 61923 } 61924 61925 return false; 61926} 61927 61928/* harmony default export */ __webpack_exports__["a"] = (valueEqual); 61929 61930/***/ }), 61931/* 524 */ 61932/***/ (function(module, __webpack_exports__, __webpack_require__) { 61933 61934"use strict"; 61935/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning__ = __webpack_require__(19); 61936/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_warning__); 61937/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant__ = __webpack_require__(21); 61938/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_invariant__); 61939/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__LocationUtils__ = __webpack_require__(85); 61940/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__PathUtils__ = __webpack_require__(67); 61941/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__createTransitionManager__ = __webpack_require__(122); 61942/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__DOMUtils__ = __webpack_require__(196); 61943var _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; }; 61944 61945 61946 61947 61948 61949 61950 61951 61952var HashChangeEvent = 'hashchange'; 61953 61954var HashPathCoders = { 61955 hashbang: { 61956 encodePath: function encodePath(path) { 61957 return path.charAt(0) === '!' ? path : '!/' + Object(__WEBPACK_IMPORTED_MODULE_3__PathUtils__["f" /* stripLeadingSlash */])(path); 61958 }, 61959 decodePath: function decodePath(path) { 61960 return path.charAt(0) === '!' ? path.substr(1) : path; 61961 } 61962 }, 61963 noslash: { 61964 encodePath: __WEBPACK_IMPORTED_MODULE_3__PathUtils__["f" /* stripLeadingSlash */], 61965 decodePath: __WEBPACK_IMPORTED_MODULE_3__PathUtils__["a" /* addLeadingSlash */] 61966 }, 61967 slash: { 61968 encodePath: __WEBPACK_IMPORTED_MODULE_3__PathUtils__["a" /* addLeadingSlash */], 61969 decodePath: __WEBPACK_IMPORTED_MODULE_3__PathUtils__["a" /* addLeadingSlash */] 61970 } 61971}; 61972 61973var getHashPath = function getHashPath() { 61974 // We can't use window.location.hash here because it's not 61975 // consistent across browsers - Firefox will pre-decode it! 61976 var href = window.location.href; 61977 var hashIndex = href.indexOf('#'); 61978 return hashIndex === -1 ? '' : href.substring(hashIndex + 1); 61979}; 61980 61981var pushHashPath = function pushHashPath(path) { 61982 return window.location.hash = path; 61983}; 61984 61985var replaceHashPath = function replaceHashPath(path) { 61986 var hashIndex = window.location.href.indexOf('#'); 61987 61988 window.location.replace(window.location.href.slice(0, hashIndex >= 0 ? hashIndex : 0) + '#' + path); 61989}; 61990 61991var createHashHistory = function createHashHistory() { 61992 var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; 61993 61994 __WEBPACK_IMPORTED_MODULE_1_invariant___default()(__WEBPACK_IMPORTED_MODULE_5__DOMUtils__["b" /* canUseDOM */], 'Hash history needs a DOM'); 61995 61996 var globalHistory = window.history; 61997 var canGoWithoutReload = Object(__WEBPACK_IMPORTED_MODULE_5__DOMUtils__["f" /* supportsGoWithoutReloadUsingHash */])(); 61998 61999 var _props$getUserConfirm = props.getUserConfirmation, 62000 getUserConfirmation = _props$getUserConfirm === undefined ? __WEBPACK_IMPORTED_MODULE_5__DOMUtils__["c" /* getConfirmation */] : _props$getUserConfirm, 62001 _props$hashType = props.hashType, 62002 hashType = _props$hashType === undefined ? 'slash' : _props$hashType; 62003 62004 var basename = props.basename ? Object(__WEBPACK_IMPORTED_MODULE_3__PathUtils__["g" /* stripTrailingSlash */])(Object(__WEBPACK_IMPORTED_MODULE_3__PathUtils__["a" /* addLeadingSlash */])(props.basename)) : ''; 62005 62006 var _HashPathCoders$hashT = HashPathCoders[hashType], 62007 encodePath = _HashPathCoders$hashT.encodePath, 62008 decodePath = _HashPathCoders$hashT.decodePath; 62009 62010 62011 var getDOMLocation = function getDOMLocation() { 62012 var path = decodePath(getHashPath()); 62013 62014 __WEBPACK_IMPORTED_MODULE_0_warning___default()(!basename || Object(__WEBPACK_IMPORTED_MODULE_3__PathUtils__["c" /* hasBasename */])(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the base
62014name. Expected path "' + path + '" to begin with "' + basename + '".'); 62015 62016 if (basename) path = Object(__WEBPACK_IMPORTED_MODULE_3__PathUtils__["e" /* stripBasename */])(path, basename); 62017 62018 return Object(__WEBPACK_IMPORTED_MODULE_2__LocationUtils__["a" /* createLocation */])(path); 62019 }; 62020 62021 var transitionManager = Object(__WEBPACK_IMPORTED_MODULE_4__createTransitionManager__["a" /* default */])(); 62022 62023 var setState = function setState(nextState) { 62024 _extends(history, nextState); 62025 62026 history.length = globalHistory.length; 62027 62028 transitionManager.notifyListeners(history.location, history.action); 62029 }; 62030 62031 var forceNextPop = false; 62032 var ignorePath = null; 62033 62034 var handleHashChange = function handleHashChange() { 62035 var path = getHashPath(); 62036 var encodedPath = encodePath(path); 62037 62038 if (path !== encodedPath) { 62039 // Ensure we always have a properly-encoded hash. 62040 replaceHashPath(encodedPath); 62041 } else { 62042 var location = getDOMLocation(); 62043 var prevLocation = history.location; 62044 62045 if (!forceNextPop && Object(__WEBPACK_IMPORTED_MODULE_2__LocationUtils__["b" /* locationsAreEqual */])(prevLocation, location)) return; // A hashchange doesn't always == location change. 62046 62047 if (ignorePath === Object(__WEBPACK_IMPORTED_MODULE_3__PathUtils__["b" /* createPath */])(location)) return; // Ignore this change; we already setState in push/replace. 62048 62049 ignorePath = null; 62050 62051 handlePop(location); 62052 } 62053 }; 62054 62055 var handlePop = function handlePop(location) { 62056 if (forceNextPop) { 62057 forceNextPop = false; 62058 setState(); 62059 } else { 62060 var action = 'POP'; 62061 62062 transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) { 62063 if (ok) { 62064 setState({ action: action, location: location }); 62065 } else { 62066 revertPop(location); 62067 } 62068 }); 62069 } 62070 }; 62071 62072 var revertPop = function revertPop(fromLocation) { 62073 var toLocation = history.location; 62074 62075 // TODO: We could probably make this more reliable by 62076 // keeping a list of paths we've seen in sessionStorage. 62077 // Instead, we just default to 0 for paths we don't know. 62078 62079 var toIndex = allPaths.lastIndexOf(Object(__WEBPACK_IMPORTED_MODULE_3__PathUtils__["b" /* createPath */])(toLocation)); 62080 62081 if (toIndex === -1) toIndex = 0; 62082 62083 var fromIndex = allPaths.lastIndexOf(Object(__WEBPACK_IMPORTED_MODULE_3__PathUtils__["b" /* createPath */])(fromLocation)); 62084 62085 if (fromIndex === -1) fromIndex = 0; 62086 62087 var delta = toIndex - fromIndex; 62088 62089 if (delta) { 62090 forceNextPop = true; 62091 go(delta); 62092 } 62093 }; 62094 62095 // Ensure the hash is encoded properly before doing anything else. 62096 var path = getHashPath(); 62097 var encodedPath = encodePath(path); 62098 62099 if (path !== encodedPath) replaceHashPath(encodedPath); 62100 62101 var initialLocation = getDOMLocation(); 62102 var allPaths = [Object(__WEBPACK_IMPORTED_MODULE_3__PathUtils__["b" /* createPath */])(initialLocation)]; 62103 62104 // Public interface 62105 62106 var createHref = function createHref(location) { 62107 return '#' + encodePath(basename + Object(__WEBPACK_IMPORTED_MODULE_3__PathUtils__["b" /* createPath */])(location)); 62108 }; 62109 62110 var push = function push(path, state) { 62111 __WEBPACK_IMPORTED_MODULE_0_warning___default()(state === undefined, 'Hash history cannot push state; it is ignored'); 62112 62113 var action = 'PUSH'; 62114 var location = Object(__WEBPACK_IMPORTED_MODULE_2__LocationUtils__["a" /* createLocation */])(path, undefined, undefined, history.location); 62115 62116 transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) { 62117 if (!ok) return; 62118 62119 var path = Object(__WEBPACK_IMPORTED_MODULE_3__PathUtils__["b" /* createPath */])(location); 62120 var encodedPath = encodePath(basename + path); 62121 var hashChanged = getHashPath() !== encodedPath; 62122 62123 if (hashChanged) { 62124 // We cannot tell if a hashchange was caused by a PUSH, so we'd 62125 // rather setState here and ignore the hashchange. The caveat here 62126 // is that other hash histories in the page will consider it a POP. 62127 ignorePath = path; 62128 pushHashPath(encodedPath); 62129 62130 var prevIndex = allPaths.lastIndexOf(Object(__WEBPACK_IMPORTED_MODULE_3__PathUtils__["b" /* createPath */])(history.location)); 62131 var nextPaths = allPaths.slice(0, prevIndex === -1 ? 0 : prevIndex + 1); 62132 62133 nextPaths.push(path); 62134 allPaths = nextPaths; 62135 62136 setState({ action: action, location: location }); 62137 } else { 62138 __WEBPACK_IMPORTED_MODULE_0_warning___default()(false, 'Hash history cannot P
62138USH the same path; a new entry will not be added to the history stack'); 62139 62140 setState(); 62141 } 62142 }); 62143 }; 62144 62145 var replace = function replace(path, state) { 62146 __WEBPACK_IMPORTED_MODULE_0_warning___default()(state === undefined, 'Hash history cannot replace state; it is ignored'); 62147 62148 var action = 'REPLACE'; 62149 var location = Object(__WEBPACK_IMPORTED_MODULE_2__LocationUtils__["a" /* createLocation */])(path, undefined, undefined, history.location); 62150 62151 transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) { 62152 if (!ok) return; 62153 62154 var path = Object(__WEBPACK_IMPORTED_MODULE_3__PathUtils__["b" /* createPath */])(location); 62155 var encodedPath = encodePath(basename + path); 62156 var hashChanged = getHashPath() !== encodedPath; 62157 62158 if (hashChanged) { 62159 // We cannot tell if a hashchange was caused by a REPLACE, so we'd 62160 // rather setState here and ignore the hashchange. The caveat here 62161 // is that other hash histories in the page will consider it a POP. 62162 ignorePath = path; 62163 replaceHashPath(encodedPath); 62164 } 62165 62166 var prevIndex = allPaths.indexOf(Object(__WEBPACK_IMPORTED_MODULE_3__PathUtils__["b" /* createPath */])(history.location)); 62167 62168 if (prevIndex !== -1) allPaths[prevIndex] = path; 62169 62170 setState({ action: action, location: location }); 62171 }); 62172 }; 62173 62174 var go = function go(n) { 62175 __WEBPACK_IMPORTED_MODULE_0_warning___default()(canGoWithoutReload, 'Hash history go(n) causes a full page reload in this browser'); 62176 62177 globalHistory.go(n); 62178 }; 62179 62180 var goBack = function goBack() { 62181 return go(-1); 62182 }; 62183 62184 var goForward = function goForward() { 62185 return go(1); 62186 }; 62187 62188 var listenerCount = 0; 62189 62190 var checkDOMListeners = function checkDOMListeners(delta) { 62191 listenerCount += delta; 62192 62193 if (listenerCount === 1) { 62194 Object(__WEBPACK_IMPORTED_MODULE_5__DOMUtils__["a" /* addEventListener */])(window, HashChangeEvent, handleHashChange); 62195 } else if (listenerCount === 0) { 62196 Object(__WEBPACK_IMPORTED_MODULE_5__DOMUtils__["e" /* removeEventListener */])(window, HashChangeEvent, handleHashChange); 62197 } 62198 }; 62199 62200 var isBlocked = false; 62201 62202 var block = function block() { 62203 var prompt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; 62204 62205 var unblock = transitionManager.setPrompt(prompt); 62206 62207 if (!isBlocked) { 62208 checkDOMListeners(1); 62209 isBlocked = true; 62210 } 62211 62212 return function () { 62213 if (isBlocked) { 62214 isBlocked = false; 62215 checkDOMListeners(-1); 62216 } 62217 62218 return unblock(); 62219 }; 62220 }; 62221 62222 var listen = function listen(listener) { 62223 var unlisten = transitionManager.appendListener(listener); 62224 checkDOMListeners(1); 62225 62226 return function () { 62227 checkDOMListeners(-1); 62228 unlisten(); 62229 }; 62230 }; 62231 62232 var history = { 62233 length: globalHistory.length, 62234 action: 'POP', 62235 location: initialLocation, 62236 createHref: createHref, 62237 push: push, 62238 replace: replace, 62239 go: go, 62240 goBack: goBack, 62241 goForward: goForward, 62242 block: block, 62243 listen: listen 62244 }; 62245 62246 return history; 62247}; 62248 62249/* harmony default export */ __webpack_exports__["a"] = (createHashHistory); 62250 62251/***/ }), 62252/* 525 */ 62253/***/ (function(module, __webpack_exports__, __webpack_require__) { 62254 62255"use strict"; 62256/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning__ = __webpack_require__(19); 62257/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_warning__); 62258/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__PathUtils__ = __webpack_require__(67); 62259/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__LocationUtils__ = __webpack_require__(85); 62260/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__createTransitionManager__ = __webpack_require__(122); 62261var _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; }; 62262 62263var _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; }; 62264 62265 62266 62267 62268 62269 62270var clamp = function clamp(n, lowerBound, upperBound) { 62271 return Math.min(Math.max(n, lowerBound), upperBound); 62272}; 62273 62274/** 62275 * Creates a history object that stores locations in memory. 62276 */ 62277var createMemoryHistory = function createMemoryHistory() { 62278 var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; 62279 var getUserConfirmation = props.getUserConfirmation, 62280 _props$initialEntries = props.initialEntries, 62281 initialEntries = _props$initialEntries === undefined ? ['/'] : _props$initialEntries, 62282 _props$initialIndex = props.initialIndex, 62283 initialIndex = _props$initialIndex === undefined ? 0 : _props$initialIndex, 62284 _props$keyLength = props.keyLength,
62285 keyLength = _props$keyLength === undefined ? 6 : _props$keyLength; 62286 62287 62288 var transitionManager = Object(__WEBPACK_IMPORTED_MODULE_3__createTransitionManager__["a" /* default */])(); 62289 62290 var setState = function setState(nextState) { 62291 _extends(history, nextState); 62292 62293 history.length = history.entries.length; 62294 62295 transitionManager.notifyListeners(history.location, history.action); 62296 }; 62297 62298 var createKey = function createKey() { 62299 return Math.random().toString(36).substr(2, keyLength); 62300 }; 62301 62302 var index = clamp(initialIndex, 0, initialEntries.length - 1); 62303 var entries = initialEntries.map(function (entry) { 62304 return typeof entry === 'string' ? Object(__WEBPACK_IMPORTED_MODULE_2__LocationUtils__["a" /* createLocation */])(entry, undefined, createKey()) : Object(__WEBPACK_IMPORTED_MODULE_2__LocationUtils__["a" /* createLocation */])(entry, undefined, entry.key || createKey()); 62305 }); 62306 62307 // Public interface 62308 62309 var createHref = __WEBPACK_IMPORTED_MODULE_1__PathUtils__["b" /* createPath */]; 62310 62311 var push = function push(path, state) { 62312 __WEBPACK_IMPORTED_MODULE_0_warning___default()(!((typeof path === 'undefined' ? 'undefined' : _typeof(path)) === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored'); 62313 62314 var action = 'PUSH'; 62315 var location = Object(__WEBPACK_IMPORTED_MODULE_2__LocationUtils__["a" /* createLocation */])(path, state, createKey(), history.location); 62316 62317 transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) { 62318 if (!ok) return; 62319 62320 var prevIndex = history.index; 62321 var nextIndex = prevIndex + 1; 62322 62323 var nextEntries = history.entries.slice(0); 62324 if (nextEntries.length > nextIndex) { 62325 nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location); 62326 } else { 62327 nextEntries.push(location); 62328 } 62329 62330 setState({ 62331 action: action, 62332 location: location, 62333 index: nextIndex, 62334 entries: nextEntries 62335 }); 62336 }); 62337 }; 62338 62339 var replace = function replace(path, state) { 62340 __WEBPACK_IMPORTED_MODULE_0_warning___default()(!((typeof path === 'undefined' ? 'undefined' : _typeof(path)) === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored'); 62341 62342 var action = 'REPLACE'; 62343 var location = Object(__WEBPACK_IMPORTED_MODULE_2__LocationUtils__["a" /* createLocation */])(path, state, createKey(), history.location); 62344 62345 transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) { 62346 if (!ok) return; 62347 62348 history.entries[history.index] = location; 62349 62350 setState({ action: action, location: location }); 62351 }); 62352 }; 62353 62354 var go = function go(n) { 62355 var nextIndex = clamp(history.index + n, 0, history.entries.length - 1); 62356 62357 var action = 'POP'; 62358 var location = history.entries[nextIndex]; 62359 62360 transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) { 62361 if (ok) { 62362 setState({ 62363 action: action, 62364 location: location, 62365 index: nextIndex 62366 }); 62367 } else { 62368 // Mimic the behavior of DOM histories by 62369 // causing a render after a cancelled POP. 62370 setState(); 62371 } 62372 }); 62373 }; 62374 62375 var goBack = function goBack() { 62376 return go(-1); 62377 }; 62378 62379 var goForward = function goForward() { 62380 return go(1); 62381 }; 62382 62383 var canGo = function canGo(n) { 62384 var nextIndex = history.index + n; 62385 return nextIndex >= 0 && nextIndex < history.entries.length; 62386 }; 62387 62388 var block = function block() { 62389 var prompt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; 62390 return transitionManager.setPrompt(prompt); 62391 }; 62392 62393 var listen = function listen(listener) { 62394 return transitionManager.appendListener(listener); 62395 }; 62396 62397 var history = { 62398 length: entries.length, 62399 action: 'POP', 62400 location: entries[index], 62401 index: index, 62402 entries: entries, 62403 createHref: createHref, 62404 push: push, 62405 replace: replace, 62406 go: go, 62407 goBack: goBack, 62408 goForward: goForward, 62409 canGo: canGo, 62410 block: block, 62411 listen: listen 62412 }; 62413 62414 return history; 62415}; 62416 62417/* harmony default export */ __webpack_exports__["a"] = (createMemoryHistory); 62418 62419/***/ }), 62420/* 526 */, 62421/* 527 */, 62422/* 528 */, 62423/* 529 */
vendor: 5,745 bytes, lines 62424-62628
62424/***/ (function(module, exports) { 62425 62426module.exports = Array.isArray || function (arr) { 62427 return Object.prototype.toString.call(arr) == '[object Array]'; 62428}; 62429 62430 62431/***/ }), 62432/* 530 */, 62433/* 531 */, 62434/* 532 */, 62435/* 533 */, 62436/* 534 */, 62437/* 535 */, 62438/* 536 */, 62439/* 537 */, 62440/* 538 */, 62441/* 539 */, 62442/* 540 */, 62443/* 541 */, 62444/* 542 */ 62445/***/ (function(module, __webpack_exports__, __webpack_require__) { 62446 62447"use strict"; 62448/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Symbol_js__ = __webpack_require__(210); 62449/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getRawTag_js__ = __webpack_require__(545); 62450/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__objectToString_js__ = __webpack_require__(546); 62451 62452 62453 62454 62455/** `Object#toString` result references. */ 62456var nullTag = '[object Null]', 62457 undefinedTag = '[object Undefined]'; 62458 62459/** Built-in value references. */ 62460var symToStringTag = __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */] ? __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */].toStringTag : undefined; 62461 62462/** 62463 * The base implementation of `getTag` without fallbacks for buggy environments. 62464 * 62465 * @private 62466 * @param {*} value The value to query. 62467 * @returns {string} Returns the `toStringTag`. 62468 */ 62469function baseGetTag(value) { 62470 if (value == null) { 62471 return value === undefined ? undefinedTag : nullTag; 62472 } 62473 return (symToStringTag && symToStringTag in Object(value)) 62474 ? Object(__WEBPACK_IMPORTED_MODULE_1__getRawTag_js__["a" /* default */])(value) 62475 : Object(__WEBPACK_IMPORTED_MODULE_2__objectToString_js__["a" /* default */])(value); 62476} 62477 62478/* harmony default export */ __webpack_exports__["a"] = (baseGetTag); 62479 62480 62481/***/ }), 62482/* 543 */ 62483/***/ (function(module, __webpack_exports__, __webpack_require__) { 62484 62485"use strict"; 62486/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__freeGlobal_js__ = __webpack_require__(544); 62487 62488 62489/** Detect free variable `self`. */ 62490var freeSelf = typeof self == 'object' && self && self.Object === Object && self; 62491 62492/** Used as a reference to the global object. */ 62493var root = __WEBPACK_IMPORTED_MODULE_0__freeGlobal_js__["a" /* default */] || freeSelf || Function('return this')(); 62494 62495/* harmony default export */ __webpack_exports__["a"] = (root); 62496 62497 62498/***/ }), 62499/* 544 */ 62500/***/ (function(module, __webpack_exports__, __webpack_require__) { 62501 62502"use strict"; 62503/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ 62504var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; 62505 62506/* harmony default export */ __webpack_exports__["a"] = (freeGlobal); 62507 62508/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(68))) 62509 62510/***/ }), 62511/* 545 */ 62512/***/ (function(module, __webpack_exports__, __webpack_require__) { 62513 62514"use strict"; 62515/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Symbol_js__ = __webpack_require__(210); 62516 62517 62518/** Used for built-in method references. */ 62519var objectProto = Object.prototype; 62520 62521/** Used to check objects for own properties. */ 62522var hasOwnProperty = objectProto.hasOwnProperty; 62523 62524/** 62525 * Used to resolve the 62526 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) 62527 * of values. 62528 */ 62529var nativeObjectToString = objectProto.toString; 62530 62531/** Built-in value references. */ 62532var symToStringTag = __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */] ? __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */].toStringTag : undefined; 62533 62534/** 62535 * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. 62536 * 62537 * @private 62538 * @param {*} value The value to query. 62539 * @returns {string} Returns the raw `toStringTag`. 62540 */ 62541function getRawTag(value) { 62542 var isOwn = hasOwnProperty.call(value, symToStringTag), 62543 tag = value[symToStringTag]; 62544 62545 try { 62546 value[symToStringTag] = undefined; 62547 var unmasked = true; 62548 } catch (e) {} 62549 62550 var result = nativeObjectToString.call(value); 62551 if (unmasked) { 62552 if (isOwn) { 62553 value[symToStringTag] = tag; 62554 } else { 62555 delete value[symToStringTag]; 62556 } 62557 } 62558 return result; 62559} 62560 62561/* harmony default export */ __webpack_exports__["a"] = (getRawTag); 62562 62563 62564/***/ }), 62565/* 546 */ 62566/***/ (function(module, __webpack_exports__, __webpack_require__) { 62567 62568"use strict"; 62569/** Used for built-in method references. */ 62570var objectProto = Object.prototype; 62571 62572/** 62573 * Used to resolve the 62574 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) 62575 * of values. 62576 */ 62577var nativeObjectToString = objectProto.toString; 62578 62579/** 62580 * Converts `value` to a string using `Object.prototype.toString`. 62581 * 62582 * @private 62583 * @param {*} value The value to convert. 62584 * @returns {string} Returns the converted string. 62585 */ 62586function objectToString(value) { 62587 return nativeObjectToString.call(value); 62588} 62589 62590/* harmony default export */ __webpack_exports__["a"] = (objectToString); 62591 62592 62593/***/ }), 62594/* 547 */ 62595/***/ (function(module, __webpack_exports__, __webpack_require__) { 62596 62597"use strict"; 62598/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__overArg_js__ = __webpack_require__(548); 62599 62600 62601/** Built-in value references. */ 62602var getPrototype = Object(__WEBPACK_IMPORTED_MODULE_0__overArg_js__["a" /* default */])(Object.getPrototypeOf, Object); 62603 62604/* harmony default export */ __webpack_exports__["a"] = (getPrototype); 62605 62606 62607/***/ }), 62608/* 548 */ 62609/***/ (function(module, __webpack_exports__, __webpack_require__) { 62610 62611"use strict"; 62612/** 62613 * Creates a unary function that invokes `func` with its argument transformed. 62614 * 62615 * @private 62616 * @param {Function} func The function to wrap. 62617 * @param {Function} transform The argument transform. 62618 * @returns {Function} Returns the new function. 62619 */ 62620function overArg(func, transform) { 62621 return function(arg) { 62622 return func(transform(arg)); 62623 }; 62624} 62625 62626/* harmony default export */ __webpack_exports__["a"] = (overArg); 62627 62628
62629/***/ }), 62630/* 549 */ 62631/***/ (function(module, __webpack_exports__, __webpack_require__) { 62632 62633"use strict"; 62634/** 62635 * Checks if `value` is object-like. A value is object-like if it's not `null` 62636 * and has a `typeof` result of "object". 62637 * 62638 * @static 62639 * @memberOf _ 62640 * @since 4.0.0 62641 * @category Lang 62642 * @param {*} value The value to check. 62643 * @returns {boolean} Returns `true` if `value` is object-like, else `false`. 62644 * @example 62645 * 62646 * _.isObjectLike({}); 62647 * // => true 62648 * 62649 * _.isObjectLike([1, 2, 3]); 62650 * // => true 62651 * 62652 * _.isObjectLike(_.noop); 62653 * // => false 62654 * 62655 * _.isObjectLike(null); 62656 * // => false 62657 */ 62658function isObjectLike(value) { 62659 return value != null && typeof value == 'object'; 62660} 62661 62662/* harmony default export */ __webpack_exports__["a"] = (isObjectLike); 62663 62664 62665/***/ }), 62666/* 550 */ 62667/***/ (function(module, __webpack_exports__, __webpack_require__) { 62668 62669"use strict"; 62670/* WEBPACK VAR INJECTION */(function(global, module) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ponyfill_js__ = __webpack_require__(552); 62671/* global window */ 62672 62673 62674var root; 62675 62676if (typeof self !== 'undefined') { 62677 root = self; 62678} else if (typeof window !== 'undefined') { 62679 root = window; 62680} else if (typeof global !== 'undefined') { 62681 root = global; 62682} else if (true) { 62683 root = module; 62684} else { 62685 root = Function('return this')(); 62686} 62687 62688var result = Object(__WEBPACK_IMPORTED_MODULE_0__ponyfill_js__["a" /* default */])(root); 62689/* harmony default export */ __webpack_exports__["a"] = (result); 62690 62691/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(68), __webpack_require__(551)(module))) 62692 62693/***/ }), 62694/* 551 */ 62695/***/ (function(module, exports) { 62696 62697module.exports = function(originalModule) { 62698 if(!originalModule.webpackPolyfill) { 62699 var module = Object.create(originalModule); 62700 // module.parent = undefined by default 62701 if(!module.children) module.children = []; 62702 Object.defineProperty(module, "loaded", { 62703 enumerable: true, 62704 get: function() { 62705 return module.l; 62706 } 62707 }); 62708 Object.defineProperty(module, "id", { 62709 enumerable: true, 62710 get: function() { 62711 return module.i; 62712 } 62713 }); 62714 Object.defineProperty(module, "exports", { 62715 enumerable: true, 62716 }); 62717 module.webpackPolyfill = 1; 62718 } 62719 return module; 62720}; 62721 62722 62723/***/ }), 62724/* 552 */ 62725/***/ (function(module, __webpack_exports__, __webpack_require__) { 62726 62727"use strict"; 62728/* harmony export (immutable) */ __webpack_exports__["a"] = symbolObservablePonyfill; 62729function symbolObservablePonyfill(root) { 62730 var result; 62731 var Symbol = root.Symbol; 62732 62733 if (typeof Symbol === 'function') { 62734 if (Symbol.observable) { 62735 result = Symbol.observable; 62736 } else { 62737 result = Symbol('observable'); 62738 Symbol.observable = result; 62739 } 62740 } else { 62741 result = '@@observable'; 62742 } 62743 62744 return result; 62745}; 62746 62747 62748/***/ }), 62749/* 553 */ 62750/***/ (function(module, __webpack_exports__, __webpack_require__) { 62751 62752"use strict"; 62753/* harmony export (immutable) */ __webpack_exports__["a"] = combineReducers; 62754/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createStore__ = __webpack_require__(209); 62755/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_es_isPlainObject__ = __webpack_require__(127); 62756/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_warning__ = __webpack_require__(211); 62757 62758 62759 62760 62761function getUndefinedStateErrorMessage(key, action) { 62762 var actionType = action && action.type; 62763 var actionName = actionType && '"' + actionType.toString() + '"' || 'an action'; 62764 62765 return 'Given action ' + actionName + ', reducer "' + key + '" returned undefined. ' + 'To ignore an action, you must explicitly return the previous state. ' + 'If you want this reducer to hold no value, you can return null instead of undefined.'; 62766} 62767 62768function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unex
62768pectedKeyCache) { 62769 var reducerKeys = Object.keys(reducers); 62770 var argumentName = action && action.type === __WEBPACK_IMPORTED_MODULE_0__createStore__["a" /* ActionTypes */].INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer'; 62771 62772 if (reducerKeys.length === 0) { 62773 return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.'; 62774 } 62775 62776 if (!Object(__WEBPACK_IMPORTED_MODULE_1_lodash_es_isPlainObject__["a" /* default */])(inputState)) { 62777 return 'The ' + argumentName + ' has unexpected type of "' + {}.toString.call(inputState).match(/\s([a-z|A-Z]+)/)[1] + '". Expected argument to be an object with the following ' + ('keys: "' + reducerKeys.join('", "') + '"'); 62778 } 62779 62780 var unexpectedKeys = Object.keys(inputState).filter(function (key) { 62781 return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key]; 62782 }); 62783 62784 unexpectedKeys.forEach(function (key) { 62785 unexpectedKeyCache[key] = true; 62786 }); 62787 62788 if (unexpectedKeys.length > 0) { 62789 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.'); 62790 } 62791} 62792 62793function assertReducerShape(reducers) { 62794 Object.keys(reducers).forEach(function (key) { 62795 var reducer = reducers[key]; 62796 var initialState = reducer(undefined, { type: __WEBPACK_IMPORTED_MODULE_0__createStore__["a" /* ActionTypes */].INIT }); 62797 62798 if (typeof initialState === 'undefined') { 62799 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. If you don\'t want to set a value for this reducer, ' + 'you can use null instead of undefined.'); 62800 } 62801 62802 var type = '@@redux/PROBE_UNKNOWN_ACTION_' + Math.random().toString(36).substring(7).split('').join('.'); 62803 if (typeof reducer(undefined, { type: type }) === 'undefined') { 62804 throw new Error('Reducer "' + key + '" returned undefined when probed with a random type. ' + ('Don\'t try to handle ' + __WEBPACK_IMPORTED_MODULE_0__createStore__["a" /* 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, but can be null.'); 62805 } 62806 }); 62807} 62808 62809/** 62810 * Turns an object whose values are different reducer functions, into a single 62811 * reducer function. It will call every child reducer, and gather their results 62812 * into a single state object, whose keys correspond to the keys of the passed 62813 * reducer functions. 62814 * 62815 * @param {Object} reducers An object whose values correspond to different 62816 * reducer functions that need to be combined into one. One handy way to obtain 62817 * it is to use ES6 `import * as reducers` syntax. The reducers may never return 62818 * undefined for any action. Instead, they should return their initial state 62819 * if the state passed to them was undefined, and the current state for any 62820 * unrecognized action. 62821 * 62822 * @returns {Function} A reducer function that invokes every reducer inside the 62823 * passed object, and builds a state object with the same shape. 62824 */ 62825function combineReducers(reducers) { 62826 var reducerKeys = Object.keys(reducers); 62827 var finalReducers = {}; 62828 for (var i = 0; i < reducerKeys.length; i++) { 62829 var key = reducerKeys[i]; 62830 62831 if (true) { 62832 if (typeof reducers[key] === 'undefined') { 62833 Object(__WEBPACK_IMPORTED_MODULE_2__utils_warning__["a" /* default */])('No reducer provided for key "' + key + '"'); 62834 } 62835 } 62836 62837 if (typeof reducers[key] === 'function') { 62838 finalReducers[key] = reducers[key]; 62839 } 62840 } 62841 var finalReducerKeys = Object.keys(finalReducers); 62842
62843 var unexpectedKeyCache = void 0; 62844 if (true) { 62845 unexpectedKeyCache = {}; 62846 } 62847 62848 var shapeAssertionError = void 0; 62849 try { 62850 assertReducerShape(finalReducers); 62851 } catch (e) { 62852 shapeAssertionError = e; 62853 } 62854 62855 return function combination() { 62856 var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; 62857 var action = arguments[1]; 62858 62859 if (shapeAssertionError) { 62860 throw shapeAssertionError; 62861 } 62862 62863 if (true) { 62864 var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache); 62865 if (warningMessage) { 62866 Object(__WEBPACK_IMPORTED_MODULE_2__utils_warning__["a" /* default */])(warningMessage); 62867 } 62868 } 62869 62870 var hasChanged = false; 62871 var nextState = {}; 62872 for (var _i = 0; _i < finalReducerKeys.length; _i++) { 62873 var _key = finalReducerKeys[_i]; 62874 var reducer = finalReducers[_key]; 62875 var previousStateForKey = state[_key]; 62876 var nextStateForKey = reducer(previousStateForKey, action); 62877 if (typeof nextStateForKey === 'undefined') { 62878 var errorMessage = getUndefinedStateErrorMessage(_key, action); 62879 throw new Error(errorMessage); 62880 } 62881 nextState[_key] = nextStateForKey; 62882 hasChanged = hasChanged || nextStateForKey !== previousStateForKey; 62883 } 62884 return hasChanged ? nextState : state; 62885 }; 62886} 62887 62888/***/ }), 62889/* 554 */ 62890/***/ (function(module, __webpack_exports__, __webpack_require__) { 62891 62892"use strict"; 62893/* harmony export (immutable) */ __webpack_exports__["a"] = bindActionCreators; 62894function bindActionCreator(actionCreator, dispatch) { 62895 return function () { 62896 return dispatch(actionCreator.apply(undefined, arguments)); 62897 }; 62898} 62899 62900/** 62901 * Turns an object whose values are action creators, into an object with the 62902 * same keys, but with every function wrapped into a `dispatch` call so they 62903 * may be invoked directly. This is just a convenience method, as you can call 62904 * `store.dispatch(MyActionCreators.doSomething())` yourself just fine. 62905 * 62906 * For convenience, you can also pass a single function as the first argument, 62907 * and get a function in return. 62908 * 62909 * @param {Function|Object} actionCreators An object whose values are action 62910 * creator functions. One handy way to obtain it is to use ES6 `import * as` 62911 * syntax. You may also pass a single function. 62912 * 62913 * @param {Function} dispatch The `dispatch` function available on your Redux 62914 * store. 62915 * 62916 * @returns {Function|Object} The object mimicking the original object, but with 62917 * every action creator wrapped into the `dispatch` call. If you passed a 62918 * function as `actionCreators`, the return value will also be a single 62919 * function. 62920 */ 62921function bindActionCreators(actionCreators, dispatch) { 62922 if (typeof actionCreators === 'function') { 62923 return bindActionCreator(actionCreators, dispatch); 62924 } 62925 62926 if (typeof actionCreators !== 'object' || actionCreators === null) { 62927 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"?'); 62928 } 62929 62930 var keys = Object.keys(actionCreators); 62931 var boundActionCreators = {}; 62932 for (var i = 0; i < keys.length; i++) { 62933 var key = keys[i]; 62934 var actionCreator = actionCreators[key]; 62935 if (typeof actionCreator === 'function') { 62936 boundActionCreators[key] = bindActionCreator(actionCreator, dispatch); 62937 } 62938 } 62939 return boundActionCreators; 62940} 62941 62942/***/ }), 62943/* 555 */ 62944/***/ (function(module, __webpack_exports__, __webpack_require__) { 62945 62946"use strict"; 62947/* harmony export (immutable) */ __webpack_exports__["a"] = applyMiddleware; 62948/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__compose__ = __webpack_require__(212); 62949var _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; }; 62950 62951 62952 62953/** 62954 * Creates a store enhancer that applies middleware to the dispatch method 62955 * of the Redux store. This is handy for a variety of tasks, such as expressing 62956 * asynchronous actions in a concise manner, or logging every action payload. 62957 * 62958 * See `redux-thunk` package as an example of the Redux middleware. 62959 * 62960 * Because middleware is potentially asynchronous, this should be the first 62961 * store enhancer in the composition chain. 62962 *
62963 * Note that each middleware will be given the `dispatch` and `getState` functions 62964 * as named arguments. 62965 * 62966 * @param {...Function} middlewares The middleware chain to be applied. 62967 * @returns {Function} A store enhancer applying the middleware. 62968 */ 62969function applyMiddleware() { 62970 for (var _len = arguments.length, middlewares = Array(_len), _key = 0; _key < _len; _key++) { 62971 middlewares[_key] = arguments[_key]; 62972 } 62973 62974 return function (createStore) { 62975 return function (reducer, preloadedState, enhancer) { 62976 var store = createStore(reducer, preloadedState, enhancer); 62977 var _dispatch = store.dispatch; 62978 var chain = []; 62979 62980 var middlewareAPI = { 62981 getState: store.getState, 62982 dispatch: function dispatch(action) { 62983 return _dispatch(action); 62984 } 62985 }; 62986 chain = middlewares.map(function (middleware) { 62987 return middleware(middlewareAPI); 62988 }); 62989 _dispatch = __WEBPACK_IMPORTED_MODULE_0__compose__["a" /* default */].apply(undefined, chain)(store.dispatch); 62990 62991 return _extends({}, store, { 62992 dispatch: _dispatch 62993 }); 62994 }; 62995 }; 62996} 62997 62998/***/ }), 62999/* 556 */, 63000/* 557 */, 63001/* 558 */, 63002/* 559 */, 63003/* 560 */ 63004/***/ (function(module, exports, __webpack_require__) { 63005 63006"use strict"; 63007 63008 63009Object.defineProperty(exports, "__esModule", { 63010 value: true 63011}); 63012 63013var _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; }; 63014 63015exports['default'] = syncHistoryWithStore; 63016 63017var _reducer = __webpack_require__(215); 63018 63019var defaultSelectLocationState = function defaultSelectLocationState(state) { 63020 return state.routing; 63021}; 63022 63023/** 63024 * This function synchronizes your history state with the Redux store. 63025 * Location changes flow from history to the store. An enhanced history is 63026 * returned with a listen method that responds to store updates for location. 63027 * 63028 * When this history is provided to the router, this means the location data 63029 * will flow like this: 63030 * history.push -> store.dispatch -> enhancedHistory.listen -> router 63031 * This ensures that when the store state changes due to a replay or other 63032 * event, the router will be updated appropriately and can transition to the 63033 * correct router state. 63034 */ 63035function syncHistoryWithStore(history, store) { 63036 var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, 63037 _ref$selectLocationSt = _ref.selectLocationState, 63038 selectLocationState = _ref$selectLocationSt === undefined ? defaultSelectLocationState : _ref$selectLocationSt, 63039 _ref$adjustUrlOnRepla = _ref.adjustUrlOnReplay, 63040 adjustUrlOnReplay = _ref$adjustUrlOnRepla === undefined ? true : _ref$adjustUrlOnRepla; 63041 63042 // Ensure that the reducer is mounted on the store and functioning properly. 63043 if (typeof selectLocationState(store.getState()) === 'undefined') { 63044 throw new Error('Expected the routing state to be available either as `state.routing` ' + 'or as the custom expression you can specify as `selectLocationState` ' + 'in the `syncHistoryWithStore()` options. ' + 'Ensure you have added the `routerReducer` to your store\'s ' + 'reducers via `combineReducers` or whatever method you use to isolate ' + 'your reducers.'); 63045 } 63046 63047 var initialLocation = void 0; 63048 var isTimeTraveling = void 0; 63049 var unsubscribeFromStore = void 0; 63050 var unsubscribeFromHistory = void 0; 63051 var currentLocation = void 0; 63052 63053 // What does the store say about current location? 63054 var getLocationInStore = function getLocationInStore(useInitialIfEmpty) { 63055 var locationState = selectLocationState(store.getState()); 63056 return locationState.locationBeforeTransitions || (useInitialIfEmpty ? initialLocation : undefined); 63057 }; 63058 63059 // Init initialLocation with potential location in store 63060 initialLocation = getLocationInStore(); 63061 63062 // If the store is replayed, update the URL in the browser to match. 63063 if (adjustUrlOnReplay) { 63064 var handleStoreChange = function handleStoreChange() { 63065 var locationInStore = getLocationInStore(true); 63066 if (currentLocation === locationInStore || initialLocation === locationInStore) { 63067 return; 63068 } 63069 63070 // Update address bar to reflect store state 63071 isTimeTraveling = true; 63072 currentLocation = locationInStore; 63073 history.transitionTo(_extends({}, locationInStore, { 63074 action: 'PUSH'
63075 })); 63076 isTimeTraveling = false; 63077 }; 63078 63079 unsubscribeFromStore = store.subscribe(handleStoreChange); 63080 handleStoreChange(); 63081 } 63082 63083 // Whenever location changes, dispatch an action to get it in the store 63084 var handleLocationChange = function handleLocationChange(location) { 63085 // ... unless we just caused that location change 63086 if (isTimeTraveling) { 63087 return; 63088 } 63089 63090 // Remember where we are 63091 currentLocation = location; 63092 63093 // Are we being called for the first time? 63094 if (!initialLocation) { 63095 // Remember as a fallback in case state is reset 63096 initialLocation = location; 63097 63098 // Respect persisted location, if any 63099 if (getLocationInStore()) { 63100 return; 63101 } 63102 } 63103 63104 // Tell the store to update by dispatching an action 63105 store.dispatch({ 63106 type: _reducer.LOCATION_CHANGE, 63107 payload: location 63108 }); 63109 }; 63110 unsubscribeFromHistory = history.listen(handleLocationChange); 63111 63112 // History 3.x doesn't call listen synchronously, so fire the initial location change ourselves 63113 if (history.getCurrentLocation) { 63114 handleLocationChange(history.getCurrentLocation()); 63115 } 63116 63117 // The enhanced history uses store as source of truth 63118 return _extends({}, history, { 63119 // The listeners are subscribed to the store instead of history 63120 listen: function listen(listener) { 63121 // Copy of last location. 63122 var lastPublishedLocation = getLocationInStore(true); 63123 63124 // Keep track of whether we unsubscribed, as Redux store 63125 // only applies changes in subscriptions on next dispatch 63126 var unsubscribed = false; 63127 var unsubscribeFromStore = store.subscribe(function () { 63128 var currentLocation = getLocationInStore(true); 63129 if (currentLocation === lastPublishedLocation) { 63130 return; 63131 } 63132 lastPublishedLocation = currentLocation; 63133 if (!unsubscribed) { 63134 listener(lastPublishedLocation); 63135 } 63136 }); 63137 63138 // History 2.x listeners expect a synchronous call. Make the first call to the 63139 // listener after subscribing to the store, in case the listener causes a 63140 // location change (e.g. when it redirects) 63141 if (!history.getCurrentLocation) { 63142 listener(lastPublishedLocation); 63143 } 63144 63145 // Let user unsubscribe later 63146 return function () { 63147 unsubscribed = true; 63148 unsubscribeFromStore(); 63149 }; 63150 }, 63151 63152 63153 // It also provides a way to destroy internal listeners 63154 unsubscribe: function unsubscribe() { 63155 if (adjustUrlOnReplay) { 63156 unsubscribeFromStore(); 63157 } 63158 unsubscribeFromHistory(); 63159 } 63160 }); 63161} 63162 63163/***/ }), 63164/* 561 */ 63165/***/ (function(module, exports, __webpack_require__) { 63166 63167"use strict"; 63168 63169 63170Object.defineProperty(exports, "__esModule", { 63171 value: true 63172}); 63173exports['default'] = routerMiddleware; 63174 63175var _actions = __webpack_require__(216); 63176 63177function _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); } } 63178 63179/** 63180 * This middleware captures CALL_HISTORY_METHOD actions to redirect to the 63181 * provided history object. This will prevent these actions from reaching your 63182 * reducer or any middleware that comes after this one. 63183 */ 63184function routerMiddleware(history) { 63185 return function () { 63186 return function (next) { 63187 return function (action) { 63188 if (action.type !== _actions.CALL_HISTORY_METHOD) { 63189 return next(action); 63190 } 63191 63192 var _action$payload = action.payload, 63193 method = _action$payload.method, 63194 args = _action$payload.args; 63195 63196 history[method].apply(history, _toConsumableArray(args)); 63197 }; 63198 }; 63199 }; 63200} 63201 63202/***/ }), 63203/* 562 */, 63204/* 563 */, 63205/* 564 */, 63206/* 565 */ 63207/***/ (function(module, exports) { 63208 63209module.exports = function(module) { 63210 if(!module.webpackPolyfill) { 63211 module.deprecate = function() {}; 63212 module.paths = []; 63213 // module.parent = undefined by default 63214 if(!module.children) module.children = []; 63215 Object.defineProperty(module, "loaded", { 63216 enumerable: true, 63217 get: function() { 63218 return module.l; 63219 } 63220 }); 63221 Object.defineProperty(module, "id", { 63222 enumerable: true, 63223 get: function() { 63224 return module.i; 63225 } 63226 }); 63227 module.webpackPolyfill = 1; 63228 } 63229 return module; 63230}; 63231 63232 63233/***/ }), 63234/* 566 */ 63235/***/ (function(module, exports, __webpack_require__) { 63236 63237var map = { 63238 "./af": 219, 63239 "./af.js": 219, 63240 "./ar": 220, 63241 "./ar-dz": 221, 63242 "./ar-dz.js": 221, 63243 "./ar-kw": 222, 63244 "./ar-kw.js": 222, 63245 "./ar-ly": 223, 63246 "./ar-ly.js": 223, 63247 "./ar-ma": 224, 63248 "./ar-ma.js": 224, 63249 "./ar-sa": 225, 63250 "./ar-sa.js": 225, 63251 "./ar-tn": 226, 63252 "./ar-tn.js": 226, 63253 "./ar.js": 220, 63254 "./az": 227, 63255 "./az.js": 227, 63256 "./be": 228, 63257 "./be.js": 228, 63258 "./bg": 229, 63259 "./bg.js": 229, 63260 "./bm": 230, 63261 "./bm.js": 230, 63262 "./bn": 231, 63263 "./bn.js": 231, 63264 "./bo": 232, 63265 "./bo.js": 232, 63266 "./br": 233, 63267 "./br.js": 233, 63268 "./bs": 234, 63269 "./bs.js": 234, 63270 "./ca": 235, 63271 "./ca.js": 235, 63272 "./cs": 236, 63273 "./cs.js": 236, 63274 "./cv": 237, 63275 "./cv.js": 237, 63276 "./cy": 238, 63277 "./cy.js": 238, 63278 "./da": 239, 63279 "./da.js": 239, 63280 "./de": 240, 63281 "./de-at": 241, 63282 "./de-at.js": 241, 63283 "./de-ch": 242, 63284 "./de-ch.js": 242, 63285 "./de.js": 240, 63286 "./dv": 243, 63287 "./dv.js": 243, 63288 "./el": 244, 63289 "./el.js": 244, 63290 "./en-au": 245, 63291 "./en-au.js": 245, 63292 "./en-ca": 246, 63293 "./en-ca.js": 246, 63294 "./en-gb": 247, 63295 "./en-gb.js": 247, 63296 "./en-ie": 248, 63297 "./en-ie.js": 248, 63298 "./en-il": 249, 63299 "./en-il.js": 249, 63300 "./en-nz": 250, 63301 "./en-nz.js": 250, 63302 "./eo": 251, 63303 "./eo.js": 251, 63304 "./es": 252, 63305 "./es-do": 253, 63306 "./es-do.js": 253, 63307 "./es-us": 254, 63308 "./es-us.js": 254, 63309 "./es.js": 252, 63310 "./et": 255, 63311 "./et.js": 255, 63312 "./eu": 256, 63313 "./eu.js": 256, 63314 "./fa": 257, 63315 "./fa.js": 257, 63316 "./fi": 258, 63317 "./fi.js": 258, 63318 "./fo": 259, 63319 "./fo.js": 259, 63320 "./fr": 260, 63321 "./fr-ca": 261, 63322 "./fr-ca.js": 261, 63323 "./fr-ch": 262, 63324 "./fr-ch.js": 262, 63325 "./fr.js": 260, 63326 "./fy": 263, 63327 "./fy.js": 263, 63328 "./gd": 264, 63329 "./gd.js": 264, 63330 "./gl": 265, 63331 "./gl.js": 265, 63332 "./gom-latn": 266, 63333 "./gom-latn.js": 266, 63334 "./gu": 267, 63335 "./gu.js": 267, 63336 "./he": 268, 63337 "./he.js": 268, 63338 "./hi": 269, 63339 "./hi.js": 269, 63340 "./hr": 270, 63341 "./hr.js": 270, 63342 "./hu": 271, 63343 "./hu.js": 271, 63344 "./hy-am": 272, 63345 "./hy-am.js": 272, 63346 "./id": 273, 63347 "./id.js": 273, 63348 "./is": 274, 63349 "./is.js": 274, 63350 "./it": 275, 63351 "./it.js": 275, 63352 "./ja": 276, 63353 "./ja.js": 276, 63354 "./jv": 277, 63355 "./jv.js": 277, 63356 "./ka": 278, 63357 "./ka.js": 278, 63358 "./kk": 279, 63359 "./kk.js": 279, 63360 "./km": 280, 63361 "./km.js": 280, 63362 "./kn": 281, 63363 "./kn.js": 281, 63364 "./ko": 282, 63365 "./ko.js": 282, 63366 "./ky": 283, 63367 "./ky.js": 283, 63368 "./lb": 284, 63369 "./lb.js": 284, 63370 "./lo": 285, 63371 "./lo.js": 285, 63372 "./lt": 286, 63373 "./lt.js": 286, 63374 "./lv": 287, 63375 "./lv.js": 287, 63376 "./me": 288, 63377 "./me.js": 288, 63378 "./mi": 289, 63379 "./mi.js": 289, 63380 "./mk": 290, 63381 "./mk.js": 290, 63382 "./ml": 291, 63383 "./ml.js": 291, 63384 "./mn": 292, 63385 "./mn.js": 292, 63386 "./mr": 293, 63387 "./mr.js": 293, 63388 "./ms": 294, 63389 "./ms-my": 295, 63390 "./ms-my.js": 295, 63391 "./ms.js": 294, 63392 "./mt": 296, 63393 "./mt.js": 296, 63394 "./my": 297, 63395 "./my.js": 297, 63396 "./nb": 298, 63397 "./nb.js": 298, 63398 "./ne": 299, 63399 "./ne.js": 299, 63400 "./nl": 300, 63401 "./nl-be": 301, 63402 "./nl-be.js": 301, 63403 "./nl.js": 300, 63404 "./nn": 302, 63405 "./nn.js": 302, 63406 "./pa-in": 303, 63407 "./pa-in.js": 303, 63408 "./pl": 304, 63409 "./pl.js": 304, 63410 "./pt": 305, 63411 "./pt-br": 306, 63412 "./pt-br.js": 306, 63413 "./pt.js": 305, 63414 "./ro": 307, 63415 "./ro.js": 307, 63416 "./ru": 308, 63417 "./ru.js": 308, 63418 "./sd": 309, 63419 "./sd.js": 309, 63420 "./se": 310, 63421 "./se.js": 310, 63422 "./si": 311, 63423 "./si.js": 311, 63424 "./sk": 312, 63425 "./sk.js": 312, 63426 "./sl": 313, 63427 "./sl.js": 313, 63428 "./sq": 314, 63429 "./sq.js": 314, 63430 "./sr": 315, 63431 "./sr-cyrl": 316, 63432 "./sr-cyrl.js": 316, 63433 "./sr.js": 315, 63434 "./ss": 317, 63435 "./ss.js": 317, 63436 "./sv": 318, 63437 "./sv.js": 318, 63438 "./sw": 319, 63439 "./sw.js": 319, 63440 "./ta": 320, 63441 "./ta.js": 320, 63442 "./te": 321, 63443 "./te.js": 321, 63444 "./tet": 322, 63445 "./tet.js": 322, 63446 "./tg": 323, 63447 "./tg.js": 323, 63448 "./th": 324, 63449 "./th.js": 324, 63450 "./tl-ph": 325, 63451 "./tl-ph.js": 325, 63452 "./tlh": 326, 63453 "./tlh.js": 326,
vendor: 21,808 bytes, lines 63454-64358
63454 "./tr": 327, 63455 "./tr.js": 327, 63456 "./tzl": 328, 63457 "./tzl.js": 328, 63458 "./tzm": 329, 63459 "./tzm-latn": 330, 63460 "./tzm-latn.js": 330, 63461 "./tzm.js": 329, 63462 "./ug-cn": 331, 63463 "./ug-cn.js": 331, 63464 "./uk": 332, 63465 "./uk.js": 332, 63466 "./ur": 333, 63467 "./ur.js": 333, 63468 "./uz": 334, 63469 "./uz-latn": 335, 63470 "./uz-latn.js": 335, 63471 "./uz.js": 334, 63472 "./vi": 336, 63473 "./vi.js": 336, 63474 "./x-pseudo": 337, 63475 "./x-pseudo.js": 337, 63476 "./yo": 338, 63477 "./yo.js": 338, 63478 "./zh-cn": 339, 63479 "./zh-cn.js": 339, 63480 "./zh-hk": 340, 63481 "./zh-hk.js": 340, 63482 "./zh-tw": 341, 63483 "./zh-tw.js": 341 63484}; 63485function webpackContext(req) { 63486 return __webpack_require__(webpackContextResolve(req)); 63487}; 63488function webpackContextResolve(req) { 63489 var id = map[req]; 63490 if(!(id + 1)) // check for number or string 63491 throw new Error("Cannot find module '" + req + "'."); 63492 return id; 63493}; 63494webpackContext.keys = function webpackContextKeys() { 63495 return Object.keys(map); 63496}; 63497webpackContext.resolve = webpackContextResolve; 63498module.exports = webpackContext; 63499webpackContext.id = 566; 63500 63501/***/ }), 63502/* 567 */, 63503/* 568 */, 63504/* 569 */, 63505/* 570 */, 63506/* 571 */, 63507/* 572 */, 63508/* 573 */, 63509/* 574 */, 63510/* 575 */, 63511/* 576 */ 63512/***/ (function(module, exports, __webpack_require__) { 63513 63514"use strict"; 63515 63516 63517var utils = __webpack_require__(26); 63518var bind = __webpack_require__(346); 63519var Axios = __webpack_require__(578); 63520var defaults = __webpack_require__(129); 63521 63522/** 63523 * Create an instance of Axios 63524 * 63525 * @param {Object} defaultConfig The default config for the instance 63526 * @return {Axios} A new instance of Axios 63527 */ 63528function createInstance(defaultConfig) { 63529 var context = new Axios(defaultConfig); 63530 var instance = bind(Axios.prototype.request, context); 63531 63532 // Copy axios.prototype to instance 63533 utils.extend(instance, Axios.prototype, context); 63534 63535 // Copy context to instance 63536 utils.extend(instance, context); 63537 63538 return instance; 63539} 63540 63541// Create the default instance to be exported 63542var axios = createInstance(defaults); 63543 63544// Expose Axios class to allow class inheritance 63545axios.Axios = Axios; 63546 63547// Factory for creating new instances 63548axios.create = function create(instanceConfig) { 63549 return createInstance(utils.merge(defaults, instanceConfig)); 63550}; 63551 63552// Expose Cancel & CancelToken 63553axios.Cancel = __webpack_require__(350); 63554axios.CancelToken = __webpack_require__(592); 63555axios.isCancel = __webpack_require__(349); 63556 63557// Expose all/spread 63558axios.all = function all(promises) { 63559 return Promise.all(promises); 63560}; 63561axios.spread = __webpack_require__(593); 63562 63563module.exports = axios; 63564 63565// Allow use of default import syntax in TypeScript 63566module.exports.default = axios; 63567 63568 63569/***/ }), 63570/* 577 */ 63571/***/ (function(module, exports) { 63572 63573/*! 63574 * Determine if an object is a Buffer 63575 * 63576 * @author Feross Aboukhadijeh <https://feross.org> 63577 * @license MIT 63578 */ 63579 63580// The _isBuffer check is for Safari 5-7 support, because it's missing 63581// Object.prototype.constructor. Remove this eventually 63582module.exports = function (obj) { 63583 return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer) 63584} 63585 63586function isBuffer (obj) { 63587 return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj) 63588} 63589 63590// For Node v0.10 support. Remove this eventually. 63591function isSlowBuffer (obj) { 63592 return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0)) 63593} 63594 63595 63596/***/ }), 63597/* 578 */ 63598/***/ (function(module, exports, __webpack_require__) { 63599 63600"use strict"; 63601 63602 63603var defaults = __webpack_require__(129); 63604var utils = __webpack_require__(26); 63605var InterceptorManager = __webpack_require__(587); 63606var dispatchRequest = __webpack_require__(588); 63607var isAbsoluteURL = __webpack_require__(590); 63608var combineURLs = __webpack_require__(591); 63609 63610/** 63611 * Create a new instance of Axios 63612 * 63613 * @param {Object} instanceConfig The default config for the instance 63614 */ 63615function Axios(instanceConfig) { 63616 this.defaults = instanceConfig; 63617 this.interceptors = { 63618 request: new InterceptorManager(), 63619 response: new InterceptorManager() 63620 }; 63621} 63622 63623/** 63624 * Dispatch a request 63625 * 63626 * @param {Object} config The config specific for this request (merged with this.defaults) 63627 */ 63628Axios.prototype.request = function request(config) { 63629 /*eslint no-param-reassign:0*/ 63630 // Allow for axios('example/url'[, config]) a la fetch API 63631 if (typeof config === 'string') { 63632 config = utils.merge({ 63633 url: arguments[0] 63634 }, arguments[1]); 63635 } 63636 63637 config = utils.merge(defaults, this.defaults, { method: 'get' }, config); 63638 config.method = config.method.toLowerCase(); 63639 63640 // Support baseURL config 63641 if (config.baseURL && !isAbsoluteURL(config.url)) { 63642 config.url = combineURLs(config.baseURL, config.url); 63643 } 63644 63645 // Hook up interceptors middleware 63646 var chain = [dispatchRequest, undefined]; 63647 var promise = Promise.resolve(config); 63648 63649 this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { 63650 chain.unshift(interceptor.fulfilled, interceptor.rejected); 63651 }); 63652 63653 this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { 63654 chain.push(interceptor.fulfilled, interceptor.rejected); 63655 }); 63656 63657 while (chain.length) { 63658 promise = promise.then(chain.shift(), chain.shift()); 63659 } 63660 63661 return promise; 63662}; 63663 63664// Provide aliases for supported request methods 63665utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { 63666 /*eslint func-names:0*/ 63667 Axios.prototype[method] = function(url, config) { 63668 return this.request(utils.merge(config || {}, { 63669 method: method, 63670 url: url 63671 })); 63672 }; 63673}); 63674 63675utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { 63676 /*eslint func-names:0*/ 63677 Axios.prototype[method] = function(url, data, config) { 63678 return this.request(utils.merge(config || {}, { 63679 method: method, 63680 url: url, 63681 data: data 63682 })); 63683 }; 63684}); 63685 63686module.exports = Axios; 63687 63688 63689/***/ }), 63690/* 579 */ 63691/***/ (function(module, exports, __webpack_require__) { 63692 63693"use strict"; 63694 63695 63696var utils = __webpack_require__(26); 63697 63698module.exports = function normalizeHeaderName(headers, normalizedName) { 63699 utils.forEach(headers, function processHeader(value, name) { 63700 if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { 63701 headers[normalizedName] = value; 63702 delete headers[name]; 63703 } 63704 }); 63705}; 63706 63707 63708/***/ }), 63709/* 580 */ 63710/***/ (function(module, exports, __webpack_require__) { 63711 63712"use strict"; 63713 63714 63715var createError = __webpack_require__(348); 63716 63717/** 63718 * Resolve or reject a Promise based on response status. 63719 * 63720 * @param {Function} resolve A function that resolves the promise. 63721 * @param {Function} reject A function that rejects the promise. 63722 * @param {object} response The response. 63723 */ 63724module.exports = function settle(resolve, reject, response) { 63725 var validateStatus = response.config.validateStatus; 63726 // Note: status is not exposed by XDomainRequest 63727 if (!response.status || !validateStatus || validateStatus(response.status)) { 63728 resolve(response); 63729 } else { 63730 reject(createError( 63731 'Request failed with status code ' + response.status, 63732 response.config, 63733 null, 63734 response.request, 63735 response 63736 )); 63737 } 63738}; 63739 63740 63741/***/ }), 63742/* 581 */ 63743/***/ (function(module, exports, __webpack_require__) { 63744 63745"use strict"; 63746 63747 63748/** 63749 * Update an Error with the specified config, error code, and response. 63750 * 63751 * @param {Error} error The error to update. 63752 * @param {Object} config The config. 63753 * @param {string} [code] The error code (for example, 'ECONNABORTED'). 63754 * @param {Object} [request] The request. 63755 * @param {Object} [response] The response. 63756 * @returns {Error} The error. 63757 */ 63758module.exports = function enhanceError(error, config, code, request, response) { 63759 error.config = config; 63760 if (code) { 63761 error.code = code; 63762 } 63763 error.request = request; 63764 error.response = response; 63765 return error; 63766}; 63767 63768 63769/***/ }), 63770/* 582 */ 63771/***/ (function(module, exports, __webpack_require__) { 63772 63773"use strict"; 63774 63775 63776var utils = __webpack_require__(26); 63777 63778function encode(val) { 63779 return encodeURIComponent(val). 63780 replace(/%40/gi, '@'). 63781 replace(/%3A/gi, ':'). 63782 replace(/%24/g, '$'). 63783 replace(/%2C/gi, ','). 63784 replace(/%20/g, '+'). 63785 replace(/%5B/gi, '['). 63786 replace(/%5D/gi, ']'); 63787} 63788 63789/** 63790 * Build a URL by appending params to the end 63791 * 63792 * @param {string} url The base of the url (e.g., http://www.google.com) 63793 * @param {object} [params] The params to be appended 63794 * @returns {string} The formatted url 63795 */ 63796module.exports = function buildURL(url, params, paramsSerializer) { 63797 /*eslint no-param-reassign:0*/ 63798 if (!params) { 63799 return url; 63800 } 63801 63802 var serializedParams; 63803 if (paramsSerializer) { 63804 serializedParams = paramsSerializer(params); 63805 } else if (utils.isURLSearchParams(params)) { 63806 serializedParams = params.toString(); 63807 } else { 63808 var parts = []; 63809 63810 utils.forEach(params, function serialize(val, key) { 63811 if (val === null || typeof val === 'undefined') { 63812 return; 63813 } 63814 63815 if (utils.isArray(val)) { 63816 key = key + '[]'; 63817 } 63818 63819 if (!utils.isArray(val)) { 63820 val = [val]; 63821 } 63822 63823 utils.forEach(val, function parseValue(v) { 63824 if (utils.isDate(v)) { 63825 v = v.toISOString(); 63826 } else if (utils.isObject(v)) { 63827 v = JSON.stringify(v); 63828 } 63829 parts.push(encode(key) + '=' + encode(v)); 63830 }); 63831 }); 63832 63833 serializedParams = parts.join('&'); 63834 } 63835 63836 if (serializedParams) { 63837 url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; 63838 } 63839 63840 return url; 63841}; 63842 63843 63844/***/ }), 63845/* 583 */ 63846/***/ (function(module, exports, __webpack_require__) { 63847 63848"use strict"; 63849 63850 63851var utils = __webpack_require__(26); 63852 63853/** 63854 * Parse headers into an object 63855 * 63856 * ``` 63857 * Date: Wed, 27 Aug 2014 08:58:49 GMT 63858 * Content-Type: application/json 63859 * Connection: keep-alive 63860 * Transfer-Encoding: chunked 63861 * ``` 63862 * 63863 * @param {String} headers Headers needing to be parsed 63864 * @returns {Object} Headers parsed into an object 63865 */ 63866module.exports = function parseHeaders(headers) { 63867 var parsed = {}; 63868 var key; 63869 var val; 63870 var i; 63871 63872 if (!headers) { return parsed; } 63873 63874 utils.forEach(headers.split('\n'), function parser(line) { 63875 i = line.indexOf(':'); 63876 key = utils.trim(line.substr(0, i)).toLowerCase(); 63877 val = utils.trim(line.substr(i + 1)); 63878 63879 if (key) { 63880 parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; 63881 } 63882 }); 63883 63884 return parsed; 63885}; 63886 63887 63888/***/ }), 63889/* 584 */ 63890/***/ (function(module, exports, __webpack_require__) { 63891 63892"use strict"; 63893 63894 63895var utils = __webpack_require__(26); 63896 63897module.exports = ( 63898 utils.isStandardBrowserEnv() ? 63899 63900 // Standard browser envs have full support of the APIs needed to test 63901 // whether the request URL is of the same origin as current location. 63902 (function standardBrowserEnv() { 63903 var msie = /(msie|trident)/i.test(navigator.userAgent); 63904 var urlParsingNode = document.createElement('a'); 63905 var originURL; 63906 63907 /** 63908 * Parse a URL to discover it's components 63909 * 63910 * @param {String} url The URL to be parsed 63911 * @returns {Object} 63912 */ 63913 function resolveURL(url) { 63914 var href = url; 63915 63916 if (msie) { 63917 // IE needs attribute set twice to normalize properties 63918 urlParsingNode.setAttribute('href', href); 63919 href = urlParsingNode.href; 63920 } 63921 63922 urlParsingNode.setAttribute('href', href); 63923 63924 // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils 63925 return { 63926 href: urlParsingNode.href, 63927 protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', 63928 host: urlParsingNode.host, 63929 search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', 63930 hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', 63931 hostname: urlParsingNode.hostname, 63932 port: urlParsingNode.port, 63933 pathname: (urlParsingNode.pathname.charAt(0) === '/') ? 63934 urlParsingNode.pathname : 63935 '/' + urlParsingNode.pathname 63936 }; 63937 } 63938 63939 originURL = resolveURL(window.location.href); 63940 63941 /** 63942 * Determine if a URL shares the same origin as the current location 63943 * 63944 * @param {String} requestURL The URL to test 63945 * @returns {boolean} True if URL shares the same origin, otherwise false 63946 */ 63947 return function isURLSameOrigin(requestURL) { 63948 var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; 63949 return (parsed.protocol === originURL.protocol && 63950 parsed.host === originURL.host); 63951 }; 63952 })() : 63953 63954 // Non standard browser envs (web workers, react-native) lack needed support. 63955 (function nonStandardBrowserEnv() { 63956 return function isURLSameOrigin() { 63957 return true; 63958 }; 63959 })() 63960); 63961 63962 63963/***/ }), 63964/* 585 */ 63965/***/ (function(module, exports, __webpack_require__) { 63966 63967"use strict"; 63968 63969 63970// btoa polyfill for IE<10 courtesy https://github.com/davidchambers/Base64.js 63971 63972var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; 63973 63974function E() { 63975 this.message = 'String contains an invalid character'; 63976} 63977E.prototype = new Error; 63978E.prototype.code = 5; 63979E.prototype.name = 'InvalidCharacterError'; 63980 63981function btoa(input) { 63982 var str = String(input); 63983 var output = ''; 63984 for ( 63985 // initialize result and counter 63986 var block, charCode, idx = 0, map = chars; 63987 // if the next str index does not exist: 63988 // change the mapping table to "=" 63989 // check if d has no fractional digits 63990 str.charAt(idx | 0) || (map = '=', idx % 1); 63991 // "8 - idx % 1 * 8" generates the sequence 2, 4, 6, 8 63992 output += map.charAt(63 & block >> 8 - idx % 1 * 8) 63993 ) { 63994 charCode = str.charCodeAt(idx += 3 / 4); 63995 if (charCode > 0xFF) { 63996 throw new E(); 63997 } 63998 block = block << 8 | charCode; 63999 } 64000 return output; 64001} 64002 64003module.exports = btoa; 64004 64005 64006/***/ }), 64007/* 586 */ 64008/***/ (function(module, exports, __webpack_require__) { 64009 64010"use strict"; 64011 64012 64013var utils = __webpack_require__(26); 64014 64015module.exports = ( 64016 utils.isStandardBrowserEnv() ? 64017 64018 // Standard browser envs support document.cookie 64019 (function standardBrowserEnv() { 64020 return { 64021 write: function write(name, value, expires, path, domain, secure) { 64022 var cookie = []; 64023 cookie.push(name + '=' + encodeURIComponent(value)); 64024 64025 if (utils.isNumber(expires)) { 64026 cookie.push('expires=' + new Date(expires).toGMTString()); 64027 } 64028 64029 if (utils.isString(path)) { 64030 cookie.push('path=' + path); 64031 } 64032 64033 if (utils.isString(domain)) { 64034 cookie.push('domain=' + domain); 64035 } 64036 64037 if (secure === true) { 64038 cookie.push('secure'); 64039 } 64040 64041 document.cookie = cookie.join('; '); 64042 }, 64043 64044 read: function read(name) { 64045 var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); 64046 return (match ? decodeURIComponent(match[3]) : null); 64047 }, 64048 64049 remove: function remove(name) { 64050 this.write(name, '', Date.now() - 86400000); 64051 } 64052 }; 64053 })() : 64054 64055 // Non standard browser env (web workers, react-native) lack needed support. 64056 (function nonStandardBrowserEnv() { 64057 return { 64058 write: function write() {}, 64059 read: function read() { return null; }, 64060 remove: function remove() {} 64061 }; 64062 })() 64063); 64064 64065 64066/***/ }), 64067/* 587 */ 64068/***/ (function(module, exports, __webpack_require__) { 64069 64070"use strict"; 64071 64072 64073var utils = __webpack_require__(26); 64074 64075function InterceptorManager() { 64076 this.handlers = []; 64077} 64078 64079/** 64080 * Add a new interceptor to the stack 64081 * 64082 * @param {Function} fulfilled The function to handle `then` for a `Promise` 64083 * @param {Function} rejected The function to handle `reject` for a `Promise` 64084 * 64085 * @return {Number} An ID used to remove interceptor later 64086 */ 64087InterceptorManager.prototype.use = function use(fulfilled, rejected) { 64088 this.handlers.push({ 64089 fulfilled: fulfilled, 64090 rejected: rejected 64091 }); 64092 return this.handlers.length - 1; 64093}; 64094 64095/** 64096 * Remove an interceptor from the stack 64097 * 64098 * @param {Number} id The ID that was returned by `use` 64099 */ 64100InterceptorManager.prototype.eject = function eject(id) { 64101 if (this.handlers[id]) { 64102 this.handlers[id] = null; 64103 } 64104}; 64105 64106/** 64107 * Iterate over all the registered interceptors 64108 * 64109 * This method is particularly useful for skipping over any 64110 * interceptors that may have become `null` calling `eject`. 64111 * 64112 * @param {Function} fn The function to call for each interceptor 64113 */ 64114InterceptorManager.prototype.forEach = function forEach(fn) { 64115 utils.forEach(this.handlers, function forEachHandler(h) { 64116 if (h !== null) { 64117 fn(h); 64118 } 64119 }); 64120}; 64121 64122module.exports = InterceptorManager; 64123 64124 64125/***/ }), 64126/* 588 */ 64127/***/ (function(module, exports, __webpack_require__) { 64128 64129"use strict"; 64130 64131 64132var utils = __webpack_require__(26); 64133var transformData = __webpack_require__(589); 64134var isCancel = __webpack_require__(349); 64135var defaults = __webpack_require__(129); 64136 64137/** 64138 * Throws a `Cancel` if cancellation has been requested. 64139 */ 64140function throwIfCancellationRequested(config) { 64141 if (config.cancelToken) { 64142 config.cancelToken.throwIfRequested(); 64143 } 64144} 64145 64146/** 64147 * Dispatch a request to the server using the configured adapter. 64148 * 64149 * @param {object} config The config that is to be used for the request 64150 * @returns {Promise} The Promise to be fulfilled 64151 */ 64152module.exports = function dispatchRequest(config) { 64153 throwIfCancellationRequested(config); 64154 64155 // Ensure headers exist 64156 config.headers = config.headers || {}; 64157 64158 // Transform request data 64159 config.data = transformData( 64160 config.data, 64161 config.headers, 64162 config.transformRequest 64163 ); 64164 64165 // Flatten headers 64166 config.headers = utils.merge( 64167 config.headers.common || {}, 64168 config.headers[config.method] || {}, 64169 config.headers || {} 64170 ); 64171 64172 utils.forEach( 64173 ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], 64174 function cleanHeaderConfig(method) { 64175 delete config.headers[method]; 64176 } 64177 ); 64178 64179 var adapter = config.adapter || defaults.adapter; 64180 64181 return adapter(config).then(function onAdapterResolution(response) { 64182 throwIfCancellationRequested(config); 64183 64184 // Transform response data 64185 response.data = transformData( 64186 response.data, 64187 response.headers, 64188 config.transformResponse 64189 ); 64190 64191 return response; 64192 }, function onAdapterRejection(reason) { 64193 if (!isCancel(reason)) { 64194 throwIfCancellationRequested(config); 64195 64196 // Transform response data 64197 if (reason && reason.response) { 64198 reason.response.data = transformData( 64199 reason.response.data, 64200 reason.response.headers, 64201 config.transformResponse 64202 ); 64203 } 64204 } 64205 64206 return Promise.reject(reason); 64207 }); 64208}; 64209 64210 64211/***/ }), 64212/* 589 */ 64213/***/ (function(module, exports, __webpack_require__) { 64214 64215"use strict"; 64216 64217 64218var utils = __webpack_require__(26); 64219 64220/** 64221 * Transform the data for a request or a response 64222 * 64223 * @param {Object|String} data The data to be transformed 64224 * @param {Array} headers The headers for the request or response 64225 * @param {Array|Function} fns A single function or Array of functions 64226 * @returns {*} The resulting transformed data 64227 */ 64228module.exports = function transformData(data, headers, fns) { 64229 /*eslint no-param-reassign:0*/ 64230 utils.forEach(fns, function transform(fn) { 64231 data = fn(data, headers); 64232 }); 64233 64234 return data; 64235}; 64236 64237 64238/***/ }), 64239/* 590 */ 64240/***/ (function(module, exports, __webpack_require__) { 64241 64242"use strict"; 64243 64244 64245/** 64246 * Determines whether the specified URL is absolute 64247 * 64248 * @param {string} url The URL to test 64249 * @returns {boolean} True if the specified URL is absolute, otherwise false 64250 */ 64251module.exports = function isAbsoluteURL(url) { 64252 // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL). 64253 // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed 64254 // by any combination of letters, digits, plus, period, or hyphen. 64255 return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url); 64256}; 64257 64258 64259/***/ }), 64260/* 591 */ 64261/***/ (function(module, exports, __webpack_require__) { 64262 64263"use strict"; 64264 64265 64266/** 64267 * Creates a new URL by combining the specified URLs 64268 * 64269 * @param {string} baseURL The base URL 64270 * @param {string} relativeURL The relative URL 64271 * @returns {string} The combined URL 64272 */ 64273module.exports = function combineURLs(baseURL, relativeURL) { 64274 return relativeURL 64275 ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') 64276 : baseURL; 64277}; 64278 64279 64280/***/ }), 64281/* 592 */ 64282/***/ (function(module, exports, __webpack_require__) { 64283 64284"use strict"; 64285 64286 64287var Cancel = __webpack_require__(350); 64288 64289/** 64290 * A `CancelToken` is an object that can be used to request cancellation of an operation. 64291 * 64292 * @class 64293 * @param {Function} executor The executor function. 64294 */ 64295function CancelToken(executor) { 64296 if (typeof executor !== 'function') { 64297 throw new TypeError('executor must be a function.'); 64298 } 64299 64300 var resolvePromise; 64301 this.promise = new Promise(function promiseExecutor(resolve) { 64302 resolvePromise = resolve; 64303 }); 64304 64305 var token = this; 64306 executor(function cancel(message) { 64307 if (token.reason) { 64308 // Cancellation has already been requested 64309 return; 64310 } 64311 64312 token.reason = new Cancel(message); 64313 resolvePromise(token.reason); 64314 }); 64315} 64316 64317/** 64318 * Throws a `Cancel` if cancellation has been requested. 64319 */ 64320CancelToken.prototype.throwIfRequested = function throwIfRequested() { 64321 if (this.reason) { 64322 throw this.reason; 64323 } 64324}; 64325 64326/** 64327 * Returns an object that contains a new `CancelToken` and a function that, when called, 64328 * cancels the `CancelToken`. 64329 */ 64330CancelToken.source = function source() { 64331 var cancel; 64332 var token = new CancelToken(function executor(c) { 64333 cancel = c; 64334 }); 64335 return { 64336 token: token, 64337 cancel: cancel 64338 }; 64339}; 64340 64341module.exports = CancelToken; 64342 64343 64344/***/ }), 64345/* 593 */ 64346/***/ (function(module, exports, __webpack_require__) { 64347 64348"use strict"; 64349 64350 64351/** 64352 * Syntactic sugar for invoking a function and expanding an array for arguments. 64353 * 64354 * Common use case would be to use `Function.prototype.apply`. 64355 * 64356 * ```js 64357 * function f(x, y, z) {} 64358 * var args = [1, 2, 3];
64359 * f.apply(null, args); 64360 * ``` 64361 * 64362 * With `spread` this example can be re-written. 64363 * 64364 * ```js 64365 * spread(function(x, y, z) {})([1, 2, 3]); 64366 * ``` 64367 * 64368 * @param {Function} callback 64369 * @returns {Function} 64370 */ 64371module.exports = function spread(callback) { 64372 return function wrap(arr) { 64373 return callback.apply(null, arr); 64374 }; 64375}; 64376 64377 64378/***/ }), 64379/* 594 */, 64380/* 595 */, 64381/* 596 */, 64382/* 597 */, 64383/* 598 */, 64384/* 599 */, 64385/* 600 */, 64386/* 601 */, 64387/* 602 */, 64388/* 603 */, 64389/* 604 */, 64390/* 605 */, 64391/* 606 */, 64392/* 607 */ 64393/***/ (function(module, exports, __webpack_require__) { 64394 64395"use strict"; 64396 64397 64398exports.__esModule = true; 64399 64400var _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; }; 64401 64402var _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; }; })(); 64403 64404function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 64405 64406function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } 64407 64408function _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; } 64409 64410var _mapToZero = __webpack_require__(131); 64411 64412var _mapToZero2 = _interopRequireDefault(_mapToZero); 64413 64414var _stripStyle = __webpack_require__(89); 64415 64416var _stripStyle2 = _interopRequireDefault(_stripStyle); 64417 64418var _stepper3 = __webpack_require__(132); 64419 64420var _stepper4 = _interopRequireDefault(_stepper3); 64421 64422var _performanceNow = __webpack_require__(133); 64423 64424var _performanceNow2 = _interopRequireDefault(_performanceNow); 64425 64426var _raf = __webpack_require__(134); 64427 64428var _raf2 = _interopRequireDefault(_raf); 64429 64430var _shouldStopAnimation = __webpack_require__(135); 64431 64432var _shouldStopAnimation2 = _interopRequireDefault(_shouldStopAnimation); 64433 64434var _react = __webpack_require__(0); 64435 64436var _react2 = _interopRequireDefault(_react); 64437 64438var _propTypes = __webpack_require__(2); 64439 64440var _propTypes2 = _interopRequireDefault(_propTypes); 64441 64442var msPerFrame = 1000 / 60; 64443 64444var Motion = (function (_React$Component) { 64445 _inherits(Motion, _React$Component); 64446 64447 _createClass(Motion, null, [{ 64448 key: 'propTypes', 64449 value: { 64450 // TOOD: warn against putting a config in here 64451 defaultStyle: _propTypes2['default'].objectOf(_propTypes2['default'].number), 64452 style: _propTypes2['default'].objectOf(_propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].object])).isRequired, 64453 children: _propTypes2['default'].func.isRequired, 64454 onRest: _propTypes2['default'].func 64455 }, 64456 enumerable: true 64457 }]); 64458 64459 function Motion(props) { 64460 var _this = this; 64461 64462 _classCallCheck(this, Motion); 64463 64464 _React$Component.call(this, props); 64465 this.wasAnimating = false; 64466 this.animationID = null; 64467 this.prevTime = 0; 64468 this.accumulatedTime = 0; 64469 this.unreadPropStyle = null; 64470 64471 this.clearUnreadPropStyle = function (destStyle) { 64472 var dirty = false; 64473 var _state = _this.state; 64474 var currentStyle = _state.currentStyle; 64475 var currentVelocity = _state.currentVelocity; 64476 var lastIdealStyle = _state.lastIdealStyle; 64477 var lastIdealVelocity = _state.lastIdealVelocity; 64478 64479 for (var key in destStyle) { 64480 if (!Object.prototype.hasOwnProperty.call(destStyle, key)) { 64481 continue; 64482 } 64483 64484 var styleValue = destStyle[key]; 64485 if (typeof styleValue === 'number') { 64486 if (!dirty) { 64487 dirty = true; 64488 currentStyle = _extends({}, currentStyle); 64489 currentVelocity = _extends({}, currentVelocity); 64490 lastIdealStyle = _extends({}, lastIdealStyle); 64491 lastIdealVelocity = _extends({}, lastIdealVelocity); 64492 } 64493 64494 currentStyle[key] = styleValue; 64495 currentVelocity[key] = 0; 64496 lastIdealStyle[key] = styleValue; 64497 lastIdealVelocity[key] = 0; 64498 } 64499 } 64500
vendor: 49,811 bytes, lines 64501-65747
64501 if (dirty) { 64502 _this.setState({ currentStyle: currentStyle, currentVelocity: currentVelocity, lastIdealStyle: lastIdealStyle, lastIdealVelocity: lastIdealVelocity }); 64503 } 64504 }; 64505 64506 this.startAnimationIfNecessary = function () { 64507 // TODO: when config is {a: 10} and dest is {a: 10} do we raf once and 64508 // call cb? No, otherwise accidental parent rerender causes cb trigger 64509 _this.animationID = _raf2['default'](function (timestamp) { 64510 // check if we need to animate in the first place 64511 var propsStyle = _this.props.style; 64512 if (_shouldStopAnimation2['default'](_this.state.currentStyle, propsStyle, _this.state.currentVelocity)) { 64513 if (_this.wasAnimating && _this.props.onRest) { 64514 _this.props.onRest(); 64515 } 64516 64517 // no need to cancel animationID here; shouldn't have any in flight 64518 _this.animationID = null; 64519 _this.wasAnimating = false; 64520 _this.accumulatedTime = 0; 64521 return; 64522 } 64523 64524 _this.wasAnimating = true; 64525 64526 var currentTime = timestamp || _performanceNow2['default'](); 64527 var timeDelta = currentTime - _this.prevTime; 64528 _this.prevTime = currentTime; 64529 _this.accumulatedTime = _this.accumulatedTime + timeDelta; 64530 // more than 10 frames? prolly switched browser tab. Restart 64531 if (_this.accumulatedTime > msPerFrame * 10) { 64532 _this.accumulatedTime = 0; 64533 } 64534 64535 if (_this.accumulatedTime === 0) { 64536 // no need to cancel animationID here; shouldn't have any in flight 64537 _this.animationID = null; 64538 _this.startAnimationIfNecessary(); 64539 return; 64540 } 64541 64542 var currentFrameCompletion = (_this.accumulatedTime - Math.floor(_this.accumulatedTime / msPerFrame) * msPerFrame) / msPerFrame; 64543 var framesToCatchUp = Math.floor(_this.accumulatedTime / msPerFrame); 64544 64545 var newLastIdealStyle = {}; 64546 var newLastIdealVelocity = {}; 64547 var newCurrentStyle = {}; 64548 var newCurrentVelocity = {}; 64549 64550 for (var key in propsStyle) { 64551 if (!Object.prototype.hasOwnProperty.call(propsStyle, key)) { 64552 continue; 64553 } 64554 64555 var styleValue = propsStyle[key]; 64556 if (typeof styleValue === 'number') { 64557 newCurrentStyle[key] = styleValue; 64558 newCurrentVelocity[key] = 0; 64559 newLastIdealStyle[key] = styleValue; 64560 newLastIdealVelocity[key] = 0; 64561 } else { 64562 var newLastIdealStyleValue = _this.state.lastIdealStyle[key]; 64563 var newLastIdealVelocityValue = _this.state.lastIdealVelocity[key]; 64564 for (var i = 0; i < framesToCatchUp; i++) { 64565 var _stepper = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision); 64566 64567 newLastIdealStyleValue = _stepper[0]; 64568 newLastIdealVelocityValue = _stepper[1]; 64569 } 64570 64571 var _stepper2 = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision); 64572 64573 var nextIdealX = _stepper2[0]; 64574 var nextIdealV = _stepper2[1]; 64575 64576 newCurrentStyle[key] = newLastIdealStyleValue + (nextIdealX - newLastIdealStyleValue) * currentFrameCompletion; 64577 newCurrentVelocity[key] = newLastIdealVelocityValue + (nextIdealV - newLastIdealVelocityValue) * currentFrameCompletion; 64578 newLastIdealStyle[key] = newLastIdealStyleValue; 64579 newLastIdealVelocity[key] = newLastIdealVelocityValue; 64580 } 64581 } 64582 64583 _this.animationID = null; 64584 // the amount we're looped over above 64585 _this.accumulatedTime -= framesToCatchUp * msPerFrame; 64586 64587 _this.setState({ 64588 currentStyle: newCurrentStyle, 64589 currentVelocity: newCurrentVelocity, 64590 lastIdealStyle: newLastIdealStyle, 64591 lastIdealVelocity: newLastIdealVelocity 64592 }); 64593 64594 _this.unreadPropStyle = null; 64595 64596 _this.startAnimationIfNecessary(); 64597 }); 64598 }; 64599 64600 this.state = this.defaultState(); 64601 } 64602 64603 Motion.prototype.defaultState = function defaultState() { 64604 var _props = this.props; 64605 var defaultStyle = _props.defaultStyle; 64606 var style = _props.style; 64607 64608 var currentStyle = defaultStyle || _stripStyle2['default'](style); 64609 var currentVelocity = _mapToZero2['default'](currentStyle); 64610 return { 64611 currentStyle: currentStyle, 64612 currentVelocity: currentVelocity, 64613 lastIdealStyle: currentStyle, 64614 lastIdealVelocity: currentVelocity 64615 }; 64616 }; 64617 64618 // it's possible that currentStyle's value is stale: if props is immediately 64619 // changed from 0 to 400 to spring(0) again, the async currentStyle is still 64620 // at 0 (didn't have time to tick and interpolate even once). If we naively 64621 // compare currentStyle with destVal it'll be 0 === 0 (no animation, stop). 64622 // In reality currentStyle should be 400 64623 64624 Motion.prototype.componentDidMount = function componentDidMount() { 64625 this.prevTime = _performanceNow2['default'](); 64626 this.startAnimationIfNecessary(); 64627 }; 64628 64629 Motion.prototype.componentWillReceiveProps = function componentWillReceiveProps(props) { 64630 if (this.unreadPropStyle != null) { 64631 // previous props haven't had the chance to be set yet; set them here 64632 this.clearUnreadPropStyle(this.unreadPropStyle); 64633 } 64634 64635 this.unreadPropStyle = props.style; 64636 if (this.animationID == null) { 64637 this.prevTime = _performanceNow2['default'](); 64638 this.startAnimationIfNecessary(); 64639 } 64640 }; 64641 64642 Motion.prototype.componentWillUnmount = function componentWillUnmount() { 64643 if (this.animationID != null) { 64644 _raf2['default'].cancel(this.animationID); 64645 this.animationID = null; 64646 } 64647 }; 64648 64649 Motion.prototype.render = function render() { 64650 var renderedChildren = this.props.children(this.state.currentStyle); 64651 return renderedChildren && _react2['default'].Children.only(renderedChildren); 64652 }; 64653 64654 return Motion; 64655})(_react2['default'].Component); 64656 64657exports['default'] = Motion; 64658module.exports = exports['default']; 64659 64660// after checking for unreadPropStyle != null, we manually go set the 64661// non-interpolating values (those that are a number, without a spring 64662// config) 64663 64664/***/ }), 64665/* 608 */ 64666/***/ (function(module, exports, __webpack_require__) { 64667 64668/* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.12.2 64669(function() { 64670 var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime; 64671 64672 if ((typeof performance !== "undefined" && performance !== null) && performance.now) { 64673 module.exports = function() { 64674 return performance.now(); 64675 }; 64676 } else if ((typeof process !== "undefined" && process !== null) && process.hrtime) { 64677 module.exports = function() { 64678 return (getNanoSeconds() - nodeLoadTime) / 1e6; 64679 }; 64680 hrtime = process.hrtime; 64681 getNanoSeconds = function() { 64682 var hr; 64683 hr = hrtime(); 64684 return hr[0] * 1e9 + hr[1]; 64685 }; 64686 moduleLoadTime = getNanoSeconds(); 64687 upTime = process.uptime() * 1e9; 64688 nodeLoadTime = moduleLoadTime - upTime; 64689 } else if (Date.now) { 64690 module.exports = function() { 64691 return Date.now() - loadTime; 64692 }; 64693 loadTime = Date.now(); 64694 } else { 64695 module.exports = function() { 64696 return new Date().getTime() - loadTime; 64697 }; 64698 loadTime = new Date().getTime(); 64699 } 64700 64701}).call(this); 64702 64703//# sourceMappingURL=performance-now.js.map 64704 64705/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(41))) 64706 64707/***/ }), 64708/* 609 */ 64709/***/ (function(module, exports, __webpack_require__) { 64710 64711"use strict"; 64712 64713 64714exports.__esModule = true; 64715 64716var _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; }; 64717 64718var _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; }; })(); 64719 64720function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 64721 64722function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } 64723 64724function _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; } 64725 64726var _mapToZero = __webpack_require__(131); 64727 64728var _mapToZero2 = _interopRequireDefault(_mapToZero); 64729 64730var _stripStyle = __webpack_require__(89); 64731 64732var _stripStyle2 = _interopRequireDefault(_stripStyle); 64733 64734var _stepper3 = __webpack_require__(132); 64735 64736var _stepper4 = _interopRequireDefault(_stepper3); 64737 64738var _performanceNow = __webpack_require__(133); 64739 64740var _performanceNow2 = _interopRequireDefault(_performanceNow); 64741 64742var _raf = __webpack_require__(134); 64743 64744var _raf2 = _interopRequireDefault(_raf); 64745 64746var _shouldStopAnimation = __webpack_require__(135); 64747 64748var _shouldStopAnimation2 = _interopRequireDefault(_shouldStopAnimation); 64749 64750var _react = __webpack_require__(0); 64751 64752var _react2 = _interopRequireDefault(_react); 64753 64754var _propTypes = __webpack_require__(2); 64755 64756var _propTypes2 = _interopRequireDefault(_propTypes); 64757 64758var msPerFrame = 1000 / 60; 64759 64760function shouldStopAnimationAll(currentStyles, styles, currentVelocities) { 64761 for (var i = 0; i < currentStyles.length; i++) { 64762 if (!_shouldStopAnimation2['default'](currentStyles[i], styles[i], currentVelocities[i])) { 64763 return false; 64764 } 64765 } 64766 return true; 64767} 64768 64769var StaggeredMotion = (function (_React$Component) { 64770 _inherits(StaggeredMotion, _React$Component); 64771 64772 _createClass(StaggeredMotion, null, [{ 64773 key: 'propTypes', 64774 value: { 64775 // TOOD: warn against putting a config in here 64776 defaultStyles: _propTypes2['default'].arrayOf(_propTypes2['default'].objectOf(_propTypes2['default'].number)), 64777 styles: _propTypes2['default'].func.isRequired, 64778 children: _propTypes2['default'].func.isRequired 64779 }, 64780 enumerable: true 64781 }]); 64782 64783 function StaggeredMotion(props) { 64784 var _this = this; 64785 64786 _classCallCheck(this, StaggeredMotion); 64787 64788 _React$Component.call(this, props); 64789 this.animationID = null; 64790 this.prevTime = 0; 64791 this.accumulatedTime = 0; 64792 this.unreadPropStyles = null; 64793 64794 this.clearUnreadPropStyle = function (unreadPropStyles) { 64795 var _state = _this.state; 64796 var currentStyles = _state.currentStyles; 64797 var currentVelocities = _state.currentVelocities; 64798 var lastIdealStyles = _state.lastIdealStyles; 64799 var lastIdealVelocities = _state.lastIdealVelocities; 64800 64801 var someDirty = false; 64802 for (var i = 0; i < unreadPropStyles.length; i++) { 64803 var unreadPropStyle = unreadPropStyles[i]; 64804 var dirty = false; 64805 64806 for (var key in unreadPropStyle) { 64807 if (!Object.prototype.hasOwnProperty.call(unreadPropStyle, key)) { 64808 continue; 64809 } 64810 64811 var styleValue = unreadPropStyle[key]; 64812 if (typeof styleValue === 'number') { 64813 if (!dirty) { 64814 dirty = true; 64815 someDirty = true; 64816 currentStyles[i] = _extends({}, currentStyles[i]); 64817 currentVelocities[i] = _extends({}, currentVelocities[i]); 64818 lastIdealStyles[i] = _extends({}, lastIdealStyles[i]); 64819 lastIdealVelocities[i] = _extends({}, lastIdealVelocities[i]); 64820 } 64821 currentStyles[i][key] = styleValue; 64822 currentVelocities[i][key] = 0; 64823 lastIdealStyles[i][key] = styleValue; 64824 lastIdealVelocities[i][key] = 0; 64825 } 64826 } 64827 } 64828 64829 if (someDirty) { 64830 _this.setState({ currentStyles: currentStyles, currentVelocities: currentVelocities, lastIdealStyles: lastIdealStyles, lastIdealVelocities: lastIdealVelocities }); 64831 } 64832 }; 64833 64834 this.startAnimationIfNecessary = function () { 64835 // TODO: when config is {a: 10} and dest is {a: 10} do we raf once and 64836 // call cb? No, otherwise accidental parent rerender causes cb trigger 64837 _this.animationID = _raf2['default'](function (timestamp) { 64838 var destStyles = _this.props.styles(_this.state.lastIdealStyles); 64839 64840 // check if we need to animate in the first place 64841 if (shouldStopAnimationAll(_this.state.currentStyles, destStyles, _this.state.currentVelocities)) { 64842 // no need to cancel animationID here; shouldn't have any in flight 64843 _this.animationID = null; 64844 _this.accumulatedTime = 0; 64845 return; 64846 } 64847 64848 var currentTime = timestamp || _performanceNow2['default'](); 64849 var timeDelta = currentTime - _this.prevTime; 64850 _this.prevTime = currentTime; 64851 _this.accumulatedTime = _this.accumulatedTime + timeDelta; 64852 // more than 10 frames? prolly switched browser tab. Restart 64853 if (_this.accumulatedTime > msPerFrame * 10) { 64854 _this.accumulatedTime = 0; 64855 } 64856 64857 if (_this.accumulatedTime === 0) { 64858 // no need to cancel animationID here; shouldn't have any in flight 64859 _this.animationID = null; 64860 _this.startAnimationIfNecessary(); 64861 return; 64862 } 64863 64864 var currentFrameCompletion = (_this.accumulatedTime - Math.floor(_this.accumulatedTime / msPerFrame) * msPerFrame) / msPerFrame; 64865 var framesToCatchUp = Math.floor(_this.accumulatedTime / msPerFrame); 64866 64867 var newLastIdealStyles = []; 64868 var newLastIdealVelocities = []; 64869 var newCurrentStyles = []; 64870 var newCurrentVelocities = []; 64871 64872 for (var i = 0; i < destStyles.length; i++) { 64873 var destStyle = destStyles[i]; 64874 var newCurrentStyle = {}; 64875 var newCurrentVelocity = {}; 64876 var newLastIdealStyle = {}; 64877 var newLastIdealVelocity = {}; 64878 64879 for (var key in destStyle) { 64880 if (!Object.prototype.hasOwnProperty.call(destStyle, key)) { 64881 continue; 64882 } 64883 64884 var styleValue = destStyle[key]; 64885 if (typeof styleValue === 'number') { 64886 newCurrentStyle[key] = styleValue; 64887 newCurrentVelocity[key] = 0; 64888 newLastIdealStyle[key] = styleValue; 64889 newLastIdealVelocity[key] = 0; 64890 } else { 64891 var newLastIdealStyleValue = _this.state.lastIdealStyles[i][key]; 64892 var newLastIdealVelocityValue = _this.state.lastIdealVelocities[i][key]; 64893 for (var j = 0; j < framesToCatchUp; j++) { 64894 var _stepper = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision); 64895 64896 newLastIdealStyleValue = _stepper[0]; 64897 newLastIdealVelocityValue = _stepper[1]; 64898 } 64899 64900 var _stepper2 = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision); 64901 64902 var nextIdealX = _stepper2[0]; 64903 var nextIdealV = _stepper2[1]; 64904 64905 newCurrentStyle[key] = newLastIdealStyleValue + (nextIdealX - newLastIdealStyleValue) * currentFrameCompletion; 64906 newCurrentVelocity[key] = newLastIdealVelocityValue + (nextIdealV - newLastIdealVelocityValue) * currentFrameCompletion; 64907 newLastIdealStyle[key] = newLastIdealStyleValue; 64908 newLastIdealVelocity[key] = newLastIdealVelocityValue; 64909 } 64910 } 64911 64912 newCurrentStyles[i] = newCurrentStyle; 64913 newCurrentVelocities[i] = newCurrentVelocity; 64914 newLastIdealStyles[i] = newLastIdealStyle; 64915 newLastIdealVelocities[i] = newLastIdealVelocity; 64916 } 64917 64918 _this.animationID = null; 64919 // the amount we're looped over above 64920 _this.accumulatedTime -= framesToCatchUp * msPerFrame; 64921 64922 _this.setState({ 64923 currentStyles: newCurrentStyles, 64924 currentVelocities: newCurrentVelocities, 64925 lastIdealStyles: newLastIdealStyles, 64926 lastIdealVelocities: newLastIdealVelocities 64927 }); 64928 64929 _this.unreadPropStyles = null; 64930 64931 _this.startAnimationIfNecessary(); 64932 }); 64933 }; 64934 64935 this.state = this.defaultState(); 64936 } 64937 64938 StaggeredMotion.prototype.defaultState = function defaultState() { 64939 var _props = this.props; 64940 var defaultStyles = _props.defaultStyles; 64941 var styles = _props.styles; 64942 64943 var currentStyles = defaultStyles || styles().map(_stripStyle2['default']); 64944 var currentVelocities = currentStyles.map(function (currentStyle) { 64945 return _mapToZero2['default'](currentStyle); 64946 }); 64947 return { 64948 currentStyles: currentStyles, 64949 currentVelocities: currentVelocities, 64950 lastIdealStyles: currentStyles, 64951 lastIdealVelocities: currentVelocities 64952 }; 64953 }; 64954 64955 StaggeredMotion.prototype.componentDidMount = function componentDidMount() { 64956 this.prevTime = _performanceNow2['default'](); 64957 this.startAnimationIfNecessary(); 64958 }; 64959 64960 StaggeredMotion.prototype.componentWillReceiveProps = function componentWillReceiveProps(props) { 64961 if (this.unreadPropStyles != null) { 64962 // previous props haven't had the chance to be set yet; set them here 64963 this.clearUnreadPropStyle(this.unreadPropStyles); 64964 } 64965 64966 this.unreadPropStyles = props.styles(this.state.lastIdealStyles); 64967 if (this.animationID == null) { 64968 this.prevTime = _performanceNow2['default'](); 64969 this.startAnimationIfNecessary(); 64970 } 64971 }; 64972 64973 StaggeredMotion.prototype.componentWillUnmount = function componentWillUnmount() { 64974 if (this.animationID != null) { 64975 _raf2['default'].cancel(this.animationID); 64976 this.animationID = null; 64977 } 64978 }; 64979 64980 StaggeredMotion.prototype.render = function render() { 64981 var renderedChildren = this.props.children(this.state.currentStyles); 64982 return renderedChildren && _react2['default'].Children.only(renderedChildren); 64983 }; 64984 64985 return StaggeredMotion; 64986})(_react2['default'].Component); 64987 64988exports['default'] = StaggeredMotion; 64989module.exports = exports['default']; 64990 64991// it's possible that currentStyle's value is stale: if props is immediately 64992// changed from 0 to 400 to spring(0) again, the async currentStyle is still 64993// at 0 (didn't have time to tick and interpolate even once). If we naively 64994// compare currentStyle with destVal it'll be 0 === 0 (no animation, stop). 64995// In reality currentStyle should be 400 64996 64997// after checking for unreadPropStyles != null, we manually go set the 64998// non-interpolating values (those that are a number, without a spring 64999// config) 65000 65001/***/ }), 65002/* 610 */ 65003/***/ (function(module, exports, __webpack_require__) { 65004 65005"use strict"; 65006 65007 65008exports.__esModule = true; 65009 65010var _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; }; 65011 65012var _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; }; })(); 65013 65014function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 65015 65016function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } 65017 65018function _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; } 65019 65020var _mapToZero = __webpack_require__(131); 65021 65022var _mapToZero2 = _interopRequireDefault(_mapToZero); 65023 65024var _stripStyle = __webpack_require__(89); 65025 65026var _stripStyle2 = _interopRequireDefault(_stripStyle); 65027 65028var _stepper3 = __webpack_require__(132); 65029 65030var _stepper4 = _interopRequireDefault(_stepper3); 65031 65032var _mergeDiff = __webpack_require__(611); 65033 65034var _mergeDiff2 = _interopRequireDefault(_mergeDiff); 65035 65036var _performanceNow = __webpack_require__(133); 65037 65038var _performanceNow2 = _interopRequireDefault(_performanceNow); 65039 65040var _raf = __webpack_require__(134); 65041 65042var _raf2 = _interopRequireDefault(_raf); 65043 65044var _shouldStopAnimation = __webpack_require__(135); 65045 65046var _shouldStopAnimation2 = _interopRequireDefault(_shouldStopAnimation); 65047 65048var _react = __webpack_require__(0); 65049 65050var _react2 = _interopRequireDefault(_react); 65051 65052var _propTypes = __webpack_require__(2); 65053 65054var _propTypes2 = _interopRequireDefault(_propTypes); 65055 65056var msPerFrame = 1000 / 60; 65057 65058// the children function & (potential) styles function asks as param an 65059// Array<TransitionPlainStyle>, where each TransitionPlainStyle is of the format 65060// {key: string, data?: any, style: PlainStyle}. However, the way we keep 65061// internal states doesn't contain such a data structure (check the state and 65062// TransitionMotionState). So when children function and others ask for such 65063// data we need to generate them on the fly by combining mergedPropsStyles and 65064// currentStyles/lastIdealStyles 65065function rehydrateStyles(mergedPropsStyles, unreadPropStyles, plainStyles) { 65066 // Copy the value to a `const` so that Flow understands that the const won't 65067 // change and will be non-nullable in the callback below. 65068 var cUnreadPropStyles = unreadPropStyles; 65069 if (cUnreadPropStyles == null) { 65070 return mergedPropsStyles.map(function (mergedPropsStyle, i) { 65071 return { 65072 key: mergedPropsStyle.key, 65073 data: mergedPropsStyle.data, 65074 style: plainStyles[i] 65075 }; 65076 }); 65077 } 65078 return mergedPropsStyles.map(function (mergedPropsStyle, i) { 65079 for (var j = 0; j < cUnreadPropStyles.length; j++) { 65080 if (cUnreadPropStyles[j].key === mergedPropsStyle.key) { 65081 return { 65082 key: cUnreadPropStyles[j].key, 65083 data: cUnreadPropStyles[j].data, 65084 style: plainStyles[i] 65085 }; 65086 } 65087 } 65088 return { key: mergedPropsStyle.key, data: mergedPropsStyle.data, style: plainStyles[i] }; 65089 }); 65090} 65091 65092function shouldStopAnimationAll(currentStyles, destStyles, currentVelocities, mergedPropsStyles) { 65093 if (mergedPropsStyles.length !== destStyles.length) { 65094 return false; 65095 } 65096 65097 for (var i = 0; i < mergedPropsStyles.length; i++) { 65098 if (mergedPropsStyles[i].key !== destStyles[i].key) { 65099 return false; 65100 } 65101 } 65102 65103 // we have the invariant that mergedPropsStyles and 65104 // currentStyles/currentVelocities/last* are synced in terms of cells, see 65105 // mergeAndSync comment for more info 65106 for (var i = 0; i < mergedPropsStyles.length; i++) { 65107 if (!_shouldStopAnimation2['default'](currentStyles[i], destStyles[i].style, currentVelocities[i])) { 65108 return false; 65109 } 65110 } 65111 65112 return true; 65113} 65114 65115// core key merging logic 65116 65117// things to do: say previously merged style is {a, b}, dest style (prop) is {b, 65118// c}, previous current (interpolating) style is {a, b} 65119// **invariant**: current[i] corresponds to merged[i] in terms of key 65120 65121// steps: 65122// turn merged style into {a?, b, c} 65123// add c, value of c is destStyles.c 65124// maybe remove a, aka call willLeave(a), then merged is either {b, c} or {a, b, c} 65125// turn current (interpolating) style from {a, b} into {a?, b, c} 65126// maybe remove a 65127// certainly add c, value of c is willEnter(c) 65128// loop over merged and construct new current 65129// dest doesn't change, that's owner's 65130function mergeAndSync(willEnter, willLeave, didLeave, oldMergedPropsStyles, destStyles, oldCurrentStyles, oldCurrentVelocities, oldLastIdealStyles, oldLastIdealVelocities) { 65131 var newMergedPropsStyles = _mergeDiff2['default'](oldMergedPropsStyles, destStyles, function (oldIndex, oldMergedPropsStyle) { 65132 var leavingStyle = willLeave(oldMergedPropsStyle); 65133 if (leavingStyle == null) { 65134 didLeave({ key: oldMergedPropsStyle.key, data: oldMergedPropsStyle.data }); 65135 return null; 65136 } 65137 if (_shouldStopAnimation2['default'](oldCurrentStyles[oldIndex], leavingStyle, oldCurrentVelocities[oldIndex])) { 65138 didLeave({ key: oldMergedPropsStyle.key, data: oldMergedPropsStyle.data }); 65139 return null; 65140 } 65141 return { key: oldMergedPropsStyle.key, data: oldMergedPropsStyle.data, style: leavingStyle }; 65142 }); 65143 65144 var newCurrentStyles = []; 65145 var newCurrentVelocities = []; 65146 var newLastIdealStyles = []; 65147 var newLastIdealVelocities = []; 65148 for (var i = 0; i < newMergedPropsStyles.length; i++) { 65149 var newMergedPropsStyleCell = newMergedPropsStyles[i]; 65150 var foundOldIndex = null; 65151 for (var j = 0; j < oldMergedPropsStyles.length; j++) { 65152 if (oldMergedPropsStyles[j].key === newMergedPropsStyleCell.key) { 65153 foundOldIndex = j; 65154 break; 65155 } 65156 } 65157 // TODO: key search code 65158 if (foundOldIndex == null) { 65159 var plainStyle = willEnter(newMergedPropsStyleCell); 65160 newCurrentStyles[i] = plainStyle; 65161 newLastIdealStyles[i] = plainStyle; 65162 65163 var velocity = _mapToZero2['default'](newMergedPropsStyleCell.style); 65164 newCurrentVelocities[i] = velocity; 65165 newLastIdealVelocities[i] = velocity; 65166 } else { 65167 newCurrentStyles[i] = oldCurrentStyles[foundOldIndex]; 65168 newLastIdealStyles[i] = oldLastIdealStyles[foundOldIndex]; 65169 newCurrentVelocities[i] = oldCurrentVelocities[foundOldIndex]; 65170 newLastIdealVelocities[i] = oldLastIdealVelocities[foundOldIndex]; 65171 } 65172 } 65173 65174 return [newMergedPropsStyles, newCurrentStyles, newCurrentVelocities, newLastIdealStyles, newLastIdealVelocities]; 65175} 65176 65177var TransitionMotion = (function (_React$Component) { 65178 _inherits(TransitionMotion, _React$Component); 65179 65180 _createClass(TransitionMotion, null, [{ 65181 key: 'propTypes', 65182 value: { 65183 defaultStyles: _propTypes2['default'].arrayOf(_propTypes2['default'].shape({ 65184 key: _propTypes2['default'].string.isRequired, 65185 data: _propTypes2['default'].any, 65186 style: _propTypes2['default'].objectOf(_propTypes2['default'].number).isRequired 65187 })), 65188 styles: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].arrayOf(_propTypes2['default'].shape({ 65189 key: _propTypes2['default'].string.isRequired, 65190 data: _propTypes2['default'].any, 65191 style: _propTypes2['default'].objectOf(_propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].object])).isRequired 65192 }))]).isRequired, 65193 children: _propTypes2['default'].func.isRequired, 65194 willEnter: _propTypes2['default'].func, 65195 willLeave: _propTypes2['default'].func, 65196 didLeave: _propTypes2['default'].func 65197 }, 65198 enumerable: true 65199 }, { 65200 key: 'defaultProps', 65201 value: { 65202 willEnter: function willEnter(styleThatEntered) { 65203 return _stripStyle2['default'](styleThatEntered.style); 65204 }, 65205 // recall: returning null makes the current unmounting TransitionStyle 65206 // disappear immediately 65207 willLeave: function willLeave() { 65208 return null; 65209 }, 65210 didLeave: function didLeave() {} 65211 }, 65212 enumerable: true 65213 }]); 65214 65215 function TransitionMotion(props) { 65216 var _this = this; 65217 65218 _classCallCheck(this, TransitionMotion); 65219 65220 _React$Component.call(this, props); 65221 this.unmounting = false; 65222 this.animationID = null; 65223 this.prevTime = 0; 65224 this.accumulatedTime = 0; 65225 this.unreadPropStyles = null; 65226 65227 this.clearUnreadPropStyle = function (unreadPropStyles) { 65228 var _mergeAndSync = mergeAndSync(_this.props.willEnter, _this.props.willLeave, _this.props.didLeave, _this.state.mergedPropsStyles, unreadPropStyles, _this.state.currentStyles, _this.state.currentVelocities, _this.state.lastIdealStyles, _this.state.lastIdealVelocities); 65229 65230 var mergedPropsStyles = _mergeAndSync[0]; 65231 var currentStyles = _mergeAndSync[1]; 65232 var currentVelocities = _mergeAndSync[2]; 65233 var lastIdealStyles = _mergeAndSync[3]; 65234 var lastIdealVelocities = _mergeAndSync[4]; 65235 65236 for (var i = 0; i < unreadPropStyles.length; i++) { 65237 var unreadPropStyle = unreadPropStyles[i].style; 65238 var dirty = false; 65239 65240 for (var key in unreadPropStyle) { 65241 if (!Object.prototype.hasOwnProperty.call(unreadPropStyle, key)) { 65242 continue; 65243 } 65244 65245 var styleValue = unreadPropStyle[key]; 65246 if (typeof styleValue === 'number') { 65247 if (!dirty) { 65248 dirty = true; 65249 currentStyles[i] = _extends({}, currentStyles[i]); 65250 currentVelocities[i] = _extends({}, currentVelocities[i]); 65251 lastIdealStyles[i] = _extends({}, lastIdealStyles[i]); 65252 lastIdealVelocities[i] = _extends({}, lastIdealVelocities[i]); 65253 mergedPropsStyles[i] = { 65254 key: mergedPropsStyles[i].key, 65255 data: mergedPropsStyles[i].data, 65256 style: _extends({}, mergedPropsStyles[i].style) 65257 }; 65258 } 65259 currentStyles[i][key] = styleValue; 65260 currentVelocities[i][key] = 0; 65261 lastIdealStyles[i][key] = styleValue; 65262 lastIdealVelocities[i][key] = 0; 65263 mergedPropsStyles[i].style[key] = styleValue; 65264 } 65265 } 65266 } 65267 65268 // unlike the other 2 components, we can't detect staleness and optionally 65269 // opt out of setState here. each style object's data might contain new 65270 // stuff we're not/cannot compare 65271 _this.setState({ 65272 currentStyles: currentStyles, 65273 currentVelocities: currentVelocities, 65274 mergedPropsStyles: mergedPropsStyles, 65275 lastIdealStyles: lastIdealStyles, 65276 lastIdealVelocities: lastIdealVelocities 65277 }); 65278 }; 65279 65280 this.startAnimationIfNecessary = function () { 65281 if (_this.unmounting) { 65282 return; 65283 } 65284 65285 // TODO: when config is {a: 10} and dest is {a: 10} do we raf once and 65286 // call cb? No, otherwise accidental parent rerender causes cb trigger 65287 _this.animationID = _raf2['default'](function (timestamp) { 65288 // https://github.com/chenglou/react-motion/pull/420 65289 // > if execution passes the conditional if (this.unmounting), then 65290 // executes async defaultRaf and after that component unmounts and after 65291 // that the callback of defaultRaf is called, then setState will be called 65292 // on unmounted component. 65293 if (_this.unmounting) { 65294 return; 65295 } 65296 65297 var propStyles = _this.props.styles; 65298 var destStyles = typeof propStyles === 'function' ? propStyles(rehydrateStyles(_this.state.mergedPropsStyles, _this.unreadPropStyles, _this.state.lastIdealStyles)) : propStyles; 65299 65300 // check if we need to animate in the first place 65301 if (shouldStopAnimationAll(_this.state.currentStyles, destStyles, _this.state.currentVelocities, _this.state.mergedPropsStyles)) { 65302 // no need to cancel animationID here; shouldn't have any in flight 65303 _this.animationID = null; 65304 _this.accumulatedTime = 0; 65305 return; 65306 } 65307 65308 var currentTime = timestamp || _performanceNow2['default'](); 65309 var timeDelta = currentTime - _this.prevTime; 65310 _this.prevTime = currentTime; 65311 _this.accumulatedTime = _this.accumulatedTime + timeDelta; 65312 // more than 10 frames? prolly switched browser tab. Restart 65313 if (_this.accumulatedTime > msPerFrame * 10) { 65314 _this.accumulatedTime = 0; 65315 } 65316 65317 if (_this.accumulatedTime === 0) { 65318 // no need to cancel animationID here; shouldn't have any in flight 65319 _this.animationID = null; 65320 _this.startAnimationIfNecessary(); 65321 return; 65322 } 65323 65324 var currentFrameCompletion = (_this.accumulatedTime - Math.floor(_this.accumulatedTime / msPerFrame) * msPerFrame) / msPerFrame; 65325 var framesToCatchUp = Math.floor(_this.accumulatedTime / msPerFrame); 65326 65327 var _mergeAndSync2 = mergeAndSync(_this.props.willEnter, _this.props.willLeave, _this.props.didLeave, _this.state.mergedPropsStyles, destStyles, _this.state.currentStyles, _this.state.currentVelocities, _this.state.lastIdealStyles, _this.state.lastIdealVelocities); 65328 65329 var newMergedPropsStyles = _mergeAndSync2[0]; 65330 var newCurrentStyles = _mergeAndSync2[1]; 65331 var newCurrentVelocities = _mergeAndSync2[2]; 65332 var newLastIdealStyles = _mergeAndSync2[3]; 65333 var newLastIdealVelocities = _mergeAndSync2[4]; 65334 65335 for (var i = 0; i < newMergedPropsStyles.length; i++) { 65336 var newMergedPropsStyle = newMergedPropsStyles[i].style; 65337 var newCurrentStyle = {}; 65338 var newCurrentVelocity = {}; 65339 var newLastIdealStyle = {}; 65340 var newLastIdealVelocity = {}; 65341 65342 for (var key in newMergedPropsStyle) { 65343 if (!Object.prototype.hasOwnProperty.call(newMergedPropsStyle, key)) { 65344 continue; 65345 } 65346 65347 var styleValue = newMergedPropsStyle[key]; 65348 if (typeof styleValue === 'number') { 65349 newCurrentStyle[key] = styleValue; 65350 newCurrentVelocity[key] = 0; 65351 newLastIdealStyle[key] = styleValue; 65352 newLastIdealVelocity[key] = 0; 65353 } else { 65354 var newLastIdealStyleValue = newLastIdealStyles[i][key]; 65355 var newLastIdealVelocityValue = newLastIdealVelocities[i][key]; 65356 for (var j = 0; j < framesToCatchUp; j++) { 65357 var _stepper = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision); 65358 65359 newLastIdealStyleValue = _stepper[0]; 65360 newLastIdealVelocityValue = _stepper[1]; 65361 } 65362 65363 var _stepper2 = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision); 65364 65365 var nextIdealX = _stepper2[0]; 65366 var nextIdealV = _stepper2[1]; 65367 65368 newCurrentStyle[key] = newLastIdealStyleValue + (nextIdealX - newLastIdealStyleValue) * currentFrameCompletion; 65369 newCurrentVelocity[key] = newLastIdealVelocityValue + (nextIdealV - newLastIdealVelocityValue) * currentFrameCompletion; 65370 newLastIdealStyle[key] = newLastIdealStyleValue; 65371 newLastIdealVelocity[key] = newLastIdealVelocityValue; 65372 } 65373 } 65374 65375 newLastIdealStyles[i] = newLastIdealStyle; 65376 newLastIdealVelocities[i] = newLastIdealVelocity; 65377 newCurrentStyles[i] = newCurrentStyle; 65378 newCurrentVelocities[i] = newCurrentVelocity; 65379 } 65380 65381 _this.animationID = null; 65382 // the amount we're looped over above 65383 _this.accumulatedTime -= framesToCatchUp * msPerFrame; 65384 65385 _this.setState({ 65386 currentStyles: newCurrentStyles, 65387 currentVelocities: newCurrentVelocities, 65388 lastIdealStyles: newLastIdealStyles, 65389 lastIdealVelocities: newLastIdealVelocities, 65390 mergedPropsStyles: newMergedPropsStyles 65391 }); 65392 65393 _this.unreadPropStyles = null; 65394 65395 _this.startAnimationIfNecessary(); 65396 }); 65397 }; 65398 65399 this.state = this.defaultState(); 65400 } 65401 65402 TransitionMotion.prototype.defaultState = function defaultState() { 65403 var _props = this.props; 65404 var defaultStyles = _props.defaultStyles; 65405 var styles = _props.styles; 65406 var willEnter = _props.willEnter; 65407 var willLeave = _props.willLeave; 65408 var didLeave = _props.didLeave; 65409 65410 var destStyles = typeof styles === 'function' ? styles(defaultStyles) : styles; 65411 65412 // this is special. for the first time around, we don't have a comparison 65413 // between last (no last) and current merged props. we'll compute last so: 65414 // say default is {a, b} and styles (dest style) is {b, c}, we'll 65415 // fabricate last as {a, b} 65416 var oldMergedPropsStyles = undefined; 65417 if (defaultStyles == null) { 65418 oldMergedPropsStyles = destStyles; 65419 } else { 65420 oldMergedPropsStyles = defaultStyles.map(function (defaultStyleCell) { 65421 // TODO: key search code 65422 for (var i = 0; i < destStyles.length; i++) { 65423 if (destStyles[i].key === defaultStyleCell.key) { 65424 return destStyles[i]; 65425 } 65426 } 65427 return defaultStyleCell; 65428 }); 65429 } 65430 var oldCurrentStyles = defaultStyles == null ? destStyles.map(function (s) { 65431 return _stripStyle2['default'](s.style); 65432 }) : defaultStyles.map(function (s) { 65433 return _stripStyle2['default'](s.style); 65434 }); 65435 var oldCurrentVelocities = defaultStyles == null ? destStyles.map(function (s) { 65436 return _mapToZero2['default'](s.style); 65437 }) : defaultStyles.map(function (s) { 65438 return _mapToZero2['default'](s.style); 65439 }); 65440 65441 var _mergeAndSync3 = mergeAndSync( 65442 // Because this is an old-style createReactClass component, Flow doesn't 65443 // understand that the willEnter and willLeave props have default values 65444 // and will always be present. 65445 willEnter, willLeave, didLeave, oldMergedPropsStyles, destStyles, oldCurrentStyles, oldCurrentVelocities, oldCurrentStyles, // oldLastIdealStyles really 65446 oldCurrentVelocities); 65447 65448 var mergedPropsStyles = _mergeAndSync3[0]; 65449 var currentStyles = _mergeAndSync3[1]; 65450 var currentVelocities = _mergeAndSync3[2]; 65451 var lastIdealStyles = _mergeAndSync3[3]; 65452 var lastIdealVelocities = _mergeAndSync3[4]; 65453 // oldLastIdealVelocities really 65454 65455 return { 65456 currentStyles: currentStyles, 65457 currentVelocities: currentVelocities, 65458 lastIdealStyles: lastIdealStyles, 65459 lastIdealVelocities: lastIdealVelocities, 65460 mergedPropsStyles: mergedPropsStyles 65461 }; 65462 }; 65463 65464 // after checking for unreadPropStyles != null, we manually go set the 65465 // non-interpolating values (those that are a number, without a spring 65466 // config) 65467 65468 TransitionMotion.prototype.componentDidMount = function componentDidMount() { 65469 this.prevTime = _performanceNow2['default'](); 65470 this.startAnimationIfNecessary(); 65471 }; 65472 65473 TransitionMotion.prototype.componentWillReceiveProps = function componentWillReceiveProps(props) { 65474 if (this.unreadPropStyles) { 65475 // previous props haven't had the chance to be set yet; set them here 65476 this.clearUnreadPropStyle(this.unreadPropStyles); 65477 } 65478 65479 var styles = props.styles; 65480 if (typeof styles === 'function') { 65481 this.unreadPropStyles = styles(rehydrateStyles(this.state.mergedPropsStyles, this.unreadPropStyles, this.state.lastIdealStyles)); 65482 } else { 65483 this.unreadPropStyles = styles; 65484 } 65485 65486 if (this.animationID == null) { 65487 this.prevTime = _performanceNow2['default'](); 65488 this.startAnimationIfNecessary(); 65489 } 65490 }; 65491 65492 TransitionMotion.prototype.componentWillUnmount = function componentWillUnmount() { 65493 this.unmounting = true; 65494 if (this.animationID != null) { 65495 _raf2['default'].cancel(this.animationID); 65496 this.animationID = null; 65497 } 65498 }; 65499 65500 TransitionMotion.prototype.render = function render() { 65501 var hydratedStyles = rehydrateStyles(this.state.mergedPropsStyles, this.unreadPropStyles, this.state.currentStyles); 65502 var renderedChildren = this.props.children(hydratedStyles); 65503 return renderedChildren && _react2['default'].Children.only(renderedChildren); 65504 }; 65505 65506 return TransitionMotion; 65507})(_react2['default'].Component); 65508 65509exports['default'] = TransitionMotion; 65510module.exports = exports['default']; 65511 65512// list of styles, each containing interpolating values. Part of what's passed 65513// to children function. Notice that this is 65514// Array<ActualInterpolatingStyleObject>, without the wrapper that is {key: ..., 65515// data: ... style: ActualInterpolatingStyleObject}. Only mergedPropsStyles 65516// contains the key & data info (so that we only have a single source of truth 65517// for these, and to save space). Check the comment for `rehydrateStyles` to 65518// see how we regenerate the entirety of what's passed to children function 65519 65520// the array that keeps track of currently rendered stuff! Including stuff 65521// that you've unmounted but that's still animating. This is where it lives 65522 65523// it's possible that currentStyle's value is stale: if props is immediately 65524// changed from 0 to 400 to spring(0) again, the async currentStyle is still 65525// at 0 (didn't have time to tick and interpolate even once). If we naively 65526// compare currentStyle with destVal it'll be 0 === 0 (no animation, stop). 65527// In reality currentStyle should be 400 65528 65529/***/ }), 65530/* 611 */ 65531/***/ (function(module, exports, __webpack_require__) { 65532 65533"use strict"; 65534 65535 65536// core keys merging algorithm. If previous render's keys are [a, b], and the 65537// next render's [c, b, d], what's the final merged keys and ordering? 65538 65539// - c and a must both be before b 65540// - b before d 65541// - ordering between a and c ambiguous 65542 65543// this reduces to merging two partially ordered lists (e.g. lists where not 65544// every item has a definite ordering, like comparing a and c above). For the 65545// ambiguous ordering we deterministically choose to place the next render's 65546// item after the previous'; so c after a 65547 65548// this is called a topological sorting. Except the existing algorithms don't 65549// work well with js bc of the amount of allocation, and isn't optimized for our 65550// current use-case bc the runtime is linear in terms of edges (see wiki for 65551// meaning), which is huge when two lists have many common elements 65552 65553 65554exports.__esModule = true; 65555exports['default'] = mergeDiff; 65556 65557function mergeDiff(prev, next, onRemove) { 65558 // bookkeeping for easier access of a key's index below. This is 2 allocations + 65559 // potentially triggering chrome hash map mode for objs (so it might be faster 65560 65561 var prevKeyIndex = {}; 65562 for (var i = 0; i < prev.length; i++) { 65563 prevKeyIndex[prev[i].key] = i; 65564 } 65565 var nextKeyIndex = {}; 65566 for (var i = 0; i < next.length; i++) { 65567 nextKeyIndex[next[i].key] = i; 65568 } 65569 65570 // first, an overly elaborate way of merging prev and next, eliminating 65571 // duplicates (in terms of keys). If there's dupe, keep the item in next). 65572 // This way of writing it saves allocations 65573 var ret = []; 65574 for (var i = 0; i < next.length; i++) { 65575 ret[i] = next[i]; 65576 } 65577 for (var i = 0; i < prev.length; i++) { 65578 if (!Object.prototype.hasOwnProperty.call(nextKeyIndex, prev[i].key)) { 65579 // this is called my TM's `mergeAndSync`, which calls willLeave. We don't 65580 // merge in keys that the user desires to kill 65581 var fill = onRemove(i, prev[i]); 65582 if (fill != null) { 65583 ret.push(fill); 65584 } 65585 } 65586 } 65587 65588 // now all the items all present. Core sorting logic to have the right order 65589 return ret.sort(function (a, b) { 65590 var nextOrderA = nextKeyIndex[a.key]; 65591 var nextOrderB = nextKeyIndex[b.key]; 65592 var prevOrderA = prevKeyIndex[a.key]; 65593 var prevOrderB = prevKeyIndex[b.key]; 65594 65595 if (nextOrderA != null && nextOrderB != null) { 65596 // both keys in next 65597 return nextKeyIndex[a.key] - nextKeyIndex[b.key]; 65598 } else if (prevOrderA != null && prevOrderB != null) { 65599 // both keys in prev 65600 return prevKeyIndex[a.key] - prevKeyIndex[b.key]; 65601 } else if (nextOrderA != null) { 65602 // key a in next, key b in prev 65603 65604 // how to determine the order between a and b? We find a "pivot" (term 65605 // abuse), a key present in both prev and next, that is sandwiched between 65606 // a and b. In the context of our above example, if we're comparing a and 65607 // d, b's (the only) pivot 65608 for (var i = 0; i < next.length; i++) { 65609 var pivot = next[i].key; 65610 if (!Object.prototype.hasOwnProperty.call(prevKeyIndex, pivot)) { 65611 continue; 65612 } 65613 65614 if (nextOrderA < nextKeyIndex[pivot] && prevOrderB > prevKeyIndex[pivot]) { 65615 return -1; 65616 } else if (nextOrderA > nextKeyIndex[pivot] && prevOrderB < prevKeyIndex[pivot]) { 65617 return 1; 65618 } 65619 } 65620 // pluggable. default to: next bigger than prev 65621 return 1; 65622 } 65623 // prevOrderA, nextOrderB 65624 for (var i = 0; i < next.length; i++) { 65625 var pivot = next[i].key; 65626 if (!Object.prototype.hasOwnProperty.call(prevKeyIndex, pivot)) { 65627 continue; 65628 } 65629 if (nextOrderB < nextKeyIndex[pivot] && prevOrderA > prevKeyIndex[pivot]) { 65630 return 1; 65631 } else if (nextOrderB > nextKeyIndex[pivot] && prevOrderA < prevKeyIndex[pivot]) { 65632 return -1; 65633 } 65634 } 65635 // pluggable. default to: next bigger than prev 65636 return -1; 65637 }); 65638} 65639 65640module.exports = exports['default']; 65641// to loop through and find a key's index each time), but I no longer care 65642 65643/***/ }), 65644/* 612 */ 65645/***/ (function(module, exports, __webpack_require__) { 65646 65647"use strict"; 65648 65649 65650exports.__esModule = true; 65651 65652var _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; }; 65653 65654exports['default'] = spring; 65655 65656function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 65657 65658var _presets = __webpack_require__(353); 65659 65660var _presets2 = _interopRequireDefault(_presets); 65661 65662var defaultConfig = _extends({}, _presets2['default'].noWobble, { 65663 precision: 0.01 65664}); 65665 65666function spring(val, config) { 65667 return _extends({}, defaultConfig, config, { val: val }); 65668} 65669 65670module.exports = exports['default']; 65671 65672/***/ }), 65673/* 613 */ 65674/***/ (function(module, exports, __webpack_require__) { 65675 65676"use strict"; 65677 65678 65679exports.__esModule = true; 65680exports['default'] = reorderKeys; 65681 65682var hasWarned = false; 65683 65684function reorderKeys() { 65685 if (false) { 65686 if (!hasWarned) { 65687 hasWarned = true; 65688 console.error('`reorderKeys` has been removed, since it is no longer needed for TransitionMotion\'s new styles array API.'); 65689 } 65690 } 65691} 65692 65693module.exports = exports['default']; 65694 65695/***/ }), 65696/* 614 */, 65697/* 615 */, 65698/* 616 */, 65699/* 617 */, 65700/* 618 */ 65701/***/ (function(module, exports, __webpack_require__) { 65702 65703"use strict"; 65704 65705 65706Object.defineProperty(exports, "__esModule", { 65707 value: true 65708}); 65709exports.bodyOpenClassName = exports.portalClassName = undefined; 65710 65711var _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; }; 65712 65713var _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; }; }(); 65714 65715var _react = __webpack_require__(0); 65716 65717var _react2 = _interopRequireDefault(_react); 65718 65719var _reactDom = __webpack_require__(17); 65720 65721var _reactDom2 = _interopRequireDefault(_reactDom); 65722 65723var _propTypes = __webpack_require__(2); 65724 65725var _propTypes2 = _interopRequireDefault(_propTypes); 65726 65727var _ModalPortal = __webpack_require__(619); 65728 65729var _ModalPortal2 = _interopRequireDefault(_ModalPortal); 65730 65731var _ariaAppHider = __webpack_require__(355); 65732 65733var ariaAppHider = _interopRequireWildcard(_ariaAppHider); 65734 65735var _safeHTMLElement = __webpack_require__(357); 65736 65737var _safeHTMLElement2 = _interopRequireDefault(_safeHTMLElement); 65738 65739function _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; } } 65740 65741function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 65742 65743function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 65744 65745function _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; } 65746 65747function _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, { c
vendor: 19,831 bytes, lines 65747-66336
65747onstructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } 65748 65749var portalClassName = exports.portalClassName = 'ReactModalPortal'; 65750var bodyOpenClassName = exports.bodyOpenClassName = 'ReactModal__Body--open'; 65751 65752var renderSubtreeIntoContainer = _reactDom2.default.unstable_renderSubtreeIntoContainer; 65753 65754function getParentElement(parentSelector) { 65755 return parentSelector(); 65756} 65757 65758var Modal = function (_Component) { 65759 _inherits(Modal, _Component); 65760 65761 function Modal() { 65762 var _ref; 65763 65764 var _temp, _this, _ret; 65765 65766 _classCallCheck(this, Modal); 65767 65768 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { 65769 args[_key] = arguments[_key]; 65770 } 65771 65772 return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Modal.__proto__ || Object.getPrototypeOf(Modal)).call.apply(_ref, [this].concat(args))), _this), _this.removePortal = function () { 65773 _reactDom2.default.unmountComponentAtNode(_this.node); 65774 var parent = getParentElement(_this.props.parentSelector); 65775 parent.removeChild(_this.node); 65776 }, _this.renderPortal = function (props) { 65777 _this.portal = renderSubtreeIntoContainer(_this, _react2.default.createElement(_ModalPortal2.default, _extends({ defaultStyles: Modal.defaultStyles }, props)), _this.node); 65778 }, _temp), _possibleConstructorReturn(_this, _ret); 65779 } 65780 65781 _createClass(Modal, [{ 65782 key: 'componentDidMount', 65783 value: function componentDidMount() { 65784 this.node = document.createElement('div'); 65785 this.node.className = this.props.portalClassName; 65786 65787 var parent = getParentElement(this.props.parentSelector); 65788 parent.appendChild(this.node); 65789 65790 this.renderPortal(this.props); 65791 } 65792 }, { 65793 key: 'componentWillReceiveProps', 65794 value: function componentWillReceiveProps(newProps) { 65795 var isOpen = newProps.isOpen; 65796 // Stop unnecessary renders if modal is remaining closed 65797 65798 if (!this.props.isOpen && !isOpen) return; 65799 65800 var currentParent = getParentElement(this.props.parentSelector); 65801 var newParent = getParentElement(newProps.parentSelector); 65802 65803 if (newParent !== currentParent) { 65804 currentParent.removeChild(this.node); 65805 newParent.appendChild(this.node); 65806 } 65807 65808 this.renderPortal(newProps); 65809 } 65810 }, { 65811 key: 'componentWillUpdate', 65812 value: function componentWillUpdate(newProps) { 65813 if (newProps.portalClassName !== this.props.portalClassName) { 65814 this.node.className = newProps.portalClassName; 65815 } 65816 } 65817 }, { 65818 key: 'componentWillUnmount', 65819 value: function componentWillUnmount() { 65820 if (!this.node || !this.portal) return; 65821 65822 var state = this.portal.state; 65823 var now = Date.now(); 65824 var closesAt = state.isOpen && this.props.closeTimeoutMS && (state.closesAt || now + this.props.closeTimeoutMS); 65825 65826 if (closesAt) { 65827 if (!state.beforeClose) { 65828 this.portal.closeWithTimeout(); 65829 } 65830 65831 setTimeout(this.removePortal, closesAt - now); 65832 } else { 65833 this.removePortal(); 65834 } 65835 } 65836 }, { 65837 key: 'render', 65838 value: function render() { 65839 return null; 65840 } 65841 }], [{ 65842 key: 'setAppElement', 65843 value: function setAppElement(element) { 65844 ariaAppHider.setElement(element); 65845 } 65846 65847 /* eslint-disable no-console */ 65848 65849 }, { 65850 key: 'injectCSS', 65851 value: function injectCSS() { 65852 "dev" !== "production" && console.warn('React-Modal: injectCSS has been deprecated ' + 'and no longer has any effect. It will be removed in a later version'); 65853 } 65854 /* eslint-enable no-console */ 65855 65856 /* eslint-disable react/no-unused-prop-types */ 65857 65858 /* eslint-enable react/no-unused-prop-types */ 65859 65860 }]); 65861 65862 return Modal; 65863}(_react.Component); 65864 65865Modal.propTypes = { 65866 isOpen: _propTypes2.default.bool.isRequired, 65867 style: _propTypes2.default.shape({ 65868 content: _propTypes2.default.object, 65869 overlay: _propTypes2.default.object 65870 }), 65871 portalClassName: _propTypes2.default.string, 65872 bodyOpenClassName: _propTypes2.default.string, 65873 className: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object]), 65874 overlayClassName: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object]), 65875 appElement: _propTypes2.default.instanceOf(_safeHTMLElement2.default), 65876 onAfterOpen: _propTypes2.default.func, 65877 onRequestClose: _propTypes2.default.func, 65878 closeTimeoutMS: _propTypes2.default.number, 65879 ariaHideApp: _propTypes2.default.bool, 65880 shouldFocusAfter: _propTypes2.default.bool, 65881 shouldCloseOnOverlayClick: _propTypes2.default.bool, 65882 parentSelector: _propTypes2.default.func, 65883 aria: _propTypes2.default.object, 65884 role: _propTypes2.default.string, 65885 contentLabel: _propTypes2.default.string 65886}; 65887Modal.defaultProps = { 65888 isOpen: false, 65889 portalClassName: portalClassName, 65890 bodyOpenClassName: bodyOpenClassName, 65891 ariaHideApp: true, 65892 closeTimeoutMS: 0, 65893 shouldFocusAfterRender: true, 65894 shouldCloseOnOverlayClick: true, 65895 parentSelector: function parentSelector() { 65896 return document.body; 65897 } 65898}; 65899Modal.defaultStyles = { 65900 overlay: { 65901 position: 'fixed', 65902 top: 0, 65903 left: 0, 65904 right: 0, 65905 bottom: 0, 65906 backgroundColor: 'rgba(255, 255, 255, 0.75)' 65907 }, 65908 content: { 65909 position: 'absolute', 65910 top: '40px', 65911 left: '40px', 65912 right: '40px', 65913 bottom: '40px', 65914 border: '1px solid #ccc', 65915 background: '#fff', 65916 overflow: 'auto', 65917 WebkitOverflowScrolling: 'touch', 65918 borderRadius: '4px', 65919 outline: 'none', 65920 padding: '20px' 65921 } 65922}; 65923exports.default = Modal; 65924 65925/***/ }), 65926/* 619 */ 65927/***/ (function(module, exports, __webpack_require__) { 65928 65929"use strict"; 65930 65931 65932Object.defineProperty(exports, "__esModule", { 65933 value: true 65934}); 65935 65936var _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; }; 65937 65938var _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; }; 65939 65940var _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; }; }(); 65941 65942var _react = __webpack_require__(0); 65943 65944var _react2 = _interopRequireDefault(_react); 65945 65946var _propTypes = __webpack_require__(2); 65947 65948var _focusManager = __webpack_require__(620); 65949 65950var focusManager = _interopRequireWildcard(_focusManager); 65951 65952var _scopeTab = __webpack_require__(621); 65953 65954var _scopeTab2 = _interopRequireDefault(_scopeTab); 65955 65956var _ariaAppHider = __webpack_require__(355); 65957 65958var ariaAppHider = _interopRequireWildcard(_ariaAppHider); 65959 65960var _refCount = __webpack_require__(356); 65961 65962var refCount = _interopRequireWildcard(_refCount); 65963 65964var _bodyClassList = __webpack_require__(622); 65965 65966var bodyClassList = _interopRequireWildcard(_bodyClassList); 65967 65968var _safeHTMLElement = __webpack_require__(357); 65969 65970var _safeHTMLElement2 = _interopRequireDefault(_safeHTMLElement); 65971 65972function _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; } } 65973 65974function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 65975 65976function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 65977 65978function _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; } 65979 65980function _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; } 65981 65982// so that our CSS is statically analyzable 65983var CLASS_NAMES = { 65984 overlay: 'ReactModal__Overlay', 65985 content: 'ReactModal__Content' 65986}; 65987 65988var TAB_KEY = 9; 65989var ESC_KEY = 27; 65990 65991var ModalPortal = function (_Component) { 65992 _inherits(ModalPortal, _Component); 65993 65994 function ModalPortal(props) { 65995 _classCallCheck(this, ModalPortal); 65996 65997 var _this = _possibleConstructorReturn(this, (ModalPortal.__proto__ || Object.getPrototypeOf(ModalPortal)).call(this, props)); 65998 65999 _this.setFocusAfterRender = function (focus) { 66000 _this.focusAfterRender = _this.props.shouldFocusAfterRender && focus; 66001 }; 66002 66003 _this.setOverlayRef = function (overlay) { 66004 _this.overlay = overlay; 66005 }; 66006 66007 _this.setContentRef = function (content) { 66008 _this.content = content; 66009 }; 66010 66011 _this.afterClose = function () { 66012 focusManager.returnFocus(); 66013 focusManager.teardownScopedFocus(); 66014 }; 66015 66016 _this.open = function () { 66017 _this.beforeOpen(); 66018 if (_this.state.afterOpen && _this.state.beforeClose) { 66019 clearTimeout(_this.closeTimer); 66020 _this.setState({ beforeClose: false }); 66021 } else { 66022 focusManager.setupScopedFocus(_this.node); 66023 focusManager.markForFocusLater(); 66024 _this.setState({ isOpen: true }, function () { 66025 _this.setState({ afterOpen: true }); 66026 66027 if (_this.props.isOpen && _this.props.onAfterOpen) { 66028 _this.props.onAfterOpen(); 66029 } 66030 }); 66031 } 66032 }; 66033 66034 _this.close = function () { 66035 _this.beforeClose(); 66036 if (_this.props.closeTimeoutMS > 0) { 66037 _this.closeWithTimeout(); 66038 } else { 66039 _this.closeWithoutTimeout(); 66040 } 66041 }; 66042 66043 _this.focusContent = function () { 66044 return _this.content && !_this.contentHasFocus() && _this.content.focus(); 66045 }; 66046 66047 _this.closeWithTimeout = function () { 66048 var closesAt = Date.now() + _this.props.closeTimeoutMS; 66049 _this.setState({ beforeClose: true, closesAt: closesAt }, function () { 66050 _this.closeTimer = setTimeout(_this.closeWithoutTimeout, _this.state.closesAt - Date.now()); 66051 }); 66052 }; 66053 66054 _this.closeWithoutTimeout = function () { 66055 _this.setState({ 66056 beforeClose: false, 66057 isOpen: false, 66058 afterOpen: false, 66059 closesAt: null 66060 }, _this.afterClose); 66061 }; 66062 66063 _this.handleKeyDown = function (event) { 66064 if (event.keyCode === TAB_KEY) { 66065 (0, _scopeTab2.default)(_this.content, event); 66066 } 66067 if (event.keyCode === ESC_KEY) { 66068 event.preventDefault(); 66069 _this.requestClose(event); 66070 } 66071 }; 66072 66073 _this.handleOverlayOnClick = function (event) { 66074 if (_this.shouldClose === null) { 66075 _this.shouldClose = true; 66076 } 66077 66078 if (_this.shouldClose && _this.props.shouldCloseOnOverlayClick) { 66079 if (_this.ownerHandlesClose()) { 66080 _this.requestClose(event); 66081 } else { 66082 _this.focusContent(); 66083 } 66084 } 66085 _this.shouldClose = null; 66086 _this.moveFromContentToOverlay = null; 66087 }; 66088 66089 _this.handleOverlayOnMouseUp = function () { 66090 if (_this.moveFromContentToOverlay === null) { 66091 _this.shouldClose = false; 66092 } 66093 }; 66094 66095 _this.handleContentOnMouseUp = function () { 66096 _this.shouldClose = false; 66097 }; 66098 66099 _this.handleOverlayOnMouseDown = function () { 66100 _this.moveFromContentToOverlay = false; 66101 }; 66102 66103 _this.handleContentOnClick = function () { 66104 _this.shouldClose = false; 66105 }; 66106 66107 _this.handleContentOnMouseDown = function () { 66108 _this.shouldClose = false; 66109 _this.moveFromContentToOverlay = false; 66110 }; 66111 66112 _this.requestClose = function (event) { 66113 return _this.ownerHandlesClose() && _this.props.onRequestClose(event); 66114 }; 66115 66116 _this.ownerHandlesClose = function () { 66117 return _this.props.onRequestClose; 66118 }; 66119 66120 _this.shouldBeClosed = function () { 66121 return !_this.state.isOpen && !_this.state.beforeClose; 66122 }; 66123 66124 _this.contentHasFocus = function () { 66125 return document.activeElement === _this.content || _this.content.contains(document.activeElement); 66126 }; 66127 66128 _this.buildClassName = function (which, additional) { 66129 var classNames = (typeof additional === 'undefined' ? 'undefined' : _typeof(additional)) === 'object' ? additional : { 66130 base: CLASS_NAMES[which], 66131 afterOpen: CLASS_NAMES[which] + '--after-open', 66132 beforeClose: CLASS_NAMES[which] + '--before-close' 66133 }; 66134 var className = classNames.base; 66135 if (_this.state.afterOpen) { 66136 className = className + ' ' + classNames.afterOpen; 66137 } 66138 if (_this.state.beforeClose) { 66139 className = className + ' ' + classNames.beforeClose; 66140 } 66141 return typeof additional === 'string' && additional ? className + ' ' + additional : className; 66142 }; 66143 66144 _this.ariaAttributes = function (items) { 66145 return Object.keys(items).reduce(function (acc, name) { 66146 acc['aria-' + name] = items[name]; 66147 return acc; 66148 }, {}); 66149 }; 66150 66151 _this.state = { 66152 afterOpen: false, 66153 beforeClose: false 66154 }; 66155 66156 _this.shouldClose = null; 66157 _this.moveFromContentToOverlay = null; 66158 return _this; 66159 } 66160 66161 _createClass(ModalPortal, [{ 66162 key: 'componentDidMount', 66163 value: function componentDidMount() { 66164 // Focus needs to be set when mounting and already open 66165 if (this.props.isOpen) { 66166 this.setFocusAfterRender(true); 66167 this.open(); 66168 } 66169 } 66170 }, { 66171 key: 'componentWillReceiveProps', 66172 value: function componentWillReceiveProps(newProps) { 66173 if (true) { 66174 if (newProps.bodyOpenClassName !== this.props.bodyOpenClassName) { 66175 // eslint-disable-next-line no-console 66176 console.warn('React-Modal: "bodyOpenClassName" prop has been modified. ' + 'This may cause unexpected behavior when multiple modals are open.'); 66177 } 66178 } 66179 // Focus only needs to be set once when the modal is being opened 66180 if (!this.props.isOpen && newProps.isOpen) { 66181 this.setFocusAfterRender(true); 66182 this.open(); 66183 } else if (this.props.isOpen && !newProps.isOpen) { 66184 this.close(); 66185 } 66186 } 66187 }, { 66188 key: 'componentDidUpdate', 66189 value: function componentDidUpdate() { 66190 if (this.focusAfterRender) { 66191 this.focusContent(); 66192 this.setFocusAfterRender(false); 66193 } 66194 } 66195 }, { 66196 key: 'componentWillUnmount', 66197 value: function componentWillUnmount() { 66198 this.beforeClose(); 66199 clearTimeout(this.closeTimer); 66200 } 66201 }, { 66202 key: 'beforeOpen', 66203 value: function beforeOpen() { 66204 var _props = this.props, 66205 appElement = _props.appElement, 66206 ariaHideApp = _props.ariaHideApp, 66207 bodyOpenClassName = _props.bodyOpenClassName; 66208 // Add body class 66209 66210 bodyClassList.add(bodyOpenClassName); 66211 // Add aria-hidden to appElement 66212 if (ariaHideApp) { 66213 ariaAppHider.hide(appElement); 66214 } 66215 } 66216 }, { 66217 key: 'beforeClose', 66218 value: function beforeClose() { 66219 var _props2 = this.props, 66220 appElement = _props2.appElement, 66221 ariaHideApp = _props2.ariaHideApp, 66222 bodyOpenClassName = _props2.bodyOpenClassName; 66223 // Remove class if no more modals are open 66224 66225 bodyClassList.remove(bodyOpenClassName); 66226 // Reset aria-hidden attribute if all modals have been removed 66227 if (ariaHideApp && refCount.totalCount() < 1) { 66228 ariaAppHider.show(appElement); 66229 } 66230 } 66231 66232 // Don't steal focus from inner elements 66233 66234 }, { 66235 key: 'render', 66236 value: function render() { 66237 var _props3 = this.props, 66238 className = _props3.className, 66239 overlayClassName = _props3.overlayClassName, 66240 defaultStyles = _props3.defaultStyles; 66241 66242 var contentStyles = className ? {} : defaultStyles.content; 66243 var overlayStyles = overlayClassName ? {} : defaultStyles.overlay; 66244 66245 return this.shouldBeClosed() ? null : _react2.default.createElement( 66246 'div', 66247 { 66248 ref: this.setOverlayRef, 66249 className: this.buildClassName('overlay', overlayClassName), 66250 style: _extends({}, overlayStyles, this.props.style.overlay), 66251 onClick: this.handleOverlayOnClick, 66252 onMouseDown: this.handleOverlayOnMouseDown, 66253 onMouseUp: this.handleOverlayOnMouseUp }, 66254 _react2.default.createElement( 66255 'div', 66256 _extends({ 66257 ref: this.setContentRef, 66258 style: _extends({}, contentStyles, this.props.style.content), 66259 className: this.buildClassName('content', className), 66260 tabIndex: '-1', 66261 onKeyDown: this.handleKeyDown, 66262 onMouseDown: this.handleContentOnMouseDown, 66263 onMouseUp: this.handleContentOnMouseUp, 66264 onClick: this.handleContentOnClick, 66265 role: this.props.role, 66266 'aria-label': this.props.contentLabel 66267 }, this.ariaAttributes(this.props.aria || {})), 66268 this.props.children 66269 ) 66270 ); 66271 } 66272 }]); 66273 66274 return ModalPortal; 66275}(_react.Component); 66276 66277ModalPortal.defaultProps = { 66278 style: { 66279 overlay: {}, 66280 content: {} 66281 } 66282}; 66283ModalPortal.propTypes = { 66284 isOpen: _propTypes.PropTypes.bool.isRequired, 66285 defaultStyles: _propTypes.PropTypes.shape({ 66286 content: _propTypes.PropTypes.object, 66287 overlay: _propTypes.PropTypes.object 66288 }), 66289 style: _propTypes.PropTypes.shape({ 66290 content: _propTypes.PropTypes.object, 66291 overlay: _propTypes.PropTypes.object 66292 }), 66293 className: _propTypes.PropTypes.oneOfType([_propTypes.PropTypes.string, _propTypes.PropTypes.object]), 66294 overlayClassName: _propTypes.PropTypes.oneOfType([_propTypes.PropTypes.string, _propTypes.PropTypes.object]), 66295 bodyOpenClassName: _propTypes.PropTypes.string, 66296 ariaHideApp: _propTypes.PropTypes.bool, 66297 appElement: _propTypes.PropTypes.instanceOf(_safeHTMLElement2.default), 66298 onAfterOpen: _propTypes.PropTypes.func, 66299 onRequestClose: _propTypes.PropTypes.func, 66300 closeTimeoutMS: _propTypes.PropTypes.number, 66301 shouldFocusAfterRender: _propTypes.PropTypes.bool, 66302 shouldCloseOnOverlayClick: _propTypes.PropTypes.bool, 66303 role: _propTypes.PropTypes.string, 66304 contentLabel: _propTypes.PropTypes.string, 66305 aria: _propTypes.PropTypes.object, 66306 children: _propTypes.PropTypes.node 66307}; 66308exports.default = ModalPortal; 66309module.exports = exports['default']; 66310 66311/***/ }), 66312/* 620 */ 66313/***/ (function(module, exports, __webpack_require__) { 66314 66315"use strict"; 66316 66317 66318Object.defineProperty(exports, "__esModule", { 66319 value: true 66320}); 66321exports.handleBlur = handleBlur; 66322exports.handleFocus = handleFocus; 66323exports.markForFocusLater = markForFocusLater; 66324exports.returnFocus = returnFocus; 66325exports.setupScopedFocus = setupScopedFocus; 66326exports.teardownScopedFocus = teardownScopedFocus; 66327 66328var _tabbable = __webpack_require__(354); 66329 66330var _tabbable2 = _interopRequireDefault(_tabbable); 66331 66332function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 66333 66334var focusLaterElements = []; 66335var modalElement = null; 66336var needToFocus = false;
66337 66338function handleBlur() { 66339 needToFocus = true; 66340} 66341 66342function handleFocus() { 66343 if (needToFocus) { 66344 needToFocus = false; 66345 if (!modalElement) { 66346 return; 66347 } 66348 // need to see how jQuery shims document.on('focusin') so we don't need the 66349 // setTimeout, firefox doesn't support focusin, if it did, we could focus 66350 // the element outside of a setTimeout. Side-effect of this implementation 66351 // is that the document.body gets focus, and then we focus our element right 66352 // after, seems fine. 66353 setTimeout(function () { 66354 if (modalElement.contains(document.activeElement)) { 66355 return; 66356 } 66357 var el = (0, _tabbable2.default)(modalElement)[0] || modalElement; 66358 el.focus(); 66359 }, 0); 66360 } 66361} 66362 66363function markForFocusLater() { 66364 focusLaterElements.push(document.activeElement); 66365} 66366 66367/* eslint-disable no-console */ 66368function returnFocus() { 66369 var toFocus = null; 66370 try { 66371 toFocus = focusLaterElements.pop(); 66372 toFocus.focus(); 66373 return; 66374 } catch (e) { 66375 console.warn(['You tried to return focus to', toFocus, 'but it is not in the DOM anymore'].join(" ")); 66376 } 66377} 66378/* eslint-enable no-console */ 66379 66380function setupScopedFocus(element) { 66381 modalElement = element; 66382 66383 if (window.addEventListener) { 66384 window.addEventListener('blur', handleBlur, false); 66385 document.addEventListener('focus', handleFocus, true); 66386 } else { 66387 window.attachEvent('onBlur', handleBlur); 66388 document.attachEvent('onFocus', handleFocus); 66389 } 66390} 66391 66392function teardownScopedFocus() { 66393 modalElement = null; 66394 66395 if (window.addEventListener) { 66396 window.removeEventListener('blur', handleBlur); 66397 document.removeEventListener('focus', handleFocus); 66398 } else { 66399 window.detachEvent('onBlur', handleBlur); 66400 document.detachEvent('onFocus', handleFocus); 66401 } 66402} 66403 66404/***/ }), 66405/* 621 */ 66406/***/ (function(module, exports, __webpack_require__) { 66407 66408"use strict"; 66409 66410 66411Object.defineProperty(exports, "__esModule", { 66412 value: true 66413}); 66414exports.default = scopeTab; 66415 66416var _tabbable = __webpack_require__(354); 66417 66418var _tabbable2 = _interopRequireDefault(_tabbable); 66419 66420function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 66421 66422function scopeTab(node, event) { 66423 var tabbable = (0, _tabbable2.default)(node); 66424 if (!tabbable.length) { 66425 event.preventDefault(); 66426 return; 66427 } 66428 var finalTabbable = tabbable[event.shiftKey ? 0 : tabbable.length - 1]; 66429 var leavingFinalTabbable = finalTabbable === document.activeElement || 66430 // handle immediate shift+tab after opening with mouse 66431 node === document.activeElement; 66432 if (!leavingFinalTabbable) return; 66433 event.preventDefault(); 66434 var target = tabbable[event.shiftKey ? tabbable.length - 1 : 0]; 66435 target.focus(); 66436} 66437module.exports = exports['default']; 66438 66439/***/ }), 66440/* 622 */ 66441/***/ (function(module, exports, __webpack_require__) { 66442 66443"use strict"; 66444 66445 66446Object.defineProperty(exports, "__esModule", { 66447 value: true 66448}); 66449exports.add = add; 66450exports.remove = remove; 66451 66452var _refCount = __webpack_require__(356); 66453 66454var refCount = _interopRequireWildcard(_refCount); 66455 66456function _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; } } 66457 66458function add(bodyClass) { 66459 // Increment class(es) on refCount tracker and add class(es) to body 66460 bodyClass.split(' ').map(refCount.add).forEach(function (className) { 66461 return document.body.classList.add(className); 66462 }); 66463} 66464 66465function remove(bodyClass) { 66466 var classListMap = refCount.get(); 66467 // Decrement class(es) from the refCount tracker 66468 // and remove unused class(es) from body 66469 bodyClass.split(' ').map(refCount.remove).filter(function (className) { 66470 return classListMap[className] === 0; 66471 }).forEach(function (className) { 66472 return document.body.classList.remove(className); 66473 }); 66474} 66475 66476/***/ }), 66477/* 623 */ 66478/***/ (function(module, exports, __webpack_require__) { 66479 66480var __WEBPACK_AMD_DEFINE_RESULT__;/*! 66481 Copyright (c) 2015 Jed Watson. 66482 Based on code that is Copyright 2013-2015, Facebook, Inc. 66483 All rights reserved. 66484*/ 66485/* global define */ 66486 66487(function () { 66488 'use strict'; 66489 66490 var canUseDOM = !!( 66491 typeof window !== 'undefined' && 66492 window.document && 66493 window.document.createElement 66494 ); 66495 66496 var ExecutionEnvironment = { 66497 66498 canUseDOM: canUseDOM, 66499 66500 canUseWorkers: typeof Worker !== 'undefined', 66501 66502 canUseEventListeners: 66503 canUseDOM && !!(window.addEventListener || window.attachEvent), 66504
vendor: 4,971 bytes, lines 66505-66644
66505 canUseViewport: canUseDOM && !!window.screen 66506 66507 }; 66508 66509 if (true) { 66510 !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { 66511 return ExecutionEnvironment; 66512 }).call(exports, __webpack_require__, exports, module), 66513 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); 66514 } else if (typeof module !== 'undefined' && module.exports) { 66515 module.exports = ExecutionEnvironment; 66516 } else { 66517 window.ExecutionEnvironment = ExecutionEnvironment; 66518 } 66519 66520}()); 66521 66522 66523/***/ }), 66524/* 624 */, 66525/* 625 */, 66526/* 626 */, 66527/* 627 */, 66528/* 628 */, 66529/* 629 */, 66530/* 630 */, 66531/* 631 */, 66532/* 632 */, 66533/* 633 */, 66534/* 634 */, 66535/* 635 */ 66536/***/ (function(module, __webpack_exports__, __webpack_require__) { 66537 66538"use strict"; 66539/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 66540/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 66541/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 66542/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); 66543/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 66544/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); 66545/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(5); 66546/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); 66547/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0); 66548/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__); 66549/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__PanelGroup__ = __webpack_require__(371); 66550 66551 66552 66553 66554 66555 66556 66557 66558var Accordion = function (_React$Component) { 66559 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(Accordion, _React$Component); 66560 66561 function Accordion() { 66562 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Accordion); 66563 66564 return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 66565 } 66566 66567 Accordion.prototype.render = function render() { 66568 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( 66569 __WEBPACK_IMPORTED_MODULE_5__PanelGroup__["a" /* default */], 66570 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, this.props, { accordion: true }), 66571 this.props.children 66572 ); 66573 }; 66574 66575 return Accordion; 66576}(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component); 66577 66578/* harmony default export */ __webpack_exports__["a"] = (Accordion); 66579 66580/***/ }), 66581/* 636 */ 66582/***/ (function(module, exports, __webpack_require__) { 66583 66584__webpack_require__(637); 66585module.exports = __webpack_require__(28).Object.assign; 66586 66587 66588/***/ }), 66589/* 637 */ 66590/***/ (function(module, exports, __webpack_require__) { 66591 66592// 19.1.3.1 Object.assign(target, source) 66593var $export = __webpack_require__(37); 66594 66595$export($export.S + $export.F, 'Object', { assign: __webpack_require__(639) }); 66596 66597 66598/***/ }), 66599/* 638 */ 66600/***/ (function(module, exports) { 66601 66602module.exports = function (it) { 66603 if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 66604 return it; 66605}; 66606 66607 66608/***/ }), 66609/* 639 */ 66610/***/ (function(module, exports, __webpack_require__) { 66611 66612"use strict"; 66613 66614// 19.1.2.1 Object.assign(target, source, ...) 66615var getKeys = __webpack_require__(71); 66616var gOPS = __webpack_require__(145); 66617var pIE = __webpack_require__(72); 66618var toObject = __webpack_require__(146); 66619var IObject = __webpack_require__(364); 66620var $assign = Object.assign; 66621 66622// should work with symbols and should have deterministic property order (V8 bug) 66623module.exports = !$assign || __webpack_require__(69)(function () { 66624 var A = {}; 66625 var B = {}; 66626 // eslint-disable-next-line no-undef 66627 var S = Symbol(); 66628 var K = 'abcdefghijklmnopqrst'; 66629 A[S] = 7; 66630 K.split('').forEach(function (k) { B[k] = k; }); 66631 return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; 66632}) ? function assign(target, source) { // eslint-disable-line no-unused-vars 66633 var T = toObject(target); 66634 var aLen = arguments.length; 66635 var index = 1; 66636 var getSymbols = gOPS.f; 66637 var isEnum = pIE.f; 66638 while (aLen > index) { 66639 var S = IObject(arguments[index++]); 66640 var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S); 66641 var length = keys.length; 66642 var j = 0; 66643 var key; 66644 while (length >
vendor: 6,535 bytes, lines 66644-66862
66644 j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key]; 66645 } return T; 66646} : $assign; 66647 66648 66649/***/ }), 66650/* 640 */ 66651/***/ (function(module, exports, __webpack_require__) { 66652 66653// false -> Array#indexOf 66654// true -> Array#includes 66655var toIObject = __webpack_require__(47); 66656var toLength = __webpack_require__(365); 66657var toAbsoluteIndex = __webpack_require__(641); 66658module.exports = function (IS_INCLUDES) { 66659 return function ($this, el, fromIndex) { 66660 var O = toIObject($this); 66661 var length = toLength(O.length); 66662 var index = toAbsoluteIndex(fromIndex, length); 66663 var value; 66664 // Array#includes uses SameValueZero equality algorithm 66665 // eslint-disable-next-line no-self-compare 66666 if (IS_INCLUDES && el != el) while (length > index) { 66667 value = O[index++]; 66668 // eslint-disable-next-line no-self-compare 66669 if (value != value) return true; 66670 // Array#indexOf ignores holes, Array#includes - not 66671 } else for (;length > index; index++) if (IS_INCLUDES || index in O) { 66672 if (O[index] === el) return IS_INCLUDES || index || 0; 66673 } return !IS_INCLUDES && -1; 66674 }; 66675}; 66676 66677 66678/***/ }), 66679/* 641 */ 66680/***/ (function(module, exports, __webpack_require__) { 66681 66682var toInteger = __webpack_require__(141); 66683var max = Math.max; 66684var min = Math.min; 66685module.exports = function (index, length) { 66686 index = toInteger(index); 66687 return index < 0 ? max(index + length, 0) : min(index, length); 66688}; 66689 66690 66691/***/ }), 66692/* 642 */ 66693/***/ (function(module, exports, __webpack_require__) { 66694 66695module.exports = { "default": __webpack_require__(643), __esModule: true }; 66696 66697/***/ }), 66698/* 643 */ 66699/***/ (function(module, exports, __webpack_require__) { 66700 66701__webpack_require__(366); 66702__webpack_require__(649); 66703module.exports = __webpack_require__(150).f('iterator'); 66704 66705 66706/***/ }), 66707/* 644 */ 66708/***/ (function(module, exports, __webpack_require__) { 66709 66710var toInteger = __webpack_require__(141); 66711var defined = __webpack_require__(140); 66712// true -> String#at 66713// false -> String#codePointAt 66714module.exports = function (TO_STRING) { 66715 return function (that, pos) { 66716 var s = String(defined(that)); 66717 var i = toInteger(pos); 66718 var l = s.length; 66719 var a, b; 66720 if (i < 0 || i >= l) return TO_STRING ? '' : undefined; 66721 a = s.charCodeAt(i); 66722 return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff 66723 ? TO_STRING ? s.charAt(i) : a 66724 : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; 66725 }; 66726}; 66727 66728 66729/***/ }), 66730/* 645 */ 66731/***/ (function(module, exports, __webpack_require__) { 66732 66733"use strict"; 66734 66735var create = __webpack_require__(148); 66736var descriptor = __webpack_require__(70); 66737var setToStringTag = __webpack_require__(149); 66738var IteratorPrototype = {}; 66739 66740// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() 66741__webpack_require__(58)(IteratorPrototype, __webpack_require__(33)('iterator'), function () { return this; }); 66742 66743module.exports = function (Constructor, NAME, next) { 66744 Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); 66745 setToStringTag(Constructor, NAME + ' Iterator'); 66746}; 66747 66748 66749/***/ }), 66750/* 646 */ 66751/***/ (function(module, exports, __webpack_require__) { 66752 66753var dP = __webpack_require__(45); 66754var anObject = __webpack_require__(59); 66755var getKeys = __webpack_require__(71); 66756 66757module.exports = __webpack_require__(61) ? Object.defineProperties : function defineProperties(O, Properties) { 66758 anObject(O); 66759 var keys = getKeys(Properties); 66760 var length = keys.length; 66761 var i = 0; 66762 var P; 66763 while (length > i) dP.f(O, P = keys[i++], Properties[P]); 66764 return O; 66765}; 66766 66767 66768/***/ }), 66769/* 647 */ 66770/***/ (function(module, exports, __webpack_require__) { 66771 66772var document = __webpack_require__(38).document; 66773module.exports = document && document.documentElement; 66774 66775 66776/***/ }), 66777/* 648 */ 66778/***/ (function(module, exports, __webpack_require__) { 66779 66780// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) 66781var has = __webpack_require__(46); 66782var toObject = __webpack_require__(146); 66783var IE_PROTO = __webpack_require__(142)('IE_PROTO'); 66784var ObjectProto = Object.prototype; 66785 66786module.exports = Object.getPrototypeOf || function (O) { 66787 O = toObject(O); 66788 if (has(O, IE_PROTO)) return O[IE_PROTO]; 66789 if (typeof O.constructor == 'function' && O instanceof O.constructor) { 66790 return O.constructor.prototype; 66791 } return O instanceof Object ? ObjectProto : null; 66792}; 66793 66794 66795/***/ }), 66796/* 649 */ 66797/***/ (function(module, exports, __webpack_require__) { 66798 66799__webpack_require__(650); 66800var global = __webpack_require__(38); 66801var hide = __webpack_require__(58); 66802var Iterators = __webpack_require__(73); 66803var TO_STRING_TAG = __webpack_require__(33)('toStringTag'); 66804 66805var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + 66806 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + 66807 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + 66808 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + 66809 'TextTrackList,TouchList').split(','); 66810 66811for (var i = 0; i < DOMIterables.length; i++) { 66812 var NAME = DOMIterables[i]; 66813 var Collection = global[NAME]; 66814 var proto = Collection && Collection.prototype; 66815 if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); 66816 Iterators[NAME] = Iterators.Array; 66817} 66818 66819 66820/***/ }), 66821/* 650 */ 66822/***/ (function(module, exports, __webpack_require__) { 66823 66824"use strict"; 66825 66826var addToUnscopables = __webpack_require__(651); 66827var step = __webpack_require__(652); 66828var Iterators = __webpack_require__(73); 66829var toIObject = __webpack_require__(47); 66830 66831// 22.1.3.4 Array.prototype.entries() 66832// 22.1.3.13 Array.prototype.keys() 66833// 22.1.3.29 Array.prototype.values() 66834// 22.1.3.30 Array.prototype[@@iterator]() 66835module.exports = __webpack_require__(367)(Array, 'Array', function (iterated, kind) { 66836 this._t = toIObject(iterated); // target 66837 this._i = 0; // next index 66838 this._k = kind; // kind 66839// 22.1.5.2.1 %ArrayIteratorPrototype%.next() 66840}, function () { 66841 var O = this._t; 66842 var kind = this._k; 66843 var index = this._i++; 66844 if (!O || index >= O.length) { 66845 this._t = undefined; 66846 return step(1); 66847 } 66848 if (kind == 'keys') return step(0, index); 66849 if (kind == 'values') return step(0, O[index]); 66850 return step(0, [index, O[index]]); 66851}, 'values'); 66852 66853// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) 66854Iterators.Arguments = Iterators.Array; 66855 66856addToUnscopables('keys'); 66857addToUnscopables('values'); 66858addToUnscopables('entries'); 66859 66860 66861/***/ }), 66862/* 651 */
vendor: 12,699 bytes, lines 66863-67252
66863/***/ (function(module, exports) { 66864 66865module.exports = function () { /* empty */ }; 66866 66867 66868/***/ }), 66869/* 652 */ 66870/***/ (function(module, exports) { 66871 66872module.exports = function (done, value) { 66873 return { value: value, done: !!done }; 66874}; 66875 66876 66877/***/ }), 66878/* 653 */ 66879/***/ (function(module, exports, __webpack_require__) { 66880 66881module.exports = { "default": __webpack_require__(654), __esModule: true }; 66882 66883/***/ }), 66884/* 654 */ 66885/***/ (function(module, exports, __webpack_require__) { 66886 66887__webpack_require__(655); 66888__webpack_require__(660); 66889__webpack_require__(661); 66890__webpack_require__(662); 66891module.exports = __webpack_require__(28).Symbol; 66892 66893 66894/***/ }), 66895/* 655 */ 66896/***/ (function(module, exports, __webpack_require__) { 66897 66898"use strict"; 66899 66900// ECMAScript 6 symbols shim 66901var global = __webpack_require__(38); 66902var has = __webpack_require__(46); 66903var DESCRIPTORS = __webpack_require__(61); 66904var $export = __webpack_require__(37); 66905var redefine = __webpack_require__(368); 66906var META = __webpack_require__(656).KEY; 66907var $fails = __webpack_require__(69); 66908var shared = __webpack_require__(143); 66909var setToStringTag = __webpack_require__(149); 66910var uid = __webpack_require__(92); 66911var wks = __webpack_require__(33); 66912var wksExt = __webpack_require__(150); 66913var wksDefine = __webpack_require__(151); 66914var enumKeys = __webpack_require__(657); 66915var isArray = __webpack_require__(658); 66916var anObject = __webpack_require__(59); 66917var isObject = __webpack_require__(60); 66918var toIObject = __webpack_require__(47); 66919var toPrimitive = __webpack_require__(138); 66920var createDesc = __webpack_require__(70); 66921var _create = __webpack_require__(148); 66922var gOPNExt = __webpack_require__(659); 66923var $GOPD = __webpack_require__(370); 66924var $DP = __webpack_require__(45); 66925var $keys = __webpack_require__(71); 66926var gOPD = $GOPD.f; 66927var dP = $DP.f; 66928var gOPN = gOPNExt.f; 66929var $Symbol = global.Symbol; 66930var $JSON = global.JSON; 66931var _stringify = $JSON && $JSON.stringify; 66932var PROTOTYPE = 'prototype'; 66933var HIDDEN = wks('_hidden'); 66934var TO_PRIMITIVE = wks('toPrimitive'); 66935var isEnum = {}.propertyIsEnumerable; 66936var SymbolRegistry = shared('symbol-registry'); 66937var AllSymbols = shared('symbols'); 66938var OPSymbols = shared('op-symbols'); 66939var ObjectProto = Object[PROTOTYPE]; 66940var USE_NATIVE = typeof $Symbol == 'function'; 66941var QObject = global.QObject; 66942// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 66943var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; 66944 66945// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 66946var setSymbolDesc = DESCRIPTORS && $fails(function () { 66947 return _create(dP({}, 'a', { 66948 get: function () { return dP(this, 'a', { value: 7 }).a; } 66949 })).a != 7; 66950}) ? function (it, key, D) { 66951 var protoDesc = gOPD(ObjectProto, key); 66952 if (protoDesc) delete ObjectProto[key]; 66953 dP(it, key, D); 66954 if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); 66955} : dP; 66956 66957var wrap = function (tag) { 66958 var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); 66959 sym._k = tag; 66960 return sym; 66961}; 66962 66963var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { 66964 return typeof it == 'symbol'; 66965} : function (it) { 66966 return it instanceof $Symbol; 66967}; 66968 66969var $defineProperty = function defineProperty(it, key, D) { 66970 if (it === ObjectProto) $defineProperty(OPSymbols, key, D); 66971 anObject(it); 66972 key = toPrimitive(key, true); 66973 anObject(D); 66974 if (has(AllSymbols, key)) { 66975 if (!D.enumerable) { 66976 if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); 66977 it[HIDDEN][key] = true; 66978 } else { 66979 if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; 66980 D = _create(D, { enumerable: createDesc(0, false) }); 66981 } return setSymbolDesc(it, key, D); 66982 } return dP(it, key, D); 66983}; 66984var $defineProperties = function defineProperties(it, P) { 66985 anObject(it); 66986 var keys = enumKeys(P = toIObject(P)); 66987 var i = 0; 66988 var l = keys.length; 66989 var key; 66990 while (l > i) $defineProperty(it, key = keys[i++], P[key]); 66991 return it; 66992}; 66993var $create = function create(it, P) { 66994 return P === undefined ? _create(it) : $defineProperties(_create(it), P); 66995}; 66996var $propertyIsEnumerable = function propertyIsEnumerable(key) { 66997 var E = isEnum.call(this, key = toPrimitive(key, true)); 66998 if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; 66999 return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; 67000}; 67001var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { 67002 it = toIObject(it); 67003 key = toPrimitive(key, true); 67004 if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; 67005 var D = gOPD(it, key); 67006 if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; 67007 return D; 67008}; 67009var $getOwnPropertyNames = function getOwnPropertyNames(it) { 67010 var names = gOPN(toIObject(it)); 67011 var result = []; 67012 var i = 0; 67013 var key; 67014 while (names.length > i) { 67015 if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); 67016 } return result; 67017}; 67018var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { 67019 var IS_OP = it === ObjectProto; 67020 var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); 67021 var result = []; 67022 var i = 0; 67023 var key; 67024 while (names.length > i) { 67025 if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); 67026 } return result; 67027}; 67028 67029// 19.4.1.1 Symbol([description]) 67030if (!USE_NATIVE) { 67031 $Symbol = function Symbol() { 67032 if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); 67033 var tag = uid(arguments.length > 0 ? arguments[0] : undefined); 67034 var $set = function (value) { 67035 if (this === ObjectProto) $set.call(OPSymbols, value); 67036 if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; 67037 setSymbolDesc(this, tag, createDesc(1, value)); 67038 }; 67039 if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set }); 67040 return wrap(tag); 67041 }; 67042 redefine($Symbol[PROTOTYPE], 'toString', function toString() { 67043 return this._k; 67044 }); 67045 67046 $GOPD.f = $getOwnPropertyDescriptor; 67047 $DP.f = $defineProperty; 67048 __webpack_require__(369).f = gOPNExt.f = $getOwnPropertyNames; 67049 __webpack_require__(72).f = $propertyIsEnumerable; 67050 __webpack_require__(145).f = $getOwnPropertySymbols; 67051 67052 if (DESCRIPTORS && !__webpack_require__(91)) { 67053 redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); 67054 } 67055 67056 wksExt.f = function (name) { 67057 return wrap(wks(name)); 67058 }; 67059} 67060 67061$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); 67062 67063for (var es6Symbols = ( 67064 // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 67065 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' 67066).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); 67067 67068for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); 67069 67070$export($export.S + $export.F * !USE_NATIVE, 'Symbol', { 67071 // 19.4.2.1 Symbol.for(key) 67072 'for': function (key) { 67073 return has(SymbolRegistry, key += '') 67074 ? SymbolRegistry[key] 67075 : SymbolRegistry[key] = $Symbol(key); 67076 }, 67077 // 19.4.2.5 Symbol.keyFor(sym) 67078 keyFor: function keyFor(sym) { 67079 if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); 67080 for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; 67081 }, 67082 useSetter: function () { setter = true; }, 67083 useSimple: function () { setter = false; } 67084}); 67085 67086$export($export.S + $export.F * !USE_NATIVE, 'Object', { 67087 // 19.1.2.2 Object.create(O [, Properties]) 67088 create: $create, 67089 // 19.1.2.4 Object.defineProperty(O, P, Attributes) 67090 defineProperty: $defineProperty, 67091 // 19.1.2.3 Object.defineProperties(O, Properties) 67092 defineProperties: $defineProperties, 67093 // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) 67094 getOwnPropertyDescriptor: $getOwnPropertyDescriptor, 67095 // 19.1.2.7 Object.getOwnPropertyNames(O) 67096 getOwnPropertyNames: $getOwnPropertyNames, 67097 // 19.1.2.8 Object.getOwnPropertySymbols(O) 67098 getOwnPropertySymbols: $getOwnPropertySymbols 67099}); 67100 67101// 24.3.2 JSON.stringify(value [, replacer [, space]]) 67102$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { 67103 var S = $Symbol(); 67104 // MS Edge converts symbol values to JSON as {} 67105 // WebKit converts symbol values to JSON as null 67106 // V8 throws on boxed symbols 67107 return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}'; 67108})), 'JSON', { 67109 stringify: function stringify(it) { 67110 var args = [it]; 67111 var i = 1; 67112 var replacer, $replacer; 67113 while (arguments.length > i) args.push(arguments[i++]); 67114 $replacer = replacer = args[1]; 67115 if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined 67116 if (!isArray(replacer)) replacer = function (key, value) { 67117 if (typeof $replacer == 'function') value = $replacer.call(this, key, value); 67118 if (!isSymbol(value)) return value; 67119 }; 67120 args[1] = replacer; 67121 return _stringify.apply($JSON, args); 67122 } 67123}); 67124 67125// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) 67126$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(58)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); 67127// 19.4.3.5 Symbol.prototype[@@toStringTag] 67128setToStringTag($Symbol, 'Symbol'); 67129// 20.2.1.9 Math[@@toStringTag] 67130setToStringTag(Math, 'Math', true); 67131// 24.3.3 JSON[@@toStringTag] 67132setToStringTag(global.JSON, 'JSON', true); 67133 67134 67135/***/ }), 67136/* 656 */ 67137/***/ (function(module, exports, __webpack_require__) { 67138 67139var META = __webpack_require__(92)('meta'); 67140var isObject = __webpack_require__(60); 67141var has = __webpack_require__(46); 67142var setDesc = __webpack_require__(45).f; 67143var id = 0; 67144var isExtensible = Object.isExtensible || function () { 67145 return true; 67146}; 67147var FREEZE = !__webpack_require__(69)(function () { 67148 return isExtensible(Object.preventExtensions({})); 67149}); 67150var setMeta = function (it) { 67151 setDesc(it, META, { value: { 67152 i: 'O' + ++id, // object ID 67153 w: {} // weak collections IDs 67154 } }); 67155}; 67156var fastKey = function (it, create) { 67157 // return primitive with prefix 67158 if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; 67159 if (!has(it, META)) { 67160 // can't set metadata to uncaught frozen object 67161 if (!isExtensible(it)) return 'F'; 67162 // not necessary to add metadata 67163 if (!create) return 'E'; 67164 // add missing metadata 67165 setMeta(it); 67166 // return object ID 67167 } return it[META].i; 67168}; 67169var getWeak = function (it, create) { 67170 if (!has(it, META)) { 67171 // can't set metadata to uncaught frozen object 67172 if (!isExtensible(it)) return true; 67173 // not necessary to add metadata 67174 if (!create) return false; 67175 // add missing metadata 67176 setMeta(it); 67177 // return hash weak collections IDs 67178 } return it[META].w; 67179}; 67180// add metadata on freeze-family methods calling 67181var onFreeze = function (it) { 67182 if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); 67183 return it; 67184}; 67185var meta = module.exports = { 67186 KEY: META, 67187 NEED: false, 67188 fastKey: fastKey, 67189 getWeak: getWeak, 67190 onFreeze: onFreeze 67191}; 67192 67193 67194/***/ }), 67195/* 657 */ 67196/***/ (function(module, exports, __webpack_require__) { 67197 67198// all enumerable object keys, includes symbols 67199var getKeys = __webpack_require__(71); 67200var gOPS = __webpack_require__(145); 67201var pIE = __webpack_require__(72); 67202module.exports = function (it) { 67203 var result = getKeys(it); 67204 var getSymbols = gOPS.f; 67205 if (getSymbols) { 67206 var symbols = getSymbols(it); 67207 var isEnum = pIE.f; 67208 var i = 0; 67209 var key; 67210 while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); 67211 } return result; 67212}; 67213 67214 67215/***/ }), 67216/* 658 */ 67217/***/ (function(module, exports, __webpack_require__) { 67218 67219// 7.2.2 IsArray(argument) 67220var cof = __webpack_require__(139); 67221module.exports = Array.isArray || function isArray(arg) { 67222 return cof(arg) == 'Array'; 67223}; 67224 67225 67226/***/ }), 67227/* 659 */ 67228/***/ (function(module, exports, __webpack_require__) { 67229 67230// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window 67231var toIObject = __webpack_require__(47); 67232var gOPN = __webpack_require__(369).f; 67233var toString = {}.toString; 67234 67235var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames 67236 ? Object.getOwnPropertyNames(window) : []; 67237 67238var getWindowNames = function (it) { 67239 try { 67240 return gOPN(it); 67241 } catch (e) { 67242 return windowNames.slice(); 67243 } 67244}; 67245 67246module.exports.f = function getOwnPropertyNames(it) { 67247 return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); 67248}; 67249 67250 67251/***/ }), 67252/* 660 */
vendor: 7,824 bytes, lines 67253-67454
67253/***/ (function(module, exports) { 67254 67255 67256 67257/***/ }), 67258/* 661 */ 67259/***/ (function(module, exports, __webpack_require__) { 67260 67261__webpack_require__(151)('asyncIterator'); 67262 67263 67264/***/ }), 67265/* 662 */ 67266/***/ (function(module, exports, __webpack_require__) { 67267 67268__webpack_require__(151)('observable'); 67269 67270 67271/***/ }), 67272/* 663 */ 67273/***/ (function(module, exports, __webpack_require__) { 67274 67275module.exports = { "default": __webpack_require__(664), __esModule: true }; 67276 67277/***/ }), 67278/* 664 */ 67279/***/ (function(module, exports, __webpack_require__) { 67280 67281__webpack_require__(665); 67282module.exports = __webpack_require__(28).Object.setPrototypeOf; 67283 67284 67285/***/ }), 67286/* 665 */ 67287/***/ (function(module, exports, __webpack_require__) { 67288 67289// 19.1.3.19 Object.setPrototypeOf(O, proto) 67290var $export = __webpack_require__(37); 67291$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(666).set }); 67292 67293 67294/***/ }), 67295/* 666 */ 67296/***/ (function(module, exports, __webpack_require__) { 67297 67298// Works with __proto__ only. Old v8 can't work with null proto objects. 67299/* eslint-disable no-proto */ 67300var isObject = __webpack_require__(60); 67301var anObject = __webpack_require__(59); 67302var check = function (O, proto) { 67303 anObject(O); 67304 if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); 67305}; 67306module.exports = { 67307 set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line 67308 function (test, buggy, set) { 67309 try { 67310 set = __webpack_require__(137)(Function.call, __webpack_require__(370).f(Object.prototype, '__proto__').set, 2); 67311 set(test, []); 67312 buggy = !(test instanceof Array); 67313 } catch (e) { buggy = true; } 67314 return function setPrototypeOf(O, proto) { 67315 check(O, proto); 67316 if (buggy) O.__proto__ = proto; 67317 else set(O, proto); 67318 return O; 67319 }; 67320 }({}, false) : undefined), 67321 check: check 67322}; 67323 67324 67325/***/ }), 67326/* 667 */ 67327/***/ (function(module, exports, __webpack_require__) { 67328 67329module.exports = { "default": __webpack_require__(668), __esModule: true }; 67330 67331/***/ }), 67332/* 668 */ 67333/***/ (function(module, exports, __webpack_require__) { 67334 67335__webpack_require__(669); 67336var $Object = __webpack_require__(28).Object; 67337module.exports = function create(P, D) { 67338 return $Object.create(P, D); 67339}; 67340 67341 67342/***/ }), 67343/* 669 */ 67344/***/ (function(module, exports, __webpack_require__) { 67345 67346var $export = __webpack_require__(37); 67347// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 67348$export($export.S, 'Object', { create: __webpack_require__(148) }); 67349 67350 67351/***/ }), 67352/* 670 */ 67353/***/ (function(module, exports, __webpack_require__) { 67354 67355__webpack_require__(671); 67356module.exports = __webpack_require__(28).Object.entries; 67357 67358 67359/***/ }), 67360/* 671 */ 67361/***/ (function(module, exports, __webpack_require__) { 67362 67363// https://github.com/tc39/proposal-object-values-entries 67364var $export = __webpack_require__(37); 67365var $entries = __webpack_require__(373)(true); 67366 67367$export($export.S, 'Object', { 67368 entries: function entries(it) { 67369 return $entries(it); 67370 } 67371}); 67372 67373 67374/***/ }), 67375/* 672 */ 67376/***/ (function(module, __webpack_exports__, __webpack_require__) { 67377 67378"use strict"; 67379/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values__ = __webpack_require__(62); 67380/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values__); 67381/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(6); 67382/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__); 67383/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 67384/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties__); 67385/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 67386/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__); 67387/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 67388/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__); 67389/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(5); 67390/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__); 67391/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames__ = __webpack_require__(8); 67392/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_classnames__); 67393/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react__ = __webpack_require__(0); 67394/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react__); 67395/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types__ = __webpack_require__(2); 67396/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types__); 67397/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 67398/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_StyleConfig__ = __webpack_require__(20); 67399/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__CloseButton__ = __webpack_require__(152); 67400 67401 67402 67403 67404 67405 67406 67407 67408 67409 67410 67411 67412 67413 67414var propTypes = { 67415 onDismiss: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, 67416 closeLabel: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string 67417}; 67418 67419var defaultProps = { 67420 closeLabel: 'Close alert' 67421}; 67422 67423var Alert = function (_React$Component) { 67424 __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(Alert, _React$Component); 67425 67426 function Alert() { 67427 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck___default()(this, Alert); 67428 67429 return __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 67430 } 67431 67432 Alert.prototype.render = function render() { 67433 var _extends2; 67434 67435 var _props = this.props, 67436 onDismiss = _props.onDismiss, 67437 closeLabel = _props.closeLabel, 67438 className = _props.className, 67439 children = _props.children, 67440 props = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['onDismiss', 'closeLabel', 'className', 'children']); 67441 67442 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 67443 bsProps = _splitBsProps[0], 67444 elementProps = _splitBsProps[1]; 67445 67446 var dismissable = !!onDismiss; 67447 var classes = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(bsProps, 'dismissable')] = dismissable, _extends2)); 67448 67449 return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement( 67450 'div', 67451 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, elementProps, { 67452 role: 'alert', 67453 className: __WEBPACK_IMPORTED_MODULE_6_classnames___default()(className, classes) 67454 }),
67455 dismissable && __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11__CloseButton__["a" /* default */], { 67456 onClick: onDismiss, 67457 label: closeLabel 67458 }), 67459 children 67460 ); 67461 }; 67462 67463 return Alert; 67464}(__WEBPACK_IMPORTED_MODULE_7_react___default.a.Component); 67465 67466Alert.propTypes = propTypes; 67467Alert.defaultProps = defaultProps; 67468 67469/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsStyles"])(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values___default()(__WEBPACK_IMPORTED_MODULE_10__utils_StyleConfig__["d" /* State */]), __WEBPACK_IMPORTED_MODULE_10__utils_StyleConfig__["d" /* State */].INFO, Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('alert', Alert))); 67470 67471/***/ }), 67472/* 673 */ 67473/***/ (function(module, exports, __webpack_require__) { 67474 67475__webpack_require__(674); 67476module.exports = __webpack_require__(28).Object.values; 67477 67478 67479/***/ }), 67480/* 674 */ 67481/***/ (function(module, exports, __webpack_require__) { 67482 67483// https://github.com/tc39/proposal-object-values-entries 67484var $export = __webpack_require__(37); 67485var $values = __webpack_require__(373)(false); 67486 67487$export($export.S, 'Object', { 67488 values: function values(it) { 67489 return $values(it); 67490 } 67491}); 67492 67493 67494/***/ }), 67495/* 675 */ 67496/***/ (function(module, __webpack_exports__, __webpack_require__) { 67497 67498"use strict"; 67499/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 67500/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 67501/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 67502/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 67503/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 67504/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 67505/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 67506/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 67507/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 67508/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 67509/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 67510/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 67511/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 67512/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 67513/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 67514/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 67515/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 67516 67517 67518 67519 67520 67521 67522 67523 67524 67525 67526 67527// TODO: `pullRight` doesn't belong here. There's no special handling here. 67528 67529var propTypes = { 67530 pullRight: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool 67531}; 67532 67533var defaultProps = { 67534 pullRight: false 67535}; 67536 67537var Badge = function (_React$Component) { 67538 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Badge, _React$Component); 67539 67540 function Badge() { 67541 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Badge); 67542 67543 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 67544 } 67545 67546 Badge.prototype.hasContent = function hasContent(children) { 67547 var result = false;
67548 67549 __WEBPACK_IMPORTED_MODULE_6_react___default.a.Children.forEach(children, function (child) { 67550 if (result) { 67551 return; 67552 } 67553 67554 if (child || child === 0) { 67555 result = true; 67556 } 67557 }); 67558 67559 return result; 67560 }; 67561 67562 Badge.prototype.render = function render() { 67563 var _props = this.props, 67564 pullRight = _props.pullRight, 67565 className = _props.className, 67566 children = _props.children, 67567 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['pullRight', 'className', 'children']); 67568 67569 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["splitBsProps"])(props), 67570 bsProps = _splitBsProps[0], 67571 elementProps = _splitBsProps[1]; 67572 67573 var classes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["getClassSet"])(bsProps), { 67574 'pull-right': pullRight, 67575 67576 // Hack for collapsing on IE8. 67577 hidden: !this.hasContent(children) 67578 }); 67579 67580 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 67581 'span', 67582 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 67583 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 67584 }), 67585 children 67586 ); 67587 }; 67588 67589 return Badge; 67590}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 67591 67592Badge.propTypes = propTypes; 67593Badge.defaultProps = defaultProps; 67594 67595/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsClass"])('badge', Badge)); 67596 67597/***/ }), 67598/* 676 */ 67599/***/ (function(module, __webpack_exports__, __webpack_require__) { 67600 67601"use strict"; 67602/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 67603/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 67604/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 67605/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 67606/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 67607/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 67608/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 67609/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 67610/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 67611/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 67612/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 67613/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 67614/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 67615/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 67616/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__BreadcrumbItem__ = __webpack_require__(374); 67617/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 67618 67619 67620 67621 67622 67623 67624 67625 67626 67627 67628 67629var Breadcrumb = function (_React$Component) { 67630 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Breadcrumb, _React$Component); 67631 67632 function Breadcrumb() { 67633 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Breadcrumb); 67634 67635 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 67636 } 67637 67638 Breadcrumb.prototype.render = function render() { 67639 var _props = this.props, 67640 className = _props.className, 67641 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['className']); 67642 67643 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["splitBsProps"])(props), 67644 bsProps = _splitBsProps[0], 67645 elementProps = _splitBsProps[1]; 67646 67647 var classes = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["getClassSet"])(bsProps); 67648 67649 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('ol', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 67650 role: 'navigation', 67651 'aria-label': 'breadcrumbs', 67652 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 67653 })); 67654 }; 67655 67656 return Breadcrumb; 67657}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 67658 67659Breadcrumb.Item = __WEBPACK_IMPORTED_MODULE_7__BreadcrumbItem__["a" /* default */]; 67660 67661/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsClass"])('breadcrumb', Breadcrumb)); 67662 67663/***/ }), 67664/* 677 */ 67665/***/ (function(module, exports, __webpack_require__) { 67666 67667"use strict"; 67668 67669 67670if (false) { 67671 module.exports = require('./cjs/react-is.production.min.js'); 67672} else { 67673 module.exports = __webpack_require__(678); 67674} 67675 67676 67677/***/ }), 67678/* 678 */ 67679/***/ (function(module, exports, __webpack_require__) { 67680 67681"use strict"; 67682/** @license React v16.5.2 67683 * react-is.development.js 67684 * 67685 * Copyright (c) Facebook, Inc. and its affiliates. 67686 * 67687 * This source code is licensed under the MIT license found in the 67688 * LICENSE file in the root directory of this source tree. 67689 */ 67690 67691 67692 67693 67694 67695if (true) { 67696 (function() { 67697'use strict'; 67698 67699Object.defineProperty(exports, '__esModule', { value: true }); 67700 67701// The Symbol used to tag the ReactElement-like types. If there is no native Symbol 67702// nor polyfill, then a plain number is used for performance. 67703var hasSymbol = typeof Symbol === 'function' && Symbol.for; 67704 67705var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; 67706var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; 67707var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; 67708var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; 67709var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; 67710var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider')
vendor: 10,987 bytes, lines 67710-67937
67710: 0xeacd; 67711var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; 67712var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf; 67713var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; 67714var REACT_PLACEHOLDER_TYPE = hasSymbol ? Symbol.for('react.placeholder') : 0xead1; 67715 67716function isValidElementType(type) { 67717 return typeof type === 'string' || typeof type === 'function' || 67718 // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. 67719 type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_PLACEHOLDER_TYPE || typeof type === 'object' && type !== null && (typeof type.then === 'function' || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE); 67720} 67721 67722function typeOf(object) { 67723 if (typeof object === 'object' && object !== null) { 67724 var $$typeof = object.$$typeof; 67725 67726 switch ($$typeof) { 67727 case REACT_ELEMENT_TYPE: 67728 var type = object.type; 67729 67730 switch (type) { 67731 case REACT_ASYNC_MODE_TYPE: 67732 case REACT_FRAGMENT_TYPE: 67733 case REACT_PROFILER_TYPE: 67734 case REACT_STRICT_MODE_TYPE: 67735 return type; 67736 default: 67737 var $$typeofType = type && type.$$typeof; 67738 67739 switch ($$typeofType) { 67740 case REACT_CONTEXT_TYPE: 67741 case REACT_FORWARD_REF_TYPE: 67742 case REACT_PROVIDER_TYPE: 67743 return $$typeofType; 67744 default: 67745 return $$typeof; 67746 } 67747 } 67748 case REACT_PORTAL_TYPE: 67749 return $$typeof; 67750 } 67751 } 67752 67753 return undefined; 67754} 67755 67756var AsyncMode = REACT_ASYNC_MODE_TYPE; 67757var ContextConsumer = REACT_CONTEXT_TYPE; 67758var ContextProvider = REACT_PROVIDER_TYPE; 67759var Element = REACT_ELEMENT_TYPE; 67760var ForwardRef = REACT_FORWARD_REF_TYPE; 67761var Fragment = REACT_FRAGMENT_TYPE; 67762var Profiler = REACT_PROFILER_TYPE; 67763var Portal = REACT_PORTAL_TYPE; 67764var StrictMode = REACT_STRICT_MODE_TYPE; 67765 67766function isAsyncMode(object) { 67767 return typeOf(object) === REACT_ASYNC_MODE_TYPE; 67768} 67769function isContextConsumer(object) { 67770 return typeOf(object) === REACT_CONTEXT_TYPE; 67771} 67772function isContextProvider(object) { 67773 return typeOf(object) === REACT_PROVIDER_TYPE; 67774} 67775function isElement(object) { 67776 return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; 67777} 67778function isForwardRef(object) { 67779 return typeOf(object) === REACT_FORWARD_REF_TYPE; 67780} 67781function isFragment(object) { 67782 return typeOf(object) === REACT_FRAGMENT_TYPE; 67783} 67784function isProfiler(object) { 67785 return typeOf(object) === REACT_PROFILER_TYPE; 67786} 67787function isPortal(object) { 67788 return typeOf(object) === REACT_PORTAL_TYPE; 67789} 67790function isStrictMode(object) { 67791 return typeOf(object) === REACT_STRICT_MODE_TYPE; 67792} 67793 67794exports.typeOf = typeOf; 67795exports.AsyncMode = AsyncMode; 67796exports.ContextConsumer = ContextConsumer; 67797exports.ContextProvider = ContextProvider; 67798exports.Element = Element; 67799exports.ForwardRef = ForwardRef; 67800exports.Fragment = Fragment; 67801exports.Profiler = Profiler; 67802exports.Portal = Portal; 67803exports.StrictMode = StrictMode; 67804exports.isValidElementType = isValidElementType; 67805exports.isAsyncMode = isAsyncMode; 67806exports.isContextConsumer = isContextConsumer; 67807exports.isContextProvider = isContextProvider; 67808exports.isElement = isElement; 67809exports.isForwardRef = isForwardRef; 67810exports.isFragment = isFragment; 67811exports.isProfiler = isProfiler; 67812exports.isPortal = isPortal; 67813exports.isStrictMode = isStrictMode; 67814 })(); 67815} 67816 67817 67818/***/ }), 67819/* 679 */ 67820/***/ (function(module, __webpack_exports__, __webpack_require__) { 67821 67822"use strict"; 67823/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 67824/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 67825/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 67826/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 67827/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 67828/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 67829/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 67830/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 67831/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 67832/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 67833/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 67834/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 67835/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 67836/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 67837/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__ = __webpack_require__(9); 67838 67839 67840 67841 67842 67843 67844 67845 67846 67847 67848var ButtonToolbar = function (_React$Component) { 67849 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(ButtonToolbar, _React$Component); 67850 67851 function ButtonToolbar() { 67852 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, ButtonToolbar); 67853 67854 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 67855 } 67856 67857 ButtonToolbar.prototype.render = function render() { 67858 var _props = this.props, 67859 className = _props.className, 67860 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['className']); 67861 67862 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["splitBsProps"])(props), 67863 bsProps = _splitBsProps[0], 67864 elementProps = _splitBsProps[1]; 67865 67866 var classes = Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["getClassSet"])(bsProps); 67867 67868 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('div', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 67869 role: 'toolbar', 67870 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 67871 })); 67872 }; 67873 67874 return ButtonToolbar; 67875}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 67876 67877/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["bsClass"])('btn-toolbar', ButtonToolbar)); 67878 67879/***/ }), 67880/* 680 */ 67881/***/ (function(module, __webpack_exports__, __webpack_require__) { 67882 67883"use strict"; 67884/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 67885/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 67886/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 67887/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 67888/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 67889/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 67890/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 67891/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 67892/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 67893/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 67894/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 67895/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 67896/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 67897/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 67898/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 67899/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 67900/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__CarouselCaption__ = __webpack_require__(681); 67901/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__CarouselItem__ = __webpack_require__(375); 67902/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Glyphicon__ = __webpack_require__(154); 67903/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__SafeAnchor__ = __webpack_require__(34); 67904/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__ = __webpack_require__(9); 67905/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__utils_ValidComponentChildren__ = __webpack_require__(22); 67906 67907 67908 67909 67910 67911 67912 67913 67914 67915 67916 67917 67918 67919 67920 67921 67922// TODO: `slide` should be `animate`. 67923 67924// TODO: Use uncontrollable. 67925 67926var propTypes = { 67927 slide: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 67928 indicators: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 67929 /** 67930 * The amount of time to delay between automatically cycling an item. 67931 * If `null`, carousel will not automatically cycle. 67932 */ 67933 interval: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 67934 controls: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 67935 pauseOnHover: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 67936 wrap: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 67937 /**
67938 * Callback fired when the active item changes. 67939 * 67940 * ```js 67941 * (eventKey: any) => any | (eventKey: any, event: Object) => any 67942 * ``` 67943 * 67944 * If this callback takes two or more arguments, the second argument will 67945 * be a persisted event object with `direction` set to the direction of the 67946 * transition. 67947 */ 67948 onSelect: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 67949 onSlideEnd: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 67950 activeIndex: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 67951 defaultActiveIndex: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 67952 direction: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOf(['prev', 'next']), 67953 prevIcon: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.node, 67954 /** 67955 * Label shown to screen readers only, can be used to show the previous element 67956 * in the carousel. 67957 * Set to null to deactivate. 67958 */ 67959 prevLabel: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 67960 nextIcon: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.node, 67961 /** 67962 * Label shown to screen readers only, can be used to show the next element 67963 * in the carousel. 67964 * Set to null to deactivate. 67965 */ 67966 nextLabel: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string 67967}; 67968 67969var defaultProps = { 67970 slide: true, 67971 interval: 5000, 67972 pauseOnHover: true, 67973 wrap: true, 67974 indicators: true, 67975 controls: true, 67976 prevIcon: __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__Glyphicon__["a" /* default */], { glyph: 'chevron-left' }), 67977 prevLabel: 'Previous', 67978 nextIcon: __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__Glyphicon__["a" /* default */], { glyph: 'chevron-right' }), 67979 nextLabel: 'Next' 67980}; 67981 67982var Carousel = function (_React$Component) { 67983 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Carousel, _React$Component); 67984 67985 function Carousel(props, context) { 67986 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Carousel); 67987 67988 var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props, context)); 67989 67990 _this.handleMouseOver = _this.handleMouseOver.bind(_this); 67991 _this.handleMouseOut = _this.handleMouseOut.bind(_this); 67992 _this.handlePrev = _this.handlePrev.bind(_this); 67993 _this.handleNext = _this.handleNext.bind(_this); 67994 _this.handleItemAnimateOutEnd = _this.handleItemAnimateOutEnd.bind(_this); 67995 67996 var defaultActiveIndex = props.defaultActiveIndex; 67997 67998 67999 _this.state = { 68000 activeIndex: defaultActiveIndex != null ? defaultActiveIndex : 0, 68001 previousActiveIndex: null, 68002 direction: null 68003 }; 68004 68005 _this.isUnmounted = false; 68006 return _this; 68007 } 68008 68009 Carousel.prototype.componentDidMount = function componentDidMount() { 68010 this.waitForNext(); 68011 }; 68012 68013 Carousel.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { 68014 var activeIndex = this.getActiveIndex(); 68015 68016 if (nextProps.activeIndex != null && nextProps.activeIndex !== activeIndex) { 68017 clearTimeout(this.timeout); 68018 68019 this.setState({ 68020 previousActiveIndex: activeIndex, 68021 direction: nextProps.direction != null ? nextProps.direction : this.getDirection(activeIndex, nextProps.activeIndex) 68022 }); 68023 } 68024 68025 if (nextProps.activeIndex == null && this.state.activeIndex >= nextProps.children.length) { 68026 this.setState({ 68027 activeIndex: 0, 68028 previousActiveIndex: null, 68029 direction: null 68030 }); 68031 } 68032 }; 68033 68034 Carousel.prototype.componentWillUnmount = function componentWillUnmount() { 68035 clearTimeout(this.timeout); 68036 this.isUnmounted = true; 68037 }; 68038 68039 Carousel.prototype.getActiveIndex = function getActiveIndex() { 68040 var activeIndexProp = this.props.activeIndex; 68041 return activeIndexProp != null ? activeIndexProp : this.state.activeIndex; 68042 }; 68043 68044 Carousel.prototype.getDirection = function getDirection(prevIndex, index) { 68045 if (prevIndex === index) { 68046 return null; 68047 } 68048 68049 return prevIndex > index ? 'prev' : 'next'; 68050 }; 68051 68052 Carousel.prototype.handleItemAnimateOutEnd = function handleItemAnimateOutEnd() { 68053 var _this2 = this; 68054 68055 this.setState({ 68056 previousActiveIndex: null, 68057 direction: null 68058 }, function () { 68059 _this2.waitForNext(); 68060 68061 if (_this2.props.onSlideEnd) { 68062 _this2.props.onSlideEnd(); 68063 } 68064 }); 68065 }; 68066 68067 Carousel.prototype.handleMouseOut = function handleMouseOut() { 68068 if (this.isPaused) { 68069 this.play(); 68070 } 68071 }; 68072 68073 Carousel.prototype.handleMouseOver = function handleMouseOver() { 68074 if (this.props.pauseOnHover) { 68075 this.pause(); 68076 } 68077 }; 68078 68079 Carousel.prototype.handleNext = function handleNext(e) { 68080 var index = this.getActiveIndex() + 1; 68081 var count = __WEBPACK_IMPORTED_MODULE_13__utils_ValidComponentChildren__["a" /* default */].count(this.props.children); 68082 68083 if (index > count - 1) { 68084 if (!this.props.wrap) { 68085 return; 68086 } 68087 index = 0; 68088 } 68089 68090 this.select(index, e, 'next'); 68091 }; 68092 68093 Carousel.prototype.handlePrev = function handlePrev(e) { 68094 var index = this.getActiveIndex() - 1; 68095 68096 if (index < 0) { 68097 if (!this.props.wrap) { 68098 return; 68099 } 68100 index = __WEBPACK_IMPORTED_MODULE_13__utils_ValidComponentChildren__["a" /* default */].count(this.props.children) - 1; 68101 } 68102 68103 this.select(index, e, 'prev'); 68104 }; 68105 68106 // This might be a public API. 68107 68108 68109 Carousel.prototype.pause = function pause() { 68110 this.isPaused = true; 68111 clearTimeout(this.timeout); 68112 }; 68113 68114 // This might be a public API. 68115 68116 68117 Carousel.prototype.play = function play() { 68118 this.isPaused = false;
68119 this.waitForNext(); 68120 }; 68121 68122 Carousel.prototype.select = function select(index, e, direction) { 68123 clearTimeout(this.timeout); 68124 68125 // TODO: Is this necessary? Seems like the only risk is if the component 68126 // unmounts while handleItemAnimateOutEnd fires. 68127 if (this.isUnmounted) { 68128 return; 68129 } 68130 68131 var previousActiveIndex = this.props.slide ? this.getActiveIndex() : null; 68132 direction = direction || this.getDirection(previousActiveIndex, index); 68133 68134 var onSelect = this.props.onSelect; 68135 68136 68137 if (onSelect) { 68138 if (onSelect.length > 1) { 68139 // React SyntheticEvents are pooled, so we need to remove this event 68140 // from the pool to add a custom property. To avoid unnecessarily 68141 // removing objects from the pool, only do this when the listener 68142 // actually wants the event. 68143 if (e) { 68144 e.persist(); 68145 e.direction = direction; 68146 } else { 68147 e = { direction: direction }; 68148 } 68149 68150 onSelect(index, e); 68151 } else { 68152 onSelect(index); 68153 } 68154 } 68155 68156 if (this.props.activeIndex == null && index !== previousActiveIndex) { 68157 if (this.state.previousActiveIndex != null) { 68158 // If currently animating don't activate the new index. 68159 // TODO: look into queueing this canceled call and 68160 // animating after the current animation has ended. 68161 return; 68162 } 68163 68164 this.setState({ 68165 activeIndex: index, 68166 previousActiveIndex: previousActiveIndex, 68167 direction: direction 68168 }); 68169 } 68170 }; 68171 68172 Carousel.prototype.waitForNext = function waitForNext() { 68173 var _props = this.props, 68174 slide = _props.slide, 68175 interval = _props.interval, 68176 activeIndexProp = _props.activeIndex; 68177 68178 68179 if (!this.isPaused && slide && interval && activeIndexProp == null) { 68180 this.timeout = setTimeout(this.handleNext, interval); 68181 } 68182 }; 68183 68184 Carousel.prototype.renderControls = function renderControls(properties) { 68185 var wrap = properties.wrap, 68186 children = properties.children, 68187 activeIndex = properties.activeIndex, 68188 prevIcon = properties.prevIcon, 68189 nextIcon = properties.nextIcon, 68190 bsProps = properties.bsProps, 68191 prevLabel = properties.prevLabel, 68192 nextLabel = properties.nextLabel; 68193 68194 var controlClassName = Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["prefix"])(bsProps, 'control'); 68195 var count = __WEBPACK_IMPORTED_MODULE_13__utils_ValidComponentChildren__["a" /* default */].count(children); 68196 68197 return [(wrap || activeIndex !== 0) && __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 68198 __WEBPACK_IMPORTED_MODULE_11__SafeAnchor__["a" /* default */], 68199 { 68200 key: 'prev', 68201 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(controlClassName, 'left'), 68202 onClick: this.handlePrev 68203 }, 68204 prevIcon, 68205 prevLabel && __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 68206 'span', 68207 { className: 'sr-only' }, 68208 prevLabel 68209 ) 68210 ), (wrap || activeIndex !== count - 1) && __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 68211 __WEBPACK_IMPORTED_MODULE_11__SafeAnchor__["a" /* default */], 68212 { 68213 key: 'next', 68214 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(controlClassName, 'right'), 68215 onClick: this.handleNext 68216 }, 68217 nextIcon, 68218 nextLabel && __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 68219 'span', 68220 { className: 'sr-only' }, 68221 nextLabel 68222 ) 68223 )]; 68224 }; 68225 68226 Carousel.prototype.renderIndicators = function renderIndicators(children, activeIndex, bsProps) { 68227 var _this3 = this; 68228 68229 var indicators = []; 68230 68231 __WEBPACK_IMPORTED_MODULE_13__utils_ValidComponentChildren__["a" /* default */].forEach(children, function (child, index) { 68232 indicators.push(__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('li', { 68233 key: index, 68234 className: index === activeIndex ? 'active' : null, 68235 onClick: function onClick(e) { 68236 return _this3.select(index, e); 68237 } 68238 }), 68239 68240 // Force whitespace between indicator elements. Bootstrap requires
68241 // this for correct spacing of elements. 68242 ' '); 68243 }); 68244 68245 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 68246 'ol', 68247 { className: Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["prefix"])(bsProps, 'indicators') }, 68248 indicators 68249 ); 68250 }; 68251 68252 Carousel.prototype.render = function render() { 68253 var _this4 = this; 68254 68255 var _props2 = this.props, 68256 slide = _props2.slide, 68257 indicators = _props2.indicators, 68258 controls = _props2.controls, 68259 wrap = _props2.wrap, 68260 prevIcon = _props2.prevIcon, 68261 prevLabel = _props2.prevLabel, 68262 nextIcon = _props2.nextIcon, 68263 nextLabel = _props2.nextLabel, 68264 className = _props2.className, 68265 children = _props2.children, 68266 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props2, ['slide', 'indicators', 'controls', 'wrap', 'prevIcon', 'prevLabel', 'nextIcon', 'nextLabel', 'className', 'children']); 68267 68268 var _state = this.state, 68269 previousActiveIndex = _state.previousActiveIndex, 68270 direction = _state.direction; 68271 68272 var _splitBsPropsAndOmit = Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["splitBsPropsAndOmit"])(props, ['interval', 'pauseOnHover', 'onSelect', 'onSlideEnd', 'activeIndex', // Accessed via this.getActiveIndex(). 68273 'defaultActiveIndex', 'direction']), 68274 bsProps = _splitBsPropsAndOmit[0], 68275 elementProps = _splitBsPropsAndOmit[1]; 68276 68277 var activeIndex = this.getActiveIndex(); 68278 68279 var classes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["getClassSet"])(bsProps), { 68280 slide: slide 68281 }); 68282 68283 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 68284 'div', 68285 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 68286 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes), 68287 onMouseOver: this.handleMouseOver, 68288 onMouseOut: this.handleMouseOut 68289 }), 68290 indicators && this.renderIndicators(children, activeIndex, bsProps), 68291 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 68292 'div', 68293 { className: Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["prefix"])(bsProps, 'inner') }, 68294 __WEBPACK_IMPORTED_MODULE_13__utils_ValidComponentChildren__["a" /* default */].map(children, function (child, index) { 68295 var active = index === activeIndex; 68296 var previousActive = slide && index === previousActiveIndex; 68297 68298 return Object(__WEBPACK_IMPORTED_MODULE_6_react__["cloneElement"])(child, { 68299 active: active, 68300 index: index, 68301 animateOut: previousActive, 68302 animateIn: active && previousActiveIndex != null && slide, 68303 direction: direction, 68304 onAnimateOutEnd: previousActive ? _this4.handleItemAnimateOutEnd : null 68305 }); 68306 }) 68307 ), 68308 controls && this.renderControls({ 68309 wrap: wrap, 68310 children: children, 68311 activeIndex: activeIndex, 68312 prevIcon: prevIcon, 68313 prevLabel: prevLabel, 68314 nextIcon: nextIcon, 68315 nextLabel: nextLabel, 68316 bsProps: bsProps 68317 }) 68318 ); 68319 }; 68320 68321 return Carousel; 68322}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 68323 68324Carousel.propTypes = propTypes; 68325Carousel.defaultProps = defaultProps; 68326 68327Carousel.Caption = __WEBPACK_IMPORTED_MODULE_8__CarouselCaption__["a" /* default */]; 68328Carousel.Item = __WEBPACK_IMPORTED_MODULE_9__CarouselItem__["a" /* default */]; 68329 68330/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["bsClass"])('carousel', Carousel)); 68331 68332/***/ }), 68333/* 681 */ 68334/***/ (function(module, __webpack_exports__, __webpack_require__) { 68335 68336"use strict"; 68337/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 68338/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 68339/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 68340/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 68341/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 68342/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 68343/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 68344/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 68345/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 68346/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 68347/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 68348/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 68349/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 68350/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 68351/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__ = __webpack_require__(13); 68352/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__); 68353/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 68354 68355 68356 68357 68358 68359 68360 68361 68362 68363 68364 68365var propTypes = { 68366 componentClass: __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default.a 68367}; 68368 68369var defaultProps = { 68370 componentClass: 'div' 68371}; 68372 68373var CarouselCaption = function (_React$Component) { 68374 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(CarouselCaption, _React$Component); 68375 68376 function CarouselCaption() { 68377 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, CarouselCaption); 68378 68379 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 68380 } 68381 68382 CarouselCaption.prototype.render = function render() { 68383 var _props = this.props, 68384 Component = _props.componentClass, 68385 className = _props.className, 68386 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['componentClass', 'className']); 68387 68388 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["splitBsProps"])(props), 68389 bsProps = _splitBsProps[0], 68390 elementProps = _splitBsProps[1]; 68391 68392 var classes = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["getClassSet"])(bsProps); 68393 68394 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 68395 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 68396 })); 68397 }; 68398 68399 return CarouselCaption; 68400}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 68401
68402CarouselCaption.propTypes = propTypes; 68403CarouselCaption.defaultProps = defaultProps; 68404 68405/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsClass"])('carousel-caption', CarouselCaption)); 68406 68407/***/ }), 68408/* 682 */ 68409/***/ (function(module, __webpack_exports__, __webpack_require__) { 68410 68411"use strict"; 68412/** 68413 * Copyright 2013-2014, Facebook, Inc. 68414 * All rights reserved. 68415 * 68416 * This file contains a modified version of: 68417 * https://github.com/facebook/react/blob/v0.12.0/src/addons/transitions/ReactTransitionEvents.js 68418 * 68419 * This source code is licensed under the BSD-style license found here: 68420 * https://github.com/facebook/react/blob/v0.12.0/LICENSE 68421 * An additional grant of patent rights can be found here: 68422 * https://github.com/facebook/react/blob/v0.12.0/PATENTS 68423 */ 68424 68425var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); 68426 68427/** 68428 * EVENT_NAME_MAP is used to determine which event fired when a 68429 * transition/animation ends, based on the style property used to 68430 * define that event. 68431 */ 68432var EVENT_NAME_MAP = { 68433 transitionend: { 68434 transition: 'transitionend', 68435 WebkitTransition: 'webkitTransitionEnd', 68436 MozTransition: 'mozTransitionEnd', 68437 OTransition: 'oTransitionEnd', 68438 msTransition: 'MSTransitionEnd' 68439 }, 68440 68441 animationend: { 68442 animation: 'animationend', 68443 WebkitAnimation: 'webkitAnimationEnd', 68444 MozAnimation: 'mozAnimationEnd', 68445 OAnimation: 'oAnimationEnd', 68446 msAnimation: 'MSAnimationEnd' 68447 } 68448}; 68449 68450var endEvents = []; 68451 68452function detectEvents() { 68453 var testEl = document.createElement('div'); 68454 var style = testEl.style; 68455 68456 // On some platforms, in particular some releases of Android 4.x, 68457 // the un-prefixed "animation" and "transition" properties are defined on the 68458 // style object but the events that fire will still be prefixed, so we need 68459 // to check if the un-prefixed events are useable, and if not remove them 68460 // from the map 68461 if (!('AnimationEvent' in window)) { 68462 delete EVENT_NAME_MAP.animationend.animation; 68463 } 68464 68465 if (!('TransitionEvent' in window)) { 68466 delete EVENT_NAME_MAP.transitionend.transition; 68467 } 68468 68469 for (var baseEventName in EVENT_NAME_MAP) { 68470 // eslint-disable-line guard-for-in 68471 var baseEvents = EVENT_NAME_MAP[baseEventName]; 68472 for (var styleName in baseEvents) { 68473 // eslint-disable-line guard-for-in 68474 if (styleName in style) { 68475 endEvents.push(baseEvents[styleName]); 68476 break; 68477 } 68478 } 68479 } 68480} 68481 68482if (canUseDOM) { 68483 detectEvents(); 68484} 68485 68486// We use the raw {add|remove}EventListener() call because EventListener 68487// does not know how to remove event listeners and we really should 68488// clean up. Also, these events are not triggered in older browsers 68489// so we should be A-OK here. 68490 68491function addEventListener(node, eventName, eventListener) { 68492 node.addEventListener(eventName, eventListener, false); 68493} 68494 68495function removeEventListener(node, eventName, eventListener) { 68496 node.removeEventListener(eventName, eventListener, false); 68497} 68498 68499var ReactTransitionEvents = { 68500 addEndEventListener: function addEndEventListener(node, eventListener) { 68501 if (endEvents.length === 0) { 68502 // If CSS transitions are not supported, trigger an "end animation" 68503 // event immediately. 68504 window.setTimeout(eventListener, 0); 68505 return; 68506 } 68507 endEvents.forEach(function (endEvent) { 68508 addEventListener(node, endEvent, eventListener); 68509 }); 68510 }, 68511 removeEndEventListener: function removeEndEventListener(node, eventListener) { 68512 if (endEvents.length === 0) { 68513 return; 68514 } 68515 endEvents.forEach(function (endEvent) { 68516 removeEventListener(node, endEvent, eventListener); 68517 }); 68518 } 68519}; 68520 68521/* harmony default export */ __webpack_exports__["a"] = (ReactTransitionEvents); 68522 68523/***/ }), 68524/* 683 */ 68525/***/ (function(module, __webpack_exports__, __webpack_require__) { 68526 68527"use strict"; 68528/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 68529/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 68530/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 68531/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 68532/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 68533/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 68534/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 68535/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 68536/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 68537/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 68538/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 68539/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 68540/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 68541/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 68542/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 68543/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 68544/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_warning__ = __webpack_require__(19); 68545/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_warning__); 68546/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 68547 68548 68549 68550 68551 68552/* eslint-disable jsx-a11y/label-has-for */ 68553 68554 68555 68556 68557 68558 68559 68560 68561var propTypes = { 68562 inline: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 68563 disabled: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 68564 title: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 68565 /** 68566 * Only valid if `inline` is not set. 68567 */ 68568 validationState: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOf(['success', 'warning', 'error', null]), 68569 /** 68570 * Attaches a ref to the `<input>` element. Only functions can be used here. 68571 * 68572 * ```js 68573 * <Checkbox inputRef={ref => { this.input = ref; }} /> 68574 * ``` 68575 */ 68576 inputRef: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func 68577}; 68578 68579var defaultProps = { 68580 inline: false, 68581 disabled: false, 68582 title: '' 68583}; 68584 68585var Checkbox = function (_React$Component) { 68586 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Checkbox, _React$Component); 68587 68588 function Checkbox() { 68589 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Checkbox); 68590 68591 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 68592 } 68593 68594 Checkbox.prototype.render = function render() { 68595 var _props = this.props, 68596 inline = _props.inline, 68597 disabled = _props.disabled, 68598 validationState = _props.validationState, 68599 inputRef = _props.inputRef, 68600 className = _props.className, 68601 style = _props.style, 68602 title = _props.title, 68603 children = _props.children, 68604 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['inline', 'disabled', 'validationState', 'inputRef', 'className', 'style', 'title', 'children']); 68605 68606 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 68607 bsProps = _splitBsProps[0], 68608 elementProps = _splitBsProps[1]; 68609 68610 var input = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('input', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 68611 ref: inputRef, 68612 type: 'checkbox', 68613 disabled: disabled 68614 })); 68615 68616 if (inline) { 68617 var _classes2; 68618 68619 var _classes = (_classes2 = {}, _classes2[Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(bsProps, 'inline')] = true, _classes2.disabled = disabled, _classes2); 68620 68621 // Use a warning here instead of in propTypes to get better-looking 68622 // generated documentation. 68623 true ? __WEBPACK_IMPORTED_MODULE_8_warning___default()(!validationState, '`validationState` is ignored on `<Checkbox inline>`. To display ' + 'validation state on an inline checkbox, set `val
68623idationState` on a ' + 'parent `<FormGroup>` or other element instead.') : void 0; 68624 68625 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 68626 'label', 68627 { className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, _classes), style: style, title: title }, 68628 input, 68629 children 68630 ); 68631 } 68632 68633 var classes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["getClassSet"])(bsProps), { 68634 disabled: disabled 68635 }); 68636 if (validationState) { 68637 classes['has-' + validationState] = true; 68638 } 68639 68640 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 68641 'div', 68642 { className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes), style: style }, 68643 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 68644 'label', 68645 { title: title }, 68646 input, 68647 children 68648 ) 68649 ); 68650 }; 68651 68652 return Checkbox; 68653}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 68654 68655Checkbox.propTypes = propTypes; 68656Checkbox.defaultProps = defaultProps; 68657 68658/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('checkbox', Checkbox)); 68659 68660/***/ }), 68661/* 684 */ 68662/***/ (function(module, __webpack_exports__, __webpack_require__) { 68663 68664"use strict"; 68665/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 68666/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 68667/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 68668/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 68669/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 68670/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 68671/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 68672/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 68673/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 68674/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 68675/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 68676/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 68677/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 68678/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 68679/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 68680/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 68681/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__ = __webpack_require__(13); 68682/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__); 68683/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 68684/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_capitalize__ = __webpack_require__(376); 68685/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__ = __webpack_require__(20); 68686 68687 68688 68689 68690 68691 68692 68693 68694 68695 68696 68697 68698 68699 68700var propTypes = { 68701 componentClass: __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default.a, 68702 68703 /** 68704 * Apply clearfix 68705 * 68706 * on Extra small devices Phones 68707 * 68708 * adds class `visible-xs-block` 68709 */ 68710 visibleXsBlock: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 68711 /** 68712 * Apply clearfix 68713 * 68714 * on Small devices Tablets 68715 * 68716 * adds class `visible-sm-block` 68717 */ 68718 visibleSmBlock: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 68719 /** 68720 * Apply clearfix 68721 * 68722 * on Medium devices Desktops 68723 * 68724 * adds class `visible-md-block` 68725 */ 68726 visibleMdBlock: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 68727 /** 68728 * Apply clearfix 68729 * 68730 * on Large devices Desktops 68731 * 68732 * adds class `visible-lg-block` 68733 */ 68734 visibleLgBlock: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool 68735}; 68736 68737var defaultProps = { 68738 componentClass: 'div' 68739}; 68740 68741var Clearfix = function (_React$Component) { 68742 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Clearfix, _React$Component); 68743 68744 function Clearfix() { 68745 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Clearfix); 68746 68747 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 68748 } 68749 68750 Clearfix.prototype.render = function render() { 68751 var _props = this.props, 68752 Component = _props.componentClass, 68753 className = _props.className, 68754 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['componentClass', 'className']); 68755 68756 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 68757 bsProps = _splitBsProps[0], 68758 elementProps = _splitBsProps[1]; 68759 68760 var classes = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["getClassSet"])(bsProps); 68761 68762 __WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["a" /* DEVICE_SIZES */].forEac
68762h(function (size) { 68763 var propName = 'visible' + Object(__WEBPACK_IMPORTED_MODULE_10__utils_capitalize__["a" /* default */])(size) + 'Block'; 68764 if (elementProps[propName]) { 68765 classes['visible-' + size + '-block'] = true; 68766 } 68767 68768 delete elementProps[propName]; 68769 }); 68770 68771 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 68772 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 68773 })); 68774 }; 68775 68776 return Clearfix; 68777}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 68778 68779Clearfix.propTypes = propTypes; 68780Clearfix.defaultProps = defaultProps; 68781 68782/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('clearfix', Clearfix)); 68783 68784/***/ }), 68785/* 685 */ 68786/***/ (function(module, __webpack_exports__, __webpack_require__) { 68787 68788"use strict"; 68789/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 68790/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 68791/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 68792/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 68793/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 68794/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 68795/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 68796/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 68797/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 68798/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 68799/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 68800/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 68801/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 68802/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 68803/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 68804/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 68805/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_warning__ = __webpack_require__(19); 68806/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_warning__); 68807/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 68808 68809 68810 68811 68812 68813 68814 68815 68816 68817 68818 68819 68820var propTypes = { 68821 /** 68822 * Uses `controlId` from `<FormGroup>` if not explicitly specified. 68823 */ 68824 htmlFor: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 68825 srOnly: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool 68826}; 68827 68828var defaultProps = { 68829 srOnly: false 68830}; 68831 68832var contextTypes = { 68833 $bs_formGroup: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object 68834}; 68835 68836var ControlLabel = function (_React$Component) { 68837 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(ControlLabel, _React$Component); 68838 68839 function ControlLabel() { 68840 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Control
68840Label); 68841 68842 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 68843 } 68844 68845 ControlLabel.prototype.render = function render() { 68846 var formGroup = this.context.$bs_formGroup; 68847 var controlId = formGroup && formGroup.controlId; 68848 68849 var _props = this.props, 68850 _props$htmlFor = _props.htmlFor, 68851 htmlFor = _props$htmlFor === undefined ? controlId : _props$htmlFor, 68852 srOnly = _props.srOnly, 68853 className = _props.className, 68854 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['htmlFor', 'srOnly', 'className']); 68855 68856 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 68857 bsProps = _splitBsProps[0], 68858 elementProps = _splitBsProps[1]; 68859 68860 true ? __WEBPACK_IMPORTED_MODULE_8_warning___default()(controlId == null || htmlFor === controlId, '`controlId` is ignored on `<ControlLabel>` when `htmlFor` is specified.') : void 0; 68861 68862 var classes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["getClassSet"])(bsProps), { 68863 'sr-only': srOnly 68864 }); 68865 68866 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('label', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 68867 htmlFor: htmlFor, 68868 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 68869 })); 68870 }; 68871 68872 return ControlLabel; 68873}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 68874 68875ControlLabel.propTypes = propTypes; 68876ControlLabel.defaultProps = defaultProps; 68877ControlLabel.contextTypes = contextTypes; 68878 68879/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('control-label', ControlLabel)); 68880 68881/***/ }), 68882/* 686 */ 68883/***/ (function(module, __webpack_exports__, __webpack_require__) { 68884 68885"use strict"; 68886/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 68887/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 68888/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 68889/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 68890/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 68891/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 68892/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 68893/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 68894/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 68895/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 68896/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 68897/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 68898/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 68899/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 68900/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 68901/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 68902/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__ = __webpack_require__(13); 68903/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__); 68904/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 68905/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_StyleConfig__ = __webpack_require__(20); 68906 68907 68908 68909 68910 68911 68912 68913 68914 68915 68916 68917 68918 68919var propTypes = { 68920 componentClass: __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default.a, 68921 68922 /**
68923 * The number of columns you wish to span 68924 * 68925 * for Extra small devices Phones (<768px) 68926 * 68927 * class-prefix `col-xs-` 68928 */ 68929 xs: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 68930 /** 68931 * The number of columns you wish to span 68932 * 68933 * for Small devices Tablets (â¥768px) 68934 * 68935 * class-prefix `col-sm-` 68936 */ 68937 sm: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 68938 /** 68939 * The number of columns you wish to span 68940 * 68941 * for Medium devices Desktops (â¥992px) 68942 * 68943 * class-prefix `col-md-` 68944 */ 68945 md: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 68946 /** 68947 * The number of columns you wish to span 68948 * 68949 * for Large devices Desktops (â¥1200px) 68950 * 68951 * class-prefix `col-lg-` 68952 */ 68953 lg: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 68954 /** 68955 * Hide column 68956 * 68957 * on Extra small devices Phones 68958 * 68959 * adds class `hidden-xs` 68960 */ 68961 xsHidden: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 68962 /** 68963 * Hide column 68964 * 68965 * on Small devices Tablets 68966 * 68967 * adds class `hidden-sm` 68968 */ 68969 smHidden: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 68970 /** 68971 * Hide column 68972 * 68973 * on Medium devices Desktops 68974 * 68975 * adds class `hidden-md` 68976 */ 68977 mdHidden: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 68978 /** 68979 * Hide column 68980 * 68981 * on Large devices Desktops 68982 * 68983 * adds class `hidden-lg` 68984 */ 68985 lgHidden: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 68986 /** 68987 * Move columns to the right 68988 * 68989 * for Extra small devices Phones 68990 * 68991 * class-prefix `col-xs-offset-` 68992 */ 68993 xsOffset: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 68994 /** 68995 * Move columns to the right 68996 * 68997 * for Small devices Tablets 68998 * 68999 * class-prefix `col-sm-offset-` 69000 */ 69001 smOffset: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 69002 /** 69003 * Move columns to the right 69004 * 69005 * for Medium devices Desktops 69006 * 69007 * class-prefix `col-md-offset-` 69008 */ 69009 mdOffset: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 69010 /** 69011 * Move columns to the right 69012 * 69013 * for Large devices Desktops 69014 * 69015 * class-prefix `col-lg-offset-` 69016 */ 69017 lgOffset: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 69018 /** 69019 * Change the order of grid columns to the right 69020 * 69021 * for Extra small devices Phones 69022 * 69023 * class-prefix `col-xs-push-` 69024 */ 69025 xsPush: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 69026 /** 69027 * Change the order of grid columns to the right 69028 * 69029 * for Small devices Tablets 69030 * 69031 * class-prefix `col-sm-push-` 69032 */ 69033 smPush: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 69034 /** 69035 * Change the order of grid columns to the right 69036 * 69037 * for Medium devices Desktops 69038 * 69039 * class-prefix `col-md-push-` 69040 */ 69041 mdPush: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 69042 /** 69043 * Change the order of grid columns to the right 69044 * 69045 * for Large devices Desktops 69046 * 69047 * class-prefix `col-lg-push-` 69048 */ 69049 lgPush: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 69050 /** 69051 * Change the order of grid columns to the left 69052 * 69053 * for Extra small devices Phones 69054 * 69055 * class-prefix `col-xs-pull-` 69056 */ 69057 xsPull: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 69058 /** 69059 * Change the order of grid columns to the left 69060 * 69061 * for Small devices Tablets 69062 * 69063 * class-prefix `col-sm-pull-` 69064 */ 69065 smPull: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 69066 /** 69067 * Change the order of grid columns to the left 69068 * 69069 * for Medium devices Desktops 69070 * 69071 * class-prefix `col-md-pull-` 69072 */ 69073 mdPull: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 69074 /** 69075 * Change the order of grid columns to the left 69076 * 69077 * for Large devices Desktops 69078 * 69079 * class-prefix `col-lg-pull-` 69080 */ 69081 lgPull: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number 69082}; 69083 69084var defaultProps = { 69085 componentClass: 'div' 69086}; 69087 69088var Col = function (_React$Component) { 69089 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Col, _React$Component); 69090 69091 function Col() { 69092 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Col); 69093 69094 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 69095 } 69096 69097 Col.prototype.render = function render() { 69098 var _props = this.props, 69099 Component = _props.componentClass, 69100 className = _props.className, 69101 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['componentClass', 'className']); 69102 69103 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 69104 bsProps = _splitBsProps[0], 69105 elementProps = _splitBsProps[1]; 69106 69107 var classes = []; 69108 69109 __WEBPACK_IMPORTED_MODULE_10__utils_StyleConfig__["a" /* DEVICE_SIZES */].forEac
69109h(function (size) { 69110 function popProp(propSuffix, modifier) { 69111 var propName = '' + size + propSuffix; 69112 var propValue = elementProps[propName]; 69113 69114 if (propValue != null) { 69115 classes.push(Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(bsProps, '' + size + modifier + '-' + propValue)); 69116 } 69117 69118 delete elementProps[propName]; 69119 } 69120 69121 popProp('', ''); 69122 popProp('Offset', '-offset'); 69123 popProp('Push', '-push'); 69124 popProp('Pull', '-pull'); 69125 69126 var hiddenPropName = size + 'Hidden'; 69127 if (elementProps[hiddenPropName]) { 69128 classes.push('hidden-' + size); 69129 } 69130 delete elementProps[hiddenPropName]; 69131 }); 69132 69133 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 69134 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 69135 })); 69136 }; 69137 69138 return Col; 69139}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 69140 69141Col.propTypes = propTypes; 69142Col.defaultProps = defaultProps; 69143 69144/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('col', Col)); 69145 69146/***/ }), 69147/* 687 */ 69148/***/ (function(module, exports, __webpack_require__) { 69149 69150"use strict"; 69151 69152 69153Object.defineProperty(exports, "__esModule", { 69154 value: true 69155}); 69156exports.default = camelize; 69157var rHyphen = /-(.)/g; 69158 69159function camelize(string) { 69160 return string.replace(rHyphen, function (_, chr) { 69161 return chr.toUpperCase(); 69162 }); 69163} 69164module.exports = exports["default"]; 69165 69166/***/ }), 69167/* 688 */ 69168/***/ (function(module, exports, __webpack_require__) { 69169 69170"use strict"; 69171 69172 69173Object.defineProperty(exports, "__esModule", { 69174 value: true 69175}); 69176exports.default = hyphenateStyleName; 69177 69178var _hyphenate = __webpack_require__(689); 69179 69180var _hyphenate2 = _interopRequireDefault(_hyphenate); 69181 69182function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 69183 69184var msPattern = /^ms-/; /** 69185 * Copyright 2013-2014, Facebook, Inc. 69186 * All rights reserved. 69187 * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/hyphenateStyleName.js 69188 */ 69189 69190function hyphenateStyleName(string) { 69191 return (0, _hyphenate2.default)(string).replace(msPattern, '-ms-'); 69192} 69193module.exports = exports['default']; 69194 69195/***/ }), 69196/* 689 */ 69197/***/ (function(module, exports, __webpack_require__) { 69198 69199"use strict"; 69200 69201 69202Object.defineProperty(exports, "__esModule", { 69203 value: true 69204}); 69205exports.default = hyphenate; 69206 69207var rUpper = /([A-Z])/g; 69208 69209function hyphenate(string) { 69210 return string.replace(rUpper, '-$1').toLowerCase(); 69211} 69212module.exports = exports['default']; 69213 69214/***/ }), 69215/* 690 */ 69216/***/ (function(module, exports, __webpack_require__) { 69217 69218"use strict"; 69219 69220 69221Object.defineProperty(exports, "__esModule", { 69222 value: true 69223}); 69224exports.default = _getComputedStyle; 69225 69226var _camelizeStyle = __webpack_require__(377); 69227 69228var _camelizeStyle2 = _interopRequireDefault(_camelizeStyle); 69229 69230function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 69231 69232var rposition = /^(top|right|bottom|left)$/; 69233var rnumnonpx = /^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i; 69234 69235function _getComputedStyle(node) { 69236 if (!node) throw new TypeError('No Element passed to `getComputedStyle()`'); 69237 var doc = node.ownerDocument; 69238 69239 return 'defaultView' in doc ? doc.defaultView.opener ? node.ownerDocument.defaultView.getComputedStyle(node, null) : window.getComputedStyle(node, null) : { 69240 //ie 8 "magic" from: https://github.com/jquery/jquery/blob/1.11-stable/src/css/curCSS.js#L72 69241 getPropertyValue: function getPropertyValue(prop) { 69242 var style = node.style; 69243 69244 prop = (0, _camelizeStyle2.default)(prop); 69245 69246 if (prop == 'float') prop = 'styleFloat'; 69247 69248 var current = node.currentStyle[prop] || null; 69249 69250 if (current == null && style && style[prop]) current = style[prop]; 69251 69252 if (rnumnonpx.test(current) && !rposition.test(prop)) { 69253 // Remember the original values 69254 var left = style.left; 69255 var runStyle = node.runtimeStyle; 69256 var rsLeft = runStyle && runStyle.left; 69257 69258 // Put in the new values to get a computed value out 69259 if (rsLeft) runStyle.left = node.currentStyle.left; 69260 69261 style.left = prop === 'fontSize' ? '1em' : current; 69262 current = style.pixelLeft + 'px'; 69263 69264 // Revert the changed values 69265 style.left = left; 69266 if (rsLeft) runStyle.left = rsLeft; 69267 } 69268 69269 return current; 69270 } 69271 }; 69272} 69273module.exports = exports['default']; 69274 69275/***/ }), 69276/* 691 */ 69277/***/ (function(module, exports, __webpack_require__) { 69278 69279"use strict"; 69280 69281 69282Object.defineProperty(exports, "__esModule", { 69283 value: true 69284}); 69285exports.default = removeStyle; 69286function removeStyle(node, key) { 69287 return 'removeProperty' in node.style ? node.style.removeProperty(key) : node.style.removeAttribute(key); 69288} 69289module.exports = exports['default']; 69290 69291/***/ }), 69292/* 692 */ 69293/***/ (function(module, exports, __webpack_require__) { 69294 69295"use strict"; 69296 69297 69298Object.defineProperty(exports, "__esModule", { 69299 value: true 69300}); 69301exports.default = isTransform; 69302var supportedTransforms = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i; 69303 69304function isTransform(property) { 69305 return !!(property && supportedTransforms.test(property)); 69306} 69307module.exports = exports["default"]; 69308 69309/***/ }), 69310/* 693 */ 69311/***/ (function(module, exports, __webpack_require__) { 69312 69313"use strict"; 69314 69315 69316exports.__esModule = true; 69317 69318var _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; }; 69319 69320exports.default = createUncontrollable; 69321 69322var _react = __webpack_require__(0); 69323 69324var _react2 = _interopRequireDefault(_react); 69325 69326var _invariant = __webpack_require__(21); 69327 69328var _invariant2 = _interopRequireDefault(_invariant); 69329 69330var _utils = __webpack_require__(694); 69331 69332var utils = _interopRequireWildcard(_utils); 69333 69334function _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; } } 69335 69336function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 69337 69338function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 69339 69340function _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; } 69341 69342function _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, { c
69342onstructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } 69343 69344function createUncontrollable(mixin, set) { 69345 69346 return uncontrollable; 69347 69348 function uncontrollable(Component, controlledValues) { 69349 var _class, _temp; 69350 69351 var methods = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; 69352 69353 var displayName = Component.displayName || Component.name || 'Component', 69354 basePropTypes = utils.getType(Component).propTypes, 69355 isCompositeComponent = utils.isReactComponent(Component), 69356 controlledProps = Object.keys(controlledValues), 69357 propTypes; 69358 69359 var OMIT_PROPS = ['valueLink', 'checkedLink'].concat(controlledProps.map(utils.defaultKey)); 69360 69361 propTypes = utils.uncontrolledPropTypes(controlledValues, basePropTypes, displayName); 69362 69363 (0, _invariant2.default)(isCompositeComponent || !methods.length, '[uncontrollable] stateless function components cannot pass through methods ' + 'because they have no associated instances. Check component: ' + displayName + ', ' + 'attempting to pass through methods: ' + methods.join(', ')); 69364 69365 methods = utils.transform(methods, function (obj, method) { 69366 obj[method] = function () { 69367 var _refs$inner; 69368 69369 return (_refs$inner = this.refs.inner)[method].apply(_refs$inner, arguments); 69370 }; 69371 }, {}); 69372 69373 var component = (_temp = _class = function (_React$Component) { 69374 _inherits(component, _React$Component); 69375 69376 function component() { 69377 _classCallCheck(this, component); 69378 69379 return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); 69380 } 69381 69382 component.prototype.shouldComponentUpdate = function shouldComponentUpdate() { 69383 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { 69384 args[_key] = arguments[_key]; 69385 } 69386 69387 return !mixin.shouldComponentUpdate || mixin.shouldComponentUpdate.apply(this, args); 69388 }; 69389 69390 component.prototype.componentWillMount = function componentWillMount() { 69391 var _this2 = this; 69392 69393 var props = this.props; 69394 69395 this._values = {}; 69396 69397 controlledProps.forEach(function (key) { 69398 _this2._values[key] = props[utils.defaultKey(key)]; 69399 }); 69400 }; 69401 69402 /** 69403 * If a prop switches from controlled to Uncontrolled 69404 * reset its value to the defaultValue 69405 */ 69406 69407 69408 component.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { 69409 var _this3 = this; 69410 69411 var props = this.props; 69412 69413 if (mixin.componentWillReceiveProps) { 69414 mixin.componentWillReceiveProps.call(this, nextProps); 69415 } 69416 69417 controlledProps.forEach(function (key) { 69418 if (utils.getValue(nextProps, key) === undefined && utils.getValue(props, key) !== undefined) { 69419 _this3._values[key] = nextProps[utils.defaultKey(key)]; 69420 } 69421 }); 69422 }; 69423 69424 component.prototype.componentWillUnmount = function componentWillUnmount() { 69425 this.unmounted = true; 69426 }; 69427 69428 component.prototype.getControlledInstance = function getControlledInstance() { 69429 return this.refs.inner; 69430 }; 69431 69432 component.prototype.render = function render() { 69433 var _this4 = this; 69434 69435 var newProps = {}, 69436 props = omitProps(this.props); 69437 69438 utils.each(controlledValues, function (handle, propName) { 69439 var linkPropName = utils.getLinkName(propName), 69440 prop = _this4.props[propName]; 69441 69442 if (linkPropName && !isProp(_this4.props, propName) && isProp(_this4.props, linkPropName)) { 69443 prop = _this4.props[linkPropName].value; 69444 } 69445 69446 newProps[propName] = prop !== undefined ? prop : _this4._values[propName]; 69447 69448 newProps[handle] = setAndNotify.bind(_this4, propName); 69449 }); 69450 69451 newProps = _extends({}, props, newProps, { 69452 ref: isCompositeComponent ? 'inner' : null 69453 }); 69454 69455 return _react2.default.createElement(Component, newProps); 69456 }; 69457 69458 return component; 69459 }(_react2.default.Component), _class.displayName = 'Uncontrolled(' + displayName + ')', _class.propTypes = propT
69459ypes, _temp); 69460 69461 _extends(component.prototype, methods); 69462 69463 component.ControlledComponent = Component; 69464 69465 /** 69466 * useful when wrapping a Component and you want to control 69467 * everything 69468 */ 69469 component.deferControlTo = function (newComponent) { 69470 var additions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; 69471 var nextMethods = arguments[2]; 69472 69473 return uncontrollable(newComponent, _extends({}, controlledValues, additions), nextMethods); 69474 }; 69475 69476 return component; 69477 69478 function setAndNotify(propName, value) { 69479 var linkName = utils.getLinkName(propName), 69480 handler = this.props[controlledValues[propName]]; 69481 69482 if (linkName && isProp(this.props, linkName) && !handler) { 69483 handler = this.props[linkName].requestChange; 69484 } 69485 69486 for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { 69487 args[_key2 - 2] = arguments[_key2]; 69488 } 69489 69490 set(this, propName, handler, value, args); 69491 } 69492
69493 function isProp(props, prop) { 69494 return props[prop] !== undefined; 69495 } 69496 69497 function omitProps(props) { 69498 var result = {}; 69499 69500 utils.each(props, function (value, key) { 69501 if (OMIT_PROPS.indexOf(key) === -1) result[key] = value; 69502 }); 69503 69504 return result; 69505 } 69506 } 69507} 69508module.exports = exports['default']; 69509 69510/***/ }), 69511/* 694 */ 69512/***/ (function(module, exports, __webpack_require__) { 69513 69514"use strict"; 69515 69516 69517exports.__esModule = true; 69518exports.version = undefined; 69519exports.uncontrolledPropTypes = uncontrolledPropTypes; 69520exports.getType = getType; 69521exports.getValue = getValue; 69522exports.getLinkName = getLinkName; 69523exports.defaultKey = defaultKey; 69524exports.chain = chain; 69525exports.transform = transform; 69526exports.each = each; 69527exports.has = has; 69528exports.isReactComponent = isReactComponent; 69529 69530var _react = __webpack_require__(0); 69531 69532var _react2 = _interopRequireDefault(_react); 69533 69534var _invariant = __webpack_require__(21); 69535 69536var _invariant2 = _interopRequireDefault(_invariant); 69537 69538function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 69539 69540function readOnlyPropType(handler, name) { 69541 return function (props, propName) { 69542 if (props[propName] !== undefined) { 69543 if (!props[handler]) { 69544 return new Error('You have provided a `' + propName + '` prop to ' + '`' + name + '` without an `' + handler + '` handler. This will render a read-only field. ' + 'If the field should be mutable use `' + defaultKey(propName) + '`. Otherwise, set `' + handler + '`'); 69545 } 69546 } 69547 }; 69548} 69549 69550function uncontrolledPropTypes(controlledValues, basePropTypes, displayName) { 69551 var propTypes = {}; 69552 69553 if ("dev" !== 'production' && basePropTypes) { 69554 transform(controlledValues, function (obj, handler, prop) { 69555 (0, _invariant2.default)(typeof handler === 'string' && handler.trim().length, 'Uncontrollable - [%s]: the prop `%s` needs a valid handler key name in order to make it uncontrollable', displayName, prop); 69556 69557 obj[prop] = readOnlyPropType(handler, displayName); 69558 }, propTypes); 69559 } 69560 69561 return propTypes; 69562} 69563 69564var version = exports.version = _react2.default.version.split('.').map(parseFloat); 69565 69566function getType(component) { 69567 if (version[0] >= 15 || version[0] === 0 && version[1] >= 13) return component; 69568 69569 return component.type; 69570} 69571 69572function getValue(props, name) { 69573 var linkPropName = getLinkName(name); 69574 69575 if (linkPropName && !isProp(props, name) && isProp(props, linkPropName)) return props[linkPropName].value; 69576 69577 return props[name]; 69578} 69579
69580function isProp(props, prop) { 69581 return props[prop] !== undefined; 69582} 69583 69584function getLinkName(name) { 69585 return name === 'value' ? 'valueLink' : name === 'checked' ? 'checkedLink' : null; 69586} 69587 69588function defaultKey(key) { 69589 return 'default' + key.charAt(0).toUpperCase() + key.substr(1); 69590} 69591 69592function chain(thisArg, a, b) { 69593 return function chainedFunction() { 69594 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { 69595 args[_key] = arguments[_key]; 69596 } 69597 69598 a && a.call.apply(a, [thisArg].concat(args)); 69599 b && b.call.apply(b, [thisArg].concat(args)); 69600 }; 69601} 69602 69603function transform(obj, cb, seed) { 69604 each(obj, cb.bind(null, seed = seed || (Array.isArray(obj) ? [] : {}))); 69605 return seed; 69606} 69607 69608function each(obj, cb, thisArg) { 69609 if (Array.isArray(obj)) return obj.forEach(cb, thisArg); 69610 69611 for (var key in obj) { 69612 if (has(obj, key)) cb.call(thisArg, obj[key], key, obj); 69613 } 69614} 69615 69616function has(o, k) { 69617 return o ? Object.prototype.hasOwnProperty.call(o, k) : false; 69618} 69619 69620/** 69621 * Copyright (c) 2013-present, Facebook, Inc. 69622 * All rights reserved. 69623 * 69624 * This source code is licensed under the BSD-style license found in the 69625 * LICENSE file in the root directory of this source tree. An additional grant 69626 * of patent rights can be found in the PATENTS file in the same directory. 69627 */ 69628function isReactComponent(component) { 69629 return !!(component && component.prototype && component.prototype.isReactComponent); 69630} 69631 69632/***/ }), 69633/* 695 */ 69634/***/ (function(module, __webpack_exports__, __webpack_require__) { 69635 69636"use strict"; 69637/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 69638/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 69639/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 69640/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 69641/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_array_from__ = __webpack_require__(696); 69642/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_array_from___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_array_from__); 69643/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 69644/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__); 69645/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 69646/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__); 69647/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(5); 69648/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__); 69649/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames__ = __webpack_require__(8); 69650/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_classnames__); 69651/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_keycode__ = __webpack_require__(156); 69652/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_keycode___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_keycode__); 69653/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react__ = __webpack_require__(0); 69654/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react__); 69655/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_prop_types__ = __webpack_require__(2); 69656/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_prop_types__); 69657/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_dom__ = __webpack_require__(17); 69658/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react_dom__); 69659/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_overlays_lib_RootCloseWrapper__ = __webpack_require__(381); 69660/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_overlays_lib_RootCloseWrapper___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react_overlays_lib_RootCloseWrapper__); 69661/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__ = __webpack_require__(9); 69662/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__utils_createChainedFunction__ = __webpack_require__(16); 69663/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__utils_ValidComponentChildren__ = __webpack_require__(22); 69664 69665 69666 69667 69668 69669 69670 69671 69672 69673 69674 69675 69676 69677 69678 69679 69680 69681var propTypes = { 69682 open: __WEBPACK_IMPORTED_MODULE_9_prop_types___default.a.bool, 69683 pullRight: __WEBPACK_IMPORTED_MODULE_9_prop_types___default.a.bool, 69684 onClose: __WEBPACK_IMPORTED_MODULE_9_prop_types___default.a.func, 69685 labelledBy: __WEBPACK_IMPORTED_MODULE_9_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_9_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_9_prop_types___default.a.number]), 69686 onSelect: __WEBPACK_IMPORTED_MODULE_9_prop_types___default.a.func, 69687 rootCloseEvent: __WEBPACK_IMPORTED_MODULE_9_prop_types___default.a.oneOf(['click', 'mousedown']) 69688}; 69689 69690var defaultProps = { 69691 bsRole: 'menu', 69692 pullRight: false 69693}; 69694 69695var DropdownMenu = function (_React$Component) { 69696 __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(DropdownMenu, _React$Component); 69697 69698 function DropdownMenu(props) { 69699 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck___default()(this, DropdownMenu); 69700 69701 var _this = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props)); 69702 69703 _this.handleRootClose = _this.handleRootClose.bind(_this); 69704 _this.handleKeyDown = _this.handleKeyDown.bind(_this); 69705 return _this; 69706 } 69707 69708 DropdownMenu.prototype.getFocusableMenuItems = function getFocusableMenuItems() { 69709 var node = __WEBPACK_IMPORTED_MODULE_10_react_dom___default.a.findDOMNode(this); 69710 if (!node) { 69711 return []; 69712 } 69713 69714 return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_array_from___default()(node.querySelectorAll('[tabIndex="-1"]')); 69715 }; 69716 69717 DropdownMenu.prototype.getItemsAndActiveIndex = function getItemsAndActiveIndex() { 69718 var items = this.getFocusableMenuItems(); 69719 var activeIndex = items.indexOf(document.activeElement); 69720 69721 return { items: items, activeIndex: activeIndex }; 69722 }; 69723
69724 DropdownMenu.prototype.focusNext = function focusNext() { 69725 var _getItemsAndActiveInd = this.getItemsAndActiveIndex(), 69726 items = _getItemsAndActiveInd.items, 69727 activeIndex = _getItemsAndActiveInd.activeIndex; 69728 69729 if (items.length === 0) { 69730 return; 69731 } 69732 69733 var nextIndex = activeIndex === items.length - 1 ? 0 : activeIndex + 1; 69734 items[nextIndex].focus(); 69735 }; 69736 69737 DropdownMenu.prototype.focusPrevious = function focusPrevious() { 69738 var _getItemsAndActiveInd2 = this.getItemsAndActiveIndex(), 69739 items = _getItemsAndActiveInd2.items, 69740 activeIndex = _getItemsAndActiveInd2.activeIndex; 69741 69742 if (items.length === 0) { 69743 return; 69744 } 69745 69746 var prevIndex = activeIndex === 0 ? items.length - 1 : activeIndex - 1; 69747 items[prevIndex].focus(); 69748 }; 69749 69750 DropdownMenu.prototype.handleKeyDown = function handleKeyDown(event) { 69751 switch (event.keyCode) { 69752 case __WEBPACK_IMPORTED_MODULE_7_keycode___default.a.codes.down: 69753 this.focusNext(); 69754 event.preventDefault(); 69755 break; 69756 case __WEBPACK_IMPORTED_MODULE_7_keycode___default.a.codes.up: 69757 this.focusPrevious(); 69758 event.preventDefault(); 69759 break; 69760 case __WEBPACK_IMPORTED_MODULE_7_keycode___default.a.codes.esc: 69761 case __WEBPACK_IMPORTED_MODULE_7_keycode___default.a.codes.tab: 69762 this.props.onClose(event, { source: 'keydown' }); 69763 break; 69764 default: 69765 } 69766 }; 69767 69768 DropdownMenu.prototype.handleRootClose = function handleRootClose(event) { 69769 this.props.onClose(event, { source: 'rootClose' }); 69770 }; 69771 69772 DropdownMenu.prototype.render = function render() { 69773 var _extends2, 69774 _this2 = this; 69775 69776 var _props = this.props, 69777 open = _props.open, 69778 pullRight = _props.pullRight, 69779 labelledBy = _props.labelledBy, 69780 onSelect = _props.onSelect, 69781 className = _props.className, 69782 rootCloseEvent = _props.rootCloseEvent, 69783 children = _props.children, 69784 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['open', 'pullRight', 'labelledBy', 'onSelect', 'className', 'rootCloseEvent', 'children']); 69785 69786 var _splitBsPropsAndOmit = Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["splitBsPropsAndOmit"])(props, ['onClose']), 69787 bsProps = _splitBsPropsAndOmit[0], 69788 elementProps = _splitBsPropsAndOmit[1]; 69789 69790 var classes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["prefix"])(bsProps, 'right')] = pullRight, _extends2)); 69791 69792 return __WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement( 69793 __WEBPACK_IMPORTED_MODULE_11_react_overlays_lib_RootCloseWrapper___default.a, 69794 { 69795 disabled: !open, 69796 onRootClose: this.handleRootClose, 69797 event: rootCloseEvent 69798 }, 69799 __WEBPACK_IMPORTED_MODULE_8_react___default.a.createElement( 69800 'ul', 69801 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 69802 role: 'menu', 69803 className: __WEBPACK_IMPORTED_MODULE_6_classnames___default()(className, classes), 69804 'aria-labelledby': labelledBy 69805 }), 69806 __WEBPACK_IMPORTED_MODULE_14__utils_ValidComponentChildren__["a" /* default */].map(children, function (child) { 69807 return __WEBPACK_IMPORTED_MODULE_8_react___default.a.cloneElement(child, { 69808 onKeyDown: Object(__WEBPACK_IMPORTED_MODULE_13__utils_createChainedFunction__["a" /* default */])(child.props.onKeyDown, _this2.handleKeyDown), 69809 onSelect: Object(__WEBPACK_IMPORTED_MODULE_13__utils_createChainedFunction__["a" /* default */])(child.props.onSelect, onSelect) 69810 }); 69811 }) 69812 ) 69813 ); 69814 }; 69815 69816 return DropdownMenu; 69817}(__WEBPACK_IMPORTED_MODULE_8_react___default.a.Component); 69818 69819DropdownMenu.propTypes = propTypes; 69820DropdownMenu.defaultProps = defaultProps; 69821 69822/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["bsClass"])('dropdown-menu', DropdownMenu)); 69823 69824/***/ }), 69825/* 696 */ 69826/***/ (function(module, exports, __webpack_require__) { 69827 69828module.exports = { "default": __webpack_require__(697), __esModule: true }; 69829 69830/***/ }), 69831/* 697 */ 69832/***/ (function(module, exports, __webpack_require__) { 69833 69834__webpack_require__(366); 69835__webpack_require__(698); 69836module.exports = __webpack_require__(28).Array.from; 69837 69838 69839/***/ }), 69840/* 698 */ 69841/***/ (function(module, exports, __webpack_require__) { 69842 69843"use strict"; 69844 69845var ctx = __webpack_require__(137);
vendor: 4,133 bytes, lines 69846-69978
69846var $export = __webpack_require__(37); 69847var toObject = __webpack_require__(146); 69848var call = __webpack_require__(699); 69849var isArrayIter = __webpack_require__(700); 69850var toLength = __webpack_require__(365); 69851var createProperty = __webpack_require__(701); 69852var getIterFn = __webpack_require__(702); 69853 69854$export($export.S + $export.F * !__webpack_require__(704)(function (iter) { Array.from(iter); }), 'Array', { 69855 // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) 69856 from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { 69857 var O = toObject(arrayLike); 69858 var C = typeof this == 'function' ? this : Array; 69859 var aLen = arguments.length; 69860 var mapfn = aLen > 1 ? arguments[1] : undefined; 69861 var mapping = mapfn !== undefined; 69862 var index = 0; 69863 var iterFn = getIterFn(O); 69864 var length, result, step, iterator; 69865 if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2); 69866 // if object isn't iterable or it's array with default iterator - use simple case 69867 if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) { 69868 for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) { 69869 createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value); 69870 } 69871 } else { 69872 length = toLength(O.length); 69873 for (result = new C(length); length > index; index++) { 69874 createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); 69875 } 69876 } 69877 result.length = index; 69878 return result; 69879 } 69880}); 69881 69882 69883/***/ }), 69884/* 699 */ 69885/***/ (function(module, exports, __webpack_require__) { 69886 69887// call something on iterator step with safe closing on error 69888var anObject = __webpack_require__(59); 69889module.exports = function (iterator, fn, value, entries) { 69890 try { 69891 return entries ? fn(anObject(value)[0], value[1]) : fn(value); 69892 // 7.4.6 IteratorClose(iterator, completion) 69893 } catch (e) { 69894 var ret = iterator['return']; 69895 if (ret !== undefined) anObject(ret.call(iterator)); 69896 throw e; 69897 } 69898}; 69899 69900 69901/***/ }), 69902/* 700 */ 69903/***/ (function(module, exports, __webpack_require__) { 69904 69905// check on default Array iterator 69906var Iterators = __webpack_require__(73); 69907var ITERATOR = __webpack_require__(33)('iterator'); 69908var ArrayProto = Array.prototype; 69909 69910module.exports = function (it) { 69911 return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); 69912}; 69913 69914 69915/***/ }), 69916/* 701 */ 69917/***/ (function(module, exports, __webpack_require__) { 69918 69919"use strict"; 69920 69921var $defineProperty = __webpack_require__(45); 69922var createDesc = __webpack_require__(70); 69923 69924module.exports = function (object, index, value) { 69925 if (index in object) $defineProperty.f(object, index, createDesc(0, value)); 69926 else object[index] = value; 69927}; 69928 69929 69930/***/ }), 69931/* 702 */ 69932/***/ (function(module, exports, __webpack_require__) { 69933 69934var classof = __webpack_require__(703); 69935var ITERATOR = __webpack_require__(33)('iterator'); 69936var Iterators = __webpack_require__(73); 69937module.exports = __webpack_require__(28).getIteratorMethod = function (it) { 69938 if (it != undefined) return it[ITERATOR] 69939 || it['@@iterator'] 69940 || Iterators[classof(it)]; 69941}; 69942 69943 69944/***/ }), 69945/* 703 */ 69946/***/ (function(module, exports, __webpack_require__) { 69947 69948// getting tag from 19.1.3.6 Object.prototype.toString() 69949var cof = __webpack_require__(139); 69950var TAG = __webpack_require__(33)('toStringTag'); 69951// ES3 wrong here 69952var ARG = cof(function () { return arguments; }()) == 'Arguments'; 69953 69954// fallback for IE11 Script Access Denied error 69955var tryGet = function (it, key) { 69956 try { 69957 return it[key]; 69958 } catch (e) { /* empty */ } 69959}; 69960 69961module.exports = function (it) { 69962 var O, T, B; 69963 return it === undefined ? 'Undefined' : it === null ? 'Null' 69964 // @@toStringTag case 69965 : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T 69966 // builtinTag case 69967 : ARG ? cof(O) 69968 // ES3 arguments fallback 69969 : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; 69970}; 69971 69972 69973/***/ }), 69974/* 704 */ 69975/***/ (function(module, exports, __webpack_require__) { 69976 69977var ITERATOR = __webpack_require__(33)('iterator'); 69978var SAFE_CLOSING = false;
69979 69980try { 69981 var riter = [7][ITERATOR](); 69982 riter['return'] = function () { SAFE_CLOSING = true; }; 69983 // eslint-disable-next-line no-throw-literal 69984 Array.from(riter, function () { throw 2; }); 69985} catch (e) { /* empty */ } 69986 69987module.exports = function (exec, skipClosing) { 69988 if (!skipClosing && !SAFE_CLOSING) return false; 69989 var safe = false; 69990 try { 69991 var arr = [7]; 69992 var iter = arr[ITERATOR](); 69993 iter.next = function () { return { done: safe = true }; }; 69994 arr[ITERATOR] = function () { return iter; }; 69995 exec(arr); 69996 } catch (e) { /* empty */ } 69997 return safe; 69998}; 69999 70000 70001/***/ }), 70002/* 705 */ 70003/***/ (function(module, __webpack_exports__, __webpack_require__) { 70004 70005"use strict"; 70006/* harmony export (immutable) */ __webpack_exports__["b"] = requiredRoles; 70007/* harmony export (immutable) */ __webpack_exports__["a"] = exclusiveRoles; 70008/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types_extra_lib_utils_createChainableTypeChecker__ = __webpack_require__(93); 70009/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types_extra_lib_utils_createChainableTypeChecker___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types_extra_lib_utils_createChainableTypeChecker__); 70010/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ValidComponentChildren__ = __webpack_require__(22); 70011 70012 70013 70014 70015function requiredRoles() { 70016 for (var _len = arguments.length, roles = Array(_len), _key = 0; _key < _len; _key++) { 70017 roles[_key] = arguments[_key]; 70018 } 70019 70020 return __WEBPACK_IMPORTED_MODULE_0_prop_types_extra_lib_utils_createChainableTypeChecker___default()(function (props, propName, component) { 70021 var missing = void 0; 70022 70023 roles.every(function (role) { 70024 if (!__WEBPACK_IMPORTED_MODULE_1__ValidComponentChildren__["a" /* default */].some(props.children, function (child) { 70025 return child.props.bsRole === role; 70026 })) { 70027 missing = role; 70028 return false; 70029 } 70030 70031 return true; 70032 }); 70033 70034 if (missing) { 70035 return new Error('(children) ' + component + ' - Missing a required child with bsRole: ' + (missing + '. ' + component + ' must have at least one child of each of ') + ('the following bsRoles: ' + roles.join(', '))); 70036 } 70037 70038 return null; 70039 }); 70040} 70041 70042function exclusiveRoles() { 70043 for (var _len2 = arguments.length, roles = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { 70044 roles[_key2] = arguments[_key2]; 70045 } 70046 70047 return __WEBPACK_IMPORTED_MODULE_0_prop_types_extra_lib_utils_createChainableTypeChecker___default()(function (props, propName, component) { 70048 var duplicate = void 0; 70049 70050 roles.every(function (role) { 70051 var childrenWithRole = __WEBPACK_IMPORTED_MODULE_1__ValidComponentChildren__["a" /* default */].filter(props.children, function (child) { 70052 return child.props.bsRole === role; 70053 }); 70054 70055 if (childrenWithRole.length > 1) { 70056 duplicate = role; 70057 return false; 70058 } 70059 70060 return true; 70061 }); 70062 70063 if (duplicate) { 70064 return new Error('(children) ' + component + ' - Duplicate children detected of bsRole: ' + (duplicate + '. Only one child each allowed with the following ') + ('bsRoles: ' + roles.join(', '))); 70065 } 70066 70067 return null; 70068 }); 70069} 70070 70071/***/ }), 70072/* 706 */ 70073/***/ (function(module, __webpack_exports__, __webpack_require__) { 70074 70075"use strict"; 70076/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 70077/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__); 70078/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 70079/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); 70080/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 70081/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); 70082/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(5); 70083/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); 70084/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__ = __webpack_require__(6); 70085/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__); 70086/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0); 70087/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__); 70088/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(2); 70089/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__); 70090/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Dropdown__ = __webpack_require__(97); 70091/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_splitComponentProps__ = __webpack_require__(99); 70092 70093 70094 70095 70096 70097 70098 70099 70100 70101 70102 70103var propTypes = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, __WEBPACK_IMPORTED_MODULE_7__Dropdown__["a" /* default */].propTypes, { 70104 70105 // Toggle props. 70106 bsStyle: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 70107 bsSize: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 70108 title: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node.isRequired, 70109 noCaret: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 70110 70111 // Override generated docs from <Dropdown>. 70112 /** 70113 * @private 70114 */ 70115 children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node 70116}); 70117 70118var DropdownButton = function (_React$Component) { 70119 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(DropdownButton, _React$Component); 70120 70121 function DropdownButton() { 70122 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, DropdownButton); 70123 70124 return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 70125 } 70126 70127 DropdownButton.prototype.render = function render() { 70128 var _props = this.props, 70129 bsSize = _props.bsSize, 70130 bsStyle = _props.bsStyle, 70131 title = _props.title, 70132 children = _props.children, 70133 props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['bsSize', 'bsStyle', 'title', 'children']); 70134 70135 var _splitComponentProps = Object(__WEBPACK_IMPORTED_MODULE_8__utils_splitComponentProps__["a" /* default */])(props, __WEBPACK_IMPORTED_MODULE_7__Dropdown__["a" /* default */].ControlledComponent), 70136 dropdownProps = _splitComponentProps[0], 70137 toggleProps = _splitComponentProps[1]; 70138 70139 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( 70140 __WEBPACK_IMPORTED_MODULE_7__Dropdown__["a" /* default */], 70141 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, dropdownProps, { 70142 bsSize: bsSize, 70143 bsStyle: bsStyle 70144 }), 70145 __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( 70146 __WEBPACK_IMPORTED_MODULE_7__Dropdown__["a" /* default */].Toggle, 70147 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, toggleProps, { 70148 bsSize: bsSize, 70149 bsStyle: bsStyle 70150 }), 70151 title 70152 ), 70153 __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( 70154 __WEBPACK_IMPORTED_MODULE_7__Dropdown__["a" /* default */].Menu, 70155 null, 70156 children 70157 ) 70158 ); 70159 }; 70160 70161 return DropdownButton; 70162}(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component); 70163
70164DropdownButton.propTypes = propTypes; 70165 70166/* harmony default export */ __webpack_exports__["a"] = (DropdownButton); 70167 70168/***/ }), 70169/* 707 */ 70170/***/ (function(module, __webpack_exports__, __webpack_require__) { 70171 70172"use strict"; 70173/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 70174/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 70175/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 70176/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 70177/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 70178/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 70179/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 70180/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 70181/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 70182/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 70183/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 70184/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 70185/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 70186/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 70187/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 70188/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 70189/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__ = __webpack_require__(13); 70190/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__); 70191/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 70192 70193 70194 70195 70196 70197 70198 70199 70200 70201 70202 70203 70204var propTypes = { 70205 horizontal: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 70206 inline: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 70207 componentClass: __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default.a 70208}; 70209 70210var defaultProps = { 70211 horizontal: false, 70212 inline: false, 70213 componentClass: 'form' 70214}; 70215 70216var Form = function (_React$Component) { 70217 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Form, _React$Component); 70218 70219 function Form() { 70220 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Form); 70221 70222 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 70223 } 70224 70225 Form.prototype.render = function render() { 70226 var _props = this.props, 70227 horizontal = _props.horizontal, 70228 inline = _props.inline, 70229 Component = _props.componentClass, 70230 className = _props.className, 70231 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['horizontal', 'inline', 'componentClass', 'className']); 70232 70233 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 70234 bsProps = _splitBsProps[0], 70235 elementProps = _splitBsProps[1]; 70236 70237 var classes = []; 70238 if (horizontal) { 70239 classes.push(Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(bsProps, 'horizontal')); 70240 } 70241 if (inline) { 70242 classes.push(Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(bsProps, 'inline')); 70243 } 70244 70245 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 70246 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 70247 })); 70248 }; 70249 70250 return Form; 70251}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 70252
70253Form.propTypes = propTypes; 70254Form.defaultProps = defaultProps; 70255 70256/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('form', Form)); 70257 70258/***/ }), 70259/* 708 */ 70260/***/ (function(module, __webpack_exports__, __webpack_require__) { 70261 70262"use strict"; 70263/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 70264/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 70265/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 70266/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 70267/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 70268/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 70269/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 70270/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 70271/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 70272/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 70273/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 70274/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 70275/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 70276/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 70277/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 70278/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 70279/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__ = __webpack_require__(13); 70280/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__); 70281/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_warning__ = __webpack_require__(19); 70282/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_warning__); 70283/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__FormControlFeedback__ = __webpack_require__(709); 70284/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__FormControlStatic__ = __webpack_require__(710); 70285/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__ = __webpack_require__(9); 70286/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__utils_StyleConfig__ = __webpack_require__(20); 70287 70288 70289 70290 70291 70292 70293 70294 70295 70296 70297 70298 70299 70300 70301 70302 70303var propTypes = { 70304 componentClass: __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default.a, 70305 /** 70306 * Only relevant if `componentClass` is `'input'`. 70307 */ 70308 type: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 70309 /** 70310 * Uses `controlId` from `<FormGroup>` if not explicitly specified. 70311 */ 70312 id: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 70313 /** 70314 * Attaches a ref to the `<input>` element. Only functions can be used here. 70315 * 70316 * ```js 70317 * <FormControl inputRef={ref => { this.input = ref; }} /> 70318 * ``` 70319 */ 70320 inputRef: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func 70321}; 70322 70323var defaultProps = { 70324 componentClass: 'input' 70325}; 70326
70327var contextTypes = { 70328 $bs_formGroup: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object 70329}; 70330 70331var FormControl = function (_React$Component) { 70332 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(FormControl, _React$Component); 70333 70334 function FormControl() { 70335 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, FormControl); 70336 70337 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 70338 } 70339 70340 FormControl.prototype.render = function render() { 70341 var formGroup = this.context.$bs_formGroup; 70342 var controlId = formGroup && formGroup.controlId; 70343 70344 var _props = this.props, 70345 Component = _props.componentClass, 70346 type = _props.type, 70347 _props$id = _props.id, 70348 id = _props$id === undefined ? controlId : _props$id, 70349 inputRef = _props.inputRef, 70350 className = _props.className, 70351 bsSize = _props.bsSize, 70352 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['componentClass', 'type', 'id', 'inputRef', 'className', 'bsSize']); 70353 70354 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["splitBsProps"])(props), 70355 bsProps = _splitBsProps[0], 70356 elementProps = _splitBsProps[1]; 70357 70358 true ? __WEBPACK_IMPORTED_MODULE_9_warning___default()(controlId == null || id === controlId, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0; 70359 70360 // input[type="file"] should not have .form-control. 70361 var classes = void 0; 70362 if (type !== 'file') { 70363 classes = Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["getClassSet"])(bsProps); 70364 } 70365 70366 // If user provides a size, make sure to append it to classes as input- 70367 // e.g. if bsSize is small, it will append input-sm 70368 if (bsSize) { 70369 var size = __WEBPACK_IMPORTED_MODULE_13__utils_StyleConfig__["b" /* SIZE_MAP */][bsSize] || bsSize; 70370 classes[Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["prefix"])({ bsClass: 'input' }, size)] = true; 70371 } 70372 70373 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 70374 type: type, 70375 id: id, 70376 ref: inputRef, 70377 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 70378 })); 70379 }; 70380 70381 return FormControl; 70382}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 70383 70384FormControl.propTypes = propTypes; 70385FormControl.defaultProps = defaultProps; 70386FormControl.contextTypes = contextTypes; 70387 70388FormControl.Feedback = __WEBPACK_IMPORTED_MODULE_10__FormControlFeedback__["a" /* default */]; 70389FormControl.Static = __WEBPACK_IMPORTED_MODULE_11__FormControlStatic__["a" /* default */]; 70390 70391/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["bsClass"])('form-control', Object(__WEBPACK_IMPORTED_MODULE_12__utils_bootstrapUtils__["bsSizes"])([__WEBPACK_IMPORTED_MODULE_13__utils_StyleConfig__["c" /* Size */].SMALL, __WEBPACK_IMPORTED_MODULE_13__utils_StyleConfig__["c" /* Size */].LARGE], FormControl))); 70392 70393/***/ }), 70394/* 709 */ 70395/***/ (function(module, __webpack_exports__, __webpack_require__) { 70396 70397"use strict"; 70398/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 70399/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__); 70400/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(6); 70401/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__); 70402/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 70403/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 70404/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 70405/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 70406/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 70407/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 70408/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 70409/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 70410/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 70411/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 70412/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 70413/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 70414/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Glyphicon__ = __webpack_require__(154); 70415/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 70416 70417 70418 70419 70420 70421 70422 70423 70424 70425 70426 70427 70428var defaultProps = { 70429 bsRole: 'feedback' 70430}; 70431
70432var contextTypes = { 70433 $bs_formGroup: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object 70434}; 70435 70436var FormControlFeedback = function (_React$Component) { 70437 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(FormControlFeedback, _React$Component); 70438 70439 function FormControlFeedback() { 70440 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, FormControlFeedback); 70441 70442 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 70443 } 70444 70445 FormControlFeedback.prototype.getGlyph = function getGlyph(validationState) { 70446 switch (validationState) { 70447 case 'success': 70448 return 'ok'; 70449 case 'warning': 70450 return 'warning-sign'; 70451 case 'error': 70452 return 'remove'; 70453 default: 70454 return null; 70455 } 70456 }; 70457 70458 FormControlFeedback.prototype.renderDefaultFeedback = function renderDefaultFeedback(formGroup, className, classes, elementProps) { 70459 var glyph = this.getGlyph(formGroup && formGroup.validationState); 70460 if (!glyph) { 70461 return null; 70462 } 70463 70464 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__Glyphicon__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, elementProps, { 70465 glyph: glyph, 70466 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 70467 })); 70468 }; 70469 70470 FormControlFeedback.prototype.render = function render() { 70471 var _props = this.props, 70472 className = _props.className, 70473 children = _props.children, 70474 props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['className', 'children']); 70475 70476 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 70477 bsProps = _splitBsProps[0], 70478 elementProps = _splitBsProps[1]; 70479 70480 var classes = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["getClassSet"])(bsProps); 70481 70482 if (!children) { 70483 return this.renderDefaultFeedback(this.context.$bs_formGroup, className, classes, elementProps); 70484 } 70485 70486 var child = __WEBPACK_IMPORTED_MODULE_6_react___default.a.Children.only(children); 70487 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(child, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, elementProps, { 70488 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(child.props.className, className, classes) 70489 })); 70490 }; 70491 70492 return FormControlFeedback; 70493}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 70494 70495FormControlFeedback.defaultProps = defaultProps; 70496FormControlFeedback.contextTypes = contextTypes; 70497 70498/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('form-control-feedback', FormControlFeedback)); 70499 70500/***/ }), 70501/* 710 */ 70502/***/ (function(module, __webpack_exports__, __webpack_require__) { 70503 70504"use strict"; 70505/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 70506/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 70507/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 70508/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 70509/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 70510/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 70511/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 70512/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 70513/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 70514/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 70515/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 70516/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 70517/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 70518/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 70519/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__ = __webpack_require__(13); 70520/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__); 70521/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 70522 70523 70524 70525 70526 70527 70528 70529 70530 70531 70532 70533var propTypes = { 70534 componentClass: __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default.a 70535}; 70536 70537var defaultProps = { 70538 componentClass: 'p' 70539}; 70540 70541var FormControlStatic = function (_React$Component) { 70542 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(FormControlStatic, _React$Component); 70543 70544 function FormControlStatic() { 70545 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, FormControlStatic); 70546 70547 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 70548 } 70549 70550 FormControlStatic.prototype.render = function render() { 70551 var _props = this.props, 70552 Component = _props.componentClass, 70553 className = _props.className, 70554 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['componentClass', 'className']); 70555 70556 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["splitBsProps"])(props), 70557 bsProps = _splitBsProps[0], 70558 elementProps = _splitBsProps[1]; 70559 70560 var classes = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["getClassSet"])(bsProps); 70561 70562 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 70563 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 70564 })); 70565 }; 70566 70567 return FormControlStatic; 70568}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 70569
70570FormControlStatic.propTypes = propTypes; 70571FormControlStatic.defaultProps = defaultProps; 70572 70573/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsClass"])('form-control-static', FormControlStatic)); 70574 70575/***/ }), 70576/* 711 */ 70577/***/ (function(module, __webpack_exports__, __webpack_require__) { 70578 70579"use strict"; 70580/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 70581/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 70582/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 70583/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 70584/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 70585/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 70586/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 70587/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 70588/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 70589/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 70590/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 70591/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 70592/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 70593/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 70594/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 70595/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 70596/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 70597/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_StyleConfig__ = __webpack_require__(20); 70598/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_ValidComponentChildren__ = __webpack_require__(22); 70599 70600 70601 70602 70603 70604 70605 70606 70607 70608 70609 70610 70611 70612var propTypes = { 70613 /** 70614 * Sets `id` on `<FormControl>` and `htmlFor` on `<FormGroup.Label>`. 70615 */ 70616 controlId: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 70617 validationState: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOf(['success', 'warning', 'error', null]) 70618}; 70619 70620var childContextTypes = { 70621 $bs_formGroup: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object.isRequired 70622}; 70623 70624var FormGroup = function (_React$Component) { 70625 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(FormGroup, _React$Component); 70626 70627 function FormGroup() { 70628 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, FormGroup); 70629 70630 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 70631 } 70632 70633 FormGroup.prototype.getChildContext = function getChildContext() { 70634 var _props = this.props, 70635 controlId = _props.controlId, 70636 validationState = _props.validationState; 70637 70638 70639 return { 70640 $bs_formGroup: { 70641 controlId: controlId, 70642 validationState: validationState 70643 } 70644 }; 70645 }; 70646 70647 FormGroup.prototype.hasFeedback = function hasFeedback(children) { 70648 var _this2 = this; 70649 70650 return __WEBPACK_IMPORTED_MODULE_10__utils_ValidComponentChildren__["a" /* default */].some(children, function (child) { 70651 return child.props.bsRole === 'feedback' || child.props.children && _this2.hasFeedback(child.props.children); 70652 }); 70653 }; 70654 70655 FormGroup.prototype.render = function render() { 70656 var _props2 = this.props, 70657 validationState = _props2.validationState, 70658 className = _props2.className, 70659 children = _props2.children, 70660 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props2, ['validationState', 'className', 'children']); 70661 70662 var _splitBsPropsAndOmit = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["splitBsPropsAndOmit"])(props, ['controlId']), 70663 bsProps = _splitBsPropsAndOmit[0], 70664 elementProps = _splitBsPropsAndOmit[1]; 70665 70666 var classes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["getClassSet"])(bsProps), { 70667 'has-feedback': this.hasFeedback(children) 70668 }); 70669 if (validationState) { 70670 classes['has-' + validationState] = true; 70671 } 70672 70673 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 70674 'div', 70675 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 70676 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 70677 }), 70678 children 70679 ); 70680 }; 70681 70682 return FormGroup; 70683}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 70684
70685FormGroup.propTypes = propTypes; 70686FormGroup.childContextTypes = childContextTypes; 70687 70688/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsClass"])('form-group', Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsSizes"])([__WEBPACK_IMPORTED_MODULE_9__utils_StyleConfig__["c" /* Size */].LARGE, __WEBPACK_IMPORTED_MODULE_9__utils_StyleConfig__["c" /* Size */].SMALL], FormGroup))); 70689 70690/***/ }), 70691/* 712 */ 70692/***/ (function(module, __webpack_exports__, __webpack_require__) { 70693 70694"use strict"; 70695/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 70696/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 70697/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 70698/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 70699/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 70700/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 70701/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 70702/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 70703/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 70704/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 70705/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 70706/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 70707/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 70708/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 70709/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__ = __webpack_require__(9); 70710 70711 70712 70713 70714 70715 70716 70717 70718 70719 70720var HelpBlock = function (_React$Component) { 70721 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(HelpBlock, _React$Component); 70722 70723 function HelpBlock() { 70724 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, HelpBlock); 70725 70726 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 70727 } 70728 70729 HelpBlock.prototype.render = function render() { 70730 var _props = this.props, 70731 className = _props.className, 70732 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['className']); 70733 70734 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["splitBsProps"])(props), 70735 bsProps = _splitBsProps[0], 70736 elementProps = _splitBsProps[1]; 70737 70738 var classes = Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["getClassSet"])(bsProps); 70739 70740 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('span', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 70741 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 70742 })); 70743 }; 70744 70745 return HelpBlock; 70746}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 70747 70748/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["bsClass"])('help-block', HelpBlock)); 70749 70750/***/ }), 70751/* 713 */ 70752/***/ (function(module, __webpack_exports__, __webpack_require__) { 70753 70754"use strict"; 70755/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 70756/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 70757/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 70758/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 70759/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 70760/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 70761/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 70762/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 70763/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 70764/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 70765/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 70766/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 70767/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 70768/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 70769/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 70770/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 70771/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 70772 70773 70774 70775 70776 70777 70778 70779 70780 70781 70782 70783var propTypes = { 70784 /** 70785 * Sets image as responsive image 70786 */ 70787 responsive: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 70788 70789 /** 70790 * Sets image shape as rounded 70791 */ 70792 rounded: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 70793 70794 /** 70795 * Sets image shape as circle 70796 */ 70797 circle: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 70798 70799 /** 70800 * Sets image shape as thumbnail 70801 */ 70802 thumbnail: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool 70803}; 70804 70805var defaultProps = { 70806 responsive: false, 70807 rounded: false, 70808 circle: false, 70809 thumbnail: false 70810}; 70811 70812var Image = function (_React$Component) { 70813 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Image, _React$Component); 70814 70815 function Image() { 70816 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Image); 70817 70818 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 70819 } 70820 70821 Image.prototype.render = function render() { 70822 var _classes; 70823 70824 var _props = this.props, 70825 responsive = _props.responsive, 70826 rounded = _props.rounded, 70827 circle = _props.circle, 70828 thumbnail = _props.thumbnail, 70829 className = _props.className, 70830 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['responsive', 'rounded', 'circle', 'thumbnail', 'className']); 70831 70832 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["splitBsProps"])(props), 70833 bsProps = _splitBsProps[0], 70834 elementProps = _splitBsProps[1]; 70835 70836 var classes = (_classes = {}, _classes[Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["prefix"])(bsProps, 'responsive')] = responsive, _classes[Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["prefix"])(bsProps, 'rounded')] = rounded, _classes[Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["prefix"])(bsProps, 'cir
70836cle')] = circle, _classes[Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["prefix"])(bsProps, 'thumbnail')] = thumbnail, _classes); 70837 70838 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('img', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 70839 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 70840 })); 70841 }; 70842 70843 return Image; 70844}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 70845 70846Image.propTypes = propTypes; 70847Image.defaultProps = defaultProps; 70848 70849/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsClass"])('img', Image)); 70850 70851/***/ }), 70852/* 714 */ 70853/***/ (function(module, __webpack_exports__, __webpack_require__) { 70854 70855"use strict"; 70856/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 70857/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 70858/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 70859/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 70860/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 70861/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 70862/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 70863/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 70864/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 70865/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 70866/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 70867/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 70868/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 70869/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 70870/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__InputGroupAddon__ = __webpack_require__(715); 70871/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__InputGroupButton__ = __webpack_require__(716); 70872/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 70873/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_StyleConfig__ = __webpack_require__(20); 70874 70875 70876 70877 70878 70879 70880 70881 70882 70883 70884 70885 70886 70887var InputGroup = function (_React$Component) { 70888 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(InputGroup, _React$Component); 70889 70890 function InputGroup() { 70891 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, InputGroup); 70892 70893 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 70894 } 70895 70896 InputGroup.prototype.render = function render() { 70897 var _props = this.props, 70898 className = _props.className, 70899 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['className']); 70900 70901 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 70902 bsProps = _splitBsProps[0], 70903 elementProps = _splitBsProps[1]; 70904 70905 var classes = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["getClassSet"])(bsProps); 70906 70907 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('span', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 70908 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 70909 })); 70910 }; 70911 70912 return InputGroup; 70913}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 70914 70915InputGroup.Addon = __WEBPACK_IMPORTED_MODULE_7__InputGroupAddon__["a" /* default */]; 70916InputGroup.Button = __WEBPACK_IMPORTED_MODULE_8__InputGroupButton__["a" /* default */]; 70917 70918/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('input-group', Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsSizes"])([__WEBPACK_IMPORTED_MODULE_10__utils_StyleConfig__["c" /* Size */].LARGE, __WEBPACK_IMPORTED_MODULE_10__utils_StyleConfig__["c" /* Size */].SMALL], InputGroup))); 70919 70920/***/ }), 70921/* 715 */ 70922/***/ (function(module, __webpack_exports__, __webpack_require__) { 70923 70924"use strict"; 70925/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 70926/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 70927/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 70928/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 70929/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 70930/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 70931/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 70932/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 70933/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 70934/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 70935/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 70936/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 70937/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 70938/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 70939/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__ = __webpack_require__(9); 70940 70941 70942 70943 70944 70945 70946 70947 70948 70949 70950var InputGroupAddon = function (_React$Component) { 70951 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(InputGroupAddon, _React$Component); 70952 70953 function InputGroupAddon() { 70954 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, InputGroupAddon); 70955 70956 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 70957 } 70958 70959 InputGroupAddon.prototype.render = function render() { 70960 var _props = this.props, 70961 className = _props.className, 70962 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['className']); 70963 70964 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["splitBsProps"])(props), 70965 bsProps = _splitBsProps[0], 70966 elementProps = _splitBsProps[1]; 70967 70968 var classes = Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["getClassSet"])(bsProps); 70969 70970 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('span', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 70971 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 70972 })); 70973 }; 70974 70975 return InputGroupAddon; 70976}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 70977 70978/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["bsClass"])('input-group-addon', InputGroupAddon)); 70979 70980/***/ }), 70981/* 716 */ 70982/***/ (function(module, __webpack_exports__, __webpack_require__) { 70983 70984"use strict"; 70985/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 70986/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 70987/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 70988/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 70989/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 70990/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 70991/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 70992/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 70993/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 70994/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 70995/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 70996/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 70997/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 70998/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 70999/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__ = __webpack_require__(9); 71000 71001 71002 71003 71004 71005 71006 71007 71008 71009 71010var InputGroupButton = function (_React$Component) { 71011 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(InputGroupButton, _React$Component); 71012 71013 function InputGroupButton() { 71014 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, InputGroupButton); 71015 71016 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 71017 } 71018 71019 InputGroupButton.prototype.render = function render() { 71020 var _props = this.props, 71021 className = _props.className, 71022 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['className']); 71023 71024 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["splitBsProps"])(props), 71025 bsProps = _splitBsProps[0], 71026 elementProps = _splitBsProps[1]; 71027 71028 var classes = Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["getClassSet"])(bsProps); 71029 71030 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('span', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 71031 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 71032 })); 71033 }; 71034 71035 return InputGroupButton; 71036}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 71037 71038/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["bsClass"])('input-group-btn', InputGroupButton)); 71039 71040/***/ }), 71041/* 717 */ 71042/***/ (function(module, __webpack_exports__, __webpack_require__) { 71043 71044"use strict"; 71045/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 71046/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 71047/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 71048/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 71049/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 71050/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 71051/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 71052/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 71053/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 71054/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 71055/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0); 71056/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__); 71057/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames__ = __webpack_require__(8); 71058/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_classnames__); 71059/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__ = __webpack_require__(13); 71060/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__); 71061/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 71062 71063 71064 71065 71066 71067 71068 71069 71070 71071 71072 71073var propTypes = { 71074 componentClass: __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default.a 71075}; 71076 71077var defaultProps = { 71078 componentClass: 'div' 71079}; 71080 71081var Jumbotron = function (_React$Component) { 71082 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Jumbotron, _React$Component); 71083 71084 function Jumbotron() { 71085 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Jumbotron); 71086 71087 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 71088 } 71089 71090 Jumbotron.prototype.render = function render() { 71091 var _props = this.props, 71092 Component = _props.componentClass, 71093 className = _props.className, 71094 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['componentClass', 'className']); 71095 71096 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["splitBsProps"])(props), 71097 bsProps = _splitBsProps[0], 71098 elementProps = _splitBsProps[1]; 71099 71100 var classes = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["getClassSet"])(bsProps);
71101 71102 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 71103 className: __WEBPACK_IMPORTED_MODULE_6_classnames___default()(className, classes) 71104 })); 71105 }; 71106 71107 return Jumbotron; 71108}(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component); 71109 71110Jumbotron.propTypes = propTypes; 71111Jumbotron.defaultProps = defaultProps; 71112 71113/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsClass"])('jumbotron', Jumbotron)); 71114 71115/***/ }), 71116/* 718 */ 71117/***/ (function(module, __webpack_exports__, __webpack_require__) { 71118 71119"use strict"; 71120/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values__ = __webpack_require__(62); 71121/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values__); 71122/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(6); 71123/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__); 71124/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 71125/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties__); 71126/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 71127/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__); 71128/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 71129/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__); 71130/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(5); 71131/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__); 71132/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames__ = __webpack_require__(8); 71133/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_classnames__); 71134/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react__ = __webpack_require__(0); 71135/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react__); 71136/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 71137/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_StyleConfig__ = __webpack_require__(20); 71138 71139 71140 71141 71142 71143 71144 71145 71146 71147 71148 71149 71150var Label = function (_React$Component) { 71151 __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(Label, _React$Component); 71152 71153 function Label() { 71154 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck___default()(this, Label); 71155 71156 return __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 71157 } 71158 71159 Label.prototype.hasContent = function hasContent(children) { 71160 var result = false;
71161 71162 __WEBPACK_IMPORTED_MODULE_7_react___default.a.Children.forEach(children, function (child) { 71163 if (result) { 71164 return; 71165 } 71166 71167 if (child || child === 0) { 71168 result = true; 71169 } 71170 }); 71171 71172 return result; 71173 }; 71174 71175 Label.prototype.render = function render() { 71176 var _props = this.props, 71177 className = _props.className, 71178 children = _props.children, 71179 props = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['className', 'children']); 71180 71181 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["splitBsProps"])(props), 71182 bsProps = _splitBsProps[0], 71183 elementProps = _splitBsProps[1]; 71184 71185 var classes = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["getClassSet"])(bsProps), { 71186 71187 // Hack for collapsing on IE8. 71188 hidden: !this.hasContent(children) 71189 }); 71190 71191 return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement( 71192 'span', 71193 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, elementProps, { 71194 className: __WEBPACK_IMPORTED_MODULE_6_classnames___default()(className, classes) 71195 }), 71196 children 71197 ); 71198 }; 71199 71200 return Label; 71201}(__WEBPACK_IMPORTED_MODULE_7_react___default.a.Component); 71202 71203/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsClass"])('label', Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsStyles"])([].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values___default()(__WEBPACK_IMPORTED_MODULE_9__utils_StyleConfig__["d" /* State */]), [__WEBPACK_IMPORTED_MODULE_9__utils_StyleConfig__["e" /* Style */].DEFAULT, __WEBPACK_IMPORTED_MODULE_9__utils_StyleConfig__["e" /* Style */].PRIMARY]), __WEBPACK_IMPORTED_MODULE_9__utils_StyleConfig__["e" /* Style */].DEFAULT, Label))); 71204 71205/***/ }), 71206/* 719 */ 71207/***/ (function(module, __webpack_exports__, __webpack_require__) { 71208 71209"use strict"; 71210/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 71211/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 71212/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 71213/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 71214/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 71215/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 71216/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 71217/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 71218/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 71219/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 71220/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 71221/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 71222/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 71223/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 71224/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__ = __webpack_require__(13); 71225/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__); 71226/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__ListGroupItem__ = __webpack_require__(385); 71227/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 71228/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_ValidComponentChildren__ = __webpack_require__(22); 71229 71230 71231 71232 71233 71234 71235 71236 71237 71238 71239 71240 71241 71242var propTypes = { 71243 /** 71244 * You can use a custom element type for this component. 71245 * 71246 * If not specified, it will be treated as `'li'` if every child is a 71247 * non-actionable `<ListGroupItem>`, and `'div'` otherwise. 71248 */ 71249 componentClass: __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default.a 71250}; 71251 71252function getDefaultComponent(children) { 71253 if (!children) { 71254 // FIXME: This is the old behavior. Is this right? 71255 return 'div'; 71256 } 71257 71258 if (__WEBPACK_IMPORTED_MODULE_10__utils_ValidComponentChildren__["a" /* default */].some(children, function (child) { 71259 return child.type !== __WEBPACK_IMPORTED_MODULE_8__ListGroupItem__["a" /* default */] || child.props.href || child.props.onClick; 71260 })) { 71261 return 'div'; 71262 } 71263 71264 return 'ul'; 71265} 71266 71267var ListGroup = function (_React$Component) { 71268 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(ListGroup, _React$Component); 71269 71270 function ListGroup() { 71271 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, ListGroup); 71272 71273 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 71274 } 71275 71276 ListGroup.prototype.render = function render() { 71277 var _props = this.props, 71278 children = _props.children, 71279 _props$componentClass = _props.componentClass, 71280 Component = _props$componentClass === undefined ? getDefaultComponent(children) : _props$componentClass, 71281 className = _props.className, 71282 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['children', 'componentClass', 'className']); 71283 71284 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 71285 bsProps = _splitBsProps[0], 71286 elementProps = _splitBsProps[1]; 71287 71288 var classes = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["getClassSet"])(bsProps); 71289 71290 var useListItem = Component === 'ul' && __WEBPACK_IMPORTED_MODULE_10__utils_ValidComponentChildren__["a" /* default */].every(children, function (child) { 71291 return child.type === __WEBPACK_IMPORTED_MODULE_8__ListGroupItem__["a" /* default */]; 71292 }); 71293 71294 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 71295 Component, 71296 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 71297 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 71298 }), 71299 useListItem ? __WEBPACK_IMPORTED_MODULE_10__utils_ValidComponentChildren__["a" /* default */].map(children, function (child) { 71300 return Object(__WEBPACK_IMPORTED_MODULE_6_react__["cloneElement"])(child, { listItem: true }); 71301 }) : children 71302 ); 71303 }; 71304 71305 return ListGroup; 71306}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 71307
71308ListGroup.propTypes = propTypes; 71309 71310/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('list-group', ListGroup)); 71311 71312/***/ }), 71313/* 720 */ 71314/***/ (function(module, __webpack_exports__, __webpack_require__) { 71315 71316"use strict"; 71317/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 71318/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 71319/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 71320/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 71321/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 71322/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 71323/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 71324/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 71325/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 71326/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 71327/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 71328/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 71329/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 71330/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 71331/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 71332/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 71333/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__ = __webpack_require__(13); 71334/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__); 71335/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Media__ = __webpack_require__(101); 71336/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__ = __webpack_require__(9); 71337 71338 71339 71340 71341 71342 71343 71344 71345 71346 71347 71348 71349 71350var propTypes = { 71351 /** 71352 * Align the media to the top, middle, or bottom of the media object. 71353 */ 71354 align: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOf(['top', 'middle', 'bottom']), 71355 71356 componentClass: __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default.a 71357}; 71358 71359var defaultProps = { 71360 componentClass: 'div' 71361}; 71362 71363var MediaBody = function (_React$Component) { 71364 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(MediaBody, _React$Component); 71365 71366 function MediaBody() { 71367 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, MediaBody); 71368 71369 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 71370 } 71371 71372 MediaBody.prototype.render = function render() { 71373 var _props = this.props, 71374 Component = _props.componentClass, 71375 align = _props.align, 71376 className = _props.className, 71377 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['componentClass', 'align', 'className']); 71378 71379 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["splitBsProps"])(props), 71380 bsProps = _splitBsProps[0], 71381 elementProps = _splitBsProps[1]; 71382 71383 var classes = Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["getClassSet"])(bsProps); 71384 71385 if (align) { 71386 // The class is e.g. `media-top`, not `media-left-top`. 71387 classes[Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["prefix"])(__WEBPACK_IMPORTED_MODULE_9__Media__["a" /* default */].defaultProps, align)] = true; 71388 } 71389 71390 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 71391 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 71392 })); 71393 }; 71394 71395 return MediaBody; 71396}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 71397
71398MediaBody.propTypes = propTypes; 71399MediaBody.defaultProps = defaultProps; 71400 71401/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["bsClass"])('media-body', MediaBody)); 71402 71403/***/ }), 71404/* 721 */ 71405/***/ (function(module, __webpack_exports__, __webpack_require__) { 71406 71407"use strict"; 71408/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 71409/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 71410/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 71411/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 71412/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 71413/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 71414/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 71415/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 71416/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 71417/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 71418/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 71419/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 71420/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 71421/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 71422/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__ = __webpack_require__(13); 71423/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__); 71424/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 71425 71426 71427 71428 71429 71430 71431 71432 71433 71434 71435 71436var propTypes = { 71437 componentClass: __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default.a 71438}; 71439 71440var defaultProps = { 71441 componentClass: 'h4' 71442}; 71443 71444var MediaHeading = function (_React$Component) { 71445 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(MediaHeading, _React$Component); 71446 71447 function MediaHeading() { 71448 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, MediaHeading); 71449 71450 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 71451 } 71452 71453 MediaHeading.prototype.render = function render() { 71454 var _props = this.props, 71455 Component = _props.componentClass, 71456 className = _props.className, 71457 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['componentClass', 'className']); 71458 71459 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["splitBsProps"])(props), 71460 bsProps = _splitBsProps[0], 71461 elementProps = _splitBsProps[1]; 71462 71463 var classes = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["getClassSet"])(bsProps); 71464 71465 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 71466 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 71467 })); 71468 }; 71469 71470 return MediaHeading; 71471}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 71472
71473MediaHeading.propTypes = propTypes; 71474MediaHeading.defaultProps = defaultProps; 71475 71476/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsClass"])('media-heading', MediaHeading)); 71477 71478/***/ }), 71479/* 722 */ 71480/***/ (function(module, __webpack_exports__, __webpack_require__) { 71481 71482"use strict"; 71483/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 71484/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 71485/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 71486/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 71487/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 71488/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 71489/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 71490/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 71491/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 71492/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 71493/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 71494/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 71495/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 71496/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 71497/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 71498/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 71499/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Media__ = __webpack_require__(101); 71500/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 71501 71502 71503 71504 71505 71506 71507 71508 71509 71510 71511 71512 71513var propTypes = { 71514 /** 71515 * Align the media to the top, middle, or bottom of the media object. 71516 */ 71517 align: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOf(['top', 'middle', 'bottom']) 71518}; 71519 71520var MediaLeft = function (_React$Component) { 71521 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(MediaLeft, _React$Component); 71522 71523 function MediaLeft() { 71524 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, MediaLeft); 71525 71526 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 71527 } 71528 71529 MediaLeft.prototype.render = function render() { 71530 var _props = this.props, 71531 align = _props.align, 71532 className = _props.className, 71533 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['align', 'className']); 71534 71535 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 71536 bsProps = _splitBsProps[0], 71537 elementProps = _splitBsProps[1]; 71538 71539 var classes = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["getClassSet"])(bsProps); 71540 71541 if (align) { 71542 // The class is e.g. `media-top`, not `media-left-top`. 71543 classes[Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(__WEBPACK_IMPORTED_MODULE_8__Media__["a" /* default */].defaultProps, align)] = true; 71544 } 71545 71546 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('div', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 71547 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 71548 })); 71549 }; 71550 71551 return MediaLeft; 71552}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 71553
71554MediaLeft.propTypes = propTypes; 71555 71556/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('media-left', MediaLeft)); 71557 71558/***/ }), 71559/* 723 */ 71560/***/ (function(module, __webpack_exports__, __webpack_require__) { 71561 71562"use strict"; 71563/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 71564/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 71565/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 71566/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 71567/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 71568/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 71569/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 71570/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 71571/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 71572/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 71573/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 71574/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 71575/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 71576/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 71577/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__ = __webpack_require__(9); 71578 71579 71580 71581 71582 71583 71584 71585 71586 71587 71588var MediaList = function (_React$Component) { 71589 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(MediaList, _React$Component); 71590 71591 function MediaList() { 71592 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, MediaList); 71593 71594 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 71595 } 71596 71597 MediaList.prototype.render = function render() { 71598 var _props = this.props, 71599 className = _props.className, 71600 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['className']); 71601 71602 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["splitBsProps"])(props), 71603 bsProps = _splitBsProps[0], 71604 elementProps = _splitBsProps[1]; 71605 71606 var classes = Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["getClassSet"])(bsProps); 71607 71608 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('ul', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 71609 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 71610 })); 71611 }; 71612 71613 return MediaList; 71614}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 71615 71616/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["bsClass"])('media-list', MediaList)); 71617 71618/***/ }), 71619/* 724 */ 71620/***/ (function(module, __webpack_exports__, __webpack_require__) { 71621 71622"use strict"; 71623/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 71624/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 71625/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 71626/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 71627/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 71628/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 71629/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 71630/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 71631/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 71632/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 71633/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 71634/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 71635/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 71636/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 71637/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__ = __webpack_require__(9); 71638 71639 71640 71641 71642 71643 71644 71645 71646 71647 71648var MediaListItem = function (_React$Component) { 71649 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(MediaListItem, _React$Component); 71650 71651 function MediaListItem() { 71652 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, MediaListItem); 71653 71654 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 71655 } 71656 71657 MediaListItem.prototype.render = function render() { 71658 var _props = this.props, 71659 className = _props.className, 71660 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['className']); 71661 71662 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["splitBsProps"])(props), 71663 bsProps = _splitBsProps[0], 71664 elementProps = _splitBsProps[1]; 71665 71666 var classes = Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["getClassSet"])(bsProps); 71667 71668 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('li', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 71669 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 71670 })); 71671 }; 71672 71673 return MediaListItem; 71674}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 71675 71676/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["bsClass"])('media', MediaListItem)); 71677 71678/***/ }), 71679/* 725 */ 71680/***/ (function(module, __webpack_exports__, __webpack_require__) { 71681 71682"use strict"; 71683/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 71684/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 71685/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 71686/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 71687/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 71688/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 71689/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 71690/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 71691/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 71692/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 71693/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 71694/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 71695/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 71696/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 71697/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 71698/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 71699/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Media__ = __webpack_require__(101); 71700/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 71701 71702 71703 71704 71705 71706 71707 71708 71709 71710 71711 71712 71713var propTypes = { 71714 /** 71715 * Align the media to the top, middle, or bottom of the media object. 71716 */ 71717 align: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOf(['top', 'middle', 'bottom']) 71718}; 71719 71720var MediaRight = function (_React$Component) { 71721 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(MediaRight, _React$Component); 71722 71723 function MediaRight() { 71724 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, MediaRight); 71725 71726 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 71727 } 71728 71729 MediaRight.prototype.render = function render() { 71730 var _props = this.props, 71731 align = _props.align, 71732 className = _props.className, 71733 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['align', 'className']); 71734 71735 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 71736 bsProps = _splitBsProps[0], 71737 elementProps = _splitBsProps[1]; 71738 71739 var classes = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["getClassSet"])(bsProps); 71740 71741 if (align) { 71742 // The class is e.g. `media-top`, not `media-right-top`. 71743 classes[Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(__WEBPACK_IMPORTED_MODULE_8__Media__["a" /* default */].defaultProps, align)] = true; 71744 } 71745 71746 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('div', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 71747 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 71748 })); 71749 }; 71750 71751 return MediaRight; 71752}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 71753
71754MediaRight.propTypes = propTypes; 71755 71756/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('media-right', MediaRight)); 71757 71758/***/ }), 71759/* 726 */ 71760/***/ (function(module, __webpack_exports__, __webpack_require__) { 71761 71762"use strict"; 71763/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 71764/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 71765/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 71766/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 71767/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 71768/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 71769/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 71770/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 71771/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 71772/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 71773/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 71774/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 71775/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 71776/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 71777/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 71778/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 71779/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_all__ = __webpack_require__(94); 71780/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_all___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_all__); 71781/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__SafeAnchor__ = __webpack_require__(34); 71782/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__ = __webpack_require__(9); 71783/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__utils_createChainedFunction__ = __webpack_require__(16); 71784 71785 71786 71787 71788 71789 71790 71791 71792 71793 71794 71795 71796 71797 71798var propTypes = { 71799 /** 71800 * Highlight the menu item as active. 71801 */ 71802 active: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 71803 71804 /** 71805 * Disable the menu item, making it unselectable. 71806 */ 71807 disabled: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 71808 71809 /** 71810 * Styles the menu item as a horizontal rule, providing visual separation between 71811 * groups of menu items. 71812 */ 71813 divider: __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_all___default()(__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, function (_ref) { 71814 var divider = _ref.divider, 71815 children = _ref.children; 71816 return divider && children ? new Error('Children will not be rendered for dividers') : null; 71817 }), 71818 71819 /** 71820 * Value passed to the `onSelect` handler, useful for identifying the selected menu item. 71821 */ 71822 eventKey: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any, 71823 71824 /** 71825 * Styles the menu item as a header label, useful for describing a group of menu items. 71826 */ 71827 header: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 71828 71829 /** 71830 * HTML `href` attribute corresponding to `a.href`. 71831 */ 71832 href: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 71833 71834 /**
71835 * Callback fired when the menu item is clicked. 71836 */ 71837 onClick: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 71838 71839 /** 71840 * Callback fired when the menu item is selected. 71841 * 71842 * ```js 71843 * (eventKey: any, event: Object) => any 71844 * ``` 71845 */ 71846 onSelect: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func 71847}; 71848 71849var defaultProps = { 71850 divider: false, 71851 disabled: false, 71852 header: false 71853}; 71854 71855var MenuItem = function (_React$Component) { 71856 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(MenuItem, _React$Component); 71857 71858 function MenuItem(props, context) { 71859 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, MenuItem); 71860 71861 var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props, context)); 71862 71863 _this.handleClick = _this.handleClick.bind(_this); 71864 return _this; 71865 } 71866 71867 MenuItem.prototype.handleClick = function handleClick(event) { 71868 var _props = this.props, 71869 href = _props.href, 71870 disabled = _props.disabled, 71871 onSelect = _props.onSelect, 71872 eventKey = _props.eventKey; 71873 71874 71875 if (!href || disabled) { 71876 event.preventDefault(); 71877 } 71878 71879 if (disabled) { 71880 return; 71881 } 71882 71883 if (onSelect) { 71884 onSelect(eventKey, event); 71885 } 71886 }; 71887 71888 MenuItem.prototype.render = function render() { 71889 var _props2 = this.props, 71890 active = _props2.active, 71891 disabled = _props2.disabled, 71892 divider = _props2.divider, 71893 header = _props2.header, 71894 onClick = _props2.onClick, 71895 className = _props2.className, 71896 style = _props2.style, 71897 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props2, ['active', 'disabled', 'divider', 'header', 'onClick', 'className', 'style']); 71898 71899 var _splitBsPropsAndOmit = Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["splitBsPropsAndOmit"])(props, ['eventKey', 'onSelect']), 71900 bsProps = _splitBsPropsAndOmit[0], 71901 elementProps = _splitBsPropsAndOmit[1]; 71902 71903 if (divider) { 71904 // Forcibly blank out the children; separators shouldn't render any. 71905 elementProps.children = undefined; 71906 71907 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('li', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 71908 role: 'separator', 71909 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, 'divider'), 71910 style: style 71911 })); 71912 } 71913 71914 if (header) { 71915 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('li', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 71916 role: 'heading', 71917 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["prefix"])(bsProps, 'header')), 71918 style: style 71919 })); 71920 } 71921 71922 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 71923 'li', 71924 { 71925 role: 'presentation', 71926 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, { active: active, disabled: disabled }), 71927 style: style 71928 }, 71929 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__SafeAnchor__["a" /* default */], __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 71930 role: 'menuitem', 71931 tabIndex: '-1', 71932 onClick: Object(__WEBPACK_IMPORTED_MODULE_11__utils_createChainedFunction__["a" /* default */])(onClick, this.handleClick) 71933 })) 71934 ); 71935 }; 71936 71937 return MenuItem; 71938}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 71939 71940MenuItem.propTypes = propTypes; 71941MenuItem.defaultProps = defaultProps; 71942 71943/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["bsClass"])('dropdown', MenuItem)); 71944 71945/***/ }), 71946/* 727 */ 71947/***/ (function(module, __webpack_exports__, __webpack_require__) { 71948 71949"use strict"; 71950/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 71951/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__); 71952/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 71953/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); 71954/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 71955/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); 71956/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(5); 71957/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); 71958/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__ = __webpack_require__(6); 71959/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__); 71960/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 71961/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 71962/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_dom_helpers_events__ = __webpack_require__(728); 71963/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_dom_helpers_events___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_dom_helpers_events__); 71964/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_dom_helpers_ownerDocument__ = __webpack_require__(63); 71965/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_dom_helpers_ownerDocument___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_dom_helpers_ownerDocument__); 71966/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_dom_helpers_util_inDOM__ = __webpack_require__(39); 71967/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_dom_helpers_util_inDOM___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_dom_helpers_util_inDOM__); 71968/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_dom_helpers_util_scrollbarSize__ = __webpack_require__(386); 71969/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_dom_helpers_util_scrollbarSize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_dom_helpers_util_scrollbarSize__); 71970/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react__ = __webpack_require__(0); 71971/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react__); 71972/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_prop_types__ = __webpack_require__(2); 71973/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_prop_types__); 71974/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_react_dom__ = __webpack_require__(17); 71975/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_react_dom__); 71976/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_react_overlays_lib_Modal__ = __webpack_require__(732); 71977/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_react_overlays_lib_Modal___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_react_overlays_lib_Modal__); 71978/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_overlays_lib_utils_isOverflowing__ = __webpack_require__(388); 71979/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_overlays_lib_utils_isOverflowing___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_overlays_lib_utils_isOverflowing__); 71980/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_prop_types_extra_lib_elementType__ = __webpack_require__(13); 71981/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_15_prop_types_extra_lib_elementType__); 71982/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__Fade__ = __webpack_require__(100); 71983/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__ModalBody__ = __webpack_require__(390); 71984/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__ModalDialog__ = __webpack_require__(742); 71985/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__ModalFooter__ = __webpack_require__(391); 71986/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__ModalHeader__ = __webpack_require__(392); 71987/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__ModalTitle__ = __webpack_require__(393); 71988/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__utils_bootstrapUtils__ = __webpack_require__(9); 71989/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__utils_createChainedFunction__ = __webpack_require__(16); 71990/* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__utils_splitComponentProps__ = __webpack_require__(99); 71991/* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__utils_StyleConfig__ = __webpack_require__(20); 71992 71993 71994 71995 71996 71997 71998 71999 72000 72001 72002 72003 72004 72005 72006 72007 72008 72009 72010 72011 72012 72013 72014 72015 72016 72017 72018 72019 72020var propTypes = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, __WEBPACK_IMPORTED_MODULE_13_react_overlays_lib_Modal___default.a.propTypes, __WEBPACK_IMPORTED_MODULE_18__ModalDialog__["a" /* default */].propTypes, { 72021 72022 /** 72023 * Include a backdrop component. Specify 'static' for a backdrop that doesn't 72024 * trigger an "onHide" when clicked. 72025 */ 72026 backdrop: __WEBPACK_IMPORTED_MODULE_11_prop_types___default.a.oneOf(['static', true, false]), 72027 72028 /** 72029 * Add an optional extra class name to .modal-backdrop 72030 * It could end up looking like class="modal-backdrop foo-modal-backdrop in". 72031 */ 72032 backdropClassName: __WEBPACK_IMPORTED_MODULE_11_prop_types___default.a.string, 72033 72034 /** 72035 * Close the modal when escape key is pressed 72036 */ 72037 keyboard: __WEBPACK_IMPORTED_MODULE_11_prop_types___default.a.bool, 72038 72039 /** 72040 * Open and close the Modal with a slide and fade animation. 72041 */ 72042 animation: __WEBPACK_IMPORTED_MODULE_11_prop_types___default.a.bool, 72043 72044 /**
72045 * A Component type that provides the modal content Markup. This is a useful 72046 * prop when you want to use your own styles and markup to create a custom 72047 * modal component. 72048 */ 72049 dialogComponentClass: __WEBPACK_IMPORTED_MODULE_15_prop_types_extra_lib_elementType___default.a, 72050 72051 /** 72052 * When `true` The modal will automatically shift focus to itself when it 72053 * opens, and replace it to the last focused element when it closes. 72054 * Generally this should never be set to false as it makes the Modal less 72055 * accessible to assistive technologies, like screen-readers. 72056 */ 72057 autoFocus: __WEBPACK_IMPORTED_MODULE_11_prop_types___default.a.bool, 72058 72059 /** 72060 * When `true` The modal will prevent focus from leaving the Modal while 72061 * open. Consider leaving the default value here, as it is necessary to make 72062 * the Modal work well with assistive technologies, such as screen readers. 72063 */ 72064 enforceFocus: __WEBPACK_IMPORTED_MODULE_11_prop_types___default.a.bool, 72065 72066 /** 72067 * When `true` The modal will restore focus to previously focused element once 72068 * modal is hidden 72069 */ 72070 restoreFocus: __WEBPACK_IMPORTED_MODULE_11_prop_types___default.a.bool, 72071 72072 /** 72073 * When `true` The modal will show itself. 72074 */ 72075 show: __WEBPACK_IMPORTED_MODULE_11_prop_types___default.a.bool, 72076 72077 /** 72078 * A callback fired when the header closeButton or non-static backdrop is 72079 * clicked. Required if either are specified. 72080 */ 72081 onHide: __WEBPACK_IMPORTED_MODULE_11_prop_types___default.a.func, 72082 72083 /** 72084 * Callback fired before the Modal transitions in 72085 */ 72086 onEnter: __WEBPACK_IMPORTED_MODULE_11_prop_types___default.a.func, 72087 72088 /** 72089 * Callback fired as the Modal begins to transition in 72090 */ 72091 onEntering: __WEBPACK_IMPORTED_MODULE_11_prop_types___default.a.func, 72092 72093 /** 72094 * Callback fired after the Modal finishes transitioning in 72095 */ 72096 onEntered: __WEBPACK_IMPORTED_MODULE_11_prop_types___default.a.func, 72097 72098 /** 72099 * Callback fired right before the Modal transitions out 72100 */ 72101 onExit: __WEBPACK_IMPORTED_MODULE_11_prop_types___default.a.func, 72102 72103 /** 72104 * Callback fired as the Modal begins to transition out 72105 */ 72106 onExiting: __WEBPACK_IMPORTED_MODULE_11_prop_types___default.a.func, 72107 72108 /** 72109 * Callback fired after the Modal finishes transitioning out 72110 */ 72111 onExited: __WEBPACK_IMPORTED_MODULE_11_prop_types___default.a.func, 72112 72113 /** 72114 * @private 72115 */ 72116 container: __WEBPACK_IMPORTED_MODULE_13_react_overlays_lib_Modal___default.a.propTypes.container 72117}); 72118 72119var defaultProps = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, __WEBPACK_IMPORTED_MODULE_13_react_overlays_lib_Modal___default.a.defaultProps, { 72120 animation: true, 72121 dialogComponentClass: __WEBPACK_IMPORTED_MODULE_18__ModalDialog__["a" /* default */] 72122}); 72123 72124var childContextTypes = { 72125 $bs_modal: __WEBPACK_IMPORTED_MODULE_11_prop_types___default.a.shape({ 72126 onHide: __WEBPACK_IMPORTED_MODULE_11_prop_types___default.a.func 72127 }) 72128}; 72129 72130var Modal = function (_React$Component) { 72131 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(Modal, _React$Component); 72132 72133 function Modal(props, context) { 72134 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Modal); 72135 72136 var _this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props, context)); 72137 72138 _this.handleEntering = _this.handleEntering.bind(_this); 72139 _this.handleExited = _this.handleExited.bind(_this); 72140 _this.handleWindowResize = _this.handleWindowResize.bind(_this); 72141 _this.handleDialogClick = _this.handleDialogClick.bind(_this); 72142 _this.setModalRef = _this.setModalRef.bind(_this); 72143 72144 _this.state = { 72145 style: {} 72146 }; 72147 return _this; 72148 } 72149 72150 Modal.prototype.getChildContext = function getChildContext() { 72151 return { 72152 $bs_modal: { 72153 onHide: this.props.onHide 72154 } 72155 }; 72156 }; 72157 72158 Modal.prototype.componentWillUnmount = function componentWillUnmount() { 72159 // Clean up the listener if we need to. 72160 this.handleExited(); 72161 }; 72162 72163 Modal.prototype.setModalRef = function setModalRef(ref) { 72164 this._modal = ref; 72165 }; 72166 72167 Modal.prototype.handleDialogClick = function handleDialogClick(e) { 72168 if (e.target !== e.currentTarget) { 72169 return; 72170 } 72171 72172 this.props.onHide(); 72173 }; 72174 72175 Modal.prototype.handleEntering = function handleEntering() { 72176 // FIXME: This should work even when animation is disabled. 72177 __WEBPACK_IMPORTED_MODULE_6_dom_helpers_events___default.a.on(window, 'resize', this.handleWindowResize); 72178 this.updateStyle(); 72179 }; 72180 72181 Modal.prototype.handleExited = function handleExited() { 72182 // FIXME: This should work even when animation is disabled. 72183 __WEBPACK_IMPORTED_MODULE_6_dom_helpers_events___default.a.off(window, 'resize', this.handleWindowResize); 72184 }; 72185 72186 Modal.prototype.handleWindowResize = function handleWindowResize() { 72187 this.updateStyle(); 72188 }; 72189 72190 Modal.prototype.updateStyle = function updateStyle() { 72191 if (!__WEBPACK_IMPORTED_MODULE_8_dom_helpers_util_inDOM___default.a) { 72192 return; 72193 } 72194 72195 var dialogNode = this._modal.getDialogElement(); 72196 var dialogHeight = dialogNode.scrollHeight; 72197 72198 var document = __WEBPACK_IMPORTED_MODULE_7_dom_helpers_ownerDocument___default()(dialogNode); 72199 var bodyIsOverflowing = __WEBPACK_IMPORTED_MODULE_14_react_overlays_lib_utils_isOverflowing___default()(__WEBPACK_IMPORTED_MODULE_12_react_dom___default.a.findDOMNode(this.props.container || document.body)); 72200 var modalIsOverflowing = dialogHeight > document.documentElement.clientHeight; 72201 72202 this.setState({ 72203 style: { 72204 paddingRight: bodyIsOverflowing && !modalIsOverflowing ? __WEBPACK_IMPORTED_MODULE_9_dom_helpers_util_scrollbarSize___default()() : undefined, 72205 paddingLeft: !bodyIsOverflowing && modalIsOverflowing ? __WEBPACK_IMPORTED_MODULE_9_dom_helpers_util_scrollbarSize___default()() : undefined 72206 } 72207 }); 72208 }; 72209 72210 Modal.prototype.render = function render() { 72211 var _props = this.props, 72212 backdrop = _props.backdrop, 72213 backdropClassName = _props.backdropClassName, 72214 animation = _props.animation, 72215 show = _props.show, 72216 Dialog = _props.dialogComponentClass, 72217 className = _props.className, 72218 style = _props.style, 72219 children = _props.children, 72220 onEntering = _props.onEntering, 72221 onExited = _props.onExited, 72222 props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['backdrop', 'backdropClassName', 'animation', 'show', 'dialogComponentClass', 'className', 'style', 'children', 'onEntering', 'onExited']); 72223 72224 var _splitComponentProps = Object(__WEBPACK_IMPORTED_MODULE_24__utils_splitComponentProps__["a" /* default */])(props, __WEBPACK_IMPORTED_MODULE_13_react_overlays_lib_Modal___default.a), 72225 baseModalProps = _splitComponentProps[0], 72226 dialogProps = _splitComponentProps[1]; 72227 72228 var inClassName = show && !animation && 'in'; 72229 72230 return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement( 72231 __WEBPACK_IMPORTED_MODULE_13_react_overlays_lib_Modal___default.a, 72232 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, baseModalProps, { 72233 ref: this.setModalRef, 72234 show: show, 72235 onEntering: Object(__WEBPACK_IMPORTED_MODULE_23__utils_createChainedFunction__["a" /* default */])(onEntering, this.handleEntering), 72236 onExited: Object(__WEBPACK_IMPORTED_MODULE_23__utils_createChainedFunction__["a" /* default */])(onExited, this.handleExited), 72237 backdrop: backdrop, 72238 backdropClassName: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(Object(__WEBPACK_IMPORTED_MODULE_22__utils_bootstrapUtils__["prefix"])(props, 'backdrop'), backdropClassName, inClassName), 72239 containerClassName: Object(__WEBPACK_IMPORTED_MODULE_22__utils_bootstrapUtils__["prefix"])(props, 'open'), 72240 transition: animation ? __WEBPACK_IMPORTED_MODULE_16__Fade__["a" /* default */] : undefined, 72241 dialogTransitionTimeout: Modal.TRANSITION_DURATION, 72242 backdropTransitionTimeout: Modal.BACKDROP_TRANSITION_DURATION 72243 }), 72244 __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement( 72245 Dialog, 72246 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, dialogProps, { 72247 style: __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, this.state.style, style), 72248 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, inClassName), 72249 onClick: backdrop === true ? this.handleDialogClick : null 72250 }), 72251 children 72252 ) 72253 ); 72254 }; 72255 72256 return Modal; 72257}(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Component); 72258
72259Modal.propTypes = propTypes; 72260Modal.defaultProps = defaultProps; 72261Modal.childContextTypes = childContextTypes; 72262 72263Modal.Body = __WEBPACK_IMPORTED_MODULE_17__ModalBody__["a" /* default */]; 72264Modal.Header = __WEBPACK_IMPORTED_MODULE_20__ModalHeader__["a" /* default */]; 72265Modal.Title = __WEBPACK_IMPORTED_MODULE_21__ModalTitle__["a" /* default */]; 72266Modal.Footer = __WEBPACK_IMPORTED_MODULE_19__ModalFooter__["a" /* default */]; 72267 72268Modal.Dialog = __WEBPACK_IMPORTED_MODULE_18__ModalDialog__["a" /* default */]; 72269 72270Modal.TRANSITION_DURATION = 300; 72271Modal.BACKDROP_TRANSITION_DURATION = 150; 72272 72273/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_22__utils_bootstrapUtils__["bsClass"])('modal', Object(__WEBPACK_IMPORTED_MODULE_22__utils_bootstrapUtils__["bsSizes"])([__WEBPACK_IMPORTED_MODULE_25__utils_StyleConfig__["c" /* Size */].LARGE, __WEBPACK_IMPORTED_MODULE_25__utils_StyleConfig__["c" /* Size */].SMALL], Modal))); 72274 72275/***/ }), 72276/* 728 */ 72277/***/ (function(module, exports, __webpack_require__) { 72278 72279"use strict"; 72280 72281 72282Object.defineProperty(exports, "__esModule", { 72283 value: true 72284});
72285exports.listen = exports.filter = exports.off = exports.on = undefined; 72286 72287var _on = __webpack_require__(96); 72288 72289var _on2 = _interopRequireDefault(_on); 72290 72291var _off = __webpack_require__(157); 72292 72293var _off2 = _interopRequireDefault(_off); 72294 72295var _filter = __webpack_require__(729); 72296 72297var _filter2 = _interopRequireDefault(_filter); 72298 72299var _listen = __webpack_require__(731); 72300 72301var _listen2 = _interopRequireDefault(_listen); 72302 72303function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 72304 72305exports.on = _on2.default; 72306exports.off = _off2.default; 72307exports.filter = _filter2.default; 72308exports.listen = _listen2.default; 72309exports.default = { on: _on2.default, off: _off2.default, filter: _filter2.default, listen: _listen2.default }; 72310 72311/***/ }), 72312/* 729 */ 72313/***/ (function(module, exports, __webpack_require__) { 72314 72315"use strict"; 72316 72317 72318Object.defineProperty(exports, "__esModule", { 72319 value: true 72320}); 72321exports.default = filterEvents; 72322 72323var _contains = __webpack_require__(64); 72324 72325var _contains2 = _interopRequireDefault(_contains); 72326 72327var _querySelectorAll = __webpack_require__(730); 72328 72329var _querySelectorAll2 = _interopRequireDefault(_querySelectorAll); 72330 72331function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 72332 72333function filterEvents(selector, handler) { 72334 return function filterHandler(e) { 72335 var top = e.currentTarget, 72336 target = e.target, 72337 matches = (0, _querySelectorAll2.default)(top, selector); 72338 72339 if (matches.some(function (match) { 72340 return (0, _contains2.default)(match, target); 72341 })) handler.call(this, e); 72342 }; 72343} 72344module.exports = exports['default']; 72345 72346/***/ }), 72347/* 730 */ 72348/***/ (function(module, exports, __webpack_require__) { 72349 72350"use strict"; 72351 72352 72353Object.defineProperty(exports, "__esModule", { 72354 value: true 72355}); 72356exports.default = qsa; 72357// Zepto.js 72358// (c) 2010-2015 Thomas Fuchs 72359// Zepto.js may be freely distributed under the MIT license. 72360var simpleSelectorRE = /^[\w-]*$/; 72361var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice); 72362 72363function qsa(element, selector) { 72364 var maybeID = selector[0] === '#', 72365 maybeClass = selector[0] === '.', 72366 nameOnly = maybeID || maybeClass ? selector.slice(1) : selector, 72367 isSimple = simpleSelectorRE.test(nameOnly), 72368 found; 72369 72370 if (isSimple) { 72371 if (maybeID) { 72372 element = element.getElementById ? element : document; 72373 return (found = element.getElementById(nameOnly)) ? [found] : []; 72374 } 72375 72376 if (element.getElementsByClassName && maybeClass) return toArray(element.getElementsByClassName(nameOnly)); 72377 72378 return toArray(element.getElementsByTagName(selector)); 72379 } 72380 72381 return toArray(element.querySelectorAll(selector)); 72382} 72383module.exports = exports['default']; 72384 72385/***/ }), 72386/* 731 */ 72387/***/ (function(module, exports, __webpack_require__) { 72388 72389"use strict"; 72390 72391 72392Object.defineProperty(exports, "__esModule", { 72393 value: true 72394}); 72395 72396var _inDOM = __webpack_require__(39); 72397 72398var _inDOM2 = _interopRequireDefault(_inDOM); 72399 72400var _on = __webpack_require__(96); 72401 72402var _on2 = _interopRequireDefault(_on); 72403 72404var _off = __webpack_require__(157); 72405 72406var _off2 = _interopRequireDefault(_off); 72407 72408function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 72409 72410var listen = function listen() {}; 72411 72412if (_inDOM2.default) { 72413 listen = function listen(node, eventName, handler, capture) { 72414 (0, _on2.default)(node, eventName, handler, capture); 72415 return function () { 72416 (0, _off2.default)(node, eventName, handler, capture); 72417 }; 72418 }; 72419} 72420 72421exports.default = listen; 72422module.exports = exports['default']; 72423 72424/***/ }), 72425/* 732 */ 72426/***/ (function(module, exports, __webpack_require__) { 72427 72428"use strict"; 72429 72430 72431exports.__esModule = true; 72432 72433var _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; }; 72434 72435var _activeElement = __webpack_require__(380); 72436 72437var _activeElement2 = _interopRequireDefault(_activeElement); 72438 72439var _contains = __webpack_require__(64); 72440 72441var _contains2 = _interopRequireDefault(_contains); 72442 72443var _inDOM = __webpack_require__(39); 72444 72445var _inDOM2 = _interopRequireDefault(_inDOM); 72446 72447var _propTypes = __webpack_require__(2); 72448 72449var _propTypes2 = _interopRequireDefault(_propTypes); 72450 72451var _componentOrElement = __webpack_require__(102); 72452 72453var _componentOrElement2 = _interopRequireDefault(_componentOrElement); 72454 72455var _deprecated = __webpack_require__(733); 72456 72457var _deprecated2 = _interopRequireDefault(_deprecated); 72458 72459var _elementType = __webpack_require__(13); 72460 72461var _elementType2 = _interopRequireDefault(_elementType); 72462 72463var _react = __webpack_require__(0); 72464 72465var _react2 = _interopRequireDefault(_react); 72466 72467var _reactDom = __webpack_require__(17); 72468 72469var _reactDom2 = _interopRequireDefault(_reactDom); 72470 72471var _warning = __webpack_require__(19); 72472 72473var _warning2 = _interopRequireDefault(_warning); 72474 72475var _ModalManager = __webpack_require__(734); 72476 72477var _ModalManager2 = _interopRequireDefault(_ModalManager); 72478 72479var _Portal = __webpack_require__(389); 72480 72481var _Portal2 = _interopRequireDefault(_Portal); 72482 72483var _RefHolder = __webpack_require__(740); 72484 72485var _RefHolder2 = _interopRequireDefault(_RefHolder); 72486 72487var _addEventListener = __webpack_require__(382); 72488 72489var _addEventListener2 = _interopRequireDefault(_addEventListener); 72490 72491var _addFocusListener = __webpack_require__(741); 72492 72493var _addFocusListener2 = _interopRequireDefault(_addFocusListener); 72494 72495var _getContainer = __webpack_require__(104); 72496 72497var _getContainer2 = _interopRequireDefault(_getContainer); 72498 72499var _ownerDocument = __webpack_require__(65); 72500 72501var _ownerDocument2 = _interopRequireDefault(_ownerDocument); 72502 72503function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 72504 72505function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 72506 72507function _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; } 72508 72509function _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, { c
72509onstructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint-disable react/prop-types */ 72510 72511var modalManager = new _ModalManager2.default(); 72512 72513/** 72514 * Love them or hate them, `<Modal/>` provides a solid foundation for creating dialogs, lightboxes, or whatever else. 72515 * The Modal component renders its `children` node in front of a backdrop component. 72516 * 72517 * The Modal offers a few helpful features over using just a `<Portal/>` component and some styles: 72518 * 72519 * - Manages dialog stacking when one-at-a-time just isn't enough. 72520 * - Creates a backdrop, for disabling interaction below the modal. 72521 * - It properly manages focus; moving to the modal content, and keeping it there until the modal is closed. 72522 * - It disables scrolling of the page content while open. 72523 * - Adds the appropriate ARIA roles are automatically. 72524 * - Easily pluggable animations via a `<Transition/>` component. 72525 * 72526 * Note that, in the same way the backdrop element prevents users from clicking or interacting 72527 * with the page content underneath the Modal, Screen readers also need to be signaled to not to 72528 * interact with page content while the Modal is open. To do this, we use a common technique of applying 72529 * the `aria-hidden='true'` attribute to the non-Modal elements in the Modal `container`. This means that for 72530 * a Modal to be truly modal, it should have a `container` that is _outside_ your app's 72531 * React hierarchy (such as the default: document.body). 72532 */ 72533 72534var Modal = function (_React$Component) { 72535 _inherits(Modal, _React$Component); 72536 72537 function Modal() { 72538 var _temp, _this, _ret; 72539 72540 _classCallCheck(this, Modal); 72541 72542 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { 72543 args[_key] = arguments[_key]; 72544 } 72545 72546 return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _initialiseProps.call(_this), _temp), _possibleConstructorReturn(_this, _ret); 72547 } 72548 72549 Modal.prototype.omitProps = function omitProps(props, propTypes) { 72550 72551 var keys = Object.keys(props); 72552 var newProps = {}; 72553 keys.map(function (prop) { 72554 if (!Object.prototype.hasOwnProperty.call(propTypes, prop)) { 72555 newProps[prop] = props[prop]; 72556 } 72557 }); 72558 72559 return newProps; 72560 }; 72561 72562 Modal.prototype.render = function render() { 72563 var _props = this.props, 72564 show = _props.show, 72565 container = _props.container, 72566 children = _props.children, 72567 Transition = _props.transition, 72568 backdrop = _props.backdrop, 72569 dialogTransitionTimeout = _props.dialogTransitionTimeout, 72570 className = _props.className, 72571 style = _props.style, 72572 onExit = _props.onExit, 72573 onExiting = _props.onExiting, 72574 onEnter = _props.onEnter, 72575 onEntering = _props.onEntering, 72576 onEntered = _props.onEntered; 72577 72578 72579 var dialog = _react2.default.Children.only(children); 72580 var filteredProps = this.omitProps(this.props, Modal.propTypes); 72581 72582 var mountModal = show || Transition && !this.state.exited; 72583 if (!mountModal) { 72584 return null; 72585 } 72586 72587 var _dialog$props = dialog.props, 72588 role = _dialog$props.role, 72589 tabIndex = _dialog$props.tabIndex; 72590 72591 72592 if (role === undefined || tabIndex === undefined) { 72593 dialog = (0, _react.cloneElement)(dialog, { 72594 role: role === undefined ? 'document' : role, 72595 tabIndex: tabIndex == null ? '-1' : tabIndex 72596 }); 72597 } 72598 72599 if (Transition) { 72600 dialog = _react2.default.createElement( 72601 Transition, 72602 { 72603 transitionAppear: true, 72604 unmountOnExit: true, 72605 'in': show, 72606 timeout: dialogTransitionTimeout, 72607 onExit: onExit, 72608 onExiting: onExiting, 72609 onExited: this.handleHidden, 72610 onEnter: onEnter, 72611 onEntering: onEntering, 72612 onEntered: onEntered 72613 }, 72614 dialog 72615 ); 72616 } 72617 72618 return _react2.default.createElement( 72619 _Portal2.default, 72620 { 72621 ref: this.setMountNode, 72622 container: container, 72623 onRendered: this.onPortalRendered 72624 }, 72625 _react2.default.createElement( 72626 'div', 72627 _extends({
72628 ref: this.setModalNodeRef, 72629 role: role || 'dialog' 72630 }, filteredProps, { 72631 style: style, 72632 className: className 72633 }), 72634 backdrop && this.renderBackdrop(), 72635 _react2.default.createElement( 72636 _RefHolder2.default, 72637 { ref: this.setDialogRef }, 72638 dialog 72639 ) 72640 ) 72641 ); 72642 }; 72643 72644 Modal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { 72645 if (nextProps.show) { 72646 this.setState({ exited: false }); 72647 } else if (!nextProps.transition) { 72648 // Otherwise let handleHidden take care of marking exited. 72649 this.setState({ exited: true }); 72650 } 72651 }; 72652 72653 Modal.prototype.componentWillUpdate = function componentWillUpdate(nextProps) { 72654 if (!this.props.show && nextProps.show) { 72655 this.checkForFocus(); 72656 } 72657 }; 72658 72659 Modal.prototype.componentDidMount = function componentDidMount() { 72660 this._isMounted = true; 72661 if (this.props.show) { 72662 this.onShow(); 72663 } 72664 }; 72665 72666 Modal.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { 72667 var transition = this.props.transition; 72668 72669 72670 if (prevProps.show && !this.props.show && !transition) { 72671 // Otherwise handleHidden will call this. 72672 this.onHide(); 72673 } else if (!prevProps.show && this.props.show) { 72674 this.onShow(); 72675 } 72676 }; 72677 72678 Modal.prototype.componentWillUnmount = function componentWillUnmount() { 72679 var _props2 = this.props, 72680 show = _props2.show, 72681 transition = _props2.transition; 72682 72683 72684 this._isMounted = false; 72685 72686 if (show || transition && !this.state.exited) { 72687 this.onHide(); 72688 } 72689 }; 72690 72691 Modal.prototype.autoFocus = function autoFocus() { 72692 if (!this.props.autoFocus) { 72693 return; 72694 } 72695 72696 var dialogElement = this.getDialogElement(); 72697 var currentActiveElement = (0, _activeElement2.default)((0, _ownerDocument2.default)(this)); 72698 72699 if (dialogElement && !(0, _contains2.default)(dialogElement, currentActiveElement)) { 72700 this.lastFocus = currentActiveElement; 72701 72702 if (!dialogElement.hasAttribute('tabIndex')) { 72703 (0, _warning2.default)(false, 'The modal content node does not accept focus. For the benefit of ' + 'assistive technologies, the tabIndex of the node is being set ' + 'to "-1".'); 72704 72705 dialogElement.setAttribute('tabIndex', -1); 72706 } 72707 72708 dialogElement.focus(); 72709 } 72710 }; 72711 72712 Modal.prototype.restoreLastFocus = function restoreLastFocus() { 72713 // Support: <=IE11 doesn't support `focus()` on svg elements (RB: #917) 72714 if (this.lastFocus && this.lastFocus.focus) { 72715 this.lastFocus.focus(); 72716 this.lastFocus = null; 72717 } 72718 }; 72719 72720 Modal.prototype.getDialogElement = function getDialogElement() { 72721 return _reactDom2.default.findDOMNode(this.dialog); 72722 }; 72723 72724 Modal.prototype.isTopModal = function isTopModal() { 72725 return this.props.manager.isTopModal(this); 72726 }; 72727 72728 return Modal; 72729}(_react2.default.Component); 72730 72731Modal.propTypes = _extends({}, _Portal2.default.propTypes, { 72732 72733 /** 72734 * Set the visibility of the Modal 72735 */ 72736 show: _propTypes2.default.bool, 72737 72738 /** 72739 * A Node, Component instance, or function that returns either. The Modal is appended to it's container element. 72740 * 72741 * For the sake of assistive technologies, the container should usually be the document body, so that the rest of the 72742 * page content can be placed behind a virtual backdrop as well as a visual one. 72743 */ 72744 container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]), 72745 72746 /** 72747 * A callback fired when the Modal is opening. 72748 */ 72749 onShow: _propTypes2.default.func, 72750 72751 /** 72752 * A callback fired when either the backdrop is clicked, or the escape key is pressed. 72753 * 72754 * The `onHide` callback only signals intent from the Modal, 72755 * you must actually set the `show` prop to `false` for the Modal to close. 72756 */ 72757 onHide: _propTypes2.default.func, 72758 72759 /** 72760 * Include a backdrop component. 72761 */ 72762 backdrop: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.oneOf(['static'])]), 72763 72764 /** 72765 * A function that returns a backdrop component. Useful for custom 72766 * backdrop rendering. 72767 * 72768 * ```js 72769 * renderBackdrop={props => <MyBackdrop {...props} />} 72770 * ``` 72771 */ 72772 renderBackdrop: _propTypes2.default.func, 72773 72774 /**
72775 * A callback fired when the escape key, if specified in `keyboard`, is pressed. 72776 */ 72777 onEscapeKeyDown: _propTypes2.default.func, 72778 72779 /** 72780 * Support for this function will be deprecated. Please use `onEscapeKeyDown` instead 72781 * A callback fired when the escape key, if specified in `keyboard`, is pressed. 72782 * @deprecated 72783 */ 72784 onEscapeKeyUp: (0, _deprecated2.default)(_propTypes2.default.func, 'Please use onEscapeKeyDown instead for consistency'), 72785 72786 /** 72787 * A callback fired when the backdrop, if specified, is clicked. 72788 */ 72789 onBackdropClick: _propTypes2.default.func, 72790 72791 /** 72792 * A style object for the backdrop component. 72793 */ 72794 backdropStyle: _propTypes2.default.object, 72795 72796 /** 72797 * A css class or classes for the backdrop component. 72798 */ 72799 backdropClassName: _propTypes2.default.string, 72800 72801 /** 72802 * A css class or set of classes applied to the modal container when the modal is open, 72803 * and removed when it is closed. 72804 */ 72805 containerClassName: _propTypes2.default.string, 72806 72807 /** 72808 * Close the modal when escape key is pressed 72809 */ 72810 keyboard: _propTypes2.default.bool, 72811 72812 /** 72813 * A `<Transition/>` component to use for the dialog and backdrop components. 72814 */ 72815 transition: _elementType2.default, 72816 72817 /** 72818 * The `timeout` of the dialog transition if specified. This number is used to ensure that 72819 * transition callbacks are always fired, even if browser transition events are canceled. 72820 * 72821 * See the Transition `timeout` prop for more infomation. 72822 */ 72823 dialogTransitionTimeout: _propTypes2.default.number, 72824 72825 /** 72826 * The `timeout` of the backdrop transition if specified. This number is used to 72827 * ensure that transition callbacks are always fired, even if browser transition events are canceled. 72828 * 72829 * See the Transition `timeout` prop for more infomation. 72830 */ 72831 backdropTransitionTimeout: _propTypes2.default.number, 72832 72833 /** 72834 * When `true` The modal will automatically shift focus to itself when it opens, and 72835 * replace it to the last focused element when it closes. This also 72836 * works correctly with any Modal children that have the `autoFocus` prop. 72837 * 72838 * Generally this should never be set to `false` as it makes the Modal less 72839 * accessible to assistive technologies, like screen readers. 72840 */ 72841 autoFocus: _propTypes2.default.bool, 72842 72843 /** 72844 * When `true` The modal will prevent focus from leaving the Modal while open. 72845 * 72846 * Generally this should never be set to `false` as it makes the Modal less 72847 * accessible to assistive technologies, like screen readers. 72848 */ 72849 enforceFocus: _propTypes2.default.bool, 72850 72851 /** 72852 * When `true` The modal will restore focus to previously focused element once 72853 * modal is hidden 72854 */ 72855 restoreFocus: _propTypes2.default.bool, 72856 72857 /** 72858 * Callback fired before the Modal transitions in 72859 */ 72860 onEnter: _propTypes2.default.func, 72861 72862 /** 72863 * Callback fired as the Modal begins to transition in 72864 */ 72865 onEntering: _propTypes2.default.func, 72866 72867 /** 72868 * Callback fired after the Modal finishes transitioning in 72869 */ 72870 onEntered: _propTypes2.default.func, 72871 72872 /** 72873 * Callback fired right before the Modal transitions out 72874 */ 72875 onExit: _propTypes2.default.func, 72876 72877 /** 72878 * Callback fired as the Modal begins to transition out 72879 */ 72880 onExiting: _propTypes2.default.func, 72881 72882 /** 72883 * Callback fired after the Modal finishes transitioning out 72884 */ 72885 onExited: _propTypes2.default.func, 72886 72887 /** 72888 * A ModalManager instance used to track and manage the state of open 72889 * Modals. Useful when customizing how modals interact within a container 72890 */ 72891 manager: _propTypes2.default.object.isRequired 72892}); 72893Modal.defaultProps = { 72894 show: false, 72895 backdrop: true, 72896 keyboard: true, 72897 autoFocus: true, 72898 enforceFocus: true, 72899 restoreFocus: true, 72900 onHide: function onHide() {}, 72901 manager: modalManager, 72902 renderBackdrop: function renderBackdrop(props) { 72903 return _react2.default.createElement('div', props); 72904 } 72905}; 72906 72907var _initialiseProps = function _initialiseProps() { 72908 var _this2 = this; 72909 72910 this.state = { exited: !this.props.show }; 72911 72912 this.renderBackdrop = function () { 72913 var _props3 = _this2.props, 72914 backdropStyle = _props3.backdropStyle, 72915 backdropClassName = _props3.backdropClassName, 72916 renderBackdrop = _props3.renderBackdrop, 72917 Transition = _props3.transition, 72918 backdropTransitionTimeout = _props3.backdropTransitionTimeout; 72919 72920 72921 var backdropRef = function backdropRef(ref) { 72922 return _this2.backdrop = ref; 72923 }; 72924 72925 var backdrop = renderBackdrop({ 72926 ref: backdropRef, 72927 style: backdropStyle, 72928 className: backdropClassName, 72929 onClick: _this2.handleBackdropClick 72930 }); 72931 72932 if (Transition) { 72933 backdrop = _react2.default.createElement( 72934 Transition, 72935 { transitionAppear: true, 72936 'in': _this2.props.show, 72937 timeout: backdropTransitionTimeout 72938 }, 72939 backdrop 72940 ); 72941 } 72942 72943 return backdrop; 72944 }; 72945 72946 this.onPortalRendered = function () {
72947 _this2.autoFocus(); 72948 72949 if (_this2.props.onShow) { 72950 _this2.props.onShow(); 72951 } 72952 }; 72953 72954 this.onShow = function () { 72955 var doc = (0, _ownerDocument2.default)(_this2); 72956 var container = (0, _getContainer2.default)(_this2.props.container, doc.body); 72957 72958 _this2.props.manager.add(_this2, container, _this2.props.containerClassName); 72959 72960 _this2._onDocumentKeydownListener = (0, _addEventListener2.default)(doc, 'keydown', _this2.handleDocumentKeyDown); 72961 72962 _this2._onDocumentKeyupListener = (0, _addEventListener2.default)(doc, 'keyup', _this2.handleDocumentKeyUp); 72963 72964 _this2._onFocusinListener = (0, _addFocusListener2.default)(_this2.enforceFocus); 72965 }; 72966 72967 this.onHide = function () { 72968 _this2.props.manager.remove(_this2); 72969 72970 _this2._onDocumentKeydownListener.remove(); 72971 72972 _this2._onDocumentKeyupListener.remove(); 72973 72974 _this2._onFocusinListener.remove(); 72975 72976 if (_this2.props.restoreFocus) { 72977 _this2.restoreLastFocus(); 72978 } 72979 }; 72980 72981 this.setMountNode = function (ref) { 72982 _this2.mountNode = ref ? ref.getMountNode() : ref; 72983 }; 72984 72985 this.setModalNodeRef = function (ref) {
72986 _this2.modalNode = ref; 72987 }; 72988 72989 this.setDialogRef = function (ref) { 72990 _this2.dialog = ref; 72991 }; 72992 72993 this.handleHidden = function () { 72994 _this2.setState({ exited: true }); 72995 _this2.onHide(); 72996 72997 if (_this2.props.onExited) { 72998 var _props4; 72999 73000 (_props4 = _this2.props).onExited.apply(_props4, arguments); 73001 } 73002 }; 73003 73004 this.handleBackdropClick = function (e) { 73005 if (e.target !== e.currentTarget) { 73006 return; 73007 } 73008 73009 if (_this2.props.onBackdropClick) { 73010 _this2.props.onBackdropClick(e); 73011 } 73012 73013 if (_this2.props.backdrop === true) { 73014 _this2.props.onHide(); 73015 } 73016 }; 73017 73018 this.handleDocumentKeyDown = function (e) { 73019 if (_this2.props.keyboard && e.keyCode === 27 && _this2.isTopModal()) { 73020 if (_this2.props.onEscapeKeyDown) { 73021 _this2.props.onEscapeKeyDown(e); 73022 } 73023 73024 _this2.props.onHide(); 73025 } 73026 }; 73027 73028 this.handleDocumentKeyUp = function (e) { 73029 if (_this2.props.keyboard && e.keyCode === 27 && _this2.isTopModal()) { 73030 if (_this2.props.onEscapeKeyUp) { 73031 _this2.props.onEscapeKeyUp(e); 73032 } 73033 } 73034 }; 73035 73036 this.checkForFocus = function () { 73037 if (_inDOM2.default) { 73038 _this2.lastFocus = (0, _activeElement2.default)(); 73039 } 73040 }; 73041 73042 this.enforceFocus = function () { 73043 if (!_this2.props.enforceFocus || !_this2._isMounted || !_this2.isTopModal()) { 73044 return; 73045 } 73046 73047 var dialogElement = _this2.getDialogElement(); 73048 var currentActiveElement = (0, _activeElement2.default)((0, _ownerDocument2.default)(_this2)); 73049 73050 if (dialogElement && !(0, _contains2.default)(dialogElement, currentActiveElement)) { 73051 dialogElement.focus(); 73052 } 73053 }; 73054}; 73055 73056Modal.Manager = _ModalManager2.default; 73057 73058exports.default = Modal; 73059module.exports = exports['default']; 73060 73061/***/ }), 73062/* 733 */ 73063/***/ (function(module, exports, __webpack_require__) { 73064 73065"use strict"; 73066 73067 73068Object.defineProperty(exports, "__esModule", { 73069 value: true 73070}); 73071exports.default = deprecated; 73072 73073var _warning = __webpack_require__(19); 73074 73075var _warning2 = _interopRequireDefault(_warning); 73076 73077function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 73078 73079var warned = {}; 73080 73081function deprecated(validator, reason) { 73082 return function validate(props, propName, componentName, location, propFullName) { 73083 var componentNameSafe = componentName || '<<anonymous>>'; 73084 var propFullNameSafe = propFullName || propName; 73085 73086 if (props[propName] != null) { 73087 var messageKey = componentName + '.' + propName; 73088 73089 (0, _warning2.default)(warned[messageKey], 'The ' + location + ' `' + propFullNameSafe + '` of ' + ('`' + componentNameSafe + '` is deprecated. ' + reason + '.')); 73090 73091 warned[messageKey] = true; 73092 } 73093 73094 for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { 73095 args[_key - 5] = arguments[_key]; 73096 } 73097 73098 return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args)); 73099 }; 73100} 73101 73102/* eslint-disable no-underscore-dangle */ 73103function _resetWarned() { 73104 warned = {}; 73105} 73106 73107deprecated._resetWarned = _resetWarned; 73108/* eslint-enable no-underscore-dangle */ 73109 73110module.exports = exports['default']; 73111 73112/***/ }), 73113/* 734 */ 73114/***/ (function(module, exports, __webpack_require__) { 73115 73116"use strict"; 73117 73118 73119exports.__esModule = true; 73120 73121var _class = __webpack_require__(735); 73122 73123var _class2 = _interopRequireDefault(_class); 73124 73125var _style = __webpack_require__(95); 73126 73127var _style2 = _interopRequireDefault(_style); 73128 73129var _scrollbarSize = __webpack_require__(386); 73130 73131var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize); 73132 73133var _isOverflowing = __webpack_require__(388); 73134 73135var _isOverflowing2 = _interopRequireDefault(_isOverflowing); 73136 73137var _manageAriaHidden = __webpack_require__(738); 73138 73139function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 73140 73141function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 73142 73143function findIndexOf(arr, cb) { 73144 var idx = -1; 73145 arr.some(function (d, i) { 73146 if (cb(d, i)) { 73147 idx = i; 73148 return true; 73149 } 73150 }); 73151 return idx; 73152} 73153 73154function findContainer(data, modal) { 73155 return findIndexOf(data, function (d) { 73156 return d.modals.indexOf(modal) !== -1; 73157 }); 73158} 73159 73160function setContainerStyle(state, container) { 73161 var style = { overflow: 'hidden' }; 73162 73163 // we are only interested in the actual `style` here 73164 // becasue we will override it 73165 state.style = { 73166 overflow: container.style.overflow, 73167 paddingRight: container.style.paddingRight 73168 }; 73169 73170 if (state.overflowing) { 73171 // use computed style, here to get the real padding 73172 // to add our scrollbar width 73173 style.paddingRight = parseInt((0, _style2.default)(container, 'paddingRight') || 0, 10) + (0, _scrollbarSize2.default)() + 'px'; 73174 } 73175 73176 (0, _style2.default)(container, style); 73177} 73178 73179function removeContainerStyle(_ref, container) { 73180 var style = _ref.style; 73181 73182 73183 Object.keys(style).forEach(function (key) { 73184 return container.style[key] = style[key]; 73185 }); 73186} 73187/** 73188 * Proper state managment for containers and the modals in those containers. 73189 * 73190 * @internal Used by the Modal to ensure proper styling of containers. 73191 */ 73192 73193var ModalManager = function ModalManager() { 73194 var _this = this; 73195 73196 var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
73197 _ref2$hideSiblingNode = _ref2.hideSiblingNodes, 73198 hideSiblingNodes = _ref2$hideSiblingNode === undefined ? true : _ref2$hideSiblingNode, 73199 _ref2$handleContainer = _ref2.handleContainerOverflow, 73200 handleContainerOverflow = _ref2$handleContainer === undefined ? true : _ref2$handleContainer; 73201 73202 _classCallCheck(this, ModalManager); 73203 73204 this.add = function (modal, container, className) { 73205 var modalIdx = _this.modals.indexOf(modal); 73206 var containerIdx = _this.containers.indexOf(container); 73207 73208 if (modalIdx !== -1) { 73209 return modalIdx; 73210 } 73211 73212 modalIdx = _this.modals.length; 73213 _this.modals.push(modal); 73214 73215 if (_this.hideSiblingNodes) { 73216 (0, _manageAriaHidden.hideSiblings)(container, modal.mountNode); 73217 } 73218 73219 if (containerIdx !== -1) { 73220 _this.data[containerIdx].modals.push(modal); 73221 return modalIdx; 73222 } 73223 73224 var data = { 73225 modals: [modal], 73226 //right now only the first modal of a container will have its classes applied 73227 classes: className ? className.split(/\s+/) : [], 73228 73229 overflowing: (0, _isOverflowing2.default)(container) 73230 }; 73231 73232 if (_this.handleContainerOverflow) { 73233 setContainerStyle(data, container); 73234 } 73235 73236 data.classes.forEach(_class2.default.addClass.bind(null, container)); 73237 73238 _this.containers.push(container); 73239 _this.data.push(data); 73240 73241 return modalIdx; 73242 }; 73243 73244 this.remove = function (modal) { 73245 var modalIdx = _this.modals.indexOf(modal); 73246 73247 if (modalIdx === -1) { 73248 return; 73249 } 73250 73251 var containerIdx = findContainer(_this.data, modal); 73252 var data = _this.data[containerIdx]; 73253 var container = _this.containers[containerIdx]; 73254 73255 data.modals.splice(data.modals.indexOf(modal), 1); 73256 73257 _this.modals.splice(modalIdx, 1); 73258 73259 // if that was the last modal in a container, 73260 // clean up the container 73261 if (data.modals.length === 0) { 73262 data.classes.forEach(_class2.default.removeClass.bind(null, container)); 73263 73264 if (_this.handleContainerOverflow) { 73265 removeContainerStyle(data, container); 73266 } 73267 73268 if (_this.hideSiblingNodes) { 73269 (0, _manageAriaHidden.showSiblings)(container, modal.mountNode); 73270 } 73271 _this.containers.splice(containerIdx, 1); 73272 _this.data.splice(containerIdx, 1); 73273 } else if (_this.hideSiblingNodes) { 73274 //otherwise make sure the next top modal is visible to a SR 73275 (0, _manageAriaHidden.ariaHidden)(false, data.modals[data.modals.length - 1].mountNode); 73276 } 73277 }; 73278 73279 this.isTopModal = function (modal) { 73280 return !!_this.modals.length && _this.modals[_this.modals.length - 1] === modal; 73281 }; 73282 73283 this.hideSiblingNodes = hideSiblingNodes; 73284 this.handleContainerOverflow = handleContainerOverflow; 73285 this.modals = []; 73286 this.containers = []; 73287 this.data = []; 73288}; 73289 73290exports.default = ModalManager; 73291module.exports = exports['default']; 73292 73293/***/ }), 73294/* 735 */ 73295/***/ (function(module, exports, __webpack_require__) { 73296 73297"use strict"; 73298 73299 73300Object.defineProperty(exports, "__esModule", { 73301 value: true 73302}); 73303exports.hasClass = exports.removeClass = exports.addClass = undefined; 73304 73305var _addClass = __webpack_require__(736); 73306 73307var _addClass2 = _interopRequireDefault(_addClass); 73308 73309var _removeClass = __webpack_require__(737); 73310 73311var _removeClass2 = _interopRequireDefault(_removeClass); 73312 73313var _hasClass = __webpack_require__(387); 73314 73315var _hasClass2 = _interopRequireDefault(_hasClass); 73316 73317function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 73318 73319exports.addClass = _addClass2.default; 73320exports.removeClass = _removeClass2.default; 73321exports.hasClass = _hasClass2.default; 73322exports.default = { addClass: _addClass2.default, removeClass: _removeClass2.default, hasClass: _hasClass2.default }; 73323 73324/***/ }), 73325/* 736 */ 73326/***/ (function(module, exports, __webpack_require__) { 73327 73328"use strict"; 73329 73330 73331Object.defineProperty(exports, "__esModule", { 73332 value: true 73333}); 73334exports.default = addClass; 73335 73336var _hasClass = __webpack_require__(387); 73337 73338var _hasClass2 = _interopRequireDefault(_hasClass); 73339 73340function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 73341 73342function addClass(element, className) { 73343 if (element.classList) element.classList.add(className);else if (!(0, _hasClass2.default)(element, className)) if (typeof element.className === 'string') element.className = element.className + ' ' + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + ' ' + className); 73344} 73345module.exports = exports['default']; 73346 73347/***/ }), 73348/* 737 */ 73349/***/ (function(module, exports, __webpack_require__) { 73350 73351"use strict"; 73352 73353 73354function replaceClassName(origClass, classToRemove) { 73355 return origClass.replace(new RegExp('(^|\\s)' + classToRemove + '(?:\\s|$)', 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, ''); 73356} 73357 73358module.exports = function removeClass(element, className) { 73359 if (element.classList) element.classList.remove(className);else if (typeof element.className === 'string') element.className = replaceClassName(element.className, className);else element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className)); 73360}; 73361 73362/***/ }), 73363/* 738 */ 73364/***/ (function(module, exports, __webpack_require__) { 73365 73366"use strict"; 73367 73368 73369exports.__esModule = true; 73370exports.ariaHidden = ariaHidden; 73371exports.hideSiblings = hideSiblings; 73372exports.showSiblings = showSiblings; 73373 73374var BLACKLIST = ['template', 'script', 'style']; 73375 73376var isHidable = function isHidable(_ref) { 73377 var nodeType = _ref.nodeType, 73378 tagName = _ref.tagName; 73379 return nodeType === 1 && BLACKLIST.indexOf(tagName.toLowerCase()) === -1; 73380}; 73381 73382var siblings = function siblings(container, mount, cb) { 73383 mount = [].concat(mount); 73384 73385 [].forEach.call(container.children, function (node) { 73386 if (mount.indexOf(node) === -1 && isHidable(node)) { 73387 cb(node); 73388 } 73389 }); 73390}; 73391 73392function ariaHidden(show, node) { 73393 if (!node) { 73394 return; 73395 } 73396 if (show) { 73397 node.setAttribute('aria-hidden', 'true'); 73398 } else { 73399 node.removeAttribute('aria-hidden'); 73400 } 73401} 73402 73403function hideSiblings(container, mountNode) { 73404 siblings(container, mountNode, function (node) { 73405 return ariaHidden(true, node); 73406 }); 73407} 73408 73409function showSiblings(container, mountNode) { 73410 siblings(container, mountNode, function (node) { 73411 return ariaHidden(false, node); 73412 }); 73413} 73414 73415/***/ }), 73416/* 739 */ 73417/***/ (function(module, exports, __webpack_require__) { 73418 73419"use strict"; 73420 73421 73422exports.__esModule = true; 73423 73424var _propTypes = __webpack_require__(2); 73425 73426var _propTypes2 = _interopRequireDefault(_propTypes); 73427 73428var _componentOrElement = __webpack_require__(102); 73429 73430var _componentOrElement2 = _interopRequireDefault(_componentOrElement); 73431 73432var _react = __webpack_require__(0); 73433 73434var _react2 = _interopRequireDefault(_react); 73435 73436var _reactDom = __webpack_require__(17); 73437 73438var _reactDom2 = _interopRequireDefault(_reactDom); 73439 73440var _getContainer = __webpack_require__(104); 73441 73442var _getContainer2 = _interopRequireDefault(_getContainer); 73443 73444var _ownerDocument = __webpack_require__(65); 73445 73446var _ownerDocument2 = _interopRequireDefault(_ownerDocument); 73447 73448function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 73449 73450function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 73451 73452function _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; } 73453 73454function _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, { c
73454onstructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } 73455 73456/** 73457 * The `<Portal/>` component renders its children into a new "subtree" outside of current component hierarchy. 73458 * You can think of it as a declarative `appendChild()`, or jQuery's `$.fn.appendTo()`. 73459 * The children of `<Portal/>` component will be appended to the `container` specified. 73460 */ 73461var Portal = function (_React$Component) { 73462 _inherits(Portal, _React$Component); 73463 73464 function Portal() { 73465 var _temp, _this, _ret; 73466 73467 _classCallCheck(this, Portal); 73468 73469 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { 73470 args[_key] = arguments[_key]; 73471 } 73472 73473 return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this._mountOverlayTarget = function () { 73474 if (!_this._overlayTarget) { 73475 _this._overlayTarget = document.createElement('div'); 73476 _this._portalContainerNode = (0, _getContainer2.default)(_this.props.container, (0, _ownerDocument2.default)(_this).body); 73477 _this._portalContainerNode.appendChild(_this._overlayTarget); 73478 } 73479 }, _this._unmountOverlayTarget = function () { 73480 if (_this._overlayTarget) { 73481 _this._portalContainerNode.removeChild(_this._overlayTarget); 73482 _this._overlayTarget = null; 73483 } 73484 _this._portalContainerNode = null; 73485 }, _this._renderOverlay = function () { 73486 var overlay = !_this.props.children ? null : _react2.default.Children.only(_this.props.children); 73487 73488 // Save reference for future access. 73489 if (overlay !== null) { 73490 _this._mountOverlayTarget(); 73491 73492 var initialRender = !_this._overlayInstance; 73493 73494 _this._overlayInstance = _reactDom2.default.unstable_renderSubtreeIntoContainer(_this, overlay, _this._overlayTarget, function () { 73495 if (initialRender && _this.props.onRendered) { 73496 _this.props.onRendered(); 73497 } 73498 }); 73499 } else { 73500 // Unrender if the component is null for transitions to null 73501 _this._unrenderOverlay(); 73502 _this._unmountOverlayTarget(); 73503 } 73504 }, _this._unrenderOverlay = function () { 73505 if (_this._overlayTarget) { 73506 _reactDom2.default.unmountComponentAtNode(_this._overlayTarget); 73507 _this._overlayInstance = null; 73508 } 73509 }, _this.getMountNode = function () { 73510 return _this._overlayTarget; 73511 }, _temp), _possibleConstructorReturn(_this, _ret); 73512 } 73513 73514 Portal.prototype.componentDidMount = function componentDidMount() { 73515 this._isMounted = true; 73516 this._renderOverlay(); 73517 }; 73518 73519 Portal.prototype.componentDidUpdate = function componentDidUpdate() { 73520 this._renderOverlay(); 73521 }; 73522 73523 Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { 73524 if (this._overlayTarget && nextProps.container !== this.props.container) { 73525 this._portalContainerNode.removeChild(this._overlayTarget); 73526 this._portalContainerNode = (0, _getContainer2.default)(nextProps.container, (0, _ownerDocument2.default)(this).body); 73527 this._portalContainerNode.appendChild(this._overlayTarget); 73528 } 73529 }; 73530 73531 Portal.prototype.componentWillUnmount = function componentWillUnmount() { 73532 this._isMounted = false; 73533 this._unrenderOverlay(); 73534 this._unmountOverlayTarget(); 73535 }; 73536 73537 Portal.prototype.render = function render() { 73538 return null; 73539 }; 73540 73541 return Portal; 73542}(_react2.default.Component); 73543 73544Portal.displayName = 'Portal'; 73545Portal.propTypes = { 73546 /** 73547 * A Node, Component instance, or function that returns either. The `container` will have the Portal children 73548 * appended to it. 73549 */ 73550 container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]), 73551 73552 onRendered: _propTypes2.default.func 73553}; 73554exports.default = Portal; 73555module.exports = exports['default']; 73556 73557/***/ }), 73558/* 740 */ 73559/***/ (function(module, exports, __webpack_require__) { 73560 73561"use strict"; 73562 73563 73564exports.__esModule = true; 73565 73566var _propTypes = __webpack_require__(2); 73567 73568var _propTypes2 = _interopRequireDefault(_propTypes); 73569 73570var _react = __webpack_require__(0); 73571 73572var _react2 = _interopRequireDefault(_react); 73573 73574function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 73575 73576function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 73577 73578function _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; } 73579 73580function _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, { c
73580onstructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } 73581 73582var propTypes = { 73583 children: _propTypes2.default.node 73584}; 73585 73586/** 73587 * Internal helper component to allow attaching a non-conflicting ref to a 73588 * child element that may not accept refs. 73589 */ 73590 73591var RefHolder = function (_React$Component) { 73592 _inherits(RefHolder, _React$Component); 73593 73594 function RefHolder() { 73595 _classCallCheck(this, RefHolder); 73596 73597 return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); 73598 } 73599 73600 RefHolder.prototype.render = function render() { 73601 return this.props.children; 73602 }; 73603 73604 return RefHolder; 73605}(_react2.default.Component); 73606 73607RefHolder.propTypes = propTypes; 73608 73609exports.default = RefHolder; 73610module.exports = exports['default']; 73611 73612/***/ }), 73613/* 741 */ 73614/***/ (function(module, exports, __webpack_require__) { 73615 73616"use strict"; 73617 73618 73619exports.__esModule = true; 73620exports.default = addFocusListener; 73621/** 73622 * Firefox doesn't have a focusin event so using capture is easiest way to get bubbling 73623 * IE8 can't do addEventListener, but does have onfocusin, so we use that in ie8 73624 * 73625 * We only allow one Listener at a time to avoid stack overflows 73626 */ 73627function addFocusListener(handler) { 73628 var useFocusin = !document.addEventListener; 73629 var remove = void 0; 73630 73631 if (useFocusin) { 73632 document.attachEvent('onfocusin', handler); 73633 remove = function remove() { 73634 return document.detachEvent('onfocusin', handler); 73635 }; 73636 } else { 73637 document.addEventListener('focus', handler, true); 73638 remove = function remove() { 73639 return document.removeEventListener('focus', handler, true); 73640 }; 73641 } 73642 73643 return { remove: remove }; 73644} 73645module.exports = exports['default']; 73646 73647/***/ }), 73648/* 742 */ 73649/***/ (function(module, __webpack_exports__, __webpack_require__) { 73650 73651"use strict"; 73652/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 73653/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 73654/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 73655/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 73656/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 73657/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 73658/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 73659/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 73660/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 73661/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 73662/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 73663/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 73664/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 73665/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 73666/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 73667/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 73668/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 73669/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_StyleConfig__ = __webpack_require__(20); 73670 73671 73672 73673 73674 73675 73676 73677 73678 73679 73680 73681 73682var propTypes = { 73683 /** 73684 * A css class to apply to the Modal dialog DOM node. 73685 */ 73686 dialogClassName: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string 73687}; 73688 73689var ModalDialog = function (_React$Component) { 73690 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(ModalDialog, _React$Component); 73691 73692 function ModalDialog() { 73693 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, ModalDialog); 73694 73695 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 73696 } 73697 73698 ModalDialog.prototype.render = function render() { 73699 var _extends2; 73700 73701 var _props = this.props, 73702 dialogClassName = _props.dialogClassName, 73703 className = _props.className, 73704 style = _props.style, 73705 children = _props.children, 73706 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['dialogClassName', 'className', 'style', 'children']); 73707 73708 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["splitBsProps"])(props), 73709 bsProps = _splitBsProps[0], 73710 elementProps = _splitBsProps[1]; 73711 73712 var bsClassName = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["prefix"])(bsProps); 73713 73714 var modalStyle = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({ display: 'block' }, style); 73715 73716 var dialogClasses = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[bsClassName] = false, _extends2[Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["prefix"])(bsProps, 'dialog')] = true, _extends2)); 73717 73718 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 73719 'div', 73720 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 73721 tabIndex: '-1', 73722 role: 'dialog', 73723 style: modalStyle, 73724 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, bsClassName) 73725 }), 73726 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 73727 'div', 73728 { className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(dialogClassName, dialogClasses) }, 73729 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 73730 'div', 73731 { className: Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["prefix"])(bsProps, 'content'), role: 'document' }, 73732 children 73733 ) 73734 ) 73735 ); 73736 }; 73737 73738 return ModalDialog; 73739}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 73740
73741ModalDialog.propTypes = propTypes; 73742 73743/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsClass"])('modal', Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsSizes"])([__WEBPACK_IMPORTED_MODULE_9__utils_StyleConfig__["c" /* Size */].LARGE, __WEBPACK_IMPORTED_MODULE_9__utils_StyleConfig__["c" /* Size */].SMALL], ModalDialog))); 73744 73745/***/ }), 73746/* 743 */ 73747/***/ (function(module, __webpack_exports__, __webpack_require__) { 73748 73749"use strict"; 73750/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 73751/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 73752/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 73753/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 73754/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 73755/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 73756/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 73757/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 73758/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 73759/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 73760/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 73761/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 73762/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 73763/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 73764/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 73765/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 73766/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__ = __webpack_require__(13); 73767/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__); 73768/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_uncontrollable__ = __webpack_require__(75); 73769/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_uncontrollable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_uncontrollable__); 73770/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Grid__ = __webpack_require__(384); 73771/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__NavbarBrand__ = __webpack_require__(395); 73772/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__NavbarCollapse__ = __webpack_require__(744); 73773/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__NavbarHeader__ = __webpack_require__(745); 73774/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__NavbarToggle__ = __webpack_require__(746); 73775/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__utils_bootstrapUtils__ = __webpack_require__(9); 73776/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__utils_StyleConfig__ = __webpack_require__(20); 73777/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__utils_createChainedFunction__ = __webpack_require__(16); 73778 73779 73780 73781 73782 73783// TODO: Remove this pragma once we upgrade eslint-config-airbnb. 73784/* eslint-disable react/no-multi-comp */ 73785 73786 73787 73788 73789 73790 73791 73792 73793 73794 73795 73796 73797 73798 73799 73800 73801var propTypes = { 73802 /** 73803 * Create a fixed navbar along the top of the screen, that scrolls with the 73804 * page 73805 */ 73806 fixedTop: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 73807 /** 73808 * Create a fixed navbar along the bottom of the screen, that scrolls with 73809 * the page 73810 */ 73811 fixedBottom: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 73812 /** 73813 * Create a full-width navbar that scrolls away with the page 73814 */ 73815 staticTop: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 73816 /** 73817 * An alternative dark visual style for the Navbar 73818 */ 73819 inverse: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 73820 /** 73821 * Allow the Navbar to fluidly adjust to the page or container width, instead 73822 * of at the predefined screen breakpoints 73823 */ 73824 fluid: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 73825 73826 /** 73827 * Set a custom element for this component. 73828 */ 73829 componentClass: __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default.a, 73830 /**
73831 * A callback fired when the `<Navbar>` body collapses or expands. Fired when 73832 * a `<Navbar.Toggle>` is clicked and called with the new `expanded` 73833 * boolean value. 73834 * 73835 * @controllable expanded 73836 */ 73837 onToggle: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 73838 /** 73839 * A callback fired when a descendant of a child `<Nav>` is selected. Should 73840 * be used to execute complex closing or other miscellaneous actions desired 73841 * after selecting a descendant of `<Nav>`. Does nothing if no `<Nav>` or `<Nav>` 73842 * descendants exist. The callback is called with an eventKey, which is a 73843 * prop from the selected `<Nav>` descendant, and an event. 73844 * 73845 * ```js 73846 * function ( 73847 * Any eventKey, 73848 * SyntheticEvent event? 73849 * ) 73850 * ``` 73851 * 73852 * For basic closing behavior after all `<Nav>` descendant onSelect events in 73853 * mobile viewports, try using collapseOnSelect. 73854 * 73855 * Note: If you are manually closing the navbar using this `OnSelect` prop, 73856 * ensure that you are setting `expanded` to false and not *toggling* between 73857 * true and false. 73858 */ 73859 onSelect: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 73860 /** 73861 * Sets `expanded` to `false` after the onSelect event of a descendant of a 73862 * child `<Nav>`. Does nothing if no `<Nav>` or `<Nav>` descendants exist. 73863 * 73864 * The onSelect callback should be used instead for more complex operations 73865 * that need to be executed after the `select` event of `<Nav>` descendants. 73866 */ 73867 collapseOnSelect: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 73868 /** 73869 * Explicitly set the visiblity of the navbar body 73870 * 73871 * @controllable onToggle 73872 */ 73873 expanded: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 73874 73875 role: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string 73876}; 73877 73878var defaultProps = { 73879 componentClass: 'nav', 73880 fixedTop: false, 73881 fixedBottom: false, 73882 staticTop: false, 73883 inverse: false, 73884 fluid: false, 73885 collapseOnSelect: false 73886}; 73887 73888var childContextTypes = { 73889 $bs_navbar: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.shape({ 73890 bsClass: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 73891 expanded: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 73892 onToggle: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func.isRequired, 73893 onSelect: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func 73894 }) 73895}; 73896 73897var Navbar = function (_React$Component) { 73898 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Navbar, _React$Component); 73899 73900 function Navbar(props, context) { 73901 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Navbar); 73902 73903 var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props, context)); 73904 73905 _this.handleToggle = _this.handleToggle.bind(_this); 73906 _this.handleCollapse = _this.handleCollapse.bind(_this); 73907 return _this; 73908 } 73909 73910 Navbar.prototype.getChildContext = function getChildContext() { 73911 var _props = this.props, 73912 bsClass = _props.bsClass, 73913 expanded = _props.expanded, 73914 onSelect = _props.onSelect, 73915 collapseOnSelect = _props.collapseOnSelect; 73916 73917 73918 return { 73919 $bs_navbar: { 73920 bsClass: bsClass, 73921 expanded: expanded, 73922 onToggle: this.handleToggle, 73923 onSelect: Object(__WEBPACK_IMPORTED_MODULE_17__utils_createChainedFunction__["a" /* default */])(onSelect, collapseOnSelect ? this.handleCollapse : null) 73924 } 73925 }; 73926 }; 73927 73928 Navbar.prototype.handleCollapse = function handleCollapse() { 73929 var _props2 = this.props, 73930 onToggle = _props2.onToggle, 73931 expanded = _props2.expanded; 73932 73933 73934 if (expanded) { 73935 onToggle(false); 73936 } 73937 }; 73938 73939 Navbar.prototype.handleToggle = function handleToggle() { 73940 var _props3 = this.props, 73941 onToggle = _props3.onToggle, 73942 expanded = _props3.expanded; 73943 73944 73945 onToggle(!expanded); 73946 }; 73947 73948 Navbar.prototype.render = function render() { 73949 var _extends2; 73950 73951 var _props4 = this.props, 73952 Component = _props4.componentClass, 73953 fixedTop = _props4.fixedTop, 73954 fixedBottom = _props4.fixedBottom, 73955 staticTop = _props4.staticTop, 73956 inverse = _props4.inverse, 73957 fluid = _props4.fluid, 73958 className = _props4.className, 73959 children = _props4.children, 73960 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props4, ['componentClass', 'fixedTop', 'fixedBottom', 'staticTop', 'inverse', 'fluid', 'className', 'children']); 73961 73962 var _splitBsPropsAndOmit = Object(__WEBPACK_IMPORTED_MODULE_15__utils_bootstrapUtils__["splitBsPropsAndOmit"])(props, ['expanded', 'onToggle', 'onSelect', 'collapseOnSelect']), 73963 bsProps = _splitBsPropsAndOmit[0], 73964 elementProps = _splitBsPropsAndOmit[1]; 73965 73966 // will result in some false positives but that seems better 73967 // than false negatives. strict `undefined` check allows explicit 73968 // "nulling" of the role if the user really doesn't want one 73969 73970 73971 if (elementProps.role === undefined && Component !== 'nav') { 73972 elementProps.role = 'navigation'; 73973 } 73974 73975 if (inverse) { 73976 bsProps.bsStyle = __WEBPACK_IMPORTED_MODULE_16__utils_StyleConfig__["e" /* Style */].INVERSE; 73977 } 73978 73979 var classes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_15__utils_bootstrapUtils__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[Object(__WEBPACK_IMPORTED_MODULE_15__utils_bootstrapUtils__["prefix"])(bsProps, 'fixed-top')] = fixedTop, _extends2[Object(__WEBPACK_IMPORTED_MODULE_15__utils_bootstrapUtils__["prefix"])(bsProps, 'fixed-bottom')] = fixedBottom, _extends2[Object(__WEBPACK_IMPORTED_MODULE_15__utils_bootstrapUtils__["prefix"])(bsProps, 'static-top')] = staticTop, _extends2)); 73980 73981 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 73982 Component, 73983 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 73984 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 73985 }), 73986 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 73987 __WEBPACK_IMPORTED_MODULE_10__Grid__["a" /* default */], 73988 { fluid: fluid }, 73989 children 73990 ) 73991 ); 73992 }; 73993 73994 return Navbar; 73995}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 73996
73997Navbar.propTypes = propTypes; 73998Navbar.defaultProps = defaultProps; 73999Navbar.childContextTypes = childContextTypes; 74000 74001Object(__WEBPACK_IMPORTED_MODULE_15__utils_bootstrapUtils__["bsClass"])('navbar', Navbar); 74002 74003var UncontrollableNavbar = __WEBPACK_IMPORTED_MODULE_9_uncontrollable___default()(Navbar, { expanded: 'onToggle' }); 74004 74005function createSimpleWrapper(tag, suffix, displayName) { 74006 var Wrapper = function Wrapper(_ref, _ref2) { 74007 var _ref2$$bs_navbar = _ref2.$bs_navbar, 74008 navbarProps = _ref2$$bs_navbar === undefined ? { bsClass: 'navbar' } : _ref2$$bs_navbar; 74009 74010 var Component = _ref.componentClass, 74011 className = _ref.className, 74012 pullRight = _ref.pullRight, 74013 pullLeft = _ref.pullLeft, 74014 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_ref, ['componentClass', 'className', 'pullRight', 'pullLeft']); 74015 74016 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, { 74017 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, Object(__WEBPACK_IMPORTED_MODULE_15__utils_bootstrapUtils__["prefix"])(navbarProps, suffix), pullRight && Object(__WEBPACK_IMPORTED_MODULE_15__utils_bootstrapUtils__["prefix"])(navbarProps, 'right'), pullLeft && Object(__WEBPACK_IMPORTED_MODULE_15__utils_bootstrapUtils__["prefix"])(navbarProps, 'left')) 74018 })); 74019 }; 74020 74021 Wrapper.displayName = displayName; 74022 74023 Wrapper.propTypes = { 74024 componentClass: __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default.a, 74025 pullRight: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 74026 pullLeft: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool 74027 }; 74028 74029 Wrapper.defaultProps = { 74030 componentClass: tag, 74031 pullRight: false, 74032 pullLeft: false 74033 }; 74034 74035 Wrapper.contextTypes = { 74036 $bs_navbar: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.shape({ 74037 bsClass: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string 74038 }) 74039 }; 74040 74041 return Wrapper; 74042} 74043 74044UncontrollableNavbar.Brand = __WEBPACK_IMPORTED_MODULE_11__NavbarBrand__["a" /* default */]; 74045UncontrollableNavbar.Header = __WEBPACK_IMPORTED_MODULE_13__NavbarHeader__["a" /* default */]; 74046UncontrollableNavbar.Toggle = __WEBPACK_IMPORTED_MODULE_14__NavbarToggle__["a" /* default */]; 74047UncontrollableNavbar.Collapse = __WEBPACK_IMPORTED_MODULE_12__NavbarCollapse__["a" /* default */]; 74048 74049UncontrollableNavbar.Form = createSimpleWrapper('div', 'form', 'NavbarForm'); 74050UncontrollableNavbar.Text = createSimpleWrapper('p', 'text', 'NavbarText'); 74051UncontrollableNavbar.Link = createSimpleWrapper('a', 'link', 'NavbarLink'); 74052 74053// Set bsStyles here so they can be overridden. 74054/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_15__utils_bootstrapUtils__["bsStyles"])([__WEBPACK_IMPORTED_MODULE_16__utils_StyleConfig__["e" /* Style */].DEFAULT, __WEBPACK_IMPORTED_MODULE_16__utils_StyleConfig__["e" /* Style */].INVERSE], __WEBPACK_IMPORTED_MODULE_16__utils_StyleConfig__["e" /* Style */].DEFAULT, UncontrollableNavbar)); 74055 74056/***/ }), 74057/* 744 */ 74058/***/ (function(module, __webpack_exports__, __webpack_require__) { 74059 74060"use strict"; 74061/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 74062/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 74063/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 74064/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 74065/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 74066/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 74067/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 74068/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 74069/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 74070/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 74071/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0); 74072/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__); 74073/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(2); 74074/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__); 74075/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Collapse__ = __webpack_require__(155); 74076/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 74077 74078 74079 74080 74081 74082 74083 74084 74085 74086 74087 74088var contextTypes = { 74089 $bs_navbar: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.shape({ 74090 bsClass: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 74091 expanded: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool 74092 }) 74093}; 74094
74095var NavbarCollapse = function (_React$Component) { 74096 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(NavbarCollapse, _React$Component); 74097 74098 function NavbarCollapse() { 74099 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, NavbarCollapse); 74100 74101 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 74102 } 74103 74104 NavbarCollapse.prototype.render = function render() { 74105 var _props = this.props, 74106 children = _props.children, 74107 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['children']); 74108 74109 var navbarProps = this.context.$bs_navbar || { bsClass: 'navbar' }; 74110 74111 var bsClassName = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["prefix"])(navbarProps, 'collapse'); 74112 74113 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( 74114 __WEBPACK_IMPORTED_MODULE_7__Collapse__["a" /* default */], 74115 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({ 'in': navbarProps.expanded }, props), 74116 __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( 74117 'div', 74118 { className: bsClassName }, 74119 children 74120 ) 74121 ); 74122 }; 74123 74124 return NavbarCollapse; 74125}(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component); 74126 74127NavbarCollapse.contextTypes = contextTypes; 74128 74129/* harmony default export */ __webpack_exports__["a"] = (NavbarCollapse); 74130 74131/***/ }), 74132/* 745 */ 74133/***/ (function(module, __webpack_exports__, __webpack_require__) { 74134 74135"use strict"; 74136/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 74137/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 74138/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 74139/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 74140/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 74141/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 74142/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 74143/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 74144/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 74145/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 74146/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 74147/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 74148/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 74149/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 74150/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 74151/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 74152/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 74153 74154 74155 74156 74157 74158 74159 74160 74161 74162 74163 74164var contextTypes = { 74165 $bs_navbar: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.shape({ 74166 bsClass: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string 74167 }) 74168}; 74169 74170var NavbarHeader = function (_React$Component) { 74171 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(NavbarHeader, _React$Component); 74172 74173 function NavbarHeader() { 74174 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, NavbarHeader); 74175 74176 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 74177 } 74178 74179 NavbarHeader.prototype.render = function render() { 74180 var _props = this.props, 74181 className = _props.className, 74182 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['className']); 74183 74184 var navbarProps = this.context.$bs_navbar || { bsClass: 'navbar' }; 74185 74186 var bsClassName = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["prefix"])(navbarProps, 'header'); 74187 74188 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('div', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, { className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, bsClassName) })); 74189 }; 74190 74191 return NavbarHeader; 74192}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 74193 74194NavbarHeader.contextTypes = contextTypes; 74195 74196/* harmony default export */ __webpack_exports__["a"] = (NavbarHeader); 74197 74198/***/ }), 74199/* 746 */ 74200/***/ (function(module, __webpack_exports__, __webpack_require__) { 74201 74202"use strict"; 74203/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 74204/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 74205/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 74206/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 74207/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 74208/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 74209/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 74210/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 74211/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 74212/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 74213/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 74214/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 74215/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 74216/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 74217/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 74218/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 74219/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 74220/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_createChainedFunction__ = __webpack_require__(16); 74221 74222 74223 74224 74225 74226 74227 74228 74229 74230 74231 74232 74233var propTypes = { 74234 onClick: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 74235 /** 74236 * The toggle content, if left empty it will render the default toggle (seen above). 74237 */ 74238 children: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.node 74239}; 74240
74241var contextTypes = { 74242 $bs_navbar: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.shape({ 74243 bsClass: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 74244 expanded: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 74245 onToggle: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func.isRequired 74246 }) 74247}; 74248 74249var NavbarToggle = function (_React$Component) { 74250 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(NavbarToggle, _React$Component); 74251 74252 function NavbarToggle() { 74253 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, NavbarToggle); 74254 74255 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 74256 } 74257 74258 NavbarToggle.prototype.render = function render() { 74259 var _props = this.props, 74260 onClick = _props.onClick, 74261 className = _props.className, 74262 children = _props.children, 74263 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['onClick', 'className', 'children']); 74264 74265 var navbarProps = this.context.$bs_navbar || { bsClass: 'navbar' }; 74266 74267 var buttonProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({ 74268 type: 'button' 74269 }, props, { 74270 onClick: Object(__WEBPACK_IMPORTED_MODULE_9__utils_createChainedFunction__["a" /* default */])(onClick, navbarProps.onToggle), 74271 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["prefix"])(navbarProps, 'toggle'), !navbarProps.expanded && 'collapsed') 74272 }); 74273 74274 if (children) { 74275 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 74276 'button', 74277 buttonProps, 74278 children 74279 ); 74280 } 74281 74282 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 74283 'button', 74284 buttonProps, 74285 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 74286 'span', 74287 { className: 'sr-only' }, 74288 'Toggle navigation' 74289 ), 74290 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('span', { className: 'icon-bar' }), 74291 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('span', { className: 'icon-bar' }), 74292 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('span', { className: 'icon-bar' }) 74293 ); 74294 }; 74295 74296 return NavbarToggle; 74297}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 74298 74299NavbarToggle.propTypes = propTypes; 74300NavbarToggle.contextTypes = contextTypes; 74301 74302/* harmony default export */ __webpack_exports__["a"] = (NavbarToggle); 74303 74304/***/ }), 74305/* 747 */ 74306/***/ (function(module, __webpack_exports__, __webpack_require__) { 74307 74308"use strict"; 74309/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 74310/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__); 74311/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 74312/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); 74313/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 74314/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); 74315/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(5); 74316/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); 74317/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__ = __webpack_require__(6); 74318/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__); 74319/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 74320/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 74321/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 74322/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 74323/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 74324/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 74325/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Dropdown__ = __webpack_require__(97); 74326/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_splitComponentProps__ = __webpack_require__(99); 74327/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_ValidComponentChildren__ = __webpack_require__(22); 74328 74329 74330 74331 74332 74333 74334 74335 74336 74337 74338 74339 74340 74341var propTypes = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, __WEBPACK_IMPORTED_MODULE_8__Dropdown__["a" /* default */].propTypes, { 74342 74343 // Toggle props. 74344 title: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.node.isRequired, 74345 noCaret: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 74346 active: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 74347 74348 // Override generated docs from <Dropdown>. 74349 /** 74350 * @private 74351 */ 74352 children: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.node 74353}); 74354 74355var NavDropdown = function (_React$Component) { 74356 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(NavDropdown, _React$Component); 74357 74358 function NavDropdown() { 74359 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, NavDropdown); 74360 74361 return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 74362 } 74363 74364 NavDropdown.prototype.isActive = function isActive(_ref, activeKey, activeHref) { 74365 var props = _ref.props; 74366 74367 var _this2 = this; 74368 74369 if (props.active || activeKey != null && props.eventKey === activeKey || activeHref && props.href === activeHref) { 74370 return true; 74371 } 74372 74373 if (__WEBPACK_IMPORTED_MODULE_10__utils_ValidComponentChildren__["a" /* default */].some(props.children, function (child) { 74374 return _this2.isActive(child, activeKey, activeHref); 74375 })) { 74376 return true; 74377 } 74378 74379 return props.active; 74380 }; 74381 74382 NavDropdown.prototype.render = function render() { 74383 var _this3 = this; 74384 74385 var _props = this.props, 74386 title = _props.title, 74387 activeKey = _props.activeKey, 74388 activeHref = _props.activeHref, 74389 className = _props.className, 74390 style = _props.style, 74391 children = _props.children, 74392 props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['title', 'activeKey', 'activeHref', 'className', 'style', 'children']); 74393 74394 var active = this.isActive(this, activeKey, activeHref); 74395 delete props.active; // Accessed via this.isActive(). 74396 delete props.eventKey; // Accessed via this.isActive(). 74397 74398 var _splitComponentProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_splitComponentProps__["a" /* default */])(props, __WEBPACK_IMPORTED_MODULE_8__Dropdown__["a" /* default */].ControlledComponent), 74399 dropdownProps = _splitComponentProps[0], 74400 toggleProps = _splitComponentProps[1]; 74401 74402 // Unlike for the other dropdowns, styling needs to go to the `<Dropdown>` 74403 // rather than the `<Dropdown.Toggle>`. 74404 74405 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 74406 __WEBPACK_IMPORTED_MODULE_8__Dropdown__["a" /* default */], 74407 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, dropdownProps, { 74408 componentClass: 'li', 74409 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, { active: active }), 74410 style: style 74411 }), 74412 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 74413 __WEBPACK_IMPORTED_MODULE_8__Dropdown__["a" /* default */].Toggle, 74414 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, toggleProps, { useAnchor: true }), 74415 title 74416 ), 74417 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 74418 __WEBPACK_IMPORTED_MODULE_8__Dropdown__["a" /* default */].Menu, 74419 null, 74420 __WEBPACK_IMPORTED_MODULE_10__utils_ValidComponentChildren__["a" /* default */].map(children, function (child) { 74421 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(child, { 74422 active: _this3.isActive(child, activeKey, activeHref) 74423 }); 74424 }) 74425 ) 74426 ); 74427 }; 74428 74429 return NavDropdown; 74430}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 74431
74432NavDropdown.propTypes = propTypes; 74433 74434/* harmony default export */ __webpack_exports__["a"] = (NavDropdown); 74435 74436/***/ }), 74437/* 748 */ 74438/***/ (function(module, exports, __webpack_require__) { 74439 74440"use strict"; 74441 74442 74443exports.__esModule = true; 74444 74445var _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; }; 74446 74447var _propTypes = __webpack_require__(2); 74448 74449var _propTypes2 = _interopRequireDefault(_propTypes); 74450 74451var _elementType = __webpack_require__(13); 74452 74453var _elementType2 = _interopRequireDefault(_elementType); 74454 74455var _react = __webpack_require__(0); 74456 74457var _react2 = _interopRequireDefault(_react); 74458 74459var _Portal = __webpack_require__(389); 74460 74461var _Portal2 = _interopRequireDefault(_Portal); 74462 74463var _Position = __webpack_require__(749); 74464 74465var _Position2 = _interopRequireDefault(_Position); 74466 74467var _RootCloseWrapper = __webpack_require__(381); 74468 74469var _RootCloseWrapper2 = _interopRequireDefault(_RootCloseWrapper); 74470 74471function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 74472 74473function _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; } 74474 74475function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 74476 74477function _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; } 74478 74479function _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; } 74480 74481/** 74482 * Built on top of `<Position/>` and `<Portal/>`, the overlay component is great for custom tooltip overlays. 74483 */ 74484var Overlay = function (_React$Component) { 74485 _inherits(Overlay, _React$Component); 74486 74487 function Overlay(props, context) { 74488 _classCallCheck(this, Overlay); 74489 74490 var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); 74491 74492 _this.handleHidden = function () { 74493 _this.setState({ exited: true }); 74494 74495 if (_this.props.onExited) { 74496 var _this$props; 74497 74498 (_this$props = _this.props).onExited.apply(_this$props, arguments); 74499 } 74500 }; 74501 74502 _this.state = { exited: !props.show }; 74503 _this.onHiddenListener = _this.handleHidden.bind(_this); 74504 return _this; 74505 } 74506 74507 Overlay.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { 74508 if (nextProps.show) { 74509 this.setState({ exited: false }); 74510 } else if (!nextProps.transition) { 74511 // Otherwise let handleHidden take care of marking exited. 74512 this.setState({ exited: true }); 74513 } 74514 }; 74515 74516 Overlay.prototype.render = function render() { 74517 var _props = this.props, 74518 container = _props.container, 74519 containerPadding = _props.containerPadding, 74520 target = _props.target, 74521 placement = _props.placement, 74522 shouldUpdatePosition = _props.shouldUpdatePosition, 74523 rootClose = _props.rootClose, 74524 children = _props.children, 74525 Transition = _props.transition, 74526 props = _objectWithoutProperties(_props, ['container', 'containerPadding', 'target', 'placement', 'shouldUpdatePosition', 'rootClose', 'children', 'transition']); 74527 74528 // Don't un-render the overlay while it's transitioning out. 74529 74530 74531 var mountOverlay = props.show || Transition && !this.state.exited; 74532 if (!mountOverlay) { 74533 // Don't bother showing anything if we don't have to. 74534 return null; 74535 } 74536 74537 var child = children; 74538 74539 // Position is be inner-most because it adds inline styles into the child, 74540 // which the other wrappers don't forward correctly. 74541 child = _react2.default.createElement( 74542 _Position2.default, 74543 { container: container, containerPadding: containerPadding, target: target, placement: placement, shouldUpdatePosition: shouldUpdatePosition }, 74544 child 74545 ); 74546 74547 if (Transition) { 74548 var onExit = props.onExit, 74549 onExiting = props.onExiting, 74550 onEnter = props.onEnter, 74551 onEntering = props.onEntering, 74552 onEntered = props.onEntered; 74553 74554 // This animates the child node by injecting props, so it must precede 74555 // anything that adds a wrapping div. 74556 74557 child = _react2.default.createElement( 74558 Transition, 74559 { 74560 'in': props.show, 74561 transitionAppear: true, 74562 onExit: onExit, 74563 onExiting: onExiting, 74564 onExited: this.onHiddenListener, 74565 onEnter: onEnter, 74566 onEntering: onEntering, 74567 onEntered: onEntered 74568 }, 74569 child 74570 ); 74571 } 74572
74573 // This goes after everything else because it adds a wrapping div. 74574 if (rootClose) { 74575 child = _react2.default.createElement( 74576 _RootCloseWrapper2.default, 74577 { onRootClose: props.onHide }, 74578 child 74579 ); 74580 } 74581 74582 return _react2.default.createElement( 74583 _Portal2.default, 74584 { container: container }, 74585 child 74586 ); 74587 }; 74588 74589 return Overlay; 74590}(_react2.default.Component); 74591 74592Overlay.propTypes = _extends({}, _Portal2.default.propTypes, _Position2.default.propTypes, { 74593 74594 /** 74595 * Set the visibility of the Overlay 74596 */ 74597 show: _propTypes2.default.bool, 74598 74599 /** 74600 * Specify whether the overlay should trigger `onHide` when the user clicks outside the overlay 74601 */ 74602 rootClose: _propTypes2.default.bool, 74603 74604 /** 74605 * A Callback fired by the Overlay when it wishes to be hidden. 74606 * 74607 * __required__ when `rootClose` is `true`. 74608 * 74609 * @type func 74610 */ 74611 onHide: function onHide(props) { 74612 var propType = _propTypes2.default.func; 74613 if (props.rootClose) { 74614 propType = propType.isRequired; 74615 } 74616 74617 for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { 74618 args[_key - 1] = arguments[_key]; 74619 } 74620 74621 return propType.apply(undefined, [props].concat(args)); 74622 }, 74623 74624 74625 /** 74626 * A `<Transition/>` component used to animate the overlay changes visibility. 74627 */ 74628 transition: _elementType2.default, 74629 74630 /** 74631 * Callback fired before the Overlay transitions in 74632 */ 74633 onEnter: _propTypes2.default.func, 74634 74635 /** 74636 * Callback fired as the Overlay begins to transition in 74637 */ 74638 onEntering: _propTypes2.default.func, 74639 74640 /** 74641 * Callback fired after the Overlay finishes transitioning in 74642 */ 74643 onEntered: _propTypes2.default.func, 74644 74645 /** 74646 * Callback fired right before the Overlay transitions out 74647 */ 74648 onExit: _propTypes2.default.func, 74649 74650 /** 74651 * Callback fired as the Overlay begins to transition out 74652 */ 74653 onExiting: _propTypes2.default.func, 74654 74655 /** 74656 * Callback fired after the Overlay finishes transitioning out 74657 */ 74658 onExited: _propTypes2.default.func 74659}); 74660 74661exports.default = Overlay; 74662module.exports = exports['default']; 74663 74664/***/ }), 74665/* 749 */ 74666/***/ (function(module, exports, __webpack_require__) { 74667 74668"use strict"; 74669 74670 74671exports.__esModule = true; 74672 74673var _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; }; 74674 74675var _classnames = __webpack_require__(8); 74676 74677var _classnames2 = _interopRequireDefault(_classnames); 74678 74679var _propTypes = __webpack_require__(2); 74680 74681var _propTypes2 = _interopRequireDefault(_propTypes); 74682 74683var _componentOrElement = __webpack_require__(102); 74684 74685var _componentOrElement2 = _interopRequireDefault(_componentOrElement); 74686 74687var _react = __webpack_require__(0); 74688 74689var _react2 = _interopRequireDefault(_react); 74690 74691var _reactDom = __webpack_require__(17); 74692 74693var _reactDom2 = _interopRequireDefault(_reactDom); 74694 74695var _calculatePosition = __webpack_require__(750); 74696 74697var _calculatePosition2 = _interopRequireDefault(_calculatePosition); 74698 74699var _getContainer = __webpack_require__(104); 74700 74701var _getContainer2 = _interopRequireDefault(_getContainer); 74702 74703var _ownerDocument = __webpack_require__(65); 74704 74705var _ownerDocument2 = _interopRequireDefault(_ownerDocument); 74706 74707function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 74708 74709function _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; } 74710 74711function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 74712 74713function _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; } 74714 74715function _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, { c
74715onstructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } 74716 74717/** 74718 * The Position component calculates the coordinates for its child, to position 74719 * it relative to a `target` component or node. Useful for creating callouts 74720 * and tooltips, the Position component injects a `style` props with `left` and 74721 * `top` values for positioning your component. 74722 * 74723 * It also injects "arrow" `left`, and `top` values for styling callout arrows 74724 * for giving your components a sense of directionality. 74725 */ 74726var Position = function (_React$Component) { 74727 _inherits(Position, _React$Component); 74728 74729 function Position(props, context) { 74730 _classCallCheck(this, Position); 74731 74732 var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); 74733 74734 _this.getTarget = function () { 74735 var target = _this.props.target; 74736 74737 var targetElement = typeof target === 'function' ? target() : target; 74738 return targetElement && _reactDom2.default.findDOMNode(targetElement) || null; 74739 }; 74740 74741 _this.maybeUpdatePosition = function (placementChanged) { 74742 var target = _this.getTarget(); 74743 74744 if (!_this.props.shouldUpdatePosition && target === _this._lastTarget && !placementChanged) { 74745 return; 74746 } 74747 74748 _this.updatePosition(target); 74749 }; 74750 74751 _this.state = { 74752 positionLeft: 0, 74753 positionTop: 0, 74754 arrowOffsetLeft: null, 74755 arrowOffsetTop: null 74756 }; 74757 74758 _this._needsFlush = false; 74759 _this._lastTarget = null; 74760 return _this; 74761 } 74762 74763 Position.prototype.componentDidMount = function componentDidMount() { 74764 this.updatePosition(this.getTarget()); 74765 }; 74766 74767 Position.prototype.componentWillReceiveProps = function componentWillReceiveProps() { 74768 this._needsFlush = true; 74769 }; 74770 74771 Position.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { 74772 if (this._needsFlush) { 74773 this._needsFlush = false; 74774 this.maybeUpdatePosition(this.props.placement !== prevProps.placement); 74775 } 74776 }; 74777 74778 Position.prototype.render = function render() { 74779 var _props = this.props, 74780 children = _props.children, 74781 className = _props.className, 74782 props = _objectWithoutProperties(_props, ['children', 'className']); 74783 74784 var _state = this.state, 74785 positionLeft = _state.positionLeft, 74786 positionTop = _state.positionTop, 74787 arrowPosition = _objectWithoutProperties(_state, ['positionLeft', 'positionTop']); 74788 74789 // These should not be forwarded to the child. 74790 74791 74792 delete props.target; 74793 delete props.container; 74794 delete props.containerPadding; 74795 delete props.shouldUpdatePosition; 74796 74797 var child = _react2.default.Children.only(children); 74798 return (0, _react.cloneElement)(child, _extends({}, props, arrowPosition, { 74799 // FIXME: Don't forward `positionLeft` and `positionTop` via both props 74800 // and `props.style`. 74801 positionLeft: positionLeft, 74802 positionTop: positionTop, 74803 className: (0, _classnames2.default)(className, child.props.className), 74804 style: _extends({}, child.props.style, { 74805 left: positionLeft, 74806 top: positionTop 74807 }) 74808 })); 74809 }; 74810 74811 Position.prototype.updatePosition = function updatePosition(target) { 74812 this._lastTarget = target; 74813 74814 if (!target) { 74815 this.setState({ 74816 positionLeft: 0, 74817 positionTop: 0, 74818 arrowOffsetLeft: null, 74819 arrowOffsetTop: null 74820 }); 74821 74822 return; 74823 } 74824 74825 var overlay = _reactDom2.default.findDOMNode(this); 74826 var container = (0, _getContainer2.default)(this.props.container, (0, _ownerDocument2.default)(this).body); 74827 74828 this.setState((0, _calculatePosition2.default)(this.props.placement, overlay, target, container, this.props.containerPadding)); 74829 }; 74830 74831 return Position; 74832}(_react2.default.Component); 74833 74834Position.propTypes = { 74835 /** 74836 * A node, element, or function that returns either. The child will be 74837 * be positioned next to the `target` specified. 74838 */ 74839 target: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]), 74840 74841 /** 74842 * "offsetParent" of the component 74843 */ 74844 container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]), 74845 /** 74846 * Minimum spacing in pixels between container border and component border 74847 */ 74848 containerPadding: _propTypes2.default.number, 74849 /** 74850 * How to position the component relative to the target 74851 */ 74852 placement: _propTypes2.default.oneOf(['top', 'right', 'bottom', 'left']), 74853 /** 74854 * Whether the position should be changed on each update 74855 */ 74856 shouldUpdatePosition: _propTypes2.default.bool 74857}; 74858 74859Position.displayName = 'Position'; 74860 74861Position.defaultProps = { 74862 containerPadding: 0, 74863 placement: 'right', 74864 shouldUpdatePosition: false 74865}; 74866 74867exports.default = Position; 74868module.exports = exports['default']; 74869 74870/***/ }), 74871/* 750 */ 74872/***/ (function(module, exports, __webpack_require__) { 74873 74874"use strict"; 74875 74876 74877exports.__esModule = true; 74878exports.default = calculatePosition; 74879 74880var _offset = __webpack_require__(398); 74881 74882var _offset2 = _interopRequireDefault(_offset); 74883 74884var _position = __webpack_require__(751); 74885 74886var _position2 = _interopRequireDefault(_position); 74887 74888var _scrollTop = __webpack_require__(399); 74889 74890var _scrollTop2 = _interopRequireDefault(_scrollTop); 74891 74892var _ownerDocument = __webpack_require__(65); 74893 74894var _ownerDocument2 = _interopRequireDefault(_ownerDocument); 74895 74896function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 74897 74898function getContainerDimensions(containerNode) { 74899 var width = void 0, 74900 height = void 0, 74901 scroll = void 0; 74902 74903 if (containerNode.tagName === 'BODY') { 74904 width = window.innerWidth; 74905 height = window.innerHeight; 74906 74907 scroll = (0, _scrollTop2.default)((0, _ownerDocument2.default)(containerNode).documentElement) || (0, _scrollTop2.default)(containerNode); 74908 } else { 74909 var _getOffset = (0, _offset2.default)(containerNode); 74910 74911 width = _getOffset.width; 74912 height = _getOffset.height; 74913 74914 scroll = (0, _scrollTop2.default)(containerNode); 74915 } 74916 74917 return { width: width, height: height, scroll: scroll }; 74918} 74919 74920function getTopDelta(top, overlayHeight, container, padding) { 74921 var containerDimensions = getContainerDimensions(container); 74922 var containerScroll = containerDimensions.scroll; 74923 var containerHeight = containerDimensions.height; 74924 74925 var topEdgeOffset = top - padding - containerScroll; 74926 var bottomEdgeOffset = top + padding - containerScroll + overlayHeight; 74927 74928 if (topEdgeOffset < 0) { 74929 return -topEdgeOffset; 74930 } else if (bottomEdgeOffset > containerHeight) {
74931 return containerHeight - bottomEdgeOffset; 74932 } else { 74933 return 0; 74934 } 74935} 74936 74937function getLeftDelta(left, overlayWidth, container, padding) { 74938 var containerDimensions = getContainerDimensions(container); 74939 var containerWidth = containerDimensions.width; 74940 74941 var leftEdgeOffset = left - padding; 74942 var rightEdgeOffset = left + padding + overlayWidth; 74943 74944 if (leftEdgeOffset < 0) { 74945 return -leftEdgeOffset; 74946 } else if (rightEdgeOffset > containerWidth) { 74947 return containerWidth - rightEdgeOffset; 74948 } 74949 74950 return 0; 74951} 74952 74953function calculatePosition(placement, overlayNode, target, container, padding) { 74954 var childOffset = container.tagName === 'BODY' ? (0, _offset2.default)(target) : (0, _position2.default)(target, container); 74955 74956 var _getOffset2 = (0, _offset2.default)(overlayNode), 74957 overlayHeight = _getOffset2.height, 74958 overlayWidth = _getOffset2.width; 74959 74960 var positionLeft = void 0, 74961 positionTop = void 0, 74962 arrowOffsetLeft = void 0, 74963 arrowOffsetTop = void 0; 74964 74965 if (placement === 'left' || placement === 'right') { 74966 positionTop = childOffset.top + (childOffset.height - overlayHeight) / 2; 74967 74968 if (placement === 'left') { 74969 positionLeft = childOffset.left - overlayWidth; 74970 } else { 74971 positionLeft = childOffset.left + childOffset.width; 74972 } 74973 74974 var topDelta = getTopDelta(positionTop, overlayHeight, container, padding); 74975 74976 positionTop += topDelta; 74977 arrowOffsetTop = 50 * (1 - 2 * topDelta / overlayHeight) + '%'; 74978 arrowOffsetLeft = void 0; 74979 } else if (placement === 'top' || placement === 'bottom') { 74980 positionLeft = childOffset.left + (childOffset.width - overlayWidth) / 2; 74981 74982 if (placement === 'top') { 74983 positionTop = childOffset.top - overlayHeight; 74984 } else { 74985 positionTop = childOffset.top + childOffset.height; 74986 } 74987 74988 var leftDelta = getLeftDelta(positionLeft, overlayWidth, container, padding); 74989 74990 positionLeft += leftDelta; 74991 arrowOffsetLeft = 50 * (1 - 2 * leftDelta / overlayWidth) + '%'; 74992 arrowOffsetTop = void 0; 74993 } else { 74994 throw new Error('calcOverlayPosition(): No such placement of "' + placement + '" found.'); 74995 } 74996 74997 return { positionLeft: positionLeft, positionTop: positionTop, arrowOffsetLeft: arrowOffsetLeft, arrowOffsetTop: arrowOffsetTop }; 74998} 74999module.exports = exports['default']; 75000 75001/***/ }), 75002/* 751 */ 75003/***/ (function(module, exports, __webpack_require__) { 75004 75005"use strict"; 75006 75007 75008Object.defineProperty(exports, "__esModule", { 75009 value: true 75010}); 75011 75012var _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; }; 75013 75014exports.default = position; 75015 75016var _offset = __webpack_require__(398); 75017 75018var _offset2 = _interopRequireDefault(_offset); 75019 75020var _offsetParent = __webpack_require__(752); 75021 75022var _offsetParent2 = _interopRequireDefault(_offsetParent); 75023 75024var _scrollTop = __webpack_require__(399); 75025 75026var _scrollTop2 = _interopRequireDefault(_scrollTop); 75027 75028var _scrollLeft = __webpack_require__(753); 75029 75030var _scrollLeft2 = _interopRequireDefault(_scrollLeft); 75031 75032var _style = __webpack_require__(95); 75033 75034var _style2 = _interopRequireDefault(_style); 75035 75036function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 75037 75038function nodeName(node) { 75039 return node.nodeName && node.nodeName.toLowerCase(); 75040} 75041 75042function position(node, offsetParent) { 75043 var parentOffset = { top: 0, left: 0 }, 75044 offset; 75045 75046 // Fixed elements are offset from window (parentOffset = {top:0, left: 0}, 75047 // because it is its only offset parent 75048 if ((0, _style2.default)(node, 'position') === 'fixed') { 75049 offset = node.getBoundingClientRect(); 75050 } else { 75051 offsetParent = offsetParent || (0, _offsetParent2.default)(node); 75052 offset = (0, _offset2.default)(node); 75053 75054 if (nodeName(offsetParent) !== 'html') parentOffset = (0, _offset2.default)(offsetParent); 75055 75056 parentOffset.top += parseInt((0, _style2.default)(offsetParent, 'borderTopWidth'), 10) - (0, _scrollTop2.default)(offsetParent) || 0; 75057 parentOffset.left += parseInt((0, _style2.default)(offsetParent, 'borderLeftWidth'), 10) - (0, _scrollLeft2.default)(offsetParent) || 0; 75058 } 75059 75060 // Subtract parent offsets and node margins 75061 return _extends({}, offset, { 75062 top: offset.top - parentOffset.top - (parseInt((0, _style2.default)(node, 'marginTop'), 10) || 0), 75063 left: offset.left - parentOffset.left - (parseInt((0, _style2.default)(node, 'marginLeft'), 10) || 0) 75064 }); 75065} 75066module.exports = exports['default']; 75067 75068/***/ }), 75069/* 752 */ 75070/***/ (function(module, exports, __webpack_require__) { 75071 75072"use strict"; 75073 75074 75075Object.defineProperty(exports, "__esModule", { 75076 value: true 75077}); 75078exports.default = offsetParent; 75079 75080var _ownerDocument = __webpack_require__(63); 75081 75082var _ownerDocument2 = _interopRequireDefault(_ownerDocument); 75083 75084var _style = __webpack_require__(95); 75085 75086var _style2 = _interopRequireDefault(_style); 75087 75088function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 75089 75090function nodeName(node) { 75091 return node.nodeName && node.nodeName.toLowerCase(); 75092} 75093 75094function offsetParent(node) { 75095 var doc = (0, _ownerDocument2.default)(node), 75096 offsetParent = node && node.offsetParent; 75097 75098 while (offsetParent && nodeName(node) !== 'html' && (0, _style2.default)(offsetParent, 'position') === 'static') { 75099 offsetParent = offsetParent.offsetParent; 75100 } 75101 75102 return offsetParent || doc.documentElement; 75103} 75104module.exports = exports['default']; 75105 75106/***/ }), 75107/* 753 */ 75108/***/ (function(module, exports, __webpack_require__) { 75109 75110"use strict"; 75111 75112 75113Object.defineProperty(exports, "__esModule", { 75114 value: true 75115}); 75116exports.default = scrollTop; 75117 75118var _isWindow = __webpack_require__(103); 75119 75120var _isWindow2 = _interopRequireDefault(_isWindow); 75121 75122function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 75123 75124function scrollTop(node, val) { 75125 var win = (0, _isWindow2.default)(node); 75126 75127 if (val === undefined) return win ? 'pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft : node.scrollLeft; 75128 75129 if (win) win.scrollTo(val, 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop);else node.scrollLeft = val; 75130} 75131module.exports = exports['default']; 75132 75133/***/ }), 75134/* 754 */ 75135/***/ (function(module, __webpack_exports__, __webpack_require__) { 75136 75137"use strict"; 75138/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 75139/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__); 75140/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 75141/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); 75142/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 75143/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); 75144/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(5); 75145/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); 75146/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__ = __webpack_require__(6); 75147/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__); 75148/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_dom_helpers_query_contains__ = __webpack_require__(64); 75149/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_dom_helpers_query_contains___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_dom_helpers_query_contains__); 75150/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 75151/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 75152/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 75153/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 75154/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_dom__ = __webpack_require__(17); 75155/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react_dom__); 75156/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_warning__ = __webpack_require__(19); 75157/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_warning__); 75158/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Overlay__ = __webpack_require__(397); 75159/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__utils_createChainedFunction__ = __webpack_require__(16); 75160 75161 75162 75163 75164 75165 75166 75167 75168 75169 75170 75171 75172 75173 75174 75175/** 75176 * Check if value one is inside or equal to the of value 75177 * 75178 * @param {string} one 75179 * @param {string|array} of 75180 * @returns {boolean} 75181 */ 75182function isOneOf(one, of) { 75183 if (Array.isArray(of)) { 75184 return of.indexOf(one) >= 0; 75185 } 75186 return one === of; 75187} 75188 75189var triggerType = __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOf(['click', 'hover', 'focus']); 75190 75191var propTypes = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, __WEBPACK_IMPORTED_MODULE_10__Overlay__["a" /* default */].propTypes, { 75192 75193 /** 75194 * Specify which action or actions trigger Overlay visibility 75195 */ 75196 trigger: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([triggerType, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.arrayOf(triggerType)]), 75197 75198 /** 75199 * A millisecond delay amount to show and hide the Overlay once triggered 75200 */ 75201 delay: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 75202 /** 75203 * A millisecond delay amount before showing the Overlay once triggered. 75204 */ 75205 delayShow: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 75206 /** 75207 * A millisecond delay amount before hiding the Overlay once triggered. 75208 */ 75209 delayHide: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 75210 75211 // FIXME: This should be `defaultShow`. 75212 /** 75213 * The initial visibility state of the Overlay. For more nuanced visibility 75214 * control, consider using the Overlay component directly. 75215 */ 75216 defaultOverlayShown: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 75217 75218 /** 75219 * An element or text to overlay next to the target. 75220 */ 75221 overlay: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.node.isRequired, 75222 75223 /** 75224 * @private 75225 */ 75226 onBlur: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 75227 /** 75228 * @private 75229 */ 75230 onClick: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 75231 /** 75232 * @private 75233 */ 75234 onFocus: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 75235 /** 75236 * @private 75237 */ 75238 onMouseOut: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 75239 /** 75240 * @private 75241 */ 75242 onMouseOver: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 75243 75244 // Overridden props from `<Overlay>`. 75245 /** 75246 * @private 75247 */ 75248 target: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOf([null]), 75249 /** 75250 * @private 75251 */ 75252 onHide: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOf([null]), 75253 /** 75254 * @private 75255 */ 75256 show: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOf([null]) 75257}); 75258 75259var defaultProps = { 75260 defaultOverlayShown: false, 75261 trigger: ['hover', 'focus'] 75262}; 75263 75264var OverlayTrigger = function (_React$Component) { 75265 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(OverlayTrigger, _React$Component); 75266 75267 function OverlayTrigger(props, context) { 75268 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, OverlayTrigger); 75269 75270 var _this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props, context)); 75271 75272 _this.handleToggle = _this.handleToggle.bind(_this); 75273 _this.handleDelayedShow = _this.handleDelayedShow.bind(_this); 75274 _this.handleDelayedHide = _this.handleDelayedHide.bind(_this); 75275 _this.handleHide = _this.handleHide.bind(_this); 75276 75277 _this.handleMouseOver = function (e) { 75278 return _this.handleMouseOverOut(_this.handleDelayedShow, e); 75279 }; 75280 _this.handleMouseOut = function (e) { 75281 return _this.handleMouseOverOut(_this.handleDelayedHide, e); 75282 }; 75283 75284 _this._mountNode = null; 75285 75286 _this.state = { 75287 show: props.defaultOverlayShown 75288 }; 75289 return _this; 75290 } 75291 75292 OverlayTrigger.prototype.componentDidMount = function componentDidMount() { 75293 this._mountNode = document.createElement('div'); 75294 this.renderOverlay(); 75295 }; 75296 75297 OverlayTrigger.prototype.componentDidUpdate = function componentDidUpdate() { 75298 this.renderOverlay(); 75299 }; 75300 75301 OverlayTrigger.prototype.componentWillUnmount = function componentWillUnmount() { 75302 __WEBPACK_IMPORTED_MODULE_8_react_dom___default.a.unmountComponentAtNode(this._mountNode); 75303 this._mountNode = null; 75304 75305 clearTimeout(this._hoverShowDelay); 75306 clearTimeout(this._hoverHideDelay); 75307 }; 75308 75309 OverlayTrigger.prototype.handleDelayedHide = function handleDelayedHide() { 75310 var _this2 = this; 75311 75312 if (this._hoverShowDelay != null) { 75313 clearTimeout(this._hoverShowDelay); 75314 this._hoverShowDelay = null; 75315 return; 75316 } 75317 75318 if (!this.state.show || this._hoverHideDelay != null) { 75319 return; 75320 } 75321
75322 var delay = this.props.delayHide != null ? this.props.delayHide : this.props.delay; 75323 75324 if (!delay) { 75325 this.hide(); 75326 return; 75327 } 75328 75329 this._hoverHideDelay = setTimeout(function () { 75330 _this2._hoverHideDelay = null; 75331 _this2.hide(); 75332 }, delay); 75333 }; 75334 75335 OverlayTrigger.prototype.handleDelayedShow = function handleDelayedShow() { 75336 var _this3 = this; 75337 75338 if (this._hoverHideDelay != null) { 75339 clearTimeout(this._hoverHideDelay); 75340 this._hoverHideDelay = null; 75341 return; 75342 } 75343 75344 if (this.state.show || this._hoverShowDelay != null) { 75345 return; 75346 } 75347 75348 var delay = this.props.delayShow != null ? this.props.delayShow : this.props.delay; 75349 75350 if (!delay) { 75351 this.show(); 75352 return; 75353 } 75354 75355 this._hoverShowDelay = setTimeout(function () { 75356 _this3._hoverShowDelay = null; 75357 _this3.show(); 75358 }, delay); 75359 }; 75360 75361 OverlayTrigger.prototype.handleHide = function handleHide() { 75362 this.hide(); 75363 }; 75364 75365 // Simple implementation of mouseEnter and mouseLeave. 75366 // React's built version is broken: https://github.com/facebook/react/issues/4251 75367 // for cases when the trigger is disabled and mouseOut/Over can cause flicker 75368 // moving from one child element to another. 75369 75370 75371 OverlayTrigger.prototype.handleMouseOverOut = function handleMouseOverOut(handler, e) { 75372 var target = e.currentTarget; 75373 var related = e.relatedTarget || e.nativeEvent.toElement; 75374 75375 if ((!related || related !== target) && !__WEBPACK_IMPORTED_MODULE_5_dom_helpers_query_contains___default()(target, related)) { 75376 handler(e); 75377 } 75378 }; 75379 75380 OverlayTrigger.prototype.handleToggle = function handleToggle() { 75381 if (this.state.show) { 75382 this.hide(); 75383 } else { 75384 this.show(); 75385 } 75386 }; 75387 75388 OverlayTrigger.prototype.hide = function hide() { 75389 this.setState({ show: false }); 75390 }; 75391 75392 OverlayTrigger.prototype.makeOverlay = function makeOverlay(overlay, props) { 75393 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75394 __WEBPACK_IMPORTED_MODULE_10__Overlay__["a" /* default */], 75395 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, props, { 75396 show: this.state.show, 75397 onHide: this.handleHide, 75398 target: this 75399 }), 75400 overlay 75401 ); 75402 }; 75403 75404 OverlayTrigger.prototype.show = function show() { 75405 this.setState({ show: true }); 75406 }; 75407 75408 OverlayTrigger.prototype.renderOverlay = function renderOverlay() { 75409 __WEBPACK_IMPORTED_MODULE_8_react_dom___default.a.unstable_renderSubtreeIntoContainer(this, this._overlay, this._mountNode); 75410 }; 75411 75412 OverlayTrigger.prototype.render = function render() { 75413 var _props = this.props, 75414 trigger = _props.trigger, 75415 overlay = _props.overlay, 75416 children = _props.children, 75417 onBlur = _props.onBlur, 75418 onClick = _props.onClick, 75419 onFocus = _props.onFocus, 75420 onMouseOut = _props.onMouseOut, 75421 onMouseOver = _props.onMouseOver, 75422 props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['trigger', 'overlay', 'children', 'onBlur', 'onClick', 'onFocus', 'onMouseOut', 'onMouseOver']); 75423 75424 delete props.delay; 75425 delete props.delayShow; 75426 delete props.delayHide; 75427 delete props.defaultOverlayShown; 75428 75429 var child = __WEBPACK_IMPORTED_MODULE_6_react___default.a.Children.only(children); 75430 var childProps = child.props; 75431 var triggerProps = {}; 75432 75433 if (this.state.show) { 75434 triggerProps['aria-describedby'] = overlay.props.id; 75435 } 75436 75437 // FIXME: The logic here for passing through handlers on this component is 75438 // inconsistent. We shouldn't be passing any of these props through. 75439 75440 triggerProps.onClick = Object(__WEBPACK_IMPORTED_MODULE_11__utils_createChainedFunction__["a" /* default */])(childProps.onClick, onClick); 75441 75442 if (isOneOf('click', trigger)) { 75443 triggerProps.onClick = Object(__WEBPACK_IMPORTED_MODULE_11__utils_createChainedFunction__["a" /* default */])(triggerProps.onClick, this.handleToggle); 75444 } 75445 75446 if (isOneOf('hover', trigger)) { 75447 true ? __WEBPACK_IMPORTED_MODULE_9_warning___default()(!(trigger === 'hover'), '[react-bootstrap] Specifying only the `"hover"` trigger limits the ' + 'visibility of the overlay to just mouse users. Consider also ' + 'including the `"focus"` trigger so that touch and ke
75447yboard only ' + 'users can see the overlay as well.') : void 0; 75448 75449 triggerProps.onMouseOver = Object(__WEBPACK_IMPORTED_MODULE_11__utils_createChainedFunction__["a" /* default */])(childProps.onMouseOver, onMouseOver, this.handleMouseOver); 75450 triggerProps.onMouseOut = Object(__WEBPACK_IMPORTED_MODULE_11__utils_createChainedFunction__["a" /* default */])(childProps.onMouseOut, onMouseOut, this.handleMouseOut); 75451 } 75452 75453 if (isOneOf('focus', trigger)) { 75454 triggerProps.onFocus = Object(__WEBPACK_IMPORTED_MODULE_11__utils_createChainedFunction__["a" /* default */])(childProps.onFocus, onFocus, this.handleDelayedShow); 75455 triggerProps.onBlur = Object(__WEBPACK_IMPORTED_MODULE_11__utils_createChainedFunction__["a" /* default */])(childProps.onBlur, onBlur, this.handleDelayedHide); 75456 } 75457 75458 this._overlay = this.makeOverlay(overlay, props); 75459 75460 return Object(__WEBPACK_IMPORTED_MODULE_6_react__["cloneElement"])(child, triggerProps); 75461 }; 75462 75463 return OverlayTrigger; 75464}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 75465 75466OverlayTrigger.propTypes = propTypes; 75467OverlayTrigger.defaultProps = defaultProps; 75468 75469/* harmony default export */ __webpack_exports__["a"] = (OverlayTrigger); 75470 75471/***/ }), 75472/* 755 */ 75473/***/ (function(module, __webpack_exports__, __webpack_require__) { 75474 75475"use strict"; 75476/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 75477/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 75478/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 75479/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 75480/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 75481/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 75482/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 75483/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 75484/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 75485/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 75486/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 75487/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 75488/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 75489/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 75490/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__ = __webpack_require__(9); 75491 75492 75493 75494 75495 75496 75497 75498 75499 75500 75501var PageHeader = function (_React$Component) { 75502 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(PageHeader, _React$Component); 75503 75504 function PageHeader() { 75505 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, PageHeader); 75506 75507 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 75508 } 75509 75510 PageHeader.prototype.render = function render() { 75511 var _props = this.props, 75512 className = _props.className, 75513 children = _props.children, 75514 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['className', 'children']); 75515 75516 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["splitBsProps"])(props), 75517 bsProps = _splitBsProps[0], 75518 elementProps = _splitBsProps[1]; 75519 75520 var classes = Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["getClassSet"])(bsProps); 75521 75522 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75523 'div', 75524 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 75525 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 75526 }), 75527 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75528 'h1', 75529 null, 75530 children 75531 ) 75532 ); 75533 }; 75534 75535 return PageHeader; 75536}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 75537 75538/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["bsClass"])('page-header', PageHeader)); 75539 75540/***/ }), 75541/* 756 */ 75542/***/ (function(module, __webpack_exports__, __webpack_require__) { 75543 75544"use strict"; 75545/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__PagerItem__ = __webpack_require__(400); 75546/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_deprecationWarning__ = __webpack_require__(757); 75547 75548 75549 75550/* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_1__utils_deprecationWarning__["a" /* default */].wrapper(__WEBPACK_IMPORTED_MODULE_0__PagerItem__["a" /* default */], '`<PageItem>`', '`<Pager.Item>`')); 75551 75552/***/ }), 75553/* 757 */ 75554/***/ (function(module, __webpack_exports__, __webpack_require__) { 75555 75556"use strict"; 75557/* unused harmony export _resetWarned */ 75558/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 75559/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__); 75560/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 75561/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__); 75562/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__ = __webpack_require__(5); 75563/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__); 75564/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_typeof__ = __webpack_require__(147); 75565/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_typeof__); 75566/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_warning__ = __webpack_require__(19); 75567/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_warning__); 75568 75569 75570 75571 75572 75573 75574var warned = {}; 75575 75576function deprecationWarning(oldname, newname, link) { 75577 var message = void 0; 75578 75579 if ((typeof oldname === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_typeof___default()(oldname)) === 'object') { 75580 message = oldname.message; 75581 } else { 75582 message = oldname + ' is deprecated. Use ' + newname + ' instead.'; 75583 75584 if (link) { 75585 message += '\nYou can read more about it at ' + link; 75586 } 75587 } 75588 75589 if (warned[message]) { 75590 return; 75591 } 75592 75593 true ? __WEBPACK_IMPORTED_MODULE_4_warning___default()(false, message) : void 0; 75594 warned[message] = true; 75595} 75596 75597deprecationWarning.wrapper = function (Component) { 75598 for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { 75599 args[_key - 1] = arguments[_key]; 75600 } 75601 75602 return function (_Component) { 75603 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default()(DeprecatedComponent, _Component); 75604 75605 function DeprecatedComponent() { 75606 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, DeprecatedComponent); 75607 75608 return __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default()(this, _Component.apply(this, arguments)); 75609 } 75610 75611 DeprecatedComponent.prototype.componentWillMount = function componentWillMount() { 75612 deprecationWarning.apply(undefined, args); 75613 75614 if (_Component.prototype.componentWillMount) { 75615 var _Component$prototype$; 75616 75617 for (var _len2 = arguments.length, methodArgs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { 75618 methodArgs[_key2] = arguments[_key2]; 75619 } 75620 75621 (_Component$prototype$ = _Component.prototype.componentWillMount).call.apply(_Component$prototype$, [this].concat(methodArgs)); 75622 } 75623 }; 75624 75625 return DeprecatedComponent; 75626 }(Component); 75627}; 75628 75629/* harmony default export */ __webpack_exports__["a"] = (deprecationWarning); 75630 75631function _resetWarned() { 75632 warned = {}; 75633} 75634 75635/***/ }), 75636/* 758 */ 75637/***/ (function(module, __webpack_exports__, __webpack_require__) { 75638 75639"use strict"; 75640/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 75641/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 75642/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 75643/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 75644/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 75645/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 75646/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 75647/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 75648/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 75649/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 75650/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 75651/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 75652/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 75653/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 75654/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 75655/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 75656/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__PagerItem__ = __webpack_require__(400); 75657/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 75658/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_createChainedFunction__ = __webpack_require__(16); 75659/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__utils_ValidComponentChildren__ = __webpack_require__(22); 75660 75661 75662 75663 75664 75665 75666 75667 75668 75669 75670 75671 75672 75673 75674var propTypes = { 75675 onSelect: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func 75676}; 75677 75678var Pager = function (_React$Component) { 75679 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Pager, _React$Component); 75680 75681 function Pager() { 75682 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Pager); 75683 75684 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 75685 } 75686 75687 Pager.prototype.render = function render() { 75688 var _props = this.props, 75689 onSelect = _props.onSelect, 75690 className = _props.className, 75691 children = _props.children, 75692 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['onSelect', 'className', 'children']); 75693 75694 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 75695 bsProps = _splitBsProps[0], 75696 elementProps = _splitBsProps[1]; 75697 75698 var classes = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["getClassSet"])(bsProps); 75699 75700 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75701 'ul', 75702 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 75703 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 75704 }), 75705 __WEBPACK_IMPORTED_MODULE_11__utils_ValidComponentChildren__["a" /* default */].map(children, function (child) { 75706 return Object(__WEBPACK_IMPORTED_MODULE_6_react__["cloneElement"])(child, { 75707 onSelect: Object(__WEBPACK_IMPORTED_MODULE_10__utils_createChainedFunction__["a" /* default */])(child.props.onSelect, onSelect) 75708 }); 75709 }) 75710 ); 75711 }; 75712 75713 return Pager; 75714}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 75715
75716Pager.propTypes = propTypes; 75717 75718Pager.Item = __WEBPACK_IMPORTED_MODULE_8__PagerItem__["a" /* default */]; 75719 75720/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('pager', Pager)); 75721 75722/***/ }), 75723/* 759 */ 75724/***/ (function(module, __webpack_exports__, __webpack_require__) { 75725 75726"use strict"; 75727/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 75728/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__); 75729/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(6); 75730/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__); 75731/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 75732/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 75733/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 75734/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 75735/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 75736/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 75737/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 75738/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 75739/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 75740/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 75741/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 75742/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 75743/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__ = __webpack_require__(13); 75744/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType__); 75745/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__PaginationButton__ = __webpack_require__(401); 75746/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__ = __webpack_require__(9); 75747 75748 75749 75750 75751 75752 75753 75754 75755 75756 75757 75758 75759 75760var propTypes = { 75761 activePage: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 75762 items: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 75763 maxButtons: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, 75764 75765 /** 75766 * When `true`, will display the first and the last button page when 75767 * displaying ellipsis. 75768 */ 75769 boundaryLinks: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 75770 75771 /** 75772 * When `true`, will display the default node value ('…'). 75773 * Otherwise, will display provided node (when specified). 75774 */ 75775 ellipsis: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.node]), 75776 75777 /** 75778 * When `true`, will display the default node value ('«'). 75779 * Otherwise, will display provided node (when specified). 75780 */ 75781 first: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.node]), 75782 75783 /** 75784 * When `true`, will display the default node value ('»'). 75785 * Otherwise, will display provided node (when specified). 75786 */ 75787 last: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.node]), 75788 75789 /** 75790 * When `true`, will display the default node value ('‹'). 75791 * Otherwise, will display provided node (when specified). 75792 */ 75793 prev: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.node]), 75794 75795 /** 75796 * When `true`, will display the default node value ('›'). 75797 * Otherwise, will display provided node (when specified). 75798 */ 75799 next: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.node]), 75800 75801 onSelect: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 75802 75803 /** 75804 * You can use a custom element for the buttons 75805 */ 75806 buttonComponentClass: __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_elementType___default.a 75807}; 75808 75809var defaultProps = { 75810 activePage: 1, 75811 items: 1, 75812 maxButtons: 0, 75813 first: false, 75814 last: false, 75815 prev: false, 75816 next: false, 75817 ellipsis: true, 75818 boundaryLinks: false 75819}; 75820 75821var Pagination = function (_React$Component) { 75822 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Pagination, _React$Component); 75823 75824 function Pagination() { 75825 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Pagination); 75826 75827 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 75828 } 75829 75830 Pagination.prototype.renderPageButtons = function renderPageButtons(activePage, items, maxButtons, boundaryLinks, ellipsis, buttonProps) { 75831 var pageButtons = []; 75832 75833 var startPage = void 0; 75834 var endPage = void 0; 75835 75836 if (maxButtons && maxButtons < items) { 75837 startPage = Math.max(Math.min(activePage - Math.floor(maxButtons / 2, 10), items - maxButtons + 1), 1); 75838 endPage = startPage + maxButtons - 1; 75839 } else { 75840 startPage = 1; 75841 endPage = items; 75842 } 75843 75844 for (var page = startPage; page <= endPage; ++page) { 75845 pageButtons.push(__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75846 __WEBPACK_IMPORTED_MODULE_9__PaginationButton__["a" /* default */], 75847 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, buttonProps, { 75848 key: page, 75849 eventKey: page, 75850 active: page === activePage 75851 }), 75852 page 75853 )); 75854 } 75855 75856 if (ellipsis && boundaryLinks && startPage > 1) { 75857 if (startPage > 2) { 75858 pageButtons.unshift(__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75859 __WEBPACK_IMPORTED_MODULE_9__PaginationButton__["a" /* default */], 75860 { 75861 key: 'ellipsisFirst', 75862 disabled: true, 75863 componentClass: buttonProps.componentClass 75864 }, 75865 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75866 'span', 75867 { 'aria-label': 'More' }, 75868 ellipsis === true ? '\u2026' : ellipsis 75869 ) 75870 )); 75871 } 75872 75873 pageButtons.unshift(__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75874 __WEBPACK_IMPORTED_MODULE_9__PaginationButton__["a" /* default */], 75875 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, buttonProps, { 75876 key: 1, 75877 eventKey: 1, 75878 active: false 75879 }), 75880 '1' 75881 )); 75882 } 75883 75884 if (ellipsis && endPage < items) { 75885 if (!boundaryLinks || endPage < items - 1) { 75886 pageButtons.push(__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75887 __WEBPACK_IMPORTED_MODULE_9__PaginationButton__["a" /* default */], 75888 { 75889 key: 'ellipsis', 75890 disabled: true, 75891 componentClass: buttonProps.componentClass 75892 }, 75893 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75894 'span', 75895 { 'aria-label': 'More' }, 75896 ellipsis === true ? '\u2026' : ellipsis 75897 ) 75898 )); 75899 } 75900 75901 if (boundaryLinks) { 75902 pageButtons.push(__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75903 __WEBPACK_IMPORTED_MODULE_9__PaginationButton__["a" /* default */], 75904 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, buttonProps, { 75905 key: items, 75906 eventKey: items, 75907 active: false 75908 }), 75909 items 75910 )); 75911 } 75912 } 75913 75914 return pageButtons; 75915 }; 75916 75917 Pagination.prototype.render = function render() { 75918 var _props = this.props, 75919 activePage = _props.activePage, 75920 items = _props.items, 75921 maxButtons = _props.maxButtons, 75922 boundaryLinks = _props.boundaryLinks, 75923 ellipsis = _props.ellipsis, 75924 first = _props.first, 75925 last = _props.last, 75926 prev = _props.prev, 75927 next = _props.next, 75928 onSelect = _props.onSelect, 75929 buttonComponentClass = _props.buttonComponentClass, 75930 className = _props.className, 75931 props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['activePage', 'items', 'maxButtons', 'boundaryLinks', 'ellipsis', 'first', 'last', 'prev', 'next', 'onSelect', 'buttonComponentClass', 'className']); 75932 75933 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["splitBsProps"])(props), 75934 bsProps = _splitBsProps[0], 75935 elementProps = _splitBsProps[1]; 75936 75937 var classes = Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["getClassSet"])(bsProps); 75938 75939 var buttonProps = { 75940 onSelect: onSelect, 75941 componentClass: buttonComponentClass 75942 }; 75943 75944 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75945 'ul', 75946 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, elementProps, { 75947 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 75948 }), 75949 first && __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75950 __WEBPACK_IMPORTED_MODULE_9__PaginationButton__["a" /* default */], 75951 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, buttonProps, { 75952 eventKey: 1, 75953 disabled: activePage === 1 75954 }), 75955 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75956 'span', 75957 { 'aria-label': 'First' }, 75958 first === true ? '\xAB' : first 75959 ) 75960 ), 75961 prev && __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75962 __WEBPACK_IMPORTED_MODULE_9__PaginationButton__["a" /* default */], 75963 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, buttonProps, { 75964 eventKey: activePage - 1, 75965 disabled: activePage === 1 75966 }), 75967 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75968 'span', 75969 { 'aria-label': 'Previous' }, 75970 prev === true ? '\u2039' : prev 75971 ) 75972 ), 75973 this.renderPageButtons(activePage, items, maxButtons, boundaryLinks, ellipsis, buttonProps), 75974 next && __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75975 __WEBPACK_IMPORTED_MODULE_9__PaginationButton__["a" /* default */], 75976 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, buttonProps, {
75977 eventKey: activePage + 1, 75978 disabled: activePage >= items 75979 }), 75980 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75981 'span', 75982 { 'aria-label': 'Next' }, 75983 next === true ? '\u203A' : next 75984 ) 75985 ), 75986 last && __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75987 __WEBPACK_IMPORTED_MODULE_9__PaginationButton__["a" /* default */], 75988 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, buttonProps, { 75989 eventKey: items, 75990 disabled: activePage >= items 75991 }), 75992 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 75993 'span', 75994 { 'aria-label': 'Last' }, 75995 last === true ? '\xBB' : last 75996 ) 75997 ) 75998 ); 75999 }; 76000 76001 return Pagination; 76002}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 76003 76004Pagination.propTypes = propTypes; 76005Pagination.defaultProps = defaultProps; 76006 76007/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["bsClass"])('pagination', Pagination)); 76008 76009/***/ }), 76010/* 760 */ 76011/***/ (function(module, __webpack_exports__, __webpack_require__) { 76012 76013"use strict"; 76014/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values__ = __webpack_require__(62); 76015/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values__); 76016/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 76017/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 76018/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends__ = __webpack_require__(6); 76019/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends__); 76020/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 76021/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__); 76022/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 76023/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__); 76024/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(5); 76025/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__); 76026/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames__ = __webpack_require__(8); 76027/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_classnames__); 76028/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react__ = __webpack_require__(0); 76029/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react__); 76030/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types__ = __webpack_require__(2); 76031/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types__); 76032/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Collapse__ = __webpack_require__(155); 76033/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__ = __webpack_require__(9); 76034/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__ = __webpack_require__(20); 76035 76036 76037 76038 76039 76040 76041 76042 76043 76044 76045 76046 76047 76048 76049// TODO: Use uncontrollable. 76050 76051var propTypes = { 76052 collapsible: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, 76053 onSelect: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, 76054 header: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.node, 76055 id: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number]), 76056 footer: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.node, 76057 defaultExpanded: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, 76058 expanded: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, 76059 eventKey: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.any, 76060 headerRole: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string, 76061 panelRole: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string, 76062 76063 // From Collapse. 76064 onEnter: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, 76065 onEntering: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, 76066 onEntered: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, 76067 onExit: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, 76068 onExiting: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, 76069 onExited: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func 76070}; 76071 76072var defaultProps = { 76073 defaultExpanded: false 76074}; 76075 76076var Panel = function (_React$Component) { 76077 __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(Panel, _React$Component); 76078 76079 function Panel(props, context) { 76080 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck___default()(this, Panel); 76081 76082 var _this = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props, context)); 76083 76084 _this.handleClickTitle = _this.handleClickTitle.bind(_this); 76085 76086 _this.state = { 76087 expanded: _this.props.defaultExpanded 76088 }; 76089 return _this; 76090 } 76091 76092 Panel.prototype.handleClickTitle = function handleClickTitle(e) { 76093 // FIXME: What the heck? This API is horrible. This needs to go away! 76094 e.persist(); 76095 e.selected = true; 76096 76097 if (this.props.onSelect) { 76098 this.props.onSelect(this.props.eventKey, e); 76099 } else { 76100 e.preventDefault(); 76101 } 76102 76103 if (e.selected) { 76104 this.setState({ expanded: !this.state.expanded }); 76105 } 76106 }; 76107 76108 Panel.prototype.renderAnchor = function renderAnchor(header, id, role, expanded) { 76109 return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement( 76110 'a', 76111 { 76112 role: role, 76113 href: id && '#' + id, 76114 onClick: this.handleClickTitle, 76115 'aria-controls': id, 76116 'aria-expanded': expanded, 76117 'aria-selected': expanded, 76118 className: expanded ? null : 'collapsed' 76119 }, 76120 header 76121 ); 76122 }; 76123 76124 Panel.prototype.renderBody = function renderBody(rawChildren, bsProps) { 76125 var children = []; 76126 var bodyChildren = []; 76127 76128 var bodyClassName = Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["prefix"])(bsProps, 'body'); 76129 76130 function maybeAddBody() { 76131 if (!bodyChildren.length) { 76132 return; 76133 } 76134 76135 // Derive the key from the index here, since we need to make one up. 76136 children.push(__WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement( 76137 'div', 76138 { key: children.length, className: bodyClassName }, 76139 bodyChildren 76140 )); 76141 76142 bodyChildren = []; 76143 } 76144 76145 // Convert to array so we can re-use keys. 76146 __WEBPACK_IMPORTED_MODULE_7_react___default.a.Children.toArray(rawChildren).forEac
76146h(function (child) { 76147 if (__WEBPACK_IMPORTED_MODULE_7_react___default.a.isValidElement(child) && child.props.fill) { 76148 maybeAddBody(); 76149 76150 // Remove the child's unknown `fill` prop. 76151 children.push(Object(__WEBPACK_IMPORTED_MODULE_7_react__["cloneElement"])(child, { fill: undefined })); 76152 76153 return; 76154 } 76155 76156 bodyChildren.push(child); 76157 }); 76158 76159 maybeAddBody(); 76160 76161 return children; 76162 }; 76163 76164 Panel.prototype.renderCollapsibleBody = function renderCollapsibleBody(id, expanded, role, children, bsProps, animationHooks) { 76165 return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement( 76166 __WEBPACK_IMPORTED_MODULE_9__Collapse__["a" /* default */], 76167 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({ 'in': expanded }, animationHooks), 76168 __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement( 76169 'div', 76170 { 76171 id: id, 76172 role: role, 76173 className: Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["prefix"])(bsProps, 'collapse'), 76174 'aria-hidden': !expanded 76175 }, 76176 this.renderBody(children, bsProps) 76177 ) 76178 ); 76179 }; 76180 76181 Panel.prototype.renderHeader = function renderHeader(collapsible, header, id, role, expanded, bsProps) { 76182 var titleClassName = Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["prefix"])(bsProps, 'title'); 76183 76184 if (!collapsible) { 76185 if (!__WEBPACK_IMPORTED_MODULE_7_react___default.a.isValidElement(header)) { 76186 return header; 76187 } 76188 76189 return Object(__WEBPACK_IMPORTED_MODULE_7_react__["cloneElement"])(header, { 76190 className: __WEBPACK_IMPORTED_MODULE_6_classnames___default()(header.props.className, titleClassName) 76191 }); 76192 } 76193 76194 if (!__WEBPACK_IMPORTED_MODULE_7_react___default.a.isValidElement(header)) { 76195 return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement( 76196 'h4', 76197 { role: 'presentation', className: titleClassName }, 76198 this.renderAnchor(header, id, role, expanded) 76199 ); 76200 } 76201 76202 return Object(__WEBPACK_IMPORTED_MODULE_7_react__["cloneElement"])(header, { 76203 className: __WEBPACK_IMPORTED_MODULE_6_classnames___default()(header.props.className, titleClassName), 76204 children: this.renderAnchor(header.props.children, id, role, expanded) 76205 }); 76206 }; 76207 76208 Panel.prototype.render = function render() { 76209 var _props = this.props, 76210 collapsible = _props.collapsible, 76211 header = _props.header, 76212 id = _props.id, 76213 footer = _props.footer, 76214 propsExpanded = _props.expanded, 76215 headerRole = _props.headerRole, 76216 panelRole = _props.panelRole, 76217 className = _props.className, 76218 children = _props.children, 76219 onEnter = _props.onEnter, 76220 onEntering = _props.onEntering, 76221 onEntered = _props.onEntered, 76222 onExit = _props.onExit, 76223 onExiting = _props.onExiting, 76224 onExited = _props.onExited, 76225 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['collapsible', 'header', 'id', 'footer', 'expanded', 'headerRole', 'panelRole', 'className', 'children', 'onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'onExited']); 76226 76227 var _splitBsPropsAndOmit = Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["splitBsPropsAndOmit"])(props, ['defaultExpanded', 'eventKey', 'onSelect']), 76228 bsProps = _splitBsPropsAndOmit[0], 76229 elementProps = _splitBsPropsAndOmit[1]; 76230 76231 var expanded = propsExpanded != null ? propsExpanded : this.state.expanded; 76232 76233 var classes = Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["getClassSet"])(bsProps); 76234 76235 return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement( 76236 'div', 76237 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({}, elementProps, { 76238 className: __WEBPACK_IMPORTED_MODULE_6_classnames___default()(className, classes), 76239 id: collapsible ? null : id 76240 }), 76241 header && __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement( 76242 'div', 76243 { className: Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["prefix"])(bsProps, 'heading') }, 76244 this.renderHeader(collapsible, header, id, headerRole, exp
76244anded, bsProps) 76245 ), 76246 collapsible ? this.renderCollapsibleBody(id, expanded, panelRole, children, bsProps, { onEnter: onEnter, onEntering: onEntering, onEntered: onEntered, onExit: onExit, onExiting: onExiting, onExited: onExited }) : this.renderBody(children, bsProps), 76247 footer && __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement( 76248 'div', 76249 { className: Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["prefix"])(bsProps, 'footer') }, 76250 footer 76251 ) 76252 ); 76253 }; 76254 76255 return Panel; 76256}(__WEBPACK_IMPORTED_MODULE_7_react___default.a.Component); 76257 76258Panel.propTypes = propTypes; 76259Panel.defaultProps = defaultProps; 76260 76261/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["bsClass"])('panel', Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["bsStyles"])([].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values___default()(__WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["d" /* State */]), [__WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["e" /* Style */].DEFAULT, __WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["e" /* Style */].PRIMARY]), __WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["e" /* Style */].DEFAULT, Panel))); 76262 76263/***/ }), 76264/* 761 */ 76265/***/ (function(module, __webpack_exports__, __webpack_require__) { 76266 76267"use strict"; 76268/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 76269/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 76270/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 76271/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 76272/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 76273/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 76274/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 76275/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 76276/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 76277/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 76278/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 76279/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 76280/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 76281/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 76282/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 76283/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 76284/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_isRequiredForA11y__ = __webpack_require__(98); 76285/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_isRequiredForA11y___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_isRequiredForA11y__); 76286/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 76287 76288 76289 76290 76291 76292 76293 76294 76295 76296 76297 76298 76299var propTypes = { 76300 /** 76301 * An html id attribute, necessary for accessibility 76302 * @type {string} 76303 * @required 76304 */ 76305 id: __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_isRequiredForA11y___default()(__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number])), 76306 76307 /** 76308 * Sets the direction the Popover is positioned towards. 76309 */ 76310 placement: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOf(['top', 'right', 'bottom', 'left']), 76311 76312 /** 76313 * The "top" position value for the Popover. 76314 */ 76315 positionTop: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string]), 76316 /** 76317 * The "left" position value for the Popover. 76318 */ 76319 positionLeft: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string]), 76320 76321 /** 76322 * The "top" position value for the Popover arrow. 76323 */ 76324 arrowOffsetTop: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string]), 76325 /** 76326 * The "left" position value for the Popover arrow. 76327 */ 76328 arrowOffsetLeft: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string]), 76329 76330 /** 76331 * Title content 76332 */ 76333 title: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.node 76334}; 76335 76336var defaultProps = { 76337 placement: 'right' 76338}; 76339 76340var Popover = function (_React$Component) { 76341 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Popover, _React$Component); 76342 76343 function Popover() { 76344 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Popover); 76345 76346 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 76347 } 76348 76349 Popover.prototype.render = function render() { 76350 var _extends2; 76351 76352 var _props = this.props, 76353 placement = _props.placement, 76354 positionTop = _props.positionTop, 76355 positionLeft = _props.positionLeft, 76356 arrowOffsetTop = _props.arrowOffsetTop, 76357 arrowOffsetLeft = _props.arrowOffsetLeft, 76358 title = _props.title, 76359 className = _props.className, 76360 style = _props.style, 76361 children = _props.children, 76362 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['placement', 'positionTop', 'positionLeft', 'arrowOffsetTop', 'arrowOffsetLeft', 'title', 'className', 'style', 'children']); 76363 76364 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 76365 bsProps = _splitBsProps[0], 76366 elementProps = _splitBsProps[1]; 76367 76368 var classes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[placement] = true, _extends2)); 76369 76370 var outerStyle = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({ 76371 display: 'block', 76372 top: positionTop, 76373 left: positionLeft 76374 }, style); 76375 76376 var arrowStyle = { 76377 top: arrowOffsetTop, 76378 left: arrowOffsetLeft 76379 }; 76380 76381 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 76382 'div', 76383 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 76384 role: 'tooltip', 76385 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes), 76386 style: outerStyle 76387 }), 76388 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('div', { className: 'arrow', style: arrowStyle }), 76389 title && __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 76390 'h3', 76391 { className: Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(bsProps, 'title') }, 76392 title 76393 ), 76394 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 76395 'div', 76396 { className: Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(bsProps, 'content') }, 76397 children 76398 ) 76399 ); 76400 }; 76401 76402 return Popover; 76403}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 76404
76405Popover.propTypes = propTypes; 76406Popover.defaultProps = defaultProps; 76407 76408/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('popover', Popover)); 76409 76410/***/ }), 76411/* 762 */ 76412/***/ (function(module, __webpack_exports__, __webpack_require__) { 76413 76414"use strict"; 76415/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values__ = __webpack_require__(62); 76416/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values__); 76417/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(6); 76418/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__); 76419/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 76420/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties__); 76421/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 76422/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__); 76423/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 76424/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__); 76425/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(5); 76426/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__); 76427/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames__ = __webpack_require__(8); 76428/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_classnames__); 76429/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react__ = __webpack_require__(0); 76430/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react__); 76431/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types__ = __webpack_require__(2); 76432/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types__); 76433/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 76434/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_StyleConfig__ = __webpack_require__(20); 76435/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__utils_ValidComponentChildren__ = __webpack_require__(22); 76436 76437 76438 76439 76440 76441 76442 76443 76444 76445 76446 76447 76448 76449 76450var ROUND_PRECISION = 1000; 76451 76452/** 76453 * Validate that children, if any, are instances of `<ProgressBar>`. 76454 */ 76455function onlyProgressBar(props, propName, componentName) { 76456 var children = props[propName]; 76457 if (!children) { 76458 return null; 76459 } 76460 76461 var error = null; 76462 76463 __WEBPACK_IMPORTED_MODULE_7_react___default.a.Children.forEach(children, function (child) { 76464 if (error) { 76465 return; 76466 } 76467 76468 if (child.type === ProgressBar) { 76469 // eslint-disable-line no-use-before-define 76470 return; 76471 } 76472 76473 var childIdentifier = __WEBPACK_IMPORTED_MODULE_7_react___default.a.isValidElement(child) ? child.type.displayName || child.type.name || child.type : child; 76474 error = new Error('Children of ' + componentName + ' can contain only ProgressBar ' + ('components. Found ' + childIdentifier + '.')); 76475 }); 76476 76477 return error; 76478} 76479 76480var propTypes = { 76481 min: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number, 76482 now: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number, 76483 max: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number, 76484 label: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.node, 76485 srOnly: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, 76486 striped: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, 76487 active: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, 76488 children: onlyProgressBar, 76489 76490 /** 76491 * @private 76492 */ 76493 isChild: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool 76494}; 76495 76496var defaultProps = { 76497 min: 0, 76498 max: 100, 76499 active: false,
76500 isChild: false, 76501 srOnly: false, 76502 striped: false 76503}; 76504 76505function getPercentage(now, min, max) { 76506 var percentage = (now - min) / (max - min) * 100; 76507 return Math.round(percentage * ROUND_PRECISION) / ROUND_PRECISION; 76508} 76509 76510var ProgressBar = function (_React$Component) { 76511 __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(ProgressBar, _React$Component); 76512 76513 function ProgressBar() { 76514 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck___default()(this, ProgressBar); 76515 76516 return __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 76517 } 76518 76519 ProgressBar.prototype.renderProgressBar = function renderProgressBar(_ref) { 76520 var _extends2; 76521 76522 var min = _ref.min, 76523 now = _ref.now, 76524 max = _ref.max, 76525 label = _ref.label, 76526 srOnly = _ref.srOnly, 76527 striped = _ref.striped, 76528 active = _ref.active, 76529 className = _ref.className, 76530 style = _ref.style, 76531 props = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties___default()(_ref, ['min', 'now', 'max', 'label', 'srOnly', 'striped', 'active', 'className', 'style']); 76532 76533 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 76534 bsProps = _splitBsProps[0], 76535 elementProps = _splitBsProps[1]; 76536 76537 var classes = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["getClassSet"])(bsProps), (_extends2 = { 76538 active: active 76539 }, _extends2[Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(bsProps, 'striped')] = active || striped, _extends2)); 76540 76541 return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement( 76542 'div', 76543 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, elementProps, { 76544 role: 'progressbar', 76545 className: __WEBPACK_IMPORTED_MODULE_6_classnames___default()(className, classes), 76546 style: __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({ width: getPercentage(now, min, max) + '%' }, style), 76547 'aria-valuenow': now, 76548 'aria-valuemin': min, 76549 'aria-valuemax': max 76550 }), 76551 srOnly ? __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement( 76552 'span', 76553 { className: 'sr-only' }, 76554 label 76555 ) : label 76556 ); 76557 }; 76558 76559 ProgressBar.prototype.render = function render() { 76560 var _props = this.props, 76561 isChild = _props.isChild, 76562 props = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['isChild']); 76563 76564 if (isChild) { 76565 return this.renderProgressBar(props); 76566 } 76567 76568 var min = props.min, 76569 now = props.now, 76570 max = props.max, 76571 label = props.label, 76572 srOnly = props.srOnly, 76573 striped = props.striped, 76574 active = props.active, 76575 bsClass = props.bsClass, 76576 bsStyle = props.bsStyle, 76577 className = props.className, 76578 children = props.children, 76579 wrapperProps = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_objectWithoutProperties___default()(props, ['min', 'now', 'max', 'label', 'srOnly', 'striped', 'active', 'bsClass', 'bsStyle', 'className', 'children']); 76580 76581 return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement( 76582 'div', 76583 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, wrapperProps, { 76584 className: __WEBPACK_IMPORTED_MODULE_6_classnames___default()(className, 'progress') 76585 }), 76586 children ? __WEBPACK_IMPORTED_MODULE_11__utils_ValidComponentChildren__["a" /* default */].map(children, function (child) { 76587 return Object(__WEBPACK_IMPORTED_MODULE_7_react__["cloneElement"])(child, { isChild: true }); 76588 }) : this.renderProgressBar({ 76589 min: min, now: now, max: max, label: label, srOnly: srOnly, striped: striped, active: active, bsClass: bsClass, bsStyle: bsStyle 76590 }) 76591 ); 76592 }; 76593 76594 return ProgressBar; 76595}(__WEBPACK_IMPORTED_MODULE_7_react___default.a.Component); 76596
76597ProgressBar.propTypes = propTypes; 76598ProgressBar.defaultProps = defaultProps; 76599 76600/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('progress-bar', Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsStyles"])(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values___default()(__WEBPACK_IMPORTED_MODULE_10__utils_StyleConfig__["d" /* State */]), ProgressBar))); 76601 76602/***/ }), 76603/* 763 */ 76604/***/ (function(module, __webpack_exports__, __webpack_require__) { 76605 76606"use strict"; 76607/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 76608/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 76609/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 76610/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 76611/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 76612/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 76613/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 76614/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 76615/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 76616/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 76617/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 76618/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 76619/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 76620/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 76621/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 76622/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 76623/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_warning__ = __webpack_require__(19); 76624/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_warning__); 76625/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 76626 76627 76628 76629 76630 76631/* eslint-disable jsx-a11y/label-has-for */ 76632 76633 76634 76635 76636 76637 76638 76639 76640var propTypes = { 76641 inline: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 76642 disabled: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 76643 title: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 76644 /** 76645 * Only valid if `inline` is not set. 76646 */ 76647 validationState: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOf(['success', 'warning', 'error', null]), 76648 /** 76649 * Attaches a ref to the `<input>` element. Only functions can be used here. 76650 * 76651 * ```js 76652 * <Radio inputRef={ref => { this.input = ref; }} /> 76653 * ``` 76654 */ 76655 inputRef: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func 76656}; 76657 76658var defaultProps = { 76659 inline: false, 76660 disabled: false, 76661 title: '' 76662}; 76663 76664var Radio = function (_React$Component) { 76665 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Radio, _React$Component); 76666 76667 function Radio() { 76668 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Radio); 76669 76670 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 76671 } 76672 76673 Radio.prototype.render = function render() { 76674 var _props = this.props, 76675 inline = _props.inline, 76676 disabled = _props.disabled, 76677 validationState = _props.validationState, 76678 inputRef = _props.inputRef, 76679 className = _props.className, 76680 style = _props.style, 76681 title = _props.title, 76682 children = _props.children, 76683 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['inline', 'disabled', 'validationState', 'inputRef', 'className', 'style', 'title', 'children']); 76684 76685 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 76686 bsProps = _splitBsProps[0], 76687 elementProps = _splitBsProps[1]; 76688 76689 var input = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('input', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 76690 ref: inputRef, 76691 type: 'radio', 76692 disabled: disabled 76693 })); 76694 76695 if (inline) { 76696 var _classes2; 76697 76698 var _classes = (_classes2 = {}, _classes2[Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(bsProps, 'inline')] = true, _classes2.disabled = disabled, _classes2); 76699 76700 // Use a warning here instead of in propTypes to get better-looking 76701 // generated documentation. 76702 true ? __WEBPACK_IMPORTED_MODULE_8_warning___default()(!validationState, '`validationState` is ignored on `<Radio inline>`. To display ' + 'validation state on an inline radio, set `val
76702idationState` on a ' + 'parent `<FormGroup>` or other element instead.') : void 0; 76703 76704 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 76705 'label', 76706 { className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, _classes), style: style, title: title }, 76707 input, 76708 children 76709 ); 76710 } 76711 76712 var classes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["getClassSet"])(bsProps), { 76713 disabled: disabled 76714 }); 76715 if (validationState) { 76716 classes['has-' + validationState] = true; 76717 } 76718 76719 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 76720 'div', 76721 { className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes), style: style }, 76722 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 76723 'label', 76724 { title: title }, 76725 input, 76726 children 76727 ) 76728 ); 76729 }; 76730 76731 return Radio; 76732}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 76733 76734Radio.propTypes = propTypes; 76735Radio.defaultProps = defaultProps; 76736 76737/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('radio', Radio)); 76738 76739/***/ }), 76740/* 764 */ 76741/***/ (function(module, __webpack_exports__, __webpack_require__) { 76742 76743"use strict"; 76744/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 76745/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 76746/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 76747/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 76748/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 76749/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 76750/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 76751/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 76752/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 76753/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 76754/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 76755/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 76756/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 76757/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 76758/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 76759/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 76760/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_warning__ = __webpack_require__(19); 76761/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_warning__); 76762/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 76763 76764 76765 76766 76767 76768 76769 76770 76771 76772 76773 76774 76775// TODO: This should probably take a single `aspectRatio` prop. 76776 76777var propTypes = { 76778 /** 76779 * This component requires a single child element 76780 */ 76781 children: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.element.isRequired, 76782 /** 76783 * 16by9 aspect ratio 76784 */ 76785 a16by9: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 76786 /** 76787 * 4by3 aspect ratio 76788 */ 76789 a4by3: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool 76790}; 76791 76792var defaultProps = { 76793 a16by9: false, 76794 a4by3: false 76795}; 76796 76797var ResponsiveEmbed = function (_React$Component) { 76798 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(ResponsiveEmbed, _React$Component); 76799 76800 function ResponsiveEmbed() { 76801 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, ResponsiveEmbed); 76802 76803 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 76804 } 76805 76806 ResponsiveEmbed.prototype.render = function render() { 76807 var _extends2; 76808 76809 var _props = this.props, 76810 a16by9 = _props.a16by9, 76811 a4by3 = _props.a4by3, 76812 className = _props.className, 76813 children = _props.children, 76814 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['a16by9', 'a4by3', 'className', 'children']); 76815 76816 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 76817 bsProps = _splitBsProps[0], 76818 elementProps = _splitBsProps[1]; 76819 76820 true ? __WEBPACK_IMPORTED_MODULE_8_warning___default()(a16by9 || a4by3, 'Either `a16by9` or `a4by3` must be set.') : void 0; 76821 true ? __WEBPACK_IMPORTED_MODULE_8_warning___default()(!(a16by9 && a4by3), 'Only one of `a16by9` or `a4by3` can be set.') : void 0; 76822 76823 var classes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(bsProps, '16by9')] = a16by9, _extends2[Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(bsProps, '4by3')] = a4by3, _extends2)); 76824 76825 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 76826 'div', 76827 { className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(classes) }, 76828 Object(__WEBPACK_IMPORTED_MODULE_6_react__["cloneElement"])(children, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 76829 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(bsProps, 'item')) 76830 })) 76831 ); 76832 }; 76833 76834 return ResponsiveEmbed; 76835}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 76836
76837ResponsiveEmbed.propTypes = propTypes; 76838ResponsiveEmbed.defaultProps = defaultProps; 76839 76840/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('embed-responsive', ResponsiveEmbed)); 76841 76842/***/ }), 76843/* 765 */ 76844/***/ (function(module, __webpack_exports__, __webpack_require__) { 76845 76846"use strict"; 76847/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 76848/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 76849/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 76850/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 76851/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 76852/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 76853/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 76854/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 76855/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 76856/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 76857/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 76858/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 76859/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 76860/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 76861/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__ = __webpack_require__(13); 76862/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__); 76863/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 76864 76865 76866 76867 76868 76869 76870 76871 76872 76873 76874 76875var propTypes = { 76876 componentClass: __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default.a 76877}; 76878 76879var defaultProps = { 76880 componentClass: 'div' 76881}; 76882 76883var Row = function (_React$Component) { 76884 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Row, _React$Component); 76885 76886 function Row() { 76887 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Row); 76888 76889 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 76890 } 76891 76892 Row.prototype.render = function render() { 76893 var _props = this.props, 76894 Component = _props.componentClass, 76895 className = _props.className, 76896 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['componentClass', 'className']); 76897 76898 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["splitBsProps"])(props), 76899 bsProps = _splitBsProps[0], 76900 elementProps = _splitBsProps[1]; 76901 76902 var classes = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["getClassSet"])(bsProps); 76903 76904 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 76905 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 76906 })); 76907 }; 76908 76909 return Row; 76910}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 76911
76912Row.propTypes = propTypes; 76913Row.defaultProps = defaultProps; 76914 76915/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsClass"])('row', Row)); 76916 76917/***/ }), 76918/* 766 */ 76919/***/ (function(module, __webpack_exports__, __webpack_require__) { 76920 76921"use strict"; 76922/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 76923/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__); 76924/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 76925/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); 76926/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 76927/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); 76928/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(5); 76929/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); 76930/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__ = __webpack_require__(6); 76931/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends__); 76932/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0); 76933/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__); 76934/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(2); 76935/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__); 76936/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Button__ = __webpack_require__(74); 76937/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Dropdown__ = __webpack_require__(97); 76938/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__SplitToggle__ = __webpack_require__(767); 76939/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_splitComponentProps__ = __webpack_require__(99); 76940 76941 76942 76943 76944 76945 76946 76947 76948 76949 76950 76951 76952 76953var propTypes = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, __WEBPACK_IMPORTED_MODULE_8__Dropdown__["a" /* default */].propTypes, { 76954 76955 // Toggle props. 76956 bsStyle: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 76957 bsSize: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 76958 href: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 76959 onClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 76960 /** 76961 * The content of the split button. 76962 */ 76963 title: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node.isRequired, 76964 /** 76965 * Accessible label for the toggle; the value of `title` if not specified. 76966 */ 76967 toggleLabel: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 76968 76969 // Override generated docs from <Dropdown>. 76970 /** 76971 * @private 76972 */ 76973 children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node 76974}); 76975 76976var SplitButton = function (_React$Component) { 76977 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(SplitButton, _React$Component); 76978 76979 function SplitButton() { 76980 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, SplitButton); 76981 76982 return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 76983 } 76984 76985 SplitButton.prototype.render = function render() { 76986 var _props = this.props, 76987 bsSize = _props.bsSize, 76988 bsStyle = _props.bsStyle, 76989 title = _props.title, 76990 toggleLabel = _props.toggleLabel, 76991 children = _props.children, 76992 props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['bsSize', 'bsStyle', 'title', 'toggleLabel', 'children']); 76993 76994 var _splitComponentProps = Object(__WEBPACK_IMPORTED_MODULE_10__utils_splitComponentProps__["a" /* default */])(props, __WEBPACK_IMPORTED_MODULE_8__Dropdown__["a" /* default */].ControlledComponent), 76995 dropdownProps = _splitComponentProps[0], 76996 buttonProps = _splitComponentProps[1]; 76997 76998 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( 76999 __WEBPACK_IMPORTED_MODULE_8__Dropdown__["a" /* default */], 77000 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, dropdownProps, { 77001 bsSize: bsSize, 77002 bsStyle: bsStyle 77003 }), 77004 __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( 77005 __WEBPACK_IMPORTED_MODULE_7__Button__["a" /* default */], 77006 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_extends___default()({}, buttonProps, { 77007 disabled: props.disabled, 77008 bsSize: bsSize, 77009 bsStyle: bsStyle 77010 }), 77011 title 77012 ), 77013 __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__SplitToggle__["a" /* default */], { 77014 'aria-label': toggleLabel || title, 77015 bsSize: bsSize, 77016 bsStyle: bsStyle 77017 }), 77018 __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( 77019 __WEBPACK_IMPORTED_MODULE_8__Dropdown__["a" /* default */].Menu, 77020 null, 77021 children 77022 ) 77023 ); 77024 }; 77025 77026 return SplitButton; 77027}(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component); 77028
77029SplitButton.propTypes = propTypes; 77030 77031SplitButton.Toggle = __WEBPACK_IMPORTED_MODULE_9__SplitToggle__["a" /* default */]; 77032 77033/* harmony default export */ __webpack_exports__["a"] = (SplitButton); 77034 77035/***/ }), 77036/* 767 */ 77037/***/ (function(module, __webpack_exports__, __webpack_require__) { 77038 77039"use strict"; 77040/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 77041/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 77042/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 77043/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__); 77044/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 77045/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); 77046/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(5); 77047/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); 77048/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0); 77049/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__); 77050/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__DropdownToggle__ = __webpack_require__(383); 77051 77052 77053 77054 77055 77056 77057 77058 77059var SplitToggle = function (_React$Component) { 77060 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(SplitToggle, _React$Component); 77061 77062 function SplitToggle() { 77063 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, SplitToggle); 77064 77065 return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 77066 } 77067 77068 SplitToggle.prototype.render = function render() { 77069 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__DropdownToggle__["a" /* default */], __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, this.props, { 77070 useAnchor: false, 77071 noCaret: false 77072 })); 77073 }; 77074 77075 return SplitToggle; 77076}(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component); 77077 77078SplitToggle.defaultProps = __WEBPACK_IMPORTED_MODULE_5__DropdownToggle__["a" /* default */].defaultProps; 77079 77080/* harmony default export */ __webpack_exports__["a"] = (SplitToggle); 77081 77082/***/ }), 77083/* 768 */ 77084/***/ (function(module, __webpack_exports__, __webpack_require__) { 77085 77086"use strict"; 77087/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 77088/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__); 77089/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 77090/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn__); 77091/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__ = __webpack_require__(5); 77092/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits__); 77093/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends__ = __webpack_require__(6); 77094/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends__); 77095/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0); 77096/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__); 77097/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(2); 77098/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__); 77099/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__TabContainer__ = __webpack_require__(158); 77100/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__TabContent__ = __webpack_require__(159); 77101/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__TabPane__ = __webpack_require__(402); 77102 77103 77104 77105 77106 77107 77108 77109 77110 77111 77112 77113var propTypes = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, __WEBPACK_IMPORTED_MODULE_8__TabPane__["a" /* default */].propTypes, { 77114 77115 disabled: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, 77116 77117 title: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.node, 77118 77119 /** 77120 * tabClassName is used as className for the associated NavItem 77121 */ 77122 tabClassName: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string 77123}); 77124 77125var Tab = function (_React$Component) { 77126 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_inherits___default()(Tab, _React$Component); 77127 77128 function Tab() { 77129 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, Tab); 77130 77131 return __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 77132 } 77133 77134 Tab.prototype.render = function render() { 77135 var props = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_extends___default()({}, this.props); 77136 77137 // These props are for the parent `<Tabs>` rather than the `<TabPane>`. 77138 delete props.title; 77139 delete props.disabled; 77140 delete props.tabClassName; 77141 77142 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__TabPane__["a" /* default */], props); 77143 }; 77144 77145 return Tab; 77146}(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component); 77147
77148Tab.propTypes = propTypes; 77149 77150Tab.Container = __WEBPACK_IMPORTED_MODULE_6__TabContainer__["a" /* default */]; 77151Tab.Content = __WEBPACK_IMPORTED_MODULE_7__TabContent__["a" /* default */]; 77152Tab.Pane = __WEBPACK_IMPORTED_MODULE_8__TabPane__["a" /* default */]; 77153 77154/* harmony default export */ __webpack_exports__["a"] = (Tab); 77155 77156/***/ }), 77157/* 769 */ 77158/***/ (function(module, __webpack_exports__, __webpack_require__) { 77159 77160"use strict"; 77161/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 77162/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 77163/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 77164/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 77165/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 77166/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 77167/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 77168/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 77169/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 77170/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 77171/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 77172/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 77173/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 77174/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 77175/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 77176/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 77177/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__ = __webpack_require__(9); 77178 77179 77180 77181 77182 77183 77184 77185 77186 77187 77188 77189var propTypes = { 77190 striped: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 77191 bordered: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 77192 condensed: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 77193 hover: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool, 77194 responsive: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool 77195}; 77196 77197var defaultProps = { 77198 bordered: false, 77199 condensed: false, 77200 hover: false, 77201 responsive: false, 77202 striped: false 77203}; 77204 77205var Table = function (_React$Component) { 77206 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Table, _React$Component); 77207 77208 function Table() { 77209 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Table); 77210 77211 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 77212 } 77213 77214 Table.prototype.render = function render() { 77215 var _extends2; 77216 77217 var _props = this.props, 77218 striped = _props.striped, 77219 bordered = _props.bordered, 77220 condensed = _props.condensed, 77221 hover = _props.hover, 77222 responsive = _props.responsive, 77223 className = _props.className, 77224 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['striped', 'bordered', 'condensed', 'hover', 'responsive', 'className']); 77225 77226 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["splitBsProps"])(props), 77227 bsProps = _splitBsProps[0], 77228 elementProps = _splitBsProps[1]; 77229 77230 var classes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["prefix"])(bsProps, 'striped')] = striped, _extends2[Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["prefix"])(bsProps, 'bordered')] = bordered, _extends2[Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["prefix"])(bsProps, 'condensed')] = condensed, _extends2[Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["prefix"])(bsProps, 'hover')] = hover, _extends2)); 77231 77232 var table = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('table', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 77233 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 77234 })); 77235 77236 if (responsive) { 77237 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 77238 'div', 77239 { className: Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["prefix"])(bsProps, 'responsive') }, 77240 table 77241 ); 77242 } 77243 77244 return table; 77245 }; 77246 77247 return Table; 77248}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 77249
77250Table.propTypes = propTypes; 77251Table.defaultProps = defaultProps; 77252 77253/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_8__utils_bootstrapUtils__["bsClass"])('table', Table)); 77254 77255/***/ }), 77256/* 770 */ 77257/***/ (function(module, __webpack_exports__, __webpack_require__) { 77258 77259"use strict"; 77260/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 77261/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 77262/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 77263/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 77264/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 77265/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 77266/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 77267/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 77268/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 77269/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 77270/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0); 77271/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__); 77272/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(2); 77273/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__); 77274/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_isRequiredForA11y__ = __webpack_require__(98); 77275/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_isRequiredForA11y___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_isRequiredForA11y__); 77276/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_uncontrollable__ = __webpack_require__(75); 77277/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_uncontrollable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_uncontrollable__); 77278/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Nav__ = __webpack_require__(394); 77279/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__NavItem__ = __webpack_require__(396); 77280/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__TabContainer__ = __webpack_require__(158); 77281/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__TabContent__ = __webpack_require__(159); 77282/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__utils_bootstrapUtils__ = __webpack_require__(9); 77283/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__utils_ValidComponentChildren__ = __webpack_require__(22); 77284 77285 77286 77287 77288 77289 77290 77291 77292 77293 77294 77295 77296 77297 77298 77299 77300 77301var TabContainer = __WEBPACK_IMPORTED_MODULE_11__TabContainer__["a" /* default */].ControlledComponent; 77302 77303var propTypes = { 77304 /** 77305 * Mark the Tab with a matching `eventKey` as active. 77306 * 77307 * @controllable onSelect 77308 */ 77309 activeKey: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any, 77310 77311 /** 77312 * Navigation style 77313 */ 77314 bsStyle: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf(['tabs', 'pills']), 77315 77316 animation: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 77317 77318 id: __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_isRequiredForA11y___default()(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number])), 77319 77320 /**
77321 * Callback fired when a Tab is selected. 77322 * 77323 * ```js 77324 * function ( 77325 * Any eventKey, 77326 * SyntheticEvent event? 77327 * ) 77328 * ``` 77329 * 77330 * @controllable activeKey 77331 */ 77332 onSelect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 77333 77334 /** 77335 * Wait until the first "enter" transition to mount tabs (add them to the DOM) 77336 */ 77337 mountOnEnter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 77338 77339 /** 77340 * Unmount tabs (remove it from the DOM) when it is no longer visible 77341 */ 77342 unmountOnExit: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool 77343}; 77344 77345var defaultProps = { 77346 bsStyle: 'tabs', 77347 animation: true, 77348 mountOnEnter: false, 77349 unmountOnExit: false 77350}; 77351 77352function getDefaultActiveKey(children) { 77353 var defaultActiveKey = void 0; 77354 __WEBPACK_IMPORTED_MODULE_14__utils_ValidComponentChildren__["a" /* default */].forEach(children, function (child) { 77355 if (defaultActiveKey == null) { 77356 defaultActiveKey = child.props.eventKey; 77357 } 77358 }); 77359 77360 return defaultActiveKey; 77361} 77362 77363var Tabs = function (_React$Component) { 77364 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Tabs, _React$Component); 77365 77366 function Tabs() { 77367 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Tabs); 77368 77369 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 77370 } 77371 77372 Tabs.prototype.renderTab = function renderTab(child) { 77373 var _child$props = child.props, 77374 title = _child$props.title, 77375 eventKey = _child$props.eventKey, 77376 disabled = _child$props.disabled, 77377 tabClassName = _child$props.tabClassName; 77378 77379 if (title == null) { 77380 return null; 77381 } 77382 77383 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( 77384 __WEBPACK_IMPORTED_MODULE_10__NavItem__["a" /* default */], 77385 { 77386 eventKey: eventKey, 77387 disabled: disabled, 77388 className: tabClassName 77389 }, 77390 title 77391 ); 77392 }; 77393 77394 Tabs.prototype.render = function render() { 77395 var _props = this.props, 77396 id = _props.id, 77397 onSelect = _props.onSelect, 77398 animation = _props.animation, 77399 mountOnEnter = _props.mountOnEnter, 77400 unmountOnExit = _props.unmountOnExit, 77401 bsClass = _props.bsClass, 77402 className = _props.className, 77403 style = _props.style, 77404 children = _props.children, 77405 _props$activeKey = _props.activeKey, 77406 activeKey = _props$activeKey === undefined ? getDefaultActiveKey(children) : _props$activeKey, 77407 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['id', 'onSelect', 'animation', 'mountOnEnter', 'unmountOnExit', 'bsClass', 'className', 'style', 'children', 'activeKey']); 77408 77409 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( 77410 TabContainer, 77411 { 77412 id: id, 77413 activeKey: activeKey, 77414 onSelect: onSelect, 77415 className: className, 77416 style: style 77417 }, 77418 __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( 77419 'div', 77420 null, 77421 __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( 77422 __WEBPACK_IMPORTED_MODULE_9__Nav__["a" /* default */], 77423 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, { 77424 role: 'tablist' 77425 }), 77426 __WEBPACK_IMPORTED_MODULE_14__utils_ValidComponentChildren__["a" /* default */].map(children, this.renderTab) 77427 ), 77428 __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( 77429 __WEBPACK_IMPORTED_MODULE_12__TabContent__["a" /* default */], 77430 { 77431 bsClass: bsClass, 77432 animation: animation, 77433 mountOnEnter: mountOnEnter, 77434 unmountOnExit: unmountOnExit 77435 }, 77436 children 77437 ) 77438 ) 77439 ); 77440 }; 77441 77442 return Tabs; 77443}(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component); 77444 77445Tabs.propTypes = propTypes; 77446Tabs.defaultProps = defaultProps; 77447 77448Object(__WEBPACK_IMPORTED_MODULE_13__utils_bootstrapUtils__["bsClass"])('tab', Tabs); 77449 77450/* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_8_uncontrollable___default()(Tabs, { activeKey: 'onSelect' })); 77451 77452/***/ }), 77453/* 771 */ 77454/***/ (function(module, __webpack_exports__, __webpack_require__) { 77455 77456"use strict"; 77457/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 77458/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 77459/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 77460/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 77461/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 77462/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 77463/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 77464/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 77465/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 77466/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 77467/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 77468/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 77469/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 77470/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 77471/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 77472/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 77473/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__SafeAnchor__ = __webpack_require__(34); 77474/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 77475 77476 77477 77478 77479 77480/* eslint-disable jsx-a11y/alt-text */ 77481 77482 77483 77484 77485 77486 77487 77488 77489var propTypes = { 77490 /** 77491 * src property that is passed down to the image inside this component 77492 */ 77493 src: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 77494 /** 77495 * alt property that is passed down to the image inside this component 77496 */ 77497 alt: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 77498 /** 77499 * href property that is passed down to the image inside this component 77500 */ 77501 href: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, 77502 /** 77503 * onError callback that is passed down to the image inside this component 77504 */ 77505 onError: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func, 77506 /** 77507 * onLoad callback that is passed down to the image inside this component 77508 */ 77509 onLoad: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func 77510}; 77511 77512var Thumbnail = function (_React$Component) { 77513 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Thumbnail, _React$Component); 77514 77515 function Thumbnail() { 77516 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Thumbnail); 77517 77518 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 77519 } 77520
77521 Thumbnail.prototype.render = function render() { 77522 var _props = this.props, 77523 src = _props.src, 77524 alt = _props.alt, 77525 onError = _props.onError, 77526 onLoad = _props.onLoad, 77527 className = _props.className, 77528 children = _props.children, 77529 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['src', 'alt', 'onError', 'onLoad', 'className', 'children']); 77530 77531 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 77532 bsProps = _splitBsProps[0], 77533 elementProps = _splitBsProps[1]; 77534 77535 var Component = elementProps.href ? __WEBPACK_IMPORTED_MODULE_8__SafeAnchor__["a" /* default */] : 'div'; 77536 var classes = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["getClassSet"])(bsProps); 77537 77538 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 77539 Component, 77540 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 77541 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 77542 }), 77543 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('img', { src: src, alt: alt, onError: onError, onLoad: onLoad }), 77544 children && __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 77545 'div', 77546 { className: 'caption' }, 77547 children 77548 ) 77549 ); 77550 }; 77551 77552 return Thumbnail; 77553}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 77554 77555Thumbnail.propTypes = propTypes; 77556 77557/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('thumbnail', Thumbnail)); 77558 77559/***/ }), 77560/* 772 */ 77561/***/ (function(module, __webpack_exports__, __webpack_require__) { 77562 77563"use strict"; 77564/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 77565/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 77566/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 77567/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 77568/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 77569/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 77570/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 77571/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 77572/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 77573/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 77574/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(2); 77575/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__); 77576/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 77577/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 77578/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_invariant__ = __webpack_require__(21); 77579/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_invariant__); 77580/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_uncontrollable__ = __webpack_require__(75); 77581/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_uncontrollable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_uncontrollable__); 77582/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_createChainedFunction__ = __webpack_require__(16); 77583/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_ValidComponentChildren__ = __webpack_require__(22); 77584/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__ButtonGroup__ = __webpack_require__(153); 77585/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__ToggleButton__ = __webpack_require__(403); 77586 77587 77588 77589 77590 77591 77592 77593 77594 77595 77596 77597 77598 77599 77600 77601var propTypes = { 77602 /** 77603 * An HTML `<input>` name for each child button. 77604 * 77605 * __Required if `type` is set to `'radio'`__ 77606 */ 77607 name: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, 77608 77609 /** 77610 * The value, or array of values, of the active (pressed) buttons 77611 * 77612 * @controllable onChange 77613 */ 77614 value: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.any, 77615 77616 /**
77617 * Callback fired when a button is pressed, depending on whether the `type` 77618 * is `'radio'` or `'checkbox'`, `onChange` will be called with the value or 77619 * array of active values 77620 * 77621 * @controllable values 77622 */ 77623 onChange: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, 77624 77625 /** 77626 * The input `type` of the rendered buttons, determines the toggle behavior 77627 * of the buttons 77628 */ 77629 type: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOf(['checkbox', 'radio']).isRequired 77630}; 77631 77632var defaultProps = { 77633 type: 'radio' 77634}; 77635 77636var ToggleButtonGroup = function (_React$Component) { 77637 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(ToggleButtonGroup, _React$Component); 77638 77639 function ToggleButtonGroup() { 77640 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, ToggleButtonGroup); 77641 77642 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 77643 } 77644 77645 ToggleButtonGroup.prototype.getValues = function getValues() { 77646 var value = this.props.value; 77647 77648 return value == null ? [] : [].concat(value); 77649 }; 77650 77651 ToggleButtonGroup.prototype.handleToggle = function handleToggle(value) { 77652 var _props = this.props, 77653 type = _props.type, 77654 onChange = _props.onChange; 77655 77656 var values = this.getValues(); 77657 var isActive = values.indexOf(value) !== -1; 77658 77659 if (type === 'radio') { 77660 if (!isActive) { 77661 onChange(value); 77662 } 77663 return; 77664 } 77665 77666 if (isActive) { 77667 onChange(values.filter(function (n) { 77668 return n !== value; 77669 })); 77670 } else { 77671 onChange([].concat(values, [value])); 77672 } 77673 }; 77674 77675 ToggleButtonGroup.prototype.render = function render() { 77676 var _this2 = this; 77677 77678 var _props2 = this.props, 77679 children = _props2.children, 77680 type = _props2.type, 77681 name = _props2.name, 77682 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props2, ['children', 'type', 'name']); 77683 77684 var values = this.getValues(); 77685 77686 !(type !== 'radio' || !!name) ? true ? __WEBPACK_IMPORTED_MODULE_7_invariant___default()(false, 'A `name` is required to group the toggle buttons when the `type` ' + 'is set to "radio"') : invariant(false) : void 0; 77687 77688 delete props.onChange; 77689 delete props.value; 77690 77691 // the data attribute is required b/c twbs css uses it in the selector 77692 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 77693 __WEBPACK_IMPORTED_MODULE_11__ButtonGroup__["a" /* default */], 77694 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, { 'data-toggle': 'buttons' }), 77695 __WEBPACK_IMPORTED_MODULE_10__utils_ValidComponentChildren__["a" /* default */].map(children, function (child) { 77696 var _child$props = child.props, 77697 value = _child$props.value, 77698 onChange = _child$props.onChange; 77699 77700 var handler = function handler() { 77701 return _this2.handleToggle(value); 77702 }; 77703 77704 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(child, { 77705 type: type, 77706 name: child.name || name, 77707 checked: values.indexOf(value) !== -1, 77708 onChange: Object(__WEBPACK_IMPORTED_MODULE_9__utils_createChainedFunction__["a" /* default */])(onChange, handler) 77709 }); 77710 }) 77711 ); 77712 }; 77713 77714 return ToggleButtonGroup; 77715}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 77716 77717ToggleButtonGroup.propTypes = propTypes; 77718ToggleButtonGroup.defaultProps = defaultProps; 77719 77720var UncontrolledToggleButtonGroup = __WEBPACK_IMPORTED_MODULE_8_uncontrollable___default()(ToggleButtonGroup, { 77721 value: 'onChange' 77722}); 77723 77724UncontrolledToggleButtonGroup.Button = __WEBPACK_IMPORTED_MODULE_12__ToggleButton__["a" /* default */]; 77725 77726/* harmony default export */ __webpack_exports__["a"] = (UncontrolledToggleButtonGroup); 77727 77728/***/ }), 77729/* 773 */ 77730/***/ (function(module, __webpack_exports__, __webpack_require__) { 77731 77732"use strict"; 77733/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 77734/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 77735/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 77736/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 77737/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 77738/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 77739/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 77740/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 77741/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 77742/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 77743/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 77744/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 77745/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 77746/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 77747/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(2); 77748/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__); 77749/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_isRequiredForA11y__ = __webpack_require__(98); 77750/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_isRequiredForA11y___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_isRequiredForA11y__); 77751/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__ = __webpack_require__(9); 77752 77753 77754 77755 77756 77757 77758 77759 77760 77761 77762 77763 77764var propTypes = { 77765 /** 77766 * An html id attribute, necessary for accessibility 77767 * @type {string|number} 77768 * @required 77769 */ 77770 id: __WEBPACK_IMPORTED_MODULE_8_prop_types_extra_lib_isRequiredForA11y___default()(__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number])), 77771 77772 /** 77773 * Sets the direction the Tooltip is positioned towards. 77774 */ 77775 placement: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOf(['top', 'right', 'bottom', 'left']), 77776 77777 /** 77778 * The "top" position value for the Tooltip. 77779 */ 77780 positionTop: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string]), 77781 /** 77782 * The "left" position value for the Tooltip. 77783 */ 77784 positionLeft: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string]), 77785 77786 /** 77787 * The "top" position value for the Tooltip arrow. 77788 */ 77789 arrowOffsetTop: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string]), 77790 /** 77791 * The "left" position value for the Tooltip arrow. 77792 */ 77793 arrowOffsetLeft: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string]) 77794}; 77795 77796var defaultProps = { 77797 placement: 'right' 77798}; 77799 77800var Tooltip = function (_React$Component) { 77801 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Tooltip, _React$Component); 77802 77803 function Tooltip() { 77804 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Tooltip); 77805 77806 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 77807 } 77808 77809 Tooltip.prototype.render = function render() { 77810 var _extends2; 77811 77812 var _props = this.props, 77813 placement = _props.placement, 77814 positionTop = _props.positionTop, 77815 positionLeft = _props.positionLeft, 77816 arrowOffsetTop = _props.arrowOffsetTop, 77817 arrowOffsetLeft = _props.arrowOffsetLeft, 77818 className = _props.className, 77819 style = _props.style, 77820 children = _props.children, 77821 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['placement', 'positionTop', 'positionLeft', 'arrowOffsetTop', 'arrowOffsetLeft', 'className', 'style', 'children']); 77822 77823 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["splitBsProps"])(props), 77824 bsProps = _splitBsProps[0], 77825 elementProps = _splitBsProps[1]; 77826 77827 var classes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[placement] = true, _extends2)); 77828 77829 var outerStyle = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({ 77830 top: positionTop, 77831 left: positionLeft 77832 }, style); 77833 77834 var arrowStyle = { 77835 top: arrowOffsetTop, 77836 left: arrowOffsetLeft 77837 }; 77838 77839 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 77840 'div', 77841 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 77842 role: 'tooltip', 77843 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes), 77844 style: outerStyle 77845 }), 77846 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('div', { className: Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(bsProps, 'arrow'), style: arrowStyle }), 77847 __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( 77848 'div', 77849 { className: Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["prefix"])(bsProps, 'inner') }, 77850 children 77851 ) 77852 ); 77853 }; 77854 77855 return Tooltip; 77856}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 77857
77858Tooltip.propTypes = propTypes; 77859Tooltip.defaultProps = defaultProps; 77860 77861/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__utils_bootstrapUtils__["bsClass"])('tooltip', Tooltip)); 77862 77863/***/ }), 77864/* 774 */ 77865/***/ (function(module, __webpack_exports__, __webpack_require__) { 77866 77867"use strict"; 77868/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(6); 77869/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__); 77870/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(7); 77871/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__); 77872/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 77873/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); 77874/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); 77875/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); 77876/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(5); 77877/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); 77878/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(8); 77879/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__); 77880/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); 77881/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); 77882/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__ = __webpack_require__(9); 77883/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_StyleConfig__ = __webpack_require__(20); 77884 77885 77886 77887 77888 77889 77890 77891 77892 77893 77894 77895var Well = function (_React$Component) { 77896 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Well, _React$Component); 77897 77898 function Well() { 77899 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Well); 77900 77901 return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments)); 77902 } 77903 77904 Well.prototype.render = function render() { 77905 var _props = this.props, 77906 className = _props.className, 77907 props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['className']); 77908 77909 var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["splitBsProps"])(props), 77910 bsProps = _splitBsProps[0], 77911 elementProps = _splitBsProps[1]; 77912 77913 var classes = Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["getClassSet"])(bsProps); 77914 77915 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('div', __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elementProps, { 77916 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()(className, classes) 77917 })); 77918 }; 77919 77920 return Well; 77921}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); 77922 77923/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["bsClass"])('well', Object(__WEBPACK_IMPORTED_MODULE_7__utils_bootstrapUtils__["bsSizes"])([__WEBPACK_IMPORTED_MODULE_8__utils_StyleConfig__["c" /* Size */].LARGE, __WEBPACK_IMPORTED_MODULE_8__utils_StyleConfig__["c" /* Size */].SMALL], Well))); 77924 77925/***/ }), 77926/* 775 */ 77927/***/ (function(module, __webpack_exports__, __webpack_require__) { 77928 77929"use strict"; 77930Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); 77931/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__bootstrapUtils__ = __webpack_require__(9); 77932/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "bootstrapUtils", function() { return __WEBPACK_IMPORTED_MODULE_0__bootstrapUtils__; }); 77933/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createChainedFunction__ = __webpack_require__(16); 77934/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createChainedFunction", function() { return __WEBPACK_IMPORTED_MODULE_1__createChainedFunction__["a"]; }); 77935/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ValidComponentChildren__ = __webpack_require__(22); 77936/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ValidComponentChildren", function() { return __WEBPACK_IMPORTED_MODULE_2__ValidComponentChildren__["a"]; }); 77937 77938 77939 77940 77941 77942 77943 77944/***/ }), 77945/* 776 */, 77946/* 777 */, 77947/* 778 */ 77948/***/ (function(module, exports, __webpack_require__) { 77949 77950__webpack_require__(0); 77951__webpack_require__(17); 77952__webpack_require__(2); 77953__webpack_require__(192); 77954__webpack_require__(193); 77955__webpack_require__(25); 77956__webpack_require__(194); 77957__webpack_require__(32); 77958__webpack_require__(128); 77959__webpack_require__(217); 77960__webpack_require__(218); 77961__webpack_require__(90); 77962__webpack_require__(8); 77963__webpack_require__(345); 77964__webpack_require__(343); 77965__webpack_require__(1); 77966__webpack_require__(359); 77967__webpack_require__(136); 77968__webpack_require__(352); 77969module.exports = __webpack_require__(779); 77970 77971
77972/***/ }), 77973/* 779 */ 77974/***/ (function(module, exports, __webpack_require__) { 77975 77976"use strict"; 77977 77978 77979Object.defineProperty(exports, "__esModule", { 77980 value: true 77981}); 77982 77983var _notification = __webpack_require__(404); 77984 77985Object.defineProperty(exports, 'Notification', { 77986 enumerable: true, 77987 get: function get() { 77988 return _interopRequireDefault(_notification).default; 77989 } 77990}); 77991 77992var _notificationStack = __webpack_require__(780); 77993 77994Object.defineProperty(exports, 'NotificationStack', { 77995 enumerable: true, 77996 get: function get() { 77997 return _interopRequireDefault(_notificationStack).default; 77998 } 77999}); 78000 78001function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 78002 78003/***/ }), 78004/* 780 */ 78005/***/ (function(module, exports, __webpack_require__) { 78006 78007"use strict"; 78008 78009 78010Object.defineProperty(exports, "__esModule", { 78011 value: true 78012}); 78013 78014var _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; }; /* linting temp disabled while working on updates */ 78015/* eslint-disable */ 78016 78017 78018var _react = __webpack_require__(0); 78019 78020var _react2 = _interopRequireDefault(_react); 78021 78022var _propTypes = __webpack_require__(2); 78023 78024var _propTypes2 = _interopRequireDefault(_propTypes); 78025 78026var _stackedNotification = __webpack_require__(781); 78027 78028var _stackedNotification2 = _interopRequireDefault(_stackedNotification); 78029 78030function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 78031 78032function defaultBarStyleFactory(index, style) { 78033 return _extends({}, style, { bottom: 2 + index * 4 + 'rem' }); 78034} 78035 78036function defaultActionStyleFactory(index, style) { 78037 return _extends({}, style, {}); 78038} 78039 78040/** 78041* The notification list does not have any state, so use a 78042* pure function here. It just needs to return the stacked array 78043* of notification components. 78044*/ 78045var NotificationStack = function NotificationStack(props) { 78046 return _react2.default.createElement( 78047 'div', 78048 { className: 'notification-list' }, 78049 props.notifications.map(function (notification, index) { 78050 var isLast = index === 0 && props.notifications.length === 1; 78051 var dismissNow = isLast || !props.dismissInOrder; 78052 78053 // Handle styles 78054 var barStyle = props.barStyleFactory(index, notification.barStyle, notification); 78055 var actionStyle = props.actionStyleFactory(index, notification.actionStyle, notification); 78056 var activeBarStyle = props.activeBarStyleFactory(index, notification.activeBarStyle, notification); 78057 78058 // Allow onClick from notification stack or individual notifications 78059 var onClick = notification.onClick || props.onClick; 78060 var onDismiss = props.onDismiss; 78061 78062 var dismissAfter = notification.dismissAfter; 78063 78064 78065 if (dismissAfter !== false) { 78066 if (dismissAfter == null) dismissAfter = props.dismissAfter; 78067 if (!dismissNow) dismissAfter += index * 1000; 78068 } 78069 78070 return _react2.default.createElement(_stackedNotification2.default, _extends({}, notification, { 78071 key: notification.key, 78072 isLast: isLast, 78073 action: notification.action || props.action, 78074 dismissAfter: dismissAfter, 78075 onDismiss: onDismiss.bind(undefined, notification), 78076 onClick: onClick.bind(undefined, notification), 78077 activeBarStyle: activeBarStyle, 78078 barStyle: barStyle, 78079 actionStyle: actionStyle 78080 })); 78081 }) 78082 ); 78083}; 78084 78085/* eslint-disable react/no-unused-prop-types, react/forbid-prop-types */ 78086NotificationStack.propTypes = { 78087 activeBarStyleFactory: _propTypes2.default.func, 78088 barStyleFactory: _propTypes2.default.func, 78089 actionStyleFactory: _propTypes2.default.func, 78090 dismissInOrder: _propTypes2.default.bool, 78091 notifications: _propTypes2.default.array.isRequired, 78092 onDismiss: _propTypes2.default.func.isRequired, 78093 onClick: _propTypes2.default.func, 78094 action: _propTypes2.default.string 78095}; 78096 78097NotificationStack.defaultProps = { 78098 activeBarStyleFactory: defaultBarStyleFactory, 78099 barStyleFactory: defaultBarStyleFactory, 78100 actionStyleFactory: defaultActionStyleFactory, 78101 dismissInOrder: true, 78102 dismissAfter: 1000, 78103 onClick: function onClick() {} 78104}; 78105/* eslint-enable no-alert, no-console */ 78106 78107exports.default = NotificationStack; 78108 78109/***/ }), 78110/* 781 */ 78111/***/ (function(module, exports, __webpack_require__) { 78112 78113"use strict"; 78114 78115 78116Object.defineProperty(exports, "__esModule", { 78117 value: true 78118}); 78119 78120var _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; }; 78121 78122var _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; }; }(); 78123 78124var _react = __webpack_require__(0); 78125 78126var _react2 = _interopRequireDefault(_react); 78127 78128var _defaultPropTypes = __webpack_require__(405); 78129 78130var _defaultPropTypes2 = _interopRequireDefault(_defaultPropTypes); 78131 78132var _notification = __webpack_require__(404); 78133 78134var _notification2 = _interopRequireDefault(_notification); 78135 78136function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 78137 78138function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 78139 78140function _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; } 78141 78142function _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, { c
78142onstructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* linting temp disabled while working on updates */ 78143/* eslint-disable */ 78144 78145 78146var StackedNotification = function (_Component) { 78147 _inherits(StackedNotification, _Component); 78148 78149 function StackedNotification(props) { 78150 _classCallCheck(this, StackedNotification); 78151 78152 var _this = _possibleConstructorReturn(this, (StackedNotification.__proto__ || Object.getPrototypeOf(StackedNotification)).call(this, props)); 78153 78154 _this.state = { 78155 isActive: false 78156 }; 78157 78158 _this.handleClick = _this.handleClick.bind(_this); 78159 return _this; 78160 } 78161 78162 _createClass(StackedNotification, [{ 78163 key: 'componentDidMount', 78164 value: function componentDidMount() { 78165 this.activeTimeout = setTimeout(this.setState.bind(this, { 78166 isActive: true 78167 }), 1); 78168 78169 this.dismiss(this.props.dismissAfter); 78170 } 78171 }, { 78172 key: 'componentWillReceiveProps', 78173 value: function componentWillReceiveProps(nextProps) { 78174 if (nextProps.dismissAfter !== this.props.dismissAfter) { 78175 this.dismiss(nextProps.dismissAfter); 78176 } 78177 } 78178 }, { 78179 key: 'componentWillUnmount', 78180 value: function componentWillUnmount() { 78181 clearTimeout(this.activeTimeout); 78182 clearTimeout(this.dismissTimeout); 78183 } 78184 }, { 78185 key: 'dismiss', 78186 value: function dismiss(dismissAfter) { 78187 if (dismissAfter === false) return; 78188 78189 this.dismissTimeout = setTimeout(this.setState.bind(this, { 78190 isActive: false 78191 }), dismissAfter); 78192 } 78193 78194 /* 78195 * @function handleClick 78196 * @description Bind deactivate Notification function to Notification click handler 78197 */ 78198 78199 }, { 78200 key: 'handleClick', 78201 value: function handleClick() { 78202 if (this.props.onClick && typeof this.props.onClick === 'function') { 78203 return this.props.onClick(this.setState.bind(this, { isActive: false })); 78204 } 78205 } 78206 }, { 78207 key: 'render', 78208 value: function render() { 78209 var _this2 = this; 78210 78211 return _react2.default.createElement(_notification2.default, _extends({}, this.props, { 78212 onClick: this.handleClick, 78213 onDismiss: function onDismiss() { 78214 return setTimeout(_this2.props.onDismiss, 300); 78215 }, 78216 isActive: this.state.isActive 78217 })); 78218 } 78219 }]); 78220 78221 return StackedNotification; 78222}(_react.Component); 78223 78224StackedNotification.propTypes = _defaultPropTypes2.default; 78225 78226exports.default = StackedNotification; 78227 78228/***/ }) 78229/******/ ]); 78230//# sourceMappingURL=app.vendor.bundle.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.