From 9693294d79a3b5ac655bfbce7b756dd5c2c79928 Mon Sep 17 00:00:00 2001 From: JP Cen Date: Tue, 6 Aug 2024 02:07:25 -0400 Subject: [PATCH] 0.9.997 --- esbuild.config.mjs | 1 + main.js | 154468 +-------------- manifest.json | 2 +- package-lock.json | 1699 +- package.json | 9 +- src/adapters/mdb/localCache/localCache.ts | 16 +- .../mdb/localCache/localCacheMobile.ts | 13 + src/adapters/mdb/mdbAdapter.ts | 1 - src/adapters/obsidian/fileSystemPathFixer.tsx | 44 + .../obsidian/filesystem/filesystem.ts | 88 +- .../filesystem/indexCurrentFileTree.ts | 10 +- .../obsidian/filesystem/spaceFileOps.tsx | 64 + .../obsidian/filetypes/frontmatter/fm.ts | 4 +- .../obsidian/filetypes/markdownAdapter.ts | 77 +- .../obsidian/replaceMobileMainMenu.tsx | 14 +- src/adapters/obsidian/settings.ts | 75 +- src/adapters/obsidian/types/obsidian.d.ts | 11 +- .../obsidian/ui/editors/FlowEditor.tsx | 17 +- .../markdownView/menus/MakeMenu/MakeMenu.tsx | 27 +- .../menus/inlineStylerView/InlineMenu.tsx | 9 +- .../obsidian/ui/kit/InstallKitModal.tsx | 11 +- src/adapters/obsidian/ui/kit/kits.ts | 18 +- src/adapters/obsidian/ui/modal.tsx | 23 +- .../obsidian/ui/navigator/EverLeafView.tsx | 83 + src/adapters/obsidian/ui/showMainMenu.tsx | 81 +- src/adapters/obsidian/ui/sticker.ts | 2 +- src/adapters/obsidian/ui/ui.tsx | 68 +- src/adapters/obsidian/utils/file.ts | 9 +- src/adapters/obsidian/utils/patches.ts | 18 +- src/core/assets/icons.ts | 7 +- src/core/i18n.ts | 11 +- src/core/middleware/filesystem.ts | 12 +- src/core/middleware/types/persister.ts | 2 + src/core/middleware/ui.ts | 38 +- src/core/react/components/Blink/Blink.tsx | 13 +- .../react/components/Blink/BlinkComponent.tsx | 111 +- .../components/MarkdownEditor/BannerView.tsx | 97 +- .../MarkdownEditor/MarkdownHeaderView.tsx | 24 +- .../react/components/Navigator/EverView.tsx | 106 + .../Waypoint.tsx => Focuses/Focus.tsx} | 80 +- .../FocusSelector.tsx} | 47 +- .../react/components/Navigator/MainList.tsx | 4 +- .../react/components/Navigator/MainMenu.tsx | 61 +- .../SpaceTree/NavigatorFocusEditor.tsx | 36 +- .../Navigator/SpaceTree/SpaceTreeItem.tsx | 8 + .../Navigator/SpaceTree/SpaceTreeView.tsx | 21 +- .../SpaceTree/SpaceTreeVirtualized.tsx | 43 +- .../components/Navigator/SyncWarnings.tsx | 105 + .../SpaceEditor/Actions/ActionEditor.tsx | 1 + .../SpaceEditor/SpaceActionProperty.tsx | 25 +- .../SpaceEditor/SpaceItemProperty.tsx | 87 +- .../SpaceEditor/SpaceListProperty.tsx | 164 +- .../ContextBuilder/ContextListView.tsx | 3 +- .../Contexts/DataTypeView/IconCell.tsx | 11 +- .../Contexts/DataTypeView/ImageCell.tsx | 11 +- .../Contexts/DataTypeView/LinkCell.tsx | 8 +- .../Contexts/DataTypeView/ObjectCell.tsx | 20 +- .../Contexts/DataTypeView/OptionCell.tsx | 63 +- .../Contexts/DataTypeView/SpaceCell.tsx | 16 +- .../Contexts/FilterBar/ContextTitle.tsx | 35 +- .../Contexts/FilterBar/FilterBar.tsx | 224 +- .../Contexts/FilterBar/ListSelector.tsx | 62 +- .../Contexts/FilterBar/SearchBar.tsx | 37 +- .../SpaceEditor/HeaderPropertiesView.tsx | 95 +- .../SpaceView/Contexts/SpaceView.tsx | 13 +- .../Editor/EmbedView/SpaceFragmentView.tsx | 5 +- .../Frames/DefaultFrames/DefaultFrames.ts | 15 +- .../Frames/EditorNodes/FlowNodeView.tsx | 4 +- .../EditorNodes/FrameEditorNodeView.tsx | 14 +- .../Frames/EditorNodes/IconNodeView.tsx | 11 +- .../Frames/EditorNodes/ImageNodeView.tsx | 11 +- .../SpaceView/Frames/ViewNodes/FrameView.tsx | 19 +- .../components/SpaceView/SpaceHeader.tsx | 8 +- .../components/SpaceView/TitleComponent.tsx | 295 +- .../components/System/SystemSettings.tsx | 22 +- .../react/components/System/SystemTree.tsx | 57 +- src/core/react/components/UI/Drawer.tsx | 66 + .../UI/Menus/contexts/PropertyValue.tsx | 18 +- .../Menus/contexts/newSpacePropertyMenu.tsx | 63 +- .../UI/Menus/contexts/spacePropertyMenu.tsx | 195 +- .../UI/Menus/frames/showFramePropsMenu.tsx | 30 +- src/core/react/components/UI/Menus/menu.tsx | 55 +- .../UI/Menus/menu/SelectMenuComponent.tsx | 28 +- .../UI/Menus/menu/SelectMenuInput.tsx | 39 +- .../UI/Menus/menu/SelectMenuSuggestions.tsx | 20 +- .../UI/Menus/menu/SelectionMenu.tsx | 7 +- .../UI/Menus/navigator/pathContextMenu.tsx | 80 +- .../UI/Menus/navigator/showSpaceAddMenu.tsx | 102 +- .../UI/Menus/navigator/spaceContextMenu.tsx | 54 +- .../UI/Menus/properties/colorPickerMenu.tsx | 6 +- .../UI/Menus/properties/datePickerMenu.tsx | 4 +- .../UI/Menus/properties/selectSpaceMenu.tsx | 2 +- .../react/components/UI/Menus/selectMenu.tsx | 5 +- .../UI/Modals/ConfirmationModal.tsx | 10 +- .../components/UI/Modals/HiddenFiles.tsx | 32 +- .../react/components/UI/Modals/ImageModal.tsx | 2 +- .../react/components/UI/Modals/InputModal.tsx | 24 +- .../components/UI/Modals/StickerModal.tsx | 26 +- .../components/UI/Modals/modalWrapper.tsx | 43 +- .../UI/Stickers/PathSticker/PathSticker.tsx | 45 +- .../react/context/ContextEditorContext.tsx | 58 +- .../react/context/FrameEditorRootContext.tsx | 6 +- src/core/react/context/SidebarContext.tsx | 62 +- src/core/schemas/settings.ts | 17 +- .../filesystemAdapter/filesystemAdapter.ts | 183 +- .../filesystemAdapter/spaceInfo.ts | 28 +- .../spaceManager/filesystemAdapter/spaces.ts | 4 +- src/core/spaceManager/spaceManager.ts | 65 +- .../spaceManager/webAdapter/webAdapter.ts | 16 +- src/core/superstate/cacheParsers.ts | 24 +- src/core/superstate/commands.ts | 2 +- src/core/superstate/superstate.ts | 94 +- src/core/superstate/utils/label.ts | 2 +- src/core/superstate/utils/path.ts | 2 +- src/core/superstate/utils/spaces.ts | 68 +- src/core/superstate/workers/search/impl.ts | 28 +- src/core/superstate/workers/search/search.ts | 12 + .../workers/search/search.worker.ts | 6 +- src/core/test/TestComponent.tsx | 38 +- src/core/types/settings.ts | 18 +- src/core/types/space.ts | 66 +- src/core/utils/contexts/context.ts | 11 +- src/core/utils/contexts/linkContextRow.ts | 2 +- .../utils/contexts/optionValuesForColumn.ts | 3 +- src/core/utils/date.ts | 7 +- src/core/utils/dnd/dropPath.ts | 12 +- src/core/utils/frames/ast.ts | 1 - src/core/utils/markdown/mdToHTML.ts | 7 - src/core/utils/serializer.ts | 14 + src/core/utils/spaces/space.ts | 6 +- src/core/utils/ui/screen.ts | 2 +- src/core/utils/uri.ts | 15 +- src/css/DefaultVibe.css | 2 +- src/css/Editor/Context/FilterBar.css | 15 +- src/css/Editor/Flow/FlowState.css | 19 +- src/css/Editor/Flow/Properties.css | 1 + src/css/Menus/InlineMenu.css | 35 +- src/css/Menus/Menu.css | 141 +- src/css/Modal/Modal.css | 60 +- src/css/Panels/Blink.css | 37 +- src/css/Panels/FileContext.css | 9 + src/css/Panels/Navigator/EverView.css | 39 + src/css/Panels/Navigator/FileTree.css | 1 + .../Navigator/{Waypoints.css => Focuses.css} | 23 +- src/css/Panels/Navigator/Navigator.css | 22 +- src/css/SpaceViewer/Nodes.css | 1 + src/css/SpaceViewer/SpaceView.css | 10 +- src/css/SpaceViewer/TableView.css | 1 + src/main.ts | 110 +- src/schemas/kits/list.ts | 143 + src/schemas/kits/ui.ts | 2 +- src/types/path.ts | 5 +- src/utils/hide.ts | 1 + src/utils/parsers.ts | 5 +- src/utils/tags.ts | 1 + styles.css | 5224 +- tsconfig.json | 1 + 157 files changed, 5075 insertions(+), 161792 deletions(-) create mode 100644 src/adapters/obsidian/fileSystemPathFixer.tsx create mode 100644 src/adapters/obsidian/filesystem/spaceFileOps.tsx create mode 100644 src/adapters/obsidian/ui/navigator/EverLeafView.tsx create mode 100644 src/core/react/components/Navigator/EverView.tsx rename src/core/react/components/Navigator/{Waypoints/Waypoint.tsx => Focuses/Focus.tsx} (71%) rename src/core/react/components/Navigator/{Waypoints/Waypoints.tsx => Focuses/FocusSelector.tsx} (86%) create mode 100644 src/core/react/components/Navigator/SyncWarnings.tsx create mode 100644 src/core/react/components/UI/Drawer.tsx delete mode 100644 src/core/utils/markdown/mdToHTML.ts create mode 100644 src/css/Panels/Navigator/EverView.css rename src/css/Panels/Navigator/{Waypoints.css => Focuses.css} (77%) diff --git a/esbuild.config.mjs b/esbuild.config.mjs index d0b7f55..5e43267 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -160,6 +160,7 @@ esbuild.build({ logLevel: "info", sourcemap: buildv ? false : 'inline', treeShaking: true, + minify: true, outfile: outputDir+'/main.js', define: { 'process.env.NODE_ENV': prod ? '"production"' : '"development"' }, plugins: [renamePlugin, diff --git a/main.js b/main.js index 9f11806..f86f9f1 100644 --- a/main.js +++ b/main.js @@ -1,153585 +1,937 @@ -"use strict"; -/* +"use strict";/* THIS IS A GENERATED/BUNDLED FILE BY ESBUILD if you want to view the source, please visit the github repository of this plugin */ -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __commonJS = (cb, mod3) => function __require() { - return mod3 || (0, cb[__getOwnPropNames(cb)[0]])((mod3 = { exports: {} }).exports, mod3), mod3.exports; -}; -var __export = (target, all2) => { - for (var name319 in all2) - __defProp(target, name319, { get: all2[name319], enumerable: true }); -}; -var __copyProps = (to2, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key2 of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to2, key2) && key2 !== except) - __defProp(to2, key2, { get: () => from[key2], enumerable: !(desc = __getOwnPropDesc(from, key2)) || desc.enumerable }); - } - return to2; -}; -var __reExport = (target, mod3, secondTarget) => (__copyProps(target, mod3, "default"), secondTarget && __copyProps(secondTarget, mod3, "default")); -var __toESM = (mod3, isNodeMode, target) => (target = mod3 != null ? __create(__getProtoOf(mod3)) : {}, __copyProps( - isNodeMode || !mod3 || !mod3.__esModule ? __defProp(target, "default", { value: mod3, enumerable: true }) : target, - mod3 -)); -var __toCommonJS = (mod3) => __copyProps(__defProp({}, "__esModule", { value: true }), mod3); -var __toBinary = /* @__PURE__ */ (() => { - var table = new Uint8Array(128); - for (var i4 = 0; i4 < 64; i4++) - table[i4 < 26 ? i4 + 65 : i4 < 52 ? i4 + 71 : i4 < 62 ? i4 - 4 : i4 * 4 - 205] = i4; - return (base64) => { - var n3 = base64.length, bytes = new Uint8Array((n3 - (base64[n3 - 1] == "=") - (base64[n3 - 2] == "=")) * 3 / 4 | 0); - for (var i5 = 0, j = 0; i5 < n3; ) { - var c0 = table[base64.charCodeAt(i5++)], c1 = table[base64.charCodeAt(i5++)]; - var c22 = table[base64.charCodeAt(i5++)], c3 = table[base64.charCodeAt(i5++)]; - bytes[j++] = c0 << 2 | c1 >> 4; - bytes[j++] = c1 << 4 | c22 >> 2; - bytes[j++] = c22 << 6 | c3; - } - return bytes; - }; -})(); - -// node_modules/react/cjs/react.production.min.js -var require_react_production_min = __commonJS({ - "node_modules/react/cjs/react.production.min.js"(exports) { - "use strict"; - var l2 = Symbol.for("react.element"); - var n3 = Symbol.for("react.portal"); - var p = Symbol.for("react.fragment"); - var q2 = Symbol.for("react.strict_mode"); - var r2 = Symbol.for("react.profiler"); - var t7 = Symbol.for("react.provider"); - var u3 = Symbol.for("react.context"); - var v2 = Symbol.for("react.forward_ref"); - var w2 = Symbol.for("react.suspense"); - var x2 = Symbol.for("react.memo"); - var y3 = Symbol.for("react.lazy"); - var z2 = Symbol.iterator; - function A(a4) { - if (null === a4 || "object" !== typeof a4) - return null; - a4 = z2 && a4[z2] || a4["@@iterator"]; - return "function" === typeof a4 ? a4 : null; - } - var B2 = { isMounted: function() { - return false; - }, enqueueForceUpdate: function() { - }, enqueueReplaceState: function() { - }, enqueueSetState: function() { - } }; - var C2 = Object.assign; - var D2 = {}; - function E2(a4, b2, e5) { - this.props = a4; - this.context = b2; - this.refs = D2; - this.updater = e5 || B2; - } - E2.prototype.isReactComponent = {}; - E2.prototype.setState = function(a4, b2) { - if ("object" !== typeof a4 && "function" !== typeof a4 && null != a4) - throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); - this.updater.enqueueSetState(this, a4, b2, "setState"); - }; - E2.prototype.forceUpdate = function(a4) { - this.updater.enqueueForceUpdate(this, a4, "forceUpdate"); - }; - function F() { - } - F.prototype = E2.prototype; - function G2(a4, b2, e5) { - this.props = a4; - this.context = b2; - this.refs = D2; - this.updater = e5 || B2; - } - var H3 = G2.prototype = new F(); - H3.constructor = G2; - C2(H3, E2.prototype); - H3.isPureReactComponent = true; - var I2 = Array.isArray; - var J = Object.prototype.hasOwnProperty; - var K2 = { current: null }; - var L2 = { key: true, ref: true, __self: true, __source: true }; - function M3(a4, b2, e5) { - var d4, c3 = {}, k2 = null, h3 = null; - if (null != b2) - for (d4 in void 0 !== b2.ref && (h3 = b2.ref), void 0 !== b2.key && (k2 = "" + b2.key), b2) - J.call(b2, d4) && !L2.hasOwnProperty(d4) && (c3[d4] = b2[d4]); - var g = arguments.length - 2; - if (1 === g) - c3.children = e5; - else if (1 < g) { - for (var f2 = Array(g), m4 = 0; m4 < g; m4++) - f2[m4] = arguments[m4 + 2]; - c3.children = f2; - } - if (a4 && a4.defaultProps) - for (d4 in g = a4.defaultProps, g) - void 0 === c3[d4] && (c3[d4] = g[d4]); - return { $$typeof: l2, type: a4, key: k2, ref: h3, props: c3, _owner: K2.current }; - } - function N(a4, b2) { - return { $$typeof: l2, type: a4.type, key: b2, ref: a4.ref, props: a4.props, _owner: a4._owner }; - } - function O2(a4) { - return "object" === typeof a4 && null !== a4 && a4.$$typeof === l2; - } - function escape2(a4) { - var b2 = { "=": "=0", ":": "=2" }; - return "$" + a4.replace(/[=:]/g, function(a5) { - return b2[a5]; - }); - } - var P3 = /\/+/g; - function Q3(a4, b2) { - return "object" === typeof a4 && null !== a4 && null != a4.key ? escape2("" + a4.key) : b2.toString(36); - } - function R2(a4, b2, e5, d4, c3) { - var k2 = typeof a4; - if ("undefined" === k2 || "boolean" === k2) - a4 = null; - var h3 = false; - if (null === a4) - h3 = true; - else - switch (k2) { - case "string": - case "number": - h3 = true; - break; - case "object": - switch (a4.$$typeof) { - case l2: - case n3: - h3 = true; - } - } - if (h3) - return h3 = a4, c3 = c3(h3), a4 = "" === d4 ? "." + Q3(h3, 0) : d4, I2(c3) ? (e5 = "", null != a4 && (e5 = a4.replace(P3, "$&/") + "/"), R2(c3, b2, e5, "", function(a5) { - return a5; - })) : null != c3 && (O2(c3) && (c3 = N(c3, e5 + (!c3.key || h3 && h3.key === c3.key ? "" : ("" + c3.key).replace(P3, "$&/") + "/") + a4)), b2.push(c3)), 1; - h3 = 0; - d4 = "" === d4 ? "." : d4 + ":"; - if (I2(a4)) - for (var g = 0; g < a4.length; g++) { - k2 = a4[g]; - var f2 = d4 + Q3(k2, g); - h3 += R2(k2, b2, e5, f2, c3); - } - else if (f2 = A(a4), "function" === typeof f2) - for (a4 = f2.call(a4), g = 0; !(k2 = a4.next()).done; ) - k2 = k2.value, f2 = d4 + Q3(k2, g++), h3 += R2(k2, b2, e5, f2, c3); - else if ("object" === k2) - throw b2 = String(a4), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b2 ? "object with keys {" + Object.keys(a4).join(", ") + "}" : b2) + "). If you meant to render a collection of children, use an array instead."); - return h3; - } - function S3(a4, b2, e5) { - if (null == a4) - return a4; - var d4 = [], c3 = 0; - R2(a4, d4, "", "", function(a5) { - return b2.call(e5, a5, c3++); - }); - return d4; - } - function T3(a4) { - if (-1 === a4._status) { - var b2 = a4._result; - b2 = b2(); - b2.then(function(b3) { - if (0 === a4._status || -1 === a4._status) - a4._status = 1, a4._result = b3; - }, function(b3) { - if (0 === a4._status || -1 === a4._status) - a4._status = 2, a4._result = b3; - }); - -1 === a4._status && (a4._status = 0, a4._result = b2); - } - if (1 === a4._status) - return a4._result.default; - throw a4._result; - } - var U = { current: null }; - var V = { transition: null }; - var W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K2 }; - exports.Children = { map: S3, forEach: function(a4, b2, e5) { - S3(a4, function() { - b2.apply(this, arguments); - }, e5); - }, count: function(a4) { - var b2 = 0; - S3(a4, function() { - b2++; - }); - return b2; - }, toArray: function(a4) { - return S3(a4, function(a5) { - return a5; - }) || []; - }, only: function(a4) { - if (!O2(a4)) - throw Error("React.Children.only expected to receive a single React element child."); - return a4; - } }; - exports.Component = E2; - exports.Fragment = p; - exports.Profiler = r2; - exports.PureComponent = G2; - exports.StrictMode = q2; - exports.Suspense = w2; - exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W; - exports.cloneElement = function(a4, b2, e5) { - if (null === a4 || void 0 === a4) - throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a4 + "."); - var d4 = C2({}, a4.props), c3 = a4.key, k2 = a4.ref, h3 = a4._owner; - if (null != b2) { - void 0 !== b2.ref && (k2 = b2.ref, h3 = K2.current); - void 0 !== b2.key && (c3 = "" + b2.key); - if (a4.type && a4.type.defaultProps) - var g = a4.type.defaultProps; - for (f2 in b2) - J.call(b2, f2) && !L2.hasOwnProperty(f2) && (d4[f2] = void 0 === b2[f2] && void 0 !== g ? g[f2] : b2[f2]); - } - var f2 = arguments.length - 2; - if (1 === f2) - d4.children = e5; - else if (1 < f2) { - g = Array(f2); - for (var m4 = 0; m4 < f2; m4++) - g[m4] = arguments[m4 + 2]; - d4.children = g; - } - return { $$typeof: l2, type: a4.type, key: c3, ref: k2, props: d4, _owner: h3 }; - }; - exports.createContext = function(a4) { - a4 = { $$typeof: u3, _currentValue: a4, _currentValue2: a4, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }; - a4.Provider = { $$typeof: t7, _context: a4 }; - return a4.Consumer = a4; - }; - exports.createElement = M3; - exports.createFactory = function(a4) { - var b2 = M3.bind(null, a4); - b2.type = a4; - return b2; - }; - exports.createRef = function() { - return { current: null }; - }; - exports.forwardRef = function(a4) { - return { $$typeof: v2, render: a4 }; - }; - exports.isValidElement = O2; - exports.lazy = function(a4) { - return { $$typeof: y3, _payload: { _status: -1, _result: a4 }, _init: T3 }; - }; - exports.memo = function(a4, b2) { - return { $$typeof: x2, type: a4, compare: void 0 === b2 ? null : b2 }; - }; - exports.startTransition = function(a4) { - var b2 = V.transition; - V.transition = {}; - try { - a4(); - } finally { - V.transition = b2; - } - }; - exports.unstable_act = function() { - throw Error("act(...) is not supported in production builds of React."); - }; - exports.useCallback = function(a4, b2) { - return U.current.useCallback(a4, b2); - }; - exports.useContext = function(a4) { - return U.current.useContext(a4); - }; - exports.useDebugValue = function() { - }; - exports.useDeferredValue = function(a4) { - return U.current.useDeferredValue(a4); - }; - exports.useEffect = function(a4, b2) { - return U.current.useEffect(a4, b2); - }; - exports.useId = function() { - return U.current.useId(); - }; - exports.useImperativeHandle = function(a4, b2, e5) { - return U.current.useImperativeHandle(a4, b2, e5); - }; - exports.useInsertionEffect = function(a4, b2) { - return U.current.useInsertionEffect(a4, b2); - }; - exports.useLayoutEffect = function(a4, b2) { - return U.current.useLayoutEffect(a4, b2); - }; - exports.useMemo = function(a4, b2) { - return U.current.useMemo(a4, b2); - }; - exports.useReducer = function(a4, b2, e5) { - return U.current.useReducer(a4, b2, e5); - }; - exports.useRef = function(a4) { - return U.current.useRef(a4); - }; - exports.useState = function(a4) { - return U.current.useState(a4); - }; - exports.useSyncExternalStore = function(a4, b2, e5) { - return U.current.useSyncExternalStore(a4, b2, e5); - }; - exports.useTransition = function() { - return U.current.useTransition(); - }; - exports.version = "18.2.0"; - } -}); - -// node_modules/react/index.js -var require_react = __commonJS({ - "node_modules/react/index.js"(exports, module2) { - "use strict"; - if (true) { - module2.exports = require_react_production_min(); - } else { - module2.exports = null; - } - } -}); - -// node_modules/moment/moment.js -var require_moment = __commonJS({ - "node_modules/moment/moment.js"(exports, module2) { - (function(global2, factory2) { - typeof exports === "object" && typeof module2 !== "undefined" ? module2.exports = factory2() : typeof define === "function" && define.amd ? define(factory2) : global2.moment = factory2(); - })(exports, function() { - "use strict"; - var hookCallback; - function hooks() { - return hookCallback.apply(null, arguments); - } - function setHookCallback(callback) { - hookCallback = callback; - } - function isArray5(input) { - return input instanceof Array || Object.prototype.toString.call(input) === "[object Array]"; - } - function isObject4(input) { - return input != null && Object.prototype.toString.call(input) === "[object Object]"; - } - function hasOwnProp(a4, b2) { - return Object.prototype.hasOwnProperty.call(a4, b2); - } - function isObjectEmpty(obj) { - if (Object.getOwnPropertyNames) { - return Object.getOwnPropertyNames(obj).length === 0; - } else { - var k2; - for (k2 in obj) { - if (hasOwnProp(obj, k2)) { - return false; - } - } - return true; - } - } - function isUndefined2(input) { - return input === void 0; - } - function isNumber4(input) { - return typeof input === "number" || Object.prototype.toString.call(input) === "[object Number]"; - } - function isDate4(input) { - return input instanceof Date || Object.prototype.toString.call(input) === "[object Date]"; - } - function map4(arr, fn) { - var res = [], i4, arrLen = arr.length; - for (i4 = 0; i4 < arrLen; ++i4) { - res.push(fn(arr[i4], i4)); - } - return res; - } - function extend3(a4, b2) { - for (var i4 in b2) { - if (hasOwnProp(b2, i4)) { - a4[i4] = b2[i4]; - } - } - if (hasOwnProp(b2, "toString")) { - a4.toString = b2.toString; - } - if (hasOwnProp(b2, "valueOf")) { - a4.valueOf = b2.valueOf; - } - return a4; - } - function createUTC(input, format9, locale3, strict) { - return createLocalOrUTC(input, format9, locale3, strict, true).utc(); - } - function defaultParsingFlags() { - return { - empty: false, - unusedTokens: [], - unusedInput: [], - overflow: -2, - charsLeftOver: 0, - nullInput: false, - invalidEra: null, - invalidMonth: null, - invalidFormat: false, - userInvalidated: false, - iso: false, - parsedDateParts: [], - era: null, - meridiem: null, - rfc2822: false, - weekdayMismatch: false - }; - } - function getParsingFlags(m4) { - if (m4._pf == null) { - m4._pf = defaultParsingFlags(); - } - return m4._pf; - } - var some2; - if (Array.prototype.some) { - some2 = Array.prototype.some; - } else { - some2 = function(fun) { - var t7 = Object(this), len = t7.length >>> 0, i4; - for (i4 = 0; i4 < len; i4++) { - if (i4 in t7 && fun.call(this, t7[i4], i4, t7)) { - return true; - } - } - return false; - }; - } - function isValid2(m4) { - if (m4._isValid == null) { - var flags = getParsingFlags(m4), parsedParts = some2.call(flags.parsedDateParts, function(i4) { - return i4 != null; - }), isNowValid = !isNaN(m4._d.getTime()) && flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts); - if (m4._strict) { - isNowValid = isNowValid && flags.charsLeftOver === 0 && flags.unusedTokens.length === 0 && flags.bigHour === void 0; - } - if (Object.isFrozen == null || !Object.isFrozen(m4)) { - m4._isValid = isNowValid; - } else { - return isNowValid; - } - } - return m4._isValid; - } - function createInvalid(flags) { - var m4 = createUTC(NaN); - if (flags != null) { - extend3(getParsingFlags(m4), flags); - } else { - getParsingFlags(m4).userInvalidated = true; - } - return m4; - } - var momentProperties = hooks.momentProperties = [], updateInProgress = false; - function copyConfig(to3, from2) { - var i4, prop2, val, momentPropertiesLen = momentProperties.length; - if (!isUndefined2(from2._isAMomentObject)) { - to3._isAMomentObject = from2._isAMomentObject; - } - if (!isUndefined2(from2._i)) { - to3._i = from2._i; - } - if (!isUndefined2(from2._f)) { - to3._f = from2._f; - } - if (!isUndefined2(from2._l)) { - to3._l = from2._l; - } - if (!isUndefined2(from2._strict)) { - to3._strict = from2._strict; - } - if (!isUndefined2(from2._tzm)) { - to3._tzm = from2._tzm; - } - if (!isUndefined2(from2._isUTC)) { - to3._isUTC = from2._isUTC; - } - if (!isUndefined2(from2._offset)) { - to3._offset = from2._offset; - } - if (!isUndefined2(from2._pf)) { - to3._pf = getParsingFlags(from2); - } - if (!isUndefined2(from2._locale)) { - to3._locale = from2._locale; - } - if (momentPropertiesLen > 0) { - for (i4 = 0; i4 < momentPropertiesLen; i4++) { - prop2 = momentProperties[i4]; - val = from2[prop2]; - if (!isUndefined2(val)) { - to3[prop2] = val; - } - } - } - return to3; - } - function Moment(config5) { - copyConfig(this, config5); - this._d = new Date(config5._d != null ? config5._d.getTime() : NaN); - if (!this.isValid()) { - this._d = new Date(NaN); - } - if (updateInProgress === false) { - updateInProgress = true; - hooks.updateOffset(this); - updateInProgress = false; - } - } - function isMoment(obj) { - return obj instanceof Moment || obj != null && obj._isAMomentObject != null; - } - function warn(msg) { - if (hooks.suppressDeprecationWarnings === false && typeof console !== "undefined" && console.warn) { - console.warn("Deprecation warning: " + msg); - } - } - function deprecate(msg, fn) { - var firstTime = true; - return extend3(function() { - if (hooks.deprecationHandler != null) { - hooks.deprecationHandler(null, msg); - } - if (firstTime) { - var args = [], arg2, i4, key2, argLen = arguments.length; - for (i4 = 0; i4 < argLen; i4++) { - arg2 = ""; - if (typeof arguments[i4] === "object") { - arg2 += "\n[" + i4 + "] "; - for (key2 in arguments[0]) { - if (hasOwnProp(arguments[0], key2)) { - arg2 += key2 + ": " + arguments[0][key2] + ", "; - } - } - arg2 = arg2.slice(0, -2); - } else { - arg2 = arguments[i4]; - } - args.push(arg2); - } - warn( - msg + "\nArguments: " + Array.prototype.slice.call(args).join("") + "\n" + new Error().stack - ); - firstTime = false; - } - return fn.apply(this, arguments); - }, fn); - } - var deprecations = {}; - function deprecateSimple(name319, msg) { - if (hooks.deprecationHandler != null) { - hooks.deprecationHandler(name319, msg); - } - if (!deprecations[name319]) { - warn(msg); - deprecations[name319] = true; - } - } - hooks.suppressDeprecationWarnings = false; - hooks.deprecationHandler = null; - function isFunction3(input) { - return typeof Function !== "undefined" && input instanceof Function || Object.prototype.toString.call(input) === "[object Function]"; - } - function set(config5) { - var prop2, i4; - for (i4 in config5) { - if (hasOwnProp(config5, i4)) { - prop2 = config5[i4]; - if (isFunction3(prop2)) { - this[i4] = prop2; - } else { - this["_" + i4] = prop2; - } - } - } - this._config = config5; - this._dayOfMonthOrdinalParseLenient = new RegExp( - (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source - ); - } - function mergeConfigs(parentConfig, childConfig) { - var res = extend3({}, parentConfig), prop2; - for (prop2 in childConfig) { - if (hasOwnProp(childConfig, prop2)) { - if (isObject4(parentConfig[prop2]) && isObject4(childConfig[prop2])) { - res[prop2] = {}; - extend3(res[prop2], parentConfig[prop2]); - extend3(res[prop2], childConfig[prop2]); - } else if (childConfig[prop2] != null) { - res[prop2] = childConfig[prop2]; - } else { - delete res[prop2]; - } - } - } - for (prop2 in parentConfig) { - if (hasOwnProp(parentConfig, prop2) && !hasOwnProp(childConfig, prop2) && isObject4(parentConfig[prop2])) { - res[prop2] = extend3({}, res[prop2]); - } - } - return res; - } - function Locale(config5) { - if (config5 != null) { - this.set(config5); - } - } - var keys; - if (Object.keys) { - keys = Object.keys; - } else { - keys = function(obj) { - var i4, res = []; - for (i4 in obj) { - if (hasOwnProp(obj, i4)) { - res.push(i4); - } - } - return res; - }; - } - var defaultCalendar = { - sameDay: "[Today at] LT", - nextDay: "[Tomorrow at] LT", - nextWeek: "dddd [at] LT", - lastDay: "[Yesterday at] LT", - lastWeek: "[Last] dddd [at] LT", - sameElse: "L" - }; - function calendar(key2, mom, now2) { - var output = this._calendar[key2] || this._calendar["sameElse"]; - return isFunction3(output) ? output.call(mom, now2) : output; - } - function zeroFill(number6, targetLength, forceSign) { - var absNumber2 = "" + Math.abs(number6), zerosToFill = targetLength - absNumber2.length, sign5 = number6 >= 0; - return (sign5 ? forceSign ? "+" : "" : "-") + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber2; - } - var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, formatFunctions = {}, formatTokenFunctions = {}; - function addFormatToken(token2, padded, ordinal2, callback) { - var func = callback; - if (typeof callback === "string") { - func = function() { - return this[callback](); - }; - } - if (token2) { - formatTokenFunctions[token2] = func; - } - if (padded) { - formatTokenFunctions[padded[0]] = function() { - return zeroFill(func.apply(this, arguments), padded[1], padded[2]); - }; - } - if (ordinal2) { - formatTokenFunctions[ordinal2] = function() { - return this.localeData().ordinal( - func.apply(this, arguments), - token2 - ); - }; - } - } - function removeFormattingTokens(input) { - if (input.match(/\[[\s\S]/)) { - return input.replace(/^\[|\]$/g, ""); - } - return input.replace(/\\/g, ""); - } - function makeFormatFunction(format9) { - var array = format9.match(formattingTokens), i4, length; - for (i4 = 0, length = array.length; i4 < length; i4++) { - if (formatTokenFunctions[array[i4]]) { - array[i4] = formatTokenFunctions[array[i4]]; - } else { - array[i4] = removeFormattingTokens(array[i4]); - } - } - return function(mom) { - var output = "", i5; - for (i5 = 0; i5 < length; i5++) { - output += isFunction3(array[i5]) ? array[i5].call(mom, format9) : array[i5]; - } - return output; - }; - } - function formatMoment(m4, format9) { - if (!m4.isValid()) { - return m4.localeData().invalidDate(); - } - format9 = expandFormat(format9, m4.localeData()); - formatFunctions[format9] = formatFunctions[format9] || makeFormatFunction(format9); - return formatFunctions[format9](m4); - } - function expandFormat(format9, locale3) { - var i4 = 5; - function replaceLongDateFormatTokens(input) { - return locale3.longDateFormat(input) || input; - } - localFormattingTokens.lastIndex = 0; - while (i4 >= 0 && localFormattingTokens.test(format9)) { - format9 = format9.replace( - localFormattingTokens, - replaceLongDateFormatTokens - ); - localFormattingTokens.lastIndex = 0; - i4 -= 1; - } - return format9; - } - var defaultLongDateFormat = { - LTS: "h:mm:ss A", - LT: "h:mm A", - L: "MM/DD/YYYY", - LL: "MMMM D, YYYY", - LLL: "MMMM D, YYYY h:mm A", - LLLL: "dddd, MMMM D, YYYY h:mm A" - }; - function longDateFormat(key2) { - var format9 = this._longDateFormat[key2], formatUpper = this._longDateFormat[key2.toUpperCase()]; - if (format9 || !formatUpper) { - return format9; - } - this._longDateFormat[key2] = formatUpper.match(formattingTokens).map(function(tok) { - if (tok === "MMMM" || tok === "MM" || tok === "DD" || tok === "dddd") { - return tok.slice(1); - } - return tok; - }).join(""); - return this._longDateFormat[key2]; - } - var defaultInvalidDate = "Invalid date"; - function invalidDate() { - return this._invalidDate; - } - var defaultOrdinal = "%d", defaultDayOfMonthOrdinalParse = /\d{1,2}/; - function ordinal(number6) { - return this._ordinal.replace("%d", number6); - } - var defaultRelativeTime = { - future: "in %s", - past: "%s ago", - s: "a few seconds", - ss: "%d seconds", - m: "a minute", - mm: "%d minutes", - h: "an hour", - hh: "%d hours", - d: "a day", - dd: "%d days", - w: "a week", - ww: "%d weeks", - M: "a month", - MM: "%d months", - y: "a year", - yy: "%d years" - }; - function relativeTime(number6, withoutSuffix, string6, isFuture) { - var output = this._relativeTime[string6]; - return isFunction3(output) ? output(number6, withoutSuffix, string6, isFuture) : output.replace(/%d/i, number6); - } - function pastFuture(diff3, output) { - var format9 = this._relativeTime[diff3 > 0 ? "future" : "past"]; - return isFunction3(format9) ? format9(output) : format9.replace(/%s/i, output); - } - var aliases = {}; - function addUnitAlias(unit2, shorthand) { - var lowerCase = unit2.toLowerCase(); - aliases[lowerCase] = aliases[lowerCase + "s"] = aliases[shorthand] = unit2; - } - function normalizeUnits(units2) { - return typeof units2 === "string" ? aliases[units2] || aliases[units2.toLowerCase()] : void 0; - } - function normalizeObjectUnits(inputObject) { - var normalizedInput = {}, normalizedProp, prop2; - for (prop2 in inputObject) { - if (hasOwnProp(inputObject, prop2)) { - normalizedProp = normalizeUnits(prop2); - if (normalizedProp) { - normalizedInput[normalizedProp] = inputObject[prop2]; - } - } - } - return normalizedInput; - } - var priorities = {}; - function addUnitPriority(unit2, priority) { - priorities[unit2] = priority; - } - function getPrioritizedUnits(unitsObj) { - var units2 = [], u3; - for (u3 in unitsObj) { - if (hasOwnProp(unitsObj, u3)) { - units2.push({ unit: u3, priority: priorities[u3] }); - } - } - units2.sort(function(a4, b2) { - return a4.priority - b2.priority; - }); - return units2; - } - function isLeapYear(year) { - return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; - } - function absFloor(number6) { - if (number6 < 0) { - return Math.ceil(number6) || 0; - } else { - return Math.floor(number6); - } - } - function toInt(argumentForCoercion) { - var coercedNumber = +argumentForCoercion, value = 0; - if (coercedNumber !== 0 && isFinite(coercedNumber)) { - value = absFloor(coercedNumber); - } - return value; - } - function makeGetSet(unit2, keepTime) { - return function(value) { - if (value != null) { - set$1(this, unit2, value); - hooks.updateOffset(this, keepTime); - return this; - } else { - return get2(this, unit2); - } - }; - } - function get2(mom, unit2) { - return mom.isValid() ? mom._d["get" + (mom._isUTC ? "UTC" : "") + unit2]() : NaN; - } - function set$1(mom, unit2, value) { - if (mom.isValid() && !isNaN(value)) { - if (unit2 === "FullYear" && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) { - value = toInt(value); - mom._d["set" + (mom._isUTC ? "UTC" : "") + unit2]( - value, - mom.month(), - daysInMonth(value, mom.month()) - ); - } else { - mom._d["set" + (mom._isUTC ? "UTC" : "") + unit2](value); - } - } - } - function stringGet(units2) { - units2 = normalizeUnits(units2); - if (isFunction3(this[units2])) { - return this[units2](); - } - return this; - } - function stringSet(units2, value) { - if (typeof units2 === "object") { - units2 = normalizeObjectUnits(units2); - var prioritized = getPrioritizedUnits(units2), i4, prioritizedLen = prioritized.length; - for (i4 = 0; i4 < prioritizedLen; i4++) { - this[prioritized[i4].unit](units2[prioritized[i4].unit]); - } - } else { - units2 = normalizeUnits(units2); - if (isFunction3(this[units2])) { - return this[units2](value); - } - } - return this; - } - var match1 = /\d/, match2 = /\d\d/, match3 = /\d{3}/, match4 = /\d{4}/, match6 = /[+-]?\d{6}/, match1to2 = /\d\d?/, match3to4 = /\d\d\d\d?/, match5to6 = /\d\d\d\d\d\d?/, match1to3 = /\d{1,3}/, match1to4 = /\d{1,4}/, match1to6 = /[+-]?\d{1,6}/, matchUnsigned = /\d+/, matchSigned = /[+-]?\d+/, matchOffset = /Z|[+-]\d\d:?\d\d/gi, matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, regexes; - regexes = {}; - function addRegexToken(token2, regex, strictRegex) { - regexes[token2] = isFunction3(regex) ? regex : function(isStrict, localeData2) { - return isStrict && strictRegex ? strictRegex : regex; - }; - } - function getParseRegexForToken(token2, config5) { - if (!hasOwnProp(regexes, token2)) { - return new RegExp(unescapeFormat(token2)); - } - return regexes[token2](config5._strict, config5._locale); - } - function unescapeFormat(s4) { - return regexEscape( - s4.replace("\\", "").replace( - /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, - function(matched, p1, p2, p3, p4) { - return p1 || p2 || p3 || p4; - } - ) - ); - } - function regexEscape(s4) { - return s4.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"); - } - var tokens = {}; - function addParseToken(token2, callback) { - var i4, func = callback, tokenLen; - if (typeof token2 === "string") { - token2 = [token2]; - } - if (isNumber4(callback)) { - func = function(input, array) { - array[callback] = toInt(input); - }; - } - tokenLen = token2.length; - for (i4 = 0; i4 < tokenLen; i4++) { - tokens[token2[i4]] = func; - } - } - function addWeekParseToken(token2, callback) { - addParseToken(token2, function(input, array, config5, token3) { - config5._w = config5._w || {}; - callback(input, config5._w, config5, token3); - }); - } - function addTimeToArrayFromToken(token2, input, config5) { - if (input != null && hasOwnProp(tokens, token2)) { - tokens[token2](input, config5._a, config5, token2); - } - } - var YEAR = 0, MONTH = 1, DATE = 2, HOUR = 3, MINUTE = 4, SECOND = 5, MILLISECOND = 6, WEEK = 7, WEEKDAY = 8; - function mod3(n3, x2) { - return (n3 % x2 + x2) % x2; - } - var indexOf; - if (Array.prototype.indexOf) { - indexOf = Array.prototype.indexOf; - } else { - indexOf = function(o2) { - var i4; - for (i4 = 0; i4 < this.length; ++i4) { - if (this[i4] === o2) { - return i4; - } - } - return -1; - }; - } - function daysInMonth(year, month) { - if (isNaN(year) || isNaN(month)) { - return NaN; - } - var modMonth = mod3(month, 12); - year += (month - modMonth) / 12; - return modMonth === 1 ? isLeapYear(year) ? 29 : 28 : 31 - modMonth % 7 % 2; - } - addFormatToken("M", ["MM", 2], "Mo", function() { - return this.month() + 1; - }); - addFormatToken("MMM", 0, 0, function(format9) { - return this.localeData().monthsShort(this, format9); - }); - addFormatToken("MMMM", 0, 0, function(format9) { - return this.localeData().months(this, format9); - }); - addUnitAlias("month", "M"); - addUnitPriority("month", 8); - addRegexToken("M", match1to2); - addRegexToken("MM", match1to2, match2); - addRegexToken("MMM", function(isStrict, locale3) { - return locale3.monthsShortRegex(isStrict); - }); - addRegexToken("MMMM", function(isStrict, locale3) { - return locale3.monthsRegex(isStrict); - }); - addParseToken(["M", "MM"], function(input, array) { - array[MONTH] = toInt(input) - 1; - }); - addParseToken(["MMM", "MMMM"], function(input, array, config5, token2) { - var month = config5._locale.monthsParse(input, token2, config5._strict); - if (month != null) { - array[MONTH] = month; - } else { - getParsingFlags(config5).invalidMonth = input; - } - }); - var defaultLocaleMonths = "January_February_March_April_May_June_July_August_September_October_November_December".split( - "_" - ), defaultLocaleMonthsShort = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, defaultMonthsShortRegex = matchWord, defaultMonthsRegex = matchWord; - function localeMonths(m4, format9) { - if (!m4) { - return isArray5(this._months) ? this._months : this._months["standalone"]; - } - return isArray5(this._months) ? this._months[m4.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format9) ? "format" : "standalone"][m4.month()]; - } - function localeMonthsShort(m4, format9) { - if (!m4) { - return isArray5(this._monthsShort) ? this._monthsShort : this._monthsShort["standalone"]; - } - return isArray5(this._monthsShort) ? this._monthsShort[m4.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format9) ? "format" : "standalone"][m4.month()]; - } - function handleStrictParse(monthName, format9, strict) { - var i4, ii, mom, llc = monthName.toLocaleLowerCase(); - if (!this._monthsParse) { - this._monthsParse = []; - this._longMonthsParse = []; - this._shortMonthsParse = []; - for (i4 = 0; i4 < 12; ++i4) { - mom = createUTC([2e3, i4]); - this._shortMonthsParse[i4] = this.monthsShort( - mom, - "" - ).toLocaleLowerCase(); - this._longMonthsParse[i4] = this.months(mom, "").toLocaleLowerCase(); - } - } - if (strict) { - if (format9 === "MMM") { - ii = indexOf.call(this._shortMonthsParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._longMonthsParse, llc); - return ii !== -1 ? ii : null; - } - } else { - if (format9 === "MMM") { - ii = indexOf.call(this._shortMonthsParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._longMonthsParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._longMonthsParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._shortMonthsParse, llc); - return ii !== -1 ? ii : null; - } - } - } - function localeMonthsParse(monthName, format9, strict) { - var i4, mom, regex; - if (this._monthsParseExact) { - return handleStrictParse.call(this, monthName, format9, strict); - } - if (!this._monthsParse) { - this._monthsParse = []; - this._longMonthsParse = []; - this._shortMonthsParse = []; - } - for (i4 = 0; i4 < 12; i4++) { - mom = createUTC([2e3, i4]); - if (strict && !this._longMonthsParse[i4]) { - this._longMonthsParse[i4] = new RegExp( - "^" + this.months(mom, "").replace(".", "") + "$", - "i" - ); - this._shortMonthsParse[i4] = new RegExp( - "^" + this.monthsShort(mom, "").replace(".", "") + "$", - "i" - ); - } - if (!strict && !this._monthsParse[i4]) { - regex = "^" + this.months(mom, "") + "|^" + this.monthsShort(mom, ""); - this._monthsParse[i4] = new RegExp(regex.replace(".", ""), "i"); - } - if (strict && format9 === "MMMM" && this._longMonthsParse[i4].test(monthName)) { - return i4; - } else if (strict && format9 === "MMM" && this._shortMonthsParse[i4].test(monthName)) { - return i4; - } else if (!strict && this._monthsParse[i4].test(monthName)) { - return i4; - } - } - } - function setMonth2(mom, value) { - var dayOfMonth; - if (!mom.isValid()) { - return mom; - } - if (typeof value === "string") { - if (/^\d+$/.test(value)) { - value = toInt(value); - } else { - value = mom.localeData().monthsParse(value); - if (!isNumber4(value)) { - return mom; - } - } - } - dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value)); - mom._d["set" + (mom._isUTC ? "UTC" : "") + "Month"](value, dayOfMonth); - return mom; - } - function getSetMonth(value) { - if (value != null) { - setMonth2(this, value); - hooks.updateOffset(this, true); - return this; - } else { - return get2(this, "Month"); - } - } - function getDaysInMonth2() { - return daysInMonth(this.year(), this.month()); - } - function monthsShortRegex(isStrict) { - if (this._monthsParseExact) { - if (!hasOwnProp(this, "_monthsRegex")) { - computeMonthsParse.call(this); - } - if (isStrict) { - return this._monthsShortStrictRegex; - } else { - return this._monthsShortRegex; - } - } else { - if (!hasOwnProp(this, "_monthsShortRegex")) { - this._monthsShortRegex = defaultMonthsShortRegex; - } - return this._monthsShortStrictRegex && isStrict ? this._monthsShortStrictRegex : this._monthsShortRegex; - } - } - function monthsRegex(isStrict) { - if (this._monthsParseExact) { - if (!hasOwnProp(this, "_monthsRegex")) { - computeMonthsParse.call(this); - } - if (isStrict) { - return this._monthsStrictRegex; - } else { - return this._monthsRegex; - } - } else { - if (!hasOwnProp(this, "_monthsRegex")) { - this._monthsRegex = defaultMonthsRegex; - } - return this._monthsStrictRegex && isStrict ? this._monthsStrictRegex : this._monthsRegex; - } - } - function computeMonthsParse() { - function cmpLenRev(a4, b2) { - return b2.length - a4.length; - } - var shortPieces = [], longPieces = [], mixedPieces = [], i4, mom; - for (i4 = 0; i4 < 12; i4++) { - mom = createUTC([2e3, i4]); - shortPieces.push(this.monthsShort(mom, "")); - longPieces.push(this.months(mom, "")); - mixedPieces.push(this.months(mom, "")); - mixedPieces.push(this.monthsShort(mom, "")); - } - shortPieces.sort(cmpLenRev); - longPieces.sort(cmpLenRev); - mixedPieces.sort(cmpLenRev); - for (i4 = 0; i4 < 12; i4++) { - shortPieces[i4] = regexEscape(shortPieces[i4]); - longPieces[i4] = regexEscape(longPieces[i4]); - } - for (i4 = 0; i4 < 24; i4++) { - mixedPieces[i4] = regexEscape(mixedPieces[i4]); - } - this._monthsRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i"); - this._monthsShortRegex = this._monthsRegex; - this._monthsStrictRegex = new RegExp( - "^(" + longPieces.join("|") + ")", - "i" - ); - this._monthsShortStrictRegex = new RegExp( - "^(" + shortPieces.join("|") + ")", - "i" - ); - } - addFormatToken("Y", 0, 0, function() { - var y3 = this.year(); - return y3 <= 9999 ? zeroFill(y3, 4) : "+" + y3; - }); - addFormatToken(0, ["YY", 2], 0, function() { - return this.year() % 100; - }); - addFormatToken(0, ["YYYY", 4], 0, "year"); - addFormatToken(0, ["YYYYY", 5], 0, "year"); - addFormatToken(0, ["YYYYYY", 6, true], 0, "year"); - addUnitAlias("year", "y"); - addUnitPriority("year", 1); - addRegexToken("Y", matchSigned); - addRegexToken("YY", match1to2, match2); - addRegexToken("YYYY", match1to4, match4); - addRegexToken("YYYYY", match1to6, match6); - addRegexToken("YYYYYY", match1to6, match6); - addParseToken(["YYYYY", "YYYYYY"], YEAR); - addParseToken("YYYY", function(input, array) { - array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input); - }); - addParseToken("YY", function(input, array) { - array[YEAR] = hooks.parseTwoDigitYear(input); - }); - addParseToken("Y", function(input, array) { - array[YEAR] = parseInt(input, 10); - }); - function daysInYear2(year) { - return isLeapYear(year) ? 366 : 365; - } - hooks.parseTwoDigitYear = function(input) { - return toInt(input) + (toInt(input) > 68 ? 1900 : 2e3); - }; - var getSetYear = makeGetSet("FullYear", true); - function getIsLeapYear() { - return isLeapYear(this.year()); - } - function createDate(y3, m4, d4, h3, M3, s4, ms) { - var date; - if (y3 < 100 && y3 >= 0) { - date = new Date(y3 + 400, m4, d4, h3, M3, s4, ms); - if (isFinite(date.getFullYear())) { - date.setFullYear(y3); - } - } else { - date = new Date(y3, m4, d4, h3, M3, s4, ms); - } - return date; - } - function createUTCDate(y3) { - var date, args; - if (y3 < 100 && y3 >= 0) { - args = Array.prototype.slice.call(arguments); - args[0] = y3 + 400; - date = new Date(Date.UTC.apply(null, args)); - if (isFinite(date.getUTCFullYear())) { - date.setUTCFullYear(y3); - } - } else { - date = new Date(Date.UTC.apply(null, arguments)); - } - return date; - } - function firstWeekOffset(year, dow, doy) { - var fwd = 7 + dow - doy, fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7; - return -fwdlw + fwd - 1; - } - function dayOfYearFromWeeks(year, week, weekday, dow, doy) { - var localWeekday = (7 + weekday - dow) % 7, weekOffset = firstWeekOffset(year, dow, doy), dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, resYear, resDayOfYear; - if (dayOfYear <= 0) { - resYear = year - 1; - resDayOfYear = daysInYear2(resYear) + dayOfYear; - } else if (dayOfYear > daysInYear2(year)) { - resYear = year + 1; - resDayOfYear = dayOfYear - daysInYear2(year); - } else { - resYear = year; - resDayOfYear = dayOfYear; - } - return { - year: resYear, - dayOfYear: resDayOfYear - }; - } - function weekOfYear(mom, dow, doy) { - var weekOffset = firstWeekOffset(mom.year(), dow, doy), week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, resWeek, resYear; - if (week < 1) { - resYear = mom.year() - 1; - resWeek = week + weeksInYear(resYear, dow, doy); - } else if (week > weeksInYear(mom.year(), dow, doy)) { - resWeek = week - weeksInYear(mom.year(), dow, doy); - resYear = mom.year() + 1; - } else { - resYear = mom.year(); - resWeek = week; - } - return { - week: resWeek, - year: resYear - }; - } - function weeksInYear(year, dow, doy) { - var weekOffset = firstWeekOffset(year, dow, doy), weekOffsetNext = firstWeekOffset(year + 1, dow, doy); - return (daysInYear2(year) - weekOffset + weekOffsetNext) / 7; - } - addFormatToken("w", ["ww", 2], "wo", "week"); - addFormatToken("W", ["WW", 2], "Wo", "isoWeek"); - addUnitAlias("week", "w"); - addUnitAlias("isoWeek", "W"); - addUnitPriority("week", 5); - addUnitPriority("isoWeek", 5); - addRegexToken("w", match1to2); - addRegexToken("ww", match1to2, match2); - addRegexToken("W", match1to2); - addRegexToken("WW", match1to2, match2); - addWeekParseToken( - ["w", "ww", "W", "WW"], - function(input, week, config5, token2) { - week[token2.substr(0, 1)] = toInt(input); - } - ); - function localeWeek(mom) { - return weekOfYear(mom, this._week.dow, this._week.doy).week; - } - var defaultLocaleWeek = { - dow: 0, - doy: 6 - }; - function localeFirstDayOfWeek() { - return this._week.dow; - } - function localeFirstDayOfYear() { - return this._week.doy; - } - function getSetWeek(input) { - var week = this.localeData().week(this); - return input == null ? week : this.add((input - week) * 7, "d"); - } - function getSetISOWeek(input) { - var week = weekOfYear(this, 1, 4).week; - return input == null ? week : this.add((input - week) * 7, "d"); - } - addFormatToken("d", 0, "do", "day"); - addFormatToken("dd", 0, 0, function(format9) { - return this.localeData().weekdaysMin(this, format9); - }); - addFormatToken("ddd", 0, 0, function(format9) { - return this.localeData().weekdaysShort(this, format9); - }); - addFormatToken("dddd", 0, 0, function(format9) { - return this.localeData().weekdays(this, format9); - }); - addFormatToken("e", 0, 0, "weekday"); - addFormatToken("E", 0, 0, "isoWeekday"); - addUnitAlias("day", "d"); - addUnitAlias("weekday", "e"); - addUnitAlias("isoWeekday", "E"); - addUnitPriority("day", 11); - addUnitPriority("weekday", 11); - addUnitPriority("isoWeekday", 11); - addRegexToken("d", match1to2); - addRegexToken("e", match1to2); - addRegexToken("E", match1to2); - addRegexToken("dd", function(isStrict, locale3) { - return locale3.weekdaysMinRegex(isStrict); - }); - addRegexToken("ddd", function(isStrict, locale3) { - return locale3.weekdaysShortRegex(isStrict); - }); - addRegexToken("dddd", function(isStrict, locale3) { - return locale3.weekdaysRegex(isStrict); - }); - addWeekParseToken(["dd", "ddd", "dddd"], function(input, week, config5, token2) { - var weekday = config5._locale.weekdaysParse(input, token2, config5._strict); - if (weekday != null) { - week.d = weekday; - } else { - getParsingFlags(config5).invalidWeekday = input; - } - }); - addWeekParseToken(["d", "e", "E"], function(input, week, config5, token2) { - week[token2] = toInt(input); - }); - function parseWeekday(input, locale3) { - if (typeof input !== "string") { - return input; - } - if (!isNaN(input)) { - return parseInt(input, 10); - } - input = locale3.weekdaysParse(input); - if (typeof input === "number") { - return input; - } - return null; - } - function parseIsoWeekday(input, locale3) { - if (typeof input === "string") { - return locale3.weekdaysParse(input) % 7 || 7; - } - return isNaN(input) ? null : input; - } - function shiftWeekdays(ws, n3) { - return ws.slice(n3, 7).concat(ws.slice(0, n3)); - } - var defaultLocaleWeekdays = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), defaultLocaleWeekdaysShort = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), defaultLocaleWeekdaysMin = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), defaultWeekdaysRegex = matchWord, defaultWeekdaysShortRegex = matchWord, defaultWeekdaysMinRegex = matchWord; - function localeWeekdays(m4, format9) { - var weekdays = isArray5(this._weekdays) ? this._weekdays : this._weekdays[m4 && m4 !== true && this._weekdays.isFormat.test(format9) ? "format" : "standalone"]; - return m4 === true ? shiftWeekdays(weekdays, this._week.dow) : m4 ? weekdays[m4.day()] : weekdays; - } - function localeWeekdaysShort(m4) { - return m4 === true ? shiftWeekdays(this._weekdaysShort, this._week.dow) : m4 ? this._weekdaysShort[m4.day()] : this._weekdaysShort; - } - function localeWeekdaysMin(m4) { - return m4 === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m4 ? this._weekdaysMin[m4.day()] : this._weekdaysMin; - } - function handleStrictParse$1(weekdayName, format9, strict) { - var i4, ii, mom, llc = weekdayName.toLocaleLowerCase(); - if (!this._weekdaysParse) { - this._weekdaysParse = []; - this._shortWeekdaysParse = []; - this._minWeekdaysParse = []; - for (i4 = 0; i4 < 7; ++i4) { - mom = createUTC([2e3, 1]).day(i4); - this._minWeekdaysParse[i4] = this.weekdaysMin( - mom, - "" - ).toLocaleLowerCase(); - this._shortWeekdaysParse[i4] = this.weekdaysShort( - mom, - "" - ).toLocaleLowerCase(); - this._weekdaysParse[i4] = this.weekdays(mom, "").toLocaleLowerCase(); - } - } - if (strict) { - if (format9 === "dddd") { - ii = indexOf.call(this._weekdaysParse, llc); - return ii !== -1 ? ii : null; - } else if (format9 === "ddd") { - ii = indexOf.call(this._shortWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } - } else { - if (format9 === "dddd") { - ii = indexOf.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._shortWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else if (format9 === "ddd") { - ii = indexOf.call(this._shortWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._minWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._shortWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } - } - } - function localeWeekdaysParse(weekdayName, format9, strict) { - var i4, mom, regex; - if (this._weekdaysParseExact) { - return handleStrictParse$1.call(this, weekdayName, format9, strict); - } - if (!this._weekdaysParse) { - this._weekdaysParse = []; - this._minWeekdaysParse = []; - this._shortWeekdaysParse = []; - this._fullWeekdaysParse = []; - } - for (i4 = 0; i4 < 7; i4++) { - mom = createUTC([2e3, 1]).day(i4); - if (strict && !this._fullWeekdaysParse[i4]) { - this._fullWeekdaysParse[i4] = new RegExp( - "^" + this.weekdays(mom, "").replace(".", "\\.?") + "$", - "i" - ); - this._shortWeekdaysParse[i4] = new RegExp( - "^" + this.weekdaysShort(mom, "").replace(".", "\\.?") + "$", - "i" - ); - this._minWeekdaysParse[i4] = new RegExp( - "^" + this.weekdaysMin(mom, "").replace(".", "\\.?") + "$", - "i" - ); - } - if (!this._weekdaysParse[i4]) { - regex = "^" + this.weekdays(mom, "") + "|^" + this.weekdaysShort(mom, "") + "|^" + this.weekdaysMin(mom, ""); - this._weekdaysParse[i4] = new RegExp(regex.replace(".", ""), "i"); - } - if (strict && format9 === "dddd" && this._fullWeekdaysParse[i4].test(weekdayName)) { - return i4; - } else if (strict && format9 === "ddd" && this._shortWeekdaysParse[i4].test(weekdayName)) { - return i4; - } else if (strict && format9 === "dd" && this._minWeekdaysParse[i4].test(weekdayName)) { - return i4; - } else if (!strict && this._weekdaysParse[i4].test(weekdayName)) { - return i4; - } - } - } - function getSetDayOfWeek(input) { - if (!this.isValid()) { - return input != null ? this : NaN; - } - var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); - if (input != null) { - input = parseWeekday(input, this.localeData()); - return this.add(input - day, "d"); - } else { - return day; - } - } - function getSetLocaleDayOfWeek(input) { - if (!this.isValid()) { - return input != null ? this : NaN; - } - var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; - return input == null ? weekday : this.add(input - weekday, "d"); - } - function getSetISODayOfWeek(input) { - if (!this.isValid()) { - return input != null ? this : NaN; - } - if (input != null) { - var weekday = parseIsoWeekday(input, this.localeData()); - return this.day(this.day() % 7 ? weekday : weekday - 7); - } else { - return this.day() || 7; - } - } - function weekdaysRegex(isStrict) { - if (this._weekdaysParseExact) { - if (!hasOwnProp(this, "_weekdaysRegex")) { - computeWeekdaysParse.call(this); - } - if (isStrict) { - return this._weekdaysStrictRegex; - } else { - return this._weekdaysRegex; - } - } else { - if (!hasOwnProp(this, "_weekdaysRegex")) { - this._weekdaysRegex = defaultWeekdaysRegex; - } - return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex; - } - } - function weekdaysShortRegex(isStrict) { - if (this._weekdaysParseExact) { - if (!hasOwnProp(this, "_weekdaysRegex")) { - computeWeekdaysParse.call(this); - } - if (isStrict) { - return this._weekdaysShortStrictRegex; - } else { - return this._weekdaysShortRegex; - } - } else { - if (!hasOwnProp(this, "_weekdaysShortRegex")) { - this._weekdaysShortRegex = defaultWeekdaysShortRegex; - } - return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex; - } - } - function weekdaysMinRegex(isStrict) { - if (this._weekdaysParseExact) { - if (!hasOwnProp(this, "_weekdaysRegex")) { - computeWeekdaysParse.call(this); - } - if (isStrict) { - return this._weekdaysMinStrictRegex; - } else { - return this._weekdaysMinRegex; - } - } else { - if (!hasOwnProp(this, "_weekdaysMinRegex")) { - this._weekdaysMinRegex = defaultWeekdaysMinRegex; - } - return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex; - } - } - function computeWeekdaysParse() { - function cmpLenRev(a4, b2) { - return b2.length - a4.length; - } - var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [], i4, mom, minp, shortp, longp; - for (i4 = 0; i4 < 7; i4++) { - mom = createUTC([2e3, 1]).day(i4); - minp = regexEscape(this.weekdaysMin(mom, "")); - shortp = regexEscape(this.weekdaysShort(mom, "")); - longp = regexEscape(this.weekdays(mom, "")); - minPieces.push(minp); - shortPieces.push(shortp); - longPieces.push(longp); - mixedPieces.push(minp); - mixedPieces.push(shortp); - mixedPieces.push(longp); - } - minPieces.sort(cmpLenRev); - shortPieces.sort(cmpLenRev); - longPieces.sort(cmpLenRev); - mixedPieces.sort(cmpLenRev); - this._weekdaysRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i"); - this._weekdaysShortRegex = this._weekdaysRegex; - this._weekdaysMinRegex = this._weekdaysRegex; - this._weekdaysStrictRegex = new RegExp( - "^(" + longPieces.join("|") + ")", - "i" - ); - this._weekdaysShortStrictRegex = new RegExp( - "^(" + shortPieces.join("|") + ")", - "i" - ); - this._weekdaysMinStrictRegex = new RegExp( - "^(" + minPieces.join("|") + ")", - "i" - ); - } - function hFormat() { - return this.hours() % 12 || 12; - } - function kFormat() { - return this.hours() || 24; - } - addFormatToken("H", ["HH", 2], 0, "hour"); - addFormatToken("h", ["hh", 2], 0, hFormat); - addFormatToken("k", ["kk", 2], 0, kFormat); - addFormatToken("hmm", 0, 0, function() { - return "" + hFormat.apply(this) + zeroFill(this.minutes(), 2); - }); - addFormatToken("hmmss", 0, 0, function() { - return "" + hFormat.apply(this) + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2); - }); - addFormatToken("Hmm", 0, 0, function() { - return "" + this.hours() + zeroFill(this.minutes(), 2); - }); - addFormatToken("Hmmss", 0, 0, function() { - return "" + this.hours() + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2); - }); - function meridiem(token2, lowercase) { - addFormatToken(token2, 0, 0, function() { - return this.localeData().meridiem( - this.hours(), - this.minutes(), - lowercase - ); - }); - } - meridiem("a", true); - meridiem("A", false); - addUnitAlias("hour", "h"); - addUnitPriority("hour", 13); - function matchMeridiem(isStrict, locale3) { - return locale3._meridiemParse; - } - addRegexToken("a", matchMeridiem); - addRegexToken("A", matchMeridiem); - addRegexToken("H", match1to2); - addRegexToken("h", match1to2); - addRegexToken("k", match1to2); - addRegexToken("HH", match1to2, match2); - addRegexToken("hh", match1to2, match2); - addRegexToken("kk", match1to2, match2); - addRegexToken("hmm", match3to4); - addRegexToken("hmmss", match5to6); - addRegexToken("Hmm", match3to4); - addRegexToken("Hmmss", match5to6); - addParseToken(["H", "HH"], HOUR); - addParseToken(["k", "kk"], function(input, array, config5) { - var kInput = toInt(input); - array[HOUR] = kInput === 24 ? 0 : kInput; - }); - addParseToken(["a", "A"], function(input, array, config5) { - config5._isPm = config5._locale.isPM(input); - config5._meridiem = input; - }); - addParseToken(["h", "hh"], function(input, array, config5) { - array[HOUR] = toInt(input); - getParsingFlags(config5).bigHour = true; - }); - addParseToken("hmm", function(input, array, config5) { - var pos = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos)); - array[MINUTE] = toInt(input.substr(pos)); - getParsingFlags(config5).bigHour = true; - }); - addParseToken("hmmss", function(input, array, config5) { - var pos1 = input.length - 4, pos2 = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos1)); - array[MINUTE] = toInt(input.substr(pos1, 2)); - array[SECOND] = toInt(input.substr(pos2)); - getParsingFlags(config5).bigHour = true; - }); - addParseToken("Hmm", function(input, array, config5) { - var pos = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos)); - array[MINUTE] = toInt(input.substr(pos)); - }); - addParseToken("Hmmss", function(input, array, config5) { - var pos1 = input.length - 4, pos2 = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos1)); - array[MINUTE] = toInt(input.substr(pos1, 2)); - array[SECOND] = toInt(input.substr(pos2)); - }); - function localeIsPM(input) { - return (input + "").toLowerCase().charAt(0) === "p"; - } - var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i, getSetHour = makeGetSet("Hours", true); - function localeMeridiem(hours2, minutes2, isLower) { - if (hours2 > 11) { - return isLower ? "pm" : "PM"; - } else { - return isLower ? "am" : "AM"; - } - } - var baseConfig = { - calendar: defaultCalendar, - longDateFormat: defaultLongDateFormat, - invalidDate: defaultInvalidDate, - ordinal: defaultOrdinal, - dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse, - relativeTime: defaultRelativeTime, - months: defaultLocaleMonths, - monthsShort: defaultLocaleMonthsShort, - week: defaultLocaleWeek, - weekdays: defaultLocaleWeekdays, - weekdaysMin: defaultLocaleWeekdaysMin, - weekdaysShort: defaultLocaleWeekdaysShort, - meridiemParse: defaultLocaleMeridiemParse - }; - var locales = {}, localeFamilies = {}, globalLocale; - function commonPrefix(arr1, arr2) { - var i4, minl = Math.min(arr1.length, arr2.length); - for (i4 = 0; i4 < minl; i4 += 1) { - if (arr1[i4] !== arr2[i4]) { - return i4; - } - } - return minl; - } - function normalizeLocale(key2) { - return key2 ? key2.toLowerCase().replace("_", "-") : key2; - } - function chooseLocale(names) { - var i4 = 0, j, next, locale3, split; - while (i4 < names.length) { - split = normalizeLocale(names[i4]).split("-"); - j = split.length; - next = normalizeLocale(names[i4 + 1]); - next = next ? next.split("-") : null; - while (j > 0) { - locale3 = loadLocale(split.slice(0, j).join("-")); - if (locale3) { - return locale3; - } - if (next && next.length >= j && commonPrefix(split, next) >= j - 1) { - break; - } - j--; - } - i4++; - } - return globalLocale; - } - function isLocaleNameSane(name319) { - return name319.match("^[^/\\\\]*$") != null; - } - function loadLocale(name319) { - var oldLocale = null, aliasedRequire; - if (locales[name319] === void 0 && typeof module2 !== "undefined" && module2 && module2.exports && isLocaleNameSane(name319)) { - try { - oldLocale = globalLocale._abbr; - aliasedRequire = require; - aliasedRequire("./locale/" + name319); - getSetGlobalLocale(oldLocale); - } catch (e5) { - locales[name319] = null; - } - } - return locales[name319]; - } - function getSetGlobalLocale(key2, values2) { - var data2; - if (key2) { - if (isUndefined2(values2)) { - data2 = getLocale(key2); - } else { - data2 = defineLocale(key2, values2); - } - if (data2) { - globalLocale = data2; - } else { - if (typeof console !== "undefined" && console.warn) { - console.warn( - "Locale " + key2 + " not found. Did you forget to load it?" - ); - } - } - } - return globalLocale._abbr; - } - function defineLocale(name319, config5) { - if (config5 !== null) { - var locale3, parentConfig = baseConfig; - config5.abbr = name319; - if (locales[name319] != null) { - deprecateSimple( - "defineLocaleOverride", - "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info." - ); - parentConfig = locales[name319]._config; - } else if (config5.parentLocale != null) { - if (locales[config5.parentLocale] != null) { - parentConfig = locales[config5.parentLocale]._config; - } else { - locale3 = loadLocale(config5.parentLocale); - if (locale3 != null) { - parentConfig = locale3._config; - } else { - if (!localeFamilies[config5.parentLocale]) { - localeFamilies[config5.parentLocale] = []; - } - localeFamilies[config5.parentLocale].push({ - name: name319, - config: config5 - }); - return null; - } - } - } - locales[name319] = new Locale(mergeConfigs(parentConfig, config5)); - if (localeFamilies[name319]) { - localeFamilies[name319].forEach(function(x2) { - defineLocale(x2.name, x2.config); - }); - } - getSetGlobalLocale(name319); - return locales[name319]; - } else { - delete locales[name319]; - return null; - } - } - function updateLocale(name319, config5) { - if (config5 != null) { - var locale3, tmpLocale, parentConfig = baseConfig; - if (locales[name319] != null && locales[name319].parentLocale != null) { - locales[name319].set(mergeConfigs(locales[name319]._config, config5)); - } else { - tmpLocale = loadLocale(name319); - if (tmpLocale != null) { - parentConfig = tmpLocale._config; - } - config5 = mergeConfigs(parentConfig, config5); - if (tmpLocale == null) { - config5.abbr = name319; - } - locale3 = new Locale(config5); - locale3.parentLocale = locales[name319]; - locales[name319] = locale3; - } - getSetGlobalLocale(name319); - } else { - if (locales[name319] != null) { - if (locales[name319].parentLocale != null) { - locales[name319] = locales[name319].parentLocale; - if (name319 === getSetGlobalLocale()) { - getSetGlobalLocale(name319); - } - } else if (locales[name319] != null) { - delete locales[name319]; - } - } - } - return locales[name319]; - } - function getLocale(key2) { - var locale3; - if (key2 && key2._locale && key2._locale._abbr) { - key2 = key2._locale._abbr; - } - if (!key2) { - return globalLocale; - } - if (!isArray5(key2)) { - locale3 = loadLocale(key2); - if (locale3) { - return locale3; - } - key2 = [key2]; - } - return chooseLocale(key2); - } - function listLocales() { - return keys(locales); - } - function checkOverflow(m4) { - var overflow, a4 = m4._a; - if (a4 && getParsingFlags(m4).overflow === -2) { - overflow = a4[MONTH] < 0 || a4[MONTH] > 11 ? MONTH : a4[DATE] < 1 || a4[DATE] > daysInMonth(a4[YEAR], a4[MONTH]) ? DATE : a4[HOUR] < 0 || a4[HOUR] > 24 || a4[HOUR] === 24 && (a4[MINUTE] !== 0 || a4[SECOND] !== 0 || a4[MILLISECOND] !== 0) ? HOUR : a4[MINUTE] < 0 || a4[MINUTE] > 59 ? MINUTE : a4[SECOND] < 0 || a4[SECOND] > 59 ? SECOND : a4[MILLISECOND] < 0 || a4[MILLISECOND] > 999 ? MILLISECOND : -1; - if (getParsingFlags(m4)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) { - overflow = DATE; - } - if (getParsingFlags(m4)._overflowWeeks && overflow === -1) { - overflow = WEEK; - } - if (getParsingFlags(m4)._overflowWeekday && overflow === -1) { - overflow = WEEKDAY; - } - getParsingFlags(m4).overflow = overflow; - } - return m4; - } - var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, tzRegex = /Z|[+-]\d\d(?::?\d\d)?/, isoDates = [ - ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/], - ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/], - ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/], - ["GGGG-[W]WW", /\d{4}-W\d\d/, false], - ["YYYY-DDD", /\d{4}-\d{3}/], - ["YYYY-MM", /\d{4}-\d\d/, false], - ["YYYYYYMMDD", /[+-]\d{10}/], - ["YYYYMMDD", /\d{8}/], - ["GGGG[W]WWE", /\d{4}W\d{3}/], - ["GGGG[W]WW", /\d{4}W\d{2}/, false], - ["YYYYDDD", /\d{7}/], - ["YYYYMM", /\d{6}/, false], - ["YYYY", /\d{4}/, false] - ], isoTimes = [ - ["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/], - ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/], - ["HH:mm:ss", /\d\d:\d\d:\d\d/], - ["HH:mm", /\d\d:\d\d/], - ["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/], - ["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/], - ["HHmmss", /\d\d\d\d\d\d/], - ["HHmm", /\d\d\d\d/], - ["HH", /\d\d/] - ], aspNetJsonRegex = /^\/?Date\((-?\d+)/i, rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, obsOffsets = { - UT: 0, - GMT: 0, - EDT: -4 * 60, - EST: -5 * 60, - CDT: -5 * 60, - CST: -6 * 60, - MDT: -6 * 60, - MST: -7 * 60, - PDT: -7 * 60, - PST: -8 * 60 - }; - function configFromISO(config5) { - var i4, l2, string6 = config5._i, match5 = extendedIsoRegex.exec(string6) || basicIsoRegex.exec(string6), allowTime, dateFormat, timeFormat, tzFormat, isoDatesLen = isoDates.length, isoTimesLen = isoTimes.length; - if (match5) { - getParsingFlags(config5).iso = true; - for (i4 = 0, l2 = isoDatesLen; i4 < l2; i4++) { - if (isoDates[i4][1].exec(match5[1])) { - dateFormat = isoDates[i4][0]; - allowTime = isoDates[i4][2] !== false; - break; - } - } - if (dateFormat == null) { - config5._isValid = false; - return; - } - if (match5[3]) { - for (i4 = 0, l2 = isoTimesLen; i4 < l2; i4++) { - if (isoTimes[i4][1].exec(match5[3])) { - timeFormat = (match5[2] || " ") + isoTimes[i4][0]; - break; - } - } - if (timeFormat == null) { - config5._isValid = false; - return; - } - } - if (!allowTime && timeFormat != null) { - config5._isValid = false; - return; - } - if (match5[4]) { - if (tzRegex.exec(match5[4])) { - tzFormat = "Z"; - } else { - config5._isValid = false; - return; - } - } - config5._f = dateFormat + (timeFormat || "") + (tzFormat || ""); - configFromStringAndFormat(config5); - } else { - config5._isValid = false; - } - } - function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) { - var result = [ - untruncateYear(yearStr), - defaultLocaleMonthsShort.indexOf(monthStr), - parseInt(dayStr, 10), - parseInt(hourStr, 10), - parseInt(minuteStr, 10) - ]; - if (secondStr) { - result.push(parseInt(secondStr, 10)); - } - return result; - } - function untruncateYear(yearStr) { - var year = parseInt(yearStr, 10); - if (year <= 49) { - return 2e3 + year; - } else if (year <= 999) { - return 1900 + year; - } - return year; - } - function preprocessRFC2822(s4) { - return s4.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, ""); - } - function checkWeekday(weekdayStr, parsedInput, config5) { - if (weekdayStr) { - var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr), weekdayActual = new Date( - parsedInput[0], - parsedInput[1], - parsedInput[2] - ).getDay(); - if (weekdayProvided !== weekdayActual) { - getParsingFlags(config5).weekdayMismatch = true; - config5._isValid = false; - return false; - } - } - return true; - } - function calculateOffset(obsOffset, militaryOffset, numOffset) { - if (obsOffset) { - return obsOffsets[obsOffset]; - } else if (militaryOffset) { - return 0; - } else { - var hm = parseInt(numOffset, 10), m4 = hm % 100, h3 = (hm - m4) / 100; - return h3 * 60 + m4; - } - } - function configFromRFC2822(config5) { - var match5 = rfc2822.exec(preprocessRFC2822(config5._i)), parsedArray; - if (match5) { - parsedArray = extractFromRFC2822Strings( - match5[4], - match5[3], - match5[2], - match5[5], - match5[6], - match5[7] - ); - if (!checkWeekday(match5[1], parsedArray, config5)) { - return; - } - config5._a = parsedArray; - config5._tzm = calculateOffset(match5[8], match5[9], match5[10]); - config5._d = createUTCDate.apply(null, config5._a); - config5._d.setUTCMinutes(config5._d.getUTCMinutes() - config5._tzm); - getParsingFlags(config5).rfc2822 = true; - } else { - config5._isValid = false; - } - } - function configFromString(config5) { - var matched = aspNetJsonRegex.exec(config5._i); - if (matched !== null) { - config5._d = new Date(+matched[1]); - return; - } - configFromISO(config5); - if (config5._isValid === false) { - delete config5._isValid; - } else { - return; - } - configFromRFC2822(config5); - if (config5._isValid === false) { - delete config5._isValid; - } else { - return; - } - if (config5._strict) { - config5._isValid = false; - } else { - hooks.createFromInputFallback(config5); - } - } - hooks.createFromInputFallback = deprecate( - "value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.", - function(config5) { - config5._d = new Date(config5._i + (config5._useUTC ? " UTC" : "")); - } - ); - function defaults2(a4, b2, c3) { - if (a4 != null) { - return a4; - } - if (b2 != null) { - return b2; - } - return c3; - } - function currentDateArray(config5) { - var nowValue = new Date(hooks.now()); - if (config5._useUTC) { - return [ - nowValue.getUTCFullYear(), - nowValue.getUTCMonth(), - nowValue.getUTCDate() - ]; - } - return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()]; - } - function configFromArray(config5) { - var i4, date, input = [], currentDate, expectedWeekday, yearToUse; - if (config5._d) { - return; - } - currentDate = currentDateArray(config5); - if (config5._w && config5._a[DATE] == null && config5._a[MONTH] == null) { - dayOfYearFromWeekInfo(config5); - } - if (config5._dayOfYear != null) { - yearToUse = defaults2(config5._a[YEAR], currentDate[YEAR]); - if (config5._dayOfYear > daysInYear2(yearToUse) || config5._dayOfYear === 0) { - getParsingFlags(config5)._overflowDayOfYear = true; - } - date = createUTCDate(yearToUse, 0, config5._dayOfYear); - config5._a[MONTH] = date.getUTCMonth(); - config5._a[DATE] = date.getUTCDate(); - } - for (i4 = 0; i4 < 3 && config5._a[i4] == null; ++i4) { - config5._a[i4] = input[i4] = currentDate[i4]; - } - for (; i4 < 7; i4++) { - config5._a[i4] = input[i4] = config5._a[i4] == null ? i4 === 2 ? 1 : 0 : config5._a[i4]; - } - if (config5._a[HOUR] === 24 && config5._a[MINUTE] === 0 && config5._a[SECOND] === 0 && config5._a[MILLISECOND] === 0) { - config5._nextDay = true; - config5._a[HOUR] = 0; - } - config5._d = (config5._useUTC ? createUTCDate : createDate).apply( - null, - input - ); - expectedWeekday = config5._useUTC ? config5._d.getUTCDay() : config5._d.getDay(); - if (config5._tzm != null) { - config5._d.setUTCMinutes(config5._d.getUTCMinutes() - config5._tzm); - } - if (config5._nextDay) { - config5._a[HOUR] = 24; - } - if (config5._w && typeof config5._w.d !== "undefined" && config5._w.d !== expectedWeekday) { - getParsingFlags(config5).weekdayMismatch = true; - } - } - function dayOfYearFromWeekInfo(config5) { - var w2, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek; - w2 = config5._w; - if (w2.GG != null || w2.W != null || w2.E != null) { - dow = 1; - doy = 4; - weekYear = defaults2( - w2.GG, - config5._a[YEAR], - weekOfYear(createLocal(), 1, 4).year - ); - week = defaults2(w2.W, 1); - weekday = defaults2(w2.E, 1); - if (weekday < 1 || weekday > 7) { - weekdayOverflow = true; - } - } else { - dow = config5._locale._week.dow; - doy = config5._locale._week.doy; - curWeek = weekOfYear(createLocal(), dow, doy); - weekYear = defaults2(w2.gg, config5._a[YEAR], curWeek.year); - week = defaults2(w2.w, curWeek.week); - if (w2.d != null) { - weekday = w2.d; - if (weekday < 0 || weekday > 6) { - weekdayOverflow = true; - } - } else if (w2.e != null) { - weekday = w2.e + dow; - if (w2.e < 0 || w2.e > 6) { - weekdayOverflow = true; - } - } else { - weekday = dow; - } - } - if (week < 1 || week > weeksInYear(weekYear, dow, doy)) { - getParsingFlags(config5)._overflowWeeks = true; - } else if (weekdayOverflow != null) { - getParsingFlags(config5)._overflowWeekday = true; - } else { - temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy); - config5._a[YEAR] = temp.year; - config5._dayOfYear = temp.dayOfYear; - } - } - hooks.ISO_8601 = function() { - }; - hooks.RFC_2822 = function() { - }; - function configFromStringAndFormat(config5) { - if (config5._f === hooks.ISO_8601) { - configFromISO(config5); - return; - } - if (config5._f === hooks.RFC_2822) { - configFromRFC2822(config5); - return; - } - config5._a = []; - getParsingFlags(config5).empty = true; - var string6 = "" + config5._i, i4, parsedInput, tokens2, token2, skipped, stringLength = string6.length, totalParsedInputLength = 0, era, tokenLen; - tokens2 = expandFormat(config5._f, config5._locale).match(formattingTokens) || []; - tokenLen = tokens2.length; - for (i4 = 0; i4 < tokenLen; i4++) { - token2 = tokens2[i4]; - parsedInput = (string6.match(getParseRegexForToken(token2, config5)) || [])[0]; - if (parsedInput) { - skipped = string6.substr(0, string6.indexOf(parsedInput)); - if (skipped.length > 0) { - getParsingFlags(config5).unusedInput.push(skipped); - } - string6 = string6.slice( - string6.indexOf(parsedInput) + parsedInput.length - ); - totalParsedInputLength += parsedInput.length; - } - if (formatTokenFunctions[token2]) { - if (parsedInput) { - getParsingFlags(config5).empty = false; - } else { - getParsingFlags(config5).unusedTokens.push(token2); - } - addTimeToArrayFromToken(token2, parsedInput, config5); - } else if (config5._strict && !parsedInput) { - getParsingFlags(config5).unusedTokens.push(token2); - } - } - getParsingFlags(config5).charsLeftOver = stringLength - totalParsedInputLength; - if (string6.length > 0) { - getParsingFlags(config5).unusedInput.push(string6); - } - if (config5._a[HOUR] <= 12 && getParsingFlags(config5).bigHour === true && config5._a[HOUR] > 0) { - getParsingFlags(config5).bigHour = void 0; - } - getParsingFlags(config5).parsedDateParts = config5._a.slice(0); - getParsingFlags(config5).meridiem = config5._meridiem; - config5._a[HOUR] = meridiemFixWrap( - config5._locale, - config5._a[HOUR], - config5._meridiem - ); - era = getParsingFlags(config5).era; - if (era !== null) { - config5._a[YEAR] = config5._locale.erasConvertYear(era, config5._a[YEAR]); - } - configFromArray(config5); - checkOverflow(config5); - } - function meridiemFixWrap(locale3, hour, meridiem2) { - var isPm; - if (meridiem2 == null) { - return hour; - } - if (locale3.meridiemHour != null) { - return locale3.meridiemHour(hour, meridiem2); - } else if (locale3.isPM != null) { - isPm = locale3.isPM(meridiem2); - if (isPm && hour < 12) { - hour += 12; - } - if (!isPm && hour === 12) { - hour = 0; - } - return hour; - } else { - return hour; - } - } - function configFromStringAndArray(config5) { - var tempConfig, bestMoment, scoreToBeat, i4, currentScore, validFormatFound, bestFormatIsValid = false, configfLen = config5._f.length; - if (configfLen === 0) { - getParsingFlags(config5).invalidFormat = true; - config5._d = new Date(NaN); - return; - } - for (i4 = 0; i4 < configfLen; i4++) { - currentScore = 0; - validFormatFound = false; - tempConfig = copyConfig({}, config5); - if (config5._useUTC != null) { - tempConfig._useUTC = config5._useUTC; - } - tempConfig._f = config5._f[i4]; - configFromStringAndFormat(tempConfig); - if (isValid2(tempConfig)) { - validFormatFound = true; - } - currentScore += getParsingFlags(tempConfig).charsLeftOver; - currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10; - getParsingFlags(tempConfig).score = currentScore; - if (!bestFormatIsValid) { - if (scoreToBeat == null || currentScore < scoreToBeat || validFormatFound) { - scoreToBeat = currentScore; - bestMoment = tempConfig; - if (validFormatFound) { - bestFormatIsValid = true; - } - } - } else { - if (currentScore < scoreToBeat) { - scoreToBeat = currentScore; - bestMoment = tempConfig; - } - } - } - extend3(config5, bestMoment || tempConfig); - } - function configFromObject(config5) { - if (config5._d) { - return; - } - var i4 = normalizeObjectUnits(config5._i), dayOrDate = i4.day === void 0 ? i4.date : i4.day; - config5._a = map4( - [i4.year, i4.month, dayOrDate, i4.hour, i4.minute, i4.second, i4.millisecond], - function(obj) { - return obj && parseInt(obj, 10); - } - ); - configFromArray(config5); - } - function createFromConfig(config5) { - var res = new Moment(checkOverflow(prepareConfig(config5))); - if (res._nextDay) { - res.add(1, "d"); - res._nextDay = void 0; - } - return res; - } - function prepareConfig(config5) { - var input = config5._i, format9 = config5._f; - config5._locale = config5._locale || getLocale(config5._l); - if (input === null || format9 === void 0 && input === "") { - return createInvalid({ nullInput: true }); - } - if (typeof input === "string") { - config5._i = input = config5._locale.preparse(input); - } - if (isMoment(input)) { - return new Moment(checkOverflow(input)); - } else if (isDate4(input)) { - config5._d = input; - } else if (isArray5(format9)) { - configFromStringAndArray(config5); - } else if (format9) { - configFromStringAndFormat(config5); - } else { - configFromInput(config5); - } - if (!isValid2(config5)) { - config5._d = null; - } - return config5; - } - function configFromInput(config5) { - var input = config5._i; - if (isUndefined2(input)) { - config5._d = new Date(hooks.now()); - } else if (isDate4(input)) { - config5._d = new Date(input.valueOf()); - } else if (typeof input === "string") { - configFromString(config5); - } else if (isArray5(input)) { - config5._a = map4(input.slice(0), function(obj) { - return parseInt(obj, 10); - }); - configFromArray(config5); - } else if (isObject4(input)) { - configFromObject(config5); - } else if (isNumber4(input)) { - config5._d = new Date(input); - } else { - hooks.createFromInputFallback(config5); - } - } - function createLocalOrUTC(input, format9, locale3, strict, isUTC) { - var c3 = {}; - if (format9 === true || format9 === false) { - strict = format9; - format9 = void 0; - } - if (locale3 === true || locale3 === false) { - strict = locale3; - locale3 = void 0; - } - if (isObject4(input) && isObjectEmpty(input) || isArray5(input) && input.length === 0) { - input = void 0; - } - c3._isAMomentObject = true; - c3._useUTC = c3._isUTC = isUTC; - c3._l = locale3; - c3._i = input; - c3._f = format9; - c3._strict = strict; - return createFromConfig(c3); - } - function createLocal(input, format9, locale3, strict) { - return createLocalOrUTC(input, format9, locale3, strict, false); - } - var prototypeMin = deprecate( - "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/", - function() { - var other = createLocal.apply(null, arguments); - if (this.isValid() && other.isValid()) { - return other < this ? this : other; - } else { - return createInvalid(); - } - } - ), prototypeMax = deprecate( - "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/", - function() { - var other = createLocal.apply(null, arguments); - if (this.isValid() && other.isValid()) { - return other > this ? this : other; - } else { - return createInvalid(); - } - } - ); - function pickBy(fn, moments) { - var res, i4; - if (moments.length === 1 && isArray5(moments[0])) { - moments = moments[0]; - } - if (!moments.length) { - return createLocal(); - } - res = moments[0]; - for (i4 = 1; i4 < moments.length; ++i4) { - if (!moments[i4].isValid() || moments[i4][fn](res)) { - res = moments[i4]; - } - } - return res; - } - function min5() { - var args = [].slice.call(arguments, 0); - return pickBy("isBefore", args); - } - function max5() { - var args = [].slice.call(arguments, 0); - return pickBy("isAfter", args); - } - var now = function() { - return Date.now ? Date.now() : +new Date(); - }; - var ordering = [ - "year", - "quarter", - "month", - "week", - "day", - "hour", - "minute", - "second", - "millisecond" - ]; - function isDurationValid(m4) { - var key2, unitHasDecimal = false, i4, orderLen = ordering.length; - for (key2 in m4) { - if (hasOwnProp(m4, key2) && !(indexOf.call(ordering, key2) !== -1 && (m4[key2] == null || !isNaN(m4[key2])))) { - return false; - } - } - for (i4 = 0; i4 < orderLen; ++i4) { - if (m4[ordering[i4]]) { - if (unitHasDecimal) { - return false; - } - if (parseFloat(m4[ordering[i4]]) !== toInt(m4[ordering[i4]])) { - unitHasDecimal = true; - } - } - } - return true; - } - function isValid$1() { - return this._isValid; - } - function createInvalid$1() { - return createDuration(NaN); - } - function Duration(duration) { - var normalizedInput = normalizeObjectUnits(duration), years2 = normalizedInput.year || 0, quarters = normalizedInput.quarter || 0, months2 = normalizedInput.month || 0, weeks2 = normalizedInput.week || normalizedInput.isoWeek || 0, days2 = normalizedInput.day || 0, hours2 = normalizedInput.hour || 0, minutes2 = normalizedInput.minute || 0, seconds2 = normalizedInput.second || 0, milliseconds2 = normalizedInput.millisecond || 0; - this._isValid = isDurationValid(normalizedInput); - this._milliseconds = +milliseconds2 + seconds2 * 1e3 + minutes2 * 6e4 + hours2 * 1e3 * 60 * 60; - this._days = +days2 + weeks2 * 7; - this._months = +months2 + quarters * 3 + years2 * 12; - this._data = {}; - this._locale = getLocale(); - this._bubble(); - } - function isDuration(obj) { - return obj instanceof Duration; - } - function absRound(number6) { - if (number6 < 0) { - return Math.round(-1 * number6) * -1; - } else { - return Math.round(number6); - } - } - function compareArrays(array1, array2, dontConvert) { - var len = Math.min(array1.length, array2.length), lengthDiff = Math.abs(array1.length - array2.length), diffs = 0, i4; - for (i4 = 0; i4 < len; i4++) { - if (dontConvert && array1[i4] !== array2[i4] || !dontConvert && toInt(array1[i4]) !== toInt(array2[i4])) { - diffs++; - } - } - return diffs + lengthDiff; - } - function offset2(token2, separator) { - addFormatToken(token2, 0, 0, function() { - var offset3 = this.utcOffset(), sign5 = "+"; - if (offset3 < 0) { - offset3 = -offset3; - sign5 = "-"; - } - return sign5 + zeroFill(~~(offset3 / 60), 2) + separator + zeroFill(~~offset3 % 60, 2); - }); - } - offset2("Z", ":"); - offset2("ZZ", ""); - addRegexToken("Z", matchShortOffset); - addRegexToken("ZZ", matchShortOffset); - addParseToken(["Z", "ZZ"], function(input, array, config5) { - config5._useUTC = true; - config5._tzm = offsetFromString(matchShortOffset, input); - }); - var chunkOffset = /([\+\-]|\d\d)/gi; - function offsetFromString(matcher, string6) { - var matches = (string6 || "").match(matcher), chunk, parts, minutes2; - if (matches === null) { - return null; - } - chunk = matches[matches.length - 1] || []; - parts = (chunk + "").match(chunkOffset) || ["-", 0, 0]; - minutes2 = +(parts[1] * 60) + toInt(parts[2]); - return minutes2 === 0 ? 0 : parts[0] === "+" ? minutes2 : -minutes2; - } - function cloneWithOffset(input, model) { - var res, diff3; - if (model._isUTC) { - res = model.clone(); - diff3 = (isMoment(input) || isDate4(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf(); - res._d.setTime(res._d.valueOf() + diff3); - hooks.updateOffset(res, false); - return res; - } else { - return createLocal(input).local(); - } - } - function getDateOffset(m4) { - return -Math.round(m4._d.getTimezoneOffset()); - } - hooks.updateOffset = function() { - }; - function getSetOffset(input, keepLocalTime, keepMinutes) { - var offset3 = this._offset || 0, localAdjust; - if (!this.isValid()) { - return input != null ? this : NaN; - } - if (input != null) { - if (typeof input === "string") { - input = offsetFromString(matchShortOffset, input); - if (input === null) { - return this; - } - } else if (Math.abs(input) < 16 && !keepMinutes) { - input = input * 60; - } - if (!this._isUTC && keepLocalTime) { - localAdjust = getDateOffset(this); - } - this._offset = input; - this._isUTC = true; - if (localAdjust != null) { - this.add(localAdjust, "m"); - } - if (offset3 !== input) { - if (!keepLocalTime || this._changeInProgress) { - addSubtract( - this, - createDuration(input - offset3, "m"), - 1, - false - ); - } else if (!this._changeInProgress) { - this._changeInProgress = true; - hooks.updateOffset(this, true); - this._changeInProgress = null; - } - } - return this; - } else { - return this._isUTC ? offset3 : getDateOffset(this); - } - } - function getSetZone(input, keepLocalTime) { - if (input != null) { - if (typeof input !== "string") { - input = -input; - } - this.utcOffset(input, keepLocalTime); - return this; - } else { - return -this.utcOffset(); - } - } - function setOffsetToUTC(keepLocalTime) { - return this.utcOffset(0, keepLocalTime); - } - function setOffsetToLocal(keepLocalTime) { - if (this._isUTC) { - this.utcOffset(0, keepLocalTime); - this._isUTC = false; - if (keepLocalTime) { - this.subtract(getDateOffset(this), "m"); - } - } - return this; - } - function setOffsetToParsedOffset() { - if (this._tzm != null) { - this.utcOffset(this._tzm, false, true); - } else if (typeof this._i === "string") { - var tZone = offsetFromString(matchOffset, this._i); - if (tZone != null) { - this.utcOffset(tZone); - } else { - this.utcOffset(0, true); - } - } - return this; - } - function hasAlignedHourOffset(input) { - if (!this.isValid()) { - return false; - } - input = input ? createLocal(input).utcOffset() : 0; - return (this.utcOffset() - input) % 60 === 0; - } - function isDaylightSavingTime() { - return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset(); - } - function isDaylightSavingTimeShifted() { - if (!isUndefined2(this._isDSTShifted)) { - return this._isDSTShifted; - } - var c3 = {}, other; - copyConfig(c3, this); - c3 = prepareConfig(c3); - if (c3._a) { - other = c3._isUTC ? createUTC(c3._a) : createLocal(c3._a); - this._isDSTShifted = this.isValid() && compareArrays(c3._a, other.toArray()) > 0; - } else { - this._isDSTShifted = false; - } - return this._isDSTShifted; - } - function isLocal() { - return this.isValid() ? !this._isUTC : false; - } - function isUtcOffset() { - return this.isValid() ? this._isUTC : false; - } - function isUtc() { - return this.isValid() ? this._isUTC && this._offset === 0 : false; - } - var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; - function createDuration(input, key2) { - var duration = input, match5 = null, sign5, ret, diffRes; - if (isDuration(input)) { - duration = { - ms: input._milliseconds, - d: input._days, - M: input._months - }; - } else if (isNumber4(input) || !isNaN(+input)) { - duration = {}; - if (key2) { - duration[key2] = +input; - } else { - duration.milliseconds = +input; - } - } else if (match5 = aspNetRegex.exec(input)) { - sign5 = match5[1] === "-" ? -1 : 1; - duration = { - y: 0, - d: toInt(match5[DATE]) * sign5, - h: toInt(match5[HOUR]) * sign5, - m: toInt(match5[MINUTE]) * sign5, - s: toInt(match5[SECOND]) * sign5, - ms: toInt(absRound(match5[MILLISECOND] * 1e3)) * sign5 - }; - } else if (match5 = isoRegex.exec(input)) { - sign5 = match5[1] === "-" ? -1 : 1; - duration = { - y: parseIso(match5[2], sign5), - M: parseIso(match5[3], sign5), - w: parseIso(match5[4], sign5), - d: parseIso(match5[5], sign5), - h: parseIso(match5[6], sign5), - m: parseIso(match5[7], sign5), - s: parseIso(match5[8], sign5) - }; - } else if (duration == null) { - duration = {}; - } else if (typeof duration === "object" && ("from" in duration || "to" in duration)) { - diffRes = momentsDifference( - createLocal(duration.from), - createLocal(duration.to) - ); - duration = {}; - duration.ms = diffRes.milliseconds; - duration.M = diffRes.months; - } - ret = new Duration(duration); - if (isDuration(input) && hasOwnProp(input, "_locale")) { - ret._locale = input._locale; - } - if (isDuration(input) && hasOwnProp(input, "_isValid")) { - ret._isValid = input._isValid; - } - return ret; - } - createDuration.fn = Duration.prototype; - createDuration.invalid = createInvalid$1; - function parseIso(inp, sign5) { - var res = inp && parseFloat(inp.replace(",", ".")); - return (isNaN(res) ? 0 : res) * sign5; - } - function positiveMomentsDifference(base2, other) { - var res = {}; - res.months = other.month() - base2.month() + (other.year() - base2.year()) * 12; - if (base2.clone().add(res.months, "M").isAfter(other)) { - --res.months; - } - res.milliseconds = +other - +base2.clone().add(res.months, "M"); - return res; - } - function momentsDifference(base2, other) { - var res; - if (!(base2.isValid() && other.isValid())) { - return { milliseconds: 0, months: 0 }; - } - other = cloneWithOffset(other, base2); - if (base2.isBefore(other)) { - res = positiveMomentsDifference(base2, other); - } else { - res = positiveMomentsDifference(other, base2); - res.milliseconds = -res.milliseconds; - res.months = -res.months; - } - return res; - } - function createAdder(direction, name319) { - return function(val, period) { - var dur, tmp; - if (period !== null && !isNaN(+period)) { - deprecateSimple( - name319, - "moment()." + name319 + "(period, number) is deprecated. Please use moment()." + name319 + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info." - ); - tmp = val; - val = period; - period = tmp; - } - dur = createDuration(val, period); - addSubtract(this, dur, direction); - return this; - }; - } - function addSubtract(mom, duration, isAdding, updateOffset) { - var milliseconds2 = duration._milliseconds, days2 = absRound(duration._days), months2 = absRound(duration._months); - if (!mom.isValid()) { - return; - } - updateOffset = updateOffset == null ? true : updateOffset; - if (months2) { - setMonth2(mom, get2(mom, "Month") + months2 * isAdding); - } - if (days2) { - set$1(mom, "Date", get2(mom, "Date") + days2 * isAdding); - } - if (milliseconds2) { - mom._d.setTime(mom._d.valueOf() + milliseconds2 * isAdding); - } - if (updateOffset) { - hooks.updateOffset(mom, days2 || months2); - } - } - var add4 = createAdder(1, "add"), subtract3 = createAdder(-1, "subtract"); - function isString5(input) { - return typeof input === "string" || input instanceof String; - } - function isMomentInput(input) { - return isMoment(input) || isDate4(input) || isString5(input) || isNumber4(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === void 0; - } - function isMomentInputObject(input) { - var objectTest = isObject4(input) && !isObjectEmpty(input), propertyTest = false, properties3 = [ - "years", - "year", - "y", - "months", - "month", - "M", - "days", - "day", - "d", - "dates", - "date", - "D", - "hours", - "hour", - "h", - "minutes", - "minute", - "m", - "seconds", - "second", - "s", - "milliseconds", - "millisecond", - "ms" - ], i4, property, propertyLen = properties3.length; - for (i4 = 0; i4 < propertyLen; i4 += 1) { - property = properties3[i4]; - propertyTest = propertyTest || hasOwnProp(input, property); - } - return objectTest && propertyTest; - } - function isNumberOrStringArray(input) { - var arrayTest = isArray5(input), dataTypeTest = false; - if (arrayTest) { - dataTypeTest = input.filter(function(item) { - return !isNumber4(item) && isString5(input); - }).length === 0; - } - return arrayTest && dataTypeTest; - } - function isCalendarSpec(input) { - var objectTest = isObject4(input) && !isObjectEmpty(input), propertyTest = false, properties3 = [ - "sameDay", - "nextDay", - "lastDay", - "nextWeek", - "lastWeek", - "sameElse" - ], i4, property; - for (i4 = 0; i4 < properties3.length; i4 += 1) { - property = properties3[i4]; - propertyTest = propertyTest || hasOwnProp(input, property); - } - return objectTest && propertyTest; - } - function getCalendarFormat(myMoment, now2) { - var diff3 = myMoment.diff(now2, "days", true); - return diff3 < -6 ? "sameElse" : diff3 < -1 ? "lastWeek" : diff3 < 0 ? "lastDay" : diff3 < 1 ? "sameDay" : diff3 < 2 ? "nextDay" : diff3 < 7 ? "nextWeek" : "sameElse"; - } - function calendar$1(time, formats) { - if (arguments.length === 1) { - if (!arguments[0]) { - time = void 0; - formats = void 0; - } else if (isMomentInput(arguments[0])) { - time = arguments[0]; - formats = void 0; - } else if (isCalendarSpec(arguments[0])) { - formats = arguments[0]; - time = void 0; - } - } - var now2 = time || createLocal(), sod = cloneWithOffset(now2, this).startOf("day"), format9 = hooks.calendarFormat(this, sod) || "sameElse", output = formats && (isFunction3(formats[format9]) ? formats[format9].call(this, now2) : formats[format9]); - return this.format( - output || this.localeData().calendar(format9, this, createLocal(now2)) - ); - } - function clone5() { - return new Moment(this); - } - function isAfter3(input, units2) { - var localInput = isMoment(input) ? input : createLocal(input); - if (!(this.isValid() && localInput.isValid())) { - return false; - } - units2 = normalizeUnits(units2) || "millisecond"; - if (units2 === "millisecond") { - return this.valueOf() > localInput.valueOf(); - } else { - return localInput.valueOf() < this.clone().startOf(units2).valueOf(); - } - } - function isBefore2(input, units2) { - var localInput = isMoment(input) ? input : createLocal(input); - if (!(this.isValid() && localInput.isValid())) { - return false; - } - units2 = normalizeUnits(units2) || "millisecond"; - if (units2 === "millisecond") { - return this.valueOf() < localInput.valueOf(); - } else { - return this.clone().endOf(units2).valueOf() < localInput.valueOf(); - } - } - function isBetween(from2, to3, units2, inclusivity) { - var localFrom = isMoment(from2) ? from2 : createLocal(from2), localTo = isMoment(to3) ? to3 : createLocal(to3); - if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) { - return false; - } - inclusivity = inclusivity || "()"; - return (inclusivity[0] === "(" ? this.isAfter(localFrom, units2) : !this.isBefore(localFrom, units2)) && (inclusivity[1] === ")" ? this.isBefore(localTo, units2) : !this.isAfter(localTo, units2)); - } - function isSame(input, units2) { - var localInput = isMoment(input) ? input : createLocal(input), inputMs; - if (!(this.isValid() && localInput.isValid())) { - return false; - } - units2 = normalizeUnits(units2) || "millisecond"; - if (units2 === "millisecond") { - return this.valueOf() === localInput.valueOf(); - } else { - inputMs = localInput.valueOf(); - return this.clone().startOf(units2).valueOf() <= inputMs && inputMs <= this.clone().endOf(units2).valueOf(); - } - } - function isSameOrAfter(input, units2) { - return this.isSame(input, units2) || this.isAfter(input, units2); - } - function isSameOrBefore(input, units2) { - return this.isSame(input, units2) || this.isBefore(input, units2); - } - function diff2(input, units2, asFloat) { - var that, zoneDelta, output; - if (!this.isValid()) { - return NaN; - } - that = cloneWithOffset(input, this); - if (!that.isValid()) { - return NaN; - } - zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4; - units2 = normalizeUnits(units2); - switch (units2) { - case "year": - output = monthDiff(this, that) / 12; - break; - case "month": - output = monthDiff(this, that); - break; - case "quarter": - output = monthDiff(this, that) / 3; - break; - case "second": - output = (this - that) / 1e3; - break; - case "minute": - output = (this - that) / 6e4; - break; - case "hour": - output = (this - that) / 36e5; - break; - case "day": - output = (this - that - zoneDelta) / 864e5; - break; - case "week": - output = (this - that - zoneDelta) / 6048e5; - break; - default: - output = this - that; - } - return asFloat ? output : absFloor(output); - } - function monthDiff(a4, b2) { - if (a4.date() < b2.date()) { - return -monthDiff(b2, a4); - } - var wholeMonthDiff = (b2.year() - a4.year()) * 12 + (b2.month() - a4.month()), anchor = a4.clone().add(wholeMonthDiff, "months"), anchor2, adjust; - if (b2 - anchor < 0) { - anchor2 = a4.clone().add(wholeMonthDiff - 1, "months"); - adjust = (b2 - anchor) / (anchor - anchor2); - } else { - anchor2 = a4.clone().add(wholeMonthDiff + 1, "months"); - adjust = (b2 - anchor) / (anchor2 - anchor); - } - return -(wholeMonthDiff + adjust) || 0; - } - hooks.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ"; - hooks.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]"; - function toString4() { - return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ"); - } - function toISOString(keepOffset) { - if (!this.isValid()) { - return null; - } - var utc = keepOffset !== true, m4 = utc ? this.clone().utc() : this; - if (m4.year() < 0 || m4.year() > 9999) { - return formatMoment( - m4, - utc ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ" - ); - } - if (isFunction3(Date.prototype.toISOString)) { - if (utc) { - return this.toDate().toISOString(); - } else { - return new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", formatMoment(m4, "Z")); - } - } - return formatMoment( - m4, - utc ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ" - ); - } - function inspect() { - if (!this.isValid()) { - return "moment.invalid(/* " + this._i + " */)"; - } - var func = "moment", zone = "", prefix, year, datetime2, suffix; - if (!this.isLocal()) { - func = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone"; - zone = "Z"; - } - prefix = "[" + func + '("]'; - year = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY"; - datetime2 = "-MM-DD[T]HH:mm:ss.SSS"; - suffix = zone + '[")]'; - return this.format(prefix + year + datetime2 + suffix); - } - function format8(inputString) { - if (!inputString) { - inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat; - } - var output = formatMoment(this, inputString); - return this.localeData().postformat(output); - } - function from(time, withoutSuffix) { - if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) { - return createDuration({ to: this, from: time }).locale(this.locale()).humanize(!withoutSuffix); - } else { - return this.localeData().invalidDate(); - } - } - function fromNow(withoutSuffix) { - return this.from(createLocal(), withoutSuffix); - } - function to2(time, withoutSuffix) { - if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) { - return createDuration({ from: this, to: time }).locale(this.locale()).humanize(!withoutSuffix); - } else { - return this.localeData().invalidDate(); - } - } - function toNow(withoutSuffix) { - return this.to(createLocal(), withoutSuffix); - } - function locale2(key2) { - var newLocaleData; - if (key2 === void 0) { - return this._locale._abbr; - } else { - newLocaleData = getLocale(key2); - if (newLocaleData != null) { - this._locale = newLocaleData; - } - return this; - } - } - var lang = deprecate( - "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.", - function(key2) { - if (key2 === void 0) { - return this.localeData(); - } else { - return this.locale(key2); - } - } - ); - function localeData() { - return this._locale; - } - var MS_PER_SECOND = 1e3, MS_PER_MINUTE = 60 * MS_PER_SECOND, MS_PER_HOUR = 60 * MS_PER_MINUTE, MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR; - function mod$1(dividend, divisor) { - return (dividend % divisor + divisor) % divisor; - } - function localStartOfDate(y3, m4, d4) { - if (y3 < 100 && y3 >= 0) { - return new Date(y3 + 400, m4, d4) - MS_PER_400_YEARS; - } else { - return new Date(y3, m4, d4).valueOf(); - } - } - function utcStartOfDate(y3, m4, d4) { - if (y3 < 100 && y3 >= 0) { - return Date.UTC(y3 + 400, m4, d4) - MS_PER_400_YEARS; - } else { - return Date.UTC(y3, m4, d4); - } - } - function startOf(units2) { - var time, startOfDate; - units2 = normalizeUnits(units2); - if (units2 === void 0 || units2 === "millisecond" || !this.isValid()) { - return this; - } - startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; - switch (units2) { - case "year": - time = startOfDate(this.year(), 0, 1); - break; - case "quarter": - time = startOfDate( - this.year(), - this.month() - this.month() % 3, - 1 - ); - break; - case "month": - time = startOfDate(this.year(), this.month(), 1); - break; - case "week": - time = startOfDate( - this.year(), - this.month(), - this.date() - this.weekday() - ); - break; - case "isoWeek": - time = startOfDate( - this.year(), - this.month(), - this.date() - (this.isoWeekday() - 1) - ); - break; - case "day": - case "date": - time = startOfDate(this.year(), this.month(), this.date()); - break; - case "hour": - time = this._d.valueOf(); - time -= mod$1( - time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), - MS_PER_HOUR - ); - break; - case "minute": - time = this._d.valueOf(); - time -= mod$1(time, MS_PER_MINUTE); - break; - case "second": - time = this._d.valueOf(); - time -= mod$1(time, MS_PER_SECOND); - break; - } - this._d.setTime(time); - hooks.updateOffset(this, true); - return this; - } - function endOf(units2) { - var time, startOfDate; - units2 = normalizeUnits(units2); - if (units2 === void 0 || units2 === "millisecond" || !this.isValid()) { - return this; - } - startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; - switch (units2) { - case "year": - time = startOfDate(this.year() + 1, 0, 1) - 1; - break; - case "quarter": - time = startOfDate( - this.year(), - this.month() - this.month() % 3 + 3, - 1 - ) - 1; - break; - case "month": - time = startOfDate(this.year(), this.month() + 1, 1) - 1; - break; - case "week": - time = startOfDate( - this.year(), - this.month(), - this.date() - this.weekday() + 7 - ) - 1; - break; - case "isoWeek": - time = startOfDate( - this.year(), - this.month(), - this.date() - (this.isoWeekday() - 1) + 7 - ) - 1; - break; - case "day": - case "date": - time = startOfDate(this.year(), this.month(), this.date() + 1) - 1; - break; - case "hour": - time = this._d.valueOf(); - time += MS_PER_HOUR - mod$1( - time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), - MS_PER_HOUR - ) - 1; - break; - case "minute": - time = this._d.valueOf(); - time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1; - break; - case "second": - time = this._d.valueOf(); - time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1; - break; - } - this._d.setTime(time); - hooks.updateOffset(this, true); - return this; - } - function valueOf() { - return this._d.valueOf() - (this._offset || 0) * 6e4; - } - function unix() { - return Math.floor(this.valueOf() / 1e3); - } - function toDate2() { - return new Date(this.valueOf()); - } - function toArray() { - var m4 = this; - return [ - m4.year(), - m4.month(), - m4.date(), - m4.hour(), - m4.minute(), - m4.second(), - m4.millisecond() - ]; - } - function toObject2() { - var m4 = this; - return { - years: m4.year(), - months: m4.month(), - date: m4.date(), - hours: m4.hours(), - minutes: m4.minutes(), - seconds: m4.seconds(), - milliseconds: m4.milliseconds() - }; - } - function toJSON() { - return this.isValid() ? this.toISOString() : null; - } - function isValid$2() { - return isValid2(this); - } - function parsingFlags() { - return extend3({}, getParsingFlags(this)); - } - function invalidAt() { - return getParsingFlags(this).overflow; - } - function creationData() { - return { - input: this._i, - format: this._f, - locale: this._locale, - isUTC: this._isUTC, - strict: this._strict - }; - } - addFormatToken("N", 0, 0, "eraAbbr"); - addFormatToken("NN", 0, 0, "eraAbbr"); - addFormatToken("NNN", 0, 0, "eraAbbr"); - addFormatToken("NNNN", 0, 0, "eraName"); - addFormatToken("NNNNN", 0, 0, "eraNarrow"); - addFormatToken("y", ["y", 1], "yo", "eraYear"); - addFormatToken("y", ["yy", 2], 0, "eraYear"); - addFormatToken("y", ["yyy", 3], 0, "eraYear"); - addFormatToken("y", ["yyyy", 4], 0, "eraYear"); - addRegexToken("N", matchEraAbbr); - addRegexToken("NN", matchEraAbbr); - addRegexToken("NNN", matchEraAbbr); - addRegexToken("NNNN", matchEraName); - addRegexToken("NNNNN", matchEraNarrow); - addParseToken( - ["N", "NN", "NNN", "NNNN", "NNNNN"], - function(input, array, config5, token2) { - var era = config5._locale.erasParse(input, token2, config5._strict); - if (era) { - getParsingFlags(config5).era = era; - } else { - getParsingFlags(config5).invalidEra = input; - } - } - ); - addRegexToken("y", matchUnsigned); - addRegexToken("yy", matchUnsigned); - addRegexToken("yyy", matchUnsigned); - addRegexToken("yyyy", matchUnsigned); - addRegexToken("yo", matchEraYearOrdinal); - addParseToken(["y", "yy", "yyy", "yyyy"], YEAR); - addParseToken(["yo"], function(input, array, config5, token2) { - var match5; - if (config5._locale._eraYearOrdinalRegex) { - match5 = input.match(config5._locale._eraYearOrdinalRegex); - } - if (config5._locale.eraYearOrdinalParse) { - array[YEAR] = config5._locale.eraYearOrdinalParse(input, match5); - } else { - array[YEAR] = parseInt(input, 10); - } - }); - function localeEras(m4, format9) { - var i4, l2, date, eras = this._eras || getLocale("en")._eras; - for (i4 = 0, l2 = eras.length; i4 < l2; ++i4) { - switch (typeof eras[i4].since) { - case "string": - date = hooks(eras[i4].since).startOf("day"); - eras[i4].since = date.valueOf(); - break; - } - switch (typeof eras[i4].until) { - case "undefined": - eras[i4].until = Infinity; - break; - case "string": - date = hooks(eras[i4].until).startOf("day").valueOf(); - eras[i4].until = date.valueOf(); - break; - } - } - return eras; - } - function localeErasParse(eraName, format9, strict) { - var i4, l2, eras = this.eras(), name319, abbr, narrow; - eraName = eraName.toUpperCase(); - for (i4 = 0, l2 = eras.length; i4 < l2; ++i4) { - name319 = eras[i4].name.toUpperCase(); - abbr = eras[i4].abbr.toUpperCase(); - narrow = eras[i4].narrow.toUpperCase(); - if (strict) { - switch (format9) { - case "N": - case "NN": - case "NNN": - if (abbr === eraName) { - return eras[i4]; - } - break; - case "NNNN": - if (name319 === eraName) { - return eras[i4]; - } - break; - case "NNNNN": - if (narrow === eraName) { - return eras[i4]; - } - break; - } - } else if ([name319, abbr, narrow].indexOf(eraName) >= 0) { - return eras[i4]; - } - } - } - function localeErasConvertYear(era, year) { - var dir = era.since <= era.until ? 1 : -1; - if (year === void 0) { - return hooks(era.since).year(); - } else { - return hooks(era.since).year() + (year - era.offset) * dir; - } - } - function getEraName() { - var i4, l2, val, eras = this.localeData().eras(); - for (i4 = 0, l2 = eras.length; i4 < l2; ++i4) { - val = this.clone().startOf("day").valueOf(); - if (eras[i4].since <= val && val <= eras[i4].until) { - return eras[i4].name; - } - if (eras[i4].until <= val && val <= eras[i4].since) { - return eras[i4].name; - } - } - return ""; - } - function getEraNarrow() { - var i4, l2, val, eras = this.localeData().eras(); - for (i4 = 0, l2 = eras.length; i4 < l2; ++i4) { - val = this.clone().startOf("day").valueOf(); - if (eras[i4].since <= val && val <= eras[i4].until) { - return eras[i4].narrow; - } - if (eras[i4].until <= val && val <= eras[i4].since) { - return eras[i4].narrow; - } - } - return ""; - } - function getEraAbbr() { - var i4, l2, val, eras = this.localeData().eras(); - for (i4 = 0, l2 = eras.length; i4 < l2; ++i4) { - val = this.clone().startOf("day").valueOf(); - if (eras[i4].since <= val && val <= eras[i4].until) { - return eras[i4].abbr; - } - if (eras[i4].until <= val && val <= eras[i4].since) { - return eras[i4].abbr; - } - } - return ""; - } - function getEraYear() { - var i4, l2, dir, val, eras = this.localeData().eras(); - for (i4 = 0, l2 = eras.length; i4 < l2; ++i4) { - dir = eras[i4].since <= eras[i4].until ? 1 : -1; - val = this.clone().startOf("day").valueOf(); - if (eras[i4].since <= val && val <= eras[i4].until || eras[i4].until <= val && val <= eras[i4].since) { - return (this.year() - hooks(eras[i4].since).year()) * dir + eras[i4].offset; - } - } - return this.year(); - } - function erasNameRegex(isStrict) { - if (!hasOwnProp(this, "_erasNameRegex")) { - computeErasParse.call(this); - } - return isStrict ? this._erasNameRegex : this._erasRegex; - } - function erasAbbrRegex(isStrict) { - if (!hasOwnProp(this, "_erasAbbrRegex")) { - computeErasParse.call(this); - } - return isStrict ? this._erasAbbrRegex : this._erasRegex; - } - function erasNarrowRegex(isStrict) { - if (!hasOwnProp(this, "_erasNarrowRegex")) { - computeErasParse.call(this); - } - return isStrict ? this._erasNarrowRegex : this._erasRegex; - } - function matchEraAbbr(isStrict, locale3) { - return locale3.erasAbbrRegex(isStrict); - } - function matchEraName(isStrict, locale3) { - return locale3.erasNameRegex(isStrict); - } - function matchEraNarrow(isStrict, locale3) { - return locale3.erasNarrowRegex(isStrict); - } - function matchEraYearOrdinal(isStrict, locale3) { - return locale3._eraYearOrdinalRegex || matchUnsigned; - } - function computeErasParse() { - var abbrPieces = [], namePieces = [], narrowPieces = [], mixedPieces = [], i4, l2, eras = this.eras(); - for (i4 = 0, l2 = eras.length; i4 < l2; ++i4) { - namePieces.push(regexEscape(eras[i4].name)); - abbrPieces.push(regexEscape(eras[i4].abbr)); - narrowPieces.push(regexEscape(eras[i4].narrow)); - mixedPieces.push(regexEscape(eras[i4].name)); - mixedPieces.push(regexEscape(eras[i4].abbr)); - mixedPieces.push(regexEscape(eras[i4].narrow)); - } - this._erasRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i"); - this._erasNameRegex = new RegExp("^(" + namePieces.join("|") + ")", "i"); - this._erasAbbrRegex = new RegExp("^(" + abbrPieces.join("|") + ")", "i"); - this._erasNarrowRegex = new RegExp( - "^(" + narrowPieces.join("|") + ")", - "i" - ); - } - addFormatToken(0, ["gg", 2], 0, function() { - return this.weekYear() % 100; - }); - addFormatToken(0, ["GG", 2], 0, function() { - return this.isoWeekYear() % 100; - }); - function addWeekYearFormatToken(token2, getter) { - addFormatToken(0, [token2, token2.length], 0, getter); - } - addWeekYearFormatToken("gggg", "weekYear"); - addWeekYearFormatToken("ggggg", "weekYear"); - addWeekYearFormatToken("GGGG", "isoWeekYear"); - addWeekYearFormatToken("GGGGG", "isoWeekYear"); - addUnitAlias("weekYear", "gg"); - addUnitAlias("isoWeekYear", "GG"); - addUnitPriority("weekYear", 1); - addUnitPriority("isoWeekYear", 1); - addRegexToken("G", matchSigned); - addRegexToken("g", matchSigned); - addRegexToken("GG", match1to2, match2); - addRegexToken("gg", match1to2, match2); - addRegexToken("GGGG", match1to4, match4); - addRegexToken("gggg", match1to4, match4); - addRegexToken("GGGGG", match1to6, match6); - addRegexToken("ggggg", match1to6, match6); - addWeekParseToken( - ["gggg", "ggggg", "GGGG", "GGGGG"], - function(input, week, config5, token2) { - week[token2.substr(0, 2)] = toInt(input); - } - ); - addWeekParseToken(["gg", "GG"], function(input, week, config5, token2) { - week[token2] = hooks.parseTwoDigitYear(input); - }); - function getSetWeekYear(input) { - return getSetWeekYearHelper.call( - this, - input, - this.week(), - this.weekday(), - this.localeData()._week.dow, - this.localeData()._week.doy - ); - } - function getSetISOWeekYear(input) { - return getSetWeekYearHelper.call( - this, - input, - this.isoWeek(), - this.isoWeekday(), - 1, - 4 - ); - } - function getISOWeeksInYear() { - return weeksInYear(this.year(), 1, 4); - } - function getISOWeeksInISOWeekYear() { - return weeksInYear(this.isoWeekYear(), 1, 4); - } - function getWeeksInYear() { - var weekInfo = this.localeData()._week; - return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); - } - function getWeeksInWeekYear() { - var weekInfo = this.localeData()._week; - return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy); - } - function getSetWeekYearHelper(input, week, weekday, dow, doy) { - var weeksTarget; - if (input == null) { - return weekOfYear(this, dow, doy).year; - } else { - weeksTarget = weeksInYear(input, dow, doy); - if (week > weeksTarget) { - week = weeksTarget; - } - return setWeekAll.call(this, input, week, weekday, dow, doy); - } - } - function setWeekAll(weekYear, week, weekday, dow, doy) { - var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear); - this.year(date.getUTCFullYear()); - this.month(date.getUTCMonth()); - this.date(date.getUTCDate()); - return this; - } - addFormatToken("Q", 0, "Qo", "quarter"); - addUnitAlias("quarter", "Q"); - addUnitPriority("quarter", 7); - addRegexToken("Q", match1); - addParseToken("Q", function(input, array) { - array[MONTH] = (toInt(input) - 1) * 3; - }); - function getSetQuarter(input) { - return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3); - } - addFormatToken("D", ["DD", 2], "Do", "date"); - addUnitAlias("date", "D"); - addUnitPriority("date", 9); - addRegexToken("D", match1to2); - addRegexToken("DD", match1to2, match2); - addRegexToken("Do", function(isStrict, locale3) { - return isStrict ? locale3._dayOfMonthOrdinalParse || locale3._ordinalParse : locale3._dayOfMonthOrdinalParseLenient; - }); - addParseToken(["D", "DD"], DATE); - addParseToken("Do", function(input, array) { - array[DATE] = toInt(input.match(match1to2)[0]); - }); - var getSetDayOfMonth = makeGetSet("Date", true); - addFormatToken("DDD", ["DDDD", 3], "DDDo", "dayOfYear"); - addUnitAlias("dayOfYear", "DDD"); - addUnitPriority("dayOfYear", 4); - addRegexToken("DDD", match1to3); - addRegexToken("DDDD", match3); - addParseToken(["DDD", "DDDD"], function(input, array, config5) { - config5._dayOfYear = toInt(input); - }); - function getSetDayOfYear(input) { - var dayOfYear = Math.round( - (this.clone().startOf("day") - this.clone().startOf("year")) / 864e5 - ) + 1; - return input == null ? dayOfYear : this.add(input - dayOfYear, "d"); - } - addFormatToken("m", ["mm", 2], 0, "minute"); - addUnitAlias("minute", "m"); - addUnitPriority("minute", 14); - addRegexToken("m", match1to2); - addRegexToken("mm", match1to2, match2); - addParseToken(["m", "mm"], MINUTE); - var getSetMinute = makeGetSet("Minutes", false); - addFormatToken("s", ["ss", 2], 0, "second"); - addUnitAlias("second", "s"); - addUnitPriority("second", 15); - addRegexToken("s", match1to2); - addRegexToken("ss", match1to2, match2); - addParseToken(["s", "ss"], SECOND); - var getSetSecond = makeGetSet("Seconds", false); - addFormatToken("S", 0, 0, function() { - return ~~(this.millisecond() / 100); - }); - addFormatToken(0, ["SS", 2], 0, function() { - return ~~(this.millisecond() / 10); - }); - addFormatToken(0, ["SSS", 3], 0, "millisecond"); - addFormatToken(0, ["SSSS", 4], 0, function() { - return this.millisecond() * 10; - }); - addFormatToken(0, ["SSSSS", 5], 0, function() { - return this.millisecond() * 100; - }); - addFormatToken(0, ["SSSSSS", 6], 0, function() { - return this.millisecond() * 1e3; - }); - addFormatToken(0, ["SSSSSSS", 7], 0, function() { - return this.millisecond() * 1e4; - }); - addFormatToken(0, ["SSSSSSSS", 8], 0, function() { - return this.millisecond() * 1e5; - }); - addFormatToken(0, ["SSSSSSSSS", 9], 0, function() { - return this.millisecond() * 1e6; - }); - addUnitAlias("millisecond", "ms"); - addUnitPriority("millisecond", 16); - addRegexToken("S", match1to3, match1); - addRegexToken("SS", match1to3, match2); - addRegexToken("SSS", match1to3, match3); - var token, getSetMillisecond; - for (token = "SSSS"; token.length <= 9; token += "S") { - addRegexToken(token, matchUnsigned); - } - function parseMs(input, array) { - array[MILLISECOND] = toInt(("0." + input) * 1e3); - } - for (token = "S"; token.length <= 9; token += "S") { - addParseToken(token, parseMs); - } - getSetMillisecond = makeGetSet("Milliseconds", false); - addFormatToken("z", 0, 0, "zoneAbbr"); - addFormatToken("zz", 0, 0, "zoneName"); - function getZoneAbbr() { - return this._isUTC ? "UTC" : ""; - } - function getZoneName() { - return this._isUTC ? "Coordinated Universal Time" : ""; - } - var proto = Moment.prototype; - proto.add = add4; - proto.calendar = calendar$1; - proto.clone = clone5; - proto.diff = diff2; - proto.endOf = endOf; - proto.format = format8; - proto.from = from; - proto.fromNow = fromNow; - proto.to = to2; - proto.toNow = toNow; - proto.get = stringGet; - proto.invalidAt = invalidAt; - proto.isAfter = isAfter3; - proto.isBefore = isBefore2; - proto.isBetween = isBetween; - proto.isSame = isSame; - proto.isSameOrAfter = isSameOrAfter; - proto.isSameOrBefore = isSameOrBefore; - proto.isValid = isValid$2; - proto.lang = lang; - proto.locale = locale2; - proto.localeData = localeData; - proto.max = prototypeMax; - proto.min = prototypeMin; - proto.parsingFlags = parsingFlags; - proto.set = stringSet; - proto.startOf = startOf; - proto.subtract = subtract3; - proto.toArray = toArray; - proto.toObject = toObject2; - proto.toDate = toDate2; - proto.toISOString = toISOString; - proto.inspect = inspect; - if (typeof Symbol !== "undefined" && Symbol.for != null) { - proto[Symbol.for("nodejs.util.inspect.custom")] = function() { - return "Moment<" + this.format() + ">"; - }; - } - proto.toJSON = toJSON; - proto.toString = toString4; - proto.unix = unix; - proto.valueOf = valueOf; - proto.creationData = creationData; - proto.eraName = getEraName; - proto.eraNarrow = getEraNarrow; - proto.eraAbbr = getEraAbbr; - proto.eraYear = getEraYear; - proto.year = getSetYear; - proto.isLeapYear = getIsLeapYear; - proto.weekYear = getSetWeekYear; - proto.isoWeekYear = getSetISOWeekYear; - proto.quarter = proto.quarters = getSetQuarter; - proto.month = getSetMonth; - proto.daysInMonth = getDaysInMonth2; - proto.week = proto.weeks = getSetWeek; - proto.isoWeek = proto.isoWeeks = getSetISOWeek; - proto.weeksInYear = getWeeksInYear; - proto.weeksInWeekYear = getWeeksInWeekYear; - proto.isoWeeksInYear = getISOWeeksInYear; - proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear; - proto.date = getSetDayOfMonth; - proto.day = proto.days = getSetDayOfWeek; - proto.weekday = getSetLocaleDayOfWeek; - proto.isoWeekday = getSetISODayOfWeek; - proto.dayOfYear = getSetDayOfYear; - proto.hour = proto.hours = getSetHour; - proto.minute = proto.minutes = getSetMinute; - proto.second = proto.seconds = getSetSecond; - proto.millisecond = proto.milliseconds = getSetMillisecond; - proto.utcOffset = getSetOffset; - proto.utc = setOffsetToUTC; - proto.local = setOffsetToLocal; - proto.parseZone = setOffsetToParsedOffset; - proto.hasAlignedHourOffset = hasAlignedHourOffset; - proto.isDST = isDaylightSavingTime; - proto.isLocal = isLocal; - proto.isUtcOffset = isUtcOffset; - proto.isUtc = isUtc; - proto.isUTC = isUtc; - proto.zoneAbbr = getZoneAbbr; - proto.zoneName = getZoneName; - proto.dates = deprecate( - "dates accessor is deprecated. Use date instead.", - getSetDayOfMonth - ); - proto.months = deprecate( - "months accessor is deprecated. Use month instead", - getSetMonth - ); - proto.years = deprecate( - "years accessor is deprecated. Use year instead", - getSetYear - ); - proto.zone = deprecate( - "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/", - getSetZone - ); - proto.isDSTShifted = deprecate( - "isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information", - isDaylightSavingTimeShifted - ); - function createUnix(input) { - return createLocal(input * 1e3); - } - function createInZone() { - return createLocal.apply(null, arguments).parseZone(); - } - function preParsePostFormat(string6) { - return string6; - } - var proto$1 = Locale.prototype; - proto$1.calendar = calendar; - proto$1.longDateFormat = longDateFormat; - proto$1.invalidDate = invalidDate; - proto$1.ordinal = ordinal; - proto$1.preparse = preParsePostFormat; - proto$1.postformat = preParsePostFormat; - proto$1.relativeTime = relativeTime; - proto$1.pastFuture = pastFuture; - proto$1.set = set; - proto$1.eras = localeEras; - proto$1.erasParse = localeErasParse; - proto$1.erasConvertYear = localeErasConvertYear; - proto$1.erasAbbrRegex = erasAbbrRegex; - proto$1.erasNameRegex = erasNameRegex; - proto$1.erasNarrowRegex = erasNarrowRegex; - proto$1.months = localeMonths; - proto$1.monthsShort = localeMonthsShort; - proto$1.monthsParse = localeMonthsParse; - proto$1.monthsRegex = monthsRegex; - proto$1.monthsShortRegex = monthsShortRegex; - proto$1.week = localeWeek; - proto$1.firstDayOfYear = localeFirstDayOfYear; - proto$1.firstDayOfWeek = localeFirstDayOfWeek; - proto$1.weekdays = localeWeekdays; - proto$1.weekdaysMin = localeWeekdaysMin; - proto$1.weekdaysShort = localeWeekdaysShort; - proto$1.weekdaysParse = localeWeekdaysParse; - proto$1.weekdaysRegex = weekdaysRegex; - proto$1.weekdaysShortRegex = weekdaysShortRegex; - proto$1.weekdaysMinRegex = weekdaysMinRegex; - proto$1.isPM = localeIsPM; - proto$1.meridiem = localeMeridiem; - function get$1(format9, index3, field, setter) { - var locale3 = getLocale(), utc = createUTC().set(setter, index3); - return locale3[field](utc, format9); - } - function listMonthsImpl(format9, index3, field) { - if (isNumber4(format9)) { - index3 = format9; - format9 = void 0; - } - format9 = format9 || ""; - if (index3 != null) { - return get$1(format9, index3, field, "month"); - } - var i4, out = []; - for (i4 = 0; i4 < 12; i4++) { - out[i4] = get$1(format9, i4, field, "month"); - } - return out; - } - function listWeekdaysImpl(localeSorted, format9, index3, field) { - if (typeof localeSorted === "boolean") { - if (isNumber4(format9)) { - index3 = format9; - format9 = void 0; - } - format9 = format9 || ""; - } else { - format9 = localeSorted; - index3 = format9; - localeSorted = false; - if (isNumber4(format9)) { - index3 = format9; - format9 = void 0; - } - format9 = format9 || ""; - } - var locale3 = getLocale(), shift = localeSorted ? locale3._week.dow : 0, i4, out = []; - if (index3 != null) { - return get$1(format9, (index3 + shift) % 7, field, "day"); - } - for (i4 = 0; i4 < 7; i4++) { - out[i4] = get$1(format9, (i4 + shift) % 7, field, "day"); - } - return out; - } - function listMonths(format9, index3) { - return listMonthsImpl(format9, index3, "months"); - } - function listMonthsShort(format9, index3) { - return listMonthsImpl(format9, index3, "monthsShort"); - } - function listWeekdays(localeSorted, format9, index3) { - return listWeekdaysImpl(localeSorted, format9, index3, "weekdays"); - } - function listWeekdaysShort(localeSorted, format9, index3) { - return listWeekdaysImpl(localeSorted, format9, index3, "weekdaysShort"); - } - function listWeekdaysMin(localeSorted, format9, index3) { - return listWeekdaysImpl(localeSorted, format9, index3, "weekdaysMin"); - } - getSetGlobalLocale("en", { - eras: [ - { - since: "0001-01-01", - until: Infinity, - offset: 1, - name: "Anno Domini", - narrow: "AD", - abbr: "AD" - }, - { - since: "0000-12-31", - until: -Infinity, - offset: 1, - name: "Before Christ", - narrow: "BC", - abbr: "BC" - } - ], - dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, - ordinal: function(number6) { - var b2 = number6 % 10, output = toInt(number6 % 100 / 10) === 1 ? "th" : b2 === 1 ? "st" : b2 === 2 ? "nd" : b2 === 3 ? "rd" : "th"; - return number6 + output; - } - }); - hooks.lang = deprecate( - "moment.lang is deprecated. Use moment.locale instead.", - getSetGlobalLocale - ); - hooks.langData = deprecate( - "moment.langData is deprecated. Use moment.localeData instead.", - getLocale - ); - var mathAbs = Math.abs; - function abs3() { - var data2 = this._data; - this._milliseconds = mathAbs(this._milliseconds); - this._days = mathAbs(this._days); - this._months = mathAbs(this._months); - data2.milliseconds = mathAbs(data2.milliseconds); - data2.seconds = mathAbs(data2.seconds); - data2.minutes = mathAbs(data2.minutes); - data2.hours = mathAbs(data2.hours); - data2.months = mathAbs(data2.months); - data2.years = mathAbs(data2.years); - return this; - } - function addSubtract$1(duration, input, value, direction) { - var other = createDuration(input, value); - duration._milliseconds += direction * other._milliseconds; - duration._days += direction * other._days; - duration._months += direction * other._months; - return duration._bubble(); - } - function add$1(input, value) { - return addSubtract$1(this, input, value, 1); - } - function subtract$1(input, value) { - return addSubtract$1(this, input, value, -1); - } - function absCeil(number6) { - if (number6 < 0) { - return Math.floor(number6); - } else { - return Math.ceil(number6); - } - } - function bubble() { - var milliseconds2 = this._milliseconds, days2 = this._days, months2 = this._months, data2 = this._data, seconds2, minutes2, hours2, years2, monthsFromDays; - if (!(milliseconds2 >= 0 && days2 >= 0 && months2 >= 0 || milliseconds2 <= 0 && days2 <= 0 && months2 <= 0)) { - milliseconds2 += absCeil(monthsToDays(months2) + days2) * 864e5; - days2 = 0; - months2 = 0; - } - data2.milliseconds = milliseconds2 % 1e3; - seconds2 = absFloor(milliseconds2 / 1e3); - data2.seconds = seconds2 % 60; - minutes2 = absFloor(seconds2 / 60); - data2.minutes = minutes2 % 60; - hours2 = absFloor(minutes2 / 60); - data2.hours = hours2 % 24; - days2 += absFloor(hours2 / 24); - monthsFromDays = absFloor(daysToMonths(days2)); - months2 += monthsFromDays; - days2 -= absCeil(monthsToDays(monthsFromDays)); - years2 = absFloor(months2 / 12); - months2 %= 12; - data2.days = days2; - data2.months = months2; - data2.years = years2; - return this; - } - function daysToMonths(days2) { - return days2 * 4800 / 146097; - } - function monthsToDays(months2) { - return months2 * 146097 / 4800; - } - function as(units2) { - if (!this.isValid()) { - return NaN; - } - var days2, months2, milliseconds2 = this._milliseconds; - units2 = normalizeUnits(units2); - if (units2 === "month" || units2 === "quarter" || units2 === "year") { - days2 = this._days + milliseconds2 / 864e5; - months2 = this._months + daysToMonths(days2); - switch (units2) { - case "month": - return months2; - case "quarter": - return months2 / 3; - case "year": - return months2 / 12; - } - } else { - days2 = this._days + Math.round(monthsToDays(this._months)); - switch (units2) { - case "week": - return days2 / 7 + milliseconds2 / 6048e5; - case "day": - return days2 + milliseconds2 / 864e5; - case "hour": - return days2 * 24 + milliseconds2 / 36e5; - case "minute": - return days2 * 1440 + milliseconds2 / 6e4; - case "second": - return days2 * 86400 + milliseconds2 / 1e3; - case "millisecond": - return Math.floor(days2 * 864e5) + milliseconds2; - default: - throw new Error("Unknown unit " + units2); - } - } - } - function valueOf$1() { - if (!this.isValid()) { - return NaN; - } - return this._milliseconds + this._days * 864e5 + this._months % 12 * 2592e6 + toInt(this._months / 12) * 31536e6; - } - function makeAs(alias) { - return function() { - return this.as(alias); - }; - } - var asMilliseconds = makeAs("ms"), asSeconds = makeAs("s"), asMinutes = makeAs("m"), asHours = makeAs("h"), asDays = makeAs("d"), asWeeks = makeAs("w"), asMonths = makeAs("M"), asQuarters = makeAs("Q"), asYears = makeAs("y"); - function clone$1() { - return createDuration(this); - } - function get$2(units2) { - units2 = normalizeUnits(units2); - return this.isValid() ? this[units2 + "s"]() : NaN; - } - function makeGetter(name319) { - return function() { - return this.isValid() ? this._data[name319] : NaN; - }; - } - var milliseconds = makeGetter("milliseconds"), seconds = makeGetter("seconds"), minutes = makeGetter("minutes"), hours = makeGetter("hours"), days = makeGetter("days"), months = makeGetter("months"), years = makeGetter("years"); - function weeks() { - return absFloor(this.days() / 7); - } - var round3 = Math.round, thresholds = { - ss: 44, - s: 45, - m: 45, - h: 22, - d: 26, - w: null, - M: 11 - }; - function substituteTimeAgo(string6, number6, withoutSuffix, isFuture, locale3) { - return locale3.relativeTime(number6 || 1, !!withoutSuffix, string6, isFuture); - } - function relativeTime$1(posNegDuration, withoutSuffix, thresholds2, locale3) { - var duration = createDuration(posNegDuration).abs(), seconds2 = round3(duration.as("s")), minutes2 = round3(duration.as("m")), hours2 = round3(duration.as("h")), days2 = round3(duration.as("d")), months2 = round3(duration.as("M")), weeks2 = round3(duration.as("w")), years2 = round3(duration.as("y")), a4 = seconds2 <= thresholds2.ss && ["s", seconds2] || seconds2 < thresholds2.s && ["ss", seconds2] || minutes2 <= 1 && ["m"] || minutes2 < thresholds2.m && ["mm", minutes2] || hours2 <= 1 && ["h"] || hours2 < thresholds2.h && ["hh", hours2] || days2 <= 1 && ["d"] || days2 < thresholds2.d && ["dd", days2]; - if (thresholds2.w != null) { - a4 = a4 || weeks2 <= 1 && ["w"] || weeks2 < thresholds2.w && ["ww", weeks2]; - } - a4 = a4 || months2 <= 1 && ["M"] || months2 < thresholds2.M && ["MM", months2] || years2 <= 1 && ["y"] || ["yy", years2]; - a4[2] = withoutSuffix; - a4[3] = +posNegDuration > 0; - a4[4] = locale3; - return substituteTimeAgo.apply(null, a4); - } - function getSetRelativeTimeRounding(roundingFunction) { - if (roundingFunction === void 0) { - return round3; - } - if (typeof roundingFunction === "function") { - round3 = roundingFunction; - return true; - } - return false; - } - function getSetRelativeTimeThreshold(threshold, limit) { - if (thresholds[threshold] === void 0) { - return false; - } - if (limit === void 0) { - return thresholds[threshold]; - } - thresholds[threshold] = limit; - if (threshold === "s") { - thresholds.ss = limit - 1; - } - return true; - } - function humanize(argWithSuffix, argThresholds) { - if (!this.isValid()) { - return this.localeData().invalidDate(); - } - var withSuffix = false, th = thresholds, locale3, output; - if (typeof argWithSuffix === "object") { - argThresholds = argWithSuffix; - argWithSuffix = false; - } - if (typeof argWithSuffix === "boolean") { - withSuffix = argWithSuffix; - } - if (typeof argThresholds === "object") { - th = Object.assign({}, thresholds, argThresholds); - if (argThresholds.s != null && argThresholds.ss == null) { - th.ss = argThresholds.s - 1; - } - } - locale3 = this.localeData(); - output = relativeTime$1(this, !withSuffix, th, locale3); - if (withSuffix) { - output = locale3.pastFuture(+this, output); - } - return locale3.postformat(output); - } - var abs$1 = Math.abs; - function sign4(x2) { - return (x2 > 0) - (x2 < 0) || +x2; - } - function toISOString$1() { - if (!this.isValid()) { - return this.localeData().invalidDate(); - } - var seconds2 = abs$1(this._milliseconds) / 1e3, days2 = abs$1(this._days), months2 = abs$1(this._months), minutes2, hours2, years2, s4, total = this.asSeconds(), totalSign, ymSign, daysSign, hmsSign; - if (!total) { - return "P0D"; - } - minutes2 = absFloor(seconds2 / 60); - hours2 = absFloor(minutes2 / 60); - seconds2 %= 60; - minutes2 %= 60; - years2 = absFloor(months2 / 12); - months2 %= 12; - s4 = seconds2 ? seconds2.toFixed(3).replace(/\.?0+$/, "") : ""; - totalSign = total < 0 ? "-" : ""; - ymSign = sign4(this._months) !== sign4(total) ? "-" : ""; - daysSign = sign4(this._days) !== sign4(total) ? "-" : ""; - hmsSign = sign4(this._milliseconds) !== sign4(total) ? "-" : ""; - return totalSign + "P" + (years2 ? ymSign + years2 + "Y" : "") + (months2 ? ymSign + months2 + "M" : "") + (days2 ? daysSign + days2 + "D" : "") + (hours2 || minutes2 || seconds2 ? "T" : "") + (hours2 ? hmsSign + hours2 + "H" : "") + (minutes2 ? hmsSign + minutes2 + "M" : "") + (seconds2 ? hmsSign + s4 + "S" : ""); - } - var proto$2 = Duration.prototype; - proto$2.isValid = isValid$1; - proto$2.abs = abs3; - proto$2.add = add$1; - proto$2.subtract = subtract$1; - proto$2.as = as; - proto$2.asMilliseconds = asMilliseconds; - proto$2.asSeconds = asSeconds; - proto$2.asMinutes = asMinutes; - proto$2.asHours = asHours; - proto$2.asDays = asDays; - proto$2.asWeeks = asWeeks; - proto$2.asMonths = asMonths; - proto$2.asQuarters = asQuarters; - proto$2.asYears = asYears; - proto$2.valueOf = valueOf$1; - proto$2._bubble = bubble; - proto$2.clone = clone$1; - proto$2.get = get$2; - proto$2.milliseconds = milliseconds; - proto$2.seconds = seconds; - proto$2.minutes = minutes; - proto$2.hours = hours; - proto$2.days = days; - proto$2.weeks = weeks; - proto$2.months = months; - proto$2.years = years; - proto$2.humanize = humanize; - proto$2.toISOString = toISOString$1; - proto$2.toString = toISOString$1; - proto$2.toJSON = toISOString$1; - proto$2.locale = locale2; - proto$2.localeData = localeData; - proto$2.toIsoString = deprecate( - "toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", - toISOString$1 - ); - proto$2.lang = lang; - addFormatToken("X", 0, 0, "unix"); - addFormatToken("x", 0, 0, "valueOf"); - addRegexToken("x", matchSigned); - addRegexToken("X", matchTimestamp); - addParseToken("X", function(input, array, config5) { - config5._d = new Date(parseFloat(input) * 1e3); - }); - addParseToken("x", function(input, array, config5) { - config5._d = new Date(toInt(input)); - }); - hooks.version = "2.29.4"; - setHookCallback(createLocal); - hooks.fn = proto; - hooks.min = min5; - hooks.max = max5; - hooks.now = now; - hooks.utc = createUTC; - hooks.unix = createUnix; - hooks.months = listMonths; - hooks.isDate = isDate4; - hooks.locale = getSetGlobalLocale; - hooks.invalid = createInvalid; - hooks.duration = createDuration; - hooks.isMoment = isMoment; - hooks.weekdays = listWeekdays; - hooks.parseZone = createInZone; - hooks.localeData = getLocale; - hooks.isDuration = isDuration; - hooks.monthsShort = listMonthsShort; - hooks.weekdaysMin = listWeekdaysMin; - hooks.defineLocale = defineLocale; - hooks.updateLocale = updateLocale; - hooks.locales = listLocales; - hooks.weekdaysShort = listWeekdaysShort; - hooks.normalizeUnits = normalizeUnits; - hooks.relativeTimeRounding = getSetRelativeTimeRounding; - hooks.relativeTimeThreshold = getSetRelativeTimeThreshold; - hooks.calendarFormat = getCalendarFormat; - hooks.prototype = proto; - hooks.HTML5_FMT = { - DATETIME_LOCAL: "YYYY-MM-DDTHH:mm", - DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss", - DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS", - DATE: "YYYY-MM-DD", - TIME: "HH:mm", - TIME_SECONDS: "HH:mm:ss", - TIME_MS: "HH:mm:ss.SSS", - WEEK: "GGGG-[W]WW", - MONTH: "YYYY-MM" - }; - return hooks; - }); - } -}); - -// node_modules/lodash/lodash.js -var require_lodash = __commonJS({ - "node_modules/lodash/lodash.js"(exports, module2) { - (function() { - var undefined2; - var VERSION = "4.17.21"; - var LARGE_ARRAY_SIZE = 200; - var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`"; - var HASH_UNDEFINED = "__lodash_hash_undefined__"; - var MAX_MEMOIZE_SIZE = 500; - var PLACEHOLDER = "__lodash_placeholder__"; - var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4; - var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; - var WRAP_BIND_FLAG = 1, WRAP_BIND_KEY_FLAG = 2, WRAP_CURRY_BOUND_FLAG = 4, WRAP_CURRY_FLAG = 8, WRAP_CURRY_RIGHT_FLAG = 16, WRAP_PARTIAL_FLAG = 32, WRAP_PARTIAL_RIGHT_FLAG = 64, WRAP_ARY_FLAG = 128, WRAP_REARG_FLAG = 256, WRAP_FLIP_FLAG = 512; - var DEFAULT_TRUNC_LENGTH = 30, DEFAULT_TRUNC_OMISSION = "..."; - var HOT_COUNT = 800, HOT_SPAN = 16; - var LAZY_FILTER_FLAG = 1, LAZY_MAP_FLAG = 2, LAZY_WHILE_FLAG = 3; - var INFINITY2 = 1 / 0, MAX_SAFE_INTEGER2 = 9007199254740991, MAX_INTEGER = 17976931348623157e292, NAN = 0 / 0; - var MAX_ARRAY_LENGTH = 4294967295, MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1, HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1; - var wrapFlags = [ - ["ary", WRAP_ARY_FLAG], - ["bind", WRAP_BIND_FLAG], - ["bindKey", WRAP_BIND_KEY_FLAG], - ["curry", WRAP_CURRY_FLAG], - ["curryRight", WRAP_CURRY_RIGHT_FLAG], - ["flip", WRAP_FLIP_FLAG], - ["partial", WRAP_PARTIAL_FLAG], - ["partialRight", WRAP_PARTIAL_RIGHT_FLAG], - ["rearg", WRAP_REARG_FLAG] - ]; - var argsTag = "[object Arguments]", arrayTag = "[object Array]", asyncTag = "[object AsyncFunction]", boolTag = "[object Boolean]", dateTag = "[object Date]", domExcTag = "[object DOMException]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", nullTag = "[object Null]", objectTag = "[object Object]", promiseTag = "[object Promise]", proxyTag = "[object Proxy]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", undefinedTag = "[object Undefined]", weakMapTag = "[object WeakMap]", weakSetTag = "[object WeakSet]"; - var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]"; - var reEmptyStringLeading = /\b__p \+= '';/g, reEmptyStringMiddle = /\b(__p \+=) '' \+/g, reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g; - var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g, reUnescapedHtml = /[&<>"']/g, reHasEscapedHtml = RegExp(reEscapedHtml.source), reHasUnescapedHtml = RegExp(reUnescapedHtml.source); - var reEscape = /<%-([\s\S]+?)%>/g, reEvaluate = /<%([\s\S]+?)%>/g, reInterpolate = /<%=([\s\S]+?)%>/g; - var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; - var reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reHasRegExpChar = RegExp(reRegExpChar.source); - var reTrimStart = /^\s+/; - var reWhitespace = /\s/; - var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/, reSplitDetails = /,? & /; - var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; - var reForbiddenIdentifierChars = /[()=,{}\[\]\/\s]/; - var reEscapeChar = /\\(\\)?/g; - var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g; - var reFlags = /\w*$/; - var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; - var reIsBinary = /^0b[01]+$/i; - var reIsHostCtor = /^\[object .+?Constructor\]$/; - var reIsOctal = /^0o[0-7]+$/i; - var reIsUint = /^(?:0|[1-9]\d*)$/; - var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; - var reNoMatch = /($^)/; - var reUnescapedString = /['\n\r\u2028\u2029\\]/g; - var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsDingbatRange = "\\u2700-\\u27bf", rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff", rsMathOpRange = "\\xac\\xb1\\xd7\\xf7", rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", rsPunctuationRange = "\\u2000-\\u206f", rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde", rsVarRange = "\\ufe0e\\ufe0f", rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange; - var rsApos = "['\u2019]", rsAstral = "[" + rsAstralRange + "]", rsBreak = "[" + rsBreakRange + "]", rsCombo = "[" + rsComboRange + "]", rsDigits = "\\d+", rsDingbat = "[" + rsDingbatRange + "]", rsLower = "[" + rsLowerRange + "]", rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]", rsFitz = "\\ud83c[\\udffb-\\udfff]", rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")", rsNonAstral = "[^" + rsAstralRange + "]", rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsUpper = "[" + rsUpperRange + "]", rsZWJ = "\\u200d"; - var rsMiscLower = "(?:" + rsLower + "|" + rsMisc + ")", rsMiscUpper = "(?:" + rsUpper + "|" + rsMisc + ")", rsOptContrLower = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?", rsOptContrUpper = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?", reOptMod = rsModifier + "?", rsOptVar = "[" + rsVarRange + "]?", rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*", rsOrdLower = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", rsOrdUpper = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", rsSeq = rsOptVar + reOptMod + rsOptJoin, rsEmoji = "(?:" + [rsDingbat, rsRegional, rsSurrPair].join("|") + ")" + rsSeq, rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")"; - var reApos = RegExp(rsApos, "g"); - var reComboMark = RegExp(rsCombo, "g"); - var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g"); - var reUnicodeWord = RegExp([ - rsUpper + "?" + rsLower + "+" + rsOptContrLower + "(?=" + [rsBreak, rsUpper, "$"].join("|") + ")", - rsMiscUpper + "+" + rsOptContrUpper + "(?=" + [rsBreak, rsUpper + rsMiscLower, "$"].join("|") + ")", - rsUpper + "?" + rsMiscLower + "+" + rsOptContrLower, - rsUpper + "+" + rsOptContrUpper, - rsOrdUpper, - rsOrdLower, - rsDigits, - rsEmoji - ].join("|"), "g"); - var reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + "]"); - var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; - var contextProps = [ - "Array", - "Buffer", - "DataView", - "Date", - "Error", - "Float32Array", - "Float64Array", - "Function", - "Int8Array", - "Int16Array", - "Int32Array", - "Map", - "Math", - "Object", - "Promise", - "RegExp", - "Set", - "String", - "Symbol", - "TypeError", - "Uint8Array", - "Uint8ClampedArray", - "Uint16Array", - "Uint32Array", - "WeakMap", - "_", - "clearTimeout", - "isFinite", - "parseInt", - "setTimeout" - ]; - var templateCounter = -1; - var typedArrayTags = {}; - typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; - typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; - var cloneableTags = {}; - cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; - cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; - var deburredLetters = { - "\xC0": "A", - "\xC1": "A", - "\xC2": "A", - "\xC3": "A", - "\xC4": "A", - "\xC5": "A", - "\xE0": "a", - "\xE1": "a", - "\xE2": "a", - "\xE3": "a", - "\xE4": "a", - "\xE5": "a", - "\xC7": "C", - "\xE7": "c", - "\xD0": "D", - "\xF0": "d", - "\xC8": "E", - "\xC9": "E", - "\xCA": "E", - "\xCB": "E", - "\xE8": "e", - "\xE9": "e", - "\xEA": "e", - "\xEB": "e", - "\xCC": "I", - "\xCD": "I", - "\xCE": "I", - "\xCF": "I", - "\xEC": "i", - "\xED": "i", - "\xEE": "i", - "\xEF": "i", - "\xD1": "N", - "\xF1": "n", - "\xD2": "O", - "\xD3": "O", - "\xD4": "O", - "\xD5": "O", - "\xD6": "O", - "\xD8": "O", - "\xF2": "o", - "\xF3": "o", - "\xF4": "o", - "\xF5": "o", - "\xF6": "o", - "\xF8": "o", - "\xD9": "U", - "\xDA": "U", - "\xDB": "U", - "\xDC": "U", - "\xF9": "u", - "\xFA": "u", - "\xFB": "u", - "\xFC": "u", - "\xDD": "Y", - "\xFD": "y", - "\xFF": "y", - "\xC6": "Ae", - "\xE6": "ae", - "\xDE": "Th", - "\xFE": "th", - "\xDF": "ss", - "\u0100": "A", - "\u0102": "A", - "\u0104": "A", - "\u0101": "a", - "\u0103": "a", - "\u0105": "a", - "\u0106": "C", - "\u0108": "C", - "\u010A": "C", - "\u010C": "C", - "\u0107": "c", - "\u0109": "c", - "\u010B": "c", - "\u010D": "c", - "\u010E": "D", - "\u0110": "D", - "\u010F": "d", - "\u0111": "d", - "\u0112": "E", - "\u0114": "E", - "\u0116": "E", - "\u0118": "E", - "\u011A": "E", - "\u0113": "e", - "\u0115": "e", - "\u0117": "e", - "\u0119": "e", - "\u011B": "e", - "\u011C": "G", - "\u011E": "G", - "\u0120": "G", - "\u0122": "G", - "\u011D": "g", - "\u011F": "g", - "\u0121": "g", - "\u0123": "g", - "\u0124": "H", - "\u0126": "H", - "\u0125": "h", - "\u0127": "h", - "\u0128": "I", - "\u012A": "I", - "\u012C": "I", - "\u012E": "I", - "\u0130": "I", - "\u0129": "i", - "\u012B": "i", - "\u012D": "i", - "\u012F": "i", - "\u0131": "i", - "\u0134": "J", - "\u0135": "j", - "\u0136": "K", - "\u0137": "k", - "\u0138": "k", - "\u0139": "L", - "\u013B": "L", - "\u013D": "L", - "\u013F": "L", - "\u0141": "L", - "\u013A": "l", - "\u013C": "l", - "\u013E": "l", - "\u0140": "l", - "\u0142": "l", - "\u0143": "N", - "\u0145": "N", - "\u0147": "N", - "\u014A": "N", - "\u0144": "n", - "\u0146": "n", - "\u0148": "n", - "\u014B": "n", - "\u014C": "O", - "\u014E": "O", - "\u0150": "O", - "\u014D": "o", - "\u014F": "o", - "\u0151": "o", - "\u0154": "R", - "\u0156": "R", - "\u0158": "R", - "\u0155": "r", - "\u0157": "r", - "\u0159": "r", - "\u015A": "S", - "\u015C": "S", - "\u015E": "S", - "\u0160": "S", - "\u015B": "s", - "\u015D": "s", - "\u015F": "s", - "\u0161": "s", - "\u0162": "T", - "\u0164": "T", - "\u0166": "T", - "\u0163": "t", - "\u0165": "t", - "\u0167": "t", - "\u0168": "U", - "\u016A": "U", - "\u016C": "U", - "\u016E": "U", - "\u0170": "U", - "\u0172": "U", - "\u0169": "u", - "\u016B": "u", - "\u016D": "u", - "\u016F": "u", - "\u0171": "u", - "\u0173": "u", - "\u0174": "W", - "\u0175": "w", - "\u0176": "Y", - "\u0177": "y", - "\u0178": "Y", - "\u0179": "Z", - "\u017B": "Z", - "\u017D": "Z", - "\u017A": "z", - "\u017C": "z", - "\u017E": "z", - "\u0132": "IJ", - "\u0133": "ij", - "\u0152": "Oe", - "\u0153": "oe", - "\u0149": "'n", - "\u017F": "s" - }; - var htmlEscapes = { - "&": "&", - "<": "<", - ">": ">", - '"': """, - "'": "'" - }; - var htmlUnescapes = { - "&": "&", - "<": "<", - ">": ">", - """: '"', - "'": "'" - }; - var stringEscapes = { - "\\": "\\", - "'": "'", - "\n": "n", - "\r": "r", - "\u2028": "u2028", - "\u2029": "u2029" - }; - var freeParseFloat = parseFloat, freeParseInt = parseInt; - var freeGlobal = typeof global == "object" && global && global.Object === Object && global; - var freeSelf = typeof self == "object" && self && self.Object === Object && self; - var root = freeGlobal || freeSelf || Function("return this")(); - var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports; - var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2; - var moduleExports = freeModule && freeModule.exports === freeExports; - var freeProcess = moduleExports && freeGlobal.process; - var nodeUtil = function() { - try { - var types2 = freeModule && freeModule.require && freeModule.require("util").types; - if (types2) { - return types2; - } - return freeProcess && freeProcess.binding && freeProcess.binding("util"); - } catch (e5) { - } - }(); - var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer, nodeIsDate = nodeUtil && nodeUtil.isDate, nodeIsMap = nodeUtil && nodeUtil.isMap, nodeIsRegExp = nodeUtil && nodeUtil.isRegExp, nodeIsSet = nodeUtil && nodeUtil.isSet, nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; - function apply2(func, thisArg, args) { - switch (args.length) { - case 0: - return func.call(thisArg); - case 1: - return func.call(thisArg, args[0]); - case 2: - return func.call(thisArg, args[0], args[1]); - case 3: - return func.call(thisArg, args[0], args[1], args[2]); - } - return func.apply(thisArg, args); - } - function arrayAggregator(array, setter, iteratee, accumulator) { - var index3 = -1, length = array == null ? 0 : array.length; - while (++index3 < length) { - var value = array[index3]; - setter(accumulator, value, iteratee(value), array); - } - return accumulator; - } - function arrayEach(array, iteratee) { - var index3 = -1, length = array == null ? 0 : array.length; - while (++index3 < length) { - if (iteratee(array[index3], index3, array) === false) { - break; - } - } - return array; - } - function arrayEachRight(array, iteratee) { - var length = array == null ? 0 : array.length; - while (length--) { - if (iteratee(array[length], length, array) === false) { - break; - } - } - return array; - } - function arrayEvery(array, predicate) { - var index3 = -1, length = array == null ? 0 : array.length; - while (++index3 < length) { - if (!predicate(array[index3], index3, array)) { - return false; - } - } - return true; - } - function arrayFilter(array, predicate) { - var index3 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = []; - while (++index3 < length) { - var value = array[index3]; - if (predicate(value, index3, array)) { - result[resIndex++] = value; - } - } - return result; - } - function arrayIncludes(array, value) { - var length = array == null ? 0 : array.length; - return !!length && baseIndexOf(array, value, 0) > -1; - } - function arrayIncludesWith(array, value, comparator) { - var index3 = -1, length = array == null ? 0 : array.length; - while (++index3 < length) { - if (comparator(value, array[index3])) { - return true; - } - } - return false; - } - function arrayMap(array, iteratee) { - var index3 = -1, length = array == null ? 0 : array.length, result = Array(length); - while (++index3 < length) { - result[index3] = iteratee(array[index3], index3, array); - } - return result; - } - function arrayPush(array, values2) { - var index3 = -1, length = values2.length, offset2 = array.length; - while (++index3 < length) { - array[offset2 + index3] = values2[index3]; - } - return array; - } - function arrayReduce(array, iteratee, accumulator, initAccum) { - var index3 = -1, length = array == null ? 0 : array.length; - if (initAccum && length) { - accumulator = array[++index3]; - } - while (++index3 < length) { - accumulator = iteratee(accumulator, array[index3], index3, array); - } - return accumulator; - } - function arrayReduceRight(array, iteratee, accumulator, initAccum) { - var length = array == null ? 0 : array.length; - if (initAccum && length) { - accumulator = array[--length]; - } - while (length--) { - accumulator = iteratee(accumulator, array[length], length, array); - } - return accumulator; - } - function arraySome(array, predicate) { - var index3 = -1, length = array == null ? 0 : array.length; - while (++index3 < length) { - if (predicate(array[index3], index3, array)) { - return true; - } - } - return false; - } - var asciiSize = baseProperty("length"); - function asciiToArray(string6) { - return string6.split(""); - } - function asciiWords(string6) { - return string6.match(reAsciiWord) || []; - } - function baseFindKey(collection, predicate, eachFunc) { - var result; - eachFunc(collection, function(value, key2, collection2) { - if (predicate(value, key2, collection2)) { - result = key2; - return false; - } - }); - return result; - } - function baseFindIndex(array, predicate, fromIndex, fromRight) { - var length = array.length, index3 = fromIndex + (fromRight ? 1 : -1); - while (fromRight ? index3-- : ++index3 < length) { - if (predicate(array[index3], index3, array)) { - return index3; - } - } - return -1; - } - function baseIndexOf(array, value, fromIndex) { - return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex); - } - function baseIndexOfWith(array, value, fromIndex, comparator) { - var index3 = fromIndex - 1, length = array.length; - while (++index3 < length) { - if (comparator(array[index3], value)) { - return index3; - } - } - return -1; - } - function baseIsNaN(value) { - return value !== value; - } - function baseMean(array, iteratee) { - var length = array == null ? 0 : array.length; - return length ? baseSum(array, iteratee) / length : NAN; - } - function baseProperty(key2) { - return function(object) { - return object == null ? undefined2 : object[key2]; - }; - } - function basePropertyOf(object) { - return function(key2) { - return object == null ? undefined2 : object[key2]; - }; - } - function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) { - eachFunc(collection, function(value, index3, collection2) { - accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index3, collection2); - }); - return accumulator; - } - function baseSortBy(array, comparer) { - var length = array.length; - array.sort(comparer); - while (length--) { - array[length] = array[length].value; - } - return array; - } - function baseSum(array, iteratee) { - var result, index3 = -1, length = array.length; - while (++index3 < length) { - var current3 = iteratee(array[index3]); - if (current3 !== undefined2) { - result = result === undefined2 ? current3 : result + current3; - } - } - return result; - } - function baseTimes(n3, iteratee) { - var index3 = -1, result = Array(n3); - while (++index3 < n3) { - result[index3] = iteratee(index3); - } - return result; - } - function baseToPairs(object, props) { - return arrayMap(props, function(key2) { - return [key2, object[key2]]; - }); - } - function baseTrim(string6) { - return string6 ? string6.slice(0, trimmedEndIndex(string6) + 1).replace(reTrimStart, "") : string6; - } - function baseUnary(func) { - return function(value) { - return func(value); - }; - } - function baseValues(object, props) { - return arrayMap(props, function(key2) { - return object[key2]; - }); - } - function cacheHas(cache2, key2) { - return cache2.has(key2); - } - function charsStartIndex(strSymbols, chrSymbols) { - var index3 = -1, length = strSymbols.length; - while (++index3 < length && baseIndexOf(chrSymbols, strSymbols[index3], 0) > -1) { - } - return index3; - } - function charsEndIndex(strSymbols, chrSymbols) { - var index3 = strSymbols.length; - while (index3-- && baseIndexOf(chrSymbols, strSymbols[index3], 0) > -1) { - } - return index3; - } - function countHolders(array, placeholder2) { - var length = array.length, result = 0; - while (length--) { - if (array[length] === placeholder2) { - ++result; - } - } - return result; - } - var deburrLetter = basePropertyOf(deburredLetters); - var escapeHtmlChar = basePropertyOf(htmlEscapes); - function escapeStringChar(chr) { - return "\\" + stringEscapes[chr]; - } - function getValue(object, key2) { - return object == null ? undefined2 : object[key2]; - } - function hasUnicode(string6) { - return reHasUnicode.test(string6); - } - function hasUnicodeWord(string6) { - return reHasUnicodeWord.test(string6); - } - function iteratorToArray(iterator) { - var data2, result = []; - while (!(data2 = iterator.next()).done) { - result.push(data2.value); - } - return result; - } - function mapToArray(map4) { - var index3 = -1, result = Array(map4.size); - map4.forEach(function(value, key2) { - result[++index3] = [key2, value]; - }); - return result; - } - function overArg(func, transform) { - return function(arg2) { - return func(transform(arg2)); - }; - } - function replaceHolders(array, placeholder2) { - var index3 = -1, length = array.length, resIndex = 0, result = []; - while (++index3 < length) { - var value = array[index3]; - if (value === placeholder2 || value === PLACEHOLDER) { - array[index3] = PLACEHOLDER; - result[resIndex++] = index3; - } - } - return result; - } - function setToArray(set) { - var index3 = -1, result = Array(set.size); - set.forEach(function(value) { - result[++index3] = value; - }); - return result; - } - function setToPairs(set) { - var index3 = -1, result = Array(set.size); - set.forEach(function(value) { - result[++index3] = [value, value]; - }); - return result; - } - function strictIndexOf(array, value, fromIndex) { - var index3 = fromIndex - 1, length = array.length; - while (++index3 < length) { - if (array[index3] === value) { - return index3; - } - } - return -1; - } - function strictLastIndexOf(array, value, fromIndex) { - var index3 = fromIndex + 1; - while (index3--) { - if (array[index3] === value) { - return index3; - } - } - return index3; - } - function stringSize(string6) { - return hasUnicode(string6) ? unicodeSize(string6) : asciiSize(string6); - } - function stringToArray(string6) { - return hasUnicode(string6) ? unicodeToArray(string6) : asciiToArray(string6); - } - function trimmedEndIndex(string6) { - var index3 = string6.length; - while (index3-- && reWhitespace.test(string6.charAt(index3))) { - } - return index3; - } - var unescapeHtmlChar = basePropertyOf(htmlUnescapes); - function unicodeSize(string6) { - var result = reUnicode.lastIndex = 0; - while (reUnicode.test(string6)) { - ++result; - } - return result; - } - function unicodeToArray(string6) { - return string6.match(reUnicode) || []; - } - function unicodeWords(string6) { - return string6.match(reUnicodeWord) || []; - } - var runInContext = function runInContext2(context) { - context = context == null ? root : _16.defaults(root.Object(), context, _16.pick(root, contextProps)); - var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError; - var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype; - var coreJsData = context["__core-js_shared__"]; - var funcToString = funcProto.toString; - var hasOwnProperty3 = objectProto.hasOwnProperty; - var idCounter = 0; - var maskSrcKey = function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); - return uid ? "Symbol(src)_1." + uid : ""; - }(); - var nativeObjectToString = objectProto.toString; - var objectCtorString = funcToString.call(Object2); - var oldDash = root._; - var reIsNative = RegExp2( - "^" + funcToString.call(hasOwnProperty3).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" - ); - var Buffer2 = moduleExports ? context.Buffer : undefined2, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined2, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined2, symIterator = Symbol2 ? Symbol2.iterator : undefined2, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined2; - var defineProperty = function() { - try { - var func = getNative(Object2, "defineProperty"); - func({}, "", {}); - return func; - } catch (e5) { - } - }(); - var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout; - var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined2, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse; - var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap2 = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create"); - var metaMap = WeakMap2 && new WeakMap2(); - var realNames = {}; - var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2); - var symbolProto = Symbol2 ? Symbol2.prototype : undefined2, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined2, symbolToString = symbolProto ? symbolProto.toString : undefined2; - function lodash(value) { - if (isObjectLike2(value) && !isArray5(value) && !(value instanceof LazyWrapper)) { - if (value instanceof LodashWrapper) { - return value; - } - if (hasOwnProperty3.call(value, "__wrapped__")) { - return wrapperClone(value); - } - } - return new LodashWrapper(value); - } - var baseCreate = function() { - function object() { - } - return function(proto) { - if (!isObject4(proto)) { - return {}; - } - if (objectCreate) { - return objectCreate(proto); - } - object.prototype = proto; - var result2 = new object(); - object.prototype = undefined2; - return result2; - }; - }(); - function baseLodash() { - } - function LodashWrapper(value, chainAll) { - this.__wrapped__ = value; - this.__actions__ = []; - this.__chain__ = !!chainAll; - this.__index__ = 0; - this.__values__ = undefined2; - } - lodash.templateSettings = { - "escape": reEscape, - "evaluate": reEvaluate, - "interpolate": reInterpolate, - "variable": "", - "imports": { - "_": lodash - } - }; - lodash.prototype = baseLodash.prototype; - lodash.prototype.constructor = lodash; - LodashWrapper.prototype = baseCreate(baseLodash.prototype); - LodashWrapper.prototype.constructor = LodashWrapper; - function LazyWrapper(value) { - this.__wrapped__ = value; - this.__actions__ = []; - this.__dir__ = 1; - this.__filtered__ = false; - this.__iteratees__ = []; - this.__takeCount__ = MAX_ARRAY_LENGTH; - this.__views__ = []; - } - function lazyClone() { - var result2 = new LazyWrapper(this.__wrapped__); - result2.__actions__ = copyArray(this.__actions__); - result2.__dir__ = this.__dir__; - result2.__filtered__ = this.__filtered__; - result2.__iteratees__ = copyArray(this.__iteratees__); - result2.__takeCount__ = this.__takeCount__; - result2.__views__ = copyArray(this.__views__); - return result2; - } - function lazyReverse() { - if (this.__filtered__) { - var result2 = new LazyWrapper(this); - result2.__dir__ = -1; - result2.__filtered__ = true; - } else { - result2 = this.clone(); - result2.__dir__ *= -1; - } - return result2; - } - function lazyValue() { - var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray5(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start, index3 = isRight ? end : start - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin(length, this.__takeCount__); - if (!isArr || !isRight && arrLength == length && takeCount == length) { - return baseWrapperValue(array, this.__actions__); - } - var result2 = []; - outer: - while (length-- && resIndex < takeCount) { - index3 += dir; - var iterIndex = -1, value = array[index3]; - while (++iterIndex < iterLength) { - var data2 = iteratees[iterIndex], iteratee2 = data2.iteratee, type = data2.type, computed = iteratee2(value); - if (type == LAZY_MAP_FLAG) { - value = computed; - } else if (!computed) { - if (type == LAZY_FILTER_FLAG) { - continue outer; - } else { - break outer; - } - } - } - result2[resIndex++] = value; - } - return result2; - } - LazyWrapper.prototype = baseCreate(baseLodash.prototype); - LazyWrapper.prototype.constructor = LazyWrapper; - function Hash(entries) { - var index3 = -1, length = entries == null ? 0 : entries.length; - this.clear(); - while (++index3 < length) { - var entry = entries[index3]; - this.set(entry[0], entry[1]); - } - } - function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; - } - function hashDelete(key2) { - var result2 = this.has(key2) && delete this.__data__[key2]; - this.size -= result2 ? 1 : 0; - return result2; - } - function hashGet(key2) { - var data2 = this.__data__; - if (nativeCreate) { - var result2 = data2[key2]; - return result2 === HASH_UNDEFINED ? undefined2 : result2; - } - return hasOwnProperty3.call(data2, key2) ? data2[key2] : undefined2; - } - function hashHas(key2) { - var data2 = this.__data__; - return nativeCreate ? data2[key2] !== undefined2 : hasOwnProperty3.call(data2, key2); - } - function hashSet(key2, value) { - var data2 = this.__data__; - this.size += this.has(key2) ? 0 : 1; - data2[key2] = nativeCreate && value === undefined2 ? HASH_UNDEFINED : value; - return this; - } - Hash.prototype.clear = hashClear; - Hash.prototype["delete"] = hashDelete; - Hash.prototype.get = hashGet; - Hash.prototype.has = hashHas; - Hash.prototype.set = hashSet; - function ListCache(entries) { - var index3 = -1, length = entries == null ? 0 : entries.length; - this.clear(); - while (++index3 < length) { - var entry = entries[index3]; - this.set(entry[0], entry[1]); - } - } - function listCacheClear() { - this.__data__ = []; - this.size = 0; - } - function listCacheDelete(key2) { - var data2 = this.__data__, index3 = assocIndexOf(data2, key2); - if (index3 < 0) { - return false; - } - var lastIndex = data2.length - 1; - if (index3 == lastIndex) { - data2.pop(); - } else { - splice.call(data2, index3, 1); - } - --this.size; - return true; - } - function listCacheGet(key2) { - var data2 = this.__data__, index3 = assocIndexOf(data2, key2); - return index3 < 0 ? undefined2 : data2[index3][1]; - } - function listCacheHas(key2) { - return assocIndexOf(this.__data__, key2) > -1; - } - function listCacheSet(key2, value) { - var data2 = this.__data__, index3 = assocIndexOf(data2, key2); - if (index3 < 0) { - ++this.size; - data2.push([key2, value]); - } else { - data2[index3][1] = value; - } - return this; - } - ListCache.prototype.clear = listCacheClear; - ListCache.prototype["delete"] = listCacheDelete; - ListCache.prototype.get = listCacheGet; - ListCache.prototype.has = listCacheHas; - ListCache.prototype.set = listCacheSet; - function MapCache(entries) { - var index3 = -1, length = entries == null ? 0 : entries.length; - this.clear(); - while (++index3 < length) { - var entry = entries[index3]; - this.set(entry[0], entry[1]); - } - } - function mapCacheClear() { - this.size = 0; - this.__data__ = { - "hash": new Hash(), - "map": new (Map2 || ListCache)(), - "string": new Hash() - }; - } - function mapCacheDelete(key2) { - var result2 = getMapData(this, key2)["delete"](key2); - this.size -= result2 ? 1 : 0; - return result2; - } - function mapCacheGet(key2) { - return getMapData(this, key2).get(key2); - } - function mapCacheHas(key2) { - return getMapData(this, key2).has(key2); - } - function mapCacheSet(key2, value) { - var data2 = getMapData(this, key2), size3 = data2.size; - data2.set(key2, value); - this.size += data2.size == size3 ? 0 : 1; - return this; - } - MapCache.prototype.clear = mapCacheClear; - MapCache.prototype["delete"] = mapCacheDelete; - MapCache.prototype.get = mapCacheGet; - MapCache.prototype.has = mapCacheHas; - MapCache.prototype.set = mapCacheSet; - function SetCache(values3) { - var index3 = -1, length = values3 == null ? 0 : values3.length; - this.__data__ = new MapCache(); - while (++index3 < length) { - this.add(values3[index3]); - } - } - function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); - return this; - } - function setCacheHas(value) { - return this.__data__.has(value); - } - SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; - SetCache.prototype.has = setCacheHas; - function Stack2(entries) { - var data2 = this.__data__ = new ListCache(entries); - this.size = data2.size; - } - function stackClear() { - this.__data__ = new ListCache(); - this.size = 0; - } - function stackDelete(key2) { - var data2 = this.__data__, result2 = data2["delete"](key2); - this.size = data2.size; - return result2; - } - function stackGet(key2) { - return this.__data__.get(key2); - } - function stackHas(key2) { - return this.__data__.has(key2); - } - function stackSet(key2, value) { - var data2 = this.__data__; - if (data2 instanceof ListCache) { - var pairs = data2.__data__; - if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) { - pairs.push([key2, value]); - this.size = ++data2.size; - return this; - } - data2 = this.__data__ = new MapCache(pairs); - } - data2.set(key2, value); - this.size = data2.size; - return this; - } - Stack2.prototype.clear = stackClear; - Stack2.prototype["delete"] = stackDelete; - Stack2.prototype.get = stackGet; - Stack2.prototype.has = stackHas; - Stack2.prototype.set = stackSet; - function arrayLikeKeys(value, inherited) { - var isArr = isArray5(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length, String2) : [], length = result2.length; - for (var key2 in value) { - if ((inherited || hasOwnProperty3.call(value, key2)) && !(skipIndexes && (key2 == "length" || isBuff && (key2 == "offset" || key2 == "parent") || isType && (key2 == "buffer" || key2 == "byteLength" || key2 == "byteOffset") || isIndex2(key2, length)))) { - result2.push(key2); - } - } - return result2; - } - function arraySample(array) { - var length = array.length; - return length ? array[baseRandom(0, length - 1)] : undefined2; - } - function arraySampleSize(array, n3) { - return shuffleSelf(copyArray(array), baseClamp(n3, 0, array.length)); - } - function arrayShuffle(array) { - return shuffleSelf(copyArray(array)); - } - function assignMergeValue(object, key2, value) { - if (value !== undefined2 && !eq(object[key2], value) || value === undefined2 && !(key2 in object)) { - baseAssignValue(object, key2, value); - } - } - function assignValue(object, key2, value) { - var objValue = object[key2]; - if (!(hasOwnProperty3.call(object, key2) && eq(objValue, value)) || value === undefined2 && !(key2 in object)) { - baseAssignValue(object, key2, value); - } - } - function assocIndexOf(array, key2) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key2)) { - return length; - } - } - return -1; - } - function baseAggregator(collection, setter, iteratee2, accumulator) { - baseEach(collection, function(value, key2, collection2) { - setter(accumulator, value, iteratee2(value), collection2); - }); - return accumulator; - } - function baseAssign(object, source) { - return object && copyObject(source, keys(source), object); - } - function baseAssignIn(object, source) { - return object && copyObject(source, keysIn(source), object); - } - function baseAssignValue(object, key2, value) { - if (key2 == "__proto__" && defineProperty) { - defineProperty(object, key2, { - "configurable": true, - "enumerable": true, - "value": value, - "writable": true - }); - } else { - object[key2] = value; - } - } - function baseAt(object, paths) { - var index3 = -1, length = paths.length, result2 = Array2(length), skip = object == null; - while (++index3 < length) { - result2[index3] = skip ? undefined2 : get2(object, paths[index3]); - } - return result2; - } - function baseClamp(number6, lower, upper) { - if (number6 === number6) { - if (upper !== undefined2) { - number6 = number6 <= upper ? number6 : upper; - } - if (lower !== undefined2) { - number6 = number6 >= lower ? number6 : lower; - } - } - return number6; - } - function baseClone(value, bitmask, customizer, key2, object, stack) { - var result2, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG; - if (customizer) { - result2 = object ? customizer(value, key2, object, stack) : customizer(value); - } - if (result2 !== undefined2) { - return result2; - } - if (!isObject4(value)) { - return value; - } - var isArr = isArray5(value); - if (isArr) { - result2 = initCloneArray(value); - if (!isDeep) { - return copyArray(value, result2); - } - } else { - var tag2 = getTag2(value), isFunc = tag2 == funcTag || tag2 == genTag; - if (isBuffer(value)) { - return cloneBuffer(value, isDeep); - } - if (tag2 == objectTag || tag2 == argsTag || isFunc && !object) { - result2 = isFlat || isFunc ? {} : initCloneObject(value); - if (!isDeep) { - return isFlat ? copySymbolsIn(value, baseAssignIn(result2, value)) : copySymbols(value, baseAssign(result2, value)); - } - } else { - if (!cloneableTags[tag2]) { - return object ? value : {}; - } - result2 = initCloneByTag(value, tag2, isDeep); - } - } - stack || (stack = new Stack2()); - var stacked = stack.get(value); - if (stacked) { - return stacked; - } - stack.set(value, result2); - if (isSet(value)) { - value.forEach(function(subValue) { - result2.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); - }); - } else if (isMap2(value)) { - value.forEach(function(subValue, key3) { - result2.set(key3, baseClone(subValue, bitmask, customizer, key3, value, stack)); - }); - } - var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys; - var props = isArr ? undefined2 : keysFunc(value); - arrayEach(props || value, function(subValue, key3) { - if (props) { - key3 = subValue; - subValue = value[key3]; - } - assignValue(result2, key3, baseClone(subValue, bitmask, customizer, key3, value, stack)); - }); - return result2; - } - function baseConforms(source) { - var props = keys(source); - return function(object) { - return baseConformsTo(object, source, props); - }; - } - function baseConformsTo(object, source, props) { - var length = props.length; - if (object == null) { - return !length; - } - object = Object2(object); - while (length--) { - var key2 = props[length], predicate = source[key2], value = object[key2]; - if (value === undefined2 && !(key2 in object) || !predicate(value)) { - return false; - } - } - return true; - } - function baseDelay(func, wait, args) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - return setTimeout2(function() { - func.apply(undefined2, args); - }, wait); - } - function baseDifference(array, values3, iteratee2, comparator) { - var index3 = -1, includes2 = arrayIncludes, isCommon = true, length = array.length, result2 = [], valuesLength = values3.length; - if (!length) { - return result2; - } - if (iteratee2) { - values3 = arrayMap(values3, baseUnary(iteratee2)); - } - if (comparator) { - includes2 = arrayIncludesWith; - isCommon = false; - } else if (values3.length >= LARGE_ARRAY_SIZE) { - includes2 = cacheHas; - isCommon = false; - values3 = new SetCache(values3); - } - outer: - while (++index3 < length) { - var value = array[index3], computed = iteratee2 == null ? value : iteratee2(value); - value = comparator || value !== 0 ? value : 0; - if (isCommon && computed === computed) { - var valuesIndex = valuesLength; - while (valuesIndex--) { - if (values3[valuesIndex] === computed) { - continue outer; - } - } - result2.push(value); - } else if (!includes2(values3, computed, comparator)) { - result2.push(value); - } - } - return result2; - } - var baseEach = createBaseEach(baseForOwn); - var baseEachRight = createBaseEach(baseForOwnRight, true); - function baseEvery(collection, predicate) { - var result2 = true; - baseEach(collection, function(value, index3, collection2) { - result2 = !!predicate(value, index3, collection2); - return result2; - }); - return result2; - } - function baseExtremum(array, iteratee2, comparator) { - var index3 = -1, length = array.length; - while (++index3 < length) { - var value = array[index3], current3 = iteratee2(value); - if (current3 != null && (computed === undefined2 ? current3 === current3 && !isSymbol(current3) : comparator(current3, computed))) { - var computed = current3, result2 = value; - } - } - return result2; - } - function baseFill(array, value, start, end) { - var length = array.length; - start = toInteger2(start); - if (start < 0) { - start = -start > length ? 0 : length + start; - } - end = end === undefined2 || end > length ? length : toInteger2(end); - if (end < 0) { - end += length; - } - end = start > end ? 0 : toLength(end); - while (start < end) { - array[start++] = value; - } - return array; - } - function baseFilter(collection, predicate) { - var result2 = []; - baseEach(collection, function(value, index3, collection2) { - if (predicate(value, index3, collection2)) { - result2.push(value); - } - }); - return result2; - } - function baseFlatten(array, depth, predicate, isStrict, result2) { - var index3 = -1, length = array.length; - predicate || (predicate = isFlattenable); - result2 || (result2 = []); - while (++index3 < length) { - var value = array[index3]; - if (depth > 0 && predicate(value)) { - if (depth > 1) { - baseFlatten(value, depth - 1, predicate, isStrict, result2); - } else { - arrayPush(result2, value); - } - } else if (!isStrict) { - result2[result2.length] = value; - } - } - return result2; - } - var baseFor = createBaseFor(); - var baseForRight = createBaseFor(true); - function baseForOwn(object, iteratee2) { - return object && baseFor(object, iteratee2, keys); - } - function baseForOwnRight(object, iteratee2) { - return object && baseForRight(object, iteratee2, keys); - } - function baseFunctions(object, props) { - return arrayFilter(props, function(key2) { - return isFunction3(object[key2]); - }); - } - function baseGet(object, path2) { - path2 = castPath(path2, object); - var index3 = 0, length = path2.length; - while (object != null && index3 < length) { - object = object[toKey(path2[index3++])]; - } - return index3 && index3 == length ? object : undefined2; - } - function baseGetAllKeys(object, keysFunc, symbolsFunc) { - var result2 = keysFunc(object); - return isArray5(object) ? result2 : arrayPush(result2, symbolsFunc(object)); - } - function baseGetTag(value) { - if (value == null) { - return value === undefined2 ? undefinedTag : nullTag; - } - return symToStringTag && symToStringTag in Object2(value) ? getRawTag(value) : objectToString(value); - } - function baseGt(value, other) { - return value > other; - } - function baseHas(object, key2) { - return object != null && hasOwnProperty3.call(object, key2); - } - function baseHasIn(object, key2) { - return object != null && key2 in Object2(object); - } - function baseInRange(number6, start, end) { - return number6 >= nativeMin(start, end) && number6 < nativeMax(start, end); - } - function baseIntersection(arrays, iteratee2, comparator) { - var includes2 = comparator ? arrayIncludesWith : arrayIncludes, length = arrays[0].length, othLength = arrays.length, othIndex = othLength, caches = Array2(othLength), maxLength = Infinity, result2 = []; - while (othIndex--) { - var array = arrays[othIndex]; - if (othIndex && iteratee2) { - array = arrayMap(array, baseUnary(iteratee2)); - } - maxLength = nativeMin(array.length, maxLength); - caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined2; - } - array = arrays[0]; - var index3 = -1, seen = caches[0]; - outer: - while (++index3 < length && result2.length < maxLength) { - var value = array[index3], computed = iteratee2 ? iteratee2(value) : value; - value = comparator || value !== 0 ? value : 0; - if (!(seen ? cacheHas(seen, computed) : includes2(result2, computed, comparator))) { - othIndex = othLength; - while (--othIndex) { - var cache2 = caches[othIndex]; - if (!(cache2 ? cacheHas(cache2, computed) : includes2(arrays[othIndex], computed, comparator))) { - continue outer; - } - } - if (seen) { - seen.push(computed); - } - result2.push(value); - } - } - return result2; - } - function baseInverter(object, setter, iteratee2, accumulator) { - baseForOwn(object, function(value, key2, object2) { - setter(accumulator, iteratee2(value), key2, object2); - }); - return accumulator; - } - function baseInvoke(object, path2, args) { - path2 = castPath(path2, object); - object = parent(object, path2); - var func = object == null ? object : object[toKey(last(path2))]; - return func == null ? undefined2 : apply2(func, object, args); - } - function baseIsArguments(value) { - return isObjectLike2(value) && baseGetTag(value) == argsTag; - } - function baseIsArrayBuffer(value) { - return isObjectLike2(value) && baseGetTag(value) == arrayBufferTag; - } - function baseIsDate(value) { - return isObjectLike2(value) && baseGetTag(value) == dateTag; - } - function baseIsEqual(value, other, bitmask, customizer, stack) { - if (value === other) { - return true; - } - if (value == null || other == null || !isObjectLike2(value) && !isObjectLike2(other)) { - return value !== value && other !== other; - } - return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); - } - function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { - var objIsArr = isArray5(object), othIsArr = isArray5(other), objTag = objIsArr ? arrayTag : getTag2(object), othTag = othIsArr ? arrayTag : getTag2(other); - objTag = objTag == argsTag ? objectTag : objTag; - othTag = othTag == argsTag ? objectTag : othTag; - var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag; - if (isSameTag && isBuffer(object)) { - if (!isBuffer(other)) { - return false; - } - objIsArr = true; - objIsObj = false; - } - if (isSameTag && !objIsObj) { - stack || (stack = new Stack2()); - return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); - } - if (!(bitmask & COMPARE_PARTIAL_FLAG)) { - var objIsWrapped = objIsObj && hasOwnProperty3.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty3.call(other, "__wrapped__"); - if (objIsWrapped || othIsWrapped) { - var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other; - stack || (stack = new Stack2()); - return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); - } - } - if (!isSameTag) { - return false; - } - stack || (stack = new Stack2()); - return equalObjects(object, other, bitmask, customizer, equalFunc, stack); - } - function baseIsMap(value) { - return isObjectLike2(value) && getTag2(value) == mapTag; - } - function baseIsMatch(object, source, matchData, customizer) { - var index3 = matchData.length, length = index3, noCustomizer = !customizer; - if (object == null) { - return !length; - } - object = Object2(object); - while (index3--) { - var data2 = matchData[index3]; - if (noCustomizer && data2[2] ? data2[1] !== object[data2[0]] : !(data2[0] in object)) { - return false; - } - } - while (++index3 < length) { - data2 = matchData[index3]; - var key2 = data2[0], objValue = object[key2], srcValue = data2[1]; - if (noCustomizer && data2[2]) { - if (objValue === undefined2 && !(key2 in object)) { - return false; - } - } else { - var stack = new Stack2(); - if (customizer) { - var result2 = customizer(objValue, srcValue, key2, object, source, stack); - } - if (!(result2 === undefined2 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result2)) { - return false; - } - } - } - return true; - } - function baseIsNative(value) { - if (!isObject4(value) || isMasked(value)) { - return false; - } - var pattern = isFunction3(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); - } - function baseIsRegExp(value) { - return isObjectLike2(value) && baseGetTag(value) == regexpTag; - } - function baseIsSet(value) { - return isObjectLike2(value) && getTag2(value) == setTag; - } - function baseIsTypedArray(value) { - return isObjectLike2(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; - } - function baseIteratee(value) { - if (typeof value == "function") { - return value; - } - if (value == null) { - return identity2; - } - if (typeof value == "object") { - return isArray5(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value); - } - return property(value); - } - function baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); - } - var result2 = []; - for (var key2 in Object2(object)) { - if (hasOwnProperty3.call(object, key2) && key2 != "constructor") { - result2.push(key2); - } - } - return result2; - } - function baseKeysIn(object) { - if (!isObject4(object)) { - return nativeKeysIn(object); - } - var isProto = isPrototype(object), result2 = []; - for (var key2 in object) { - if (!(key2 == "constructor" && (isProto || !hasOwnProperty3.call(object, key2)))) { - result2.push(key2); - } - } - return result2; - } - function baseLt(value, other) { - return value < other; - } - function baseMap(collection, iteratee2) { - var index3 = -1, result2 = isArrayLike(collection) ? Array2(collection.length) : []; - baseEach(collection, function(value, key2, collection2) { - result2[++index3] = iteratee2(value, key2, collection2); - }); - return result2; - } - function baseMatches(source) { - var matchData = getMatchData(source); - if (matchData.length == 1 && matchData[0][2]) { - return matchesStrictComparable(matchData[0][0], matchData[0][1]); - } - return function(object) { - return object === source || baseIsMatch(object, source, matchData); - }; - } - function baseMatchesProperty(path2, srcValue) { - if (isKey(path2) && isStrictComparable(srcValue)) { - return matchesStrictComparable(toKey(path2), srcValue); - } - return function(object) { - var objValue = get2(object, path2); - return objValue === undefined2 && objValue === srcValue ? hasIn(object, path2) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); - }; - } - function baseMerge(object, source, srcIndex, customizer, stack) { - if (object === source) { - return; - } - baseFor(source, function(srcValue, key2) { - stack || (stack = new Stack2()); - if (isObject4(srcValue)) { - baseMergeDeep(object, source, key2, srcIndex, baseMerge, customizer, stack); - } else { - var newValue = customizer ? customizer(safeGet(object, key2), srcValue, key2 + "", object, source, stack) : undefined2; - if (newValue === undefined2) { - newValue = srcValue; - } - assignMergeValue(object, key2, newValue); - } - }, keysIn); - } - function baseMergeDeep(object, source, key2, srcIndex, mergeFunc, customizer, stack) { - var objValue = safeGet(object, key2), srcValue = safeGet(source, key2), stacked = stack.get(srcValue); - if (stacked) { - assignMergeValue(object, key2, stacked); - return; - } - var newValue = customizer ? customizer(objValue, srcValue, key2 + "", object, source, stack) : undefined2; - var isCommon = newValue === undefined2; - if (isCommon) { - var isArr = isArray5(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue); - newValue = srcValue; - if (isArr || isBuff || isTyped) { - if (isArray5(objValue)) { - newValue = objValue; - } else if (isArrayLikeObject(objValue)) { - newValue = copyArray(objValue); - } else if (isBuff) { - isCommon = false; - newValue = cloneBuffer(srcValue, true); - } else if (isTyped) { - isCommon = false; - newValue = cloneTypedArray(srcValue, true); - } else { - newValue = []; - } - } else if (isPlainObject2(srcValue) || isArguments(srcValue)) { - newValue = objValue; - if (isArguments(objValue)) { - newValue = toPlainObject(objValue); - } else if (!isObject4(objValue) || isFunction3(objValue)) { - newValue = initCloneObject(srcValue); - } - } else { - isCommon = false; - } - } - if (isCommon) { - stack.set(srcValue, newValue); - mergeFunc(newValue, srcValue, srcIndex, customizer, stack); - stack["delete"](srcValue); - } - assignMergeValue(object, key2, newValue); - } - function baseNth(array, n3) { - var length = array.length; - if (!length) { - return; - } - n3 += n3 < 0 ? length : 0; - return isIndex2(n3, length) ? array[n3] : undefined2; - } - function baseOrderBy(collection, iteratees, orders) { - if (iteratees.length) { - iteratees = arrayMap(iteratees, function(iteratee2) { - if (isArray5(iteratee2)) { - return function(value) { - return baseGet(value, iteratee2.length === 1 ? iteratee2[0] : iteratee2); - }; - } - return iteratee2; - }); - } else { - iteratees = [identity2]; - } - var index3 = -1; - iteratees = arrayMap(iteratees, baseUnary(getIteratee())); - var result2 = baseMap(collection, function(value, key2, collection2) { - var criteria = arrayMap(iteratees, function(iteratee2) { - return iteratee2(value); - }); - return { "criteria": criteria, "index": ++index3, "value": value }; - }); - return baseSortBy(result2, function(object, other) { - return compareMultiple(object, other, orders); - }); - } - function basePick(object, paths) { - return basePickBy(object, paths, function(value, path2) { - return hasIn(object, path2); - }); - } - function basePickBy(object, paths, predicate) { - var index3 = -1, length = paths.length, result2 = {}; - while (++index3 < length) { - var path2 = paths[index3], value = baseGet(object, path2); - if (predicate(value, path2)) { - baseSet(result2, castPath(path2, object), value); - } - } - return result2; - } - function basePropertyDeep(path2) { - return function(object) { - return baseGet(object, path2); - }; - } - function basePullAll(array, values3, iteratee2, comparator) { - var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index3 = -1, length = values3.length, seen = array; - if (array === values3) { - values3 = copyArray(values3); - } - if (iteratee2) { - seen = arrayMap(array, baseUnary(iteratee2)); - } - while (++index3 < length) { - var fromIndex = 0, value = values3[index3], computed = iteratee2 ? iteratee2(value) : value; - while ((fromIndex = indexOf2(seen, computed, fromIndex, comparator)) > -1) { - if (seen !== array) { - splice.call(seen, fromIndex, 1); - } - splice.call(array, fromIndex, 1); - } - } - return array; - } - function basePullAt(array, indexes) { - var length = array ? indexes.length : 0, lastIndex = length - 1; - while (length--) { - var index3 = indexes[length]; - if (length == lastIndex || index3 !== previous) { - var previous = index3; - if (isIndex2(index3)) { - splice.call(array, index3, 1); - } else { - baseUnset(array, index3); - } - } - } - return array; - } - function baseRandom(lower, upper) { - return lower + nativeFloor(nativeRandom() * (upper - lower + 1)); - } - function baseRange(start, end, step, fromRight) { - var index3 = -1, length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), result2 = Array2(length); - while (length--) { - result2[fromRight ? length : ++index3] = start; - start += step; - } - return result2; - } - function baseRepeat(string6, n3) { - var result2 = ""; - if (!string6 || n3 < 1 || n3 > MAX_SAFE_INTEGER2) { - return result2; - } - do { - if (n3 % 2) { - result2 += string6; - } - n3 = nativeFloor(n3 / 2); - if (n3) { - string6 += string6; - } - } while (n3); - return result2; - } - function baseRest(func, start) { - return setToString(overRest(func, start, identity2), func + ""); - } - function baseSample(collection) { - return arraySample(values2(collection)); - } - function baseSampleSize(collection, n3) { - var array = values2(collection); - return shuffleSelf(array, baseClamp(n3, 0, array.length)); - } - function baseSet(object, path2, value, customizer) { - if (!isObject4(object)) { - return object; - } - path2 = castPath(path2, object); - var index3 = -1, length = path2.length, lastIndex = length - 1, nested = object; - while (nested != null && ++index3 < length) { - var key2 = toKey(path2[index3]), newValue = value; - if (key2 === "__proto__" || key2 === "constructor" || key2 === "prototype") { - return object; - } - if (index3 != lastIndex) { - var objValue = nested[key2]; - newValue = customizer ? customizer(objValue, key2, nested) : undefined2; - if (newValue === undefined2) { - newValue = isObject4(objValue) ? objValue : isIndex2(path2[index3 + 1]) ? [] : {}; - } - } - assignValue(nested, key2, newValue); - nested = nested[key2]; - } - return object; - } - var baseSetData = !metaMap ? identity2 : function(func, data2) { - metaMap.set(func, data2); - return func; - }; - var baseSetToString = !defineProperty ? identity2 : function(func, string6) { - return defineProperty(func, "toString", { - "configurable": true, - "enumerable": false, - "value": constant(string6), - "writable": true - }); - }; - function baseShuffle(collection) { - return shuffleSelf(values2(collection)); - } - function baseSlice(array, start, end) { - var index3 = -1, length = array.length; - if (start < 0) { - start = -start > length ? 0 : length + start; - } - end = end > length ? length : end; - if (end < 0) { - end += length; - } - length = start > end ? 0 : end - start >>> 0; - start >>>= 0; - var result2 = Array2(length); - while (++index3 < length) { - result2[index3] = array[index3 + start]; - } - return result2; - } - function baseSome(collection, predicate) { - var result2; - baseEach(collection, function(value, index3, collection2) { - result2 = predicate(value, index3, collection2); - return !result2; - }); - return !!result2; - } - function baseSortedIndex(array, value, retHighest) { - var low = 0, high = array == null ? low : array.length; - if (typeof value == "number" && value === value && high <= HALF_MAX_ARRAY_LENGTH) { - while (low < high) { - var mid = low + high >>> 1, computed = array[mid]; - if (computed !== null && !isSymbol(computed) && (retHighest ? computed <= value : computed < value)) { - low = mid + 1; - } else { - high = mid; - } - } - return high; - } - return baseSortedIndexBy(array, value, identity2, retHighest); - } - function baseSortedIndexBy(array, value, iteratee2, retHighest) { - var low = 0, high = array == null ? 0 : array.length; - if (high === 0) { - return 0; - } - value = iteratee2(value); - var valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol(value), valIsUndefined = value === undefined2; - while (low < high) { - var mid = nativeFloor((low + high) / 2), computed = iteratee2(array[mid]), othIsDefined = computed !== undefined2, othIsNull = computed === null, othIsReflexive = computed === computed, othIsSymbol = isSymbol(computed); - if (valIsNaN) { - var setLow = retHighest || othIsReflexive; - } else if (valIsUndefined) { - setLow = othIsReflexive && (retHighest || othIsDefined); - } else if (valIsNull) { - setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull); - } else if (valIsSymbol) { - setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol); - } else if (othIsNull || othIsSymbol) { - setLow = false; - } else { - setLow = retHighest ? computed <= value : computed < value; - } - if (setLow) { - low = mid + 1; - } else { - high = mid; - } - } - return nativeMin(high, MAX_ARRAY_INDEX); - } - function baseSortedUniq(array, iteratee2) { - var index3 = -1, length = array.length, resIndex = 0, result2 = []; - while (++index3 < length) { - var value = array[index3], computed = iteratee2 ? iteratee2(value) : value; - if (!index3 || !eq(computed, seen)) { - var seen = computed; - result2[resIndex++] = value === 0 ? 0 : value; - } - } - return result2; - } - function baseToNumber(value) { - if (typeof value == "number") { - return value; - } - if (isSymbol(value)) { - return NAN; - } - return +value; - } - function baseToString2(value) { - if (typeof value == "string") { - return value; - } - if (isArray5(value)) { - return arrayMap(value, baseToString2) + ""; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ""; - } - var result2 = value + ""; - return result2 == "0" && 1 / value == -INFINITY2 ? "-0" : result2; - } - function baseUniq(array, iteratee2, comparator) { - var index3 = -1, includes2 = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2; - if (comparator) { - isCommon = false; - includes2 = arrayIncludesWith; - } else if (length >= LARGE_ARRAY_SIZE) { - var set2 = iteratee2 ? null : createSet(array); - if (set2) { - return setToArray(set2); - } - isCommon = false; - includes2 = cacheHas; - seen = new SetCache(); - } else { - seen = iteratee2 ? [] : result2; - } - outer: - while (++index3 < length) { - var value = array[index3], computed = iteratee2 ? iteratee2(value) : value; - value = comparator || value !== 0 ? value : 0; - if (isCommon && computed === computed) { - var seenIndex = seen.length; - while (seenIndex--) { - if (seen[seenIndex] === computed) { - continue outer; - } - } - if (iteratee2) { - seen.push(computed); - } - result2.push(value); - } else if (!includes2(seen, computed, comparator)) { - if (seen !== result2) { - seen.push(computed); - } - result2.push(value); - } - } - return result2; - } - function baseUnset(object, path2) { - path2 = castPath(path2, object); - object = parent(object, path2); - return object == null || delete object[toKey(last(path2))]; - } - function baseUpdate(object, path2, updater, customizer) { - return baseSet(object, path2, updater(baseGet(object, path2)), customizer); - } - function baseWhile(array, predicate, isDrop, fromRight) { - var length = array.length, index3 = fromRight ? length : -1; - while ((fromRight ? index3-- : ++index3 < length) && predicate(array[index3], index3, array)) { - } - return isDrop ? baseSlice(array, fromRight ? 0 : index3, fromRight ? index3 + 1 : length) : baseSlice(array, fromRight ? index3 + 1 : 0, fromRight ? length : index3); - } - function baseWrapperValue(value, actions) { - var result2 = value; - if (result2 instanceof LazyWrapper) { - result2 = result2.value(); - } - return arrayReduce(actions, function(result3, action) { - return action.func.apply(action.thisArg, arrayPush([result3], action.args)); - }, result2); - } - function baseXor(arrays, iteratee2, comparator) { - var length = arrays.length; - if (length < 2) { - return length ? baseUniq(arrays[0]) : []; - } - var index3 = -1, result2 = Array2(length); - while (++index3 < length) { - var array = arrays[index3], othIndex = -1; - while (++othIndex < length) { - if (othIndex != index3) { - result2[index3] = baseDifference(result2[index3] || array, arrays[othIndex], iteratee2, comparator); - } - } - } - return baseUniq(baseFlatten(result2, 1), iteratee2, comparator); - } - function baseZipObject(props, values3, assignFunc) { - var index3 = -1, length = props.length, valsLength = values3.length, result2 = {}; - while (++index3 < length) { - var value = index3 < valsLength ? values3[index3] : undefined2; - assignFunc(result2, props[index3], value); - } - return result2; - } - function castArrayLikeObject(value) { - return isArrayLikeObject(value) ? value : []; - } - function castFunction(value) { - return typeof value == "function" ? value : identity2; - } - function castPath(value, object) { - if (isArray5(value)) { - return value; - } - return isKey(value, object) ? [value] : stringToPath(toString4(value)); - } - var castRest = baseRest; - function castSlice(array, start, end) { - var length = array.length; - end = end === undefined2 ? length : end; - return !start && end >= length ? array : baseSlice(array, start, end); - } - var clearTimeout2 = ctxClearTimeout || function(id3) { - return root.clearTimeout(id3); - }; - function cloneBuffer(buffer, isDeep) { - if (isDeep) { - return buffer.slice(); - } - var length = buffer.length, result2 = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); - buffer.copy(result2); - return result2; - } - function cloneArrayBuffer(arrayBuffer) { - var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength); - new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer)); - return result2; - } - function cloneDataView(dataView, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; - return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); - } - function cloneRegExp(regexp) { - var result2 = new regexp.constructor(regexp.source, reFlags.exec(regexp)); - result2.lastIndex = regexp.lastIndex; - return result2; - } - function cloneSymbol(symbol) { - return symbolValueOf ? Object2(symbolValueOf.call(symbol)) : {}; - } - function cloneTypedArray(typedArray, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; - return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); - } - function compareAscending(value, other) { - if (value !== other) { - var valIsDefined = value !== undefined2, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value); - var othIsDefined = other !== undefined2, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol(other); - if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) { - return 1; - } - if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) { - return -1; - } - } - return 0; - } - function compareMultiple(object, other, orders) { - var index3 = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length; - while (++index3 < length) { - var result2 = compareAscending(objCriteria[index3], othCriteria[index3]); - if (result2) { - if (index3 >= ordersLength) { - return result2; - } - var order = orders[index3]; - return result2 * (order == "desc" ? -1 : 1); - } - } - return object.index - other.index; - } - function composeArgs(args, partials, holders, isCurried) { - var argsIndex = -1, argsLength = args.length, holdersLength = holders.length, leftIndex = -1, leftLength = partials.length, rangeLength = nativeMax(argsLength - holdersLength, 0), result2 = Array2(leftLength + rangeLength), isUncurried = !isCurried; - while (++leftIndex < leftLength) { - result2[leftIndex] = partials[leftIndex]; - } - while (++argsIndex < holdersLength) { - if (isUncurried || argsIndex < argsLength) { - result2[holders[argsIndex]] = args[argsIndex]; - } - } - while (rangeLength--) { - result2[leftIndex++] = args[argsIndex++]; - } - return result2; - } - function composeArgsRight(args, partials, holders, isCurried) { - var argsIndex = -1, argsLength = args.length, holdersIndex = -1, holdersLength = holders.length, rightIndex = -1, rightLength = partials.length, rangeLength = nativeMax(argsLength - holdersLength, 0), result2 = Array2(rangeLength + rightLength), isUncurried = !isCurried; - while (++argsIndex < rangeLength) { - result2[argsIndex] = args[argsIndex]; - } - var offset2 = argsIndex; - while (++rightIndex < rightLength) { - result2[offset2 + rightIndex] = partials[rightIndex]; - } - while (++holdersIndex < holdersLength) { - if (isUncurried || argsIndex < argsLength) { - result2[offset2 + holders[holdersIndex]] = args[argsIndex++]; - } - } - return result2; - } - function copyArray(source, array) { - var index3 = -1, length = source.length; - array || (array = Array2(length)); - while (++index3 < length) { - array[index3] = source[index3]; - } - return array; - } - function copyObject(source, props, object, customizer) { - var isNew = !object; - object || (object = {}); - var index3 = -1, length = props.length; - while (++index3 < length) { - var key2 = props[index3]; - var newValue = customizer ? customizer(object[key2], source[key2], key2, object, source) : undefined2; - if (newValue === undefined2) { - newValue = source[key2]; - } - if (isNew) { - baseAssignValue(object, key2, newValue); - } else { - assignValue(object, key2, newValue); - } - } - return object; - } - function copySymbols(source, object) { - return copyObject(source, getSymbols(source), object); - } - function copySymbolsIn(source, object) { - return copyObject(source, getSymbolsIn(source), object); - } - function createAggregator(setter, initializer) { - return function(collection, iteratee2) { - var func = isArray5(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {}; - return func(collection, setter, getIteratee(iteratee2, 2), accumulator); - }; - } - function createAssigner(assigner) { - return baseRest(function(object, sources) { - var index3 = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined2, guard = length > 2 ? sources[2] : undefined2; - customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined2; - if (guard && isIterateeCall(sources[0], sources[1], guard)) { - customizer = length < 3 ? undefined2 : customizer; - length = 1; - } - object = Object2(object); - while (++index3 < length) { - var source = sources[index3]; - if (source) { - assigner(object, source, index3, customizer); - } - } - return object; - }); - } - function createBaseEach(eachFunc, fromRight) { - return function(collection, iteratee2) { - if (collection == null) { - return collection; - } - if (!isArrayLike(collection)) { - return eachFunc(collection, iteratee2); - } - var length = collection.length, index3 = fromRight ? length : -1, iterable = Object2(collection); - while (fromRight ? index3-- : ++index3 < length) { - if (iteratee2(iterable[index3], index3, iterable) === false) { - break; - } - } - return collection; - }; - } - function createBaseFor(fromRight) { - return function(object, iteratee2, keysFunc) { - var index3 = -1, iterable = Object2(object), props = keysFunc(object), length = props.length; - while (length--) { - var key2 = props[fromRight ? length : ++index3]; - if (iteratee2(iterable[key2], key2, iterable) === false) { - break; - } - } - return object; - }; - } - function createBind(func, bitmask, thisArg) { - var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func); - function wrapper() { - var fn = this && this !== root && this instanceof wrapper ? Ctor : func; - return fn.apply(isBind ? thisArg : this, arguments); - } - return wrapper; - } - function createCaseFirst(methodName) { - return function(string6) { - string6 = toString4(string6); - var strSymbols = hasUnicode(string6) ? stringToArray(string6) : undefined2; - var chr = strSymbols ? strSymbols[0] : string6.charAt(0); - var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string6.slice(1); - return chr[methodName]() + trailing; - }; - } - function createCompounder(callback) { - return function(string6) { - return arrayReduce(words2(deburr(string6).replace(reApos, "")), callback, ""); - }; - } - function createCtor(Ctor) { - return function() { - var args = arguments; - switch (args.length) { - case 0: - return new Ctor(); - case 1: - return new Ctor(args[0]); - case 2: - return new Ctor(args[0], args[1]); - case 3: - return new Ctor(args[0], args[1], args[2]); - case 4: - return new Ctor(args[0], args[1], args[2], args[3]); - case 5: - return new Ctor(args[0], args[1], args[2], args[3], args[4]); - case 6: - return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]); - case 7: - return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]); - } - var thisBinding = baseCreate(Ctor.prototype), result2 = Ctor.apply(thisBinding, args); - return isObject4(result2) ? result2 : thisBinding; - }; - } - function createCurry(func, bitmask, arity) { - var Ctor = createCtor(func); - function wrapper() { - var length = arguments.length, args = Array2(length), index3 = length, placeholder2 = getHolder(wrapper); - while (index3--) { - args[index3] = arguments[index3]; - } - var holders = length < 3 && args[0] !== placeholder2 && args[length - 1] !== placeholder2 ? [] : replaceHolders(args, placeholder2); - length -= holders.length; - if (length < arity) { - return createRecurry( - func, - bitmask, - createHybrid, - wrapper.placeholder, - undefined2, - args, - holders, - undefined2, - undefined2, - arity - length - ); - } - var fn = this && this !== root && this instanceof wrapper ? Ctor : func; - return apply2(fn, this, args); - } - return wrapper; - } - function createFind(findIndexFunc) { - return function(collection, predicate, fromIndex) { - var iterable = Object2(collection); - if (!isArrayLike(collection)) { - var iteratee2 = getIteratee(predicate, 3); - collection = keys(collection); - predicate = function(key2) { - return iteratee2(iterable[key2], key2, iterable); - }; - } - var index3 = findIndexFunc(collection, predicate, fromIndex); - return index3 > -1 ? iterable[iteratee2 ? collection[index3] : index3] : undefined2; - }; - } - function createFlow(fromRight) { - return flatRest(function(funcs) { - var length = funcs.length, index3 = length, prereq = LodashWrapper.prototype.thru; - if (fromRight) { - funcs.reverse(); - } - while (index3--) { - var func = funcs[index3]; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - if (prereq && !wrapper && getFuncName(func) == "wrapper") { - var wrapper = new LodashWrapper([], true); - } - } - index3 = wrapper ? index3 : length; - while (++index3 < length) { - func = funcs[index3]; - var funcName = getFuncName(func), data2 = funcName == "wrapper" ? getData(func) : undefined2; - if (data2 && isLaziable(data2[0]) && data2[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data2[4].length && data2[9] == 1) { - wrapper = wrapper[getFuncName(data2[0])].apply(wrapper, data2[3]); - } else { - wrapper = func.length == 1 && isLaziable(func) ? wrapper[funcName]() : wrapper.thru(func); - } - } - return function() { - var args = arguments, value = args[0]; - if (wrapper && args.length == 1 && isArray5(value)) { - return wrapper.plant(value).value(); - } - var index4 = 0, result2 = length ? funcs[index4].apply(this, args) : value; - while (++index4 < length) { - result2 = funcs[index4].call(this, result2); - } - return result2; - }; - }); - } - function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) { - var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined2 : createCtor(func); - function wrapper() { - var length = arguments.length, args = Array2(length), index3 = length; - while (index3--) { - args[index3] = arguments[index3]; - } - if (isCurried) { - var placeholder2 = getHolder(wrapper), holdersCount = countHolders(args, placeholder2); - } - if (partials) { - args = composeArgs(args, partials, holders, isCurried); - } - if (partialsRight) { - args = composeArgsRight(args, partialsRight, holdersRight, isCurried); - } - length -= holdersCount; - if (isCurried && length < arity) { - var newHolders = replaceHolders(args, placeholder2); - return createRecurry( - func, - bitmask, - createHybrid, - wrapper.placeholder, - thisArg, - args, - newHolders, - argPos, - ary2, - arity - length - ); - } - var thisBinding = isBind ? thisArg : this, fn = isBindKey ? thisBinding[func] : func; - length = args.length; - if (argPos) { - args = reorder(args, argPos); - } else if (isFlip && length > 1) { - args.reverse(); - } - if (isAry && ary2 < length) { - args.length = ary2; - } - if (this && this !== root && this instanceof wrapper) { - fn = Ctor || createCtor(fn); - } - return fn.apply(thisBinding, args); - } - return wrapper; - } - function createInverter(setter, toIteratee) { - return function(object, iteratee2) { - return baseInverter(object, setter, toIteratee(iteratee2), {}); - }; - } - function createMathOperation(operator5, defaultValue2) { - return function(value, other) { - var result2; - if (value === undefined2 && other === undefined2) { - return defaultValue2; - } - if (value !== undefined2) { - result2 = value; - } - if (other !== undefined2) { - if (result2 === undefined2) { - return other; - } - if (typeof value == "string" || typeof other == "string") { - value = baseToString2(value); - other = baseToString2(other); - } else { - value = baseToNumber(value); - other = baseToNumber(other); - } - result2 = operator5(value, other); - } - return result2; - }; - } - function createOver(arrayFunc) { - return flatRest(function(iteratees) { - iteratees = arrayMap(iteratees, baseUnary(getIteratee())); - return baseRest(function(args) { - var thisArg = this; - return arrayFunc(iteratees, function(iteratee2) { - return apply2(iteratee2, thisArg, args); - }); - }); - }); - } - function createPadding(length, chars) { - chars = chars === undefined2 ? " " : baseToString2(chars); - var charsLength = chars.length; - if (charsLength < 2) { - return charsLength ? baseRepeat(chars, length) : chars; - } - var result2 = baseRepeat(chars, nativeCeil(length / stringSize(chars))); - return hasUnicode(chars) ? castSlice(stringToArray(result2), 0, length).join("") : result2.slice(0, length); - } - function createPartial(func, bitmask, thisArg, partials) { - var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func); - function wrapper() { - var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn = this && this !== root && this instanceof wrapper ? Ctor : func; - while (++leftIndex < leftLength) { - args[leftIndex] = partials[leftIndex]; - } - while (argsLength--) { - args[leftIndex++] = arguments[++argsIndex]; - } - return apply2(fn, isBind ? thisArg : this, args); - } - return wrapper; - } - function createRange2(fromRight) { - return function(start, end, step) { - if (step && typeof step != "number" && isIterateeCall(start, end, step)) { - end = step = undefined2; - } - start = toFinite(start); - if (end === undefined2) { - end = start; - start = 0; - } else { - end = toFinite(end); - } - step = step === undefined2 ? start < end ? 1 : -1 : toFinite(step); - return baseRange(start, end, step, fromRight); - }; - } - function createRelationalOperation(operator5) { - return function(value, other) { - if (!(typeof value == "string" && typeof other == "string")) { - value = toNumber(value); - other = toNumber(other); - } - return operator5(value, other); - }; - } - function createRecurry(func, bitmask, wrapFunc, placeholder2, thisArg, partials, holders, argPos, ary2, arity) { - var isCurry = bitmask & WRAP_CURRY_FLAG, newHolders = isCurry ? holders : undefined2, newHoldersRight = isCurry ? undefined2 : holders, newPartials = isCurry ? partials : undefined2, newPartialsRight = isCurry ? undefined2 : partials; - bitmask |= isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG; - bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG); - if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) { - bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG); - } - var newData = [ - func, - bitmask, - thisArg, - newPartials, - newHolders, - newPartialsRight, - newHoldersRight, - argPos, - ary2, - arity - ]; - var result2 = wrapFunc.apply(undefined2, newData); - if (isLaziable(func)) { - setData(result2, newData); - } - result2.placeholder = placeholder2; - return setWrapToString(result2, func, bitmask); - } - function createRound2(methodName) { - var func = Math2[methodName]; - return function(number6, precision) { - number6 = toNumber(number6); - precision = precision == null ? 0 : nativeMin(toInteger2(precision), 292); - if (precision && nativeIsFinite(number6)) { - var pair2 = (toString4(number6) + "e").split("e"), value = func(pair2[0] + "e" + (+pair2[1] + precision)); - pair2 = (toString4(value) + "e").split("e"); - return +(pair2[0] + "e" + (+pair2[1] - precision)); - } - return func(number6); - }; - } - var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY2) ? noop3 : function(values3) { - return new Set2(values3); - }; - function createToPairs(keysFunc) { - return function(object) { - var tag2 = getTag2(object); - if (tag2 == mapTag) { - return mapToArray(object); - } - if (tag2 == setTag) { - return setToPairs(object); - } - return baseToPairs(object, keysFunc(object)); - }; - } - function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary2, arity) { - var isBindKey = bitmask & WRAP_BIND_KEY_FLAG; - if (!isBindKey && typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - var length = partials ? partials.length : 0; - if (!length) { - bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG); - partials = holders = undefined2; - } - ary2 = ary2 === undefined2 ? ary2 : nativeMax(toInteger2(ary2), 0); - arity = arity === undefined2 ? arity : toInteger2(arity); - length -= holders ? holders.length : 0; - if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) { - var partialsRight = partials, holdersRight = holders; - partials = holders = undefined2; - } - var data2 = isBindKey ? undefined2 : getData(func); - var newData = [ - func, - bitmask, - thisArg, - partials, - holders, - partialsRight, - holdersRight, - argPos, - ary2, - arity - ]; - if (data2) { - mergeData(newData, data2); - } - func = newData[0]; - bitmask = newData[1]; - thisArg = newData[2]; - partials = newData[3]; - holders = newData[4]; - arity = newData[9] = newData[9] === undefined2 ? isBindKey ? 0 : func.length : nativeMax(newData[9] - length, 0); - if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) { - bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG); - } - if (!bitmask || bitmask == WRAP_BIND_FLAG) { - var result2 = createBind(func, bitmask, thisArg); - } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) { - result2 = createCurry(func, bitmask, arity); - } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) { - result2 = createPartial(func, bitmask, thisArg, partials); - } else { - result2 = createHybrid.apply(undefined2, newData); - } - var setter = data2 ? baseSetData : setData; - return setWrapToString(setter(result2, newData), func, bitmask); - } - function customDefaultsAssignIn(objValue, srcValue, key2, object) { - if (objValue === undefined2 || eq(objValue, objectProto[key2]) && !hasOwnProperty3.call(object, key2)) { - return srcValue; - } - return objValue; - } - function customDefaultsMerge(objValue, srcValue, key2, object, source, stack) { - if (isObject4(objValue) && isObject4(srcValue)) { - stack.set(srcValue, objValue); - baseMerge(objValue, srcValue, undefined2, customDefaultsMerge, stack); - stack["delete"](srcValue); - } - return objValue; - } - function customOmitClone(value) { - return isPlainObject2(value) ? undefined2 : value; - } - function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length; - if (arrLength != othLength && !(isPartial && othLength > arrLength)) { - return false; - } - var arrStacked = stack.get(array); - var othStacked = stack.get(other); - if (arrStacked && othStacked) { - return arrStacked == other && othStacked == array; - } - var index3 = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined2; - stack.set(array, other); - stack.set(other, array); - while (++index3 < arrLength) { - var arrValue = array[index3], othValue = other[index3]; - if (customizer) { - var compared = isPartial ? customizer(othValue, arrValue, index3, other, array, stack) : customizer(arrValue, othValue, index3, array, other, stack); - } - if (compared !== undefined2) { - if (compared) { - continue; - } - result2 = false; - break; - } - if (seen) { - if (!arraySome(other, function(othValue2, othIndex) { - if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) { - return seen.push(othIndex); - } - })) { - result2 = false; - break; - } - } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { - result2 = false; - break; - } - } - stack["delete"](array); - stack["delete"](other); - return result2; - } - function equalByTag(object, other, tag2, bitmask, customizer, equalFunc, stack) { - switch (tag2) { - case dataViewTag: - if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) { - return false; - } - object = object.buffer; - other = other.buffer; - case arrayBufferTag: - if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) { - return false; - } - return true; - case boolTag: - case dateTag: - case numberTag: - return eq(+object, +other); - case errorTag: - return object.name == other.name && object.message == other.message; - case regexpTag: - case stringTag: - return object == other + ""; - case mapTag: - var convert = mapToArray; - case setTag: - var isPartial = bitmask & COMPARE_PARTIAL_FLAG; - convert || (convert = setToArray); - if (object.size != other.size && !isPartial) { - return false; - } - var stacked = stack.get(object); - if (stacked) { - return stacked == other; - } - bitmask |= COMPARE_UNORDERED_FLAG; - stack.set(object, other); - var result2 = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); - stack["delete"](object); - return result2; - case symbolTag: - if (symbolValueOf) { - return symbolValueOf.call(object) == symbolValueOf.call(other); - } - } - return false; - } - function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length; - if (objLength != othLength && !isPartial) { - return false; - } - var index3 = objLength; - while (index3--) { - var key2 = objProps[index3]; - if (!(isPartial ? key2 in other : hasOwnProperty3.call(other, key2))) { - return false; - } - } - var objStacked = stack.get(object); - var othStacked = stack.get(other); - if (objStacked && othStacked) { - return objStacked == other && othStacked == object; - } - var result2 = true; - stack.set(object, other); - stack.set(other, object); - var skipCtor = isPartial; - while (++index3 < objLength) { - key2 = objProps[index3]; - var objValue = object[key2], othValue = other[key2]; - if (customizer) { - var compared = isPartial ? customizer(othValue, objValue, key2, other, object, stack) : customizer(objValue, othValue, key2, object, other, stack); - } - if (!(compared === undefined2 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) { - result2 = false; - break; - } - skipCtor || (skipCtor = key2 == "constructor"); - } - if (result2 && !skipCtor) { - var objCtor = object.constructor, othCtor = other.constructor; - if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) { - result2 = false; - } - } - stack["delete"](object); - stack["delete"](other); - return result2; - } - function flatRest(func) { - return setToString(overRest(func, undefined2, flatten4), func + ""); - } - function getAllKeys(object) { - return baseGetAllKeys(object, keys, getSymbols); - } - function getAllKeysIn(object) { - return baseGetAllKeys(object, keysIn, getSymbolsIn); - } - var getData = !metaMap ? noop3 : function(func) { - return metaMap.get(func); - }; - function getFuncName(func) { - var result2 = func.name + "", array = realNames[result2], length = hasOwnProperty3.call(realNames, result2) ? array.length : 0; - while (length--) { - var data2 = array[length], otherFunc = data2.func; - if (otherFunc == null || otherFunc == func) { - return data2.name; - } - } - return result2; - } - function getHolder(func) { - var object = hasOwnProperty3.call(lodash, "placeholder") ? lodash : func; - return object.placeholder; - } - function getIteratee() { - var result2 = lodash.iteratee || iteratee; - result2 = result2 === iteratee ? baseIteratee : result2; - return arguments.length ? result2(arguments[0], arguments[1]) : result2; - } - function getMapData(map5, key2) { - var data2 = map5.__data__; - return isKeyable(key2) ? data2[typeof key2 == "string" ? "string" : "hash"] : data2.map; - } - function getMatchData(object) { - var result2 = keys(object), length = result2.length; - while (length--) { - var key2 = result2[length], value = object[key2]; - result2[length] = [key2, value, isStrictComparable(value)]; - } - return result2; - } - function getNative(object, key2) { - var value = getValue(object, key2); - return baseIsNative(value) ? value : undefined2; - } - function getRawTag(value) { - var isOwn = hasOwnProperty3.call(value, symToStringTag), tag2 = value[symToStringTag]; - try { - value[symToStringTag] = undefined2; - var unmasked = true; - } catch (e5) { - } - var result2 = nativeObjectToString.call(value); - if (unmasked) { - if (isOwn) { - value[symToStringTag] = tag2; - } else { - delete value[symToStringTag]; - } - } - return result2; - } - var getSymbols = !nativeGetSymbols ? stubArray : function(object) { - if (object == null) { - return []; - } - object = Object2(object); - return arrayFilter(nativeGetSymbols(object), function(symbol) { - return propertyIsEnumerable.call(object, symbol); - }); - }; - var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { - var result2 = []; - while (object) { - arrayPush(result2, getSymbols(object)); - object = getPrototype(object); - } - return result2; - }; - var getTag2 = baseGetTag; - if (DataView && getTag2(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag2(new Map2()) != mapTag || Promise2 && getTag2(Promise2.resolve()) != promiseTag || Set2 && getTag2(new Set2()) != setTag || WeakMap2 && getTag2(new WeakMap2()) != weakMapTag) { - getTag2 = function(value) { - var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined2, ctorString = Ctor ? toSource(Ctor) : ""; - if (ctorString) { - switch (ctorString) { - case dataViewCtorString: - return dataViewTag; - case mapCtorString: - return mapTag; - case promiseCtorString: - return promiseTag; - case setCtorString: - return setTag; - case weakMapCtorString: - return weakMapTag; - } - } - return result2; - }; - } - function getView(start, end, transforms) { - var index3 = -1, length = transforms.length; - while (++index3 < length) { - var data2 = transforms[index3], size3 = data2.size; - switch (data2.type) { - case "drop": - start += size3; - break; - case "dropRight": - end -= size3; - break; - case "take": - end = nativeMin(end, start + size3); - break; - case "takeRight": - start = nativeMax(start, end - size3); - break; - } - } - return { "start": start, "end": end }; - } - function getWrapDetails(source) { - var match2 = source.match(reWrapDetails); - return match2 ? match2[1].split(reSplitDetails) : []; - } - function hasPath(object, path2, hasFunc) { - path2 = castPath(path2, object); - var index3 = -1, length = path2.length, result2 = false; - while (++index3 < length) { - var key2 = toKey(path2[index3]); - if (!(result2 = object != null && hasFunc(object, key2))) { - break; - } - object = object[key2]; - } - if (result2 || ++index3 != length) { - return result2; - } - length = object == null ? 0 : object.length; - return !!length && isLength(length) && isIndex2(key2, length) && (isArray5(object) || isArguments(object)); - } - function initCloneArray(array) { - var length = array.length, result2 = new array.constructor(length); - if (length && typeof array[0] == "string" && hasOwnProperty3.call(array, "index")) { - result2.index = array.index; - result2.input = array.input; - } - return result2; - } - function initCloneObject(object) { - return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {}; - } - function initCloneByTag(object, tag2, isDeep) { - var Ctor = object.constructor; - switch (tag2) { - case arrayBufferTag: - return cloneArrayBuffer(object); - case boolTag: - case dateTag: - return new Ctor(+object); - case dataViewTag: - return cloneDataView(object, isDeep); - case float32Tag: - case float64Tag: - case int8Tag: - case int16Tag: - case int32Tag: - case uint8Tag: - case uint8ClampedTag: - case uint16Tag: - case uint32Tag: - return cloneTypedArray(object, isDeep); - case mapTag: - return new Ctor(); - case numberTag: - case stringTag: - return new Ctor(object); - case regexpTag: - return cloneRegExp(object); - case setTag: - return new Ctor(); - case symbolTag: - return cloneSymbol(object); - } - } - function insertWrapDetails(source, details) { - var length = details.length; - if (!length) { - return source; - } - var lastIndex = length - 1; - details[lastIndex] = (length > 1 ? "& " : "") + details[lastIndex]; - details = details.join(length > 2 ? ", " : " "); - return source.replace(reWrapComment, "{\n/* [wrapped with " + details + "] */\n"); - } - function isFlattenable(value) { - return isArray5(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); - } - function isIndex2(value, length) { - var type = typeof value; - length = length == null ? MAX_SAFE_INTEGER2 : length; - return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); - } - function isIterateeCall(value, index3, object) { - if (!isObject4(object)) { - return false; - } - var type = typeof index3; - if (type == "number" ? isArrayLike(object) && isIndex2(index3, object.length) : type == "string" && index3 in object) { - return eq(object[index3], value); - } - return false; - } - function isKey(value, object) { - if (isArray5(value)) { - return false; - } - var type = typeof value; - if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) { - return true; - } - return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object2(object); - } - function isKeyable(value) { - var type = typeof value; - return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; - } - function isLaziable(func) { - var funcName = getFuncName(func), other = lodash[funcName]; - if (typeof other != "function" || !(funcName in LazyWrapper.prototype)) { - return false; - } - if (func === other) { - return true; - } - var data2 = getData(other); - return !!data2 && func === data2[0]; - } - function isMasked(func) { - return !!maskSrcKey && maskSrcKey in func; - } - var isMaskable = coreJsData ? isFunction3 : stubFalse; - function isPrototype(value) { - var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto; - return value === proto; - } - function isStrictComparable(value) { - return value === value && !isObject4(value); - } - function matchesStrictComparable(key2, srcValue) { - return function(object) { - if (object == null) { - return false; - } - return object[key2] === srcValue && (srcValue !== undefined2 || key2 in Object2(object)); - }; - } - function memoizeCapped(func) { - var result2 = memoize2(func, function(key2) { - if (cache2.size === MAX_MEMOIZE_SIZE) { - cache2.clear(); - } - return key2; - }); - var cache2 = result2.cache; - return result2; - } - function mergeData(data2, source) { - var bitmask = data2[1], srcBitmask = source[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG); - var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data2[7].length <= source[8] || srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG) && source[7].length <= source[8] && bitmask == WRAP_CURRY_FLAG; - if (!(isCommon || isCombo)) { - return data2; - } - if (srcBitmask & WRAP_BIND_FLAG) { - data2[2] = source[2]; - newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG; - } - var value = source[3]; - if (value) { - var partials = data2[3]; - data2[3] = partials ? composeArgs(partials, value, source[4]) : value; - data2[4] = partials ? replaceHolders(data2[3], PLACEHOLDER) : source[4]; - } - value = source[5]; - if (value) { - partials = data2[5]; - data2[5] = partials ? composeArgsRight(partials, value, source[6]) : value; - data2[6] = partials ? replaceHolders(data2[5], PLACEHOLDER) : source[6]; - } - value = source[7]; - if (value) { - data2[7] = value; - } - if (srcBitmask & WRAP_ARY_FLAG) { - data2[8] = data2[8] == null ? source[8] : nativeMin(data2[8], source[8]); - } - if (data2[9] == null) { - data2[9] = source[9]; - } - data2[0] = source[0]; - data2[1] = newBitmask; - return data2; - } - function nativeKeysIn(object) { - var result2 = []; - if (object != null) { - for (var key2 in Object2(object)) { - result2.push(key2); - } - } - return result2; - } - function objectToString(value) { - return nativeObjectToString.call(value); - } - function overRest(func, start, transform2) { - start = nativeMax(start === undefined2 ? func.length - 1 : start, 0); - return function() { - var args = arguments, index3 = -1, length = nativeMax(args.length - start, 0), array = Array2(length); - while (++index3 < length) { - array[index3] = args[start + index3]; - } - index3 = -1; - var otherArgs = Array2(start + 1); - while (++index3 < start) { - otherArgs[index3] = args[index3]; - } - otherArgs[start] = transform2(array); - return apply2(func, this, otherArgs); - }; - } - function parent(object, path2) { - return path2.length < 2 ? object : baseGet(object, baseSlice(path2, 0, -1)); - } - function reorder(array, indexes) { - var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array); - while (length--) { - var index3 = indexes[length]; - array[length] = isIndex2(index3, arrLength) ? oldArray[index3] : undefined2; - } - return array; - } - function safeGet(object, key2) { - if (key2 === "constructor" && typeof object[key2] === "function") { - return; - } - if (key2 == "__proto__") { - return; - } - return object[key2]; - } - var setData = shortOut(baseSetData); - var setTimeout2 = ctxSetTimeout || function(func, wait) { - return root.setTimeout(func, wait); - }; - var setToString = shortOut(baseSetToString); - function setWrapToString(wrapper, reference, bitmask) { - var source = reference + ""; - return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask))); - } - function shortOut(func) { - var count3 = 0, lastCalled = 0; - return function() { - var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); - lastCalled = stamp; - if (remaining > 0) { - if (++count3 >= HOT_COUNT) { - return arguments[0]; - } - } else { - count3 = 0; - } - return func.apply(undefined2, arguments); - }; - } - function shuffleSelf(array, size3) { - var index3 = -1, length = array.length, lastIndex = length - 1; - size3 = size3 === undefined2 ? length : size3; - while (++index3 < size3) { - var rand = baseRandom(index3, lastIndex), value = array[rand]; - array[rand] = array[index3]; - array[index3] = value; - } - array.length = size3; - return array; - } - var stringToPath = memoizeCapped(function(string6) { - var result2 = []; - if (string6.charCodeAt(0) === 46) { - result2.push(""); - } - string6.replace(rePropName, function(match2, number6, quote, subString) { - result2.push(quote ? subString.replace(reEscapeChar, "$1") : number6 || match2); - }); - return result2; - }); - function toKey(value) { - if (typeof value == "string" || isSymbol(value)) { - return value; - } - var result2 = value + ""; - return result2 == "0" && 1 / value == -INFINITY2 ? "-0" : result2; - } - function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e5) { - } - try { - return func + ""; - } catch (e5) { - } - } - return ""; - } - function updateWrapDetails(details, bitmask) { - arrayEach(wrapFlags, function(pair2) { - var value = "_." + pair2[0]; - if (bitmask & pair2[1] && !arrayIncludes(details, value)) { - details.push(value); - } - }); - return details.sort(); - } - function wrapperClone(wrapper) { - if (wrapper instanceof LazyWrapper) { - return wrapper.clone(); - } - var result2 = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__); - result2.__actions__ = copyArray(wrapper.__actions__); - result2.__index__ = wrapper.__index__; - result2.__values__ = wrapper.__values__; - return result2; - } - function chunk(array, size3, guard) { - if (guard ? isIterateeCall(array, size3, guard) : size3 === undefined2) { - size3 = 1; - } else { - size3 = nativeMax(toInteger2(size3), 0); - } - var length = array == null ? 0 : array.length; - if (!length || size3 < 1) { - return []; - } - var index3 = 0, resIndex = 0, result2 = Array2(nativeCeil(length / size3)); - while (index3 < length) { - result2[resIndex++] = baseSlice(array, index3, index3 += size3); - } - return result2; - } - function compact(array) { - var index3 = -1, length = array == null ? 0 : array.length, resIndex = 0, result2 = []; - while (++index3 < length) { - var value = array[index3]; - if (value) { - result2[resIndex++] = value; - } - } - return result2; - } - function concat3() { - var length = arguments.length; - if (!length) { - return []; - } - var args = Array2(length - 1), array = arguments[0], index3 = length; - while (index3--) { - args[index3 - 1] = arguments[index3]; - } - return arrayPush(isArray5(array) ? copyArray(array) : [array], baseFlatten(args, 1)); - } - var difference = baseRest(function(array, values3) { - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values3, 1, isArrayLikeObject, true)) : []; - }); - var differenceBy = baseRest(function(array, values3) { - var iteratee2 = last(values3); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined2; - } - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values3, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2)) : []; - }); - var differenceWith = baseRest(function(array, values3) { - var comparator = last(values3); - if (isArrayLikeObject(comparator)) { - comparator = undefined2; - } - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values3, 1, isArrayLikeObject, true), undefined2, comparator) : []; - }); - function drop(array, n3, guard) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - n3 = guard || n3 === undefined2 ? 1 : toInteger2(n3); - return baseSlice(array, n3 < 0 ? 0 : n3, length); - } - function dropRight(array, n3, guard) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - n3 = guard || n3 === undefined2 ? 1 : toInteger2(n3); - n3 = length - n3; - return baseSlice(array, 0, n3 < 0 ? 0 : n3); - } - function dropRightWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), true, true) : []; - } - function dropWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), true) : []; - } - function fill(array, value, start, end) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - if (start && typeof start != "number" && isIterateeCall(array, value, start)) { - start = 0; - end = length; - } - return baseFill(array, value, start, end); - } - function findIndex3(array, predicate, fromIndex) { - var length = array == null ? 0 : array.length; - if (!length) { - return -1; - } - var index3 = fromIndex == null ? 0 : toInteger2(fromIndex); - if (index3 < 0) { - index3 = nativeMax(length + index3, 0); - } - return baseFindIndex(array, getIteratee(predicate, 3), index3); - } - function findLastIndex(array, predicate, fromIndex) { - var length = array == null ? 0 : array.length; - if (!length) { - return -1; - } - var index3 = length - 1; - if (fromIndex !== undefined2) { - index3 = toInteger2(fromIndex); - index3 = fromIndex < 0 ? nativeMax(length + index3, 0) : nativeMin(index3, length - 1); - } - return baseFindIndex(array, getIteratee(predicate, 3), index3, true); - } - function flatten4(array) { - var length = array == null ? 0 : array.length; - return length ? baseFlatten(array, 1) : []; - } - function flattenDeep(array) { - var length = array == null ? 0 : array.length; - return length ? baseFlatten(array, INFINITY2) : []; - } - function flattenDepth(array, depth) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - depth = depth === undefined2 ? 1 : toInteger2(depth); - return baseFlatten(array, depth); - } - function fromPairs(pairs) { - var index3 = -1, length = pairs == null ? 0 : pairs.length, result2 = {}; - while (++index3 < length) { - var pair2 = pairs[index3]; - result2[pair2[0]] = pair2[1]; - } - return result2; - } - function head(array) { - return array && array.length ? array[0] : undefined2; - } - function indexOf(array, value, fromIndex) { - var length = array == null ? 0 : array.length; - if (!length) { - return -1; - } - var index3 = fromIndex == null ? 0 : toInteger2(fromIndex); - if (index3 < 0) { - index3 = nativeMax(length + index3, 0); - } - return baseIndexOf(array, value, index3); - } - function initial(array) { - var length = array == null ? 0 : array.length; - return length ? baseSlice(array, 0, -1) : []; - } - var intersection = baseRest(function(arrays) { - var mapped = arrayMap(arrays, castArrayLikeObject); - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped) : []; - }); - var intersectionBy = baseRest(function(arrays) { - var iteratee2 = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); - if (iteratee2 === last(mapped)) { - iteratee2 = undefined2; - } else { - mapped.pop(); - } - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, getIteratee(iteratee2, 2)) : []; - }); - var intersectionWith = baseRest(function(arrays) { - var comparator = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); - comparator = typeof comparator == "function" ? comparator : undefined2; - if (comparator) { - mapped.pop(); - } - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, undefined2, comparator) : []; - }); - function join2(array, separator) { - return array == null ? "" : nativeJoin.call(array, separator); - } - function last(array) { - var length = array == null ? 0 : array.length; - return length ? array[length - 1] : undefined2; - } - function lastIndexOf(array, value, fromIndex) { - var length = array == null ? 0 : array.length; - if (!length) { - return -1; - } - var index3 = length; - if (fromIndex !== undefined2) { - index3 = toInteger2(fromIndex); - index3 = index3 < 0 ? nativeMax(length + index3, 0) : nativeMin(index3, length - 1); - } - return value === value ? strictLastIndexOf(array, value, index3) : baseFindIndex(array, baseIsNaN, index3, true); - } - function nth(array, n3) { - return array && array.length ? baseNth(array, toInteger2(n3)) : undefined2; - } - var pull = baseRest(pullAll); - function pullAll(array, values3) { - return array && array.length && values3 && values3.length ? basePullAll(array, values3) : array; - } - function pullAllBy(array, values3, iteratee2) { - return array && array.length && values3 && values3.length ? basePullAll(array, values3, getIteratee(iteratee2, 2)) : array; - } - function pullAllWith(array, values3, comparator) { - return array && array.length && values3 && values3.length ? basePullAll(array, values3, undefined2, comparator) : array; - } - var pullAt = flatRest(function(array, indexes) { - var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes); - basePullAt(array, arrayMap(indexes, function(index3) { - return isIndex2(index3, length) ? +index3 : index3; - }).sort(compareAscending)); - return result2; - }); - function remove(array, predicate) { - var result2 = []; - if (!(array && array.length)) { - return result2; - } - var index3 = -1, indexes = [], length = array.length; - predicate = getIteratee(predicate, 3); - while (++index3 < length) { - var value = array[index3]; - if (predicate(value, index3, array)) { - result2.push(value); - indexes.push(index3); - } - } - basePullAt(array, indexes); - return result2; - } - function reverse(array) { - return array == null ? array : nativeReverse.call(array); - } - function slice(array, start, end) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - if (end && typeof end != "number" && isIterateeCall(array, start, end)) { - start = 0; - end = length; - } else { - start = start == null ? 0 : toInteger2(start); - end = end === undefined2 ? length : toInteger2(end); - } - return baseSlice(array, start, end); - } - function sortedIndex(array, value) { - return baseSortedIndex(array, value); - } - function sortedIndexBy(array, value, iteratee2) { - return baseSortedIndexBy(array, value, getIteratee(iteratee2, 2)); - } - function sortedIndexOf(array, value) { - var length = array == null ? 0 : array.length; - if (length) { - var index3 = baseSortedIndex(array, value); - if (index3 < length && eq(array[index3], value)) { - return index3; - } - } - return -1; - } - function sortedLastIndex(array, value) { - return baseSortedIndex(array, value, true); - } - function sortedLastIndexBy(array, value, iteratee2) { - return baseSortedIndexBy(array, value, getIteratee(iteratee2, 2), true); - } - function sortedLastIndexOf(array, value) { - var length = array == null ? 0 : array.length; - if (length) { - var index3 = baseSortedIndex(array, value, true) - 1; - if (eq(array[index3], value)) { - return index3; - } - } - return -1; - } - function sortedUniq(array) { - return array && array.length ? baseSortedUniq(array) : []; - } - function sortedUniqBy(array, iteratee2) { - return array && array.length ? baseSortedUniq(array, getIteratee(iteratee2, 2)) : []; - } - function tail(array) { - var length = array == null ? 0 : array.length; - return length ? baseSlice(array, 1, length) : []; - } - function take(array, n3, guard) { - if (!(array && array.length)) { - return []; - } - n3 = guard || n3 === undefined2 ? 1 : toInteger2(n3); - return baseSlice(array, 0, n3 < 0 ? 0 : n3); - } - function takeRight(array, n3, guard) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - n3 = guard || n3 === undefined2 ? 1 : toInteger2(n3); - n3 = length - n3; - return baseSlice(array, n3 < 0 ? 0 : n3, length); - } - function takeRightWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), false, true) : []; - } - function takeWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3)) : []; - } - var union = baseRest(function(arrays) { - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true)); - }); - var unionBy = baseRest(function(arrays) { - var iteratee2 = last(arrays); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined2; - } - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2)); - }); - var unionWith = baseRest(function(arrays) { - var comparator = last(arrays); - comparator = typeof comparator == "function" ? comparator : undefined2; - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined2, comparator); - }); - function uniq3(array) { - return array && array.length ? baseUniq(array) : []; - } - function uniqBy(array, iteratee2) { - return array && array.length ? baseUniq(array, getIteratee(iteratee2, 2)) : []; - } - function uniqWith(array, comparator) { - comparator = typeof comparator == "function" ? comparator : undefined2; - return array && array.length ? baseUniq(array, undefined2, comparator) : []; - } - function unzip(array) { - if (!(array && array.length)) { - return []; - } - var length = 0; - array = arrayFilter(array, function(group) { - if (isArrayLikeObject(group)) { - length = nativeMax(group.length, length); - return true; - } - }); - return baseTimes(length, function(index3) { - return arrayMap(array, baseProperty(index3)); - }); - } - function unzipWith(array, iteratee2) { - if (!(array && array.length)) { - return []; - } - var result2 = unzip(array); - if (iteratee2 == null) { - return result2; - } - return arrayMap(result2, function(group) { - return apply2(iteratee2, undefined2, group); - }); - } - var without = baseRest(function(array, values3) { - return isArrayLikeObject(array) ? baseDifference(array, values3) : []; - }); - var xor2 = baseRest(function(arrays) { - return baseXor(arrayFilter(arrays, isArrayLikeObject)); - }); - var xorBy = baseRest(function(arrays) { - var iteratee2 = last(arrays); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined2; - } - return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee2, 2)); - }); - var xorWith = baseRest(function(arrays) { - var comparator = last(arrays); - comparator = typeof comparator == "function" ? comparator : undefined2; - return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined2, comparator); - }); - var zip = baseRest(unzip); - function zipObject(props, values3) { - return baseZipObject(props || [], values3 || [], assignValue); - } - function zipObjectDeep(props, values3) { - return baseZipObject(props || [], values3 || [], baseSet); - } - var zipWith = baseRest(function(arrays) { - var length = arrays.length, iteratee2 = length > 1 ? arrays[length - 1] : undefined2; - iteratee2 = typeof iteratee2 == "function" ? (arrays.pop(), iteratee2) : undefined2; - return unzipWith(arrays, iteratee2); - }); - function chain2(value) { - var result2 = lodash(value); - result2.__chain__ = true; - return result2; - } - function tap(value, interceptor) { - interceptor(value); - return value; - } - function thru(value, interceptor) { - return interceptor(value); - } - var wrapperAt = flatRest(function(paths) { - var length = paths.length, start = length ? paths[0] : 0, value = this.__wrapped__, interceptor = function(object) { - return baseAt(object, paths); - }; - if (length > 1 || this.__actions__.length || !(value instanceof LazyWrapper) || !isIndex2(start)) { - return this.thru(interceptor); - } - value = value.slice(start, +start + (length ? 1 : 0)); - value.__actions__.push({ - "func": thru, - "args": [interceptor], - "thisArg": undefined2 - }); - return new LodashWrapper(value, this.__chain__).thru(function(array) { - if (length && !array.length) { - array.push(undefined2); - } - return array; - }); - }); - function wrapperChain() { - return chain2(this); - } - function wrapperCommit() { - return new LodashWrapper(this.value(), this.__chain__); - } - function wrapperNext() { - if (this.__values__ === undefined2) { - this.__values__ = toArray(this.value()); - } - var done = this.__index__ >= this.__values__.length, value = done ? undefined2 : this.__values__[this.__index__++]; - return { "done": done, "value": value }; - } - function wrapperToIterator() { - return this; - } - function wrapperPlant(value) { - var result2, parent2 = this; - while (parent2 instanceof baseLodash) { - var clone6 = wrapperClone(parent2); - clone6.__index__ = 0; - clone6.__values__ = undefined2; - if (result2) { - previous.__wrapped__ = clone6; - } else { - result2 = clone6; - } - var previous = clone6; - parent2 = parent2.__wrapped__; - } - previous.__wrapped__ = value; - return result2; - } - function wrapperReverse() { - var value = this.__wrapped__; - if (value instanceof LazyWrapper) { - var wrapped = value; - if (this.__actions__.length) { - wrapped = new LazyWrapper(this); - } - wrapped = wrapped.reverse(); - wrapped.__actions__.push({ - "func": thru, - "args": [reverse], - "thisArg": undefined2 - }); - return new LodashWrapper(wrapped, this.__chain__); - } - return this.thru(reverse); - } - function wrapperValue() { - return baseWrapperValue(this.__wrapped__, this.__actions__); - } - var countBy = createAggregator(function(result2, value, key2) { - if (hasOwnProperty3.call(result2, key2)) { - ++result2[key2]; - } else { - baseAssignValue(result2, key2, 1); - } - }); - function every2(collection, predicate, guard) { - var func = isArray5(collection) ? arrayEvery : baseEvery; - if (guard && isIterateeCall(collection, predicate, guard)) { - predicate = undefined2; - } - return func(collection, getIteratee(predicate, 3)); - } - function filter4(collection, predicate) { - var func = isArray5(collection) ? arrayFilter : baseFilter; - return func(collection, getIteratee(predicate, 3)); - } - var find2 = createFind(findIndex3); - var findLast = createFind(findLastIndex); - function flatMap(collection, iteratee2) { - return baseFlatten(map4(collection, iteratee2), 1); - } - function flatMapDeep(collection, iteratee2) { - return baseFlatten(map4(collection, iteratee2), INFINITY2); - } - function flatMapDepth(collection, iteratee2, depth) { - depth = depth === undefined2 ? 1 : toInteger2(depth); - return baseFlatten(map4(collection, iteratee2), depth); - } - function forEach3(collection, iteratee2) { - var func = isArray5(collection) ? arrayEach : baseEach; - return func(collection, getIteratee(iteratee2, 3)); - } - function forEachRight(collection, iteratee2) { - var func = isArray5(collection) ? arrayEachRight : baseEachRight; - return func(collection, getIteratee(iteratee2, 3)); - } - var groupBy2 = createAggregator(function(result2, value, key2) { - if (hasOwnProperty3.call(result2, key2)) { - result2[key2].push(value); - } else { - baseAssignValue(result2, key2, [value]); - } - }); - function includes(collection, value, fromIndex, guard) { - collection = isArrayLike(collection) ? collection : values2(collection); - fromIndex = fromIndex && !guard ? toInteger2(fromIndex) : 0; - var length = collection.length; - if (fromIndex < 0) { - fromIndex = nativeMax(length + fromIndex, 0); - } - return isString5(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1; - } - var invokeMap = baseRest(function(collection, path2, args) { - var index3 = -1, isFunc = typeof path2 == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : []; - baseEach(collection, function(value) { - result2[++index3] = isFunc ? apply2(path2, value, args) : baseInvoke(value, path2, args); - }); - return result2; - }); - var keyBy = createAggregator(function(result2, value, key2) { - baseAssignValue(result2, key2, value); - }); - function map4(collection, iteratee2) { - var func = isArray5(collection) ? arrayMap : baseMap; - return func(collection, getIteratee(iteratee2, 3)); - } - function orderBy(collection, iteratees, orders, guard) { - if (collection == null) { - return []; - } - if (!isArray5(iteratees)) { - iteratees = iteratees == null ? [] : [iteratees]; - } - orders = guard ? undefined2 : orders; - if (!isArray5(orders)) { - orders = orders == null ? [] : [orders]; - } - return baseOrderBy(collection, iteratees, orders); - } - var partition = createAggregator(function(result2, value, key2) { - result2[key2 ? 0 : 1].push(value); - }, function() { - return [[], []]; - }); - function reduce2(collection, iteratee2, accumulator) { - var func = isArray5(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3; - return func(collection, getIteratee(iteratee2, 4), accumulator, initAccum, baseEach); - } - function reduceRight(collection, iteratee2, accumulator) { - var func = isArray5(collection) ? arrayReduceRight : baseReduce, initAccum = arguments.length < 3; - return func(collection, getIteratee(iteratee2, 4), accumulator, initAccum, baseEachRight); - } - function reject(collection, predicate) { - var func = isArray5(collection) ? arrayFilter : baseFilter; - return func(collection, negate(getIteratee(predicate, 3))); - } - function sample(collection) { - var func = isArray5(collection) ? arraySample : baseSample; - return func(collection); - } - function sampleSize(collection, n3, guard) { - if (guard ? isIterateeCall(collection, n3, guard) : n3 === undefined2) { - n3 = 1; - } else { - n3 = toInteger2(n3); - } - var func = isArray5(collection) ? arraySampleSize : baseSampleSize; - return func(collection, n3); - } - function shuffle(collection) { - var func = isArray5(collection) ? arrayShuffle : baseShuffle; - return func(collection); - } - function size2(collection) { - if (collection == null) { - return 0; - } - if (isArrayLike(collection)) { - return isString5(collection) ? stringSize(collection) : collection.length; - } - var tag2 = getTag2(collection); - if (tag2 == mapTag || tag2 == setTag) { - return collection.size; - } - return baseKeys(collection).length; - } - function some2(collection, predicate, guard) { - var func = isArray5(collection) ? arraySome : baseSome; - if (guard && isIterateeCall(collection, predicate, guard)) { - predicate = undefined2; - } - return func(collection, getIteratee(predicate, 3)); - } - var sortBy = baseRest(function(collection, iteratees) { - if (collection == null) { - return []; - } - var length = iteratees.length; - if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) { - iteratees = []; - } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) { - iteratees = [iteratees[0]]; - } - return baseOrderBy(collection, baseFlatten(iteratees, 1), []); - }); - var now = ctxNow || function() { - return root.Date.now(); - }; - function after(n3, func) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - n3 = toInteger2(n3); - return function() { - if (--n3 < 1) { - return func.apply(this, arguments); - } - }; - } - function ary(func, n3, guard) { - n3 = guard ? undefined2 : n3; - n3 = func && n3 == null ? func.length : n3; - return createWrap(func, WRAP_ARY_FLAG, undefined2, undefined2, undefined2, undefined2, n3); - } - function before(n3, func) { - var result2; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - n3 = toInteger2(n3); - return function() { - if (--n3 > 0) { - result2 = func.apply(this, arguments); - } - if (n3 <= 1) { - func = undefined2; - } - return result2; - }; - } - var bind = baseRest(function(func, thisArg, partials) { - var bitmask = WRAP_BIND_FLAG; - if (partials.length) { - var holders = replaceHolders(partials, getHolder(bind)); - bitmask |= WRAP_PARTIAL_FLAG; - } - return createWrap(func, bitmask, thisArg, partials, holders); - }); - var bindKey = baseRest(function(object, key2, partials) { - var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG; - if (partials.length) { - var holders = replaceHolders(partials, getHolder(bindKey)); - bitmask |= WRAP_PARTIAL_FLAG; - } - return createWrap(key2, bitmask, object, partials, holders); - }); - function curry(func, arity, guard) { - arity = guard ? undefined2 : arity; - var result2 = createWrap(func, WRAP_CURRY_FLAG, undefined2, undefined2, undefined2, undefined2, undefined2, arity); - result2.placeholder = curry.placeholder; - return result2; - } - function curryRight(func, arity, guard) { - arity = guard ? undefined2 : arity; - var result2 = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined2, undefined2, undefined2, undefined2, undefined2, arity); - result2.placeholder = curryRight.placeholder; - return result2; - } - function debounce8(func, wait, options) { - var lastArgs, lastThis, maxWait, result2, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - wait = toNumber(wait) || 0; - if (isObject4(options)) { - leading = !!options.leading; - maxing = "maxWait" in options; - maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait; - trailing = "trailing" in options ? !!options.trailing : trailing; - } - function invokeFunc(time) { - var args = lastArgs, thisArg = lastThis; - lastArgs = lastThis = undefined2; - lastInvokeTime = time; - result2 = func.apply(thisArg, args); - return result2; - } - function leadingEdge(time) { - lastInvokeTime = time; - timerId = setTimeout2(timerExpired, wait); - return leading ? invokeFunc(time) : result2; - } - function remainingWait(time) { - var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall; - return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting; - } - function shouldInvoke(time) { - var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime; - return lastCallTime === undefined2 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait; - } - function timerExpired() { - var time = now(); - if (shouldInvoke(time)) { - return trailingEdge(time); - } - timerId = setTimeout2(timerExpired, remainingWait(time)); - } - function trailingEdge(time) { - timerId = undefined2; - if (trailing && lastArgs) { - return invokeFunc(time); - } - lastArgs = lastThis = undefined2; - return result2; - } - function cancel() { - if (timerId !== undefined2) { - clearTimeout2(timerId); - } - lastInvokeTime = 0; - lastArgs = lastCallTime = lastThis = timerId = undefined2; - } - function flush() { - return timerId === undefined2 ? result2 : trailingEdge(now()); - } - function debounced() { - var time = now(), isInvoking = shouldInvoke(time); - lastArgs = arguments; - lastThis = this; - lastCallTime = time; - if (isInvoking) { - if (timerId === undefined2) { - return leadingEdge(lastCallTime); - } - if (maxing) { - clearTimeout2(timerId); - timerId = setTimeout2(timerExpired, wait); - return invokeFunc(lastCallTime); - } - } - if (timerId === undefined2) { - timerId = setTimeout2(timerExpired, wait); - } - return result2; - } - debounced.cancel = cancel; - debounced.flush = flush; - return debounced; - } - var defer = baseRest(function(func, args) { - return baseDelay(func, 1, args); - }); - var delay = baseRest(function(func, wait, args) { - return baseDelay(func, toNumber(wait) || 0, args); - }); - function flip(func) { - return createWrap(func, WRAP_FLIP_FLAG); - } - function memoize2(func, resolver) { - if (typeof func != "function" || resolver != null && typeof resolver != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - var memoized = function() { - var args = arguments, key2 = resolver ? resolver.apply(this, args) : args[0], cache2 = memoized.cache; - if (cache2.has(key2)) { - return cache2.get(key2); - } - var result2 = func.apply(this, args); - memoized.cache = cache2.set(key2, result2) || cache2; - return result2; - }; - memoized.cache = new (memoize2.Cache || MapCache)(); - return memoized; - } - memoize2.Cache = MapCache; - function negate(predicate) { - if (typeof predicate != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - return function() { - var args = arguments; - switch (args.length) { - case 0: - return !predicate.call(this); - case 1: - return !predicate.call(this, args[0]); - case 2: - return !predicate.call(this, args[0], args[1]); - case 3: - return !predicate.call(this, args[0], args[1], args[2]); - } - return !predicate.apply(this, args); - }; - } - function once(func) { - return before(2, func); - } - var overArgs = castRest(function(func, transforms) { - transforms = transforms.length == 1 && isArray5(transforms[0]) ? arrayMap(transforms[0], baseUnary(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee())); - var funcsLength = transforms.length; - return baseRest(function(args) { - var index3 = -1, length = nativeMin(args.length, funcsLength); - while (++index3 < length) { - args[index3] = transforms[index3].call(this, args[index3]); - } - return apply2(func, this, args); - }); - }); - var partial = baseRest(function(func, partials) { - var holders = replaceHolders(partials, getHolder(partial)); - return createWrap(func, WRAP_PARTIAL_FLAG, undefined2, partials, holders); - }); - var partialRight = baseRest(function(func, partials) { - var holders = replaceHolders(partials, getHolder(partialRight)); - return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined2, partials, holders); - }); - var rearg = flatRest(function(func, indexes) { - return createWrap(func, WRAP_REARG_FLAG, undefined2, undefined2, undefined2, indexes); - }); - function rest(func, start) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - start = start === undefined2 ? start : toInteger2(start); - return baseRest(func, start); - } - function spread(func, start) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - start = start == null ? 0 : nativeMax(toInteger2(start), 0); - return baseRest(function(args) { - var array = args[start], otherArgs = castSlice(args, 0, start); - if (array) { - arrayPush(otherArgs, array); - } - return apply2(func, this, otherArgs); - }); - } - function throttle(func, wait, options) { - var leading = true, trailing = true; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - if (isObject4(options)) { - leading = "leading" in options ? !!options.leading : leading; - trailing = "trailing" in options ? !!options.trailing : trailing; - } - return debounce8(func, wait, { - "leading": leading, - "maxWait": wait, - "trailing": trailing - }); - } - function unary(func) { - return ary(func, 1); - } - function wrap(value, wrapper) { - return partial(castFunction(wrapper), value); - } - function castArray() { - if (!arguments.length) { - return []; - } - var value = arguments[0]; - return isArray5(value) ? value : [value]; - } - function clone5(value) { - return baseClone(value, CLONE_SYMBOLS_FLAG); - } - function cloneWith(value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return baseClone(value, CLONE_SYMBOLS_FLAG, customizer); - } - function cloneDeep(value) { - return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); - } - function cloneDeepWith(value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer); - } - function conformsTo(object, source) { - return source == null || baseConformsTo(object, source, keys(source)); - } - function eq(value, other) { - return value === other || value !== value && other !== other; - } - var gt = createRelationalOperation(baseGt); - var gte = createRelationalOperation(function(value, other) { - return value >= other; - }); - var isArguments = baseIsArguments(function() { - return arguments; - }()) ? baseIsArguments : function(value) { - return isObjectLike2(value) && hasOwnProperty3.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); - }; - var isArray5 = Array2.isArray; - var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer; - function isArrayLike(value) { - return value != null && isLength(value.length) && !isFunction3(value); - } - function isArrayLikeObject(value) { - return isObjectLike2(value) && isArrayLike(value); - } - function isBoolean3(value) { - return value === true || value === false || isObjectLike2(value) && baseGetTag(value) == boolTag; - } - var isBuffer = nativeIsBuffer || stubFalse; - var isDate4 = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; - function isElement(value) { - return isObjectLike2(value) && value.nodeType === 1 && !isPlainObject2(value); - } - function isEmpty(value) { - if (value == null) { - return true; - } - if (isArrayLike(value) && (isArray5(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer(value) || isTypedArray(value) || isArguments(value))) { - return !value.length; - } - var tag2 = getTag2(value); - if (tag2 == mapTag || tag2 == setTag) { - return !value.size; - } - if (isPrototype(value)) { - return !baseKeys(value).length; - } - for (var key2 in value) { - if (hasOwnProperty3.call(value, key2)) { - return false; - } - } - return true; - } - function isEqual4(value, other) { - return baseIsEqual(value, other); - } - function isEqualWith(value, other, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - var result2 = customizer ? customizer(value, other) : undefined2; - return result2 === undefined2 ? baseIsEqual(value, other, undefined2, customizer) : !!result2; - } - function isError(value) { - if (!isObjectLike2(value)) { - return false; - } - var tag2 = baseGetTag(value); - return tag2 == errorTag || tag2 == domExcTag || typeof value.message == "string" && typeof value.name == "string" && !isPlainObject2(value); - } - function isFinite2(value) { - return typeof value == "number" && nativeIsFinite(value); - } - function isFunction3(value) { - if (!isObject4(value)) { - return false; - } - var tag2 = baseGetTag(value); - return tag2 == funcTag || tag2 == genTag || tag2 == asyncTag || tag2 == proxyTag; - } - function isInteger3(value) { - return typeof value == "number" && value == toInteger2(value); - } - function isLength(value) { - return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2; - } - function isObject4(value) { - var type = typeof value; - return value != null && (type == "object" || type == "function"); - } - function isObjectLike2(value) { - return value != null && typeof value == "object"; - } - var isMap2 = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; - function isMatch2(object, source) { - return object === source || baseIsMatch(object, source, getMatchData(source)); - } - function isMatchWith(object, source, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return baseIsMatch(object, source, getMatchData(source), customizer); - } - function isNaN3(value) { - return isNumber4(value) && value != +value; - } - function isNative(value) { - if (isMaskable(value)) { - throw new Error2(CORE_ERROR_TEXT); - } - return baseIsNative(value); - } - function isNull2(value) { - return value === null; - } - function isNil(value) { - return value == null; - } - function isNumber4(value) { - return typeof value == "number" || isObjectLike2(value) && baseGetTag(value) == numberTag; - } - function isPlainObject2(value) { - if (!isObjectLike2(value) || baseGetTag(value) != objectTag) { - return false; - } - var proto = getPrototype(value); - if (proto === null) { - return true; - } - var Ctor = hasOwnProperty3.call(proto, "constructor") && proto.constructor; - return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; - } - var isRegExp2 = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp; - function isSafeInteger(value) { - return isInteger3(value) && value >= -MAX_SAFE_INTEGER2 && value <= MAX_SAFE_INTEGER2; - } - var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; - function isString5(value) { - return typeof value == "string" || !isArray5(value) && isObjectLike2(value) && baseGetTag(value) == stringTag; - } - function isSymbol(value) { - return typeof value == "symbol" || isObjectLike2(value) && baseGetTag(value) == symbolTag; - } - var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; - function isUndefined2(value) { - return value === undefined2; - } - function isWeakMap(value) { - return isObjectLike2(value) && getTag2(value) == weakMapTag; - } - function isWeakSet(value) { - return isObjectLike2(value) && baseGetTag(value) == weakSetTag; - } - var lt = createRelationalOperation(baseLt); - var lte = createRelationalOperation(function(value, other) { - return value <= other; - }); - function toArray(value) { - if (!value) { - return []; - } - if (isArrayLike(value)) { - return isString5(value) ? stringToArray(value) : copyArray(value); - } - if (symIterator && value[symIterator]) { - return iteratorToArray(value[symIterator]()); - } - var tag2 = getTag2(value), func = tag2 == mapTag ? mapToArray : tag2 == setTag ? setToArray : values2; - return func(value); - } - function toFinite(value) { - if (!value) { - return value === 0 ? value : 0; - } - value = toNumber(value); - if (value === INFINITY2 || value === -INFINITY2) { - var sign4 = value < 0 ? -1 : 1; - return sign4 * MAX_INTEGER; - } - return value === value ? value : 0; - } - function toInteger2(value) { - var result2 = toFinite(value), remainder = result2 % 1; - return result2 === result2 ? remainder ? result2 - remainder : result2 : 0; - } - function toLength(value) { - return value ? baseClamp(toInteger2(value), 0, MAX_ARRAY_LENGTH) : 0; - } - function toNumber(value) { - if (typeof value == "number") { - return value; - } - if (isSymbol(value)) { - return NAN; - } - if (isObject4(value)) { - var other = typeof value.valueOf == "function" ? value.valueOf() : value; - value = isObject4(other) ? other + "" : other; - } - if (typeof value != "string") { - return value === 0 ? value : +value; - } - value = baseTrim(value); - var isBinary2 = reIsBinary.test(value); - return isBinary2 || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary2 ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; - } - function toPlainObject(value) { - return copyObject(value, keysIn(value)); - } - function toSafeInteger(value) { - return value ? baseClamp(toInteger2(value), -MAX_SAFE_INTEGER2, MAX_SAFE_INTEGER2) : value === 0 ? value : 0; - } - function toString4(value) { - return value == null ? "" : baseToString2(value); - } - var assign = createAssigner(function(object, source) { - if (isPrototype(source) || isArrayLike(source)) { - copyObject(source, keys(source), object); - return; - } - for (var key2 in source) { - if (hasOwnProperty3.call(source, key2)) { - assignValue(object, key2, source[key2]); - } - } - }); - var assignIn = createAssigner(function(object, source) { - copyObject(source, keysIn(source), object); - }); - var assignInWith = createAssigner(function(object, source, srcIndex, customizer) { - copyObject(source, keysIn(source), object, customizer); - }); - var assignWith = createAssigner(function(object, source, srcIndex, customizer) { - copyObject(source, keys(source), object, customizer); - }); - var at2 = flatRest(baseAt); - function create2(prototype, properties3) { - var result2 = baseCreate(prototype); - return properties3 == null ? result2 : baseAssign(result2, properties3); - } - var defaults2 = baseRest(function(object, sources) { - object = Object2(object); - var index3 = -1; - var length = sources.length; - var guard = length > 2 ? sources[2] : undefined2; - if (guard && isIterateeCall(sources[0], sources[1], guard)) { - length = 1; - } - while (++index3 < length) { - var source = sources[index3]; - var props = keysIn(source); - var propsIndex = -1; - var propsLength = props.length; - while (++propsIndex < propsLength) { - var key2 = props[propsIndex]; - var value = object[key2]; - if (value === undefined2 || eq(value, objectProto[key2]) && !hasOwnProperty3.call(object, key2)) { - object[key2] = source[key2]; - } - } - } - return object; - }); - var defaultsDeep = baseRest(function(args) { - args.push(undefined2, customDefaultsMerge); - return apply2(mergeWith, undefined2, args); - }); - function findKey2(object, predicate) { - return baseFindKey(object, getIteratee(predicate, 3), baseForOwn); - } - function findLastKey(object, predicate) { - return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight); - } - function forIn(object, iteratee2) { - return object == null ? object : baseFor(object, getIteratee(iteratee2, 3), keysIn); - } - function forInRight(object, iteratee2) { - return object == null ? object : baseForRight(object, getIteratee(iteratee2, 3), keysIn); - } - function forOwn(object, iteratee2) { - return object && baseForOwn(object, getIteratee(iteratee2, 3)); - } - function forOwnRight(object, iteratee2) { - return object && baseForOwnRight(object, getIteratee(iteratee2, 3)); - } - function functions2(object) { - return object == null ? [] : baseFunctions(object, keys(object)); - } - function functionsIn(object) { - return object == null ? [] : baseFunctions(object, keysIn(object)); - } - function get2(object, path2, defaultValue2) { - var result2 = object == null ? undefined2 : baseGet(object, path2); - return result2 === undefined2 ? defaultValue2 : result2; - } - function has(object, path2) { - return object != null && hasPath(object, path2, baseHas); - } - function hasIn(object, path2) { - return object != null && hasPath(object, path2, baseHasIn); - } - var invert = createInverter(function(result2, value, key2) { - if (value != null && typeof value.toString != "function") { - value = nativeObjectToString.call(value); - } - result2[value] = key2; - }, constant(identity2)); - var invertBy = createInverter(function(result2, value, key2) { - if (value != null && typeof value.toString != "function") { - value = nativeObjectToString.call(value); - } - if (hasOwnProperty3.call(result2, value)) { - result2[value].push(key2); - } else { - result2[value] = [key2]; - } - }, getIteratee); - var invoke = baseRest(baseInvoke); - function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); - } - function keysIn(object) { - return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); - } - function mapKeys(object, iteratee2) { - var result2 = {}; - iteratee2 = getIteratee(iteratee2, 3); - baseForOwn(object, function(value, key2, object2) { - baseAssignValue(result2, iteratee2(value, key2, object2), value); - }); - return result2; - } - function mapValues(object, iteratee2) { - var result2 = {}; - iteratee2 = getIteratee(iteratee2, 3); - baseForOwn(object, function(value, key2, object2) { - baseAssignValue(result2, key2, iteratee2(value, key2, object2)); - }); - return result2; - } - var merge = createAssigner(function(object, source, srcIndex) { - baseMerge(object, source, srcIndex); - }); - var mergeWith = createAssigner(function(object, source, srcIndex, customizer) { - baseMerge(object, source, srcIndex, customizer); - }); - var omit = flatRest(function(object, paths) { - var result2 = {}; - if (object == null) { - return result2; - } - var isDeep = false; - paths = arrayMap(paths, function(path2) { - path2 = castPath(path2, object); - isDeep || (isDeep = path2.length > 1); - return path2; - }); - copyObject(object, getAllKeysIn(object), result2); - if (isDeep) { - result2 = baseClone(result2, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone); - } - var length = paths.length; - while (length--) { - baseUnset(result2, paths[length]); - } - return result2; - }); - function omitBy(object, predicate) { - return pickBy(object, negate(getIteratee(predicate))); - } - var pick = flatRest(function(object, paths) { - return object == null ? {} : basePick(object, paths); - }); - function pickBy(object, predicate) { - if (object == null) { - return {}; - } - var props = arrayMap(getAllKeysIn(object), function(prop2) { - return [prop2]; - }); - predicate = getIteratee(predicate); - return basePickBy(object, props, function(value, path2) { - return predicate(value, path2[0]); - }); - } - function result(object, path2, defaultValue2) { - path2 = castPath(path2, object); - var index3 = -1, length = path2.length; - if (!length) { - length = 1; - object = undefined2; - } - while (++index3 < length) { - var value = object == null ? undefined2 : object[toKey(path2[index3])]; - if (value === undefined2) { - index3 = length; - value = defaultValue2; - } - object = isFunction3(value) ? value.call(object) : value; - } - return object; - } - function set(object, path2, value) { - return object == null ? object : baseSet(object, path2, value); - } - function setWith(object, path2, value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return object == null ? object : baseSet(object, path2, value, customizer); - } - var toPairs = createToPairs(keys); - var toPairsIn = createToPairs(keysIn); - function transform(object, iteratee2, accumulator) { - var isArr = isArray5(object), isArrLike = isArr || isBuffer(object) || isTypedArray(object); - iteratee2 = getIteratee(iteratee2, 4); - if (accumulator == null) { - var Ctor = object && object.constructor; - if (isArrLike) { - accumulator = isArr ? new Ctor() : []; - } else if (isObject4(object)) { - accumulator = isFunction3(Ctor) ? baseCreate(getPrototype(object)) : {}; - } else { - accumulator = {}; - } - } - (isArrLike ? arrayEach : baseForOwn)(object, function(value, index3, object2) { - return iteratee2(accumulator, value, index3, object2); - }); - return accumulator; - } - function unset(object, path2) { - return object == null ? true : baseUnset(object, path2); - } - function update(object, path2, updater) { - return object == null ? object : baseUpdate(object, path2, castFunction(updater)); - } - function updateWith(object, path2, updater, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return object == null ? object : baseUpdate(object, path2, castFunction(updater), customizer); - } - function values2(object) { - return object == null ? [] : baseValues(object, keys(object)); - } - function valuesIn(object) { - return object == null ? [] : baseValues(object, keysIn(object)); - } - function clamp3(number6, lower, upper) { - if (upper === undefined2) { - upper = lower; - lower = undefined2; - } - if (upper !== undefined2) { - upper = toNumber(upper); - upper = upper === upper ? upper : 0; - } - if (lower !== undefined2) { - lower = toNumber(lower); - lower = lower === lower ? lower : 0; - } - return baseClamp(toNumber(number6), lower, upper); - } - function inRange(number6, start, end) { - start = toFinite(start); - if (end === undefined2) { - end = start; - start = 0; - } else { - end = toFinite(end); - } - number6 = toNumber(number6); - return baseInRange(number6, start, end); - } - function random3(lower, upper, floating) { - if (floating && typeof floating != "boolean" && isIterateeCall(lower, upper, floating)) { - upper = floating = undefined2; - } - if (floating === undefined2) { - if (typeof upper == "boolean") { - floating = upper; - upper = undefined2; - } else if (typeof lower == "boolean") { - floating = lower; - lower = undefined2; - } - } - if (lower === undefined2 && upper === undefined2) { - lower = 0; - upper = 1; - } else { - lower = toFinite(lower); - if (upper === undefined2) { - upper = lower; - lower = 0; - } else { - upper = toFinite(upper); - } - } - if (lower > upper) { - var temp = lower; - lower = upper; - upper = temp; - } - if (floating || lower % 1 || upper % 1) { - var rand = nativeRandom(); - return nativeMin(lower + rand * (upper - lower + freeParseFloat("1e-" + ((rand + "").length - 1))), upper); - } - return baseRandom(lower, upper); - } - var camelCase = createCompounder(function(result2, word, index3) { - word = word.toLowerCase(); - return result2 + (index3 ? capitalize(word) : word); - }); - function capitalize(string6) { - return upperFirst(toString4(string6).toLowerCase()); - } - function deburr(string6) { - string6 = toString4(string6); - return string6 && string6.replace(reLatin, deburrLetter).replace(reComboMark, ""); - } - function endsWith2(string6, target, position) { - string6 = toString4(string6); - target = baseToString2(target); - var length = string6.length; - position = position === undefined2 ? length : baseClamp(toInteger2(position), 0, length); - var end = position; - position -= target.length; - return position >= 0 && string6.slice(position, end) == target; - } - function escape2(string6) { - string6 = toString4(string6); - return string6 && reHasUnescapedHtml.test(string6) ? string6.replace(reUnescapedHtml, escapeHtmlChar) : string6; - } - function escapeRegExp(string6) { - string6 = toString4(string6); - return string6 && reHasRegExpChar.test(string6) ? string6.replace(reRegExpChar, "\\$&") : string6; - } - var kebabCase = createCompounder(function(result2, word, index3) { - return result2 + (index3 ? "-" : "") + word.toLowerCase(); - }); - var lowerCase = createCompounder(function(result2, word, index3) { - return result2 + (index3 ? " " : "") + word.toLowerCase(); - }); - var lowerFirst = createCaseFirst("toLowerCase"); - function pad(string6, length, chars) { - string6 = toString4(string6); - length = toInteger2(length); - var strLength = length ? stringSize(string6) : 0; - if (!length || strLength >= length) { - return string6; - } - var mid = (length - strLength) / 2; - return createPadding(nativeFloor(mid), chars) + string6 + createPadding(nativeCeil(mid), chars); - } - function padEnd(string6, length, chars) { - string6 = toString4(string6); - length = toInteger2(length); - var strLength = length ? stringSize(string6) : 0; - return length && strLength < length ? string6 + createPadding(length - strLength, chars) : string6; - } - function padStart(string6, length, chars) { - string6 = toString4(string6); - length = toInteger2(length); - var strLength = length ? stringSize(string6) : 0; - return length && strLength < length ? createPadding(length - strLength, chars) + string6 : string6; - } - function parseInt2(string6, radix, guard) { - if (guard || radix == null) { - radix = 0; - } else if (radix) { - radix = +radix; - } - return nativeParseInt(toString4(string6).replace(reTrimStart, ""), radix || 0); - } - function repeat(string6, n3, guard) { - if (guard ? isIterateeCall(string6, n3, guard) : n3 === undefined2) { - n3 = 1; - } else { - n3 = toInteger2(n3); - } - return baseRepeat(toString4(string6), n3); - } - function replace() { - var args = arguments, string6 = toString4(args[0]); - return args.length < 3 ? string6 : string6.replace(args[1], args[2]); - } - var snakeCase = createCompounder(function(result2, word, index3) { - return result2 + (index3 ? "_" : "") + word.toLowerCase(); - }); - function split(string6, separator, limit) { - if (limit && typeof limit != "number" && isIterateeCall(string6, separator, limit)) { - separator = limit = undefined2; - } - limit = limit === undefined2 ? MAX_ARRAY_LENGTH : limit >>> 0; - if (!limit) { - return []; - } - string6 = toString4(string6); - if (string6 && (typeof separator == "string" || separator != null && !isRegExp2(separator))) { - separator = baseToString2(separator); - if (!separator && hasUnicode(string6)) { - return castSlice(stringToArray(string6), 0, limit); - } - } - return string6.split(separator, limit); - } - var startCase = createCompounder(function(result2, word, index3) { - return result2 + (index3 ? " " : "") + upperFirst(word); - }); - function startsWith(string6, target, position) { - string6 = toString4(string6); - position = position == null ? 0 : baseClamp(toInteger2(position), 0, string6.length); - target = baseToString2(target); - return string6.slice(position, position + target.length) == target; - } - function template2(string6, options, guard) { - var settings = lodash.templateSettings; - if (guard && isIterateeCall(string6, options, guard)) { - options = undefined2; - } - string6 = toString4(string6); - options = assignInWith({}, options, settings, customDefaultsAssignIn); - var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys); - var isEscaping, isEvaluating, index3 = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '"; - var reDelimiters = RegExp2( - (options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$", - "g" - ); - var sourceURL = "//# sourceURL=" + (hasOwnProperty3.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n"; - string6.replace(reDelimiters, function(match2, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset2) { - interpolateValue || (interpolateValue = esTemplateValue); - source += string6.slice(index3, offset2).replace(reUnescapedString, escapeStringChar); - if (escapeValue) { - isEscaping = true; - source += "' +\n__e(" + escapeValue + ") +\n'"; - } - if (evaluateValue) { - isEvaluating = true; - source += "';\n" + evaluateValue + ";\n__p += '"; - } - if (interpolateValue) { - source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'"; - } - index3 = offset2 + match2.length; - return match2; - }); - source += "';\n"; - var variable = hasOwnProperty3.call(options, "variable") && options.variable; - if (!variable) { - source = "with (obj) {\n" + source + "\n}\n"; - } else if (reForbiddenIdentifierChars.test(variable)) { - throw new Error2(INVALID_TEMPL_VAR_ERROR_TEXT); - } - source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;"); - source = "function(" + (variable || "obj") + ") {\n" + (variable ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (isEscaping ? ", __e = _.escape" : "") + (isEvaluating ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + source + "return __p\n}"; - var result2 = attempt(function() { - return Function2(importsKeys, sourceURL + "return " + source).apply(undefined2, importsValues); - }); - result2.source = source; - if (isError(result2)) { - throw result2; - } - return result2; - } - function toLower(value) { - return toString4(value).toLowerCase(); - } - function toUpper(value) { - return toString4(value).toUpperCase(); - } - function trim(string6, chars, guard) { - string6 = toString4(string6); - if (string6 && (guard || chars === undefined2)) { - return baseTrim(string6); - } - if (!string6 || !(chars = baseToString2(chars))) { - return string6; - } - var strSymbols = stringToArray(string6), chrSymbols = stringToArray(chars), start = charsStartIndex(strSymbols, chrSymbols), end = charsEndIndex(strSymbols, chrSymbols) + 1; - return castSlice(strSymbols, start, end).join(""); - } - function trimEnd(string6, chars, guard) { - string6 = toString4(string6); - if (string6 && (guard || chars === undefined2)) { - return string6.slice(0, trimmedEndIndex(string6) + 1); - } - if (!string6 || !(chars = baseToString2(chars))) { - return string6; - } - var strSymbols = stringToArray(string6), end = charsEndIndex(strSymbols, stringToArray(chars)) + 1; - return castSlice(strSymbols, 0, end).join(""); - } - function trimStart(string6, chars, guard) { - string6 = toString4(string6); - if (string6 && (guard || chars === undefined2)) { - return string6.replace(reTrimStart, ""); - } - if (!string6 || !(chars = baseToString2(chars))) { - return string6; - } - var strSymbols = stringToArray(string6), start = charsStartIndex(strSymbols, stringToArray(chars)); - return castSlice(strSymbols, start).join(""); - } - function truncate2(string6, options) { - var length = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION; - if (isObject4(options)) { - var separator = "separator" in options ? options.separator : separator; - length = "length" in options ? toInteger2(options.length) : length; - omission = "omission" in options ? baseToString2(options.omission) : omission; - } - string6 = toString4(string6); - var strLength = string6.length; - if (hasUnicode(string6)) { - var strSymbols = stringToArray(string6); - strLength = strSymbols.length; - } - if (length >= strLength) { - return string6; - } - var end = length - stringSize(omission); - if (end < 1) { - return omission; - } - var result2 = strSymbols ? castSlice(strSymbols, 0, end).join("") : string6.slice(0, end); - if (separator === undefined2) { - return result2 + omission; - } - if (strSymbols) { - end += result2.length - end; - } - if (isRegExp2(separator)) { - if (string6.slice(end).search(separator)) { - var match2, substring = result2; - if (!separator.global) { - separator = RegExp2(separator.source, toString4(reFlags.exec(separator)) + "g"); - } - separator.lastIndex = 0; - while (match2 = separator.exec(substring)) { - var newEnd = match2.index; - } - result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd); - } - } else if (string6.indexOf(baseToString2(separator), end) != end) { - var index3 = result2.lastIndexOf(separator); - if (index3 > -1) { - result2 = result2.slice(0, index3); - } - } - return result2 + omission; - } - function unescape(string6) { - string6 = toString4(string6); - return string6 && reHasEscapedHtml.test(string6) ? string6.replace(reEscapedHtml, unescapeHtmlChar) : string6; - } - var upperCase = createCompounder(function(result2, word, index3) { - return result2 + (index3 ? " " : "") + word.toUpperCase(); - }); - var upperFirst = createCaseFirst("toUpperCase"); - function words2(string6, pattern, guard) { - string6 = toString4(string6); - pattern = guard ? undefined2 : pattern; - if (pattern === undefined2) { - return hasUnicodeWord(string6) ? unicodeWords(string6) : asciiWords(string6); - } - return string6.match(pattern) || []; - } - var attempt = baseRest(function(func, args) { - try { - return apply2(func, undefined2, args); - } catch (e5) { - return isError(e5) ? e5 : new Error2(e5); - } - }); - var bindAll = flatRest(function(object, methodNames) { - arrayEach(methodNames, function(key2) { - key2 = toKey(key2); - baseAssignValue(object, key2, bind(object[key2], object)); - }); - return object; - }); - function cond(pairs) { - var length = pairs == null ? 0 : pairs.length, toIteratee = getIteratee(); - pairs = !length ? [] : arrayMap(pairs, function(pair2) { - if (typeof pair2[1] != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - return [toIteratee(pair2[0]), pair2[1]]; - }); - return baseRest(function(args) { - var index3 = -1; - while (++index3 < length) { - var pair2 = pairs[index3]; - if (apply2(pair2[0], this, args)) { - return apply2(pair2[1], this, args); - } - } - }); - } - function conforms(source) { - return baseConforms(baseClone(source, CLONE_DEEP_FLAG)); - } - function constant(value) { - return function() { - return value; - }; - } - function defaultTo(value, defaultValue2) { - return value == null || value !== value ? defaultValue2 : value; - } - var flow = createFlow(); - var flowRight = createFlow(true); - function identity2(value) { - return value; - } - function iteratee(func) { - return baseIteratee(typeof func == "function" ? func : baseClone(func, CLONE_DEEP_FLAG)); - } - function matches(source) { - return baseMatches(baseClone(source, CLONE_DEEP_FLAG)); - } - function matchesProperty(path2, srcValue) { - return baseMatchesProperty(path2, baseClone(srcValue, CLONE_DEEP_FLAG)); - } - var method = baseRest(function(path2, args) { - return function(object) { - return baseInvoke(object, path2, args); - }; - }); - var methodOf = baseRest(function(object, args) { - return function(path2) { - return baseInvoke(object, path2, args); - }; - }); - function mixin2(object, source, options) { - var props = keys(source), methodNames = baseFunctions(source, props); - if (options == null && !(isObject4(source) && (methodNames.length || !props.length))) { - options = source; - source = object; - object = this; - methodNames = baseFunctions(source, keys(source)); - } - var chain3 = !(isObject4(options) && "chain" in options) || !!options.chain, isFunc = isFunction3(object); - arrayEach(methodNames, function(methodName) { - var func = source[methodName]; - object[methodName] = func; - if (isFunc) { - object.prototype[methodName] = function() { - var chainAll = this.__chain__; - if (chain3 || chainAll) { - var result2 = object(this.__wrapped__), actions = result2.__actions__ = copyArray(this.__actions__); - actions.push({ "func": func, "args": arguments, "thisArg": object }); - result2.__chain__ = chainAll; - return result2; - } - return func.apply(object, arrayPush([this.value()], arguments)); - }; - } - }); - return object; - } - function noConflict() { - if (root._ === this) { - root._ = oldDash; - } - return this; - } - function noop3() { - } - function nthArg(n3) { - n3 = toInteger2(n3); - return baseRest(function(args) { - return baseNth(args, n3); - }); - } - var over = createOver(arrayMap); - var overEvery = createOver(arrayEvery); - var overSome = createOver(arraySome); - function property(path2) { - return isKey(path2) ? baseProperty(toKey(path2)) : basePropertyDeep(path2); - } - function propertyOf(object) { - return function(path2) { - return object == null ? undefined2 : baseGet(object, path2); - }; - } - var range2 = createRange2(); - var rangeRight = createRange2(true); - function stubArray() { - return []; - } - function stubFalse() { - return false; - } - function stubObject() { - return {}; - } - function stubString() { - return ""; - } - function stubTrue() { - return true; - } - function times(n3, iteratee2) { - n3 = toInteger2(n3); - if (n3 < 1 || n3 > MAX_SAFE_INTEGER2) { - return []; - } - var index3 = MAX_ARRAY_LENGTH, length = nativeMin(n3, MAX_ARRAY_LENGTH); - iteratee2 = getIteratee(iteratee2); - n3 -= MAX_ARRAY_LENGTH; - var result2 = baseTimes(length, iteratee2); - while (++index3 < n3) { - iteratee2(index3); - } - return result2; - } - function toPath(value) { - if (isArray5(value)) { - return arrayMap(value, toKey); - } - return isSymbol(value) ? [value] : copyArray(stringToPath(toString4(value))); - } - function uniqueId3(prefix) { - var id3 = ++idCounter; - return toString4(prefix) + id3; - } - var add4 = createMathOperation(function(augend, addend) { - return augend + addend; - }, 0); - var ceil3 = createRound2("ceil"); - var divide3 = createMathOperation(function(dividend, divisor) { - return dividend / divisor; - }, 1); - var floor3 = createRound2("floor"); - function max5(array) { - return array && array.length ? baseExtremum(array, identity2, baseGt) : undefined2; - } - function maxBy(array, iteratee2) { - return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseGt) : undefined2; - } - function mean3(array) { - return baseMean(array, identity2); - } - function meanBy(array, iteratee2) { - return baseMean(array, getIteratee(iteratee2, 2)); - } - function min5(array) { - return array && array.length ? baseExtremum(array, identity2, baseLt) : undefined2; - } - function minBy(array, iteratee2) { - return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseLt) : undefined2; - } - var multiply2 = createMathOperation(function(multiplier, multiplicand) { - return multiplier * multiplicand; - }, 1); - var round3 = createRound2("round"); - var subtract3 = createMathOperation(function(minuend, subtrahend) { - return minuend - subtrahend; - }, 0); - function sum4(array) { - return array && array.length ? baseSum(array, identity2) : 0; - } - function sumBy(array, iteratee2) { - return array && array.length ? baseSum(array, getIteratee(iteratee2, 2)) : 0; - } - lodash.after = after; - lodash.ary = ary; - lodash.assign = assign; - lodash.assignIn = assignIn; - lodash.assignInWith = assignInWith; - lodash.assignWith = assignWith; - lodash.at = at2; - lodash.before = before; - lodash.bind = bind; - lodash.bindAll = bindAll; - lodash.bindKey = bindKey; - lodash.castArray = castArray; - lodash.chain = chain2; - lodash.chunk = chunk; - lodash.compact = compact; - lodash.concat = concat3; - lodash.cond = cond; - lodash.conforms = conforms; - lodash.constant = constant; - lodash.countBy = countBy; - lodash.create = create2; - lodash.curry = curry; - lodash.curryRight = curryRight; - lodash.debounce = debounce8; - lodash.defaults = defaults2; - lodash.defaultsDeep = defaultsDeep; - lodash.defer = defer; - lodash.delay = delay; - lodash.difference = difference; - lodash.differenceBy = differenceBy; - lodash.differenceWith = differenceWith; - lodash.drop = drop; - lodash.dropRight = dropRight; - lodash.dropRightWhile = dropRightWhile; - lodash.dropWhile = dropWhile; - lodash.fill = fill; - lodash.filter = filter4; - lodash.flatMap = flatMap; - lodash.flatMapDeep = flatMapDeep; - lodash.flatMapDepth = flatMapDepth; - lodash.flatten = flatten4; - lodash.flattenDeep = flattenDeep; - lodash.flattenDepth = flattenDepth; - lodash.flip = flip; - lodash.flow = flow; - lodash.flowRight = flowRight; - lodash.fromPairs = fromPairs; - lodash.functions = functions2; - lodash.functionsIn = functionsIn; - lodash.groupBy = groupBy2; - lodash.initial = initial; - lodash.intersection = intersection; - lodash.intersectionBy = intersectionBy; - lodash.intersectionWith = intersectionWith; - lodash.invert = invert; - lodash.invertBy = invertBy; - lodash.invokeMap = invokeMap; - lodash.iteratee = iteratee; - lodash.keyBy = keyBy; - lodash.keys = keys; - lodash.keysIn = keysIn; - lodash.map = map4; - lodash.mapKeys = mapKeys; - lodash.mapValues = mapValues; - lodash.matches = matches; - lodash.matchesProperty = matchesProperty; - lodash.memoize = memoize2; - lodash.merge = merge; - lodash.mergeWith = mergeWith; - lodash.method = method; - lodash.methodOf = methodOf; - lodash.mixin = mixin2; - lodash.negate = negate; - lodash.nthArg = nthArg; - lodash.omit = omit; - lodash.omitBy = omitBy; - lodash.once = once; - lodash.orderBy = orderBy; - lodash.over = over; - lodash.overArgs = overArgs; - lodash.overEvery = overEvery; - lodash.overSome = overSome; - lodash.partial = partial; - lodash.partialRight = partialRight; - lodash.partition = partition; - lodash.pick = pick; - lodash.pickBy = pickBy; - lodash.property = property; - lodash.propertyOf = propertyOf; - lodash.pull = pull; - lodash.pullAll = pullAll; - lodash.pullAllBy = pullAllBy; - lodash.pullAllWith = pullAllWith; - lodash.pullAt = pullAt; - lodash.range = range2; - lodash.rangeRight = rangeRight; - lodash.rearg = rearg; - lodash.reject = reject; - lodash.remove = remove; - lodash.rest = rest; - lodash.reverse = reverse; - lodash.sampleSize = sampleSize; - lodash.set = set; - lodash.setWith = setWith; - lodash.shuffle = shuffle; - lodash.slice = slice; - lodash.sortBy = sortBy; - lodash.sortedUniq = sortedUniq; - lodash.sortedUniqBy = sortedUniqBy; - lodash.split = split; - lodash.spread = spread; - lodash.tail = tail; - lodash.take = take; - lodash.takeRight = takeRight; - lodash.takeRightWhile = takeRightWhile; - lodash.takeWhile = takeWhile; - lodash.tap = tap; - lodash.throttle = throttle; - lodash.thru = thru; - lodash.toArray = toArray; - lodash.toPairs = toPairs; - lodash.toPairsIn = toPairsIn; - lodash.toPath = toPath; - lodash.toPlainObject = toPlainObject; - lodash.transform = transform; - lodash.unary = unary; - lodash.union = union; - lodash.unionBy = unionBy; - lodash.unionWith = unionWith; - lodash.uniq = uniq3; - lodash.uniqBy = uniqBy; - lodash.uniqWith = uniqWith; - lodash.unset = unset; - lodash.unzip = unzip; - lodash.unzipWith = unzipWith; - lodash.update = update; - lodash.updateWith = updateWith; - lodash.values = values2; - lodash.valuesIn = valuesIn; - lodash.without = without; - lodash.words = words2; - lodash.wrap = wrap; - lodash.xor = xor2; - lodash.xorBy = xorBy; - lodash.xorWith = xorWith; - lodash.zip = zip; - lodash.zipObject = zipObject; - lodash.zipObjectDeep = zipObjectDeep; - lodash.zipWith = zipWith; - lodash.entries = toPairs; - lodash.entriesIn = toPairsIn; - lodash.extend = assignIn; - lodash.extendWith = assignInWith; - mixin2(lodash, lodash); - lodash.add = add4; - lodash.attempt = attempt; - lodash.camelCase = camelCase; - lodash.capitalize = capitalize; - lodash.ceil = ceil3; - lodash.clamp = clamp3; - lodash.clone = clone5; - lodash.cloneDeep = cloneDeep; - lodash.cloneDeepWith = cloneDeepWith; - lodash.cloneWith = cloneWith; - lodash.conformsTo = conformsTo; - lodash.deburr = deburr; - lodash.defaultTo = defaultTo; - lodash.divide = divide3; - lodash.endsWith = endsWith2; - lodash.eq = eq; - lodash.escape = escape2; - lodash.escapeRegExp = escapeRegExp; - lodash.every = every2; - lodash.find = find2; - lodash.findIndex = findIndex3; - lodash.findKey = findKey2; - lodash.findLast = findLast; - lodash.findLastIndex = findLastIndex; - lodash.findLastKey = findLastKey; - lodash.floor = floor3; - lodash.forEach = forEach3; - lodash.forEachRight = forEachRight; - lodash.forIn = forIn; - lodash.forInRight = forInRight; - lodash.forOwn = forOwn; - lodash.forOwnRight = forOwnRight; - lodash.get = get2; - lodash.gt = gt; - lodash.gte = gte; - lodash.has = has; - lodash.hasIn = hasIn; - lodash.head = head; - lodash.identity = identity2; - lodash.includes = includes; - lodash.indexOf = indexOf; - lodash.inRange = inRange; - lodash.invoke = invoke; - lodash.isArguments = isArguments; - lodash.isArray = isArray5; - lodash.isArrayBuffer = isArrayBuffer; - lodash.isArrayLike = isArrayLike; - lodash.isArrayLikeObject = isArrayLikeObject; - lodash.isBoolean = isBoolean3; - lodash.isBuffer = isBuffer; - lodash.isDate = isDate4; - lodash.isElement = isElement; - lodash.isEmpty = isEmpty; - lodash.isEqual = isEqual4; - lodash.isEqualWith = isEqualWith; - lodash.isError = isError; - lodash.isFinite = isFinite2; - lodash.isFunction = isFunction3; - lodash.isInteger = isInteger3; - lodash.isLength = isLength; - lodash.isMap = isMap2; - lodash.isMatch = isMatch2; - lodash.isMatchWith = isMatchWith; - lodash.isNaN = isNaN3; - lodash.isNative = isNative; - lodash.isNil = isNil; - lodash.isNull = isNull2; - lodash.isNumber = isNumber4; - lodash.isObject = isObject4; - lodash.isObjectLike = isObjectLike2; - lodash.isPlainObject = isPlainObject2; - lodash.isRegExp = isRegExp2; - lodash.isSafeInteger = isSafeInteger; - lodash.isSet = isSet; - lodash.isString = isString5; - lodash.isSymbol = isSymbol; - lodash.isTypedArray = isTypedArray; - lodash.isUndefined = isUndefined2; - lodash.isWeakMap = isWeakMap; - lodash.isWeakSet = isWeakSet; - lodash.join = join2; - lodash.kebabCase = kebabCase; - lodash.last = last; - lodash.lastIndexOf = lastIndexOf; - lodash.lowerCase = lowerCase; - lodash.lowerFirst = lowerFirst; - lodash.lt = lt; - lodash.lte = lte; - lodash.max = max5; - lodash.maxBy = maxBy; - lodash.mean = mean3; - lodash.meanBy = meanBy; - lodash.min = min5; - lodash.minBy = minBy; - lodash.stubArray = stubArray; - lodash.stubFalse = stubFalse; - lodash.stubObject = stubObject; - lodash.stubString = stubString; - lodash.stubTrue = stubTrue; - lodash.multiply = multiply2; - lodash.nth = nth; - lodash.noConflict = noConflict; - lodash.noop = noop3; - lodash.now = now; - lodash.pad = pad; - lodash.padEnd = padEnd; - lodash.padStart = padStart; - lodash.parseInt = parseInt2; - lodash.random = random3; - lodash.reduce = reduce2; - lodash.reduceRight = reduceRight; - lodash.repeat = repeat; - lodash.replace = replace; - lodash.result = result; - lodash.round = round3; - lodash.runInContext = runInContext2; - lodash.sample = sample; - lodash.size = size2; - lodash.snakeCase = snakeCase; - lodash.some = some2; - lodash.sortedIndex = sortedIndex; - lodash.sortedIndexBy = sortedIndexBy; - lodash.sortedIndexOf = sortedIndexOf; - lodash.sortedLastIndex = sortedLastIndex; - lodash.sortedLastIndexBy = sortedLastIndexBy; - lodash.sortedLastIndexOf = sortedLastIndexOf; - lodash.startCase = startCase; - lodash.startsWith = startsWith; - lodash.subtract = subtract3; - lodash.sum = sum4; - lodash.sumBy = sumBy; - lodash.template = template2; - lodash.times = times; - lodash.toFinite = toFinite; - lodash.toInteger = toInteger2; - lodash.toLength = toLength; - lodash.toLower = toLower; - lodash.toNumber = toNumber; - lodash.toSafeInteger = toSafeInteger; - lodash.toString = toString4; - lodash.toUpper = toUpper; - lodash.trim = trim; - lodash.trimEnd = trimEnd; - lodash.trimStart = trimStart; - lodash.truncate = truncate2; - lodash.unescape = unescape; - lodash.uniqueId = uniqueId3; - lodash.upperCase = upperCase; - lodash.upperFirst = upperFirst; - lodash.each = forEach3; - lodash.eachRight = forEachRight; - lodash.first = head; - mixin2(lodash, function() { - var source = {}; - baseForOwn(lodash, function(func, methodName) { - if (!hasOwnProperty3.call(lodash.prototype, methodName)) { - source[methodName] = func; - } - }); - return source; - }(), { "chain": false }); - lodash.VERSION = VERSION; - arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) { - lodash[methodName].placeholder = lodash; - }); - arrayEach(["drop", "take"], function(methodName, index3) { - LazyWrapper.prototype[methodName] = function(n3) { - n3 = n3 === undefined2 ? 1 : nativeMax(toInteger2(n3), 0); - var result2 = this.__filtered__ && !index3 ? new LazyWrapper(this) : this.clone(); - if (result2.__filtered__) { - result2.__takeCount__ = nativeMin(n3, result2.__takeCount__); - } else { - result2.__views__.push({ - "size": nativeMin(n3, MAX_ARRAY_LENGTH), - "type": methodName + (result2.__dir__ < 0 ? "Right" : "") - }); - } - return result2; - }; - LazyWrapper.prototype[methodName + "Right"] = function(n3) { - return this.reverse()[methodName](n3).reverse(); - }; - }); - arrayEach(["filter", "map", "takeWhile"], function(methodName, index3) { - var type = index3 + 1, isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG; - LazyWrapper.prototype[methodName] = function(iteratee2) { - var result2 = this.clone(); - result2.__iteratees__.push({ - "iteratee": getIteratee(iteratee2, 3), - "type": type - }); - result2.__filtered__ = result2.__filtered__ || isFilter; - return result2; - }; - }); - arrayEach(["head", "last"], function(methodName, index3) { - var takeName = "take" + (index3 ? "Right" : ""); - LazyWrapper.prototype[methodName] = function() { - return this[takeName](1).value()[0]; - }; - }); - arrayEach(["initial", "tail"], function(methodName, index3) { - var dropName = "drop" + (index3 ? "" : "Right"); - LazyWrapper.prototype[methodName] = function() { - return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1); - }; - }); - LazyWrapper.prototype.compact = function() { - return this.filter(identity2); - }; - LazyWrapper.prototype.find = function(predicate) { - return this.filter(predicate).head(); - }; - LazyWrapper.prototype.findLast = function(predicate) { - return this.reverse().find(predicate); - }; - LazyWrapper.prototype.invokeMap = baseRest(function(path2, args) { - if (typeof path2 == "function") { - return new LazyWrapper(this); - } - return this.map(function(value) { - return baseInvoke(value, path2, args); - }); - }); - LazyWrapper.prototype.reject = function(predicate) { - return this.filter(negate(getIteratee(predicate))); - }; - LazyWrapper.prototype.slice = function(start, end) { - start = toInteger2(start); - var result2 = this; - if (result2.__filtered__ && (start > 0 || end < 0)) { - return new LazyWrapper(result2); - } - if (start < 0) { - result2 = result2.takeRight(-start); - } else if (start) { - result2 = result2.drop(start); - } - if (end !== undefined2) { - end = toInteger2(end); - result2 = end < 0 ? result2.dropRight(-end) : result2.take(end - start); - } - return result2; - }; - LazyWrapper.prototype.takeRightWhile = function(predicate) { - return this.reverse().takeWhile(predicate).reverse(); - }; - LazyWrapper.prototype.toArray = function() { - return this.take(MAX_ARRAY_LENGTH); - }; - baseForOwn(LazyWrapper.prototype, function(func, methodName) { - var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName), isTaker = /^(?:head|last)$/.test(methodName), lodashFunc = lodash[isTaker ? "take" + (methodName == "last" ? "Right" : "") : methodName], retUnwrapped = isTaker || /^find/.test(methodName); - if (!lodashFunc) { - return; - } - lodash.prototype[methodName] = function() { - var value = this.__wrapped__, args = isTaker ? [1] : arguments, isLazy = value instanceof LazyWrapper, iteratee2 = args[0], useLazy = isLazy || isArray5(value); - var interceptor = function(value2) { - var result3 = lodashFunc.apply(lodash, arrayPush([value2], args)); - return isTaker && chainAll ? result3[0] : result3; - }; - if (useLazy && checkIteratee && typeof iteratee2 == "function" && iteratee2.length != 1) { - isLazy = useLazy = false; - } - var chainAll = this.__chain__, isHybrid = !!this.__actions__.length, isUnwrapped = retUnwrapped && !chainAll, onlyLazy = isLazy && !isHybrid; - if (!retUnwrapped && useLazy) { - value = onlyLazy ? value : new LazyWrapper(this); - var result2 = func.apply(value, args); - result2.__actions__.push({ "func": thru, "args": [interceptor], "thisArg": undefined2 }); - return new LodashWrapper(result2, chainAll); - } - if (isUnwrapped && onlyLazy) { - return func.apply(this, args); - } - result2 = this.thru(interceptor); - return isUnwrapped ? isTaker ? result2.value()[0] : result2.value() : result2; - }; - }); - arrayEach(["pop", "push", "shift", "sort", "splice", "unshift"], function(methodName) { - var func = arrayProto[methodName], chainName = /^(?:push|sort|unshift)$/.test(methodName) ? "tap" : "thru", retUnwrapped = /^(?:pop|shift)$/.test(methodName); - lodash.prototype[methodName] = function() { - var args = arguments; - if (retUnwrapped && !this.__chain__) { - var value = this.value(); - return func.apply(isArray5(value) ? value : [], args); - } - return this[chainName](function(value2) { - return func.apply(isArray5(value2) ? value2 : [], args); - }); - }; - }); - baseForOwn(LazyWrapper.prototype, function(func, methodName) { - var lodashFunc = lodash[methodName]; - if (lodashFunc) { - var key2 = lodashFunc.name + ""; - if (!hasOwnProperty3.call(realNames, key2)) { - realNames[key2] = []; - } - realNames[key2].push({ "name": methodName, "func": lodashFunc }); - } - }); - realNames[createHybrid(undefined2, WRAP_BIND_KEY_FLAG).name] = [{ - "name": "wrapper", - "func": undefined2 - }]; - LazyWrapper.prototype.clone = lazyClone; - LazyWrapper.prototype.reverse = lazyReverse; - LazyWrapper.prototype.value = lazyValue; - lodash.prototype.at = wrapperAt; - lodash.prototype.chain = wrapperChain; - lodash.prototype.commit = wrapperCommit; - lodash.prototype.next = wrapperNext; - lodash.prototype.plant = wrapperPlant; - lodash.prototype.reverse = wrapperReverse; - lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue; - lodash.prototype.first = lodash.prototype.head; - if (symIterator) { - lodash.prototype[symIterator] = wrapperToIterator; - } - return lodash; - }; - var _16 = runInContext(); - if (typeof define == "function" && typeof define.amd == "object" && define.amd) { - root._ = _16; - define(function() { - return _16; - }); - } else if (freeModule) { - (freeModule.exports = _16)._ = _16; - freeExports._ = _16; - } else { - root._ = _16; - } - }).call(exports); - } -}); - -// node_modules/scheduler/cjs/scheduler.production.min.js -var require_scheduler_production_min = __commonJS({ - "node_modules/scheduler/cjs/scheduler.production.min.js"(exports) { - "use strict"; - function f2(a4, b2) { - var c3 = a4.length; - a4.push(b2); - a: - for (; 0 < c3; ) { - var d4 = c3 - 1 >>> 1, e5 = a4[d4]; - if (0 < g(e5, b2)) - a4[d4] = b2, a4[c3] = e5, c3 = d4; - else - break a; - } - } - function h3(a4) { - return 0 === a4.length ? null : a4[0]; - } - function k2(a4) { - if (0 === a4.length) - return null; - var b2 = a4[0], c3 = a4.pop(); - if (c3 !== b2) { - a4[0] = c3; - a: - for (var d4 = 0, e5 = a4.length, w2 = e5 >>> 1; d4 < w2; ) { - var m4 = 2 * (d4 + 1) - 1, C2 = a4[m4], n3 = m4 + 1, x2 = a4[n3]; - if (0 > g(C2, c3)) - n3 < e5 && 0 > g(x2, C2) ? (a4[d4] = x2, a4[n3] = c3, d4 = n3) : (a4[d4] = C2, a4[m4] = c3, d4 = m4); - else if (n3 < e5 && 0 > g(x2, c3)) - a4[d4] = x2, a4[n3] = c3, d4 = n3; - else - break a; - } - } - return b2; - } - function g(a4, b2) { - var c3 = a4.sortIndex - b2.sortIndex; - return 0 !== c3 ? c3 : a4.id - b2.id; - } - if ("object" === typeof performance && "function" === typeof performance.now) { - l2 = performance; - exports.unstable_now = function() { - return l2.now(); - }; - } else { - p = Date, q2 = p.now(); - exports.unstable_now = function() { - return p.now() - q2; - }; - } - var l2; - var p; - var q2; - var r2 = []; - var t7 = []; - var u3 = 1; - var v2 = null; - var y3 = 3; - var z2 = false; - var A = false; - var B2 = false; - var D2 = "function" === typeof setTimeout ? setTimeout : null; - var E2 = "function" === typeof clearTimeout ? clearTimeout : null; - var F = "undefined" !== typeof setImmediate ? setImmediate : null; - "undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling); - function G2(a4) { - for (var b2 = h3(t7); null !== b2; ) { - if (null === b2.callback) - k2(t7); - else if (b2.startTime <= a4) - k2(t7), b2.sortIndex = b2.expirationTime, f2(r2, b2); - else - break; - b2 = h3(t7); - } - } - function H3(a4) { - B2 = false; - G2(a4); - if (!A) - if (null !== h3(r2)) - A = true, I2(J); - else { - var b2 = h3(t7); - null !== b2 && K2(H3, b2.startTime - a4); - } - } - function J(a4, b2) { - A = false; - B2 && (B2 = false, E2(L2), L2 = -1); - z2 = true; - var c3 = y3; - try { - G2(b2); - for (v2 = h3(r2); null !== v2 && (!(v2.expirationTime > b2) || a4 && !M3()); ) { - var d4 = v2.callback; - if ("function" === typeof d4) { - v2.callback = null; - y3 = v2.priorityLevel; - var e5 = d4(v2.expirationTime <= b2); - b2 = exports.unstable_now(); - "function" === typeof e5 ? v2.callback = e5 : v2 === h3(r2) && k2(r2); - G2(b2); - } else - k2(r2); - v2 = h3(r2); - } - if (null !== v2) - var w2 = true; - else { - var m4 = h3(t7); - null !== m4 && K2(H3, m4.startTime - b2); - w2 = false; - } - return w2; - } finally { - v2 = null, y3 = c3, z2 = false; - } - } - var N = false; - var O2 = null; - var L2 = -1; - var P3 = 5; - var Q3 = -1; - function M3() { - return exports.unstable_now() - Q3 < P3 ? false : true; - } - function R2() { - if (null !== O2) { - var a4 = exports.unstable_now(); - Q3 = a4; - var b2 = true; - try { - b2 = O2(true, a4); - } finally { - b2 ? S3() : (N = false, O2 = null); - } - } else - N = false; - } - var S3; - if ("function" === typeof F) - S3 = function() { - F(R2); - }; - else if ("undefined" !== typeof MessageChannel) { - T3 = new MessageChannel(), U = T3.port2; - T3.port1.onmessage = R2; - S3 = function() { - U.postMessage(null); - }; - } else - S3 = function() { - D2(R2, 0); - }; - var T3; - var U; - function I2(a4) { - O2 = a4; - N || (N = true, S3()); - } - function K2(a4, b2) { - L2 = D2(function() { - a4(exports.unstable_now()); - }, b2); - } - exports.unstable_IdlePriority = 5; - exports.unstable_ImmediatePriority = 1; - exports.unstable_LowPriority = 4; - exports.unstable_NormalPriority = 3; - exports.unstable_Profiling = null; - exports.unstable_UserBlockingPriority = 2; - exports.unstable_cancelCallback = function(a4) { - a4.callback = null; - }; - exports.unstable_continueExecution = function() { - A || z2 || (A = true, I2(J)); - }; - exports.unstable_forceFrameRate = function(a4) { - 0 > a4 || 125 < a4 ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : P3 = 0 < a4 ? Math.floor(1e3 / a4) : 5; - }; - exports.unstable_getCurrentPriorityLevel = function() { - return y3; - }; - exports.unstable_getFirstCallbackNode = function() { - return h3(r2); - }; - exports.unstable_next = function(a4) { - switch (y3) { - case 1: - case 2: - case 3: - var b2 = 3; - break; - default: - b2 = y3; - } - var c3 = y3; - y3 = b2; - try { - return a4(); - } finally { - y3 = c3; - } - }; - exports.unstable_pauseExecution = function() { - }; - exports.unstable_requestPaint = function() { - }; - exports.unstable_runWithPriority = function(a4, b2) { - switch (a4) { - case 1: - case 2: - case 3: - case 4: - case 5: - break; - default: - a4 = 3; - } - var c3 = y3; - y3 = a4; - try { - return b2(); - } finally { - y3 = c3; - } - }; - exports.unstable_scheduleCallback = function(a4, b2, c3) { - var d4 = exports.unstable_now(); - "object" === typeof c3 && null !== c3 ? (c3 = c3.delay, c3 = "number" === typeof c3 && 0 < c3 ? d4 + c3 : d4) : c3 = d4; - switch (a4) { - case 1: - var e5 = -1; - break; - case 2: - e5 = 250; - break; - case 5: - e5 = 1073741823; - break; - case 4: - e5 = 1e4; - break; - default: - e5 = 5e3; - } - e5 = c3 + e5; - a4 = { id: u3++, callback: b2, priorityLevel: a4, startTime: c3, expirationTime: e5, sortIndex: -1 }; - c3 > d4 ? (a4.sortIndex = c3, f2(t7, a4), null === h3(r2) && a4 === h3(t7) && (B2 ? (E2(L2), L2 = -1) : B2 = true, K2(H3, c3 - d4))) : (a4.sortIndex = e5, f2(r2, a4), A || z2 || (A = true, I2(J))); - return a4; - }; - exports.unstable_shouldYield = M3; - exports.unstable_wrapCallback = function(a4) { - var b2 = y3; - return function() { - var c3 = y3; - y3 = b2; - try { - return a4.apply(this, arguments); - } finally { - y3 = c3; - } - }; - }; - } -}); - -// node_modules/scheduler/index.js -var require_scheduler = __commonJS({ - "node_modules/scheduler/index.js"(exports, module2) { - "use strict"; - if (true) { - module2.exports = require_scheduler_production_min(); - } else { - module2.exports = null; - } - } -}); - -// node_modules/react-dom/cjs/react-dom.production.min.js -var require_react_dom_production_min = __commonJS({ - "node_modules/react-dom/cjs/react-dom.production.min.js"(exports) { - "use strict"; - var aa = require_react(); - var ca = require_scheduler(); - function p(a4) { - for (var b2 = "https://reactjs.org/docs/error-decoder.html?invariant=" + a4, c3 = 1; c3 < arguments.length; c3++) - b2 += "&args[]=" + encodeURIComponent(arguments[c3]); - return "Minified React error #" + a4 + "; visit " + b2 + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; - } - var da = /* @__PURE__ */ new Set(); - var ea = {}; - function fa(a4, b2) { - ha(a4, b2); - ha(a4 + "Capture", b2); - } - function ha(a4, b2) { - ea[a4] = b2; - for (a4 = 0; a4 < b2.length; a4++) - da.add(b2[a4]); - } - var ia = !("undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement); - var ja = Object.prototype.hasOwnProperty; - var ka = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/; - var la = {}; - var ma = {}; - function oa(a4) { - if (ja.call(ma, a4)) - return true; - if (ja.call(la, a4)) - return false; - if (ka.test(a4)) - return ma[a4] = true; - la[a4] = true; - return false; - } - function pa(a4, b2, c3, d4) { - if (null !== c3 && 0 === c3.type) - return false; - switch (typeof b2) { - case "function": - case "symbol": - return true; - case "boolean": - if (d4) - return false; - if (null !== c3) - return !c3.acceptsBooleans; - a4 = a4.toLowerCase().slice(0, 5); - return "data-" !== a4 && "aria-" !== a4; - default: - return false; - } - } - function qa(a4, b2, c3, d4) { - if (null === b2 || "undefined" === typeof b2 || pa(a4, b2, c3, d4)) - return true; - if (d4) - return false; - if (null !== c3) - switch (c3.type) { - case 3: - return !b2; - case 4: - return false === b2; - case 5: - return isNaN(b2); - case 6: - return isNaN(b2) || 1 > b2; - } - return false; - } - function v2(a4, b2, c3, d4, e5, f2, g) { - this.acceptsBooleans = 2 === b2 || 3 === b2 || 4 === b2; - this.attributeName = d4; - this.attributeNamespace = e5; - this.mustUseProperty = c3; - this.propertyName = a4; - this.type = b2; - this.sanitizeURL = f2; - this.removeEmptyString = g; - } - var z2 = {}; - "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a4) { - z2[a4] = new v2(a4, 0, false, a4, null, false, false); - }); - [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a4) { - var b2 = a4[0]; - z2[b2] = new v2(b2, 1, false, a4[1], null, false, false); - }); - ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a4) { - z2[a4] = new v2(a4, 2, false, a4.toLowerCase(), null, false, false); - }); - ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a4) { - z2[a4] = new v2(a4, 2, false, a4, null, false, false); - }); - "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a4) { - z2[a4] = new v2(a4, 3, false, a4.toLowerCase(), null, false, false); - }); - ["checked", "multiple", "muted", "selected"].forEach(function(a4) { - z2[a4] = new v2(a4, 3, true, a4, null, false, false); - }); - ["capture", "download"].forEach(function(a4) { - z2[a4] = new v2(a4, 4, false, a4, null, false, false); - }); - ["cols", "rows", "size", "span"].forEach(function(a4) { - z2[a4] = new v2(a4, 6, false, a4, null, false, false); - }); - ["rowSpan", "start"].forEach(function(a4) { - z2[a4] = new v2(a4, 5, false, a4.toLowerCase(), null, false, false); - }); - var ra = /[\-:]([a-z])/g; - function sa(a4) { - return a4[1].toUpperCase(); - } - "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a4) { - var b2 = a4.replace( - ra, - sa - ); - z2[b2] = new v2(b2, 1, false, a4, null, false, false); - }); - "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a4) { - var b2 = a4.replace(ra, sa); - z2[b2] = new v2(b2, 1, false, a4, "http://www.w3.org/1999/xlink", false, false); - }); - ["xml:base", "xml:lang", "xml:space"].forEach(function(a4) { - var b2 = a4.replace(ra, sa); - z2[b2] = new v2(b2, 1, false, a4, "http://www.w3.org/XML/1998/namespace", false, false); - }); - ["tabIndex", "crossOrigin"].forEach(function(a4) { - z2[a4] = new v2(a4, 1, false, a4.toLowerCase(), null, false, false); - }); - z2.xlinkHref = new v2("xlinkHref", 1, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false); - ["src", "href", "action", "formAction"].forEach(function(a4) { - z2[a4] = new v2(a4, 1, false, a4.toLowerCase(), null, true, true); - }); - function ta(a4, b2, c3, d4) { - var e5 = z2.hasOwnProperty(b2) ? z2[b2] : null; - if (null !== e5 ? 0 !== e5.type : d4 || !(2 < b2.length) || "o" !== b2[0] && "O" !== b2[0] || "n" !== b2[1] && "N" !== b2[1]) - qa(b2, c3, e5, d4) && (c3 = null), d4 || null === e5 ? oa(b2) && (null === c3 ? a4.removeAttribute(b2) : a4.setAttribute(b2, "" + c3)) : e5.mustUseProperty ? a4[e5.propertyName] = null === c3 ? 3 === e5.type ? false : "" : c3 : (b2 = e5.attributeName, d4 = e5.attributeNamespace, null === c3 ? a4.removeAttribute(b2) : (e5 = e5.type, c3 = 3 === e5 || 4 === e5 && true === c3 ? "" : "" + c3, d4 ? a4.setAttributeNS(d4, b2, c3) : a4.setAttribute(b2, c3))); - } - var ua = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - var va = Symbol.for("react.element"); - var wa = Symbol.for("react.portal"); - var ya = Symbol.for("react.fragment"); - var za = Symbol.for("react.strict_mode"); - var Aa = Symbol.for("react.profiler"); - var Ba = Symbol.for("react.provider"); - var Ca = Symbol.for("react.context"); - var Da = Symbol.for("react.forward_ref"); - var Ea = Symbol.for("react.suspense"); - var Fa = Symbol.for("react.suspense_list"); - var Ga = Symbol.for("react.memo"); - var Ha = Symbol.for("react.lazy"); - Symbol.for("react.scope"); - Symbol.for("react.debug_trace_mode"); - var Ia = Symbol.for("react.offscreen"); - Symbol.for("react.legacy_hidden"); - Symbol.for("react.cache"); - Symbol.for("react.tracing_marker"); - var Ja = Symbol.iterator; - function Ka(a4) { - if (null === a4 || "object" !== typeof a4) - return null; - a4 = Ja && a4[Ja] || a4["@@iterator"]; - return "function" === typeof a4 ? a4 : null; - } - var A = Object.assign; - var La; - function Ma(a4) { - if (void 0 === La) - try { - throw Error(); - } catch (c3) { - var b2 = c3.stack.trim().match(/\n( *(at )?)/); - La = b2 && b2[1] || ""; - } - return "\n" + La + a4; - } - var Na = false; - function Oa(a4, b2) { - if (!a4 || Na) - return ""; - Na = true; - var c3 = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - try { - if (b2) - if (b2 = function() { - throw Error(); - }, Object.defineProperty(b2.prototype, "props", { set: function() { - throw Error(); - } }), "object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(b2, []); - } catch (l2) { - var d4 = l2; - } - Reflect.construct(a4, [], b2); - } else { - try { - b2.call(); - } catch (l2) { - d4 = l2; - } - a4.call(b2.prototype); - } - else { - try { - throw Error(); - } catch (l2) { - d4 = l2; - } - a4(); - } - } catch (l2) { - if (l2 && d4 && "string" === typeof l2.stack) { - for (var e5 = l2.stack.split("\n"), f2 = d4.stack.split("\n"), g = e5.length - 1, h3 = f2.length - 1; 1 <= g && 0 <= h3 && e5[g] !== f2[h3]; ) - h3--; - for (; 1 <= g && 0 <= h3; g--, h3--) - if (e5[g] !== f2[h3]) { - if (1 !== g || 1 !== h3) { - do - if (g--, h3--, 0 > h3 || e5[g] !== f2[h3]) { - var k2 = "\n" + e5[g].replace(" at new ", " at "); - a4.displayName && k2.includes("") && (k2 = k2.replace("", a4.displayName)); - return k2; - } - while (1 <= g && 0 <= h3); - } - break; - } - } - } finally { - Na = false, Error.prepareStackTrace = c3; - } - return (a4 = a4 ? a4.displayName || a4.name : "") ? Ma(a4) : ""; - } - function Pa(a4) { - switch (a4.tag) { - case 5: - return Ma(a4.type); - case 16: - return Ma("Lazy"); - case 13: - return Ma("Suspense"); - case 19: - return Ma("SuspenseList"); - case 0: - case 2: - case 15: - return a4 = Oa(a4.type, false), a4; - case 11: - return a4 = Oa(a4.type.render, false), a4; - case 1: - return a4 = Oa(a4.type, true), a4; - default: - return ""; - } - } - function Qa(a4) { - if (null == a4) - return null; - if ("function" === typeof a4) - return a4.displayName || a4.name || null; - if ("string" === typeof a4) - return a4; - switch (a4) { - case ya: - return "Fragment"; - case wa: - return "Portal"; - case Aa: - return "Profiler"; - case za: - return "StrictMode"; - case Ea: - return "Suspense"; - case Fa: - return "SuspenseList"; - } - if ("object" === typeof a4) - switch (a4.$$typeof) { - case Ca: - return (a4.displayName || "Context") + ".Consumer"; - case Ba: - return (a4._context.displayName || "Context") + ".Provider"; - case Da: - var b2 = a4.render; - a4 = a4.displayName; - a4 || (a4 = b2.displayName || b2.name || "", a4 = "" !== a4 ? "ForwardRef(" + a4 + ")" : "ForwardRef"); - return a4; - case Ga: - return b2 = a4.displayName || null, null !== b2 ? b2 : Qa(a4.type) || "Memo"; - case Ha: - b2 = a4._payload; - a4 = a4._init; - try { - return Qa(a4(b2)); - } catch (c3) { - } - } - return null; - } - function Ra(a4) { - var b2 = a4.type; - switch (a4.tag) { - case 24: - return "Cache"; - case 9: - return (b2.displayName || "Context") + ".Consumer"; - case 10: - return (b2._context.displayName || "Context") + ".Provider"; - case 18: - return "DehydratedFragment"; - case 11: - return a4 = b2.render, a4 = a4.displayName || a4.name || "", b2.displayName || ("" !== a4 ? "ForwardRef(" + a4 + ")" : "ForwardRef"); - case 7: - return "Fragment"; - case 5: - return b2; - case 4: - return "Portal"; - case 3: - return "Root"; - case 6: - return "Text"; - case 16: - return Qa(b2); - case 8: - return b2 === za ? "StrictMode" : "Mode"; - case 22: - return "Offscreen"; - case 12: - return "Profiler"; - case 21: - return "Scope"; - case 13: - return "Suspense"; - case 19: - return "SuspenseList"; - case 25: - return "TracingMarker"; - case 1: - case 0: - case 17: - case 2: - case 14: - case 15: - if ("function" === typeof b2) - return b2.displayName || b2.name || null; - if ("string" === typeof b2) - return b2; - } - return null; - } - function Sa(a4) { - switch (typeof a4) { - case "boolean": - case "number": - case "string": - case "undefined": - return a4; - case "object": - return a4; - default: - return ""; - } - } - function Ta(a4) { - var b2 = a4.type; - return (a4 = a4.nodeName) && "input" === a4.toLowerCase() && ("checkbox" === b2 || "radio" === b2); - } - function Ua(a4) { - var b2 = Ta(a4) ? "checked" : "value", c3 = Object.getOwnPropertyDescriptor(a4.constructor.prototype, b2), d4 = "" + a4[b2]; - if (!a4.hasOwnProperty(b2) && "undefined" !== typeof c3 && "function" === typeof c3.get && "function" === typeof c3.set) { - var e5 = c3.get, f2 = c3.set; - Object.defineProperty(a4, b2, { configurable: true, get: function() { - return e5.call(this); - }, set: function(a5) { - d4 = "" + a5; - f2.call(this, a5); - } }); - Object.defineProperty(a4, b2, { enumerable: c3.enumerable }); - return { getValue: function() { - return d4; - }, setValue: function(a5) { - d4 = "" + a5; - }, stopTracking: function() { - a4._valueTracker = null; - delete a4[b2]; - } }; - } - } - function Va(a4) { - a4._valueTracker || (a4._valueTracker = Ua(a4)); - } - function Wa(a4) { - if (!a4) - return false; - var b2 = a4._valueTracker; - if (!b2) - return true; - var c3 = b2.getValue(); - var d4 = ""; - a4 && (d4 = Ta(a4) ? a4.checked ? "true" : "false" : a4.value); - a4 = d4; - return a4 !== c3 ? (b2.setValue(a4), true) : false; - } - function Xa(a4) { - a4 = a4 || ("undefined" !== typeof document ? document : void 0); - if ("undefined" === typeof a4) - return null; - try { - return a4.activeElement || a4.body; - } catch (b2) { - return a4.body; - } - } - function Ya(a4, b2) { - var c3 = b2.checked; - return A({}, b2, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: null != c3 ? c3 : a4._wrapperState.initialChecked }); - } - function Za(a4, b2) { - var c3 = null == b2.defaultValue ? "" : b2.defaultValue, d4 = null != b2.checked ? b2.checked : b2.defaultChecked; - c3 = Sa(null != b2.value ? b2.value : c3); - a4._wrapperState = { initialChecked: d4, initialValue: c3, controlled: "checkbox" === b2.type || "radio" === b2.type ? null != b2.checked : null != b2.value }; - } - function ab(a4, b2) { - b2 = b2.checked; - null != b2 && ta(a4, "checked", b2, false); - } - function bb(a4, b2) { - ab(a4, b2); - var c3 = Sa(b2.value), d4 = b2.type; - if (null != c3) - if ("number" === d4) { - if (0 === c3 && "" === a4.value || a4.value != c3) - a4.value = "" + c3; - } else - a4.value !== "" + c3 && (a4.value = "" + c3); - else if ("submit" === d4 || "reset" === d4) { - a4.removeAttribute("value"); - return; - } - b2.hasOwnProperty("value") ? cb(a4, b2.type, c3) : b2.hasOwnProperty("defaultValue") && cb(a4, b2.type, Sa(b2.defaultValue)); - null == b2.checked && null != b2.defaultChecked && (a4.defaultChecked = !!b2.defaultChecked); - } - function db(a4, b2, c3) { - if (b2.hasOwnProperty("value") || b2.hasOwnProperty("defaultValue")) { - var d4 = b2.type; - if (!("submit" !== d4 && "reset" !== d4 || void 0 !== b2.value && null !== b2.value)) - return; - b2 = "" + a4._wrapperState.initialValue; - c3 || b2 === a4.value || (a4.value = b2); - a4.defaultValue = b2; - } - c3 = a4.name; - "" !== c3 && (a4.name = ""); - a4.defaultChecked = !!a4._wrapperState.initialChecked; - "" !== c3 && (a4.name = c3); - } - function cb(a4, b2, c3) { - if ("number" !== b2 || Xa(a4.ownerDocument) !== a4) - null == c3 ? a4.defaultValue = "" + a4._wrapperState.initialValue : a4.defaultValue !== "" + c3 && (a4.defaultValue = "" + c3); - } - var eb = Array.isArray; - function fb(a4, b2, c3, d4) { - a4 = a4.options; - if (b2) { - b2 = {}; - for (var e5 = 0; e5 < c3.length; e5++) - b2["$" + c3[e5]] = true; - for (c3 = 0; c3 < a4.length; c3++) - e5 = b2.hasOwnProperty("$" + a4[c3].value), a4[c3].selected !== e5 && (a4[c3].selected = e5), e5 && d4 && (a4[c3].defaultSelected = true); - } else { - c3 = "" + Sa(c3); - b2 = null; - for (e5 = 0; e5 < a4.length; e5++) { - if (a4[e5].value === c3) { - a4[e5].selected = true; - d4 && (a4[e5].defaultSelected = true); - return; - } - null !== b2 || a4[e5].disabled || (b2 = a4[e5]); - } - null !== b2 && (b2.selected = true); - } - } - function gb(a4, b2) { - if (null != b2.dangerouslySetInnerHTML) - throw Error(p(91)); - return A({}, b2, { value: void 0, defaultValue: void 0, children: "" + a4._wrapperState.initialValue }); - } - function hb(a4, b2) { - var c3 = b2.value; - if (null == c3) { - c3 = b2.children; - b2 = b2.defaultValue; - if (null != c3) { - if (null != b2) - throw Error(p(92)); - if (eb(c3)) { - if (1 < c3.length) - throw Error(p(93)); - c3 = c3[0]; - } - b2 = c3; - } - null == b2 && (b2 = ""); - c3 = b2; - } - a4._wrapperState = { initialValue: Sa(c3) }; - } - function ib(a4, b2) { - var c3 = Sa(b2.value), d4 = Sa(b2.defaultValue); - null != c3 && (c3 = "" + c3, c3 !== a4.value && (a4.value = c3), null == b2.defaultValue && a4.defaultValue !== c3 && (a4.defaultValue = c3)); - null != d4 && (a4.defaultValue = "" + d4); - } - function jb(a4) { - var b2 = a4.textContent; - b2 === a4._wrapperState.initialValue && "" !== b2 && null !== b2 && (a4.value = b2); - } - function kb(a4) { - switch (a4) { - case "svg": - return "http://www.w3.org/2000/svg"; - case "math": - return "http://www.w3.org/1998/Math/MathML"; - default: - return "http://www.w3.org/1999/xhtml"; - } - } - function lb(a4, b2) { - return null == a4 || "http://www.w3.org/1999/xhtml" === a4 ? kb(b2) : "http://www.w3.org/2000/svg" === a4 && "foreignObject" === b2 ? "http://www.w3.org/1999/xhtml" : a4; - } - var mb; - var nb = function(a4) { - return "undefined" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function(b2, c3, d4, e5) { - MSApp.execUnsafeLocalFunction(function() { - return a4(b2, c3, d4, e5); - }); - } : a4; - }(function(a4, b2) { - if ("http://www.w3.org/2000/svg" !== a4.namespaceURI || "innerHTML" in a4) - a4.innerHTML = b2; - else { - mb = mb || document.createElement("div"); - mb.innerHTML = "" + b2.valueOf().toString() + ""; - for (b2 = mb.firstChild; a4.firstChild; ) - a4.removeChild(a4.firstChild); - for (; b2.firstChild; ) - a4.appendChild(b2.firstChild); - } - }); - function ob(a4, b2) { - if (b2) { - var c3 = a4.firstChild; - if (c3 && c3 === a4.lastChild && 3 === c3.nodeType) { - c3.nodeValue = b2; - return; - } - } - a4.textContent = b2; - } - var pb = { - animationIterationCount: true, - aspectRatio: true, - borderImageOutset: true, - borderImageSlice: true, - borderImageWidth: true, - boxFlex: true, - boxFlexGroup: true, - boxOrdinalGroup: true, - columnCount: true, - columns: true, - flex: true, - flexGrow: true, - flexPositive: true, - flexShrink: true, - flexNegative: true, - flexOrder: true, - gridArea: true, - gridRow: true, - gridRowEnd: true, - gridRowSpan: true, - gridRowStart: true, - gridColumn: true, - gridColumnEnd: true, - gridColumnSpan: true, - gridColumnStart: true, - fontWeight: true, - lineClamp: true, - lineHeight: true, - opacity: true, - order: true, - orphans: true, - tabSize: true, - widows: true, - zIndex: true, - zoom: true, - fillOpacity: true, - floodOpacity: true, - stopOpacity: true, - strokeDasharray: true, - strokeDashoffset: true, - strokeMiterlimit: true, - strokeOpacity: true, - strokeWidth: true - }; - var qb = ["Webkit", "ms", "Moz", "O"]; - Object.keys(pb).forEach(function(a4) { - qb.forEach(function(b2) { - b2 = b2 + a4.charAt(0).toUpperCase() + a4.substring(1); - pb[b2] = pb[a4]; - }); - }); - function rb(a4, b2, c3) { - return null == b2 || "boolean" === typeof b2 || "" === b2 ? "" : c3 || "number" !== typeof b2 || 0 === b2 || pb.hasOwnProperty(a4) && pb[a4] ? ("" + b2).trim() : b2 + "px"; - } - function sb(a4, b2) { - a4 = a4.style; - for (var c3 in b2) - if (b2.hasOwnProperty(c3)) { - var d4 = 0 === c3.indexOf("--"), e5 = rb(c3, b2[c3], d4); - "float" === c3 && (c3 = "cssFloat"); - d4 ? a4.setProperty(c3, e5) : a4[c3] = e5; - } - } - var tb = A({ menuitem: true }, { area: true, base: true, br: true, col: true, embed: true, hr: true, img: true, input: true, keygen: true, link: true, meta: true, param: true, source: true, track: true, wbr: true }); - function ub(a4, b2) { - if (b2) { - if (tb[a4] && (null != b2.children || null != b2.dangerouslySetInnerHTML)) - throw Error(p(137, a4)); - if (null != b2.dangerouslySetInnerHTML) { - if (null != b2.children) - throw Error(p(60)); - if ("object" !== typeof b2.dangerouslySetInnerHTML || !("__html" in b2.dangerouslySetInnerHTML)) - throw Error(p(61)); - } - if (null != b2.style && "object" !== typeof b2.style) - throw Error(p(62)); - } - } - function vb(a4, b2) { - if (-1 === a4.indexOf("-")) - return "string" === typeof b2.is; - switch (a4) { - case "annotation-xml": - case "color-profile": - case "font-face": - case "font-face-src": - case "font-face-uri": - case "font-face-format": - case "font-face-name": - case "missing-glyph": - return false; - default: - return true; - } - } - var wb = null; - function xb(a4) { - a4 = a4.target || a4.srcElement || window; - a4.correspondingUseElement && (a4 = a4.correspondingUseElement); - return 3 === a4.nodeType ? a4.parentNode : a4; - } - var yb = null; - var zb = null; - var Ab = null; - function Bb(a4) { - if (a4 = Cb(a4)) { - if ("function" !== typeof yb) - throw Error(p(280)); - var b2 = a4.stateNode; - b2 && (b2 = Db(b2), yb(a4.stateNode, a4.type, b2)); - } - } - function Eb(a4) { - zb ? Ab ? Ab.push(a4) : Ab = [a4] : zb = a4; - } - function Fb() { - if (zb) { - var a4 = zb, b2 = Ab; - Ab = zb = null; - Bb(a4); - if (b2) - for (a4 = 0; a4 < b2.length; a4++) - Bb(b2[a4]); - } - } - function Gb(a4, b2) { - return a4(b2); - } - function Hb() { - } - var Ib = false; - function Jb(a4, b2, c3) { - if (Ib) - return a4(b2, c3); - Ib = true; - try { - return Gb(a4, b2, c3); - } finally { - if (Ib = false, null !== zb || null !== Ab) - Hb(), Fb(); - } - } - function Kb(a4, b2) { - var c3 = a4.stateNode; - if (null === c3) - return null; - var d4 = Db(c3); - if (null === d4) - return null; - c3 = d4[b2]; - a: - switch (b2) { - case "onClick": - case "onClickCapture": - case "onDoubleClick": - case "onDoubleClickCapture": - case "onMouseDown": - case "onMouseDownCapture": - case "onMouseMove": - case "onMouseMoveCapture": - case "onMouseUp": - case "onMouseUpCapture": - case "onMouseEnter": - (d4 = !d4.disabled) || (a4 = a4.type, d4 = !("button" === a4 || "input" === a4 || "select" === a4 || "textarea" === a4)); - a4 = !d4; - break a; - default: - a4 = false; - } - if (a4) - return null; - if (c3 && "function" !== typeof c3) - throw Error(p(231, b2, typeof c3)); - return c3; - } - var Lb = false; - if (ia) - try { - Mb = {}; - Object.defineProperty(Mb, "passive", { get: function() { - Lb = true; - } }); - window.addEventListener("test", Mb, Mb); - window.removeEventListener("test", Mb, Mb); - } catch (a4) { - Lb = false; - } - var Mb; - function Nb(a4, b2, c3, d4, e5, f2, g, h3, k2) { - var l2 = Array.prototype.slice.call(arguments, 3); - try { - b2.apply(c3, l2); - } catch (m4) { - this.onError(m4); - } - } - var Ob = false; - var Pb = null; - var Qb = false; - var Rb = null; - var Sb = { onError: function(a4) { - Ob = true; - Pb = a4; - } }; - function Tb(a4, b2, c3, d4, e5, f2, g, h3, k2) { - Ob = false; - Pb = null; - Nb.apply(Sb, arguments); - } - function Ub(a4, b2, c3, d4, e5, f2, g, h3, k2) { - Tb.apply(this, arguments); - if (Ob) { - if (Ob) { - var l2 = Pb; - Ob = false; - Pb = null; - } else - throw Error(p(198)); - Qb || (Qb = true, Rb = l2); - } - } - function Vb(a4) { - var b2 = a4, c3 = a4; - if (a4.alternate) - for (; b2.return; ) - b2 = b2.return; - else { - a4 = b2; - do - b2 = a4, 0 !== (b2.flags & 4098) && (c3 = b2.return), a4 = b2.return; - while (a4); - } - return 3 === b2.tag ? c3 : null; - } - function Wb(a4) { - if (13 === a4.tag) { - var b2 = a4.memoizedState; - null === b2 && (a4 = a4.alternate, null !== a4 && (b2 = a4.memoizedState)); - if (null !== b2) - return b2.dehydrated; - } - return null; - } - function Xb(a4) { - if (Vb(a4) !== a4) - throw Error(p(188)); - } - function Yb(a4) { - var b2 = a4.alternate; - if (!b2) { - b2 = Vb(a4); - if (null === b2) - throw Error(p(188)); - return b2 !== a4 ? null : a4; - } - for (var c3 = a4, d4 = b2; ; ) { - var e5 = c3.return; - if (null === e5) - break; - var f2 = e5.alternate; - if (null === f2) { - d4 = e5.return; - if (null !== d4) { - c3 = d4; - continue; - } - break; - } - if (e5.child === f2.child) { - for (f2 = e5.child; f2; ) { - if (f2 === c3) - return Xb(e5), a4; - if (f2 === d4) - return Xb(e5), b2; - f2 = f2.sibling; - } - throw Error(p(188)); - } - if (c3.return !== d4.return) - c3 = e5, d4 = f2; - else { - for (var g = false, h3 = e5.child; h3; ) { - if (h3 === c3) { - g = true; - c3 = e5; - d4 = f2; - break; - } - if (h3 === d4) { - g = true; - d4 = e5; - c3 = f2; - break; - } - h3 = h3.sibling; - } - if (!g) { - for (h3 = f2.child; h3; ) { - if (h3 === c3) { - g = true; - c3 = f2; - d4 = e5; - break; - } - if (h3 === d4) { - g = true; - d4 = f2; - c3 = e5; - break; - } - h3 = h3.sibling; - } - if (!g) - throw Error(p(189)); - } - } - if (c3.alternate !== d4) - throw Error(p(190)); - } - if (3 !== c3.tag) - throw Error(p(188)); - return c3.stateNode.current === c3 ? a4 : b2; - } - function Zb(a4) { - a4 = Yb(a4); - return null !== a4 ? $b(a4) : null; - } - function $b(a4) { - if (5 === a4.tag || 6 === a4.tag) - return a4; - for (a4 = a4.child; null !== a4; ) { - var b2 = $b(a4); - if (null !== b2) - return b2; - a4 = a4.sibling; - } - return null; - } - var ac = ca.unstable_scheduleCallback; - var bc = ca.unstable_cancelCallback; - var cc = ca.unstable_shouldYield; - var dc = ca.unstable_requestPaint; - var B2 = ca.unstable_now; - var ec = ca.unstable_getCurrentPriorityLevel; - var fc = ca.unstable_ImmediatePriority; - var gc = ca.unstable_UserBlockingPriority; - var hc = ca.unstable_NormalPriority; - var ic = ca.unstable_LowPriority; - var jc = ca.unstable_IdlePriority; - var kc = null; - var lc = null; - function mc(a4) { - if (lc && "function" === typeof lc.onCommitFiberRoot) - try { - lc.onCommitFiberRoot(kc, a4, void 0, 128 === (a4.current.flags & 128)); - } catch (b2) { - } - } - var oc = Math.clz32 ? Math.clz32 : nc; - var pc = Math.log; - var qc = Math.LN2; - function nc(a4) { - a4 >>>= 0; - return 0 === a4 ? 32 : 31 - (pc(a4) / qc | 0) | 0; - } - var rc = 64; - var sc = 4194304; - function tc(a4) { - switch (a4 & -a4) { - case 1: - return 1; - case 2: - return 2; - case 4: - return 4; - case 8: - return 8; - case 16: - return 16; - case 32: - return 32; - case 64: - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - return a4 & 4194240; - case 4194304: - case 8388608: - case 16777216: - case 33554432: - case 67108864: - return a4 & 130023424; - case 134217728: - return 134217728; - case 268435456: - return 268435456; - case 536870912: - return 536870912; - case 1073741824: - return 1073741824; - default: - return a4; - } - } - function uc(a4, b2) { - var c3 = a4.pendingLanes; - if (0 === c3) - return 0; - var d4 = 0, e5 = a4.suspendedLanes, f2 = a4.pingedLanes, g = c3 & 268435455; - if (0 !== g) { - var h3 = g & ~e5; - 0 !== h3 ? d4 = tc(h3) : (f2 &= g, 0 !== f2 && (d4 = tc(f2))); - } else - g = c3 & ~e5, 0 !== g ? d4 = tc(g) : 0 !== f2 && (d4 = tc(f2)); - if (0 === d4) - return 0; - if (0 !== b2 && b2 !== d4 && 0 === (b2 & e5) && (e5 = d4 & -d4, f2 = b2 & -b2, e5 >= f2 || 16 === e5 && 0 !== (f2 & 4194240))) - return b2; - 0 !== (d4 & 4) && (d4 |= c3 & 16); - b2 = a4.entangledLanes; - if (0 !== b2) - for (a4 = a4.entanglements, b2 &= d4; 0 < b2; ) - c3 = 31 - oc(b2), e5 = 1 << c3, d4 |= a4[c3], b2 &= ~e5; - return d4; - } - function vc(a4, b2) { - switch (a4) { - case 1: - case 2: - case 4: - return b2 + 250; - case 8: - case 16: - case 32: - case 64: - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - return b2 + 5e3; - case 4194304: - case 8388608: - case 16777216: - case 33554432: - case 67108864: - return -1; - case 134217728: - case 268435456: - case 536870912: - case 1073741824: - return -1; - default: - return -1; - } - } - function wc(a4, b2) { - for (var c3 = a4.suspendedLanes, d4 = a4.pingedLanes, e5 = a4.expirationTimes, f2 = a4.pendingLanes; 0 < f2; ) { - var g = 31 - oc(f2), h3 = 1 << g, k2 = e5[g]; - if (-1 === k2) { - if (0 === (h3 & c3) || 0 !== (h3 & d4)) - e5[g] = vc(h3, b2); - } else - k2 <= b2 && (a4.expiredLanes |= h3); - f2 &= ~h3; - } - } - function xc(a4) { - a4 = a4.pendingLanes & -1073741825; - return 0 !== a4 ? a4 : a4 & 1073741824 ? 1073741824 : 0; - } - function yc() { - var a4 = rc; - rc <<= 1; - 0 === (rc & 4194240) && (rc = 64); - return a4; - } - function zc(a4) { - for (var b2 = [], c3 = 0; 31 > c3; c3++) - b2.push(a4); - return b2; - } - function Ac(a4, b2, c3) { - a4.pendingLanes |= b2; - 536870912 !== b2 && (a4.suspendedLanes = 0, a4.pingedLanes = 0); - a4 = a4.eventTimes; - b2 = 31 - oc(b2); - a4[b2] = c3; - } - function Bc(a4, b2) { - var c3 = a4.pendingLanes & ~b2; - a4.pendingLanes = b2; - a4.suspendedLanes = 0; - a4.pingedLanes = 0; - a4.expiredLanes &= b2; - a4.mutableReadLanes &= b2; - a4.entangledLanes &= b2; - b2 = a4.entanglements; - var d4 = a4.eventTimes; - for (a4 = a4.expirationTimes; 0 < c3; ) { - var e5 = 31 - oc(c3), f2 = 1 << e5; - b2[e5] = 0; - d4[e5] = -1; - a4[e5] = -1; - c3 &= ~f2; - } - } - function Cc(a4, b2) { - var c3 = a4.entangledLanes |= b2; - for (a4 = a4.entanglements; c3; ) { - var d4 = 31 - oc(c3), e5 = 1 << d4; - e5 & b2 | a4[d4] & b2 && (a4[d4] |= b2); - c3 &= ~e5; - } - } - var C2 = 0; - function Dc(a4) { - a4 &= -a4; - return 1 < a4 ? 4 < a4 ? 0 !== (a4 & 268435455) ? 16 : 536870912 : 4 : 1; - } - var Ec; - var Fc; - var Gc; - var Hc; - var Ic; - var Jc = false; - var Kc = []; - var Lc = null; - var Mc = null; - var Nc = null; - var Oc = /* @__PURE__ */ new Map(); - var Pc = /* @__PURE__ */ new Map(); - var Qc = []; - var Rc = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "); - function Sc(a4, b2) { - switch (a4) { - case "focusin": - case "focusout": - Lc = null; - break; - case "dragenter": - case "dragleave": - Mc = null; - break; - case "mouseover": - case "mouseout": - Nc = null; - break; - case "pointerover": - case "pointerout": - Oc.delete(b2.pointerId); - break; - case "gotpointercapture": - case "lostpointercapture": - Pc.delete(b2.pointerId); - } - } - function Tc(a4, b2, c3, d4, e5, f2) { - if (null === a4 || a4.nativeEvent !== f2) - return a4 = { blockedOn: b2, domEventName: c3, eventSystemFlags: d4, nativeEvent: f2, targetContainers: [e5] }, null !== b2 && (b2 = Cb(b2), null !== b2 && Fc(b2)), a4; - a4.eventSystemFlags |= d4; - b2 = a4.targetContainers; - null !== e5 && -1 === b2.indexOf(e5) && b2.push(e5); - return a4; - } - function Uc(a4, b2, c3, d4, e5) { - switch (b2) { - case "focusin": - return Lc = Tc(Lc, a4, b2, c3, d4, e5), true; - case "dragenter": - return Mc = Tc(Mc, a4, b2, c3, d4, e5), true; - case "mouseover": - return Nc = Tc(Nc, a4, b2, c3, d4, e5), true; - case "pointerover": - var f2 = e5.pointerId; - Oc.set(f2, Tc(Oc.get(f2) || null, a4, b2, c3, d4, e5)); - return true; - case "gotpointercapture": - return f2 = e5.pointerId, Pc.set(f2, Tc(Pc.get(f2) || null, a4, b2, c3, d4, e5)), true; - } - return false; - } - function Vc(a4) { - var b2 = Wc(a4.target); - if (null !== b2) { - var c3 = Vb(b2); - if (null !== c3) { - if (b2 = c3.tag, 13 === b2) { - if (b2 = Wb(c3), null !== b2) { - a4.blockedOn = b2; - Ic(a4.priority, function() { - Gc(c3); - }); - return; - } - } else if (3 === b2 && c3.stateNode.current.memoizedState.isDehydrated) { - a4.blockedOn = 3 === c3.tag ? c3.stateNode.containerInfo : null; - return; - } - } - } - a4.blockedOn = null; - } - function Xc(a4) { - if (null !== a4.blockedOn) - return false; - for (var b2 = a4.targetContainers; 0 < b2.length; ) { - var c3 = Yc(a4.domEventName, a4.eventSystemFlags, b2[0], a4.nativeEvent); - if (null === c3) { - c3 = a4.nativeEvent; - var d4 = new c3.constructor(c3.type, c3); - wb = d4; - c3.target.dispatchEvent(d4); - wb = null; - } else - return b2 = Cb(c3), null !== b2 && Fc(b2), a4.blockedOn = c3, false; - b2.shift(); - } - return true; - } - function Zc(a4, b2, c3) { - Xc(a4) && c3.delete(b2); - } - function $c() { - Jc = false; - null !== Lc && Xc(Lc) && (Lc = null); - null !== Mc && Xc(Mc) && (Mc = null); - null !== Nc && Xc(Nc) && (Nc = null); - Oc.forEach(Zc); - Pc.forEach(Zc); - } - function ad(a4, b2) { - a4.blockedOn === b2 && (a4.blockedOn = null, Jc || (Jc = true, ca.unstable_scheduleCallback(ca.unstable_NormalPriority, $c))); - } - function bd(a4) { - function b2(b3) { - return ad(b3, a4); - } - if (0 < Kc.length) { - ad(Kc[0], a4); - for (var c3 = 1; c3 < Kc.length; c3++) { - var d4 = Kc[c3]; - d4.blockedOn === a4 && (d4.blockedOn = null); - } - } - null !== Lc && ad(Lc, a4); - null !== Mc && ad(Mc, a4); - null !== Nc && ad(Nc, a4); - Oc.forEach(b2); - Pc.forEach(b2); - for (c3 = 0; c3 < Qc.length; c3++) - d4 = Qc[c3], d4.blockedOn === a4 && (d4.blockedOn = null); - for (; 0 < Qc.length && (c3 = Qc[0], null === c3.blockedOn); ) - Vc(c3), null === c3.blockedOn && Qc.shift(); - } - var cd = ua.ReactCurrentBatchConfig; - var dd = true; - function ed(a4, b2, c3, d4) { - var e5 = C2, f2 = cd.transition; - cd.transition = null; - try { - C2 = 1, fd(a4, b2, c3, d4); - } finally { - C2 = e5, cd.transition = f2; - } - } - function gd(a4, b2, c3, d4) { - var e5 = C2, f2 = cd.transition; - cd.transition = null; - try { - C2 = 4, fd(a4, b2, c3, d4); - } finally { - C2 = e5, cd.transition = f2; - } - } - function fd(a4, b2, c3, d4) { - if (dd) { - var e5 = Yc(a4, b2, c3, d4); - if (null === e5) - hd(a4, b2, d4, id3, c3), Sc(a4, d4); - else if (Uc(e5, a4, b2, c3, d4)) - d4.stopPropagation(); - else if (Sc(a4, d4), b2 & 4 && -1 < Rc.indexOf(a4)) { - for (; null !== e5; ) { - var f2 = Cb(e5); - null !== f2 && Ec(f2); - f2 = Yc(a4, b2, c3, d4); - null === f2 && hd(a4, b2, d4, id3, c3); - if (f2 === e5) - break; - e5 = f2; - } - null !== e5 && d4.stopPropagation(); - } else - hd(a4, b2, d4, null, c3); - } - } - var id3 = null; - function Yc(a4, b2, c3, d4) { - id3 = null; - a4 = xb(d4); - a4 = Wc(a4); - if (null !== a4) - if (b2 = Vb(a4), null === b2) - a4 = null; - else if (c3 = b2.tag, 13 === c3) { - a4 = Wb(b2); - if (null !== a4) - return a4; - a4 = null; - } else if (3 === c3) { - if (b2.stateNode.current.memoizedState.isDehydrated) - return 3 === b2.tag ? b2.stateNode.containerInfo : null; - a4 = null; - } else - b2 !== a4 && (a4 = null); - id3 = a4; - return null; - } - function jd(a4) { - switch (a4) { - case "cancel": - case "click": - case "close": - case "contextmenu": - case "copy": - case "cut": - case "auxclick": - case "dblclick": - case "dragend": - case "dragstart": - case "drop": - case "focusin": - case "focusout": - case "input": - case "invalid": - case "keydown": - case "keypress": - case "keyup": - case "mousedown": - case "mouseup": - case "paste": - case "pause": - case "play": - case "pointercancel": - case "pointerdown": - case "pointerup": - case "ratechange": - case "reset": - case "resize": - case "seeked": - case "submit": - case "touchcancel": - case "touchend": - case "touchstart": - case "volumechange": - case "change": - case "selectionchange": - case "textInput": - case "compositionstart": - case "compositionend": - case "compositionupdate": - case "beforeblur": - case "afterblur": - case "beforeinput": - case "blur": - case "fullscreenchange": - case "focus": - case "hashchange": - case "popstate": - case "select": - case "selectstart": - return 1; - case "drag": - case "dragenter": - case "dragexit": - case "dragleave": - case "dragover": - case "mousemove": - case "mouseout": - case "mouseover": - case "pointermove": - case "pointerout": - case "pointerover": - case "scroll": - case "toggle": - case "touchmove": - case "wheel": - case "mouseenter": - case "mouseleave": - case "pointerenter": - case "pointerleave": - return 4; - case "message": - switch (ec()) { - case fc: - return 1; - case gc: - return 4; - case hc: - case ic: - return 16; - case jc: - return 536870912; - default: - return 16; - } - default: - return 16; - } - } - var kd = null; - var ld = null; - var md = null; - function nd() { - if (md) - return md; - var a4, b2 = ld, c3 = b2.length, d4, e5 = "value" in kd ? kd.value : kd.textContent, f2 = e5.length; - for (a4 = 0; a4 < c3 && b2[a4] === e5[a4]; a4++) - ; - var g = c3 - a4; - for (d4 = 1; d4 <= g && b2[c3 - d4] === e5[f2 - d4]; d4++) - ; - return md = e5.slice(a4, 1 < d4 ? 1 - d4 : void 0); - } - function od(a4) { - var b2 = a4.keyCode; - "charCode" in a4 ? (a4 = a4.charCode, 0 === a4 && 13 === b2 && (a4 = 13)) : a4 = b2; - 10 === a4 && (a4 = 13); - return 32 <= a4 || 13 === a4 ? a4 : 0; - } - function pd() { - return true; - } - function qd() { - return false; - } - function rd(a4) { - function b2(b3, d4, e5, f2, g) { - this._reactName = b3; - this._targetInst = e5; - this.type = d4; - this.nativeEvent = f2; - this.target = g; - this.currentTarget = null; - for (var c3 in a4) - a4.hasOwnProperty(c3) && (b3 = a4[c3], this[c3] = b3 ? b3(f2) : f2[c3]); - this.isDefaultPrevented = (null != f2.defaultPrevented ? f2.defaultPrevented : false === f2.returnValue) ? pd : qd; - this.isPropagationStopped = qd; - return this; - } - A(b2.prototype, { preventDefault: function() { - this.defaultPrevented = true; - var a5 = this.nativeEvent; - a5 && (a5.preventDefault ? a5.preventDefault() : "unknown" !== typeof a5.returnValue && (a5.returnValue = false), this.isDefaultPrevented = pd); - }, stopPropagation: function() { - var a5 = this.nativeEvent; - a5 && (a5.stopPropagation ? a5.stopPropagation() : "unknown" !== typeof a5.cancelBubble && (a5.cancelBubble = true), this.isPropagationStopped = pd); - }, persist: function() { - }, isPersistent: pd }); - return b2; - } - var sd = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(a4) { - return a4.timeStamp || Date.now(); - }, defaultPrevented: 0, isTrusted: 0 }; - var td = rd(sd); - var ud = A({}, sd, { view: 0, detail: 0 }); - var vd = rd(ud); - var wd; - var xd; - var yd; - var Ad = A({}, ud, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: zd, button: 0, buttons: 0, relatedTarget: function(a4) { - return void 0 === a4.relatedTarget ? a4.fromElement === a4.srcElement ? a4.toElement : a4.fromElement : a4.relatedTarget; - }, movementX: function(a4) { - if ("movementX" in a4) - return a4.movementX; - a4 !== yd && (yd && "mousemove" === a4.type ? (wd = a4.screenX - yd.screenX, xd = a4.screenY - yd.screenY) : xd = wd = 0, yd = a4); - return wd; - }, movementY: function(a4) { - return "movementY" in a4 ? a4.movementY : xd; - } }); - var Bd = rd(Ad); - var Cd = A({}, Ad, { dataTransfer: 0 }); - var Dd = rd(Cd); - var Ed = A({}, ud, { relatedTarget: 0 }); - var Fd = rd(Ed); - var Gd = A({}, sd, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }); - var Hd = rd(Gd); - var Id = A({}, sd, { clipboardData: function(a4) { - return "clipboardData" in a4 ? a4.clipboardData : window.clipboardData; - } }); - var Jd = rd(Id); - var Kd = A({}, sd, { data: 0 }); - var Ld = rd(Kd); - var Md = { - Esc: "Escape", - Spacebar: " ", - Left: "ArrowLeft", - Up: "ArrowUp", - Right: "ArrowRight", - Down: "ArrowDown", - Del: "Delete", - Win: "OS", - Menu: "ContextMenu", - Apps: "ContextMenu", - Scroll: "ScrollLock", - MozPrintableKey: "Unidentified" - }; - var Nd = { - 8: "Backspace", - 9: "Tab", - 12: "Clear", - 13: "Enter", - 16: "Shift", - 17: "Control", - 18: "Alt", - 19: "Pause", - 20: "CapsLock", - 27: "Escape", - 32: " ", - 33: "PageUp", - 34: "PageDown", - 35: "End", - 36: "Home", - 37: "ArrowLeft", - 38: "ArrowUp", - 39: "ArrowRight", - 40: "ArrowDown", - 45: "Insert", - 46: "Delete", - 112: "F1", - 113: "F2", - 114: "F3", - 115: "F4", - 116: "F5", - 117: "F6", - 118: "F7", - 119: "F8", - 120: "F9", - 121: "F10", - 122: "F11", - 123: "F12", - 144: "NumLock", - 145: "ScrollLock", - 224: "Meta" - }; - var Od = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; - function Pd(a4) { - var b2 = this.nativeEvent; - return b2.getModifierState ? b2.getModifierState(a4) : (a4 = Od[a4]) ? !!b2[a4] : false; - } - function zd() { - return Pd; - } - var Qd = A({}, ud, { key: function(a4) { - if (a4.key) { - var b2 = Md[a4.key] || a4.key; - if ("Unidentified" !== b2) - return b2; - } - return "keypress" === a4.type ? (a4 = od(a4), 13 === a4 ? "Enter" : String.fromCharCode(a4)) : "keydown" === a4.type || "keyup" === a4.type ? Nd[a4.keyCode] || "Unidentified" : ""; - }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: zd, charCode: function(a4) { - return "keypress" === a4.type ? od(a4) : 0; - }, keyCode: function(a4) { - return "keydown" === a4.type || "keyup" === a4.type ? a4.keyCode : 0; - }, which: function(a4) { - return "keypress" === a4.type ? od(a4) : "keydown" === a4.type || "keyup" === a4.type ? a4.keyCode : 0; - } }); - var Rd = rd(Qd); - var Sd = A({}, Ad, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }); - var Td = rd(Sd); - var Ud = A({}, ud, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: zd }); - var Vd = rd(Ud); - var Wd = A({}, sd, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }); - var Xd = rd(Wd); - var Yd = A({}, Ad, { - deltaX: function(a4) { - return "deltaX" in a4 ? a4.deltaX : "wheelDeltaX" in a4 ? -a4.wheelDeltaX : 0; - }, - deltaY: function(a4) { - return "deltaY" in a4 ? a4.deltaY : "wheelDeltaY" in a4 ? -a4.wheelDeltaY : "wheelDelta" in a4 ? -a4.wheelDelta : 0; - }, - deltaZ: 0, - deltaMode: 0 - }); - var Zd = rd(Yd); - var $d = [9, 13, 27, 32]; - var ae = ia && "CompositionEvent" in window; - var be = null; - ia && "documentMode" in document && (be = document.documentMode); - var ce = ia && "TextEvent" in window && !be; - var de = ia && (!ae || be && 8 < be && 11 >= be); - var ee = String.fromCharCode(32); - var fe = false; - function ge(a4, b2) { - switch (a4) { - case "keyup": - return -1 !== $d.indexOf(b2.keyCode); - case "keydown": - return 229 !== b2.keyCode; - case "keypress": - case "mousedown": - case "focusout": - return true; - default: - return false; - } - } - function he(a4) { - a4 = a4.detail; - return "object" === typeof a4 && "data" in a4 ? a4.data : null; - } - var ie = false; - function je(a4, b2) { - switch (a4) { - case "compositionend": - return he(b2); - case "keypress": - if (32 !== b2.which) - return null; - fe = true; - return ee; - case "textInput": - return a4 = b2.data, a4 === ee && fe ? null : a4; - default: - return null; - } - } - function ke(a4, b2) { - if (ie) - return "compositionend" === a4 || !ae && ge(a4, b2) ? (a4 = nd(), md = ld = kd = null, ie = false, a4) : null; - switch (a4) { - case "paste": - return null; - case "keypress": - if (!(b2.ctrlKey || b2.altKey || b2.metaKey) || b2.ctrlKey && b2.altKey) { - if (b2.char && 1 < b2.char.length) - return b2.char; - if (b2.which) - return String.fromCharCode(b2.which); - } - return null; - case "compositionend": - return de && "ko" !== b2.locale ? null : b2.data; - default: - return null; - } - } - var le = { color: true, date: true, datetime: true, "datetime-local": true, email: true, month: true, number: true, password: true, range: true, search: true, tel: true, text: true, time: true, url: true, week: true }; - function me(a4) { - var b2 = a4 && a4.nodeName && a4.nodeName.toLowerCase(); - return "input" === b2 ? !!le[a4.type] : "textarea" === b2 ? true : false; - } - function ne(a4, b2, c3, d4) { - Eb(d4); - b2 = oe(b2, "onChange"); - 0 < b2.length && (c3 = new td("onChange", "change", null, c3, d4), a4.push({ event: c3, listeners: b2 })); - } - var pe = null; - var qe = null; - function re2(a4) { - se(a4, 0); - } - function te(a4) { - var b2 = ue(a4); - if (Wa(b2)) - return a4; - } - function ve(a4, b2) { - if ("change" === a4) - return b2; - } - var we = false; - if (ia) { - if (ia) { - ye = "oninput" in document; - if (!ye) { - ze = document.createElement("div"); - ze.setAttribute("oninput", "return;"); - ye = "function" === typeof ze.oninput; - } - xe = ye; - } else - xe = false; - we = xe && (!document.documentMode || 9 < document.documentMode); - } - var xe; - var ye; - var ze; - function Ae() { - pe && (pe.detachEvent("onpropertychange", Be), qe = pe = null); - } - function Be(a4) { - if ("value" === a4.propertyName && te(qe)) { - var b2 = []; - ne(b2, qe, a4, xb(a4)); - Jb(re2, b2); - } - } - function Ce(a4, b2, c3) { - "focusin" === a4 ? (Ae(), pe = b2, qe = c3, pe.attachEvent("onpropertychange", Be)) : "focusout" === a4 && Ae(); - } - function De(a4) { - if ("selectionchange" === a4 || "keyup" === a4 || "keydown" === a4) - return te(qe); - } - function Ee(a4, b2) { - if ("click" === a4) - return te(b2); - } - function Fe(a4, b2) { - if ("input" === a4 || "change" === a4) - return te(b2); - } - function Ge(a4, b2) { - return a4 === b2 && (0 !== a4 || 1 / a4 === 1 / b2) || a4 !== a4 && b2 !== b2; - } - var He = "function" === typeof Object.is ? Object.is : Ge; - function Ie(a4, b2) { - if (He(a4, b2)) - return true; - if ("object" !== typeof a4 || null === a4 || "object" !== typeof b2 || null === b2) - return false; - var c3 = Object.keys(a4), d4 = Object.keys(b2); - if (c3.length !== d4.length) - return false; - for (d4 = 0; d4 < c3.length; d4++) { - var e5 = c3[d4]; - if (!ja.call(b2, e5) || !He(a4[e5], b2[e5])) - return false; - } - return true; - } - function Je(a4) { - for (; a4 && a4.firstChild; ) - a4 = a4.firstChild; - return a4; - } - function Ke(a4, b2) { - var c3 = Je(a4); - a4 = 0; - for (var d4; c3; ) { - if (3 === c3.nodeType) { - d4 = a4 + c3.textContent.length; - if (a4 <= b2 && d4 >= b2) - return { node: c3, offset: b2 - a4 }; - a4 = d4; - } - a: { - for (; c3; ) { - if (c3.nextSibling) { - c3 = c3.nextSibling; - break a; - } - c3 = c3.parentNode; - } - c3 = void 0; - } - c3 = Je(c3); - } - } - function Le(a4, b2) { - return a4 && b2 ? a4 === b2 ? true : a4 && 3 === a4.nodeType ? false : b2 && 3 === b2.nodeType ? Le(a4, b2.parentNode) : "contains" in a4 ? a4.contains(b2) : a4.compareDocumentPosition ? !!(a4.compareDocumentPosition(b2) & 16) : false : false; - } - function Me() { - for (var a4 = window, b2 = Xa(); b2 instanceof a4.HTMLIFrameElement; ) { - try { - var c3 = "string" === typeof b2.contentWindow.location.href; - } catch (d4) { - c3 = false; - } - if (c3) - a4 = b2.contentWindow; - else - break; - b2 = Xa(a4.document); - } - return b2; - } - function Ne(a4) { - var b2 = a4 && a4.nodeName && a4.nodeName.toLowerCase(); - return b2 && ("input" === b2 && ("text" === a4.type || "search" === a4.type || "tel" === a4.type || "url" === a4.type || "password" === a4.type) || "textarea" === b2 || "true" === a4.contentEditable); - } - function Oe(a4) { - var b2 = Me(), c3 = a4.focusedElem, d4 = a4.selectionRange; - if (b2 !== c3 && c3 && c3.ownerDocument && Le(c3.ownerDocument.documentElement, c3)) { - if (null !== d4 && Ne(c3)) { - if (b2 = d4.start, a4 = d4.end, void 0 === a4 && (a4 = b2), "selectionStart" in c3) - c3.selectionStart = b2, c3.selectionEnd = Math.min(a4, c3.value.length); - else if (a4 = (b2 = c3.ownerDocument || document) && b2.defaultView || window, a4.getSelection) { - a4 = a4.getSelection(); - var e5 = c3.textContent.length, f2 = Math.min(d4.start, e5); - d4 = void 0 === d4.end ? f2 : Math.min(d4.end, e5); - !a4.extend && f2 > d4 && (e5 = d4, d4 = f2, f2 = e5); - e5 = Ke(c3, f2); - var g = Ke( - c3, - d4 - ); - e5 && g && (1 !== a4.rangeCount || a4.anchorNode !== e5.node || a4.anchorOffset !== e5.offset || a4.focusNode !== g.node || a4.focusOffset !== g.offset) && (b2 = b2.createRange(), b2.setStart(e5.node, e5.offset), a4.removeAllRanges(), f2 > d4 ? (a4.addRange(b2), a4.extend(g.node, g.offset)) : (b2.setEnd(g.node, g.offset), a4.addRange(b2))); - } - } - b2 = []; - for (a4 = c3; a4 = a4.parentNode; ) - 1 === a4.nodeType && b2.push({ element: a4, left: a4.scrollLeft, top: a4.scrollTop }); - "function" === typeof c3.focus && c3.focus(); - for (c3 = 0; c3 < b2.length; c3++) - a4 = b2[c3], a4.element.scrollLeft = a4.left, a4.element.scrollTop = a4.top; - } - } - var Pe = ia && "documentMode" in document && 11 >= document.documentMode; - var Qe = null; - var Re = null; - var Se = null; - var Te = false; - function Ue(a4, b2, c3) { - var d4 = c3.window === c3 ? c3.document : 9 === c3.nodeType ? c3 : c3.ownerDocument; - Te || null == Qe || Qe !== Xa(d4) || (d4 = Qe, "selectionStart" in d4 && Ne(d4) ? d4 = { start: d4.selectionStart, end: d4.selectionEnd } : (d4 = (d4.ownerDocument && d4.ownerDocument.defaultView || window).getSelection(), d4 = { anchorNode: d4.anchorNode, anchorOffset: d4.anchorOffset, focusNode: d4.focusNode, focusOffset: d4.focusOffset }), Se && Ie(Se, d4) || (Se = d4, d4 = oe(Re, "onSelect"), 0 < d4.length && (b2 = new td("onSelect", "select", null, b2, c3), a4.push({ event: b2, listeners: d4 }), b2.target = Qe))); - } - function Ve(a4, b2) { - var c3 = {}; - c3[a4.toLowerCase()] = b2.toLowerCase(); - c3["Webkit" + a4] = "webkit" + b2; - c3["Moz" + a4] = "moz" + b2; - return c3; - } - var We = { animationend: Ve("Animation", "AnimationEnd"), animationiteration: Ve("Animation", "AnimationIteration"), animationstart: Ve("Animation", "AnimationStart"), transitionend: Ve("Transition", "TransitionEnd") }; - var Xe = {}; - var Ye = {}; - ia && (Ye = document.createElement("div").style, "AnimationEvent" in window || (delete We.animationend.animation, delete We.animationiteration.animation, delete We.animationstart.animation), "TransitionEvent" in window || delete We.transitionend.transition); - function Ze(a4) { - if (Xe[a4]) - return Xe[a4]; - if (!We[a4]) - return a4; - var b2 = We[a4], c3; - for (c3 in b2) - if (b2.hasOwnProperty(c3) && c3 in Ye) - return Xe[a4] = b2[c3]; - return a4; - } - var $e = Ze("animationend"); - var af = Ze("animationiteration"); - var bf = Ze("animationstart"); - var cf = Ze("transitionend"); - var df = /* @__PURE__ */ new Map(); - var ef = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" "); - function ff(a4, b2) { - df.set(a4, b2); - fa(b2, [a4]); - } - for (gf = 0; gf < ef.length; gf++) { - hf = ef[gf], jf = hf.toLowerCase(), kf = hf[0].toUpperCase() + hf.slice(1); - ff(jf, "on" + kf); - } - var hf; - var jf; - var kf; - var gf; - ff($e, "onAnimationEnd"); - ff(af, "onAnimationIteration"); - ff(bf, "onAnimationStart"); - ff("dblclick", "onDoubleClick"); - ff("focusin", "onFocus"); - ff("focusout", "onBlur"); - ff(cf, "onTransitionEnd"); - ha("onMouseEnter", ["mouseout", "mouseover"]); - ha("onMouseLeave", ["mouseout", "mouseover"]); - ha("onPointerEnter", ["pointerout", "pointerover"]); - ha("onPointerLeave", ["pointerout", "pointerover"]); - fa("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")); - fa("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")); - fa("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]); - fa("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")); - fa("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")); - fa("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); - var lf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "); - var mf = new Set("cancel close invalid load scroll toggle".split(" ").concat(lf)); - function nf(a4, b2, c3) { - var d4 = a4.type || "unknown-event"; - a4.currentTarget = c3; - Ub(d4, b2, void 0, a4); - a4.currentTarget = null; - } - function se(a4, b2) { - b2 = 0 !== (b2 & 4); - for (var c3 = 0; c3 < a4.length; c3++) { - var d4 = a4[c3], e5 = d4.event; - d4 = d4.listeners; - a: { - var f2 = void 0; - if (b2) - for (var g = d4.length - 1; 0 <= g; g--) { - var h3 = d4[g], k2 = h3.instance, l2 = h3.currentTarget; - h3 = h3.listener; - if (k2 !== f2 && e5.isPropagationStopped()) - break a; - nf(e5, h3, l2); - f2 = k2; - } - else - for (g = 0; g < d4.length; g++) { - h3 = d4[g]; - k2 = h3.instance; - l2 = h3.currentTarget; - h3 = h3.listener; - if (k2 !== f2 && e5.isPropagationStopped()) - break a; - nf(e5, h3, l2); - f2 = k2; - } - } - } - if (Qb) - throw a4 = Rb, Qb = false, Rb = null, a4; - } - function D2(a4, b2) { - var c3 = b2[of]; - void 0 === c3 && (c3 = b2[of] = /* @__PURE__ */ new Set()); - var d4 = a4 + "__bubble"; - c3.has(d4) || (pf(b2, a4, 2, false), c3.add(d4)); - } - function qf(a4, b2, c3) { - var d4 = 0; - b2 && (d4 |= 4); - pf(c3, a4, d4, b2); - } - var rf = "_reactListening" + Math.random().toString(36).slice(2); - function sf(a4) { - if (!a4[rf]) { - a4[rf] = true; - da.forEach(function(b3) { - "selectionchange" !== b3 && (mf.has(b3) || qf(b3, false, a4), qf(b3, true, a4)); - }); - var b2 = 9 === a4.nodeType ? a4 : a4.ownerDocument; - null === b2 || b2[rf] || (b2[rf] = true, qf("selectionchange", false, b2)); - } - } - function pf(a4, b2, c3, d4) { - switch (jd(b2)) { - case 1: - var e5 = ed; - break; - case 4: - e5 = gd; - break; - default: - e5 = fd; - } - c3 = e5.bind(null, b2, c3, a4); - e5 = void 0; - !Lb || "touchstart" !== b2 && "touchmove" !== b2 && "wheel" !== b2 || (e5 = true); - d4 ? void 0 !== e5 ? a4.addEventListener(b2, c3, { capture: true, passive: e5 }) : a4.addEventListener(b2, c3, true) : void 0 !== e5 ? a4.addEventListener(b2, c3, { passive: e5 }) : a4.addEventListener(b2, c3, false); - } - function hd(a4, b2, c3, d4, e5) { - var f2 = d4; - if (0 === (b2 & 1) && 0 === (b2 & 2) && null !== d4) - a: - for (; ; ) { - if (null === d4) - return; - var g = d4.tag; - if (3 === g || 4 === g) { - var h3 = d4.stateNode.containerInfo; - if (h3 === e5 || 8 === h3.nodeType && h3.parentNode === e5) - break; - if (4 === g) - for (g = d4.return; null !== g; ) { - var k2 = g.tag; - if (3 === k2 || 4 === k2) { - if (k2 = g.stateNode.containerInfo, k2 === e5 || 8 === k2.nodeType && k2.parentNode === e5) - return; - } - g = g.return; - } - for (; null !== h3; ) { - g = Wc(h3); - if (null === g) - return; - k2 = g.tag; - if (5 === k2 || 6 === k2) { - d4 = f2 = g; - continue a; - } - h3 = h3.parentNode; - } - } - d4 = d4.return; - } - Jb(function() { - var d5 = f2, e6 = xb(c3), g2 = []; - a: { - var h4 = df.get(a4); - if (void 0 !== h4) { - var k3 = td, n3 = a4; - switch (a4) { - case "keypress": - if (0 === od(c3)) - break a; - case "keydown": - case "keyup": - k3 = Rd; - break; - case "focusin": - n3 = "focus"; - k3 = Fd; - break; - case "focusout": - n3 = "blur"; - k3 = Fd; - break; - case "beforeblur": - case "afterblur": - k3 = Fd; - break; - case "click": - if (2 === c3.button) - break a; - case "auxclick": - case "dblclick": - case "mousedown": - case "mousemove": - case "mouseup": - case "mouseout": - case "mouseover": - case "contextmenu": - k3 = Bd; - break; - case "drag": - case "dragend": - case "dragenter": - case "dragexit": - case "dragleave": - case "dragover": - case "dragstart": - case "drop": - k3 = Dd; - break; - case "touchcancel": - case "touchend": - case "touchmove": - case "touchstart": - k3 = Vd; - break; - case $e: - case af: - case bf: - k3 = Hd; - break; - case cf: - k3 = Xd; - break; - case "scroll": - k3 = vd; - break; - case "wheel": - k3 = Zd; - break; - case "copy": - case "cut": - case "paste": - k3 = Jd; - break; - case "gotpointercapture": - case "lostpointercapture": - case "pointercancel": - case "pointerdown": - case "pointermove": - case "pointerout": - case "pointerover": - case "pointerup": - k3 = Td; - } - var t7 = 0 !== (b2 & 4), J = !t7 && "scroll" === a4, x2 = t7 ? null !== h4 ? h4 + "Capture" : null : h4; - t7 = []; - for (var w2 = d5, u3; null !== w2; ) { - u3 = w2; - var F = u3.stateNode; - 5 === u3.tag && null !== F && (u3 = F, null !== x2 && (F = Kb(w2, x2), null != F && t7.push(tf(w2, F, u3)))); - if (J) - break; - w2 = w2.return; - } - 0 < t7.length && (h4 = new k3(h4, n3, null, c3, e6), g2.push({ event: h4, listeners: t7 })); - } - } - if (0 === (b2 & 7)) { - a: { - h4 = "mouseover" === a4 || "pointerover" === a4; - k3 = "mouseout" === a4 || "pointerout" === a4; - if (h4 && c3 !== wb && (n3 = c3.relatedTarget || c3.fromElement) && (Wc(n3) || n3[uf])) - break a; - if (k3 || h4) { - h4 = e6.window === e6 ? e6 : (h4 = e6.ownerDocument) ? h4.defaultView || h4.parentWindow : window; - if (k3) { - if (n3 = c3.relatedTarget || c3.toElement, k3 = d5, n3 = n3 ? Wc(n3) : null, null !== n3 && (J = Vb(n3), n3 !== J || 5 !== n3.tag && 6 !== n3.tag)) - n3 = null; - } else - k3 = null, n3 = d5; - if (k3 !== n3) { - t7 = Bd; - F = "onMouseLeave"; - x2 = "onMouseEnter"; - w2 = "mouse"; - if ("pointerout" === a4 || "pointerover" === a4) - t7 = Td, F = "onPointerLeave", x2 = "onPointerEnter", w2 = "pointer"; - J = null == k3 ? h4 : ue(k3); - u3 = null == n3 ? h4 : ue(n3); - h4 = new t7(F, w2 + "leave", k3, c3, e6); - h4.target = J; - h4.relatedTarget = u3; - F = null; - Wc(e6) === d5 && (t7 = new t7(x2, w2 + "enter", n3, c3, e6), t7.target = u3, t7.relatedTarget = J, F = t7); - J = F; - if (k3 && n3) - b: { - t7 = k3; - x2 = n3; - w2 = 0; - for (u3 = t7; u3; u3 = vf(u3)) - w2++; - u3 = 0; - for (F = x2; F; F = vf(F)) - u3++; - for (; 0 < w2 - u3; ) - t7 = vf(t7), w2--; - for (; 0 < u3 - w2; ) - x2 = vf(x2), u3--; - for (; w2--; ) { - if (t7 === x2 || null !== x2 && t7 === x2.alternate) - break b; - t7 = vf(t7); - x2 = vf(x2); - } - t7 = null; - } - else - t7 = null; - null !== k3 && wf(g2, h4, k3, t7, false); - null !== n3 && null !== J && wf(g2, J, n3, t7, true); - } - } - } - a: { - h4 = d5 ? ue(d5) : window; - k3 = h4.nodeName && h4.nodeName.toLowerCase(); - if ("select" === k3 || "input" === k3 && "file" === h4.type) - var na = ve; - else if (me(h4)) - if (we) - na = Fe; - else { - na = De; - var xa = Ce; - } - else - (k3 = h4.nodeName) && "input" === k3.toLowerCase() && ("checkbox" === h4.type || "radio" === h4.type) && (na = Ee); - if (na && (na = na(a4, d5))) { - ne(g2, na, c3, e6); - break a; - } - xa && xa(a4, h4, d5); - "focusout" === a4 && (xa = h4._wrapperState) && xa.controlled && "number" === h4.type && cb(h4, "number", h4.value); - } - xa = d5 ? ue(d5) : window; - switch (a4) { - case "focusin": - if (me(xa) || "true" === xa.contentEditable) - Qe = xa, Re = d5, Se = null; - break; - case "focusout": - Se = Re = Qe = null; - break; - case "mousedown": - Te = true; - break; - case "contextmenu": - case "mouseup": - case "dragend": - Te = false; - Ue(g2, c3, e6); - break; - case "selectionchange": - if (Pe) - break; - case "keydown": - case "keyup": - Ue(g2, c3, e6); - } - var $a; - if (ae) - b: { - switch (a4) { - case "compositionstart": - var ba = "onCompositionStart"; - break b; - case "compositionend": - ba = "onCompositionEnd"; - break b; - case "compositionupdate": - ba = "onCompositionUpdate"; - break b; - } - ba = void 0; - } - else - ie ? ge(a4, c3) && (ba = "onCompositionEnd") : "keydown" === a4 && 229 === c3.keyCode && (ba = "onCompositionStart"); - ba && (de && "ko" !== c3.locale && (ie || "onCompositionStart" !== ba ? "onCompositionEnd" === ba && ie && ($a = nd()) : (kd = e6, ld = "value" in kd ? kd.value : kd.textContent, ie = true)), xa = oe(d5, ba), 0 < xa.length && (ba = new Ld(ba, a4, null, c3, e6), g2.push({ event: ba, listeners: xa }), $a ? ba.data = $a : ($a = he(c3), null !== $a && (ba.data = $a)))); - if ($a = ce ? je(a4, c3) : ke(a4, c3)) - d5 = oe(d5, "onBeforeInput"), 0 < d5.length && (e6 = new Ld("onBeforeInput", "beforeinput", null, c3, e6), g2.push({ event: e6, listeners: d5 }), e6.data = $a); - } - se(g2, b2); - }); - } - function tf(a4, b2, c3) { - return { instance: a4, listener: b2, currentTarget: c3 }; - } - function oe(a4, b2) { - for (var c3 = b2 + "Capture", d4 = []; null !== a4; ) { - var e5 = a4, f2 = e5.stateNode; - 5 === e5.tag && null !== f2 && (e5 = f2, f2 = Kb(a4, c3), null != f2 && d4.unshift(tf(a4, f2, e5)), f2 = Kb(a4, b2), null != f2 && d4.push(tf(a4, f2, e5))); - a4 = a4.return; - } - return d4; - } - function vf(a4) { - if (null === a4) - return null; - do - a4 = a4.return; - while (a4 && 5 !== a4.tag); - return a4 ? a4 : null; - } - function wf(a4, b2, c3, d4, e5) { - for (var f2 = b2._reactName, g = []; null !== c3 && c3 !== d4; ) { - var h3 = c3, k2 = h3.alternate, l2 = h3.stateNode; - if (null !== k2 && k2 === d4) - break; - 5 === h3.tag && null !== l2 && (h3 = l2, e5 ? (k2 = Kb(c3, f2), null != k2 && g.unshift(tf(c3, k2, h3))) : e5 || (k2 = Kb(c3, f2), null != k2 && g.push(tf(c3, k2, h3)))); - c3 = c3.return; - } - 0 !== g.length && a4.push({ event: b2, listeners: g }); - } - var xf = /\r\n?/g; - var yf = /\u0000|\uFFFD/g; - function zf(a4) { - return ("string" === typeof a4 ? a4 : "" + a4).replace(xf, "\n").replace(yf, ""); - } - function Af(a4, b2, c3) { - b2 = zf(b2); - if (zf(a4) !== b2 && c3) - throw Error(p(425)); - } - function Bf() { - } - var Cf = null; - var Df = null; - function Ef(a4, b2) { - return "textarea" === a4 || "noscript" === a4 || "string" === typeof b2.children || "number" === typeof b2.children || "object" === typeof b2.dangerouslySetInnerHTML && null !== b2.dangerouslySetInnerHTML && null != b2.dangerouslySetInnerHTML.__html; - } - var Ff = "function" === typeof setTimeout ? setTimeout : void 0; - var Gf = "function" === typeof clearTimeout ? clearTimeout : void 0; - var Hf = "function" === typeof Promise ? Promise : void 0; - var Jf = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" !== typeof Hf ? function(a4) { - return Hf.resolve(null).then(a4).catch(If); - } : Ff; - function If(a4) { - setTimeout(function() { - throw a4; - }); - } - function Kf(a4, b2) { - var c3 = b2, d4 = 0; - do { - var e5 = c3.nextSibling; - a4.removeChild(c3); - if (e5 && 8 === e5.nodeType) - if (c3 = e5.data, "/$" === c3) { - if (0 === d4) { - a4.removeChild(e5); - bd(b2); - return; - } - d4--; - } else - "$" !== c3 && "$?" !== c3 && "$!" !== c3 || d4++; - c3 = e5; - } while (c3); - bd(b2); - } - function Lf(a4) { - for (; null != a4; a4 = a4.nextSibling) { - var b2 = a4.nodeType; - if (1 === b2 || 3 === b2) - break; - if (8 === b2) { - b2 = a4.data; - if ("$" === b2 || "$!" === b2 || "$?" === b2) - break; - if ("/$" === b2) - return null; - } - } - return a4; - } - function Mf(a4) { - a4 = a4.previousSibling; - for (var b2 = 0; a4; ) { - if (8 === a4.nodeType) { - var c3 = a4.data; - if ("$" === c3 || "$!" === c3 || "$?" === c3) { - if (0 === b2) - return a4; - b2--; - } else - "/$" === c3 && b2++; - } - a4 = a4.previousSibling; - } - return null; - } - var Nf = Math.random().toString(36).slice(2); - var Of = "__reactFiber$" + Nf; - var Pf = "__reactProps$" + Nf; - var uf = "__reactContainer$" + Nf; - var of = "__reactEvents$" + Nf; - var Qf = "__reactListeners$" + Nf; - var Rf = "__reactHandles$" + Nf; - function Wc(a4) { - var b2 = a4[Of]; - if (b2) - return b2; - for (var c3 = a4.parentNode; c3; ) { - if (b2 = c3[uf] || c3[Of]) { - c3 = b2.alternate; - if (null !== b2.child || null !== c3 && null !== c3.child) - for (a4 = Mf(a4); null !== a4; ) { - if (c3 = a4[Of]) - return c3; - a4 = Mf(a4); - } - return b2; - } - a4 = c3; - c3 = a4.parentNode; - } - return null; - } - function Cb(a4) { - a4 = a4[Of] || a4[uf]; - return !a4 || 5 !== a4.tag && 6 !== a4.tag && 13 !== a4.tag && 3 !== a4.tag ? null : a4; - } - function ue(a4) { - if (5 === a4.tag || 6 === a4.tag) - return a4.stateNode; - throw Error(p(33)); - } - function Db(a4) { - return a4[Pf] || null; - } - var Sf = []; - var Tf = -1; - function Uf(a4) { - return { current: a4 }; - } - function E2(a4) { - 0 > Tf || (a4.current = Sf[Tf], Sf[Tf] = null, Tf--); - } - function G2(a4, b2) { - Tf++; - Sf[Tf] = a4.current; - a4.current = b2; - } - var Vf = {}; - var H3 = Uf(Vf); - var Wf = Uf(false); - var Xf = Vf; - function Yf(a4, b2) { - var c3 = a4.type.contextTypes; - if (!c3) - return Vf; - var d4 = a4.stateNode; - if (d4 && d4.__reactInternalMemoizedUnmaskedChildContext === b2) - return d4.__reactInternalMemoizedMaskedChildContext; - var e5 = {}, f2; - for (f2 in c3) - e5[f2] = b2[f2]; - d4 && (a4 = a4.stateNode, a4.__reactInternalMemoizedUnmaskedChildContext = b2, a4.__reactInternalMemoizedMaskedChildContext = e5); - return e5; - } - function Zf(a4) { - a4 = a4.childContextTypes; - return null !== a4 && void 0 !== a4; - } - function $f() { - E2(Wf); - E2(H3); - } - function ag(a4, b2, c3) { - if (H3.current !== Vf) - throw Error(p(168)); - G2(H3, b2); - G2(Wf, c3); - } - function bg(a4, b2, c3) { - var d4 = a4.stateNode; - b2 = b2.childContextTypes; - if ("function" !== typeof d4.getChildContext) - return c3; - d4 = d4.getChildContext(); - for (var e5 in d4) - if (!(e5 in b2)) - throw Error(p(108, Ra(a4) || "Unknown", e5)); - return A({}, c3, d4); - } - function cg(a4) { - a4 = (a4 = a4.stateNode) && a4.__reactInternalMemoizedMergedChildContext || Vf; - Xf = H3.current; - G2(H3, a4); - G2(Wf, Wf.current); - return true; - } - function dg(a4, b2, c3) { - var d4 = a4.stateNode; - if (!d4) - throw Error(p(169)); - c3 ? (a4 = bg(a4, b2, Xf), d4.__reactInternalMemoizedMergedChildContext = a4, E2(Wf), E2(H3), G2(H3, a4)) : E2(Wf); - G2(Wf, c3); - } - var eg = null; - var fg = false; - var gg = false; - function hg(a4) { - null === eg ? eg = [a4] : eg.push(a4); - } - function ig(a4) { - fg = true; - hg(a4); - } - function jg() { - if (!gg && null !== eg) { - gg = true; - var a4 = 0, b2 = C2; - try { - var c3 = eg; - for (C2 = 1; a4 < c3.length; a4++) { - var d4 = c3[a4]; - do - d4 = d4(true); - while (null !== d4); - } - eg = null; - fg = false; - } catch (e5) { - throw null !== eg && (eg = eg.slice(a4 + 1)), ac(fc, jg), e5; - } finally { - C2 = b2, gg = false; - } - } - return null; - } - var kg = []; - var lg = 0; - var mg = null; - var ng = 0; - var og = []; - var pg = 0; - var qg = null; - var rg = 1; - var sg = ""; - function tg(a4, b2) { - kg[lg++] = ng; - kg[lg++] = mg; - mg = a4; - ng = b2; - } - function ug(a4, b2, c3) { - og[pg++] = rg; - og[pg++] = sg; - og[pg++] = qg; - qg = a4; - var d4 = rg; - a4 = sg; - var e5 = 32 - oc(d4) - 1; - d4 &= ~(1 << e5); - c3 += 1; - var f2 = 32 - oc(b2) + e5; - if (30 < f2) { - var g = e5 - e5 % 5; - f2 = (d4 & (1 << g) - 1).toString(32); - d4 >>= g; - e5 -= g; - rg = 1 << 32 - oc(b2) + e5 | c3 << e5 | d4; - sg = f2 + a4; - } else - rg = 1 << f2 | c3 << e5 | d4, sg = a4; - } - function vg(a4) { - null !== a4.return && (tg(a4, 1), ug(a4, 1, 0)); - } - function wg(a4) { - for (; a4 === mg; ) - mg = kg[--lg], kg[lg] = null, ng = kg[--lg], kg[lg] = null; - for (; a4 === qg; ) - qg = og[--pg], og[pg] = null, sg = og[--pg], og[pg] = null, rg = og[--pg], og[pg] = null; - } - var xg = null; - var yg = null; - var I2 = false; - var zg = null; - function Ag(a4, b2) { - var c3 = Bg(5, null, null, 0); - c3.elementType = "DELETED"; - c3.stateNode = b2; - c3.return = a4; - b2 = a4.deletions; - null === b2 ? (a4.deletions = [c3], a4.flags |= 16) : b2.push(c3); - } - function Cg(a4, b2) { - switch (a4.tag) { - case 5: - var c3 = a4.type; - b2 = 1 !== b2.nodeType || c3.toLowerCase() !== b2.nodeName.toLowerCase() ? null : b2; - return null !== b2 ? (a4.stateNode = b2, xg = a4, yg = Lf(b2.firstChild), true) : false; - case 6: - return b2 = "" === a4.pendingProps || 3 !== b2.nodeType ? null : b2, null !== b2 ? (a4.stateNode = b2, xg = a4, yg = null, true) : false; - case 13: - return b2 = 8 !== b2.nodeType ? null : b2, null !== b2 ? (c3 = null !== qg ? { id: rg, overflow: sg } : null, a4.memoizedState = { dehydrated: b2, treeContext: c3, retryLane: 1073741824 }, c3 = Bg(18, null, null, 0), c3.stateNode = b2, c3.return = a4, a4.child = c3, xg = a4, yg = null, true) : false; - default: - return false; - } - } - function Dg(a4) { - return 0 !== (a4.mode & 1) && 0 === (a4.flags & 128); - } - function Eg(a4) { - if (I2) { - var b2 = yg; - if (b2) { - var c3 = b2; - if (!Cg(a4, b2)) { - if (Dg(a4)) - throw Error(p(418)); - b2 = Lf(c3.nextSibling); - var d4 = xg; - b2 && Cg(a4, b2) ? Ag(d4, c3) : (a4.flags = a4.flags & -4097 | 2, I2 = false, xg = a4); - } - } else { - if (Dg(a4)) - throw Error(p(418)); - a4.flags = a4.flags & -4097 | 2; - I2 = false; - xg = a4; - } - } - } - function Fg(a4) { - for (a4 = a4.return; null !== a4 && 5 !== a4.tag && 3 !== a4.tag && 13 !== a4.tag; ) - a4 = a4.return; - xg = a4; - } - function Gg(a4) { - if (a4 !== xg) - return false; - if (!I2) - return Fg(a4), I2 = true, false; - var b2; - (b2 = 3 !== a4.tag) && !(b2 = 5 !== a4.tag) && (b2 = a4.type, b2 = "head" !== b2 && "body" !== b2 && !Ef(a4.type, a4.memoizedProps)); - if (b2 && (b2 = yg)) { - if (Dg(a4)) - throw Hg(), Error(p(418)); - for (; b2; ) - Ag(a4, b2), b2 = Lf(b2.nextSibling); - } - Fg(a4); - if (13 === a4.tag) { - a4 = a4.memoizedState; - a4 = null !== a4 ? a4.dehydrated : null; - if (!a4) - throw Error(p(317)); - a: { - a4 = a4.nextSibling; - for (b2 = 0; a4; ) { - if (8 === a4.nodeType) { - var c3 = a4.data; - if ("/$" === c3) { - if (0 === b2) { - yg = Lf(a4.nextSibling); - break a; - } - b2--; - } else - "$" !== c3 && "$!" !== c3 && "$?" !== c3 || b2++; - } - a4 = a4.nextSibling; - } - yg = null; - } - } else - yg = xg ? Lf(a4.stateNode.nextSibling) : null; - return true; - } - function Hg() { - for (var a4 = yg; a4; ) - a4 = Lf(a4.nextSibling); - } - function Ig() { - yg = xg = null; - I2 = false; - } - function Jg(a4) { - null === zg ? zg = [a4] : zg.push(a4); - } - var Kg = ua.ReactCurrentBatchConfig; - function Lg(a4, b2) { - if (a4 && a4.defaultProps) { - b2 = A({}, b2); - a4 = a4.defaultProps; - for (var c3 in a4) - void 0 === b2[c3] && (b2[c3] = a4[c3]); - return b2; - } - return b2; - } - var Mg = Uf(null); - var Ng = null; - var Og = null; - var Pg = null; - function Qg() { - Pg = Og = Ng = null; - } - function Rg(a4) { - var b2 = Mg.current; - E2(Mg); - a4._currentValue = b2; - } - function Sg(a4, b2, c3) { - for (; null !== a4; ) { - var d4 = a4.alternate; - (a4.childLanes & b2) !== b2 ? (a4.childLanes |= b2, null !== d4 && (d4.childLanes |= b2)) : null !== d4 && (d4.childLanes & b2) !== b2 && (d4.childLanes |= b2); - if (a4 === c3) - break; - a4 = a4.return; - } - } - function Tg(a4, b2) { - Ng = a4; - Pg = Og = null; - a4 = a4.dependencies; - null !== a4 && null !== a4.firstContext && (0 !== (a4.lanes & b2) && (Ug = true), a4.firstContext = null); - } - function Vg(a4) { - var b2 = a4._currentValue; - if (Pg !== a4) - if (a4 = { context: a4, memoizedValue: b2, next: null }, null === Og) { - if (null === Ng) - throw Error(p(308)); - Og = a4; - Ng.dependencies = { lanes: 0, firstContext: a4 }; - } else - Og = Og.next = a4; - return b2; - } - var Wg = null; - function Xg(a4) { - null === Wg ? Wg = [a4] : Wg.push(a4); - } - function Yg(a4, b2, c3, d4) { - var e5 = b2.interleaved; - null === e5 ? (c3.next = c3, Xg(b2)) : (c3.next = e5.next, e5.next = c3); - b2.interleaved = c3; - return Zg(a4, d4); - } - function Zg(a4, b2) { - a4.lanes |= b2; - var c3 = a4.alternate; - null !== c3 && (c3.lanes |= b2); - c3 = a4; - for (a4 = a4.return; null !== a4; ) - a4.childLanes |= b2, c3 = a4.alternate, null !== c3 && (c3.childLanes |= b2), c3 = a4, a4 = a4.return; - return 3 === c3.tag ? c3.stateNode : null; - } - var $g = false; - function ah(a4) { - a4.updateQueue = { baseState: a4.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null }; - } - function bh(a4, b2) { - a4 = a4.updateQueue; - b2.updateQueue === a4 && (b2.updateQueue = { baseState: a4.baseState, firstBaseUpdate: a4.firstBaseUpdate, lastBaseUpdate: a4.lastBaseUpdate, shared: a4.shared, effects: a4.effects }); - } - function ch(a4, b2) { - return { eventTime: a4, lane: b2, tag: 0, payload: null, callback: null, next: null }; - } - function dh(a4, b2, c3) { - var d4 = a4.updateQueue; - if (null === d4) - return null; - d4 = d4.shared; - if (0 !== (K2 & 2)) { - var e5 = d4.pending; - null === e5 ? b2.next = b2 : (b2.next = e5.next, e5.next = b2); - d4.pending = b2; - return Zg(a4, c3); - } - e5 = d4.interleaved; - null === e5 ? (b2.next = b2, Xg(d4)) : (b2.next = e5.next, e5.next = b2); - d4.interleaved = b2; - return Zg(a4, c3); - } - function eh(a4, b2, c3) { - b2 = b2.updateQueue; - if (null !== b2 && (b2 = b2.shared, 0 !== (c3 & 4194240))) { - var d4 = b2.lanes; - d4 &= a4.pendingLanes; - c3 |= d4; - b2.lanes = c3; - Cc(a4, c3); - } - } - function fh(a4, b2) { - var c3 = a4.updateQueue, d4 = a4.alternate; - if (null !== d4 && (d4 = d4.updateQueue, c3 === d4)) { - var e5 = null, f2 = null; - c3 = c3.firstBaseUpdate; - if (null !== c3) { - do { - var g = { eventTime: c3.eventTime, lane: c3.lane, tag: c3.tag, payload: c3.payload, callback: c3.callback, next: null }; - null === f2 ? e5 = f2 = g : f2 = f2.next = g; - c3 = c3.next; - } while (null !== c3); - null === f2 ? e5 = f2 = b2 : f2 = f2.next = b2; - } else - e5 = f2 = b2; - c3 = { baseState: d4.baseState, firstBaseUpdate: e5, lastBaseUpdate: f2, shared: d4.shared, effects: d4.effects }; - a4.updateQueue = c3; - return; - } - a4 = c3.lastBaseUpdate; - null === a4 ? c3.firstBaseUpdate = b2 : a4.next = b2; - c3.lastBaseUpdate = b2; - } - function gh(a4, b2, c3, d4) { - var e5 = a4.updateQueue; - $g = false; - var f2 = e5.firstBaseUpdate, g = e5.lastBaseUpdate, h3 = e5.shared.pending; - if (null !== h3) { - e5.shared.pending = null; - var k2 = h3, l2 = k2.next; - k2.next = null; - null === g ? f2 = l2 : g.next = l2; - g = k2; - var m4 = a4.alternate; - null !== m4 && (m4 = m4.updateQueue, h3 = m4.lastBaseUpdate, h3 !== g && (null === h3 ? m4.firstBaseUpdate = l2 : h3.next = l2, m4.lastBaseUpdate = k2)); - } - if (null !== f2) { - var q2 = e5.baseState; - g = 0; - m4 = l2 = k2 = null; - h3 = f2; - do { - var r2 = h3.lane, y3 = h3.eventTime; - if ((d4 & r2) === r2) { - null !== m4 && (m4 = m4.next = { - eventTime: y3, - lane: 0, - tag: h3.tag, - payload: h3.payload, - callback: h3.callback, - next: null - }); - a: { - var n3 = a4, t7 = h3; - r2 = b2; - y3 = c3; - switch (t7.tag) { - case 1: - n3 = t7.payload; - if ("function" === typeof n3) { - q2 = n3.call(y3, q2, r2); - break a; - } - q2 = n3; - break a; - case 3: - n3.flags = n3.flags & -65537 | 128; - case 0: - n3 = t7.payload; - r2 = "function" === typeof n3 ? n3.call(y3, q2, r2) : n3; - if (null === r2 || void 0 === r2) - break a; - q2 = A({}, q2, r2); - break a; - case 2: - $g = true; - } - } - null !== h3.callback && 0 !== h3.lane && (a4.flags |= 64, r2 = e5.effects, null === r2 ? e5.effects = [h3] : r2.push(h3)); - } else - y3 = { eventTime: y3, lane: r2, tag: h3.tag, payload: h3.payload, callback: h3.callback, next: null }, null === m4 ? (l2 = m4 = y3, k2 = q2) : m4 = m4.next = y3, g |= r2; - h3 = h3.next; - if (null === h3) - if (h3 = e5.shared.pending, null === h3) - break; - else - r2 = h3, h3 = r2.next, r2.next = null, e5.lastBaseUpdate = r2, e5.shared.pending = null; - } while (1); - null === m4 && (k2 = q2); - e5.baseState = k2; - e5.firstBaseUpdate = l2; - e5.lastBaseUpdate = m4; - b2 = e5.shared.interleaved; - if (null !== b2) { - e5 = b2; - do - g |= e5.lane, e5 = e5.next; - while (e5 !== b2); - } else - null === f2 && (e5.shared.lanes = 0); - hh |= g; - a4.lanes = g; - a4.memoizedState = q2; - } - } - function ih(a4, b2, c3) { - a4 = b2.effects; - b2.effects = null; - if (null !== a4) - for (b2 = 0; b2 < a4.length; b2++) { - var d4 = a4[b2], e5 = d4.callback; - if (null !== e5) { - d4.callback = null; - d4 = c3; - if ("function" !== typeof e5) - throw Error(p(191, e5)); - e5.call(d4); - } - } - } - var jh = new aa.Component().refs; - function kh(a4, b2, c3, d4) { - b2 = a4.memoizedState; - c3 = c3(d4, b2); - c3 = null === c3 || void 0 === c3 ? b2 : A({}, b2, c3); - a4.memoizedState = c3; - 0 === a4.lanes && (a4.updateQueue.baseState = c3); - } - var nh = { isMounted: function(a4) { - return (a4 = a4._reactInternals) ? Vb(a4) === a4 : false; - }, enqueueSetState: function(a4, b2, c3) { - a4 = a4._reactInternals; - var d4 = L2(), e5 = lh(a4), f2 = ch(d4, e5); - f2.payload = b2; - void 0 !== c3 && null !== c3 && (f2.callback = c3); - b2 = dh(a4, f2, e5); - null !== b2 && (mh(b2, a4, e5, d4), eh(b2, a4, e5)); - }, enqueueReplaceState: function(a4, b2, c3) { - a4 = a4._reactInternals; - var d4 = L2(), e5 = lh(a4), f2 = ch(d4, e5); - f2.tag = 1; - f2.payload = b2; - void 0 !== c3 && null !== c3 && (f2.callback = c3); - b2 = dh(a4, f2, e5); - null !== b2 && (mh(b2, a4, e5, d4), eh(b2, a4, e5)); - }, enqueueForceUpdate: function(a4, b2) { - a4 = a4._reactInternals; - var c3 = L2(), d4 = lh(a4), e5 = ch(c3, d4); - e5.tag = 2; - void 0 !== b2 && null !== b2 && (e5.callback = b2); - b2 = dh(a4, e5, d4); - null !== b2 && (mh(b2, a4, d4, c3), eh(b2, a4, d4)); - } }; - function oh(a4, b2, c3, d4, e5, f2, g) { - a4 = a4.stateNode; - return "function" === typeof a4.shouldComponentUpdate ? a4.shouldComponentUpdate(d4, f2, g) : b2.prototype && b2.prototype.isPureReactComponent ? !Ie(c3, d4) || !Ie(e5, f2) : true; - } - function ph(a4, b2, c3) { - var d4 = false, e5 = Vf; - var f2 = b2.contextType; - "object" === typeof f2 && null !== f2 ? f2 = Vg(f2) : (e5 = Zf(b2) ? Xf : H3.current, d4 = b2.contextTypes, f2 = (d4 = null !== d4 && void 0 !== d4) ? Yf(a4, e5) : Vf); - b2 = new b2(c3, f2); - a4.memoizedState = null !== b2.state && void 0 !== b2.state ? b2.state : null; - b2.updater = nh; - a4.stateNode = b2; - b2._reactInternals = a4; - d4 && (a4 = a4.stateNode, a4.__reactInternalMemoizedUnmaskedChildContext = e5, a4.__reactInternalMemoizedMaskedChildContext = f2); - return b2; - } - function qh(a4, b2, c3, d4) { - a4 = b2.state; - "function" === typeof b2.componentWillReceiveProps && b2.componentWillReceiveProps(c3, d4); - "function" === typeof b2.UNSAFE_componentWillReceiveProps && b2.UNSAFE_componentWillReceiveProps(c3, d4); - b2.state !== a4 && nh.enqueueReplaceState(b2, b2.state, null); - } - function rh(a4, b2, c3, d4) { - var e5 = a4.stateNode; - e5.props = c3; - e5.state = a4.memoizedState; - e5.refs = jh; - ah(a4); - var f2 = b2.contextType; - "object" === typeof f2 && null !== f2 ? e5.context = Vg(f2) : (f2 = Zf(b2) ? Xf : H3.current, e5.context = Yf(a4, f2)); - e5.state = a4.memoizedState; - f2 = b2.getDerivedStateFromProps; - "function" === typeof f2 && (kh(a4, b2, f2, c3), e5.state = a4.memoizedState); - "function" === typeof b2.getDerivedStateFromProps || "function" === typeof e5.getSnapshotBeforeUpdate || "function" !== typeof e5.UNSAFE_componentWillMount && "function" !== typeof e5.componentWillMount || (b2 = e5.state, "function" === typeof e5.componentWillMount && e5.componentWillMount(), "function" === typeof e5.UNSAFE_componentWillMount && e5.UNSAFE_componentWillMount(), b2 !== e5.state && nh.enqueueReplaceState(e5, e5.state, null), gh(a4, c3, e5, d4), e5.state = a4.memoizedState); - "function" === typeof e5.componentDidMount && (a4.flags |= 4194308); - } - function sh(a4, b2, c3) { - a4 = c3.ref; - if (null !== a4 && "function" !== typeof a4 && "object" !== typeof a4) { - if (c3._owner) { - c3 = c3._owner; - if (c3) { - if (1 !== c3.tag) - throw Error(p(309)); - var d4 = c3.stateNode; - } - if (!d4) - throw Error(p(147, a4)); - var e5 = d4, f2 = "" + a4; - if (null !== b2 && null !== b2.ref && "function" === typeof b2.ref && b2.ref._stringRef === f2) - return b2.ref; - b2 = function(a5) { - var b3 = e5.refs; - b3 === jh && (b3 = e5.refs = {}); - null === a5 ? delete b3[f2] : b3[f2] = a5; - }; - b2._stringRef = f2; - return b2; - } - if ("string" !== typeof a4) - throw Error(p(284)); - if (!c3._owner) - throw Error(p(290, a4)); - } - return a4; - } - function th(a4, b2) { - a4 = Object.prototype.toString.call(b2); - throw Error(p(31, "[object Object]" === a4 ? "object with keys {" + Object.keys(b2).join(", ") + "}" : a4)); - } - function uh(a4) { - var b2 = a4._init; - return b2(a4._payload); - } - function vh(a4) { - function b2(b3, c4) { - if (a4) { - var d5 = b3.deletions; - null === d5 ? (b3.deletions = [c4], b3.flags |= 16) : d5.push(c4); - } - } - function c3(c4, d5) { - if (!a4) - return null; - for (; null !== d5; ) - b2(c4, d5), d5 = d5.sibling; - return null; - } - function d4(a5, b3) { - for (a5 = /* @__PURE__ */ new Map(); null !== b3; ) - null !== b3.key ? a5.set(b3.key, b3) : a5.set(b3.index, b3), b3 = b3.sibling; - return a5; - } - function e5(a5, b3) { - a5 = wh(a5, b3); - a5.index = 0; - a5.sibling = null; - return a5; - } - function f2(b3, c4, d5) { - b3.index = d5; - if (!a4) - return b3.flags |= 1048576, c4; - d5 = b3.alternate; - if (null !== d5) - return d5 = d5.index, d5 < c4 ? (b3.flags |= 2, c4) : d5; - b3.flags |= 2; - return c4; - } - function g(b3) { - a4 && null === b3.alternate && (b3.flags |= 2); - return b3; - } - function h3(a5, b3, c4, d5) { - if (null === b3 || 6 !== b3.tag) - return b3 = xh(c4, a5.mode, d5), b3.return = a5, b3; - b3 = e5(b3, c4); - b3.return = a5; - return b3; - } - function k2(a5, b3, c4, d5) { - var f3 = c4.type; - if (f3 === ya) - return m4(a5, b3, c4.props.children, d5, c4.key); - if (null !== b3 && (b3.elementType === f3 || "object" === typeof f3 && null !== f3 && f3.$$typeof === Ha && uh(f3) === b3.type)) - return d5 = e5(b3, c4.props), d5.ref = sh(a5, b3, c4), d5.return = a5, d5; - d5 = yh(c4.type, c4.key, c4.props, null, a5.mode, d5); - d5.ref = sh(a5, b3, c4); - d5.return = a5; - return d5; - } - function l2(a5, b3, c4, d5) { - if (null === b3 || 4 !== b3.tag || b3.stateNode.containerInfo !== c4.containerInfo || b3.stateNode.implementation !== c4.implementation) - return b3 = zh(c4, a5.mode, d5), b3.return = a5, b3; - b3 = e5(b3, c4.children || []); - b3.return = a5; - return b3; - } - function m4(a5, b3, c4, d5, f3) { - if (null === b3 || 7 !== b3.tag) - return b3 = Ah(c4, a5.mode, d5, f3), b3.return = a5, b3; - b3 = e5(b3, c4); - b3.return = a5; - return b3; - } - function q2(a5, b3, c4) { - if ("string" === typeof b3 && "" !== b3 || "number" === typeof b3) - return b3 = xh("" + b3, a5.mode, c4), b3.return = a5, b3; - if ("object" === typeof b3 && null !== b3) { - switch (b3.$$typeof) { - case va: - return c4 = yh(b3.type, b3.key, b3.props, null, a5.mode, c4), c4.ref = sh(a5, null, b3), c4.return = a5, c4; - case wa: - return b3 = zh(b3, a5.mode, c4), b3.return = a5, b3; - case Ha: - var d5 = b3._init; - return q2(a5, d5(b3._payload), c4); - } - if (eb(b3) || Ka(b3)) - return b3 = Ah(b3, a5.mode, c4, null), b3.return = a5, b3; - th(a5, b3); - } - return null; - } - function r2(a5, b3, c4, d5) { - var e6 = null !== b3 ? b3.key : null; - if ("string" === typeof c4 && "" !== c4 || "number" === typeof c4) - return null !== e6 ? null : h3(a5, b3, "" + c4, d5); - if ("object" === typeof c4 && null !== c4) { - switch (c4.$$typeof) { - case va: - return c4.key === e6 ? k2(a5, b3, c4, d5) : null; - case wa: - return c4.key === e6 ? l2(a5, b3, c4, d5) : null; - case Ha: - return e6 = c4._init, r2( - a5, - b3, - e6(c4._payload), - d5 - ); - } - if (eb(c4) || Ka(c4)) - return null !== e6 ? null : m4(a5, b3, c4, d5, null); - th(a5, c4); - } - return null; - } - function y3(a5, b3, c4, d5, e6) { - if ("string" === typeof d5 && "" !== d5 || "number" === typeof d5) - return a5 = a5.get(c4) || null, h3(b3, a5, "" + d5, e6); - if ("object" === typeof d5 && null !== d5) { - switch (d5.$$typeof) { - case va: - return a5 = a5.get(null === d5.key ? c4 : d5.key) || null, k2(b3, a5, d5, e6); - case wa: - return a5 = a5.get(null === d5.key ? c4 : d5.key) || null, l2(b3, a5, d5, e6); - case Ha: - var f3 = d5._init; - return y3(a5, b3, c4, f3(d5._payload), e6); - } - if (eb(d5) || Ka(d5)) - return a5 = a5.get(c4) || null, m4(b3, a5, d5, e6, null); - th(b3, d5); - } - return null; - } - function n3(e6, g2, h4, k3) { - for (var l3 = null, m5 = null, u3 = g2, w2 = g2 = 0, x2 = null; null !== u3 && w2 < h4.length; w2++) { - u3.index > w2 ? (x2 = u3, u3 = null) : x2 = u3.sibling; - var n4 = r2(e6, u3, h4[w2], k3); - if (null === n4) { - null === u3 && (u3 = x2); - break; - } - a4 && u3 && null === n4.alternate && b2(e6, u3); - g2 = f2(n4, g2, w2); - null === m5 ? l3 = n4 : m5.sibling = n4; - m5 = n4; - u3 = x2; - } - if (w2 === h4.length) - return c3(e6, u3), I2 && tg(e6, w2), l3; - if (null === u3) { - for (; w2 < h4.length; w2++) - u3 = q2(e6, h4[w2], k3), null !== u3 && (g2 = f2(u3, g2, w2), null === m5 ? l3 = u3 : m5.sibling = u3, m5 = u3); - I2 && tg(e6, w2); - return l3; - } - for (u3 = d4(e6, u3); w2 < h4.length; w2++) - x2 = y3(u3, e6, w2, h4[w2], k3), null !== x2 && (a4 && null !== x2.alternate && u3.delete(null === x2.key ? w2 : x2.key), g2 = f2(x2, g2, w2), null === m5 ? l3 = x2 : m5.sibling = x2, m5 = x2); - a4 && u3.forEach(function(a5) { - return b2(e6, a5); - }); - I2 && tg(e6, w2); - return l3; - } - function t7(e6, g2, h4, k3) { - var l3 = Ka(h4); - if ("function" !== typeof l3) - throw Error(p(150)); - h4 = l3.call(h4); - if (null == h4) - throw Error(p(151)); - for (var u3 = l3 = null, m5 = g2, w2 = g2 = 0, x2 = null, n4 = h4.next(); null !== m5 && !n4.done; w2++, n4 = h4.next()) { - m5.index > w2 ? (x2 = m5, m5 = null) : x2 = m5.sibling; - var t8 = r2(e6, m5, n4.value, k3); - if (null === t8) { - null === m5 && (m5 = x2); - break; - } - a4 && m5 && null === t8.alternate && b2(e6, m5); - g2 = f2(t8, g2, w2); - null === u3 ? l3 = t8 : u3.sibling = t8; - u3 = t8; - m5 = x2; - } - if (n4.done) - return c3( - e6, - m5 - ), I2 && tg(e6, w2), l3; - if (null === m5) { - for (; !n4.done; w2++, n4 = h4.next()) - n4 = q2(e6, n4.value, k3), null !== n4 && (g2 = f2(n4, g2, w2), null === u3 ? l3 = n4 : u3.sibling = n4, u3 = n4); - I2 && tg(e6, w2); - return l3; - } - for (m5 = d4(e6, m5); !n4.done; w2++, n4 = h4.next()) - n4 = y3(m5, e6, w2, n4.value, k3), null !== n4 && (a4 && null !== n4.alternate && m5.delete(null === n4.key ? w2 : n4.key), g2 = f2(n4, g2, w2), null === u3 ? l3 = n4 : u3.sibling = n4, u3 = n4); - a4 && m5.forEach(function(a5) { - return b2(e6, a5); - }); - I2 && tg(e6, w2); - return l3; - } - function J(a5, d5, f3, h4) { - "object" === typeof f3 && null !== f3 && f3.type === ya && null === f3.key && (f3 = f3.props.children); - if ("object" === typeof f3 && null !== f3) { - switch (f3.$$typeof) { - case va: - a: { - for (var k3 = f3.key, l3 = d5; null !== l3; ) { - if (l3.key === k3) { - k3 = f3.type; - if (k3 === ya) { - if (7 === l3.tag) { - c3(a5, l3.sibling); - d5 = e5(l3, f3.props.children); - d5.return = a5; - a5 = d5; - break a; - } - } else if (l3.elementType === k3 || "object" === typeof k3 && null !== k3 && k3.$$typeof === Ha && uh(k3) === l3.type) { - c3(a5, l3.sibling); - d5 = e5(l3, f3.props); - d5.ref = sh(a5, l3, f3); - d5.return = a5; - a5 = d5; - break a; - } - c3(a5, l3); - break; - } else - b2(a5, l3); - l3 = l3.sibling; - } - f3.type === ya ? (d5 = Ah(f3.props.children, a5.mode, h4, f3.key), d5.return = a5, a5 = d5) : (h4 = yh(f3.type, f3.key, f3.props, null, a5.mode, h4), h4.ref = sh(a5, d5, f3), h4.return = a5, a5 = h4); - } - return g(a5); - case wa: - a: { - for (l3 = f3.key; null !== d5; ) { - if (d5.key === l3) - if (4 === d5.tag && d5.stateNode.containerInfo === f3.containerInfo && d5.stateNode.implementation === f3.implementation) { - c3(a5, d5.sibling); - d5 = e5(d5, f3.children || []); - d5.return = a5; - a5 = d5; - break a; - } else { - c3(a5, d5); - break; - } - else - b2(a5, d5); - d5 = d5.sibling; - } - d5 = zh(f3, a5.mode, h4); - d5.return = a5; - a5 = d5; - } - return g(a5); - case Ha: - return l3 = f3._init, J(a5, d5, l3(f3._payload), h4); - } - if (eb(f3)) - return n3(a5, d5, f3, h4); - if (Ka(f3)) - return t7(a5, d5, f3, h4); - th(a5, f3); - } - return "string" === typeof f3 && "" !== f3 || "number" === typeof f3 ? (f3 = "" + f3, null !== d5 && 6 === d5.tag ? (c3(a5, d5.sibling), d5 = e5(d5, f3), d5.return = a5, a5 = d5) : (c3(a5, d5), d5 = xh(f3, a5.mode, h4), d5.return = a5, a5 = d5), g(a5)) : c3(a5, d5); - } - return J; - } - var Bh = vh(true); - var Ch = vh(false); - var Dh = {}; - var Eh = Uf(Dh); - var Fh = Uf(Dh); - var Gh = Uf(Dh); - function Hh(a4) { - if (a4 === Dh) - throw Error(p(174)); - return a4; - } - function Ih(a4, b2) { - G2(Gh, b2); - G2(Fh, a4); - G2(Eh, Dh); - a4 = b2.nodeType; - switch (a4) { - case 9: - case 11: - b2 = (b2 = b2.documentElement) ? b2.namespaceURI : lb(null, ""); - break; - default: - a4 = 8 === a4 ? b2.parentNode : b2, b2 = a4.namespaceURI || null, a4 = a4.tagName, b2 = lb(b2, a4); - } - E2(Eh); - G2(Eh, b2); - } - function Jh() { - E2(Eh); - E2(Fh); - E2(Gh); - } - function Kh(a4) { - Hh(Gh.current); - var b2 = Hh(Eh.current); - var c3 = lb(b2, a4.type); - b2 !== c3 && (G2(Fh, a4), G2(Eh, c3)); - } - function Lh(a4) { - Fh.current === a4 && (E2(Eh), E2(Fh)); - } - var M3 = Uf(0); - function Mh(a4) { - for (var b2 = a4; null !== b2; ) { - if (13 === b2.tag) { - var c3 = b2.memoizedState; - if (null !== c3 && (c3 = c3.dehydrated, null === c3 || "$?" === c3.data || "$!" === c3.data)) - return b2; - } else if (19 === b2.tag && void 0 !== b2.memoizedProps.revealOrder) { - if (0 !== (b2.flags & 128)) - return b2; - } else if (null !== b2.child) { - b2.child.return = b2; - b2 = b2.child; - continue; - } - if (b2 === a4) - break; - for (; null === b2.sibling; ) { - if (null === b2.return || b2.return === a4) - return null; - b2 = b2.return; - } - b2.sibling.return = b2.return; - b2 = b2.sibling; - } - return null; - } - var Nh = []; - function Oh() { - for (var a4 = 0; a4 < Nh.length; a4++) - Nh[a4]._workInProgressVersionPrimary = null; - Nh.length = 0; - } - var Ph = ua.ReactCurrentDispatcher; - var Qh = ua.ReactCurrentBatchConfig; - var Rh = 0; - var N = null; - var O2 = null; - var P3 = null; - var Sh = false; - var Th = false; - var Uh = 0; - var Vh = 0; - function Q3() { - throw Error(p(321)); - } - function Wh(a4, b2) { - if (null === b2) - return false; - for (var c3 = 0; c3 < b2.length && c3 < a4.length; c3++) - if (!He(a4[c3], b2[c3])) - return false; - return true; - } - function Xh(a4, b2, c3, d4, e5, f2) { - Rh = f2; - N = b2; - b2.memoizedState = null; - b2.updateQueue = null; - b2.lanes = 0; - Ph.current = null === a4 || null === a4.memoizedState ? Yh : Zh; - a4 = c3(d4, e5); - if (Th) { - f2 = 0; - do { - Th = false; - Uh = 0; - if (25 <= f2) - throw Error(p(301)); - f2 += 1; - P3 = O2 = null; - b2.updateQueue = null; - Ph.current = $h; - a4 = c3(d4, e5); - } while (Th); - } - Ph.current = ai; - b2 = null !== O2 && null !== O2.next; - Rh = 0; - P3 = O2 = N = null; - Sh = false; - if (b2) - throw Error(p(300)); - return a4; - } - function bi() { - var a4 = 0 !== Uh; - Uh = 0; - return a4; - } - function ci() { - var a4 = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null }; - null === P3 ? N.memoizedState = P3 = a4 : P3 = P3.next = a4; - return P3; - } - function di() { - if (null === O2) { - var a4 = N.alternate; - a4 = null !== a4 ? a4.memoizedState : null; - } else - a4 = O2.next; - var b2 = null === P3 ? N.memoizedState : P3.next; - if (null !== b2) - P3 = b2, O2 = a4; - else { - if (null === a4) - throw Error(p(310)); - O2 = a4; - a4 = { memoizedState: O2.memoizedState, baseState: O2.baseState, baseQueue: O2.baseQueue, queue: O2.queue, next: null }; - null === P3 ? N.memoizedState = P3 = a4 : P3 = P3.next = a4; - } - return P3; - } - function ei(a4, b2) { - return "function" === typeof b2 ? b2(a4) : b2; - } - function fi(a4) { - var b2 = di(), c3 = b2.queue; - if (null === c3) - throw Error(p(311)); - c3.lastRenderedReducer = a4; - var d4 = O2, e5 = d4.baseQueue, f2 = c3.pending; - if (null !== f2) { - if (null !== e5) { - var g = e5.next; - e5.next = f2.next; - f2.next = g; - } - d4.baseQueue = e5 = f2; - c3.pending = null; - } - if (null !== e5) { - f2 = e5.next; - d4 = d4.baseState; - var h3 = g = null, k2 = null, l2 = f2; - do { - var m4 = l2.lane; - if ((Rh & m4) === m4) - null !== k2 && (k2 = k2.next = { lane: 0, action: l2.action, hasEagerState: l2.hasEagerState, eagerState: l2.eagerState, next: null }), d4 = l2.hasEagerState ? l2.eagerState : a4(d4, l2.action); - else { - var q2 = { - lane: m4, - action: l2.action, - hasEagerState: l2.hasEagerState, - eagerState: l2.eagerState, - next: null - }; - null === k2 ? (h3 = k2 = q2, g = d4) : k2 = k2.next = q2; - N.lanes |= m4; - hh |= m4; - } - l2 = l2.next; - } while (null !== l2 && l2 !== f2); - null === k2 ? g = d4 : k2.next = h3; - He(d4, b2.memoizedState) || (Ug = true); - b2.memoizedState = d4; - b2.baseState = g; - b2.baseQueue = k2; - c3.lastRenderedState = d4; - } - a4 = c3.interleaved; - if (null !== a4) { - e5 = a4; - do - f2 = e5.lane, N.lanes |= f2, hh |= f2, e5 = e5.next; - while (e5 !== a4); - } else - null === e5 && (c3.lanes = 0); - return [b2.memoizedState, c3.dispatch]; - } - function gi(a4) { - var b2 = di(), c3 = b2.queue; - if (null === c3) - throw Error(p(311)); - c3.lastRenderedReducer = a4; - var d4 = c3.dispatch, e5 = c3.pending, f2 = b2.memoizedState; - if (null !== e5) { - c3.pending = null; - var g = e5 = e5.next; - do - f2 = a4(f2, g.action), g = g.next; - while (g !== e5); - He(f2, b2.memoizedState) || (Ug = true); - b2.memoizedState = f2; - null === b2.baseQueue && (b2.baseState = f2); - c3.lastRenderedState = f2; - } - return [f2, d4]; - } - function hi() { - } - function ii(a4, b2) { - var c3 = N, d4 = di(), e5 = b2(), f2 = !He(d4.memoizedState, e5); - f2 && (d4.memoizedState = e5, Ug = true); - d4 = d4.queue; - ji(ki.bind(null, c3, d4, a4), [a4]); - if (d4.getSnapshot !== b2 || f2 || null !== P3 && P3.memoizedState.tag & 1) { - c3.flags |= 2048; - li(9, mi.bind(null, c3, d4, e5, b2), void 0, null); - if (null === R2) - throw Error(p(349)); - 0 !== (Rh & 30) || ni(c3, b2, e5); - } - return e5; - } - function ni(a4, b2, c3) { - a4.flags |= 16384; - a4 = { getSnapshot: b2, value: c3 }; - b2 = N.updateQueue; - null === b2 ? (b2 = { lastEffect: null, stores: null }, N.updateQueue = b2, b2.stores = [a4]) : (c3 = b2.stores, null === c3 ? b2.stores = [a4] : c3.push(a4)); - } - function mi(a4, b2, c3, d4) { - b2.value = c3; - b2.getSnapshot = d4; - oi(b2) && pi3(a4); - } - function ki(a4, b2, c3) { - return c3(function() { - oi(b2) && pi3(a4); - }); - } - function oi(a4) { - var b2 = a4.getSnapshot; - a4 = a4.value; - try { - var c3 = b2(); - return !He(a4, c3); - } catch (d4) { - return true; - } - } - function pi3(a4) { - var b2 = Zg(a4, 1); - null !== b2 && mh(b2, a4, 1, -1); - } - function qi(a4) { - var b2 = ci(); - "function" === typeof a4 && (a4 = a4()); - b2.memoizedState = b2.baseState = a4; - a4 = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: ei, lastRenderedState: a4 }; - b2.queue = a4; - a4 = a4.dispatch = ri.bind(null, N, a4); - return [b2.memoizedState, a4]; - } - function li(a4, b2, c3, d4) { - a4 = { tag: a4, create: b2, destroy: c3, deps: d4, next: null }; - b2 = N.updateQueue; - null === b2 ? (b2 = { lastEffect: null, stores: null }, N.updateQueue = b2, b2.lastEffect = a4.next = a4) : (c3 = b2.lastEffect, null === c3 ? b2.lastEffect = a4.next = a4 : (d4 = c3.next, c3.next = a4, a4.next = d4, b2.lastEffect = a4)); - return a4; - } - function si() { - return di().memoizedState; - } - function ti(a4, b2, c3, d4) { - var e5 = ci(); - N.flags |= a4; - e5.memoizedState = li(1 | b2, c3, void 0, void 0 === d4 ? null : d4); - } - function ui(a4, b2, c3, d4) { - var e5 = di(); - d4 = void 0 === d4 ? null : d4; - var f2 = void 0; - if (null !== O2) { - var g = O2.memoizedState; - f2 = g.destroy; - if (null !== d4 && Wh(d4, g.deps)) { - e5.memoizedState = li(b2, c3, f2, d4); - return; - } - } - N.flags |= a4; - e5.memoizedState = li(1 | b2, c3, f2, d4); - } - function vi(a4, b2) { - return ti(8390656, 8, a4, b2); - } - function ji(a4, b2) { - return ui(2048, 8, a4, b2); - } - function wi(a4, b2) { - return ui(4, 2, a4, b2); - } - function xi(a4, b2) { - return ui(4, 4, a4, b2); - } - function yi(a4, b2) { - if ("function" === typeof b2) - return a4 = a4(), b2(a4), function() { - b2(null); - }; - if (null !== b2 && void 0 !== b2) - return a4 = a4(), b2.current = a4, function() { - b2.current = null; - }; - } - function zi(a4, b2, c3) { - c3 = null !== c3 && void 0 !== c3 ? c3.concat([a4]) : null; - return ui(4, 4, yi.bind(null, b2, a4), c3); - } - function Ai() { - } - function Bi(a4, b2) { - var c3 = di(); - b2 = void 0 === b2 ? null : b2; - var d4 = c3.memoizedState; - if (null !== d4 && null !== b2 && Wh(b2, d4[1])) - return d4[0]; - c3.memoizedState = [a4, b2]; - return a4; - } - function Ci(a4, b2) { - var c3 = di(); - b2 = void 0 === b2 ? null : b2; - var d4 = c3.memoizedState; - if (null !== d4 && null !== b2 && Wh(b2, d4[1])) - return d4[0]; - a4 = a4(); - c3.memoizedState = [a4, b2]; - return a4; - } - function Di(a4, b2, c3) { - if (0 === (Rh & 21)) - return a4.baseState && (a4.baseState = false, Ug = true), a4.memoizedState = c3; - He(c3, b2) || (c3 = yc(), N.lanes |= c3, hh |= c3, a4.baseState = true); - return b2; - } - function Ei(a4, b2) { - var c3 = C2; - C2 = 0 !== c3 && 4 > c3 ? c3 : 4; - a4(true); - var d4 = Qh.transition; - Qh.transition = {}; - try { - a4(false), b2(); - } finally { - C2 = c3, Qh.transition = d4; - } - } - function Fi() { - return di().memoizedState; - } - function Gi(a4, b2, c3) { - var d4 = lh(a4); - c3 = { lane: d4, action: c3, hasEagerState: false, eagerState: null, next: null }; - if (Hi(a4)) - Ii(b2, c3); - else if (c3 = Yg(a4, b2, c3, d4), null !== c3) { - var e5 = L2(); - mh(c3, a4, d4, e5); - Ji(c3, b2, d4); - } - } - function ri(a4, b2, c3) { - var d4 = lh(a4), e5 = { lane: d4, action: c3, hasEagerState: false, eagerState: null, next: null }; - if (Hi(a4)) - Ii(b2, e5); - else { - var f2 = a4.alternate; - if (0 === a4.lanes && (null === f2 || 0 === f2.lanes) && (f2 = b2.lastRenderedReducer, null !== f2)) - try { - var g = b2.lastRenderedState, h3 = f2(g, c3); - e5.hasEagerState = true; - e5.eagerState = h3; - if (He(h3, g)) { - var k2 = b2.interleaved; - null === k2 ? (e5.next = e5, Xg(b2)) : (e5.next = k2.next, k2.next = e5); - b2.interleaved = e5; - return; - } - } catch (l2) { - } finally { - } - c3 = Yg(a4, b2, e5, d4); - null !== c3 && (e5 = L2(), mh(c3, a4, d4, e5), Ji(c3, b2, d4)); - } - } - function Hi(a4) { - var b2 = a4.alternate; - return a4 === N || null !== b2 && b2 === N; - } - function Ii(a4, b2) { - Th = Sh = true; - var c3 = a4.pending; - null === c3 ? b2.next = b2 : (b2.next = c3.next, c3.next = b2); - a4.pending = b2; - } - function Ji(a4, b2, c3) { - if (0 !== (c3 & 4194240)) { - var d4 = b2.lanes; - d4 &= a4.pendingLanes; - c3 |= d4; - b2.lanes = c3; - Cc(a4, c3); - } - } - var ai = { readContext: Vg, useCallback: Q3, useContext: Q3, useEffect: Q3, useImperativeHandle: Q3, useInsertionEffect: Q3, useLayoutEffect: Q3, useMemo: Q3, useReducer: Q3, useRef: Q3, useState: Q3, useDebugValue: Q3, useDeferredValue: Q3, useTransition: Q3, useMutableSource: Q3, useSyncExternalStore: Q3, useId: Q3, unstable_isNewReconciler: false }; - var Yh = { readContext: Vg, useCallback: function(a4, b2) { - ci().memoizedState = [a4, void 0 === b2 ? null : b2]; - return a4; - }, useContext: Vg, useEffect: vi, useImperativeHandle: function(a4, b2, c3) { - c3 = null !== c3 && void 0 !== c3 ? c3.concat([a4]) : null; - return ti( - 4194308, - 4, - yi.bind(null, b2, a4), - c3 - ); - }, useLayoutEffect: function(a4, b2) { - return ti(4194308, 4, a4, b2); - }, useInsertionEffect: function(a4, b2) { - return ti(4, 2, a4, b2); - }, useMemo: function(a4, b2) { - var c3 = ci(); - b2 = void 0 === b2 ? null : b2; - a4 = a4(); - c3.memoizedState = [a4, b2]; - return a4; - }, useReducer: function(a4, b2, c3) { - var d4 = ci(); - b2 = void 0 !== c3 ? c3(b2) : b2; - d4.memoizedState = d4.baseState = b2; - a4 = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: a4, lastRenderedState: b2 }; - d4.queue = a4; - a4 = a4.dispatch = Gi.bind(null, N, a4); - return [d4.memoizedState, a4]; - }, useRef: function(a4) { - var b2 = ci(); - a4 = { current: a4 }; - return b2.memoizedState = a4; - }, useState: qi, useDebugValue: Ai, useDeferredValue: function(a4) { - return ci().memoizedState = a4; - }, useTransition: function() { - var a4 = qi(false), b2 = a4[0]; - a4 = Ei.bind(null, a4[1]); - ci().memoizedState = a4; - return [b2, a4]; - }, useMutableSource: function() { - }, useSyncExternalStore: function(a4, b2, c3) { - var d4 = N, e5 = ci(); - if (I2) { - if (void 0 === c3) - throw Error(p(407)); - c3 = c3(); - } else { - c3 = b2(); - if (null === R2) - throw Error(p(349)); - 0 !== (Rh & 30) || ni(d4, b2, c3); - } - e5.memoizedState = c3; - var f2 = { value: c3, getSnapshot: b2 }; - e5.queue = f2; - vi(ki.bind( - null, - d4, - f2, - a4 - ), [a4]); - d4.flags |= 2048; - li(9, mi.bind(null, d4, f2, c3, b2), void 0, null); - return c3; - }, useId: function() { - var a4 = ci(), b2 = R2.identifierPrefix; - if (I2) { - var c3 = sg; - var d4 = rg; - c3 = (d4 & ~(1 << 32 - oc(d4) - 1)).toString(32) + c3; - b2 = ":" + b2 + "R" + c3; - c3 = Uh++; - 0 < c3 && (b2 += "H" + c3.toString(32)); - b2 += ":"; - } else - c3 = Vh++, b2 = ":" + b2 + "r" + c3.toString(32) + ":"; - return a4.memoizedState = b2; - }, unstable_isNewReconciler: false }; - var Zh = { - readContext: Vg, - useCallback: Bi, - useContext: Vg, - useEffect: ji, - useImperativeHandle: zi, - useInsertionEffect: wi, - useLayoutEffect: xi, - useMemo: Ci, - useReducer: fi, - useRef: si, - useState: function() { - return fi(ei); - }, - useDebugValue: Ai, - useDeferredValue: function(a4) { - var b2 = di(); - return Di(b2, O2.memoizedState, a4); - }, - useTransition: function() { - var a4 = fi(ei)[0], b2 = di().memoizedState; - return [a4, b2]; - }, - useMutableSource: hi, - useSyncExternalStore: ii, - useId: Fi, - unstable_isNewReconciler: false - }; - var $h = { readContext: Vg, useCallback: Bi, useContext: Vg, useEffect: ji, useImperativeHandle: zi, useInsertionEffect: wi, useLayoutEffect: xi, useMemo: Ci, useReducer: gi, useRef: si, useState: function() { - return gi(ei); - }, useDebugValue: Ai, useDeferredValue: function(a4) { - var b2 = di(); - return null === O2 ? b2.memoizedState = a4 : Di(b2, O2.memoizedState, a4); - }, useTransition: function() { - var a4 = gi(ei)[0], b2 = di().memoizedState; - return [a4, b2]; - }, useMutableSource: hi, useSyncExternalStore: ii, useId: Fi, unstable_isNewReconciler: false }; - function Ki(a4, b2) { - try { - var c3 = "", d4 = b2; - do - c3 += Pa(d4), d4 = d4.return; - while (d4); - var e5 = c3; - } catch (f2) { - e5 = "\nError generating stack: " + f2.message + "\n" + f2.stack; - } - return { value: a4, source: b2, stack: e5, digest: null }; - } - function Li(a4, b2, c3) { - return { value: a4, source: null, stack: null != c3 ? c3 : null, digest: null != b2 ? b2 : null }; - } - function Mi(a4, b2) { - try { - console.error(b2.value); - } catch (c3) { - setTimeout(function() { - throw c3; - }); - } - } - var Ni = "function" === typeof WeakMap ? WeakMap : Map; - function Oi(a4, b2, c3) { - c3 = ch(-1, c3); - c3.tag = 3; - c3.payload = { element: null }; - var d4 = b2.value; - c3.callback = function() { - Pi || (Pi = true, Qi = d4); - Mi(a4, b2); - }; - return c3; - } - function Ri(a4, b2, c3) { - c3 = ch(-1, c3); - c3.tag = 3; - var d4 = a4.type.getDerivedStateFromError; - if ("function" === typeof d4) { - var e5 = b2.value; - c3.payload = function() { - return d4(e5); - }; - c3.callback = function() { - Mi(a4, b2); - }; - } - var f2 = a4.stateNode; - null !== f2 && "function" === typeof f2.componentDidCatch && (c3.callback = function() { - Mi(a4, b2); - "function" !== typeof d4 && (null === Si ? Si = /* @__PURE__ */ new Set([this]) : Si.add(this)); - var c4 = b2.stack; - this.componentDidCatch(b2.value, { componentStack: null !== c4 ? c4 : "" }); - }); - return c3; - } - function Ti(a4, b2, c3) { - var d4 = a4.pingCache; - if (null === d4) { - d4 = a4.pingCache = new Ni(); - var e5 = /* @__PURE__ */ new Set(); - d4.set(b2, e5); - } else - e5 = d4.get(b2), void 0 === e5 && (e5 = /* @__PURE__ */ new Set(), d4.set(b2, e5)); - e5.has(c3) || (e5.add(c3), a4 = Ui.bind(null, a4, b2, c3), b2.then(a4, a4)); - } - function Vi(a4) { - do { - var b2; - if (b2 = 13 === a4.tag) - b2 = a4.memoizedState, b2 = null !== b2 ? null !== b2.dehydrated ? true : false : true; - if (b2) - return a4; - a4 = a4.return; - } while (null !== a4); - return null; - } - function Wi(a4, b2, c3, d4, e5) { - if (0 === (a4.mode & 1)) - return a4 === b2 ? a4.flags |= 65536 : (a4.flags |= 128, c3.flags |= 131072, c3.flags &= -52805, 1 === c3.tag && (null === c3.alternate ? c3.tag = 17 : (b2 = ch(-1, 1), b2.tag = 2, dh(c3, b2, 1))), c3.lanes |= 1), a4; - a4.flags |= 65536; - a4.lanes = e5; - return a4; - } - var Xi = ua.ReactCurrentOwner; - var Ug = false; - function Yi(a4, b2, c3, d4) { - b2.child = null === a4 ? Ch(b2, null, c3, d4) : Bh(b2, a4.child, c3, d4); - } - function Zi(a4, b2, c3, d4, e5) { - c3 = c3.render; - var f2 = b2.ref; - Tg(b2, e5); - d4 = Xh(a4, b2, c3, d4, f2, e5); - c3 = bi(); - if (null !== a4 && !Ug) - return b2.updateQueue = a4.updateQueue, b2.flags &= -2053, a4.lanes &= ~e5, $i(a4, b2, e5); - I2 && c3 && vg(b2); - b2.flags |= 1; - Yi(a4, b2, d4, e5); - return b2.child; - } - function aj(a4, b2, c3, d4, e5) { - if (null === a4) { - var f2 = c3.type; - if ("function" === typeof f2 && !bj(f2) && void 0 === f2.defaultProps && null === c3.compare && void 0 === c3.defaultProps) - return b2.tag = 15, b2.type = f2, cj(a4, b2, f2, d4, e5); - a4 = yh(c3.type, null, d4, b2, b2.mode, e5); - a4.ref = b2.ref; - a4.return = b2; - return b2.child = a4; - } - f2 = a4.child; - if (0 === (a4.lanes & e5)) { - var g = f2.memoizedProps; - c3 = c3.compare; - c3 = null !== c3 ? c3 : Ie; - if (c3(g, d4) && a4.ref === b2.ref) - return $i(a4, b2, e5); - } - b2.flags |= 1; - a4 = wh(f2, d4); - a4.ref = b2.ref; - a4.return = b2; - return b2.child = a4; - } - function cj(a4, b2, c3, d4, e5) { - if (null !== a4) { - var f2 = a4.memoizedProps; - if (Ie(f2, d4) && a4.ref === b2.ref) - if (Ug = false, b2.pendingProps = d4 = f2, 0 !== (a4.lanes & e5)) - 0 !== (a4.flags & 131072) && (Ug = true); - else - return b2.lanes = a4.lanes, $i(a4, b2, e5); - } - return dj(a4, b2, c3, d4, e5); - } - function ej(a4, b2, c3) { - var d4 = b2.pendingProps, e5 = d4.children, f2 = null !== a4 ? a4.memoizedState : null; - if ("hidden" === d4.mode) - if (0 === (b2.mode & 1)) - b2.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, G2(fj, gj), gj |= c3; - else { - if (0 === (c3 & 1073741824)) - return a4 = null !== f2 ? f2.baseLanes | c3 : c3, b2.lanes = b2.childLanes = 1073741824, b2.memoizedState = { baseLanes: a4, cachePool: null, transitions: null }, b2.updateQueue = null, G2(fj, gj), gj |= a4, null; - b2.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }; - d4 = null !== f2 ? f2.baseLanes : c3; - G2(fj, gj); - gj |= d4; - } - else - null !== f2 ? (d4 = f2.baseLanes | c3, b2.memoizedState = null) : d4 = c3, G2(fj, gj), gj |= d4; - Yi(a4, b2, e5, c3); - return b2.child; - } - function hj(a4, b2) { - var c3 = b2.ref; - if (null === a4 && null !== c3 || null !== a4 && a4.ref !== c3) - b2.flags |= 512, b2.flags |= 2097152; - } - function dj(a4, b2, c3, d4, e5) { - var f2 = Zf(c3) ? Xf : H3.current; - f2 = Yf(b2, f2); - Tg(b2, e5); - c3 = Xh(a4, b2, c3, d4, f2, e5); - d4 = bi(); - if (null !== a4 && !Ug) - return b2.updateQueue = a4.updateQueue, b2.flags &= -2053, a4.lanes &= ~e5, $i(a4, b2, e5); - I2 && d4 && vg(b2); - b2.flags |= 1; - Yi(a4, b2, c3, e5); - return b2.child; - } - function ij(a4, b2, c3, d4, e5) { - if (Zf(c3)) { - var f2 = true; - cg(b2); - } else - f2 = false; - Tg(b2, e5); - if (null === b2.stateNode) - jj(a4, b2), ph(b2, c3, d4), rh(b2, c3, d4, e5), d4 = true; - else if (null === a4) { - var g = b2.stateNode, h3 = b2.memoizedProps; - g.props = h3; - var k2 = g.context, l2 = c3.contextType; - "object" === typeof l2 && null !== l2 ? l2 = Vg(l2) : (l2 = Zf(c3) ? Xf : H3.current, l2 = Yf(b2, l2)); - var m4 = c3.getDerivedStateFromProps, q2 = "function" === typeof m4 || "function" === typeof g.getSnapshotBeforeUpdate; - q2 || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h3 !== d4 || k2 !== l2) && qh(b2, g, d4, l2); - $g = false; - var r2 = b2.memoizedState; - g.state = r2; - gh(b2, d4, g, e5); - k2 = b2.memoizedState; - h3 !== d4 || r2 !== k2 || Wf.current || $g ? ("function" === typeof m4 && (kh(b2, c3, m4, d4), k2 = b2.memoizedState), (h3 = $g || oh(b2, c3, h3, d4, r2, k2, l2)) ? (q2 || "function" !== typeof g.UNSAFE_componentWillMount && "function" !== typeof g.componentWillMount || ("function" === typeof g.componentWillMount && g.componentWillMount(), "function" === typeof g.UNSAFE_componentWillMount && g.UNSAFE_componentWillMount()), "function" === typeof g.componentDidMount && (b2.flags |= 4194308)) : ("function" === typeof g.componentDidMount && (b2.flags |= 4194308), b2.memoizedProps = d4, b2.memoizedState = k2), g.props = d4, g.state = k2, g.context = l2, d4 = h3) : ("function" === typeof g.componentDidMount && (b2.flags |= 4194308), d4 = false); - } else { - g = b2.stateNode; - bh(a4, b2); - h3 = b2.memoizedProps; - l2 = b2.type === b2.elementType ? h3 : Lg(b2.type, h3); - g.props = l2; - q2 = b2.pendingProps; - r2 = g.context; - k2 = c3.contextType; - "object" === typeof k2 && null !== k2 ? k2 = Vg(k2) : (k2 = Zf(c3) ? Xf : H3.current, k2 = Yf(b2, k2)); - var y3 = c3.getDerivedStateFromProps; - (m4 = "function" === typeof y3 || "function" === typeof g.getSnapshotBeforeUpdate) || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h3 !== q2 || r2 !== k2) && qh(b2, g, d4, k2); - $g = false; - r2 = b2.memoizedState; - g.state = r2; - gh(b2, d4, g, e5); - var n3 = b2.memoizedState; - h3 !== q2 || r2 !== n3 || Wf.current || $g ? ("function" === typeof y3 && (kh(b2, c3, y3, d4), n3 = b2.memoizedState), (l2 = $g || oh(b2, c3, l2, d4, r2, n3, k2) || false) ? (m4 || "function" !== typeof g.UNSAFE_componentWillUpdate && "function" !== typeof g.componentWillUpdate || ("function" === typeof g.componentWillUpdate && g.componentWillUpdate(d4, n3, k2), "function" === typeof g.UNSAFE_componentWillUpdate && g.UNSAFE_componentWillUpdate(d4, n3, k2)), "function" === typeof g.componentDidUpdate && (b2.flags |= 4), "function" === typeof g.getSnapshotBeforeUpdate && (b2.flags |= 1024)) : ("function" !== typeof g.componentDidUpdate || h3 === a4.memoizedProps && r2 === a4.memoizedState || (b2.flags |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || h3 === a4.memoizedProps && r2 === a4.memoizedState || (b2.flags |= 1024), b2.memoizedProps = d4, b2.memoizedState = n3), g.props = d4, g.state = n3, g.context = k2, d4 = l2) : ("function" !== typeof g.componentDidUpdate || h3 === a4.memoizedProps && r2 === a4.memoizedState || (b2.flags |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || h3 === a4.memoizedProps && r2 === a4.memoizedState || (b2.flags |= 1024), d4 = false); - } - return kj(a4, b2, c3, d4, f2, e5); - } - function kj(a4, b2, c3, d4, e5, f2) { - hj(a4, b2); - var g = 0 !== (b2.flags & 128); - if (!d4 && !g) - return e5 && dg(b2, c3, false), $i(a4, b2, f2); - d4 = b2.stateNode; - Xi.current = b2; - var h3 = g && "function" !== typeof c3.getDerivedStateFromError ? null : d4.render(); - b2.flags |= 1; - null !== a4 && g ? (b2.child = Bh(b2, a4.child, null, f2), b2.child = Bh(b2, null, h3, f2)) : Yi(a4, b2, h3, f2); - b2.memoizedState = d4.state; - e5 && dg(b2, c3, true); - return b2.child; - } - function lj(a4) { - var b2 = a4.stateNode; - b2.pendingContext ? ag(a4, b2.pendingContext, b2.pendingContext !== b2.context) : b2.context && ag(a4, b2.context, false); - Ih(a4, b2.containerInfo); - } - function mj(a4, b2, c3, d4, e5) { - Ig(); - Jg(e5); - b2.flags |= 256; - Yi(a4, b2, c3, d4); - return b2.child; - } - var nj = { dehydrated: null, treeContext: null, retryLane: 0 }; - function oj(a4) { - return { baseLanes: a4, cachePool: null, transitions: null }; - } - function pj(a4, b2, c3) { - var d4 = b2.pendingProps, e5 = M3.current, f2 = false, g = 0 !== (b2.flags & 128), h3; - (h3 = g) || (h3 = null !== a4 && null === a4.memoizedState ? false : 0 !== (e5 & 2)); - if (h3) - f2 = true, b2.flags &= -129; - else if (null === a4 || null !== a4.memoizedState) - e5 |= 1; - G2(M3, e5 & 1); - if (null === a4) { - Eg(b2); - a4 = b2.memoizedState; - if (null !== a4 && (a4 = a4.dehydrated, null !== a4)) - return 0 === (b2.mode & 1) ? b2.lanes = 1 : "$!" === a4.data ? b2.lanes = 8 : b2.lanes = 1073741824, null; - g = d4.children; - a4 = d4.fallback; - return f2 ? (d4 = b2.mode, f2 = b2.child, g = { mode: "hidden", children: g }, 0 === (d4 & 1) && null !== f2 ? (f2.childLanes = 0, f2.pendingProps = g) : f2 = qj(g, d4, 0, null), a4 = Ah(a4, d4, c3, null), f2.return = b2, a4.return = b2, f2.sibling = a4, b2.child = f2, b2.child.memoizedState = oj(c3), b2.memoizedState = nj, a4) : rj(b2, g); - } - e5 = a4.memoizedState; - if (null !== e5 && (h3 = e5.dehydrated, null !== h3)) - return sj(a4, b2, g, d4, h3, e5, c3); - if (f2) { - f2 = d4.fallback; - g = b2.mode; - e5 = a4.child; - h3 = e5.sibling; - var k2 = { mode: "hidden", children: d4.children }; - 0 === (g & 1) && b2.child !== e5 ? (d4 = b2.child, d4.childLanes = 0, d4.pendingProps = k2, b2.deletions = null) : (d4 = wh(e5, k2), d4.subtreeFlags = e5.subtreeFlags & 14680064); - null !== h3 ? f2 = wh(h3, f2) : (f2 = Ah(f2, g, c3, null), f2.flags |= 2); - f2.return = b2; - d4.return = b2; - d4.sibling = f2; - b2.child = d4; - d4 = f2; - f2 = b2.child; - g = a4.child.memoizedState; - g = null === g ? oj(c3) : { baseLanes: g.baseLanes | c3, cachePool: null, transitions: g.transitions }; - f2.memoizedState = g; - f2.childLanes = a4.childLanes & ~c3; - b2.memoizedState = nj; - return d4; - } - f2 = a4.child; - a4 = f2.sibling; - d4 = wh(f2, { mode: "visible", children: d4.children }); - 0 === (b2.mode & 1) && (d4.lanes = c3); - d4.return = b2; - d4.sibling = null; - null !== a4 && (c3 = b2.deletions, null === c3 ? (b2.deletions = [a4], b2.flags |= 16) : c3.push(a4)); - b2.child = d4; - b2.memoizedState = null; - return d4; - } - function rj(a4, b2) { - b2 = qj({ mode: "visible", children: b2 }, a4.mode, 0, null); - b2.return = a4; - return a4.child = b2; - } - function tj(a4, b2, c3, d4) { - null !== d4 && Jg(d4); - Bh(b2, a4.child, null, c3); - a4 = rj(b2, b2.pendingProps.children); - a4.flags |= 2; - b2.memoizedState = null; - return a4; - } - function sj(a4, b2, c3, d4, e5, f2, g) { - if (c3) { - if (b2.flags & 256) - return b2.flags &= -257, d4 = Li(Error(p(422))), tj(a4, b2, g, d4); - if (null !== b2.memoizedState) - return b2.child = a4.child, b2.flags |= 128, null; - f2 = d4.fallback; - e5 = b2.mode; - d4 = qj({ mode: "visible", children: d4.children }, e5, 0, null); - f2 = Ah(f2, e5, g, null); - f2.flags |= 2; - d4.return = b2; - f2.return = b2; - d4.sibling = f2; - b2.child = d4; - 0 !== (b2.mode & 1) && Bh(b2, a4.child, null, g); - b2.child.memoizedState = oj(g); - b2.memoizedState = nj; - return f2; - } - if (0 === (b2.mode & 1)) - return tj(a4, b2, g, null); - if ("$!" === e5.data) { - d4 = e5.nextSibling && e5.nextSibling.dataset; - if (d4) - var h3 = d4.dgst; - d4 = h3; - f2 = Error(p(419)); - d4 = Li(f2, d4, void 0); - return tj(a4, b2, g, d4); - } - h3 = 0 !== (g & a4.childLanes); - if (Ug || h3) { - d4 = R2; - if (null !== d4) { - switch (g & -g) { - case 4: - e5 = 2; - break; - case 16: - e5 = 8; - break; - case 64: - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - case 67108864: - e5 = 32; - break; - case 536870912: - e5 = 268435456; - break; - default: - e5 = 0; - } - e5 = 0 !== (e5 & (d4.suspendedLanes | g)) ? 0 : e5; - 0 !== e5 && e5 !== f2.retryLane && (f2.retryLane = e5, Zg(a4, e5), mh(d4, a4, e5, -1)); - } - uj(); - d4 = Li(Error(p(421))); - return tj(a4, b2, g, d4); - } - if ("$?" === e5.data) - return b2.flags |= 128, b2.child = a4.child, b2 = vj.bind(null, a4), e5._reactRetry = b2, null; - a4 = f2.treeContext; - yg = Lf(e5.nextSibling); - xg = b2; - I2 = true; - zg = null; - null !== a4 && (og[pg++] = rg, og[pg++] = sg, og[pg++] = qg, rg = a4.id, sg = a4.overflow, qg = b2); - b2 = rj(b2, d4.children); - b2.flags |= 4096; - return b2; - } - function wj(a4, b2, c3) { - a4.lanes |= b2; - var d4 = a4.alternate; - null !== d4 && (d4.lanes |= b2); - Sg(a4.return, b2, c3); - } - function xj(a4, b2, c3, d4, e5) { - var f2 = a4.memoizedState; - null === f2 ? a4.memoizedState = { isBackwards: b2, rendering: null, renderingStartTime: 0, last: d4, tail: c3, tailMode: e5 } : (f2.isBackwards = b2, f2.rendering = null, f2.renderingStartTime = 0, f2.last = d4, f2.tail = c3, f2.tailMode = e5); - } - function yj(a4, b2, c3) { - var d4 = b2.pendingProps, e5 = d4.revealOrder, f2 = d4.tail; - Yi(a4, b2, d4.children, c3); - d4 = M3.current; - if (0 !== (d4 & 2)) - d4 = d4 & 1 | 2, b2.flags |= 128; - else { - if (null !== a4 && 0 !== (a4.flags & 128)) - a: - for (a4 = b2.child; null !== a4; ) { - if (13 === a4.tag) - null !== a4.memoizedState && wj(a4, c3, b2); - else if (19 === a4.tag) - wj(a4, c3, b2); - else if (null !== a4.child) { - a4.child.return = a4; - a4 = a4.child; - continue; - } - if (a4 === b2) - break a; - for (; null === a4.sibling; ) { - if (null === a4.return || a4.return === b2) - break a; - a4 = a4.return; - } - a4.sibling.return = a4.return; - a4 = a4.sibling; - } - d4 &= 1; - } - G2(M3, d4); - if (0 === (b2.mode & 1)) - b2.memoizedState = null; - else - switch (e5) { - case "forwards": - c3 = b2.child; - for (e5 = null; null !== c3; ) - a4 = c3.alternate, null !== a4 && null === Mh(a4) && (e5 = c3), c3 = c3.sibling; - c3 = e5; - null === c3 ? (e5 = b2.child, b2.child = null) : (e5 = c3.sibling, c3.sibling = null); - xj(b2, false, e5, c3, f2); - break; - case "backwards": - c3 = null; - e5 = b2.child; - for (b2.child = null; null !== e5; ) { - a4 = e5.alternate; - if (null !== a4 && null === Mh(a4)) { - b2.child = e5; - break; - } - a4 = e5.sibling; - e5.sibling = c3; - c3 = e5; - e5 = a4; - } - xj(b2, true, c3, null, f2); - break; - case "together": - xj(b2, false, null, null, void 0); - break; - default: - b2.memoizedState = null; - } - return b2.child; - } - function jj(a4, b2) { - 0 === (b2.mode & 1) && null !== a4 && (a4.alternate = null, b2.alternate = null, b2.flags |= 2); - } - function $i(a4, b2, c3) { - null !== a4 && (b2.dependencies = a4.dependencies); - hh |= b2.lanes; - if (0 === (c3 & b2.childLanes)) - return null; - if (null !== a4 && b2.child !== a4.child) - throw Error(p(153)); - if (null !== b2.child) { - a4 = b2.child; - c3 = wh(a4, a4.pendingProps); - b2.child = c3; - for (c3.return = b2; null !== a4.sibling; ) - a4 = a4.sibling, c3 = c3.sibling = wh(a4, a4.pendingProps), c3.return = b2; - c3.sibling = null; - } - return b2.child; - } - function zj(a4, b2, c3) { - switch (b2.tag) { - case 3: - lj(b2); - Ig(); - break; - case 5: - Kh(b2); - break; - case 1: - Zf(b2.type) && cg(b2); - break; - case 4: - Ih(b2, b2.stateNode.containerInfo); - break; - case 10: - var d4 = b2.type._context, e5 = b2.memoizedProps.value; - G2(Mg, d4._currentValue); - d4._currentValue = e5; - break; - case 13: - d4 = b2.memoizedState; - if (null !== d4) { - if (null !== d4.dehydrated) - return G2(M3, M3.current & 1), b2.flags |= 128, null; - if (0 !== (c3 & b2.child.childLanes)) - return pj(a4, b2, c3); - G2(M3, M3.current & 1); - a4 = $i(a4, b2, c3); - return null !== a4 ? a4.sibling : null; - } - G2(M3, M3.current & 1); - break; - case 19: - d4 = 0 !== (c3 & b2.childLanes); - if (0 !== (a4.flags & 128)) { - if (d4) - return yj(a4, b2, c3); - b2.flags |= 128; - } - e5 = b2.memoizedState; - null !== e5 && (e5.rendering = null, e5.tail = null, e5.lastEffect = null); - G2(M3, M3.current); - if (d4) - break; - else - return null; - case 22: - case 23: - return b2.lanes = 0, ej(a4, b2, c3); - } - return $i(a4, b2, c3); - } - var Aj; - var Bj; - var Cj; - var Dj; - Aj = function(a4, b2) { - for (var c3 = b2.child; null !== c3; ) { - if (5 === c3.tag || 6 === c3.tag) - a4.appendChild(c3.stateNode); - else if (4 !== c3.tag && null !== c3.child) { - c3.child.return = c3; - c3 = c3.child; - continue; - } - if (c3 === b2) - break; - for (; null === c3.sibling; ) { - if (null === c3.return || c3.return === b2) - return; - c3 = c3.return; - } - c3.sibling.return = c3.return; - c3 = c3.sibling; - } - }; - Bj = function() { - }; - Cj = function(a4, b2, c3, d4) { - var e5 = a4.memoizedProps; - if (e5 !== d4) { - a4 = b2.stateNode; - Hh(Eh.current); - var f2 = null; - switch (c3) { - case "input": - e5 = Ya(a4, e5); - d4 = Ya(a4, d4); - f2 = []; - break; - case "select": - e5 = A({}, e5, { value: void 0 }); - d4 = A({}, d4, { value: void 0 }); - f2 = []; - break; - case "textarea": - e5 = gb(a4, e5); - d4 = gb(a4, d4); - f2 = []; - break; - default: - "function" !== typeof e5.onClick && "function" === typeof d4.onClick && (a4.onclick = Bf); - } - ub(c3, d4); - var g; - c3 = null; - for (l2 in e5) - if (!d4.hasOwnProperty(l2) && e5.hasOwnProperty(l2) && null != e5[l2]) - if ("style" === l2) { - var h3 = e5[l2]; - for (g in h3) - h3.hasOwnProperty(g) && (c3 || (c3 = {}), c3[g] = ""); - } else - "dangerouslySetInnerHTML" !== l2 && "children" !== l2 && "suppressContentEditableWarning" !== l2 && "suppressHydrationWarning" !== l2 && "autoFocus" !== l2 && (ea.hasOwnProperty(l2) ? f2 || (f2 = []) : (f2 = f2 || []).push(l2, null)); - for (l2 in d4) { - var k2 = d4[l2]; - h3 = null != e5 ? e5[l2] : void 0; - if (d4.hasOwnProperty(l2) && k2 !== h3 && (null != k2 || null != h3)) - if ("style" === l2) - if (h3) { - for (g in h3) - !h3.hasOwnProperty(g) || k2 && k2.hasOwnProperty(g) || (c3 || (c3 = {}), c3[g] = ""); - for (g in k2) - k2.hasOwnProperty(g) && h3[g] !== k2[g] && (c3 || (c3 = {}), c3[g] = k2[g]); - } else - c3 || (f2 || (f2 = []), f2.push( - l2, - c3 - )), c3 = k2; - else - "dangerouslySetInnerHTML" === l2 ? (k2 = k2 ? k2.__html : void 0, h3 = h3 ? h3.__html : void 0, null != k2 && h3 !== k2 && (f2 = f2 || []).push(l2, k2)) : "children" === l2 ? "string" !== typeof k2 && "number" !== typeof k2 || (f2 = f2 || []).push(l2, "" + k2) : "suppressContentEditableWarning" !== l2 && "suppressHydrationWarning" !== l2 && (ea.hasOwnProperty(l2) ? (null != k2 && "onScroll" === l2 && D2("scroll", a4), f2 || h3 === k2 || (f2 = [])) : (f2 = f2 || []).push(l2, k2)); - } - c3 && (f2 = f2 || []).push("style", c3); - var l2 = f2; - if (b2.updateQueue = l2) - b2.flags |= 4; - } - }; - Dj = function(a4, b2, c3, d4) { - c3 !== d4 && (b2.flags |= 4); - }; - function Ej(a4, b2) { - if (!I2) - switch (a4.tailMode) { - case "hidden": - b2 = a4.tail; - for (var c3 = null; null !== b2; ) - null !== b2.alternate && (c3 = b2), b2 = b2.sibling; - null === c3 ? a4.tail = null : c3.sibling = null; - break; - case "collapsed": - c3 = a4.tail; - for (var d4 = null; null !== c3; ) - null !== c3.alternate && (d4 = c3), c3 = c3.sibling; - null === d4 ? b2 || null === a4.tail ? a4.tail = null : a4.tail.sibling = null : d4.sibling = null; - } - } - function S3(a4) { - var b2 = null !== a4.alternate && a4.alternate.child === a4.child, c3 = 0, d4 = 0; - if (b2) - for (var e5 = a4.child; null !== e5; ) - c3 |= e5.lanes | e5.childLanes, d4 |= e5.subtreeFlags & 14680064, d4 |= e5.flags & 14680064, e5.return = a4, e5 = e5.sibling; - else - for (e5 = a4.child; null !== e5; ) - c3 |= e5.lanes | e5.childLanes, d4 |= e5.subtreeFlags, d4 |= e5.flags, e5.return = a4, e5 = e5.sibling; - a4.subtreeFlags |= d4; - a4.childLanes = c3; - return b2; - } - function Fj(a4, b2, c3) { - var d4 = b2.pendingProps; - wg(b2); - switch (b2.tag) { - case 2: - case 16: - case 15: - case 0: - case 11: - case 7: - case 8: - case 12: - case 9: - case 14: - return S3(b2), null; - case 1: - return Zf(b2.type) && $f(), S3(b2), null; - case 3: - d4 = b2.stateNode; - Jh(); - E2(Wf); - E2(H3); - Oh(); - d4.pendingContext && (d4.context = d4.pendingContext, d4.pendingContext = null); - if (null === a4 || null === a4.child) - Gg(b2) ? b2.flags |= 4 : null === a4 || a4.memoizedState.isDehydrated && 0 === (b2.flags & 256) || (b2.flags |= 1024, null !== zg && (Gj(zg), zg = null)); - Bj(a4, b2); - S3(b2); - return null; - case 5: - Lh(b2); - var e5 = Hh(Gh.current); - c3 = b2.type; - if (null !== a4 && null != b2.stateNode) - Cj(a4, b2, c3, d4, e5), a4.ref !== b2.ref && (b2.flags |= 512, b2.flags |= 2097152); - else { - if (!d4) { - if (null === b2.stateNode) - throw Error(p(166)); - S3(b2); - return null; - } - a4 = Hh(Eh.current); - if (Gg(b2)) { - d4 = b2.stateNode; - c3 = b2.type; - var f2 = b2.memoizedProps; - d4[Of] = b2; - d4[Pf] = f2; - a4 = 0 !== (b2.mode & 1); - switch (c3) { - case "dialog": - D2("cancel", d4); - D2("close", d4); - break; - case "iframe": - case "object": - case "embed": - D2("load", d4); - break; - case "video": - case "audio": - for (e5 = 0; e5 < lf.length; e5++) - D2(lf[e5], d4); - break; - case "source": - D2("error", d4); - break; - case "img": - case "image": - case "link": - D2( - "error", - d4 - ); - D2("load", d4); - break; - case "details": - D2("toggle", d4); - break; - case "input": - Za(d4, f2); - D2("invalid", d4); - break; - case "select": - d4._wrapperState = { wasMultiple: !!f2.multiple }; - D2("invalid", d4); - break; - case "textarea": - hb(d4, f2), D2("invalid", d4); - } - ub(c3, f2); - e5 = null; - for (var g in f2) - if (f2.hasOwnProperty(g)) { - var h3 = f2[g]; - "children" === g ? "string" === typeof h3 ? d4.textContent !== h3 && (true !== f2.suppressHydrationWarning && Af(d4.textContent, h3, a4), e5 = ["children", h3]) : "number" === typeof h3 && d4.textContent !== "" + h3 && (true !== f2.suppressHydrationWarning && Af( - d4.textContent, - h3, - a4 - ), e5 = ["children", "" + h3]) : ea.hasOwnProperty(g) && null != h3 && "onScroll" === g && D2("scroll", d4); - } - switch (c3) { - case "input": - Va(d4); - db(d4, f2, true); - break; - case "textarea": - Va(d4); - jb(d4); - break; - case "select": - case "option": - break; - default: - "function" === typeof f2.onClick && (d4.onclick = Bf); - } - d4 = e5; - b2.updateQueue = d4; - null !== d4 && (b2.flags |= 4); - } else { - g = 9 === e5.nodeType ? e5 : e5.ownerDocument; - "http://www.w3.org/1999/xhtml" === a4 && (a4 = kb(c3)); - "http://www.w3.org/1999/xhtml" === a4 ? "script" === c3 ? (a4 = g.createElement("div"), a4.innerHTML = "